function ml(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const u=Object.getOwnPropertyDescriptor(n,o);u&&Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Gf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Q2(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var IH={exports:{}},Wb={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var LH,yfe;function pO(){if(yfe)return LH;yfe=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function o(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var f={},h=0;h<10;h++)f["_"+String.fromCharCode(h)]=h;var A=Object.getOwnPropertyNames(f).map(function(g){return f[g]});if(A.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(g){p[g]=g}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return LH=o()?Object.assign:function(u,f){for(var h,A=n(u),p,g=1;g<arguments.length;g++){h=Object(arguments[g]);for(var y in h)e.call(h,y)&&(A[y]=h[y]);if(t){p=t(h);for(var _=0;_<p.length;_++)r.call(h,p[_])&&(A[p[_]]=h[p[_]])}}return A},LH}var MH={exports:{}},Ta={};/** @license React v17.0.2
* react.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 wfe;function _Je(){if(wfe)return Ta;wfe=1;var t=pO(),e=60103,r=60106;Ta.Fragment=60107,Ta.StrictMode=60108,Ta.Profiler=60114;var n=60109,o=60110,u=60112;Ta.Suspense=60113;var f=60115,h=60116;if(typeof Symbol=="function"&&Symbol.for){var A=Symbol.for;e=A("react.element"),r=A("react.portal"),Ta.Fragment=A("react.fragment"),Ta.StrictMode=A("react.strict_mode"),Ta.Profiler=A("react.profiler"),n=A("react.provider"),o=A("react.context"),u=A("react.forward_ref"),Ta.Suspense=A("react.suspense"),f=A("react.memo"),h=A("react.lazy")}var p=typeof Symbol=="function"&&Symbol.iterator;function g(ae){return ae===null||typeof ae!="object"?null:(ae=p&&ae[p]||ae["@@iterator"],typeof ae=="function"?ae:null)}function y(ae){for(var le="https://reactjs.org/docs/error-decoder.html?invariant="+ae,pe=1;pe<arguments.length;pe++)le+="&args[]="+encodeURIComponent(arguments[pe]);return"Minified React error #"+ae+"; visit "+le+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function C(ae,le,pe){this.props=ae,this.context=le,this.refs=b,this.updater=pe||_}C.prototype.isReactComponent={},C.prototype.setState=function(ae,le){if(typeof ae!="object"&&typeof ae!="function"&&ae!=null)throw Error(y(85));this.updater.enqueueSetState(this,ae,le,"setState")},C.prototype.forceUpdate=function(ae){this.updater.enqueueForceUpdate(this,ae,"forceUpdate")};function T(){}T.prototype=C.prototype;function B(ae,le,pe){this.props=ae,this.context=le,this.refs=b,this.updater=pe||_}var L=B.prototype=new T;L.constructor=B,t(L,C.prototype),L.isPureReactComponent=!0;var P={current:null},I=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function U(ae,le,pe){var ie,he={},re=null,oe=null;if(le!=null)for(ie in le.ref!==void 0&&(oe=le.ref),le.key!==void 0&&(re=""+le.key),le)I.call(le,ie)&&!O.hasOwnProperty(ie)&&(he[ie]=le[ie]);var ye=arguments.length-2;if(ye===1)he.children=pe;else if(1<ye){for(var _e=Array(ye),Ce=0;Ce<ye;Ce++)_e[Ce]=arguments[Ce+2];he.children=_e}if(ae&&ae.defaultProps)for(ie in ye=ae.defaultProps,ye)he[ie]===void 0&&(he[ie]=ye[ie]);return{$$typeof:e,type:ae,key:re,ref:oe,props:he,_owner:P.current}}function N(ae,le){return{$$typeof:e,type:ae.type,key:le,ref:ae.ref,props:ae.props,_owner:ae._owner}}function H(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===e}function z(ae){var le={"=":"=0",":":"=2"};return"$"+ae.replace(/[=:]/g,function(pe){return le[pe]})}var G=/\/+/g;function j(ae,le){return typeof ae=="object"&&ae!==null&&ae.key!=null?z(""+ae.key):le.toString(36)}function q(ae,le,pe,ie,he){var re=typeof ae;(re==="undefined"||re==="boolean")&&(ae=null);var oe=!1;if(ae===null)oe=!0;else switch(re){case"string":case"number":oe=!0;break;case"object":switch(ae.$$typeof){case e:case r:oe=!0}}if(oe)return oe=ae,he=he(oe),ae=ie===""?"."+j(oe,0):ie,Array.isArray(he)?(pe="",ae!=null&&(pe=ae.replace(G,"$&/")+"/"),q(he,le,pe,"",function(Ce){return Ce})):he!=null&&(H(he)&&(he=N(he,pe+(!he.key||oe&&oe.key===he.key?"":(""+he.key).replace(G,"$&/")+"/")+ae)),le.push(he)),1;if(oe=0,ie=ie===""?".":ie+":",Array.isArray(ae))for(var ye=0;ye<ae.length;ye++){re=ae[ye];var _e=ie+j(re,ye);oe+=q(re,le,pe,_e,he)}else if(_e=g(ae),typeof _e=="function")for(ae=_e.call(ae),ye=0;!(re=ae.next()).done;)re=re.value,_e=ie+j(re,ye++),oe+=q(re,le,pe,_e,he);else if(re==="object")throw le=""+ae,Error(y(31,le==="[object Object]"?"object with keys {"+Object.keys(ae).join(", ")+"}":le));return oe}function X(ae,le,pe){if(ae==null)return ae;var ie=[],he=0;return q(ae,ie,"","",function(re){return le.call(pe,re,he++)}),ie}function Y(ae){if(ae._status===-1){var le=ae._result;le=le(),ae._status=0,ae._result=le,le.then(function(pe){ae._status===0&&(pe=pe.default,ae._status=1,ae._result=pe)},function(pe){ae._status===0&&(ae._status=2,ae._result=pe)})}if(ae._status===1)return ae._result;throw ae._result}var te={current:null};function K(){var ae=te.current;if(ae===null)throw Error(y(321));return ae}var ce={ReactCurrentDispatcher:te,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:P,IsSomeRendererActing:{current:!1},assign:t};return Ta.Children={map:X,forEach:function(ae,le,pe){X(ae,function(){le.apply(this,arguments)},pe)},count:function(ae){var le=0;return X(ae,function(){le++}),le},toArray:function(ae){return X(ae,function(le){return le})||[]},only:function(ae){if(!H(ae))throw Error(y(143));return ae}},Ta.Component=C,Ta.PureComponent=B,Ta.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ce,Ta.cloneElement=function(ae,le,pe){if(ae==null)throw Error(y(267,ae));var ie=t({},ae.props),he=ae.key,re=ae.ref,oe=ae._owner;if(le!=null){if(le.ref!==void 0&&(re=le.ref,oe=P.current),le.key!==void 0&&(he=""+le.key),ae.type&&ae.type.defaultProps)var ye=ae.type.defaultProps;for(_e in le)I.call(le,_e)&&!O.hasOwnProperty(_e)&&(ie[_e]=le[_e]===void 0&&ye!==void 0?ye[_e]:le[_e])}var _e=arguments.length-2;if(_e===1)ie.children=pe;else if(1<_e){ye=Array(_e);for(var Ce=0;Ce<_e;Ce++)ye[Ce]=arguments[Ce+2];ie.children=ye}return{$$typeof:e,type:ae.type,key:he,ref:re,props:ie,_owner:oe}},Ta.createContext=function(ae,le){return le===void 0&&(le=null),ae={$$typeof:o,_calculateChangedBits:le,_currentValue:ae,_currentValue2:ae,_threadCount:0,Provider:null,Consumer:null},ae.Provider={$$typeof:n,_context:ae},ae.Consumer=ae},Ta.createElement=U,Ta.createFactory=function(ae){var le=U.bind(null,ae);return le.type=ae,le},Ta.createRef=function(){return{current:null}},Ta.forwardRef=function(ae){return{$$typeof:u,render:ae}},Ta.isValidElement=H,Ta.lazy=function(ae){return{$$typeof:h,_payload:{_status:-1,_result:ae},_init:Y}},Ta.memo=function(ae,le){return{$$typeof:f,type:ae,compare:le===void 0?null:le}},Ta.useCallback=function(ae,le){return K().useCallback(ae,le)},Ta.useContext=function(ae,le){return K().useContext(ae,le)},Ta.useDebugValue=function(){},Ta.useEffect=function(ae,le){return K().useEffect(ae,le)},Ta.useImperativeHandle=function(ae,le,pe){return K().useImperativeHandle(ae,le,pe)},Ta.useLayoutEffect=function(ae,le){return K().useLayoutEffect(ae,le)},Ta.useMemo=function(ae,le){return K().useMemo(ae,le)},Ta.useReducer=function(ae,le,pe){return K().useReducer(ae,le,pe)},Ta.useRef=function(ae){return K().useRef(ae)},Ta.useState=function(ae){return K().useState(ae)},Ta.version="17.0.2",Ta}var bfe;function QS(){return bfe||(bfe=1,MH.exports=_Je()),MH.exports}/** @license React v17.0.2
* react-jsx-runtime.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 _fe;function SJe(){if(_fe)return Wb;_fe=1,pO();var t=QS(),e=60103;if(Wb.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var r=Symbol.for;e=r("react.element"),Wb.Fragment=r("react.fragment")}var n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function f(h,A,p){var g,y={},_=null,b=null;p!==void 0&&(_=""+p),A.key!==void 0&&(_=""+A.key),A.ref!==void 0&&(b=A.ref);for(g in A)o.call(A,g)&&!u.hasOwnProperty(g)&&(y[g]=A[g]);if(h&&h.defaultProps)for(g in A=h.defaultProps,A)y[g]===void 0&&(y[g]=A[g]);return{$$typeof:e,type:h,key:_,ref:b,props:y,_owner:n.current}}return Wb.jsx=f,Wb.jsxs=f,Wb}var Sfe;function xJe(){return Sfe||(Sfe=1,IH.exports=SJe()),IH.exports}var e2=xJe(),Ae=QS();const Sn=Dn(Ae),DR=ml({__proto__:null,default:Sn},[Ae]);var DH={exports:{}},yh={},RH={exports:{}},PH={};/** @license React v0.20.2
* scheduler.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 xfe;function CJe(){return xfe||(xfe=1,function(t){var e,r,n,o;if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();t.unstable_now=function(){return f.now()-h}}if(typeof window>"u"||typeof MessageChannel!="function"){var A=null,p=null,g=function(){if(A!==null)try{var he=t.unstable_now();A(!0,he),A=null}catch(re){throw setTimeout(g,0),re}};e=function(he){A!==null?setTimeout(e,0,he):(A=he,setTimeout(g,0))},r=function(he,re){p=setTimeout(he,re)},n=function(){clearTimeout(p)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var y=window.setTimeout,_=window.clearTimeout;if(typeof console<"u"){var b=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof b!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var C=!1,T=null,B=-1,L=5,P=0;t.unstable_shouldYield=function(){return t.unstable_now()>=P},o=function(){},t.unstable_forceFrameRate=function(he){0>he||125<he?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<he?Math.floor(1e3/he):5};var I=new MessageChannel,O=I.port2;I.port1.onmessage=function(){if(T!==null){var he=t.unstable_now();P=he+L;try{T(!0,he)?O.postMessage(null):(C=!1,T=null)}catch(re){throw O.postMessage(null),re}}else C=!1},e=function(he){T=he,C||(C=!0,O.postMessage(null))},r=function(he,re){B=y(function(){he(t.unstable_now())},re)},n=function(){_(B),B=-1}}function U(he,re){var oe=he.length;he.push(re);e:for(;;){var ye=oe-1>>>1,_e=he[ye];if(_e!==void 0&&0<z(_e,re))he[ye]=re,he[oe]=_e,oe=ye;else break e}}function N(he){return he=he[0],he===void 0?null:he}function H(he){var re=he[0];if(re!==void 0){var oe=he.pop();if(oe!==re){he[0]=oe;e:for(var ye=0,_e=he.length;ye<_e;){var Ce=2*(ye+1)-1,ne=he[Ce],xe=Ce+1,De=he[xe];if(ne!==void 0&&0>z(ne,oe))De!==void 0&&0>z(De,ne)?(he[ye]=De,he[xe]=oe,ye=xe):(he[ye]=ne,he[Ce]=oe,ye=Ce);else if(De!==void 0&&0>z(De,oe))he[ye]=De,he[xe]=oe,ye=xe;else break e}}return re}return null}function z(he,re){var oe=he.sortIndex-re.sortIndex;return oe!==0?oe:he.id-re.id}var G=[],j=[],q=1,X=null,Y=3,te=!1,K=!1,ce=!1;function ae(he){for(var re=N(j);re!==null;){if(re.callback===null)H(j);else if(re.startTime<=he)H(j),re.sortIndex=re.expirationTime,U(G,re);else break;re=N(j)}}function le(he){if(ce=!1,ae(he),!K)if(N(G)!==null)K=!0,e(pe);else{var re=N(j);re!==null&&r(le,re.startTime-he)}}function pe(he,re){K=!1,ce&&(ce=!1,n()),te=!0;var oe=Y;try{for(ae(re),X=N(G);X!==null&&(!(X.expirationTime>re)||he&&!t.unstable_shouldYield());){var ye=X.callback;if(typeof ye=="function"){X.callback=null,Y=X.priorityLevel;var _e=ye(X.expirationTime<=re);re=t.unstable_now(),typeof _e=="function"?X.callback=_e:X===N(G)&&H(G),ae(re)}else H(G);X=N(G)}if(X!==null)var Ce=!0;else{var ne=N(j);ne!==null&&r(le,ne.startTime-re),Ce=!1}return Ce}finally{X=null,Y=oe,te=!1}}var ie=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(he){he.callback=null},t.unstable_continueExecution=function(){K||te||(K=!0,e(pe))},t.unstable_getCurrentPriorityLevel=function(){return Y},t.unstable_getFirstCallbackNode=function(){return N(G)},t.unstable_next=function(he){switch(Y){case 1:case 2:case 3:var re=3;break;default:re=Y}var oe=Y;Y=re;try{return he()}finally{Y=oe}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=ie,t.unstable_runWithPriority=function(he,re){switch(he){case 1:case 2:case 3:case 4:case 5:break;default:he=3}var oe=Y;Y=he;try{return re()}finally{Y=oe}},t.unstable_scheduleCallback=function(he,re,oe){var ye=t.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?ye+oe:ye):oe=ye,he){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=oe+_e,he={id:q++,callback:re,priorityLevel:he,startTime:oe,expirationTime:_e,sortIndex:-1},oe>ye?(he.sortIndex=oe,U(j,he),N(G)===null&&he===N(j)&&(ce?n():ce=!0,r(le,oe-ye))):(he.sortIndex=_e,U(G,he),K||te||(K=!0,e(pe))),he},t.unstable_wrapCallback=function(he){var re=Y;return function(){var oe=Y;Y=re;try{return he.apply(this,arguments)}finally{Y=oe}}}}(PH)),PH}var Cfe;function TJe(){return Cfe||(Cfe=1,RH.exports=CJe()),RH.exports}/** @license React v17.0.2
* react-dom.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 Tfe;function EJe(){if(Tfe)return yh;Tfe=1;var t=QS(),e=pO(),r=TJe();function n(R){for(var F="https://reactjs.org/docs/error-decoder.html?invariant="+R,W=1;W<arguments.length;W++)F+="&args[]="+encodeURIComponent(arguments[W]);return"Minified React error #"+R+"; visit "+F+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!t)throw Error(n(227));var o=new Set,u={};function f(R,F){h(R,F),h(R+"Capture",F)}function h(R,F){for(u[R]=F,R=0;R<F.length;R++)o.add(F[R])}var A=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=/^[: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]*$/,g=Object.prototype.hasOwnProperty,y={},_={};function b(R){return g.call(_,R)?!0:g.call(y,R)?!1:p.test(R)?_[R]=!0:(y[R]=!0,!1)}function C(R,F,W,de){if(W!==null&&W.type===0)return!1;switch(typeof F){case"function":case"symbol":return!0;case"boolean":return de?!1:W!==null?!W.acceptsBooleans:(R=R.toLowerCase().slice(0,5),R!=="data-"&&R!=="aria-");default:return!1}}function T(R,F,W,de){if(F===null||typeof F>"u"||C(R,F,W,de))return!0;if(de)return!1;if(W!==null)switch(W.type){case 3:return!F;case 4:return F===!1;case 5:return isNaN(F);case 6:return isNaN(F)||1>F}return!1}function B(R,F,W,de,be,Oe,Ke){this.acceptsBooleans=F===2||F===3||F===4,this.attributeName=de,this.attributeNamespace=be,this.mustUseProperty=W,this.propertyName=R,this.type=F,this.sanitizeURL=Oe,this.removeEmptyString=Ke}var L={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(R){L[R]=new B(R,0,!1,R,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(R){var F=R[0];L[F]=new B(F,1,!1,R[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(R){L[R]=new B(R,2,!1,R.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(R){L[R]=new B(R,2,!1,R,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(R){L[R]=new B(R,3,!1,R.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(R){L[R]=new B(R,3,!0,R,null,!1,!1)}),["capture","download"].forEach(function(R){L[R]=new B(R,4,!1,R,null,!1,!1)}),["cols","rows","size","span"].forEach(function(R){L[R]=new B(R,6,!1,R,null,!1,!1)}),["rowSpan","start"].forEach(function(R){L[R]=new B(R,5,!1,R.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function I(R){return R[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(R){var F=R.replace(P,I);L[F]=new B(F,1,!1,R,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(R){var F=R.replace(P,I);L[F]=new B(F,1,!1,R,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(R){var F=R.replace(P,I);L[F]=new B(F,1,!1,R,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(R){L[R]=new B(R,1,!1,R.toLowerCase(),null,!1,!1)}),L.xlinkHref=new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(R){L[R]=new B(R,1,!1,R.toLowerCase(),null,!0,!0)});function O(R,F,W,de){var be=L.hasOwnProperty(F)?L[F]:null,Oe=be!==null?be.type===0:de?!1:!(!(2<F.length)||F[0]!=="o"&&F[0]!=="O"||F[1]!=="n"&&F[1]!=="N");Oe||(T(F,W,be,de)&&(W=null),de||be===null?b(F)&&(W===null?R.removeAttribute(F):R.setAttribute(F,""+W)):be.mustUseProperty?R[be.propertyName]=W===null?be.type===3?!1:"":W:(F=be.attributeName,de=be.attributeNamespace,W===null?R.removeAttribute(F):(be=be.type,W=be===3||be===4&&W===!0?"":""+W,de?R.setAttributeNS(de,F,W):R.setAttribute(F,W))))}var U=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N=60103,H=60106,z=60107,G=60108,j=60114,q=60109,X=60110,Y=60112,te=60113,K=60120,ce=60115,ae=60116,le=60121,pe=60128,ie=60129,he=60130,re=60131;if(typeof Symbol=="function"&&Symbol.for){var oe=Symbol.for;N=oe("react.element"),H=oe("react.portal"),z=oe("react.fragment"),G=oe("react.strict_mode"),j=oe("react.profiler"),q=oe("react.provider"),X=oe("react.context"),Y=oe("react.forward_ref"),te=oe("react.suspense"),K=oe("react.suspense_list"),ce=oe("react.memo"),ae=oe("react.lazy"),le=oe("react.block"),oe("react.scope"),pe=oe("react.opaque.id"),ie=oe("react.debug_trace_mode"),he=oe("react.offscreen"),re=oe("react.legacy_hidden")}var ye=typeof Symbol=="function"&&Symbol.iterator;function _e(R){return R===null||typeof R!="object"?null:(R=ye&&R[ye]||R["@@iterator"],typeof R=="function"?R:null)}var Ce;function ne(R){if(Ce===void 0)try{throw Error()}catch(W){var F=W.stack.trim().match(/\n( *(at )?)/);Ce=F&&F[1]||""}return`
`+Ce+R}var xe=!1;function De(R,F){if(!R||xe)return"";xe=!0;var W=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(F)if(F=function(){throw Error()},Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(Lt){var de=Lt}Reflect.construct(R,[],F)}else{try{F.call()}catch(Lt){de=Lt}R.call(F.prototype)}else{try{throw Error()}catch(Lt){de=Lt}R()}}catch(Lt){if(Lt&&de&&typeof Lt.stack=="string"){for(var be=Lt.stack.split(`
`),Oe=de.stack.split(`
`),Ke=be.length-1,ct=Oe.length-1;1<=Ke&&0<=ct&&be[Ke]!==Oe[ct];)ct--;for(;1<=Ke&&0<=ct;Ke--,ct--)if(be[Ke]!==Oe[ct]){if(Ke!==1||ct!==1)do if(Ke--,ct--,0>ct||be[Ke]!==Oe[ct])return`
`+be[Ke].replace(" at new "," at ");while(1<=Ke&&0<=ct);break}}}finally{xe=!1,Error.prepareStackTrace=W}return(R=R?R.displayName||R.name:"")?ne(R):""}function ze(R){switch(R.tag){case 5:return ne(R.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return R=De(R.type,!1),R;case 11:return R=De(R.type.render,!1),R;case 22:return R=De(R.type._render,!1),R;case 1:return R=De(R.type,!0),R;default:return""}}function Ye(R){if(R==null)return null;if(typeof R=="function")return R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case z:return"Fragment";case H:return"Portal";case j:return"Profiler";case G:return"StrictMode";case te:return"Suspense";case K:return"SuspenseList"}if(typeof R=="object")switch(R.$$typeof){case X:return(R.displayName||"Context")+".Consumer";case q:return(R._context.displayName||"Context")+".Provider";case Y:var F=R.render;return F=F.displayName||F.name||"",R.displayName||(F!==""?"ForwardRef("+F+")":"ForwardRef");case ce:return Ye(R.type);case le:return Ye(R._render);case ae:F=R._payload,R=R._init;try{return Ye(R(F))}catch{}}return null}function Ne(R){switch(typeof R){case"boolean":case"number":case"object":case"string":case"undefined":return R;default:return""}}function yt(R){var F=R.type;return(R=R.nodeName)&&R.toLowerCase()==="input"&&(F==="checkbox"||F==="radio")}function Ue(R){var F=yt(R)?"checked":"value",W=Object.getOwnPropertyDescriptor(R.constructor.prototype,F),de=""+R[F];if(!R.hasOwnProperty(F)&&typeof W<"u"&&typeof W.get=="function"&&typeof W.set=="function"){var be=W.get,Oe=W.set;return Object.defineProperty(R,F,{configurable:!0,get:function(){return be.call(this)},set:function(Ke){de=""+Ke,Oe.call(this,Ke)}}),Object.defineProperty(R,F,{enumerable:W.enumerable}),{getValue:function(){return de},setValue:function(Ke){de=""+Ke},stopTracking:function(){R._valueTracker=null,delete R[F]}}}}function ue(R){R._valueTracker||(R._valueTracker=Ue(R))}function Qe(R){if(!R)return!1;var F=R._valueTracker;if(!F)return!0;var W=F.getValue(),de="";return R&&(de=yt(R)?R.checked?"true":"false":R.value),R=de,R!==W?(F.setValue(R),!0):!1}function qe(R){if(R=R||(typeof document<"u"?document:void 0),typeof R>"u")return null;try{return R.activeElement||R.body}catch{return R.body}}function Re(R,F){var W=F.checked;return e({},F,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:W??R._wrapperState.initialChecked})}function Me(R,F){var W=F.defaultValue==null?"":F.defaultValue,de=F.checked!=null?F.checked:F.defaultChecked;W=Ne(F.value!=null?F.value:W),R._wrapperState={initialChecked:de,initialValue:W,controlled:F.type==="checkbox"||F.type==="radio"?F.checked!=null:F.value!=null}}function Ge(R,F){F=F.checked,F!=null&&O(R,"checked",F,!1)}function Pe(R,F){Ge(R,F);var W=Ne(F.value),de=F.type;if(W!=null)de==="number"?(W===0&&R.value===""||R.value!=W)&&(R.value=""+W):R.value!==""+W&&(R.value=""+W);else if(de==="submit"||de==="reset"){R.removeAttribute("value");return}F.hasOwnProperty("value")?Be(R,F.type,W):F.hasOwnProperty("defaultValue")&&Be(R,F.type,Ne(F.defaultValue)),F.checked==null&&F.defaultChecked!=null&&(R.defaultChecked=!!F.defaultChecked)}function ke(R,F,W){if(F.hasOwnProperty("value")||F.hasOwnProperty("defaultValue")){var de=F.type;if(!(de!=="submit"&&de!=="reset"||F.value!==void 0&&F.value!==null))return;F=""+R._wrapperState.initialValue,W||F===R.value||(R.value=F),R.defaultValue=F}W=R.name,W!==""&&(R.name=""),R.defaultChecked=!!R._wrapperState.initialChecked,W!==""&&(R.name=W)}function Be(R,F,W){(F!=="number"||qe(R.ownerDocument)!==R)&&(W==null?R.defaultValue=""+R._wrapperState.initialValue:R.defaultValue!==""+W&&(R.defaultValue=""+W))}function $e(R){var F="";return t.Children.forEach(R,function(W){W!=null&&(F+=W)}),F}function nt(R,F){return R=e({children:void 0},F),(F=$e(F.children))&&(R.children=F),R}function ft(R,F,W,de){if(R=R.options,F){F={};for(var be=0;be<W.length;be++)F["$"+W[be]]=!0;for(W=0;W<R.length;W++)be=F.hasOwnProperty("$"+R[W].value),R[W].selected!==be&&(R[W].selected=be),be&&de&&(R[W].defaultSelected=!0)}else{for(W=""+Ne(W),F=null,be=0;be<R.length;be++){if(R[be].value===W){R[be].selected=!0,de&&(R[be].defaultSelected=!0);return}F!==null||R[be].disabled||(F=R[be])}F!==null&&(F.selected=!0)}}function Mt(R,F){if(F.dangerouslySetInnerHTML!=null)throw Error(n(91));return e({},F,{value:void 0,defaultValue:void 0,children:""+R._wrapperState.initialValue})}function Rt(R,F){var W=F.value;if(W==null){if(W=F.children,F=F.defaultValue,W!=null){if(F!=null)throw Error(n(92));if(Array.isArray(W)){if(!(1>=W.length))throw Error(n(93));W=W[0]}F=W}F==null&&(F=""),W=F}R._wrapperState={initialValue:Ne(W)}}function Bt(R,F){var W=Ne(F.value),de=Ne(F.defaultValue);W!=null&&(W=""+W,W!==R.value&&(R.value=W),F.defaultValue==null&&R.defaultValue!==W&&(R.defaultValue=W)),de!=null&&(R.defaultValue=""+de)}function It(R){var F=R.textContent;F===R._wrapperState.initialValue&&F!==""&&F!==null&&(R.value=F)}var qt={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function fr(R){switch(R){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lr(R,F){return R==null||R==="http://www.w3.org/1999/xhtml"?fr(F):R==="http://www.w3.org/2000/svg"&&F==="foreignObject"?"http://www.w3.org/1999/xhtml":R}var _t,br=function(R){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(F,W,de,be){MSApp.execUnsafeLocalFunction(function(){return R(F,W,de,be)})}:R}(function(R,F){if(R.namespaceURI!==qt.svg||"innerHTML"in R)R.innerHTML=F;else{for(_t=_t||document.createElement("div"),_t.innerHTML="<svg>"+F.valueOf().toString()+"</svg>",F=_t.firstChild;R.firstChild;)R.removeChild(R.firstChild);for(;F.firstChild;)R.appendChild(F.firstChild)}});function on(R,F){if(F){var W=R.firstChild;if(W&&W===R.lastChild&&W.nodeType===3){W.nodeValue=F;return}}R.textContent=F}var Br={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rn=["Webkit","ms","Moz","O"];Object.keys(Br).forEach(function(R){rn.forEach(function(F){F=F+R.charAt(0).toUpperCase()+R.substring(1),Br[F]=Br[R]})});function Yr(R,F,W){return F==null||typeof F=="boolean"||F===""?"":W||typeof F!="number"||F===0||Br.hasOwnProperty(R)&&Br[R]?(""+F).trim():F+"px"}function cn(R,F){R=R.style;for(var W in F)if(F.hasOwnProperty(W)){var de=W.indexOf("--")===0,be=Yr(W,F[W],de);W==="float"&&(W="cssFloat"),de?R.setProperty(W,be):R[W]=be}}var Vn=e({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 Nr(R,F){if(F){if(Vn[R]&&(F.children!=null||F.dangerouslySetInnerHTML!=null))throw Error(n(137,R));if(F.dangerouslySetInnerHTML!=null){if(F.children!=null)throw Error(n(60));if(!(typeof F.dangerouslySetInnerHTML=="object"&&"__html"in F.dangerouslySetInnerHTML))throw Error(n(61))}if(F.style!=null&&typeof F.style!="object")throw Error(n(62))}}function Ht(R,F){if(R.indexOf("-")===-1)return typeof F.is=="string";switch(R){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}}function zr(R){return R=R.target||R.srcElement||window,R.correspondingUseElement&&(R=R.correspondingUseElement),R.nodeType===3?R.parentNode:R}var kn=null,vt=null,At=null;function Ct(R){if(R=nv(R)){if(typeof kn!="function")throw Error(n(280));var F=R.stateNode;F&&(F=iv(F),kn(R.stateNode,R.type,F))}}function Tt(R){vt?At?At.push(R):At=[R]:vt=R}function ir(){if(vt){var R=vt,F=At;if(At=vt=null,Ct(R),F)for(R=0;R<F.length;R++)Ct(F[R])}}function et(R,F){return R(F)}function ot(R,F,W,de,be){return R(F,W,de,be)}function mt(){}var xt=et,nr=!1,yr=!1;function Pr(){(vt!==null||At!==null)&&(mt(),ir())}function pr(R,F,W){if(yr)return R(F,W);yr=!0;try{return xt(R,F,W)}finally{yr=!1,Pr()}}function Ar(R,F){var W=R.stateNode;if(W===null)return null;var de=iv(W);if(de===null)return null;W=de[F];e:switch(F){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(de=!de.disabled)||(R=R.type,de=!(R==="button"||R==="input"||R==="select"||R==="textarea")),R=!de;break e;default:R=!1}if(R)return null;if(W&&typeof W!="function")throw Error(n(231,F,typeof W));return W}var Tr=!1;if(A)try{var Fr={};Object.defineProperty(Fr,"passive",{get:function(){Tr=!0}}),window.addEventListener("test",Fr,Fr),window.removeEventListener("test",Fr,Fr)}catch{Tr=!1}function nn(R,F,W,de,be,Oe,Ke,ct,Lt){var Jt=Array.prototype.slice.call(arguments,3);try{F.apply(W,Jt)}catch(dn){this.onError(dn)}}var fn=!1,ci=null,_r=!1,pt=null,or={onError:function(R){fn=!0,ci=R}};function Ur(R,F,W,de,be,Oe,Ke,ct,Lt){fn=!1,ci=null,nn.apply(or,arguments)}function Ti(R,F,W,de,be,Oe,Ke,ct,Lt){if(Ur.apply(this,arguments),fn){if(fn){var Jt=ci;fn=!1,ci=null}else throw Error(n(198));_r||(_r=!0,pt=Jt)}}function ni(R){var F=R,W=R;if(R.alternate)for(;F.return;)F=F.return;else{R=F;do F=R,(F.flags&1026)!==0&&(W=F.return),R=F.return;while(R)}return F.tag===3?W:null}function Li(R){if(R.tag===13){var F=R.memoizedState;if(F===null&&(R=R.alternate,R!==null&&(F=R.memoizedState)),F!==null)return F.dehydrated}return null}function ea(R){if(ni(R)!==R)throw Error(n(188))}function Tn(R){var F=R.alternate;if(!F){if(F=ni(R),F===null)throw Error(n(188));return F!==R?null:R}for(var W=R,de=F;;){var be=W.return;if(be===null)break;var Oe=be.alternate;if(Oe===null){if(de=be.return,de!==null){W=de;continue}break}if(be.child===Oe.child){for(Oe=be.child;Oe;){if(Oe===W)return ea(be),R;if(Oe===de)return ea(be),F;Oe=Oe.sibling}throw Error(n(188))}if(W.return!==de.return)W=be,de=Oe;else{for(var Ke=!1,ct=be.child;ct;){if(ct===W){Ke=!0,W=be,de=Oe;break}if(ct===de){Ke=!0,de=be,W=Oe;break}ct=ct.sibling}if(!Ke){for(ct=Oe.child;ct;){if(ct===W){Ke=!0,W=Oe,de=be;break}if(ct===de){Ke=!0,de=Oe,W=be;break}ct=ct.sibling}if(!Ke)throw Error(n(189))}}if(W.alternate!==de)throw Error(n(190))}if(W.tag!==3)throw Error(n(188));return W.stateNode.current===W?R:F}function Mi(R){if(R=Tn(R),!R)return null;for(var F=R;;){if(F.tag===5||F.tag===6)return F;if(F.child)F.child.return=F,F=F.child;else{if(F===R)break;for(;!F.sibling;){if(!F.return||F.return===R)return null;F=F.return}F.sibling.return=F.return,F=F.sibling}}return null}function Ka(R,F){for(var W=R.alternate;F!==null;){if(F===R||F===W)return!0;F=F.return}return!1}var ga,qn,$i,Da,qs=!1,Di=[],Wo=null,na=null,bs=null,Hl=new Map,_s=new Map,du=[],No="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ws(R,F,W,de,be){return{blockedOn:R,domEventName:F,eventSystemFlags:W|16,nativeEvent:be,targetContainers:[de]}}function mo(R,F){switch(R){case"focusin":case"focusout":Wo=null;break;case"dragenter":case"dragleave":na=null;break;case"mouseover":case"mouseout":bs=null;break;case"pointerover":case"pointerout":Hl.delete(F.pointerId);break;case"gotpointercapture":case"lostpointercapture":_s.delete(F.pointerId)}}function $o(R,F,W,de,be,Oe){return R===null||R.nativeEvent!==Oe?(R=Ws(F,W,de,be,Oe),F!==null&&(F=nv(F),F!==null&&qn(F)),R):(R.eventSystemFlags|=de,F=R.targetContainers,be!==null&&F.indexOf(be)===-1&&F.push(be),R)}function yo(R,F,W,de,be){switch(F){case"focusin":return Wo=$o(Wo,R,F,W,de,be),!0;case"dragenter":return na=$o(na,R,F,W,de,be),!0;case"mouseover":return bs=$o(bs,R,F,W,de,be),!0;case"pointerover":var Oe=be.pointerId;return Hl.set(Oe,$o(Hl.get(Oe)||null,R,F,W,de,be)),!0;case"gotpointercapture":return Oe=be.pointerId,_s.set(Oe,$o(_s.get(Oe)||null,R,F,W,de,be)),!0}return!1}function rv(R){var F=Tf(R.target);if(F!==null){var W=ni(F);if(W!==null){if(F=W.tag,F===13){if(F=Li(W),F!==null){R.blockedOn=F,Da(R.lanePriority,function(){r.unstable_runWithPriority(R.priority,function(){$i(W)})});return}}else if(F===3&&W.stateNode.hydrate){R.blockedOn=W.tag===3?W.stateNode.containerInfo:null;return}}}R.blockedOn=null}function Oc(R){if(R.blockedOn!==null)return!1;for(var F=R.targetContainers;0<F.length;){var W=pu(R.domEventName,R.eventSystemFlags,F[0],R.nativeEvent);if(W!==null)return F=nv(W),F!==null&&qn(F),R.blockedOn=W,!1;F.shift()}return!0}function wo(R,F,W){Oc(R)&&W.delete(F)}function wf(){for(qs=!1;0<Di.length;){var R=Di[0];if(R.blockedOn!==null){R=nv(R.blockedOn),R!==null&&ga(R);break}for(var F=R.targetContainers;0<F.length;){var W=pu(R.domEventName,R.eventSystemFlags,F[0],R.nativeEvent);if(W!==null){R.blockedOn=W;break}F.shift()}R.blockedOn===null&&Di.shift()}Wo!==null&&Oc(Wo)&&(Wo=null),na!==null&&Oc(na)&&(na=null),bs!==null&&Oc(bs)&&(bs=null),Hl.forEach(wo),_s.forEach(wo)}function Zu(R,F){R.blockedOn===F&&(R.blockedOn=null,qs||(qs=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,wf)))}function Ql(R){function F(be){return Zu(be,R)}if(0<Di.length){Zu(Di[0],R);for(var W=1;W<Di.length;W++){var de=Di[W];de.blockedOn===R&&(de.blockedOn=null)}}for(Wo!==null&&Zu(Wo,R),na!==null&&Zu(na,R),bs!==null&&Zu(bs,R),Hl.forEach(F),_s.forEach(F),W=0;W<du.length;W++)de=du[W],de.blockedOn===R&&(de.blockedOn=null);for(;0<du.length&&(W=du[0],W.blockedOn===null);)rv(W),W.blockedOn===null&&du.shift()}function oo(R,F){var W={};return W[R.toLowerCase()]=F.toLowerCase(),W["Webkit"+R]="webkit"+F,W["Moz"+R]="moz"+F,W}var kc={animationend:oo("Animation","AnimationEnd"),animationiteration:oo("Animation","AnimationIteration"),animationstart:oo("Animation","AnimationStart"),transitionend:oo("Transition","TransitionEnd")},bf={},Kd={};A&&(Kd=document.createElement("div").style,"AnimationEvent"in window||(delete kc.animationend.animation,delete kc.animationiteration.animation,delete kc.animationstart.animation),"TransitionEvent"in window||delete kc.transitionend.transition);function us(R){if(bf[R])return bf[R];if(!kc[R])return R;var F=kc[R],W;for(W in F)if(F.hasOwnProperty(W)&&W in Kd)return bf[R]=F[W];return R}var cs=us("animationend"),Ls=us("animationiteration"),Vl=us("animationstart"),Tu=us("transitionend"),Ju=new Map,gn=new Map,ec=["abort","abort",cs,"animationEnd",Ls,"animationIteration",Vl,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Tu,"transitionEnd","waiting","waiting"];function Fc(R,F){for(var W=0;W<R.length;W+=2){var de=R[W],be=R[W+1];be="on"+(be[0].toUpperCase()+be.slice(1)),gn.set(de,F),Ju.set(de,be),f(be,[de])}}var $s=r.unstable_now;$s();var Ai=8;function so(R){if((1&R)!==0)return Ai=15,1;if((2&R)!==0)return Ai=14,2;if((4&R)!==0)return Ai=13,4;var F=24&R;return F!==0?(Ai=12,F):(R&32)!==0?(Ai=11,32):(F=192&R,F!==0?(Ai=10,F):(R&256)!==0?(Ai=9,256):(F=3584&R,F!==0?(Ai=8,F):(R&4096)!==0?(Ai=7,4096):(F=4186112&R,F!==0?(Ai=6,F):(F=62914560&R,F!==0?(Ai=5,F):R&67108864?(Ai=4,67108864):(R&134217728)!==0?(Ai=3,134217728):(F=805306368&R,F!==0?(Ai=2,F):(1073741824&R)!==0?(Ai=1,1073741824):(Ai=8,R))))))}function _l(R){switch(R){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function zl(R){switch(R){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(n(358,R))}}function tc(R,F){var W=R.pendingLanes;if(W===0)return Ai=0;var de=0,be=0,Oe=R.expiredLanes,Ke=R.suspendedLanes,ct=R.pingedLanes;if(Oe!==0)de=Oe,be=Ai=15;else if(Oe=W&134217727,Oe!==0){var Lt=Oe&~Ke;Lt!==0?(de=so(Lt),be=Ai):(ct&=Oe,ct!==0&&(de=so(ct),be=Ai))}else Oe=W&~Ke,Oe!==0?(de=so(Oe),be=Ai):ct!==0&&(de=so(ct),be=Ai);if(de===0)return 0;if(de=31-Ss(de),de=W&((0>de?0:1<<de)<<1)-1,F!==0&&F!==de&&(F&Ke)===0){if(so(F),be<=Ai)return F;Ai=be}if(F=R.entangledLanes,F!==0)for(R=R.entanglements,F&=de;0<F;)W=31-Ss(F),be=1<<W,de|=R[W],F&=~be;return de}function _f(R){return R=R.pendingLanes&-1073741825,R!==0?R:R&1073741824?1073741824:0}function xn(R,F){switch(R){case 15:return 1;case 14:return 2;case 12:return R=fs(24&~F),R===0?xn(10,F):R;case 10:return R=fs(192&~F),R===0?xn(8,F):R;case 8:return R=fs(3584&~F),R===0&&(R=fs(4186112&~F),R===0&&(R=512)),R;case 2:return F=fs(805306368&~F),F===0&&(F=268435456),F}throw Error(n(358,R))}function fs(R){return R&-R}function Eu(R){for(var F=[],W=0;31>W;W++)F.push(R);return F}function Ks(R,F,W){R.pendingLanes|=F;var de=F-1;R.suspendedLanes&=de,R.pingedLanes&=de,R=R.eventTimes,F=31-Ss(F),R[F]=W}var Ss=Math.clz32?Math.clz32:Uo,Au=Math.log,vu=Math.LN2;function Uo(R){return R===0?32:31-(Au(R)/vu|0)|0}var Gl=r.unstable_UserBlockingPriority,Bn=r.unstable_runWithPriority,jl=!0;function Sf(R,F,W,de){nr||mt();var be=Uc,Oe=nr;nr=!0;try{ot(be,R,F,W,de)}finally{(nr=Oe)||Pr()}}function Nc(R,F,W,de){Bn(Gl,Uc.bind(null,R,F,W,de))}function Uc(R,F,W,de){if(jl){var be;if((be=(F&4)===0)&&0<Di.length&&-1<No.indexOf(R))R=Ws(null,R,F,W,de),Di.push(R);else{var Oe=pu(R,F,W,de);if(Oe===null)be&&mo(R,de);else{if(be){if(-1<No.indexOf(R)){R=Ws(Oe,R,F,W,de),Di.push(R);return}if(yo(Oe,R,F,W,de))return;mo(R,de)}_o(R,F,de,null,W)}}}}function pu(R,F,W,de){var be=zr(de);if(be=Tf(be),be!==null){var Oe=ni(be);if(Oe===null)be=null;else{var Ke=Oe.tag;if(Ke===13){if(be=Li(Oe),be!==null)return be;be=null}else if(Ke===3){if(Oe.stateNode.hydrate)return Oe.tag===3?Oe.stateNode.containerInfo:null;be=null}else Oe!==be&&(be=null)}}return _o(R,F,de,be,W),null}var Lo=null,Sl=null,me=null;function Ve(){if(me)return me;var R,F=Sl,W=F.length,de,be="value"in Lo?Lo.value:Lo.textContent,Oe=be.length;for(R=0;R<W&&F[R]===be[R];R++);var Ke=W-R;for(de=1;de<=Ke&&F[W-de]===be[Oe-de];de++);return me=be.slice(R,1<de?1-de:void 0)}function lt(R){var F=R.keyCode;return"charCode"in R?(R=R.charCode,R===0&&F===13&&(R=13)):R=F,R===10&&(R=13),32<=R||R===13?R:0}function St(){return!0}function Qt(){return!1}function Zt(R){function F(W,de,be,Oe,Ke){this._reactName=W,this._targetInst=be,this.type=de,this.nativeEvent=Oe,this.target=Ke,this.currentTarget=null;for(var ct in R)R.hasOwnProperty(ct)&&(W=R[ct],this[ct]=W?W(Oe):Oe[ct]);return this.isDefaultPrevented=(Oe.defaultPrevented!=null?Oe.defaultPrevented:Oe.returnValue===!1)?St:Qt,this.isPropagationStopped=Qt,this}return e(F.prototype,{preventDefault:function(){this.defaultPrevented=!0;var W=this.nativeEvent;W&&(W.preventDefault?W.preventDefault():typeof W.returnValue!="unknown"&&(W.returnValue=!1),this.isDefaultPrevented=St)},stopPropagation:function(){var W=this.nativeEvent;W&&(W.stopPropagation?W.stopPropagation():typeof W.cancelBubble!="unknown"&&(W.cancelBubble=!0),this.isPropagationStopped=St)},persist:function(){},isPersistent:St}),F}var hr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(R){return R.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jr=Zt(hr),hn=e({},hr,{view:0,detail:0}),Wn=Zt(hn),Xn,ji,Ia,Ra=e({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xo,button:0,buttons:0,relatedTarget:function(R){return R.relatedTarget===void 0?R.fromElement===R.srcElement?R.toElement:R.fromElement:R.relatedTarget},movementX:function(R){return"movementX"in R?R.movementX:(R!==Ia&&(Ia&&R.type==="mousemove"?(Xn=R.screenX-Ia.screenX,ji=R.screenY-Ia.screenY):ji=Xn=0,Ia=R),Xn)},movementY:function(R){return"movementY"in R?R.movementY:ji}}),bi=Zt(Ra),lo=e({},Ra,{dataTransfer:0}),Pa=Zt(lo),Ko=e({},hn,{relatedTarget:0}),Ho=Zt(Ko),Hc=e({},hr,{animationName:0,elapsedTime:0,pseudoElement:0}),Ap=Zt(Hc),Yd=e({},hr,{clipboardData:function(R){return"clipboardData"in R?R.clipboardData:window.clipboardData}}),Qc=Zt(Yd),Ys=e({},hr,{data:0}),Vc=Zt(Ys),ql={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bu={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Yo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rc(R){var F=this.nativeEvent;return F.getModifierState?F.getModifierState(R):(R=Yo[R])?!!F[R]:!1}function Xo(){return rc}var Xs=e({},hn,{key:function(R){if(R.key){var F=ql[R.key]||R.key;if(F!=="Unidentified")return F}return R.type==="keypress"?(R=lt(R),R===13?"Enter":String.fromCharCode(R)):R.type==="keydown"||R.type==="keyup"?Bu[R.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xo,charCode:function(R){return R.type==="keypress"?lt(R):0},keyCode:function(R){return R.type==="keydown"||R.type==="keyup"?R.keyCode:0},which:function(R){return R.type==="keypress"?lt(R):R.type==="keydown"||R.type==="keyup"?R.keyCode:0}}),Ms=Zt(Xs),bo=e({},Ra,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wl=Zt(bo),ih=e({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xo}),Oa=Zt(ih),uo=e({},hr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zs=Zt(uo),kh=e({},Ra,{deltaX:function(R){return"deltaX"in R?R.deltaX:"wheelDeltaX"in R?-R.wheelDeltaX:0},deltaY:function(R){return"deltaY"in R?R.deltaY:"wheelDeltaY"in R?-R.wheelDeltaY:"wheelDelta"in R?-R.wheelDelta:0},deltaZ:0,deltaMode:0}),gu=Zt(kh),zc=[9,13,27,32],xf=A&&"CompositionEvent"in window,qi=null;A&&"documentMode"in document&&(qi=document.documentMode);var Ds=A&&"TextEvent"in window&&!qi,Cf=A&&(!xf||qi&&8<qi&&11>=qi),mu=" ",$l=!1;function nc(R,F){switch(R){case"keyup":return zc.indexOf(F.keyCode)!==-1;case"keydown":return F.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gc(R){return R=R.detail,typeof R=="object"&&"data"in R?R.data:null}var ka=!1;function Xd(R,F){switch(R){case"compositionend":return Gc(F);case"keypress":return F.which!==32?null:($l=!0,mu);case"textInput":return R=F.data,R===mu&&$l?null:R;default:return null}}function Kl(R,F){if(ka)return R==="compositionend"||!xf&&nc(R,F)?(R=Ve(),me=Sl=Lo=null,ka=!1,R):null;switch(R){case"paste":return null;case"keypress":if(!(F.ctrlKey||F.altKey||F.metaKey)||F.ctrlKey&&F.altKey){if(F.char&&1<F.char.length)return F.char;if(F.which)return String.fromCharCode(F.which)}return null;case"compositionend":return Cf&&F.locale!=="ko"?null:F.data;default:return null}}var Iu={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ah(R){var F=R&&R.nodeName&&R.nodeName.toLowerCase();return F==="input"?!!Iu[R.type]:F==="textarea"}function ic(R,F,W,de){Tt(de),F=jr(F,"onChange"),0<F.length&&(W=new Jr("onChange","change",null,W,de),R.push({event:W,listeners:F}))}var Lu=null,it=null;function gt(R){Zn(R,0)}function st(R){var F=qc(R);if(Qe(F))return R}function Ze(R,F){if(R==="change")return F}var Et=!1;if(A){var Nt;if(A){var Pt="oninput"in document;if(!Pt){var Ft=document.createElement("div");Ft.setAttribute("oninput","return;"),Pt=typeof Ft.oninput=="function"}Nt=Pt}else Nt=!1;Et=Nt&&(!document.documentMode||9<document.documentMode)}function Wt(){Lu&&(Lu.detachEvent("onpropertychange",er),it=Lu=null)}function er(R){if(R.propertyName==="value"&&st(it)){var F=[];if(ic(F,it,R,zr(R)),R=gt,nr)R(F);else{nr=!0;try{et(R,F)}finally{nr=!1,Pr()}}}}function Xt(R,F,W){R==="focusin"?(Wt(),Lu=F,it=W,Lu.attachEvent("onpropertychange",er)):R==="focusout"&&Wt()}function Rr(R){if(R==="selectionchange"||R==="keyup"||R==="keydown")return st(it)}function ar(R,F){if(R==="click")return st(F)}function Ir(R,F){if(R==="input"||R==="change")return st(F)}function gr(R,F){return R===F&&(R!==0||1/R===1/F)||R!==R&&F!==F}var cr=typeof Object.is=="function"?Object.is:gr,Kr=Object.prototype.hasOwnProperty;function Hr(R,F){if(cr(R,F))return!0;if(typeof R!="object"||R===null||typeof F!="object"||F===null)return!1;var W=Object.keys(R),de=Object.keys(F);if(W.length!==de.length)return!1;for(de=0;de<W.length;de++)if(!Kr.call(F,W[de])||!cr(R[W[de]],F[W[de]]))return!1;return!0}function Gr(R){for(;R&&R.firstChild;)R=R.firstChild;return R}function Vr(R,F){var W=Gr(R);R=0;for(var de;W;){if(W.nodeType===3){if(de=R+W.textContent.length,R<=F&&de>=F)return{node:W,offset:F-R};R=de}e:{for(;W;){if(W.nextSibling){W=W.nextSibling;break e}W=W.parentNode}W=void 0}W=Gr(W)}}function oi(R,F){return R&&F?R===F?!0:R&&R.nodeType===3?!1:F&&F.nodeType===3?oi(R,F.parentNode):"contains"in R?R.contains(F):R.compareDocumentPosition?!!(R.compareDocumentPosition(F)&16):!1:!1}function In(){for(var R=window,F=qe();F instanceof R.HTMLIFrameElement;){try{var W=typeof F.contentWindow.location.href=="string"}catch{W=!1}if(W)R=F.contentWindow;else break;F=qe(R.document)}return F}function $n(R){var F=R&&R.nodeName&&R.nodeName.toLowerCase();return F&&(F==="input"&&(R.type==="text"||R.type==="search"||R.type==="tel"||R.type==="url"||R.type==="password")||F==="textarea"||R.contentEditable==="true")}var Qr=A&&"documentMode"in document&&11>=document.documentMode,En=null,Ei=null,Qn=null,$r=!1;function An(R,F,W){var de=W.window===W?W.document:W.nodeType===9?W:W.ownerDocument;$r||En==null||En!==qe(de)||(de=En,"selectionStart"in de&&$n(de)?de={start:de.selectionStart,end:de.selectionEnd}:(de=(de.ownerDocument&&de.ownerDocument.defaultView||window).getSelection(),de={anchorNode:de.anchorNode,anchorOffset:de.anchorOffset,focusNode:de.focusNode,focusOffset:de.focusOffset}),Qn&&Hr(Qn,de)||(Qn=de,de=jr(Ei,"onSelect"),0<de.length&&(F=new Jr("onSelect","select",null,F,W),R.push({event:F,listeners:de}),F.target=En)))}Fc("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Fc("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Fc(ec,2);for(var mn="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Kn=0;Kn<mn.length;Kn++)gn.set(mn[Kn],0);h("onMouseEnter",["mouseout","mouseover"]),h("onMouseLeave",["mouseout","mouseover"]),h("onPointerEnter",["pointerout","pointerover"]),h("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ii="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),da=new Set("cancel close invalid load scroll toggle".split(" ").concat(ii));function ma(R,F,W){var de=R.type||"unknown-event";R.currentTarget=W,Ti(de,F,void 0,R),R.currentTarget=null}function Zn(R,F){F=(F&4)!==0;for(var W=0;W<R.length;W++){var de=R[W],be=de.event;de=de.listeners;e:{var Oe=void 0;if(F)for(var Ke=de.length-1;0<=Ke;Ke--){var ct=de[Ke],Lt=ct.instance,Jt=ct.currentTarget;if(ct=ct.listener,Lt!==Oe&&be.isPropagationStopped())break e;ma(be,ct,Jt),Oe=Lt}else for(Ke=0;Ke<de.length;Ke++){if(ct=de[Ke],Lt=ct.instance,Jt=ct.currentTarget,ct=ct.listener,Lt!==Oe&&be.isPropagationStopped())break e;ma(be,ct,Jt),Oe=Lt}}}if(_r)throw R=pt,_r=!1,pt=null,R}function Zr(R,F){var W=kg(F),de=R+"__bubble";W.has(de)||(ya(F,R,2,!1),W.add(de))}var Xr="_reactListening"+Math.random().toString(36).slice(2);function Fn(R){R[Xr]||(R[Xr]=!0,o.forEach(function(F){da.has(F)||si(F,!1,R,null),si(F,!0,R,null)}))}function si(R,F,W,de){var be=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,Oe=W;R==="selectionchange"&&W.nodeType!==9&&(Oe=W.ownerDocument);var Ke=kg(Oe),ct=R+"__"+(F?"capture":"bubble");Ke.has(ct)||(F&&(be|=4),ya(Oe,R,be,F),Ke.add(ct))}function ya(R,F,W,de){var be=gn.get(F);switch(be===void 0?2:be){case 0:be=Sf;break;case 1:be=Nc;break;default:be=Uc}W=be.bind(null,F,W,R),be=void 0,!Tr||F!=="touchstart"&&F!=="touchmove"&&F!=="wheel"||(be=!0),de?be!==void 0?R.addEventListener(F,W,{capture:!0,passive:be}):R.addEventListener(F,W,!0):be!==void 0?R.addEventListener(F,W,{passive:be}):R.addEventListener(F,W,!1)}function _o(R,F,W,de,be){var Oe=de;if((F&1)===0&&(F&2)===0&&de!==null)e:for(;;){if(de===null)return;var Ke=de.tag;if(Ke===3||Ke===4){var ct=de.stateNode.containerInfo;if(ct===be||ct.nodeType===8&&ct.parentNode===be)break;if(Ke===4)for(Ke=de.return;Ke!==null;){var Lt=Ke.tag;if((Lt===3||Lt===4)&&(Lt=Ke.stateNode.containerInfo,Lt===be||Lt.nodeType===8&&Lt.parentNode===be))return;Ke=Ke.return}for(;ct!==null;){if(Ke=Tf(ct),Ke===null)return;if(Lt=Ke.tag,Lt===5||Lt===6){de=Oe=Ke;continue e}ct=ct.parentNode}}de=de.return}pr(function(){var Jt=Oe,dn=zr(W),_i=[];e:{var Mr=Ju.get(R);if(Mr!==void 0){var Pn=Jr,hi=R;switch(R){case"keypress":if(lt(W)===0)break e;case"keydown":case"keyup":Pn=Ms;break;case"focusin":hi="focus",Pn=Ho;break;case"focusout":hi="blur",Pn=Ho;break;case"beforeblur":case"afterblur":Pn=Ho;break;case"click":if(W.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Pn=bi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Pn=Pa;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Pn=Oa;break;case cs:case Ls:case Vl:Pn=Ap;break;case Tu:Pn=Zs;break;case"scroll":Pn=Wn;break;case"wheel":Pn=gu;break;case"copy":case"cut":case"paste":Pn=Qc;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Pn=Wl}var Jn=(F&4)!==0,Kt=!Jn&&R==="scroll",kt=Jn?Mr!==null?Mr+"Capture":null:Mr;Jn=[];for(var bt=Jt,mr;bt!==null;){mr=bt;var Sr=mr.stateNode;if(mr.tag===5&&Sr!==null&&(mr=Sr,kt!==null&&(Sr=Ar(bt,kt),Sr!=null&&Jn.push(Js(bt,Sr,mr)))),Kt)break;bt=bt.return}0<Jn.length&&(Mr=new Pn(Mr,hi,null,W,dn),_i.push({event:Mr,listeners:Jn}))}}if((F&7)===0){e:{if(Mr=R==="mouseover"||R==="pointerover",Pn=R==="mouseout"||R==="pointerout",Mr&&(F&16)===0&&(hi=W.relatedTarget||W.fromElement)&&(Tf(hi)||hi[Uh]))break e;if((Pn||Mr)&&(Mr=dn.window===dn?dn:(Mr=dn.ownerDocument)?Mr.defaultView||Mr.parentWindow:window,Pn?(hi=W.relatedTarget||W.toElement,Pn=Jt,hi=hi?Tf(hi):null,hi!==null&&(Kt=ni(hi),hi!==Kt||hi.tag!==5&&hi.tag!==6)&&(hi=null)):(Pn=null,hi=Jt),Pn!==hi)){if(Jn=bi,Sr="onMouseLeave",kt="onMouseEnter",bt="mouse",(R==="pointerout"||R==="pointerover")&&(Jn=Wl,Sr="onPointerLeave",kt="onPointerEnter",bt="pointer"),Kt=Pn==null?Mr:qc(Pn),mr=hi==null?Mr:qc(hi),Mr=new Jn(Sr,bt+"leave",Pn,W,dn),Mr.target=Kt,Mr.relatedTarget=mr,Sr=null,Tf(dn)===Jt&&(Jn=new Jn(kt,bt+"enter",hi,W,dn),Jn.target=mr,Jn.relatedTarget=Kt,Sr=Jn),Kt=Sr,Pn&&hi)t:{for(Jn=Pn,kt=hi,bt=0,mr=Jn;mr;mr=Wi(mr))bt++;for(mr=0,Sr=kt;Sr;Sr=Wi(Sr))mr++;for(;0<bt-mr;)Jn=Wi(Jn),bt--;for(;0<mr-bt;)kt=Wi(kt),mr--;for(;bt--;){if(Jn===kt||kt!==null&&Jn===kt.alternate)break t;Jn=Wi(Jn),kt=Wi(kt)}Jn=null}else Jn=null;Pn!==null&&Zo(_i,Mr,Pn,Jn,!1),hi!==null&&Kt!==null&&Zo(_i,Kt,hi,Jn,!0)}}e:{if(Mr=Jt?qc(Jt):window,Pn=Mr.nodeName&&Mr.nodeName.toLowerCase(),Pn==="select"||Pn==="input"&&Mr.type==="file")var Si=Ze;else if(ah(Mr))if(Et)Si=Ir;else{Si=Rr;var Mn=Xt}else(Pn=Mr.nodeName)&&Pn.toLowerCase()==="input"&&(Mr.type==="checkbox"||Mr.type==="radio")&&(Si=ar);if(Si&&(Si=Si(R,Jt))){ic(_i,Si,W,dn);break e}Mn&&Mn(R,Mr,Jt),R==="focusout"&&(Mn=Mr._wrapperState)&&Mn.controlled&&Mr.type==="number"&&Be(Mr,"number",Mr.value)}switch(Mn=Jt?qc(Jt):window,R){case"focusin":(ah(Mn)||Mn.contentEditable==="true")&&(En=Mn,Ei=Jt,Qn=null);break;case"focusout":Qn=Ei=En=null;break;case"mousedown":$r=!0;break;case"contextmenu":case"mouseup":case"dragend":$r=!1,An(_i,W,dn);break;case"selectionchange":if(Qr)break;case"keydown":case"keyup":An(_i,W,dn)}var mi;if(xf)e:{switch(R){case"compositionstart":var Gi="onCompositionStart";break e;case"compositionend":Gi="onCompositionEnd";break e;case"compositionupdate":Gi="onCompositionUpdate";break e}Gi=void 0}else ka?nc(R,W)&&(Gi="onCompositionEnd"):R==="keydown"&&W.keyCode===229&&(Gi="onCompositionStart");Gi&&(Cf&&W.locale!=="ko"&&(ka||Gi!=="onCompositionStart"?Gi==="onCompositionEnd"&&ka&&(mi=Ve()):(Lo=dn,Sl="value"in Lo?Lo.value:Lo.textContent,ka=!0)),Mn=jr(Jt,Gi),0<Mn.length&&(Gi=new Vc(Gi,R,null,W,dn),_i.push({event:Gi,listeners:Mn}),mi?Gi.data=mi:(mi=Gc(W),mi!==null&&(Gi.data=mi)))),(mi=Ds?Xd(R,W):Kl(R,W))&&(Jt=jr(Jt,"onBeforeInput"),0<Jt.length&&(dn=new Vc("onBeforeInput","beforeinput",null,W,dn),_i.push({event:dn,listeners:Jt}),dn.data=mi))}Zn(_i,F)})}function Js(R,F,W){return{instance:R,listener:F,currentTarget:W}}function jr(R,F){for(var W=F+"Capture",de=[];R!==null;){var be=R,Oe=be.stateNode;be.tag===5&&Oe!==null&&(be=Oe,Oe=Ar(R,W),Oe!=null&&de.unshift(Js(R,Oe,be)),Oe=Ar(R,F),Oe!=null&&de.push(Js(R,Oe,be))),R=R.return}return de}function Wi(R){if(R===null)return null;do R=R.return;while(R&&R.tag!==5);return R||null}function Zo(R,F,W,de,be){for(var Oe=F._reactName,Ke=[];W!==null&&W!==de;){var ct=W,Lt=ct.alternate,Jt=ct.stateNode;if(Lt!==null&&Lt===de)break;ct.tag===5&&Jt!==null&&(ct=Jt,be?(Lt=Ar(W,Oe),Lt!=null&&Ke.unshift(Js(W,Lt,ct))):be||(Lt=Ar(W,Oe),Lt!=null&&Ke.push(Js(W,Lt,ct)))),W=W.return}Ke.length!==0&&R.push({event:F,listeners:Ke})}function Fa(){}var Mo=null,Fh=null;function Nh(R,F){switch(R){case"button":case"input":case"select":case"textarea":return!!F.autoFocus}return!1}function yn(R,F){return R==="textarea"||R==="option"||R==="noscript"||typeof F.children=="string"||typeof F.children=="number"||typeof F.dangerouslySetInnerHTML=="object"&&F.dangerouslySetInnerHTML!==null&&F.dangerouslySetInnerHTML.__html!=null}var Aa=typeof setTimeout=="function"?setTimeout:void 0,el=typeof clearTimeout=="function"?clearTimeout:void 0;function jc(R){R.nodeType===1?R.textContent="":R.nodeType===9&&(R=R.body,R!=null&&(R.textContent=""))}function oh(R){for(;R!=null;R=R.nextSibling){var F=R.nodeType;if(F===1||F===3)break}return R}function vp(R){R=R.previousSibling;for(var F=0;R;){if(R.nodeType===8){var W=R.data;if(W==="$"||W==="$!"||W==="$?"){if(F===0)return R;F--}else W==="/$"&&F++}R=R.previousSibling}return null}var Pg=0;function gx(R){return{$$typeof:pe,toString:R,valueOf:R}}var Og=Math.random().toString(36).slice(2),ac="__reactFiber$"+Og,sh="__reactProps$"+Og,Uh="__reactContainer$"+Og,lh="__reactEvents$"+Og;function Tf(R){var F=R[ac];if(F)return F;for(var W=R.parentNode;W;){if(F=W[Uh]||W[ac]){if(W=F.alternate,F.child!==null||W!==null&&W.child!==null)for(R=vp(R);R!==null;){if(W=R[ac])return W;R=vp(R)}return F}R=W,W=R.parentNode}return null}function nv(R){return R=R[ac]||R[Uh],!R||R.tag!==5&&R.tag!==6&&R.tag!==13&&R.tag!==3?null:R}function qc(R){if(R.tag===5||R.tag===6)return R.stateNode;throw Error(n(33))}function iv(R){return R[sh]||null}function kg(R){var F=R[lh];return F===void 0&&(F=R[lh]=new Set),F}var Fg=[],Zd=-1;function Rs(R){return{current:R}}function Qi(R){0>Zd||(R.current=Fg[Zd],Fg[Zd]=null,Zd--)}function wa(R,F){Zd++,Fg[Zd]=R.current,R.current=F}var Ef={},Qo=Rs(Ef),Jo=Rs(!1),Ps=Ef;function Hh(R,F){var W=R.type.contextTypes;if(!W)return Ef;var de=R.stateNode;if(de&&de.__reactInternalMemoizedUnmaskedChildContext===F)return de.__reactInternalMemoizedMaskedChildContext;var be={},Oe;for(Oe in W)be[Oe]=F[Oe];return de&&(R=R.stateNode,R.__reactInternalMemoizedUnmaskedChildContext=F,R.__reactInternalMemoizedMaskedChildContext=be),be}function xl(R){return R=R.childContextTypes,R!=null}function av(){Qi(Jo),Qi(Qo)}function Ng(R,F,W){if(Qo.current!==Ef)throw Error(n(168));wa(Qo,F),wa(Jo,W)}function pp(R,F,W){var de=R.stateNode;if(R=F.childContextTypes,typeof de.getChildContext!="function")return W;de=de.getChildContext();for(var be in de)if(!(be in R))throw Error(n(108,Ye(F)||"Unknown",be));return e({},W,de)}function gp(R){return R=(R=R.stateNode)&&R.__reactInternalMemoizedMergedChildContext||Ef,Ps=Qo.current,wa(Qo,R),wa(Jo,Jo.current),!0}function Ug(R,F,W){var de=R.stateNode;if(!de)throw Error(n(169));W?(R=pp(R,F,Ps),de.__reactInternalMemoizedMergedChildContext=R,Qi(Jo),Qi(Qo),wa(Qo,R)):Qi(Jo),wa(Jo,W)}var ov=null,Wc=null,mp=r.unstable_runWithPriority,Yl=r.unstable_scheduleCallback,yp=r.unstable_cancelCallback,Cw=r.unstable_shouldYield,Tw=r.unstable_requestPaint,sv=r.unstable_now,Ry=r.unstable_getCurrentPriorityLevel,wp=r.unstable_ImmediatePriority,Ew=r.unstable_UserBlockingPriority,Py=r.unstable_NormalPriority,lv=r.unstable_LowPriority,Jd=r.unstable_IdlePriority,bp={},Oy=Tw!==void 0?Tw:function(){},Bf=null,J=null,se=!1,we=sv(),Te=1e4>we?sv:function(){return sv()-we};function He(){switch(Ry()){case wp:return 99;case Ew:return 98;case Py:return 97;case lv:return 96;case Jd:return 95;default:throw Error(n(332))}}function je(R){switch(R){case 99:return wp;case 98:return Ew;case 97:return Py;case 96:return lv;case 95:return Jd;default:throw Error(n(332))}}function We(R,F){return R=je(R),mp(R,F)}function Xe(R,F,W){return R=je(R),Yl(R,F,W)}function tt(){if(J!==null){var R=J;J=null,yp(R)}ht()}function ht(){if(!se&&Bf!==null){se=!0;var R=0;try{var F=Bf;We(99,function(){for(;R<F.length;R++){var W=F[R];do W=W(!0);while(W!==null)}}),Bf=null}catch(W){throw Bf!==null&&(Bf=Bf.slice(R+1)),Yl(wp,tt),W}finally{se=!1}}}var Dt=U.ReactCurrentBatchConfig;function Vt(R,F){if(R&&R.defaultProps){F=e({},F),R=R.defaultProps;for(var W in R)F[W]===void 0&&(F[W]=R[W]);return F}return F}var ut=Rs(null),Ot=null,Gt=null,rr=null;function $t(){rr=Gt=Ot=null}function tr(R){var F=ut.current;Qi(ut),R.type._context._currentValue=F}function sr(R,F){for(;R!==null;){var W=R.alternate;if((R.childLanes&F)===F){if(W===null||(W.childLanes&F)===F)break;W.childLanes|=F}else R.childLanes|=F,W!==null&&(W.childLanes|=F);R=R.return}}function xr(R,F){Ot=R,rr=Gt=null,R=R.dependencies,R!==null&&R.firstContext!==null&&((R.lanes&F)!==0&&(va=!0),R.firstContext=null)}function dr(R,F){if(rr!==R&&F!==!1&&F!==0)if((typeof F!="number"||F===1073741823)&&(rr=R,F=1073741823),F={context:R,observedBits:F,next:null},Gt===null){if(Ot===null)throw Error(n(308));Gt=F,Ot.dependencies={lanes:0,firstContext:F,responders:null}}else Gt=Gt.next=F;return R._currentValue}var bn=!1;function an(R){R.updateQueue={baseState:R.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Bi(R,F){R=R.updateQueue,F.updateQueue===R&&(F.updateQueue={baseState:R.baseState,firstBaseUpdate:R.firstBaseUpdate,lastBaseUpdate:R.lastBaseUpdate,shared:R.shared,effects:R.effects})}function sn(R,F){return{eventTime:R,lane:F,tag:0,payload:null,callback:null,next:null}}function vi(R,F){if(R=R.updateQueue,R!==null){R=R.shared;var W=R.pending;W===null?F.next=F:(F.next=W.next,W.next=F),R.pending=F}}function Vo(R,F){var W=R.updateQueue,de=R.alternate;if(de!==null&&(de=de.updateQueue,W===de)){var be=null,Oe=null;if(W=W.firstBaseUpdate,W!==null){do{var Ke={eventTime:W.eventTime,lane:W.lane,tag:W.tag,payload:W.payload,callback:W.callback,next:null};Oe===null?be=Oe=Ke:Oe=Oe.next=Ke,W=W.next}while(W!==null);Oe===null?be=Oe=F:Oe=Oe.next=F}else be=Oe=F;W={baseState:de.baseState,firstBaseUpdate:be,lastBaseUpdate:Oe,shared:de.shared,effects:de.effects},R.updateQueue=W;return}R=W.lastBaseUpdate,R===null?W.firstBaseUpdate=F:R.next=F,W.lastBaseUpdate=F}function fi(R,F,W,de){var be=R.updateQueue;bn=!1;var Oe=be.firstBaseUpdate,Ke=be.lastBaseUpdate,ct=be.shared.pending;if(ct!==null){be.shared.pending=null;var Lt=ct,Jt=Lt.next;Lt.next=null,Ke===null?Oe=Jt:Ke.next=Jt,Ke=Lt;var dn=R.alternate;if(dn!==null){dn=dn.updateQueue;var _i=dn.lastBaseUpdate;_i!==Ke&&(_i===null?dn.firstBaseUpdate=Jt:_i.next=Jt,dn.lastBaseUpdate=Lt)}}if(Oe!==null){_i=be.baseState,Ke=0,dn=Jt=Lt=null;do{ct=Oe.lane;var Mr=Oe.eventTime;if((de&ct)===ct){dn!==null&&(dn=dn.next={eventTime:Mr,lane:0,tag:Oe.tag,payload:Oe.payload,callback:Oe.callback,next:null});e:{var Pn=R,hi=Oe;switch(ct=F,Mr=W,hi.tag){case 1:if(Pn=hi.payload,typeof Pn=="function"){_i=Pn.call(Mr,_i,ct);break e}_i=Pn;break e;case 3:Pn.flags=Pn.flags&-4097|64;case 0:if(Pn=hi.payload,ct=typeof Pn=="function"?Pn.call(Mr,_i,ct):Pn,ct==null)break e;_i=e({},_i,ct);break e;case 2:bn=!0}}Oe.callback!==null&&(R.flags|=32,ct=be.effects,ct===null?be.effects=[Oe]:ct.push(Oe))}else Mr={eventTime:Mr,lane:ct,tag:Oe.tag,payload:Oe.payload,callback:Oe.callback,next:null},dn===null?(Jt=dn=Mr,Lt=_i):dn=dn.next=Mr,Ke|=ct;if(Oe=Oe.next,Oe===null){if(ct=be.shared.pending,ct===null)break;Oe=ct.next,ct.next=null,be.lastBaseUpdate=ct,be.shared.pending=null}}while(!0);dn===null&&(Lt=_i),be.baseState=Lt,be.firstBaseUpdate=Jt,be.lastBaseUpdate=dn,Vy|=Ke,R.lanes=Ke,R.memoizedState=_i}}function Ln(R,F,W){if(R=F.effects,F.effects=null,R!==null)for(F=0;F<R.length;F++){var de=R[F],be=de.callback;if(be!==null){if(de.callback=null,de=W,typeof be!="function")throw Error(n(191,be));be.call(de)}}}var qr=new t.Component().refs;function So(R,F,W,de){F=R.memoizedState,W=W(de,F),W=W==null?F:e({},F,W),R.memoizedState=W,R.lanes===0&&(R.updateQueue.baseState=W)}var ai={isMounted:function(R){return(R=R._reactInternals)?ni(R)===R:!1},enqueueSetState:function(R,F,W){R=R._reactInternals;var de=Kc(),be=gv(R),Oe=sn(de,be);Oe.payload=F,W!=null&&(Oe.callback=W),vi(R,Oe),Zi(R,be,de)},enqueueReplaceState:function(R,F,W){R=R._reactInternals;var de=Kc(),be=gv(R),Oe=sn(de,be);Oe.tag=1,Oe.payload=F,W!=null&&(Oe.callback=W),vi(R,Oe),Zi(R,be,de)},enqueueForceUpdate:function(R,F){R=R._reactInternals;var W=Kc(),de=gv(R),be=sn(W,de);be.tag=2,F!=null&&(be.callback=F),vi(R,be),Zi(R,de,W)}};function Lr(R,F,W,de,be,Oe,Ke){return R=R.stateNode,typeof R.shouldComponentUpdate=="function"?R.shouldComponentUpdate(de,Oe,Ke):F.prototype&&F.prototype.isPureReactComponent?!Hr(W,de)||!Hr(be,Oe):!0}function ba(R,F,W){var de=!1,be=Ef,Oe=F.contextType;return typeof Oe=="object"&&Oe!==null?Oe=dr(Oe):(be=xl(F)?Ps:Qo.current,de=F.contextTypes,Oe=(de=de!=null)?Hh(R,be):Ef),F=new F(W,Oe),R.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,F.updater=ai,R.stateNode=F,F._reactInternals=R,de&&(R=R.stateNode,R.__reactInternalMemoizedUnmaskedChildContext=be,R.__reactInternalMemoizedMaskedChildContext=Oe),F}function xo(R,F,W,de){R=F.state,typeof F.componentWillReceiveProps=="function"&&F.componentWillReceiveProps(W,de),typeof F.UNSAFE_componentWillReceiveProps=="function"&&F.UNSAFE_componentWillReceiveProps(W,de),F.state!==R&&ai.enqueueReplaceState(F,F.state,null)}function tl(R,F,W,de){var be=R.stateNode;be.props=W,be.state=R.memoizedState,be.refs=qr,an(R);var Oe=F.contextType;typeof Oe=="object"&&Oe!==null?be.context=dr(Oe):(Oe=xl(F)?Ps:Qo.current,be.context=Hh(R,Oe)),fi(R,W,be,de),be.state=R.memoizedState,Oe=F.getDerivedStateFromProps,typeof Oe=="function"&&(So(R,F,Oe,W),be.state=R.memoizedState),typeof F.getDerivedStateFromProps=="function"||typeof be.getSnapshotBeforeUpdate=="function"||typeof be.UNSAFE_componentWillMount!="function"&&typeof be.componentWillMount!="function"||(F=be.state,typeof be.componentWillMount=="function"&&be.componentWillMount(),typeof be.UNSAFE_componentWillMount=="function"&&be.UNSAFE_componentWillMount(),F!==be.state&&ai.enqueueReplaceState(be,be.state,null),fi(R,W,be,de),be.state=R.memoizedState),typeof be.componentDidMount=="function"&&(R.flags|=4)}var co=Array.isArray;function hs(R,F,W){if(R=W.ref,R!==null&&typeof R!="function"&&typeof R!="object"){if(W._owner){if(W=W._owner,W){if(W.tag!==1)throw Error(n(309));var de=W.stateNode}if(!de)throw Error(n(147,R));var be=""+R;return F!==null&&F.ref!==null&&typeof F.ref=="function"&&F.ref._stringRef===be?F.ref:(F=function(Oe){var Ke=de.refs;Ke===qr&&(Ke=de.refs={}),Oe===null?delete Ke[be]:Ke[be]=Oe},F._stringRef=be,F)}if(typeof R!="string")throw Error(n(284));if(!W._owner)throw Error(n(290,R))}return R}function ds(R,F){if(R.type!=="textarea")throw Error(n(31,Object.prototype.toString.call(F)==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":F))}function As(R){function F(Kt,kt){if(R){var bt=Kt.lastEffect;bt!==null?(bt.nextEffect=kt,Kt.lastEffect=kt):Kt.firstEffect=Kt.lastEffect=kt,kt.nextEffect=null,kt.flags=8}}function W(Kt,kt){if(!R)return null;for(;kt!==null;)F(Kt,kt),kt=kt.sibling;return null}function de(Kt,kt){for(Kt=new Map;kt!==null;)kt.key!==null?Kt.set(kt.key,kt):Kt.set(kt.index,kt),kt=kt.sibling;return Kt}function be(Kt,kt){return Kt=mv(Kt,kt),Kt.index=0,Kt.sibling=null,Kt}function Oe(Kt,kt,bt){return Kt.index=bt,R?(bt=Kt.alternate,bt!==null?(bt=bt.index,bt<kt?(Kt.flags=2,kt):bt):(Kt.flags=2,kt)):kt}function Ke(Kt){return R&&Kt.alternate===null&&(Kt.flags=2),Kt}function ct(Kt,kt,bt,mr){return kt===null||kt.tag!==6?(kt=Ix(bt,Kt.mode,mr),kt.return=Kt,kt):(kt=be(kt,bt),kt.return=Kt,kt)}function Lt(Kt,kt,bt,mr){return kt!==null&&kt.elementType===bt.type?(mr=be(kt,bt.props),mr.ref=hs(Kt,kt,bt),mr.return=Kt,mr):(mr=Gw(bt.type,bt.key,bt.props,null,Kt.mode,mr),mr.ref=hs(Kt,kt,bt),mr.return=Kt,mr)}function Jt(Kt,kt,bt,mr){return kt===null||kt.tag!==4||kt.stateNode.containerInfo!==bt.containerInfo||kt.stateNode.implementation!==bt.implementation?(kt=tm(bt,Kt.mode,mr),kt.return=Kt,kt):(kt=be(kt,bt.children||[]),kt.return=Kt,kt)}function dn(Kt,kt,bt,mr,Sr){return kt===null||kt.tag!==7?(kt=Rp(bt,Kt.mode,mr,Sr),kt.return=Kt,kt):(kt=be(kt,bt),kt.return=Kt,kt)}function _i(Kt,kt,bt){if(typeof kt=="string"||typeof kt=="number")return kt=Ix(""+kt,Kt.mode,bt),kt.return=Kt,kt;if(typeof kt=="object"&&kt!==null){switch(kt.$$typeof){case N:return bt=Gw(kt.type,kt.key,kt.props,null,Kt.mode,bt),bt.ref=hs(Kt,null,kt),bt.return=Kt,bt;case H:return kt=tm(kt,Kt.mode,bt),kt.return=Kt,kt}if(co(kt)||_e(kt))return kt=Rp(kt,Kt.mode,bt,null),kt.return=Kt,kt;ds(Kt,kt)}return null}function Mr(Kt,kt,bt,mr){var Sr=kt!==null?kt.key:null;if(typeof bt=="string"||typeof bt=="number")return Sr!==null?null:ct(Kt,kt,""+bt,mr);if(typeof bt=="object"&&bt!==null){switch(bt.$$typeof){case N:return bt.key===Sr?bt.type===z?dn(Kt,kt,bt.props.children,mr,Sr):Lt(Kt,kt,bt,mr):null;case H:return bt.key===Sr?Jt(Kt,kt,bt,mr):null}if(co(bt)||_e(bt))return Sr!==null?null:dn(Kt,kt,bt,mr,null);ds(Kt,bt)}return null}function Pn(Kt,kt,bt,mr,Sr){if(typeof mr=="string"||typeof mr=="number")return Kt=Kt.get(bt)||null,ct(kt,Kt,""+mr,Sr);if(typeof mr=="object"&&mr!==null){switch(mr.$$typeof){case N:return Kt=Kt.get(mr.key===null?bt:mr.key)||null,mr.type===z?dn(kt,Kt,mr.props.children,Sr,mr.key):Lt(kt,Kt,mr,Sr);case H:return Kt=Kt.get(mr.key===null?bt:mr.key)||null,Jt(kt,Kt,mr,Sr)}if(co(mr)||_e(mr))return Kt=Kt.get(bt)||null,dn(kt,Kt,mr,Sr,null);ds(kt,mr)}return null}function hi(Kt,kt,bt,mr){for(var Sr=null,Si=null,Mn=kt,mi=kt=0,Gi=null;Mn!==null&&mi<bt.length;mi++){Mn.index>mi?(Gi=Mn,Mn=null):Gi=Mn.sibling;var yi=Mr(Kt,Mn,bt[mi],mr);if(yi===null){Mn===null&&(Mn=Gi);break}R&&Mn&&yi.alternate===null&&F(Kt,Mn),kt=Oe(yi,kt,mi),Si===null?Sr=yi:Si.sibling=yi,Si=yi,Mn=Gi}if(mi===bt.length)return W(Kt,Mn),Sr;if(Mn===null){for(;mi<bt.length;mi++)Mn=_i(Kt,bt[mi],mr),Mn!==null&&(kt=Oe(Mn,kt,mi),Si===null?Sr=Mn:Si.sibling=Mn,Si=Mn);return Sr}for(Mn=de(Kt,Mn);mi<bt.length;mi++)Gi=Pn(Mn,Kt,mi,bt[mi],mr),Gi!==null&&(R&&Gi.alternate!==null&&Mn.delete(Gi.key===null?mi:Gi.key),kt=Oe(Gi,kt,mi),Si===null?Sr=Gi:Si.sibling=Gi,Si=Gi);return R&&Mn.forEach(function(Ah){return F(Kt,Ah)}),Sr}function Jn(Kt,kt,bt,mr){var Sr=_e(bt);if(typeof Sr!="function")throw Error(n(150));if(bt=Sr.call(bt),bt==null)throw Error(n(151));for(var Si=Sr=null,Mn=kt,mi=kt=0,Gi=null,yi=bt.next();Mn!==null&&!yi.done;mi++,yi=bt.next()){Mn.index>mi?(Gi=Mn,Mn=null):Gi=Mn.sibling;var Ah=Mr(Kt,Mn,yi.value,mr);if(Ah===null){Mn===null&&(Mn=Gi);break}R&&Mn&&Ah.alternate===null&&F(Kt,Mn),kt=Oe(Ah,kt,mi),Si===null?Sr=Ah:Si.sibling=Ah,Si=Ah,Mn=Gi}if(yi.done)return W(Kt,Mn),Sr;if(Mn===null){for(;!yi.done;mi++,yi=bt.next())yi=_i(Kt,yi.value,mr),yi!==null&&(kt=Oe(yi,kt,mi),Si===null?Sr=yi:Si.sibling=yi,Si=yi);return Sr}for(Mn=de(Kt,Mn);!yi.done;mi++,yi=bt.next())yi=Pn(Mn,Kt,mi,yi.value,mr),yi!==null&&(R&&yi.alternate!==null&&Mn.delete(yi.key===null?mi:yi.key),kt=Oe(yi,kt,mi),Si===null?Sr=yi:Si.sibling=yi,Si=yi);return R&&Mn.forEach(function(Ou){return F(Kt,Ou)}),Sr}return function(Kt,kt,bt,mr){var Sr=typeof bt=="object"&&bt!==null&&bt.type===z&&bt.key===null;Sr&&(bt=bt.props.children);var Si=typeof bt=="object"&&bt!==null;if(Si)switch(bt.$$typeof){case N:e:{for(Si=bt.key,Sr=kt;Sr!==null;){if(Sr.key===Si){switch(Sr.tag){case 7:if(bt.type===z){W(Kt,Sr.sibling),kt=be(Sr,bt.props.children),kt.return=Kt,Kt=kt;break e}break;default:if(Sr.elementType===bt.type){W(Kt,Sr.sibling),kt=be(Sr,bt.props),kt.ref=hs(Kt,Sr,bt),kt.return=Kt,Kt=kt;break e}}W(Kt,Sr);break}else F(Kt,Sr);Sr=Sr.sibling}bt.type===z?(kt=Rp(bt.props.children,Kt.mode,mr,bt.key),kt.return=Kt,Kt=kt):(mr=Gw(bt.type,bt.key,bt.props,null,Kt.mode,mr),mr.ref=hs(Kt,kt,bt),mr.return=Kt,Kt=mr)}return Ke(Kt);case H:e:{for(Sr=bt.key;kt!==null;){if(kt.key===Sr)if(kt.tag===4&&kt.stateNode.containerInfo===bt.containerInfo&&kt.stateNode.implementation===bt.implementation){W(Kt,kt.sibling),kt=be(kt,bt.children||[]),kt.return=Kt,Kt=kt;break e}else{W(Kt,kt);break}else F(Kt,kt);kt=kt.sibling}kt=tm(bt,Kt.mode,mr),kt.return=Kt,Kt=kt}return Ke(Kt)}if(typeof bt=="string"||typeof bt=="number")return bt=""+bt,kt!==null&&kt.tag===6?(W(Kt,kt.sibling),kt=be(kt,bt),kt.return=Kt,Kt=kt):(W(Kt,kt),kt=Ix(bt,Kt.mode,mr),kt.return=Kt,Kt=kt),Ke(Kt);if(co(bt))return hi(Kt,kt,bt,mr);if(_e(bt))return Jn(Kt,kt,bt,mr);if(Si&&ds(Kt,bt),typeof bt>"u"&&!Sr)switch(Kt.tag){case 1:case 22:case 0:case 11:case 15:throw Error(n(152,Ye(Kt.type)||"Component"))}return W(Kt,kt)}}var Ki=As(!0),_a=As(!1),Qa={},ki=Rs(Qa),zo=Rs(Qa),Cl=Rs(Qa);function Va(R){if(R===Qa)throw Error(n(174));return R}function Tl(R,F){switch(wa(Cl,F),wa(zo,R),wa(ki,Qa),R=F.nodeType,R){case 9:case 11:F=(F=F.documentElement)?F.namespaceURI:lr(null,"");break;default:R=R===8?F.parentNode:F,F=R.namespaceURI||null,R=R.tagName,F=lr(F,R)}Qi(ki),wa(ki,F)}function ia(){Qi(ki),Qi(zo),Qi(Cl)}function es(R){Va(Cl.current);var F=Va(ki.current),W=lr(F,R.type);F!==W&&(wa(zo,R),wa(ki,W))}function Xl(R){zo.current===R&&(Qi(ki),Qi(zo))}var ln=Rs(0);function vr(R){for(var F=R;F!==null;){if(F.tag===13){var W=F.memoizedState;if(W!==null&&(W=W.dehydrated,W===null||W.data==="$?"||W.data==="$!"))return F}else if(F.tag===19&&F.memoizedProps.revealOrder!==void 0){if((F.flags&64)!==0)return F}else if(F.child!==null){F.child.return=F,F=F.child;continue}if(F===R)break;for(;F.sibling===null;){if(F.return===null||F.return===R)return null;F=F.return}F.sibling.return=F.return,F=F.sibling}return null}var pi=null,aa=null,ua=!1;function Sa(R,F){var W=ns(5,null,null,0);W.elementType="DELETED",W.type="DELETED",W.stateNode=F,W.return=R,W.flags=8,R.lastEffect!==null?(R.lastEffect.nextEffect=W,R.lastEffect=W):R.firstEffect=R.lastEffect=W}function El(R,F){switch(R.tag){case 5:var W=R.type;return F=F.nodeType!==1||W.toLowerCase()!==F.nodeName.toLowerCase()?null:F,F!==null?(R.stateNode=F,!0):!1;case 6:return F=R.pendingProps===""||F.nodeType!==3?null:F,F!==null?(R.stateNode=F,!0):!1;case 13:return!1;default:return!1}}function Mu(R){if(ua){var F=aa;if(F){var W=F;if(!El(R,F)){if(F=oh(W.nextSibling),!F||!El(R,F)){R.flags=R.flags&-1025|2,ua=!1,pi=R;return}Sa(pi,W)}pi=R,aa=oh(F.firstChild)}else R.flags=R.flags&-1025|2,ua=!1,pi=R}}function uh(R){for(R=R.return;R!==null&&R.tag!==5&&R.tag!==3&&R.tag!==13;)R=R.return;pi=R}function oc(R){if(R!==pi)return!1;if(!ua)return uh(R),ua=!0,!1;var F=R.type;if(R.tag!==5||F!=="head"&&F!=="body"&&!yn(F,R.memoizedProps))for(F=aa;F;)Sa(R,F),F=oh(F.nextSibling);if(uh(R),R.tag===13){if(R=R.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(n(317));e:{for(R=R.nextSibling,F=0;R;){if(R.nodeType===8){var W=R.data;if(W==="/$"){if(F===0){aa=oh(R.nextSibling);break e}F--}else W!=="$"&&W!=="$!"&&W!=="$?"||F++}R=R.nextSibling}aa=null}}else aa=pi?oh(R.stateNode.nextSibling):null;return!0}function ts(){aa=pi=null,ua=!1}var $c=[];function If(){for(var R=0;R<$c.length;R++)$c[R]._workInProgressVersionPrimary=null;$c.length=0}var Qh=U.ReactCurrentDispatcher,Na=U.ReactCurrentBatchConfig,uv=0,fo=null,vs=null,za=null,cv=!1,yu=!1;function rl(){throw Error(n(321))}function _p(R,F){if(F===null)return!1;for(var W=0;W<F.length&&W<R.length;W++)if(!cr(R[W],F[W]))return!1;return!0}function eA(R,F,W,de,be,Oe){if(uv=Oe,fo=F,F.memoizedState=null,F.updateQueue=null,F.lanes=0,Qh.current=R===null||R.memoizedState===null?Gh:jh,R=W(de,be),yu){Oe=0;do{if(yu=!1,!(25>Oe))throw Error(n(301));Oe+=1,za=vs=null,F.updateQueue=null,Qh.current=xp,R=W(de,be)}while(yu)}if(Qh.current=lc,F=vs!==null&&vs.next!==null,uv=0,za=vs=fo=null,cv=!1,F)throw Error(n(300));return R}function ch(){var R={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return za===null?fo.memoizedState=za=R:za=za.next=R,za}function Vh(){if(vs===null){var R=fo.alternate;R=R!==null?R.memoizedState:null}else R=vs.next;var F=za===null?fo.memoizedState:za.next;if(F!==null)za=F,vs=R;else{if(R===null)throw Error(n(310));vs=R,R={memoizedState:vs.memoizedState,baseState:vs.baseState,baseQueue:vs.baseQueue,queue:vs.queue,next:null},za===null?fo.memoizedState=za=R:za=za.next=R}return za}function wu(R,F){return typeof F=="function"?F(R):F}function tA(R){var F=Vh(),W=F.queue;if(W===null)throw Error(n(311));W.lastRenderedReducer=R;var de=vs,be=de.baseQueue,Oe=W.pending;if(Oe!==null){if(be!==null){var Ke=be.next;be.next=Oe.next,Oe.next=Ke}de.baseQueue=be=Oe,W.pending=null}if(be!==null){be=be.next,de=de.baseState;var ct=Ke=Oe=null,Lt=be;do{var Jt=Lt.lane;if((uv&Jt)===Jt)ct!==null&&(ct=ct.next={lane:0,action:Lt.action,eagerReducer:Lt.eagerReducer,eagerState:Lt.eagerState,next:null}),de=Lt.eagerReducer===R?Lt.eagerState:R(de,Lt.action);else{var dn={lane:Jt,action:Lt.action,eagerReducer:Lt.eagerReducer,eagerState:Lt.eagerState,next:null};ct===null?(Ke=ct=dn,Oe=de):ct=ct.next=dn,fo.lanes|=Jt,Vy|=Jt}Lt=Lt.next}while(Lt!==null&&Lt!==be);ct===null?Oe=de:ct.next=Ke,cr(de,F.memoizedState)||(va=!0),F.memoizedState=de,F.baseState=Oe,F.baseQueue=ct,W.lastRenderedState=de}return[F.memoizedState,W.dispatch]}function sc(R){var F=Vh(),W=F.queue;if(W===null)throw Error(n(311));W.lastRenderedReducer=R;var de=W.dispatch,be=W.pending,Oe=F.memoizedState;if(be!==null){W.pending=null;var Ke=be=be.next;do Oe=R(Oe,Ke.action),Ke=Ke.next;while(Ke!==be);cr(Oe,F.memoizedState)||(va=!0),F.memoizedState=Oe,F.baseQueue===null&&(F.baseState=Oe),W.lastRenderedState=Oe}return[Oe,de]}function ky(R,F,W){var de=F._getVersion;de=de(F._source);var be=F._workInProgressVersionPrimary;if(be!==null?R=be===de:(R=R.mutableReadLanes,(R=(uv&R)===R)&&(F._workInProgressVersionPrimary=de,$c.push(F))),R)return W(F._source);throw $c.push(F),Error(n(350))}function Ya(R,F,W,de){var be=Du;if(be===null)throw Error(n(349));var Oe=F._getVersion,Ke=Oe(F._source),ct=Qh.current,Lt=ct.useState(function(){return ky(be,F,W)}),Jt=Lt[1],dn=Lt[0];Lt=za;var _i=R.memoizedState,Mr=_i.refs,Pn=Mr.getSnapshot,hi=_i.source;_i=_i.subscribe;var Jn=fo;return R.memoizedState={refs:Mr,source:F,subscribe:de},ct.useEffect(function(){Mr.getSnapshot=W,Mr.setSnapshot=Jt;var Kt=Oe(F._source);if(!cr(Ke,Kt)){Kt=W(F._source),cr(dn,Kt)||(Jt(Kt),Kt=gv(Jn),be.mutableReadLanes|=Kt&be.pendingLanes),Kt=be.mutableReadLanes,be.entangledLanes|=Kt;for(var kt=be.entanglements,bt=Kt;0<bt;){var mr=31-Ss(bt),Sr=1<<mr;kt[mr]|=Kt,bt&=~Sr}}},[W,F,de]),ct.useEffect(function(){return de(F._source,function(){var Kt=Mr.getSnapshot,kt=Mr.setSnapshot;try{kt(Kt(F._source));var bt=gv(Jn);be.mutableReadLanes|=bt&be.pendingLanes}catch(mr){kt(function(){throw mr})}})},[F,de]),cr(Pn,W)&&cr(hi,F)&&cr(_i,de)||(R={pending:null,dispatch:null,lastRenderedReducer:wu,lastRenderedState:dn},R.dispatch=Jt=hv.bind(null,fo,R),Lt.queue=R,Lt.baseQueue=null,dn=ky(be,F,W),Lt.memoizedState=Lt.baseState=dn),dn}function rs(R,F,W){var de=Vh();return Ya(de,R,F,W)}function nl(R){var F=ch();return typeof R=="function"&&(R=R()),F.memoizedState=F.baseState=R,R=F.queue={pending:null,dispatch:null,lastRenderedReducer:wu,lastRenderedState:R},R=R.dispatch=hv.bind(null,fo,R),[F.memoizedState,R]}function Ga(R,F,W,de){return R={tag:R,create:F,destroy:W,deps:de,next:null},F=fo.updateQueue,F===null?(F={lastEffect:null},fo.updateQueue=F,F.lastEffect=R.next=R):(W=F.lastEffect,W===null?F.lastEffect=R.next=R:(de=W.next,W.next=R,R.next=de,F.lastEffect=R)),R}function Do(R){var F=ch();return R={current:R},F.memoizedState=R}function Fi(){return Vh().memoizedState}function Sp(R,F,W,de){var be=ch();fo.flags|=R,be.memoizedState=Ga(1|F,W,void 0,de===void 0?null:de)}function Hg(R,F,W,de){var be=Vh();de=de===void 0?null:de;var Oe=void 0;if(vs!==null){var Ke=vs.memoizedState;if(Oe=Ke.destroy,de!==null&&_p(de,Ke.deps)){Ga(F,W,Oe,de);return}}fo.flags|=R,be.memoizedState=Ga(1|F,W,Oe,de)}function Qg(R,F){return Sp(516,4,R,F)}function Ni(R,F){return Hg(516,4,R,F)}function zh(R,F){return Hg(4,2,R,F)}function Vg(R,F){if(typeof F=="function")return R=R(),F(R),function(){F(null)};if(F!=null)return R=R(),F.current=R,function(){F.current=null}}function rA(R,F,W){return W=W!=null?W.concat([R]):null,Hg(4,2,Vg.bind(null,F,R),W)}function zg(){}function Fy(R,F){var W=Vh();F=F===void 0?null:F;var de=W.memoizedState;return de!==null&&F!==null&&_p(F,de[1])?de[0]:(W.memoizedState=[R,F],R)}function fv(R,F){var W=Vh();F=F===void 0?null:F;var de=W.memoizedState;return de!==null&&F!==null&&_p(F,de[1])?de[0]:(R=R(),W.memoizedState=[R,F],R)}function Ny(R,F){var W=He();We(98>W?98:W,function(){R(!0)}),We(97<W?97:W,function(){var de=Na.transition;Na.transition=1;try{R(!1),F()}finally{Na.transition=de}})}function hv(R,F,W){var de=Kc(),be=gv(R),Oe={lane:be,action:W,eagerReducer:null,eagerState:null,next:null},Ke=F.pending;if(Ke===null?Oe.next=Oe:(Oe.next=Ke.next,Ke.next=Oe),F.pending=Oe,Ke=R.alternate,R===fo||Ke!==null&&Ke===fo)yu=cv=!0;else{if(R.lanes===0&&(Ke===null||Ke.lanes===0)&&(Ke=F.lastRenderedReducer,Ke!==null))try{var ct=F.lastRenderedState,Lt=Ke(ct,W);if(Oe.eagerReducer=Ke,Oe.eagerState=Lt,cr(Lt,ct))return}catch{}finally{}Zi(R,be,de)}}var lc={readContext:dr,useCallback:rl,useContext:rl,useEffect:rl,useImperativeHandle:rl,useLayoutEffect:rl,useMemo:rl,useReducer:rl,useRef:rl,useState:rl,useDebugValue:rl,useDeferredValue:rl,useTransition:rl,useMutableSource:rl,useOpaqueIdentifier:rl,unstable_isNewReconciler:!1},Gh={readContext:dr,useCallback:function(R,F){return ch().memoizedState=[R,F===void 0?null:F],R},useContext:dr,useEffect:Qg,useImperativeHandle:function(R,F,W){return W=W!=null?W.concat([R]):null,Sp(4,2,Vg.bind(null,F,R),W)},useLayoutEffect:function(R,F){return Sp(4,2,R,F)},useMemo:function(R,F){var W=ch();return F=F===void 0?null:F,R=R(),W.memoizedState=[R,F],R},useReducer:function(R,F,W){var de=ch();return F=W!==void 0?W(F):F,de.memoizedState=de.baseState=F,R=de.queue={pending:null,dispatch:null,lastRenderedReducer:R,lastRenderedState:F},R=R.dispatch=hv.bind(null,fo,R),[de.memoizedState,R]},useRef:Do,useState:nl,useDebugValue:zg,useDeferredValue:function(R){var F=nl(R),W=F[0],de=F[1];return Qg(function(){var be=Na.transition;Na.transition=1;try{de(R)}finally{Na.transition=be}},[R]),W},useTransition:function(){var R=nl(!1),F=R[0];return R=Ny.bind(null,R[1]),Do(R),[R,F]},useMutableSource:function(R,F,W){var de=ch();return de.memoizedState={refs:{getSnapshot:F,setSnapshot:null},source:R,subscribe:W},Ya(de,R,F,W)},useOpaqueIdentifier:function(){if(ua){var R=!1,F=gx(function(){throw R||(R=!0,W("r:"+(Pg++).toString(36))),Error(n(355))}),W=nl(F)[1];return(fo.mode&2)===0&&(fo.flags|=516,Ga(5,function(){W("r:"+(Pg++).toString(36))},void 0,null)),F}return F="r:"+(Pg++).toString(36),nl(F),F},unstable_isNewReconciler:!1},jh={readContext:dr,useCallback:Fy,useContext:dr,useEffect:Ni,useImperativeHandle:rA,useLayoutEffect:zh,useMemo:fv,useReducer:tA,useRef:Fi,useState:function(){return tA(wu)},useDebugValue:zg,useDeferredValue:function(R){var F=tA(wu),W=F[0],de=F[1];return Ni(function(){var be=Na.transition;Na.transition=1;try{de(R)}finally{Na.transition=be}},[R]),W},useTransition:function(){var R=tA(wu)[0];return[Fi().current,R]},useMutableSource:rs,useOpaqueIdentifier:function(){return tA(wu)[0]},unstable_isNewReconciler:!1},xp={readContext:dr,useCallback:Fy,useContext:dr,useEffect:Ni,useImperativeHandle:rA,useLayoutEffect:zh,useMemo:fv,useReducer:sc,useRef:Fi,useState:function(){return sc(wu)},useDebugValue:zg,useDeferredValue:function(R){var F=sc(wu),W=F[0],de=F[1];return Ni(function(){var be=Na.transition;Na.transition=1;try{de(R)}finally{Na.transition=be}},[R]),W},useTransition:function(){var R=sc(wu)[0];return[Fi().current,R]},useMutableSource:rs,useOpaqueIdentifier:function(){return sc(wu)[0]},unstable_isNewReconciler:!1},nA=U.ReactCurrentOwner,va=!1;function Zl(R,F,W,de){F.child=R===null?_a(F,null,W,de):Ki(F,R.child,W,de)}function Cp(R,F,W,de,be){W=W.render;var Oe=F.ref;return xr(F,be),de=eA(R,F,W,de,Oe,be),R!==null&&!va?(F.updateQueue=R.updateQueue,F.flags&=-517,R.lanes&=~be,aA(R,F,be)):(F.flags|=1,Zl(R,F,de,be),F.child)}function dv(R,F,W,de,be,Oe){if(R===null){var Ke=W.type;return typeof Ke=="function"&&!Ex(Ke)&&Ke.defaultProps===void 0&&W.compare===null&&W.defaultProps===void 0?(F.tag=15,F.type=Ke,Tp(R,F,Ke,de,be,Oe)):(R=Gw(W.type,null,de,F,F.mode,Oe),R.ref=F.ref,R.return=F,F.child=R)}return Ke=R.child,(be&Oe)===0&&(be=Ke.memoizedProps,W=W.compare,W=W!==null?W:Hr,W(be,de)&&R.ref===F.ref)?aA(R,F,Oe):(F.flags|=1,R=mv(Ke,de),R.ref=F.ref,R.return=F,F.child=R)}function Tp(R,F,W,de,be,Oe){if(R!==null&&Hr(R.memoizedProps,de)&&R.ref===F.ref)if(va=!1,(Oe&be)!==0)(R.flags&16384)!==0&&(va=!0);else return F.lanes=R.lanes,aA(R,F,Oe);return yx(R,F,W,de,Oe)}function mx(R,F,W){var de=F.pendingProps,be=de.children,Oe=R!==null?R.memoizedState:null;if(de.mode==="hidden"||de.mode==="unstable-defer-without-hiding")if((F.mode&4)===0)F.memoizedState={baseLanes:0},Xh(F,W);else if((W&1073741824)!==0)F.memoizedState={baseLanes:0},Xh(F,Oe!==null?Oe.baseLanes:W);else return R=Oe!==null?Oe.baseLanes|W:W,F.lanes=F.childLanes=1073741824,F.memoizedState={baseLanes:R},Xh(F,R),null;else Oe!==null?(de=Oe.baseLanes|W,F.memoizedState=null):de=W,Xh(F,de);return Zl(R,F,be,W),F.child}function FB(R,F){var W=F.ref;(R===null&&W!==null||R!==null&&R.ref!==W)&&(F.flags|=128)}function yx(R,F,W,de,be){var Oe=xl(W)?Ps:Qo.current;return Oe=Hh(F,Oe),xr(F,be),W=eA(R,F,W,de,Oe,be),R!==null&&!va?(F.updateQueue=R.updateQueue,F.flags&=-517,R.lanes&=~be,aA(R,F,be)):(F.flags|=1,Zl(R,F,W,be),F.child)}function NB(R,F,W,de,be){if(xl(W)){var Oe=!0;gp(F)}else Oe=!1;if(xr(F,be),F.stateNode===null)R!==null&&(R.alternate=null,F.alternate=null,F.flags|=2),ba(F,W,de),tl(F,W,de,be),de=!0;else if(R===null){var Ke=F.stateNode,ct=F.memoizedProps;Ke.props=ct;var Lt=Ke.context,Jt=W.contextType;typeof Jt=="object"&&Jt!==null?Jt=dr(Jt):(Jt=xl(W)?Ps:Qo.current,Jt=Hh(F,Jt));var dn=W.getDerivedStateFromProps,_i=typeof dn=="function"||typeof Ke.getSnapshotBeforeUpdate=="function";_i||typeof Ke.UNSAFE_componentWillReceiveProps!="function"&&typeof Ke.componentWillReceiveProps!="function"||(ct!==de||Lt!==Jt)&&xo(F,Ke,de,Jt),bn=!1;var Mr=F.memoizedState;Ke.state=Mr,fi(F,de,Ke,be),Lt=F.memoizedState,ct!==de||Mr!==Lt||Jo.current||bn?(typeof dn=="function"&&(So(F,W,dn,de),Lt=F.memoizedState),(ct=bn||Lr(F,W,ct,de,Mr,Lt,Jt))?(_i||typeof Ke.UNSAFE_componentWillMount!="function"&&typeof Ke.componentWillMount!="function"||(typeof Ke.componentWillMount=="function"&&Ke.componentWillMount(),typeof Ke.UNSAFE_componentWillMount=="function"&&Ke.UNSAFE_componentWillMount()),typeof Ke.componentDidMount=="function"&&(F.flags|=4)):(typeof Ke.componentDidMount=="function"&&(F.flags|=4),F.memoizedProps=de,F.memoizedState=Lt),Ke.props=de,Ke.state=Lt,Ke.context=Jt,de=ct):(typeof Ke.componentDidMount=="function"&&(F.flags|=4),de=!1)}else{Ke=F.stateNode,Bi(R,F),ct=F.memoizedProps,Jt=F.type===F.elementType?ct:Vt(F.type,ct),Ke.props=Jt,_i=F.pendingProps,Mr=Ke.context,Lt=W.contextType,typeof Lt=="object"&&Lt!==null?Lt=dr(Lt):(Lt=xl(W)?Ps:Qo.current,Lt=Hh(F,Lt));var Pn=W.getDerivedStateFromProps;(dn=typeof Pn=="function"||typeof Ke.getSnapshotBeforeUpdate=="function")||typeof Ke.UNSAFE_componentWillReceiveProps!="function"&&typeof Ke.componentWillReceiveProps!="function"||(ct!==_i||Mr!==Lt)&&xo(F,Ke,de,Lt),bn=!1,Mr=F.memoizedState,Ke.state=Mr,fi(F,de,Ke,be);var hi=F.memoizedState;ct!==_i||Mr!==hi||Jo.current||bn?(typeof Pn=="function"&&(So(F,W,Pn,de),hi=F.memoizedState),(Jt=bn||Lr(F,W,Jt,de,Mr,hi,Lt))?(dn||typeof Ke.UNSAFE_componentWillUpdate!="function"&&typeof Ke.componentWillUpdate!="function"||(typeof Ke.componentWillUpdate=="function"&&Ke.componentWillUpdate(de,hi,Lt),typeof Ke.UNSAFE_componentWillUpdate=="function"&&Ke.UNSAFE_componentWillUpdate(de,hi,Lt)),typeof Ke.componentDidUpdate=="function"&&(F.flags|=4),typeof Ke.getSnapshotBeforeUpdate=="function"&&(F.flags|=256)):(typeof Ke.componentDidUpdate!="function"||ct===R.memoizedProps&&Mr===R.memoizedState||(F.flags|=4),typeof Ke.getSnapshotBeforeUpdate!="function"||ct===R.memoizedProps&&Mr===R.memoizedState||(F.flags|=256),F.memoizedProps=de,F.memoizedState=hi),Ke.props=de,Ke.state=hi,Ke.context=Lt,de=Jt):(typeof Ke.componentDidUpdate!="function"||ct===R.memoizedProps&&Mr===R.memoizedState||(F.flags|=4),typeof Ke.getSnapshotBeforeUpdate!="function"||ct===R.memoizedProps&&Mr===R.memoizedState||(F.flags|=256),de=!1)}return iA(R,F,W,de,Oe,be)}function iA(R,F,W,de,be,Oe){FB(R,F);var Ke=(F.flags&64)!==0;if(!de&&!Ke)return be&&Ug(F,W,!1),aA(R,F,Oe);de=F.stateNode,nA.current=F;var ct=Ke&&typeof W.getDerivedStateFromError!="function"?null:de.render();return F.flags|=1,R!==null&&Ke?(F.child=Ki(F,R.child,null,Oe),F.child=Ki(F,null,ct,Oe)):Zl(R,F,ct,Oe),F.memoizedState=de.state,be&&Ug(F,W,!0),F.child}function Ri(R){var F=R.stateNode;F.pendingContext?Ng(R,F.pendingContext,F.pendingContext!==F.context):F.context&&Ng(R,F.context,!1),Tl(R,F.containerInfo)}var Bw={dehydrated:null,retryLane:0};function Gg(R,F,W){var de=F.pendingProps,be=ln.current,Oe=!1,Ke;return(Ke=(F.flags&64)!==0)||(Ke=R!==null&&R.memoizedState===null?!1:(be&2)!==0),Ke?(Oe=!0,F.flags&=-65):R!==null&&R.memoizedState===null||de.fallback===void 0||de.unstable_avoidThisFallback===!0||(be|=1),wa(ln,be&1),R===null?(de.fallback!==void 0&&Mu(F),R=de.children,be=de.fallback,Oe?(R=Iw(F,R,be,W),F.child.memoizedState={baseLanes:W},F.memoizedState=Bw,R):typeof de.unstable_expectedLoadTime=="number"?(R=Iw(F,R,be,W),F.child.memoizedState={baseLanes:W},F.memoizedState=Bw,F.lanes=33554432,R):(W=Bx({mode:"visible",children:R},F.mode,W,null),W.return=F,F.child=W)):R.memoizedState!==null?Oe?(de=UB(R,F,de.children,de.fallback,W),Oe=F.child,be=R.child.memoizedState,Oe.memoizedState=be===null?{baseLanes:W}:{baseLanes:be.baseLanes|W},Oe.childLanes=R.childLanes&~W,F.memoizedState=Bw,de):(W=ps(R,F,de.children,W),F.memoizedState=null,W):Oe?(de=UB(R,F,de.children,de.fallback,W),Oe=F.child,be=R.child.memoizedState,Oe.memoizedState=be===null?{baseLanes:W}:{baseLanes:be.baseLanes|W},Oe.childLanes=R.childLanes&~W,F.memoizedState=Bw,de):(W=ps(R,F,de.children,W),F.memoizedState=null,W)}function Iw(R,F,W,de){var be=R.mode,Oe=R.child;return F={mode:"hidden",children:F},(be&2)===0&&Oe!==null?(Oe.childLanes=0,Oe.pendingProps=F):Oe=Bx(F,be,0,null),W=Rp(W,be,de,null),Oe.return=R,W.return=R,Oe.sibling=W,R.child=Oe,W}function ps(R,F,W,de){var be=R.child;return R=be.sibling,W=mv(be,{mode:"visible",children:W}),(F.mode&2)===0&&(W.lanes=de),W.return=F,W.sibling=null,R!==null&&(R.nextEffect=null,R.flags=8,F.firstEffect=F.lastEffect=R),F.child=W}function UB(R,F,W,de,be){var Oe=F.mode,Ke=R.child;R=Ke.sibling;var ct={mode:"hidden",children:W};return(Oe&2)===0&&F.child!==Ke?(W=F.child,W.childLanes=0,W.pendingProps=ct,Ke=W.lastEffect,Ke!==null?(F.firstEffect=W.firstEffect,F.lastEffect=Ke,Ke.nextEffect=null):F.firstEffect=F.lastEffect=null):W=mv(Ke,ct),R!==null?de=mv(R,de):(de=Rp(de,Oe,be,null),de.flags|=2),de.return=F,W.return=F,W.sibling=de,F.child=W,de}function jg(R,F){R.lanes|=F;var W=R.alternate;W!==null&&(W.lanes|=F),sr(R.return,F)}function Lw(R,F,W,de,be,Oe){var Ke=R.memoizedState;Ke===null?R.memoizedState={isBackwards:F,rendering:null,renderingStartTime:0,last:de,tail:W,tailMode:be,lastEffect:Oe}:(Ke.isBackwards=F,Ke.rendering=null,Ke.renderingStartTime=0,Ke.last=de,Ke.tail=W,Ke.tailMode=be,Ke.lastEffect=Oe)}function HB(R,F,W){var de=F.pendingProps,be=de.revealOrder,Oe=de.tail;if(Zl(R,F,de.children,W),de=ln.current,(de&2)!==0)de=de&1|2,F.flags|=64;else{if(R!==null&&(R.flags&64)!==0)e:for(R=F.child;R!==null;){if(R.tag===13)R.memoizedState!==null&&jg(R,W);else if(R.tag===19)jg(R,W);else if(R.child!==null){R.child.return=R,R=R.child;continue}if(R===F)break e;for(;R.sibling===null;){if(R.return===null||R.return===F)break e;R=R.return}R.sibling.return=R.return,R=R.sibling}de&=1}if(wa(ln,de),(F.mode&2)===0)F.memoizedState=null;else switch(be){case"forwards":for(W=F.child,be=null;W!==null;)R=W.alternate,R!==null&&vr(R)===null&&(be=W),W=W.sibling;W=be,W===null?(be=F.child,F.child=null):(be=W.sibling,W.sibling=null),Lw(F,!1,be,W,Oe,F.lastEffect);break;case"backwards":for(W=null,be=F.child,F.child=null;be!==null;){if(R=be.alternate,R!==null&&vr(R)===null){F.child=be;break}R=be.sibling,be.sibling=W,W=be,be=R}Lw(F,!0,W,null,Oe,F.lastEffect);break;case"together":Lw(F,!1,null,null,void 0,F.lastEffect);break;default:F.memoizedState=null}return F.child}function aA(R,F,W){if(R!==null&&(F.dependencies=R.dependencies),Vy|=F.lanes,(W&F.childLanes)!==0){if(R!==null&&F.child!==R.child)throw Error(n(153));if(F.child!==null){for(R=F.child,W=mv(R,R.pendingProps),F.child=W,W.return=F;R.sibling!==null;)R=R.sibling,W=W.sibling=mv(R,R.pendingProps),W.return=F;W.sibling=null}return F.child}return null}var Mw,Dw,QB,Av;Mw=function(R,F){for(var W=F.child;W!==null;){if(W.tag===5||W.tag===6)R.appendChild(W.stateNode);else if(W.tag!==4&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===F)break;for(;W.sibling===null;){if(W.return===null||W.return===F)return;W=W.return}W.sibling.return=W.return,W=W.sibling}},Dw=function(){},QB=function(R,F,W,de){var be=R.memoizedProps;if(be!==de){R=F.stateNode,Va(ki.current);var Oe=null;switch(W){case"input":be=Re(R,be),de=Re(R,de),Oe=[];break;case"option":be=nt(R,be),de=nt(R,de),Oe=[];break;case"select":be=e({},be,{value:void 0}),de=e({},de,{value:void 0}),Oe=[];break;case"textarea":be=Mt(R,be),de=Mt(R,de),Oe=[];break;default:typeof be.onClick!="function"&&typeof de.onClick=="function"&&(R.onclick=Fa)}Nr(W,de);var Ke;W=null;for(Jt in be)if(!de.hasOwnProperty(Jt)&&be.hasOwnProperty(Jt)&&be[Jt]!=null)if(Jt==="style"){var ct=be[Jt];for(Ke in ct)ct.hasOwnProperty(Ke)&&(W||(W={}),W[Ke]="")}else Jt!=="dangerouslySetInnerHTML"&&Jt!=="children"&&Jt!=="suppressContentEditableWarning"&&Jt!=="suppressHydrationWarning"&&Jt!=="autoFocus"&&(u.hasOwnProperty(Jt)?Oe||(Oe=[]):(Oe=Oe||[]).push(Jt,null));for(Jt in de){var Lt=de[Jt];if(ct=be?.[Jt],de.hasOwnProperty(Jt)&&Lt!==ct&&(Lt!=null||ct!=null))if(Jt==="style")if(ct){for(Ke in ct)!ct.hasOwnProperty(Ke)||Lt&&Lt.hasOwnProperty(Ke)||(W||(W={}),W[Ke]="");for(Ke in Lt)Lt.hasOwnProperty(Ke)&&ct[Ke]!==Lt[Ke]&&(W||(W={}),W[Ke]=Lt[Ke])}else W||(Oe||(Oe=[]),Oe.push(Jt,W)),W=Lt;else Jt==="dangerouslySetInnerHTML"?(Lt=Lt?Lt.__html:void 0,ct=ct?ct.__html:void 0,Lt!=null&&ct!==Lt&&(Oe=Oe||[]).push(Jt,Lt)):Jt==="children"?typeof Lt!="string"&&typeof Lt!="number"||(Oe=Oe||[]).push(Jt,""+Lt):Jt!=="suppressContentEditableWarning"&&Jt!=="suppressHydrationWarning"&&(u.hasOwnProperty(Jt)?(Lt!=null&&Jt==="onScroll"&&Zr("scroll",R),Oe||ct===Lt||(Oe=[])):typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===pe?Lt.toString():(Oe=Oe||[]).push(Jt,Lt))}W&&(Oe=Oe||[]).push("style",W);var Jt=Oe;(F.updateQueue=Jt)&&(F.flags|=4)}},Av=function(R,F,W,de){W!==de&&(F.flags|=4)};function qg(R,F){if(!ua)switch(R.tailMode){case"hidden":F=R.tail;for(var W=null;F!==null;)F.alternate!==null&&(W=F),F=F.sibling;W===null?R.tail=null:W.sibling=null;break;case"collapsed":W=R.tail;for(var de=null;W!==null;)W.alternate!==null&&(de=W),W=W.sibling;de===null?F||R.tail===null?R.tail=null:R.tail.sibling=null:de.sibling=null}}function qh(R,F,W){var de=F.pendingProps;switch(F.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return xl(F.type)&&av(),null;case 3:return ia(),Qi(Jo),Qi(Qo),If(),de=F.stateNode,de.pendingContext&&(de.context=de.pendingContext,de.pendingContext=null),(R===null||R.child===null)&&(oc(F)?F.flags|=4:de.hydrate||(F.flags|=256)),Dw(F),null;case 5:Xl(F);var be=Va(Cl.current);if(W=F.type,R!==null&&F.stateNode!=null)QB(R,F,W,de,be),R.ref!==F.ref&&(F.flags|=128);else{if(!de){if(F.stateNode===null)throw Error(n(166));return null}if(R=Va(ki.current),oc(F)){de=F.stateNode,W=F.type;var Oe=F.memoizedProps;switch(de[ac]=F,de[sh]=Oe,W){case"dialog":Zr("cancel",de),Zr("close",de);break;case"iframe":case"object":case"embed":Zr("load",de);break;case"video":case"audio":for(R=0;R<ii.length;R++)Zr(ii[R],de);break;case"source":Zr("error",de);break;case"img":case"image":case"link":Zr("error",de),Zr("load",de);break;case"details":Zr("toggle",de);break;case"input":Me(de,Oe),Zr("invalid",de);break;case"select":de._wrapperState={wasMultiple:!!Oe.multiple},Zr("invalid",de);break;case"textarea":Rt(de,Oe),Zr("invalid",de)}Nr(W,Oe),R=null;for(var Ke in Oe)Oe.hasOwnProperty(Ke)&&(be=Oe[Ke],Ke==="children"?typeof be=="string"?de.textContent!==be&&(R=["children",be]):typeof be=="number"&&de.textContent!==""+be&&(R=["children",""+be]):u.hasOwnProperty(Ke)&&be!=null&&Ke==="onScroll"&&Zr("scroll",de));switch(W){case"input":ue(de),ke(de,Oe,!0);break;case"textarea":ue(de),It(de);break;case"select":case"option":break;default:typeof Oe.onClick=="function"&&(de.onclick=Fa)}de=R,F.updateQueue=de,de!==null&&(F.flags|=4)}else{switch(Ke=be.nodeType===9?be:be.ownerDocument,R===qt.html&&(R=fr(W)),R===qt.html?W==="script"?(R=Ke.createElement("div"),R.innerHTML="<script><\/script>",R=R.removeChild(R.firstChild)):typeof de.is=="string"?R=Ke.createElement(W,{is:de.is}):(R=Ke.createElement(W),W==="select"&&(Ke=R,de.multiple?Ke.multiple=!0:de.size&&(Ke.size=de.size))):R=Ke.createElementNS(R,W),R[ac]=F,R[sh]=de,Mw(R,F,!1,!1),F.stateNode=R,Ke=Ht(W,de),W){case"dialog":Zr("cancel",R),Zr("close",R),be=de;break;case"iframe":case"object":case"embed":Zr("load",R),be=de;break;case"video":case"audio":for(be=0;be<ii.length;be++)Zr(ii[be],R);be=de;break;case"source":Zr("error",R),be=de;break;case"img":case"image":case"link":Zr("error",R),Zr("load",R),be=de;break;case"details":Zr("toggle",R),be=de;break;case"input":Me(R,de),be=Re(R,de),Zr("invalid",R);break;case"option":be=nt(R,de);break;case"select":R._wrapperState={wasMultiple:!!de.multiple},be=e({},de,{value:void 0}),Zr("invalid",R);break;case"textarea":Rt(R,de),be=Mt(R,de),Zr("invalid",R);break;default:be=de}Nr(W,be);var ct=be;for(Oe in ct)if(ct.hasOwnProperty(Oe)){var Lt=ct[Oe];Oe==="style"?cn(R,Lt):Oe==="dangerouslySetInnerHTML"?(Lt=Lt?Lt.__html:void 0,Lt!=null&&br(R,Lt)):Oe==="children"?typeof Lt=="string"?(W!=="textarea"||Lt!=="")&&on(R,Lt):typeof Lt=="number"&&on(R,""+Lt):Oe!=="suppressContentEditableWarning"&&Oe!=="suppressHydrationWarning"&&Oe!=="autoFocus"&&(u.hasOwnProperty(Oe)?Lt!=null&&Oe==="onScroll"&&Zr("scroll",R):Lt!=null&&O(R,Oe,Lt,Ke))}switch(W){case"input":ue(R),ke(R,de,!1);break;case"textarea":ue(R),It(R);break;case"option":de.value!=null&&R.setAttribute("value",""+Ne(de.value));break;case"select":R.multiple=!!de.multiple,Oe=de.value,Oe!=null?ft(R,!!de.multiple,Oe,!1):de.defaultValue!=null&&ft(R,!!de.multiple,de.defaultValue,!0);break;default:typeof be.onClick=="function"&&(R.onclick=Fa)}Nh(W,de)&&(F.flags|=4)}F.ref!==null&&(F.flags|=128)}return null;case 6:if(R&&F.stateNode!=null)Av(R,F,R.memoizedProps,de);else{if(typeof de!="string"&&F.stateNode===null)throw Error(n(166));W=Va(Cl.current),Va(ki.current),oc(F)?(de=F.stateNode,W=F.memoizedProps,de[ac]=F,de.nodeValue!==W&&(F.flags|=4)):(de=(W.nodeType===9?W:W.ownerDocument).createTextNode(de),de[ac]=F,F.stateNode=de)}return null;case 13:return Qi(ln),de=F.memoizedState,(F.flags&64)!==0?(F.lanes=W,F):(de=de!==null,W=!1,R===null?F.memoizedProps.fallback!==void 0&&oc(F):W=R.memoizedState!==null,de&&!W&&(F.mode&2)!==0&&(R===null&&F.memoizedProps.unstable_avoidThisFallback!==!0||(ln.current&1)!==0?al===0&&(al=3):((al===0||al===3)&&(al=4),Du===null||(Vy&134217727)===0&&(Bp&134217727)===0||Yc(Du,Jl))),(de||W)&&(F.flags|=4),null);case 4:return ia(),Dw(F),R===null&&Fn(F.stateNode.containerInfo),null;case 10:return tr(F),null;case 17:return xl(F.type)&&av(),null;case 19:if(Qi(ln),de=F.memoizedState,de===null)return null;if(Oe=(F.flags&64)!==0,Ke=de.rendering,Ke===null)if(Oe)qg(de,!1);else{if(al!==0||R!==null&&(R.flags&64)!==0)for(R=F.child;R!==null;){if(Ke=vr(R),Ke!==null){for(F.flags|=64,qg(de,!1),Oe=Ke.updateQueue,Oe!==null&&(F.updateQueue=Oe,F.flags|=4),de.lastEffect===null&&(F.firstEffect=null),F.lastEffect=de.lastEffect,de=W,W=F.child;W!==null;)Oe=W,R=de,Oe.flags&=2,Oe.nextEffect=null,Oe.firstEffect=null,Oe.lastEffect=null,Ke=Oe.alternate,Ke===null?(Oe.childLanes=0,Oe.lanes=R,Oe.child=null,Oe.memoizedProps=null,Oe.memoizedState=null,Oe.updateQueue=null,Oe.dependencies=null,Oe.stateNode=null):(Oe.childLanes=Ke.childLanes,Oe.lanes=Ke.lanes,Oe.child=Ke.child,Oe.memoizedProps=Ke.memoizedProps,Oe.memoizedState=Ke.memoizedState,Oe.updateQueue=Ke.updateQueue,Oe.type=Ke.type,R=Ke.dependencies,Oe.dependencies=R===null?null:{lanes:R.lanes,firstContext:R.firstContext}),W=W.sibling;return wa(ln,ln.current&1|2),F.child}R=R.sibling}de.tail!==null&&Te()>Nw&&(F.flags|=64,Oe=!0,qg(de,!1),F.lanes=33554432)}else{if(!Oe)if(R=vr(Ke),R!==null){if(F.flags|=64,Oe=!0,W=R.updateQueue,W!==null&&(F.updateQueue=W,F.flags|=4),qg(de,!0),de.tail===null&&de.tailMode==="hidden"&&!Ke.alternate&&!ua)return F=F.lastEffect=de.lastEffect,F!==null&&(F.nextEffect=null),null}else 2*Te()-de.renderingStartTime>Nw&&W!==1073741824&&(F.flags|=64,Oe=!0,qg(de,!1),F.lanes=33554432);de.isBackwards?(Ke.sibling=F.child,F.child=Ke):(W=de.last,W!==null?W.sibling=Ke:F.child=Ke,de.last=Ke)}return de.tail!==null?(W=de.tail,de.rendering=W,de.tail=W.sibling,de.lastEffect=F.lastEffect,de.renderingStartTime=Te(),W.sibling=null,F=ln.current,wa(ln,Oe?F&1|2:F&1),W):null;case 23:case 24:return lA(),R!==null&&R.memoizedState!==null!=(F.memoizedState!==null)&&de.mode!=="unstable-defer-without-hiding"&&(F.flags|=4),null}throw Error(n(156,F.tag))}function cF(R){switch(R.tag){case 1:xl(R.type)&&av();var F=R.flags;return F&4096?(R.flags=F&-4097|64,R):null;case 3:if(ia(),Qi(Jo),Qi(Qo),If(),F=R.flags,(F&64)!==0)throw Error(n(285));return R.flags=F&-4097|64,R;case 5:return Xl(R),null;case 13:return Qi(ln),F=R.flags,F&4096?(R.flags=F&-4097|64,R):null;case 19:return Qi(ln),null;case 4:return ia(),null;case 10:return tr(R),null;case 23:case 24:return lA(),null;default:return null}}function bx(R,F){try{var W="",de=F;do W+=ze(de),de=de.return;while(de);var be=W}catch(Oe){be=`
Error generating stack: `+Oe.message+`
`+Oe.stack}return{value:R,source:F,stack:be}}function Uy(R,F){try{console.error(F.value)}catch(W){setTimeout(function(){throw W})}}var fF=typeof WeakMap=="function"?WeakMap:Map;function _x(R,F,W){W=sn(-1,W),W.tag=3,W.payload={element:null};var de=F.value;return W.callback=function(){Xg||(Xg=!0,Gy=de),Uy(R,F)},W}function VB(R,F,W){W=sn(-1,W),W.tag=3;var de=R.type.getDerivedStateFromError;if(typeof de=="function"){var be=F.value;W.payload=function(){return Uy(R,F),de(be)}}var Oe=R.stateNode;return Oe!==null&&typeof Oe.componentDidCatch=="function"&&(W.callback=function(){typeof de!="function"&&(Wh===null?Wh=new Set([this]):Wh.add(this),Uy(R,F));var Ke=F.stack;this.componentDidCatch(F.value,{componentStack:Ke!==null?Ke:""})}),W}var hF=typeof WeakSet=="function"?WeakSet:Set;function zB(R){var F=R.ref;if(F!==null)if(typeof F=="function")try{F(null)}catch(W){Ru(R,W)}else F.current=null}function dF(R,F){switch(F.tag){case 0:case 11:case 15:case 22:return;case 1:if(F.flags&256&&R!==null){var W=R.memoizedProps,de=R.memoizedState;R=F.stateNode,F=R.getSnapshotBeforeUpdate(F.elementType===F.type?W:Vt(F.type,W),de),R.__reactInternalSnapshotBeforeUpdate=F}return;case 3:F.flags&256&&jc(F.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(n(163))}function Rw(R,F,W){switch(W.tag){case 0:case 11:case 15:case 22:if(F=W.updateQueue,F=F!==null?F.lastEffect:null,F!==null){R=F=F.next;do{if((R.tag&3)===3){var de=R.create;R.destroy=de()}R=R.next}while(R!==F)}if(F=W.updateQueue,F=F!==null?F.lastEffect:null,F!==null){R=F=F.next;do{var be=R;de=be.next,be=be.tag,(be&4)!==0&&(be&1)!==0&&(em(W,R),Xc(W,R)),R=de}while(R!==F)}return;case 1:R=W.stateNode,W.flags&4&&(F===null?R.componentDidMount():(de=W.elementType===W.type?F.memoizedProps:Vt(W.type,F.memoizedProps),R.componentDidUpdate(de,F.memoizedState,R.__reactInternalSnapshotBeforeUpdate))),F=W.updateQueue,F!==null&&Ln(W,F,R);return;case 3:if(F=W.updateQueue,F!==null){if(R=null,W.child!==null)switch(W.child.tag){case 5:R=W.child.stateNode;break;case 1:R=W.child.stateNode}Ln(W,F,R)}return;case 5:R=W.stateNode,F===null&&W.flags&4&&Nh(W.type,W.memoizedProps)&&R.focus();return;case 6:return;case 4:return;case 12:return;case 13:W.memoizedState===null&&(W=W.alternate,W!==null&&(W=W.memoizedState,W!==null&&(W=W.dehydrated,W!==null&&Ql(W))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(n(163))}function vv(R,F){for(var W=R;;){if(W.tag===5){var de=W.stateNode;if(F)de=de.style,typeof de.setProperty=="function"?de.setProperty("display","none","important"):de.display="none";else{de=W.stateNode;var be=W.memoizedProps.style;be=be!=null&&be.hasOwnProperty("display")?be.display:null,de.style.display=Yr("display",be)}}else if(W.tag===6)W.stateNode.nodeValue=F?"":W.memoizedProps;else if((W.tag!==23&&W.tag!==24||W.memoizedState===null||W===R)&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===R)break;for(;W.sibling===null;){if(W.return===null||W.return===R)return;W=W.return}W.sibling.return=W.return,W=W.sibling}}function GB(R,F){if(Wc&&typeof Wc.onCommitFiberUnmount=="function")try{Wc.onCommitFiberUnmount(ov,F)}catch{}switch(F.tag){case 0:case 11:case 14:case 15:case 22:if(R=F.updateQueue,R!==null&&(R=R.lastEffect,R!==null)){var W=R=R.next;do{var de=W,be=de.destroy;if(de=de.tag,be!==void 0)if((de&4)!==0)em(F,W);else{de=F;try{be()}catch(Oe){Ru(de,Oe)}}W=W.next}while(W!==R)}break;case 1:if(zB(F),R=F.stateNode,typeof R.componentWillUnmount=="function")try{R.props=F.memoizedProps,R.state=F.memoizedState,R.componentWillUnmount()}catch(Oe){Ru(F,Oe)}break;case 5:zB(F);break;case 4:xx(R,F)}}function jB(R){R.alternate=null,R.child=null,R.dependencies=null,R.firstEffect=null,R.lastEffect=null,R.memoizedProps=null,R.memoizedState=null,R.pendingProps=null,R.return=null,R.updateQueue=null}function qB(R){return R.tag===5||R.tag===3||R.tag===4}function Pw(R){e:{for(var F=R.return;F!==null;){if(qB(F))break e;F=F.return}throw Error(n(160))}var W=F;switch(F=W.stateNode,W.tag){case 5:var de=!1;break;case 3:F=F.containerInfo,de=!0;break;case 4:F=F.containerInfo,de=!0;break;default:throw Error(n(161))}W.flags&16&&(on(F,""),W.flags&=-17);e:t:for(W=R;;){for(;W.sibling===null;){if(W.return===null||qB(W.return)){W=null;break e}W=W.return}for(W.sibling.return=W.return,W=W.sibling;W.tag!==5&&W.tag!==6&&W.tag!==18;){if(W.flags&2||W.child===null||W.tag===4)continue t;W.child.return=W,W=W.child}if(!(W.flags&2)){W=W.stateNode;break e}}de?Sx(R,W,F):Hy(R,W,F)}function Sx(R,F,W){var de=R.tag,be=de===5||de===6;if(be)R=be?R.stateNode:R.stateNode.instance,F?W.nodeType===8?W.parentNode.insertBefore(R,F):W.insertBefore(R,F):(W.nodeType===8?(F=W.parentNode,F.insertBefore(R,W)):(F=W,F.appendChild(R)),W=W._reactRootContainer,W!=null||F.onclick!==null||(F.onclick=Fa));else if(de!==4&&(R=R.child,R!==null))for(Sx(R,F,W),R=R.sibling;R!==null;)Sx(R,F,W),R=R.sibling}function Hy(R,F,W){var de=R.tag,be=de===5||de===6;if(be)R=be?R.stateNode:R.stateNode.instance,F?W.insertBefore(R,F):W.appendChild(R);else if(de!==4&&(R=R.child,R!==null))for(Hy(R,F,W),R=R.sibling;R!==null;)Hy(R,F,W),R=R.sibling}function xx(R,F){for(var W=F,de=!1,be,Oe;;){if(!de){de=W.return;e:for(;;){if(de===null)throw Error(n(160));switch(be=de.stateNode,de.tag){case 5:Oe=!1;break e;case 3:be=be.containerInfo,Oe=!0;break e;case 4:be=be.containerInfo,Oe=!0;break e}de=de.return}de=!0}if(W.tag===5||W.tag===6){e:for(var Ke=R,ct=W,Lt=ct;;)if(GB(Ke,Lt),Lt.child!==null&&Lt.tag!==4)Lt.child.return=Lt,Lt=Lt.child;else{if(Lt===ct)break e;for(;Lt.sibling===null;){if(Lt.return===null||Lt.return===ct)break e;Lt=Lt.return}Lt.sibling.return=Lt.return,Lt=Lt.sibling}Oe?(Ke=be,ct=W.stateNode,Ke.nodeType===8?Ke.parentNode.removeChild(ct):Ke.removeChild(ct)):be.removeChild(W.stateNode)}else if(W.tag===4){if(W.child!==null){be=W.stateNode.containerInfo,Oe=!0,W.child.return=W,W=W.child;continue}}else if(GB(R,W),W.child!==null){W.child.return=W,W=W.child;continue}if(W===F)break;for(;W.sibling===null;){if(W.return===null||W.return===F)return;W=W.return,W.tag===4&&(de=!1)}W.sibling.return=W.return,W=W.sibling}}function Wg(R,F){switch(F.tag){case 0:case 11:case 14:case 15:case 22:var W=F.updateQueue;if(W=W!==null?W.lastEffect:null,W!==null){var de=W=W.next;do(de.tag&3)===3&&(R=de.destroy,de.destroy=void 0,R!==void 0&&R()),de=de.next;while(de!==W)}return;case 1:return;case 5:if(W=F.stateNode,W!=null){de=F.memoizedProps;var be=R!==null?R.memoizedProps:de;R=F.type;var Oe=F.updateQueue;if(F.updateQueue=null,Oe!==null){for(W[sh]=de,R==="input"&&de.type==="radio"&&de.name!=null&&Ge(W,de),Ht(R,be),F=Ht(R,de),be=0;be<Oe.length;be+=2){var Ke=Oe[be],ct=Oe[be+1];Ke==="style"?cn(W,ct):Ke==="dangerouslySetInnerHTML"?br(W,ct):Ke==="children"?on(W,ct):O(W,Ke,ct,F)}switch(R){case"input":Pe(W,de);break;case"textarea":Bt(W,de);break;case"select":R=W._wrapperState.wasMultiple,W._wrapperState.wasMultiple=!!de.multiple,Oe=de.value,Oe!=null?ft(W,!!de.multiple,Oe,!1):R!==!!de.multiple&&(de.defaultValue!=null?ft(W,!!de.multiple,de.defaultValue,!0):ft(W,!!de.multiple,de.multiple?[]:"",!1))}}}return;case 6:if(F.stateNode===null)throw Error(n(162));F.stateNode.nodeValue=F.memoizedProps;return;case 3:W=F.stateNode,W.hydrate&&(W.hydrate=!1,Ql(W.containerInfo));return;case 12:return;case 13:F.memoizedState!==null&&(Kg=Te(),vv(F.child,!0)),Ow(F);return;case 19:Ow(F);return;case 17:return;case 23:case 24:vv(F,F.memoizedState!==null);return}throw Error(n(163))}function Ow(R){var F=R.updateQueue;if(F!==null){R.updateQueue=null;var W=R.stateNode;W===null&&(W=R.stateNode=new hF),F.forEach(function(de){var be=gF.bind(null,R,de);W.has(de)||(W.add(de),de.then(be,be))})}}function AF(R,F){return R!==null&&(R=R.memoizedState,R===null||R.dehydrated!==null)?(F=F.memoizedState,F!==null&&F.dehydrated===null):!1}var WB=Math.ceil,Qy=U.ReactCurrentDispatcher,kw=U.ReactCurrentOwner,gi=0,Du=null,il=null,Jl=0,Ep=0,Cx=Rs(0),al=0,Fw=null,$g=0,Vy=0,Bp=0,zy=0,oA=null,Kg=0,Nw=1/0;function Yg(){Nw=Te()+500}var en=null,Xg=!1,Gy=null,Wh=null,xs=!1,Bl=null,Ip=90,jy=[],sA=[],Lf=null,pv=0,Zg=null,Lp=-1,$h=0,qy=0,Jg=null,Uw=!1;function Kc(){return(gi&48)!==0?Te():Lp!==-1?Lp:Lp=Te()}function gv(R){if(R=R.mode,(R&2)===0)return 1;if((R&4)===0)return He()===99?1:2;if($h===0&&($h=$g),Dt.transition!==0){qy!==0&&(qy=oA!==null?oA.pendingLanes:0),R=$h;var F=4186112&~qy;return F&=-F,F===0&&(R=4186112&~R,F=R&-R,F===0&&(F=8192)),F}return R=He(),(gi&4)!==0&&R===98?R=xn(12,$h):(R=_l(R),R=xn(R,$h)),R}function Zi(R,F,W){if(50<pv)throw pv=0,Zg=null,Error(n(185));if(R=Kh(R,F),R===null)return null;Ks(R,F,W),R===Du&&(Bp|=F,al===4&&Yc(R,Jl));var de=He();F===1?(gi&8)!==0&&(gi&48)===0?Mf(R):(Il(R,W),gi===0&&(Yg(),tt())):((gi&4)===0||de!==98&&de!==99||(Lf===null?Lf=new Set([R]):Lf.add(R)),Il(R,W)),oA=R}function Kh(R,F){R.lanes|=F;var W=R.alternate;for(W!==null&&(W.lanes|=F),W=R,R=R.return;R!==null;)R.childLanes|=F,W=R.alternate,W!==null&&(W.childLanes|=F),W=R,R=R.return;return W.tag===3?W.stateNode:null}function Il(R,F){for(var W=R.callbackNode,de=R.suspendedLanes,be=R.pingedLanes,Oe=R.expirationTimes,Ke=R.pendingLanes;0<Ke;){var ct=31-Ss(Ke),Lt=1<<ct,Jt=Oe[ct];if(Jt===-1){if((Lt&de)===0||(Lt&be)!==0){Jt=F,so(Lt);var dn=Ai;Oe[ct]=10<=dn?Jt+250:6<=dn?Jt+5e3:-1}}else Jt<=F&&(R.expiredLanes|=Lt);Ke&=~Lt}if(de=tc(R,R===Du?Jl:0),F=Ai,de===0)W!==null&&(W!==bp&&yp(W),R.callbackNode=null,R.callbackPriority=0);else{if(W!==null){if(R.callbackPriority===F)return;W!==bp&&yp(W)}F===15?(W=Mf.bind(null,R),Bf===null?(Bf=[W],J=Yl(wp,ht)):Bf.push(W),W=bp):F===14?W=Xe(99,Mf.bind(null,R)):(W=zl(F),W=Xe(W,fh.bind(null,R))),R.callbackPriority=F,R.callbackNode=W}}function fh(R){if(Lp=-1,qy=$h=0,(gi&48)!==0)throw Error(n(327));var F=R.callbackNode;if(cA()&&R.callbackNode!==F)return null;var W=tc(R,R===Du?Jl:0);if(W===0)return null;var de=W,be=gi;gi|=16;var Oe=uA();(Du!==R||Jl!==de)&&(Yg(),uc(R,de));do try{Tx();break}catch(ct){Vw(R,ct)}while(!0);if($t(),Qy.current=Oe,gi=be,il!==null?de=0:(Du=null,Jl=0,de=al),($g&Bp)!==0)uc(R,0);else if(de!==0){if(de===2&&(gi|=64,R.hydrate&&(R.hydrate=!1,jc(R.containerInfo)),W=_f(R),W!==0&&(de=Mp(R,W))),de===1)throw F=Fw,uc(R,0),Yc(R,W),Il(R,Te()),F;switch(R.finishedWork=R.current.alternate,R.finishedLanes=W,de){case 0:case 1:throw Error(n(345));case 2:cc(R);break;case 3:if(Yc(R,W),(W&62914560)===W&&(de=Kg+500-Te(),10<de)){if(tc(R,0)!==0)break;if(be=R.suspendedLanes,(be&W)!==W){Kc(),R.pingedLanes|=R.suspendedLanes&be;break}R.timeoutHandle=Aa(cc.bind(null,R),de);break}cc(R);break;case 4:if(Yc(R,W),(W&4186112)===W)break;for(de=R.eventTimes,be=-1;0<W;){var Ke=31-Ss(W);Oe=1<<Ke,Ke=de[Ke],Ke>be&&(be=Ke),W&=~Oe}if(W=be,W=Te()-W,W=(120>W?120:480>W?480:1080>W?1080:1920>W?1920:3e3>W?3e3:4320>W?4320:1960*WB(W/1960))-W,10<W){R.timeoutHandle=Aa(cc.bind(null,R),W);break}cc(R);break;case 5:cc(R);break;default:throw Error(n(329))}}return Il(R,Te()),R.callbackNode===F?fh.bind(null,R):null}function Yc(R,F){for(F&=~zy,F&=~Bp,R.suspendedLanes|=F,R.pingedLanes&=~F,R=R.expirationTimes;0<F;){var W=31-Ss(F),de=1<<W;R[W]=-1,F&=~de}}function Mf(R){if((gi&48)!==0)throw Error(n(327));if(cA(),R===Du&&(R.expiredLanes&Jl)!==0){var F=Jl,W=Mp(R,F);($g&Bp)!==0&&(F=tc(R,F),W=Mp(R,F))}else F=tc(R,0),W=Mp(R,F);if(R.tag!==0&&W===2&&(gi|=64,R.hydrate&&(R.hydrate=!1,jc(R.containerInfo)),F=_f(R),F!==0&&(W=Mp(R,F))),W===1)throw W=Fw,uc(R,0),Yc(R,F),Il(R,Te()),W;return R.finishedWork=R.current.alternate,R.finishedLanes=F,cc(R),Il(R,Te()),null}function Yh(){if(Lf!==null){var R=Lf;Lf=null,R.forEach(function(F){F.expiredLanes|=24&F.pendingLanes,Il(F,Te())})}tt()}function Hw(R,F){var W=gi;gi|=1;try{return R(F)}finally{gi=W,gi===0&&(Yg(),tt())}}function Qw(R,F){var W=gi;gi&=-2,gi|=8;try{return R(F)}finally{gi=W,gi===0&&(Yg(),tt())}}function Xh(R,F){wa(Cx,Ep),Ep|=F,$g|=F}function lA(){Ep=Cx.current,Qi(Cx)}function uc(R,F){R.finishedWork=null,R.finishedLanes=0;var W=R.timeoutHandle;if(W!==-1&&(R.timeoutHandle=-1,el(W)),il!==null)for(W=il.return;W!==null;){var de=W;switch(de.tag){case 1:de=de.type.childContextTypes,de!=null&&av();break;case 3:ia(),Qi(Jo),Qi(Qo),If();break;case 5:Xl(de);break;case 4:ia();break;case 13:Qi(ln);break;case 19:Qi(ln);break;case 10:tr(de);break;case 23:case 24:lA()}W=W.return}Du=R,il=mv(R.current,null),Jl=Ep=$g=F,al=0,Fw=null,zy=Bp=Vy=0}function Vw(R,F){do{var W=il;try{if($t(),Qh.current=lc,cv){for(var de=fo.memoizedState;de!==null;){var be=de.queue;be!==null&&(be.pending=null),de=de.next}cv=!1}if(uv=0,za=vs=fo=null,yu=!1,kw.current=null,W===null||W.return===null){al=1,Fw=F,il=null;break}e:{var Oe=R,Ke=W.return,ct=W,Lt=F;if(F=Jl,ct.flags|=2048,ct.firstEffect=ct.lastEffect=null,Lt!==null&&typeof Lt=="object"&&typeof Lt.then=="function"){var Jt=Lt;if((ct.mode&2)===0){var dn=ct.alternate;dn?(ct.updateQueue=dn.updateQueue,ct.memoizedState=dn.memoizedState,ct.lanes=dn.lanes):(ct.updateQueue=null,ct.memoizedState=null)}var _i=(ln.current&1)!==0,Mr=Ke;do{var Pn;if(Pn=Mr.tag===13){var hi=Mr.memoizedState;if(hi!==null)Pn=hi.dehydrated!==null;else{var Jn=Mr.memoizedProps;Pn=Jn.fallback===void 0?!1:Jn.unstable_avoidThisFallback!==!0?!0:!_i}}if(Pn){var Kt=Mr.updateQueue;if(Kt===null){var kt=new Set;kt.add(Jt),Mr.updateQueue=kt}else Kt.add(Jt);if((Mr.mode&2)===0){if(Mr.flags|=64,ct.flags|=16384,ct.flags&=-2981,ct.tag===1)if(ct.alternate===null)ct.tag=17;else{var bt=sn(-1,1);bt.tag=2,vi(ct,bt)}ct.lanes|=1;break e}Lt=void 0,ct=F;var mr=Oe.pingCache;if(mr===null?(mr=Oe.pingCache=new fF,Lt=new Set,mr.set(Jt,Lt)):(Lt=mr.get(Jt),Lt===void 0&&(Lt=new Set,mr.set(Jt,Lt))),!Lt.has(ct)){Lt.add(ct);var Sr=Dp.bind(null,Oe,Jt,ct);Jt.then(Sr,Sr)}Mr.flags|=4096,Mr.lanes=F;break e}Mr=Mr.return}while(Mr!==null);Lt=Error((Ye(ct.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}al!==5&&(al=2),Lt=bx(Lt,ct),Mr=Ke;do{switch(Mr.tag){case 3:Oe=Lt,Mr.flags|=4096,F&=-F,Mr.lanes|=F;var Si=_x(Mr,Oe,F);Vo(Mr,Si);break e;case 1:Oe=Lt;var Mn=Mr.type,mi=Mr.stateNode;if((Mr.flags&64)===0&&(typeof Mn.getDerivedStateFromError=="function"||mi!==null&&typeof mi.componentDidCatch=="function"&&(Wh===null||!Wh.has(mi)))){Mr.flags|=4096,F&=-F,Mr.lanes|=F;var Gi=VB(Mr,Oe,F);Vo(Mr,Gi);break e}}Mr=Mr.return}while(Mr!==null)}hh(W)}catch(yi){F=yi,il===W&&W!==null&&(il=W=W.return);continue}break}while(!0)}function uA(){var R=Qy.current;return Qy.current=lc,R===null?lc:R}function Mp(R,F){var W=gi;gi|=16;var de=uA();Du===R&&Jl===F||uc(R,F);do try{Wy();break}catch(be){Vw(R,be)}while(!0);if($t(),gi=W,Qy.current=de,il!==null)throw Error(n(261));return Du=null,Jl=0,al}function Wy(){for(;il!==null;)zw(il)}function Tx(){for(;il!==null&&!Cw();)zw(il)}function zw(R){var F=KB(R.alternate,R,Ep);R.memoizedProps=R.pendingProps,F===null?hh(R):il=F,kw.current=null}function hh(R){var F=R;do{var W=F.alternate;if(R=F.return,(F.flags&2048)===0){if(W=qh(W,F,Ep),W!==null){il=W;return}if(W=F,W.tag!==24&&W.tag!==23||W.memoizedState===null||(Ep&1073741824)!==0||(W.mode&4)===0){for(var de=0,be=W.child;be!==null;)de|=be.lanes|be.childLanes,be=be.sibling;W.childLanes=de}R!==null&&(R.flags&2048)===0&&(R.firstEffect===null&&(R.firstEffect=F.firstEffect),F.lastEffect!==null&&(R.lastEffect!==null&&(R.lastEffect.nextEffect=F.firstEffect),R.lastEffect=F.lastEffect),1<F.flags&&(R.lastEffect!==null?R.lastEffect.nextEffect=F:R.firstEffect=F,R.lastEffect=F))}else{if(W=cF(F),W!==null){W.flags&=2047,il=W;return}R!==null&&(R.firstEffect=R.lastEffect=null,R.flags|=2048)}if(F=F.sibling,F!==null){il=F;return}il=F=R}while(F!==null);al===0&&(al=5)}function cc(R){var F=He();return We(99,vF.bind(null,R,F)),null}function vF(R,F){do cA();while(Bl!==null);if((gi&48)!==0)throw Error(n(327));var W=R.finishedWork;if(W===null)return null;if(R.finishedWork=null,R.finishedLanes=0,W===R.current)throw Error(n(177));R.callbackNode=null;var de=W.lanes|W.childLanes,be=de,Oe=R.pendingLanes&~be;R.pendingLanes=be,R.suspendedLanes=0,R.pingedLanes=0,R.expiredLanes&=be,R.mutableReadLanes&=be,R.entangledLanes&=be,be=R.entanglements;for(var Ke=R.eventTimes,ct=R.expirationTimes;0<Oe;){var Lt=31-Ss(Oe),Jt=1<<Lt;be[Lt]=0,Ke[Lt]=-1,ct[Lt]=-1,Oe&=~Jt}if(Lf!==null&&(de&24)===0&&Lf.has(R)&&Lf.delete(R),R===Du&&(il=Du=null,Jl=0),1<W.flags?W.lastEffect!==null?(W.lastEffect.nextEffect=W,de=W.firstEffect):de=W:de=W.firstEffect,de!==null){if(be=gi,gi|=32,kw.current=null,Mo=jl,Ke=In(),$n(Ke)){if("selectionStart"in Ke)ct={start:Ke.selectionStart,end:Ke.selectionEnd};else e:if(ct=(ct=Ke.ownerDocument)&&ct.defaultView||window,(Jt=ct.getSelection&&ct.getSelection())&&Jt.rangeCount!==0){ct=Jt.anchorNode,Oe=Jt.anchorOffset,Lt=Jt.focusNode,Jt=Jt.focusOffset;try{ct.nodeType,Lt.nodeType}catch{ct=null;break e}var dn=0,_i=-1,Mr=-1,Pn=0,hi=0,Jn=Ke,Kt=null;t:for(;;){for(var kt;Jn!==ct||Oe!==0&&Jn.nodeType!==3||(_i=dn+Oe),Jn!==Lt||Jt!==0&&Jn.nodeType!==3||(Mr=dn+Jt),Jn.nodeType===3&&(dn+=Jn.nodeValue.length),(kt=Jn.firstChild)!==null;)Kt=Jn,Jn=kt;for(;;){if(Jn===Ke)break t;if(Kt===ct&&++Pn===Oe&&(_i=dn),Kt===Lt&&++hi===Jt&&(Mr=dn),(kt=Jn.nextSibling)!==null)break;Jn=Kt,Kt=Jn.parentNode}Jn=kt}ct=_i===-1||Mr===-1?null:{start:_i,end:Mr}}else ct=null;ct=ct||{start:0,end:0}}else ct=null;Fh={focusedElem:Ke,selectionRange:ct},jl=!1,Jg=null,Uw=!1,en=de;do try{$B()}catch(yi){if(en===null)throw Error(n(330));Ru(en,yi),en=en.nextEffect}while(en!==null);Jg=null,en=de;do try{for(Ke=R;en!==null;){var bt=en.flags;if(bt&16&&on(en.stateNode,""),bt&128){var mr=en.alternate;if(mr!==null){var Sr=mr.ref;Sr!==null&&(typeof Sr=="function"?Sr(null):Sr.current=null)}}switch(bt&1038){case 2:Pw(en),en.flags&=-3;break;case 6:Pw(en),en.flags&=-3,Wg(en.alternate,en);break;case 1024:en.flags&=-1025;break;case 1028:en.flags&=-1025,Wg(en.alternate,en);break;case 4:Wg(en.alternate,en);break;case 8:ct=en,xx(Ke,ct);var Si=ct.alternate;jB(ct),Si!==null&&jB(Si)}en=en.nextEffect}}catch(yi){if(en===null)throw Error(n(330));Ru(en,yi),en=en.nextEffect}while(en!==null);if(Sr=Fh,mr=In(),bt=Sr.focusedElem,Ke=Sr.selectionRange,mr!==bt&&bt&&bt.ownerDocument&&oi(bt.ownerDocument.documentElement,bt)){for(Ke!==null&&$n(bt)&&(mr=Ke.start,Sr=Ke.end,Sr===void 0&&(Sr=mr),"selectionStart"in bt?(bt.selectionStart=mr,bt.selectionEnd=Math.min(Sr,bt.value.length)):(Sr=(mr=bt.ownerDocument||document)&&mr.defaultView||window,Sr.getSelection&&(Sr=Sr.getSelection(),ct=bt.textContent.length,Si=Math.min(Ke.start,ct),Ke=Ke.end===void 0?Si:Math.min(Ke.end,ct),!Sr.extend&&Si>Ke&&(ct=Ke,Ke=Si,Si=ct),ct=Vr(bt,Si),Oe=Vr(bt,Ke),ct&&Oe&&(Sr.rangeCount!==1||Sr.anchorNode!==ct.node||Sr.anchorOffset!==ct.offset||Sr.focusNode!==Oe.node||Sr.focusOffset!==Oe.offset)&&(mr=mr.createRange(),mr.setStart(ct.node,ct.offset),Sr.removeAllRanges(),Si>Ke?(Sr.addRange(mr),Sr.extend(Oe.node,Oe.offset)):(mr.setEnd(Oe.node,Oe.offset),Sr.addRange(mr)))))),mr=[],Sr=bt;Sr=Sr.parentNode;)Sr.nodeType===1&&mr.push({element:Sr,left:Sr.scrollLeft,top:Sr.scrollTop});for(typeof bt.focus=="function"&&bt.focus(),bt=0;bt<mr.length;bt++)Sr=mr[bt],Sr.element.scrollLeft=Sr.left,Sr.element.scrollTop=Sr.top}jl=!!Mo,Fh=Mo=null,R.current=W,en=de;do try{for(bt=R;en!==null;){var Mn=en.flags;if(Mn&36&&Rw(bt,en.alternate,en),Mn&128){mr=void 0;var mi=en.ref;if(mi!==null){var Gi=en.stateNode;switch(en.tag){case 5:mr=Gi;break;default:mr=Gi}typeof mi=="function"?mi(mr):mi.current=mr}}en=en.nextEffect}}catch(yi){if(en===null)throw Error(n(330));Ru(en,yi),en=en.nextEffect}while(en!==null);en=null,Oy(),gi=be}else R.current=W;if(xs)xs=!1,Bl=R,Ip=F;else for(en=de;en!==null;)F=en.nextEffect,en.nextEffect=null,en.flags&8&&(Mn=en,Mn.sibling=null,Mn.stateNode=null),en=F;if(de=R.pendingLanes,de===0&&(Wh=null),de===1?R===Zg?pv++:(pv=0,Zg=R):pv=0,W=W.stateNode,Wc&&typeof Wc.onCommitFiberRoot=="function")try{Wc.onCommitFiberRoot(ov,W,void 0,(W.current.flags&64)===64)}catch{}if(Il(R,Te()),Xg)throw Xg=!1,R=Gy,Gy=null,R;return(gi&8)!==0||tt(),null}function $B(){for(;en!==null;){var R=en.alternate;Uw||Jg===null||((en.flags&8)!==0?Ka(en,Jg)&&(Uw=!0):en.tag===13&&AF(R,en)&&Ka(en,Jg)&&(Uw=!0));var F=en.flags;(F&256)!==0&&dF(R,en),(F&512)===0||xs||(xs=!0,Xe(97,function(){return cA(),null})),en=en.nextEffect}}function cA(){if(Ip!==90){var R=97<Ip?97:Ip;return Ip=90,We(R,pF)}return!1}function Xc(R,F){jy.push(F,R),xs||(xs=!0,Xe(97,function(){return cA(),null}))}function em(R,F){sA.push(F,R),xs||(xs=!0,Xe(97,function(){return cA(),null}))}function pF(){if(Bl===null)return!1;var R=Bl;if(Bl=null,(gi&48)!==0)throw Error(n(331));var F=gi;gi|=32;var W=sA;sA=[];for(var de=0;de<W.length;de+=2){var be=W[de],Oe=W[de+1],Ke=be.destroy;if(be.destroy=void 0,typeof Ke=="function")try{Ke()}catch(Lt){if(Oe===null)throw Error(n(330));Ru(Oe,Lt)}}for(W=jy,jy=[],de=0;de<W.length;de+=2){be=W[de],Oe=W[de+1];try{var ct=be.create;be.destroy=ct()}catch(Lt){if(Oe===null)throw Error(n(330));Ru(Oe,Lt)}}for(ct=R.current.firstEffect;ct!==null;)R=ct.nextEffect,ct.nextEffect=null,ct.flags&8&&(ct.sibling=null,ct.stateNode=null),ct=R;return gi=F,tt(),!0}function Zh(R,F,W){F=bx(W,F),F=_x(R,F,1),vi(R,F),F=Kc(),R=Kh(R,1),R!==null&&(Ks(R,1,F),Il(R,F))}function Ru(R,F){if(R.tag===3)Zh(R,R,F);else for(var W=R.return;W!==null;){if(W.tag===3){Zh(W,R,F);break}else if(W.tag===1){var de=W.stateNode;if(typeof W.type.getDerivedStateFromError=="function"||typeof de.componentDidCatch=="function"&&(Wh===null||!Wh.has(de))){R=bx(F,R);var be=VB(W,R,1);if(vi(W,be),be=Kc(),W=Kh(W,1),W!==null)Ks(W,1,be),Il(W,be);else if(typeof de.componentDidCatch=="function"&&(Wh===null||!Wh.has(de)))try{de.componentDidCatch(F,R)}catch{}break}}W=W.return}}function Dp(R,F,W){var de=R.pingCache;de!==null&&de.delete(F),F=Kc(),R.pingedLanes|=R.suspendedLanes&W,Du===R&&(Jl&W)===W&&(al===4||al===3&&(Jl&62914560)===Jl&&500>Te()-Kg?uc(R,0):zy|=W),Il(R,F)}function gF(R,F){var W=R.stateNode;W!==null&&W.delete(F),F=0,F===0&&(F=R.mode,(F&2)===0?F=1:(F&4)===0?F=He()===99?1:2:($h===0&&($h=$g),F=fs(62914560&~$h),F===0&&(F=4194304))),W=Kc(),R=Kh(R,F),R!==null&&(Ks(R,F,W),Il(R,W))}var KB;KB=function(R,F,W){var de=F.lanes;if(R!==null)if(R.memoizedProps!==F.pendingProps||Jo.current)va=!0;else if((W&de)!==0)va=(R.flags&16384)!==0;else{switch(va=!1,F.tag){case 3:Ri(F),ts();break;case 5:es(F);break;case 1:xl(F.type)&&gp(F);break;case 4:Tl(F,F.stateNode.containerInfo);break;case 10:de=F.memoizedProps.value;var be=F.type._context;wa(ut,be._currentValue),be._currentValue=de;break;case 13:if(F.memoizedState!==null)return(W&F.child.childLanes)!==0?Gg(R,F,W):(wa(ln,ln.current&1),F=aA(R,F,W),F!==null?F.sibling:null);wa(ln,ln.current&1);break;case 19:if(de=(W&F.childLanes)!==0,(R.flags&64)!==0){if(de)return HB(R,F,W);F.flags|=64}if(be=F.memoizedState,be!==null&&(be.rendering=null,be.tail=null,be.lastEffect=null),wa(ln,ln.current),de)break;return null;case 23:case 24:return F.lanes=0,mx(R,F,W)}return aA(R,F,W)}else va=!1;switch(F.lanes=0,F.tag){case 2:if(de=F.type,R!==null&&(R.alternate=null,F.alternate=null,F.flags|=2),R=F.pendingProps,be=Hh(F,Qo.current),xr(F,W),be=eA(null,F,de,R,be,W),F.flags|=1,typeof be=="object"&&be!==null&&typeof be.render=="function"&&be.$$typeof===void 0){if(F.tag=1,F.memoizedState=null,F.updateQueue=null,xl(de)){var Oe=!0;gp(F)}else Oe=!1;F.memoizedState=be.state!==null&&be.state!==void 0?be.state:null,an(F);var Ke=de.getDerivedStateFromProps;typeof Ke=="function"&&So(F,de,Ke,R),be.updater=ai,F.stateNode=be,be._reactInternals=F,tl(F,de,R,W),F=iA(null,F,de,!0,Oe,W)}else F.tag=0,Zl(null,F,be,W),F=F.child;return F;case 16:be=F.elementType;e:{switch(R!==null&&(R.alternate=null,F.alternate=null,F.flags|=2),R=F.pendingProps,Oe=be._init,be=Oe(be._payload),F.type=be,Oe=F.tag=mF(be),R=Vt(be,R),Oe){case 0:F=yx(null,F,be,R,W);break e;case 1:F=NB(null,F,be,R,W);break e;case 11:F=Cp(null,F,be,R,W);break e;case 14:F=dv(null,F,be,Vt(be.type,R),de,W);break e}throw Error(n(306,be,""))}return F;case 0:return de=F.type,be=F.pendingProps,be=F.elementType===de?be:Vt(de,be),yx(R,F,de,be,W);case 1:return de=F.type,be=F.pendingProps,be=F.elementType===de?be:Vt(de,be),NB(R,F,de,be,W);case 3:if(Ri(F),de=F.updateQueue,R===null||de===null)throw Error(n(282));if(de=F.pendingProps,be=F.memoizedState,be=be!==null?be.element:null,Bi(R,F),fi(F,de,null,W),de=F.memoizedState.element,de===be)ts(),F=aA(R,F,W);else{if(be=F.stateNode,(Oe=be.hydrate)&&(aa=oh(F.stateNode.containerInfo.firstChild),pi=F,Oe=ua=!0),Oe){if(R=be.mutableSourceEagerHydrationData,R!=null)for(be=0;be<R.length;be+=2)Oe=R[be],Oe._workInProgressVersionPrimary=R[be+1],$c.push(Oe);for(W=_a(F,null,de,W),F.child=W;W;)W.flags=W.flags&-3|1024,W=W.sibling}else Zl(R,F,de,W),ts();F=F.child}return F;case 5:return es(F),R===null&&Mu(F),de=F.type,be=F.pendingProps,Oe=R!==null?R.memoizedProps:null,Ke=be.children,yn(de,be)?Ke=null:Oe!==null&&yn(de,Oe)&&(F.flags|=16),FB(R,F),Zl(R,F,Ke,W),F.child;case 6:return R===null&&Mu(F),null;case 13:return Gg(R,F,W);case 4:return Tl(F,F.stateNode.containerInfo),de=F.pendingProps,R===null?F.child=Ki(F,null,de,W):Zl(R,F,de,W),F.child;case 11:return de=F.type,be=F.pendingProps,be=F.elementType===de?be:Vt(de,be),Cp(R,F,de,be,W);case 7:return Zl(R,F,F.pendingProps,W),F.child;case 8:return Zl(R,F,F.pendingProps.children,W),F.child;case 12:return Zl(R,F,F.pendingProps.children,W),F.child;case 10:e:{de=F.type._context,be=F.pendingProps,Ke=F.memoizedProps,Oe=be.value;var ct=F.type._context;if(wa(ut,ct._currentValue),ct._currentValue=Oe,Ke!==null)if(ct=Ke.value,Oe=cr(ct,Oe)?0:(typeof de._calculateChangedBits=="function"?de._calculateChangedBits(ct,Oe):1073741823)|0,Oe===0){if(Ke.children===be.children&&!Jo.current){F=aA(R,F,W);break e}}else for(ct=F.child,ct!==null&&(ct.return=F);ct!==null;){var Lt=ct.dependencies;if(Lt!==null){Ke=ct.child;for(var Jt=Lt.firstContext;Jt!==null;){if(Jt.context===de&&(Jt.observedBits&Oe)!==0){ct.tag===1&&(Jt=sn(-1,W&-W),Jt.tag=2,vi(ct,Jt)),ct.lanes|=W,Jt=ct.alternate,Jt!==null&&(Jt.lanes|=W),sr(ct.return,W),Lt.lanes|=W;break}Jt=Jt.next}}else Ke=ct.tag===10&&ct.type===F.type?null:ct.child;if(Ke!==null)Ke.return=ct;else for(Ke=ct;Ke!==null;){if(Ke===F){Ke=null;break}if(ct=Ke.sibling,ct!==null){ct.return=Ke.return,Ke=ct;break}Ke=Ke.return}ct=Ke}Zl(R,F,be.children,W),F=F.child}return F;case 9:return be=F.type,Oe=F.pendingProps,de=Oe.children,xr(F,W),be=dr(be,Oe.unstable_observedBits),de=de(be),F.flags|=1,Zl(R,F,de,W),F.child;case 14:return be=F.type,Oe=Vt(be,F.pendingProps),Oe=Vt(be.type,Oe),dv(R,F,be,Oe,de,W);case 15:return Tp(R,F,F.type,F.pendingProps,de,W);case 17:return de=F.type,be=F.pendingProps,be=F.elementType===de?be:Vt(de,be),R!==null&&(R.alternate=null,F.alternate=null,F.flags|=2),F.tag=1,xl(de)?(R=!0,gp(F)):R=!1,xr(F,W),ba(F,de,be),tl(F,de,be,W),iA(null,F,de,!0,R,W);case 19:return HB(R,F,W);case 23:return mx(R,F,W);case 24:return mx(R,F,W)}throw Error(n(156,F.tag))};function Pu(R,F,W,de){this.tag=R,this.key=W,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=F,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=de,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ns(R,F,W,de){return new Pu(R,F,W,de)}function Ex(R){return R=R.prototype,!(!R||!R.isReactComponent)}function mF(R){if(typeof R=="function")return Ex(R)?1:0;if(R!=null){if(R=R.$$typeof,R===Y)return 11;if(R===ce)return 14}return 2}function mv(R,F){var W=R.alternate;return W===null?(W=ns(R.tag,F,R.key,R.mode),W.elementType=R.elementType,W.type=R.type,W.stateNode=R.stateNode,W.alternate=R,R.alternate=W):(W.pendingProps=F,W.type=R.type,W.flags=0,W.nextEffect=null,W.firstEffect=null,W.lastEffect=null),W.childLanes=R.childLanes,W.lanes=R.lanes,W.child=R.child,W.memoizedProps=R.memoizedProps,W.memoizedState=R.memoizedState,W.updateQueue=R.updateQueue,F=R.dependencies,W.dependencies=F===null?null:{lanes:F.lanes,firstContext:F.firstContext},W.sibling=R.sibling,W.index=R.index,W.ref=R.ref,W}function Gw(R,F,W,de,be,Oe){var Ke=2;if(de=R,typeof R=="function")Ex(R)&&(Ke=1);else if(typeof R=="string")Ke=5;else e:switch(R){case z:return Rp(W.children,be,Oe,F);case ie:Ke=8,be|=16;break;case G:Ke=8,be|=1;break;case j:return R=ns(12,W,F,be|8),R.elementType=j,R.type=j,R.lanes=Oe,R;case te:return R=ns(13,W,F,be),R.type=te,R.elementType=te,R.lanes=Oe,R;case K:return R=ns(19,W,F,be),R.elementType=K,R.lanes=Oe,R;case he:return Bx(W,be,Oe,F);case re:return R=ns(24,W,F,be),R.elementType=re,R.lanes=Oe,R;default:if(typeof R=="object"&&R!==null)switch(R.$$typeof){case q:Ke=10;break e;case X:Ke=9;break e;case Y:Ke=11;break e;case ce:Ke=14;break e;case ae:Ke=16,de=null;break e;case le:Ke=22;break e}throw Error(n(130,R==null?R:typeof R,""))}return F=ns(Ke,W,F,be),F.elementType=R,F.type=de,F.lanes=Oe,F}function Rp(R,F,W,de){return R=ns(7,R,de,F),R.lanes=W,R}function Bx(R,F,W,de){return R=ns(23,R,de,F),R.elementType=he,R.lanes=W,R}function Ix(R,F,W){return R=ns(6,R,null,F),R.lanes=W,R}function tm(R,F,W){return F=ns(4,R.children!==null?R.children:[],R.key,F),F.lanes=W,F.stateNode={containerInfo:R.containerInfo,pendingChildren:null,implementation:R.implementation},F}function yF(R,F,W){this.tag=F,this.containerInfo=R,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=W,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Eu(0),this.expirationTimes=Eu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eu(0),this.mutableSourceEagerHydrationData=null}function Lx(R,F,W){var de=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:H,key:de==null?null:""+de,children:R,containerInfo:F,implementation:W}}function Yn(R,F,W,de){var be=F.current,Oe=Kc(),Ke=gv(be);e:if(W){W=W._reactInternals;t:{if(ni(W)!==W||W.tag!==1)throw Error(n(170));var ct=W;do{switch(ct.tag){case 3:ct=ct.stateNode.context;break t;case 1:if(xl(ct.type)){ct=ct.stateNode.__reactInternalMemoizedMergedChildContext;break t}}ct=ct.return}while(ct!==null);throw Error(n(171))}if(W.tag===1){var Lt=W.type;if(xl(Lt)){W=pp(W,Lt,ct);break e}}W=ct}else W=Ef;return F.context===null?F.context=W:F.pendingContext=W,F=sn(Oe,Ke),F.payload={element:R},de=de===void 0?null:de,de!==null&&(F.callback=de),vi(be,F),Zi(be,Ke,Oe),Ke}function Mx(R){if(R=R.current,!R.child)return null;switch(R.child.tag){case 5:return R.child.stateNode;default:return R.child.stateNode}}function Pp(R,F){if(R=R.memoizedState,R!==null&&R.dehydrated!==null){var W=R.retryLane;R.retryLane=W!==0&&W<F?W:F}}function Dx(R,F){Pp(R,F),(R=R.alternate)&&Pp(R,F)}function wF(){return null}function Rx(R,F,W){var de=W!=null&&W.hydrationOptions!=null&&W.hydrationOptions.mutableSources||null;if(W=new yF(R,F,W!=null&&W.hydrate===!0),F=ns(3,null,null,F===2?7:F===1?3:0),W.current=F,F.stateNode=W,an(F),R[Uh]=W.current,Fn(R.nodeType===8?R.parentNode:R),de)for(R=0;R<de.length;R++){F=de[R];var be=F._getVersion;be=be(F._source),W.mutableSourceEagerHydrationData==null?W.mutableSourceEagerHydrationData=[F,be]:W.mutableSourceEagerHydrationData.push(F,be)}this._internalRoot=W}Rx.prototype.render=function(R){Yn(R,this._internalRoot,null,null)},Rx.prototype.unmount=function(){var R=this._internalRoot,F=R.containerInfo;Yn(null,R,null,function(){F[Uh]=null})};function is(R){return!(!R||R.nodeType!==1&&R.nodeType!==9&&R.nodeType!==11&&(R.nodeType!==8||R.nodeValue!==" react-mount-point-unstable "))}function bF(R,F){if(F||(F=R?R.nodeType===9?R.documentElement:R.firstChild:null,F=!(!F||F.nodeType!==1||!F.hasAttribute("data-reactroot"))),!F)for(var W;W=R.lastChild;)R.removeChild(W);return new Rx(R,0,F?{hydrate:!0}:void 0)}function fA(R,F,W,de,be){var Oe=W._reactRootContainer;if(Oe){var Ke=Oe._internalRoot;if(typeof be=="function"){var ct=be;be=function(){var Jt=Mx(Ke);ct.call(Jt)}}Yn(F,Ke,R,be)}else{if(Oe=W._reactRootContainer=bF(W,de),Ke=Oe._internalRoot,typeof be=="function"){var Lt=be;be=function(){var Jt=Mx(Ke);Lt.call(Jt)}}Qw(function(){Yn(F,Ke,R,be)})}return Mx(Ke)}ga=function(R){if(R.tag===13){var F=Kc();Zi(R,4,F),Dx(R,4)}},qn=function(R){if(R.tag===13){var F=Kc();Zi(R,67108864,F),Dx(R,67108864)}},$i=function(R){if(R.tag===13){var F=Kc(),W=gv(R);Zi(R,W,F),Dx(R,W)}},Da=function(R,F){return F()},kn=function(R,F,W){switch(F){case"input":if(Pe(R,W),F=W.name,W.type==="radio"&&F!=null){for(W=R;W.parentNode;)W=W.parentNode;for(W=W.querySelectorAll("input[name="+JSON.stringify(""+F)+'][type="radio"]'),F=0;F<W.length;F++){var de=W[F];if(de!==R&&de.form===R.form){var be=iv(de);if(!be)throw Error(n(90));Qe(de),Pe(de,be)}}}break;case"textarea":Bt(R,W);break;case"select":F=W.value,F!=null&&ft(R,!!W.multiple,F,!1)}},et=Hw,ot=function(R,F,W,de,be){var Oe=gi;gi|=4;try{return We(98,R.bind(null,F,W,de,be))}finally{gi=Oe,gi===0&&(Yg(),tt())}},mt=function(){(gi&49)===0&&(Yh(),cA())},xt=function(R,F){var W=gi;gi|=2;try{return R(F)}finally{gi=W,gi===0&&(Yg(),tt())}};function Px(R,F){var W=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!is(F))throw Error(n(200));return Lx(R,F,null,W)}var YB={Events:[nv,qc,iv,Tt,ir,cA,{current:!1}]},dh={findFiberByHostInstance:Tf,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},_F={bundleType:dh.bundleType,version:dh.version,rendererPackageName:dh.rendererPackageName,rendererConfig:dh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(R){return R=Mi(R),R===null?null:R.stateNode},findFiberByHostInstance:dh.findFiberByHostInstance||wF,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jw=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jw.isDisabled&&jw.supportsFiber)try{ov=jw.inject(_F),Wc=jw}catch{}}return yh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=YB,yh.createPortal=Px,yh.findDOMNode=function(R){if(R==null)return null;if(R.nodeType===1)return R;var F=R._reactInternals;if(F===void 0)throw typeof R.render=="function"?Error(n(188)):Error(n(268,Object.keys(R)));return R=Mi(F),R=R===null?null:R.stateNode,R},yh.flushSync=function(R,F){var W=gi;if((W&48)!==0)return R(F);gi|=1;try{if(R)return We(99,R.bind(null,F))}finally{gi=W,tt()}},yh.hydrate=function(R,F,W){if(!is(F))throw Error(n(200));return fA(null,R,F,!0,W)},yh.render=function(R,F,W){if(!is(F))throw Error(n(200));return fA(null,R,F,!1,W)},yh.unmountComponentAtNode=function(R){if(!is(R))throw Error(n(40));return R._reactRootContainer?(Qw(function(){fA(null,null,R,!1,function(){R._reactRootContainer=null,R[Uh]=null})}),!0):!1},yh.unstable_batchedUpdates=Hw,yh.unstable_createPortal=function(R,F){return Px(R,F,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},yh.unstable_renderSubtreeIntoContainer=function(R,F,W,de){if(!is(W))throw Error(n(200));if(R==null||R._reactInternals===void 0)throw Error(n(38));return fA(R,F,W,!1,de)},yh.version="17.0.2",yh}var Efe;function BJe(){if(Efe)return DH.exports;Efe=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),DH.exports=EJe(),DH.exports}var uu=BJe();const KT=Dn(uu),IJe=ml({__proto__:null,default:KT},[uu]);var OH={exports:{}},kH={};/**
* @license React
* use-sync-external-store-shim.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 Bfe;function LJe(){if(Bfe)return kH;Bfe=1;var t=QS();function e(y,_){return y===_&&(y!==0||1/y===1/_)||y!==y&&_!==_}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,o=t.useEffect,u=t.useLayoutEffect,f=t.useDebugValue;function h(y,_){var b=_(),C=n({inst:{value:b,getSnapshot:_}}),T=C[0].inst,B=C[1];return u(function(){T.value=b,T.getSnapshot=_,A(T)&&B({inst:T})},[y,b,_]),o(function(){return A(T)&&B({inst:T}),y(function(){A(T)&&B({inst:T})})},[y]),f(b),b}function A(y){var _=y.getSnapshot;y=y.value;try{var b=_();return!r(y,b)}catch{return!0}}function p(y,_){return _()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:h;return kH.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,kH}var Ife;function M2e(){return Ife||(Ife=1,OH.exports=LJe()),OH.exports}var MJe=M2e(),FH={exports:{}},NH={};/**
* @license React
* use-sync-external-store-shim/with-selector.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 Lfe;function DJe(){if(Lfe)return NH;Lfe=1;var t=QS(),e=M2e();function r(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var n=typeof Object.is=="function"?Object.is:r,o=e.useSyncExternalStore,u=t.useRef,f=t.useEffect,h=t.useMemo,A=t.useDebugValue;return NH.useSyncExternalStoreWithSelector=function(p,g,y,_,b){var C=u(null);if(C.current===null){var T={hasValue:!1,value:null};C.current=T}else T=C.current;C=h(function(){function L(N){if(!P){if(P=!0,I=N,N=_(N),b!==void 0&&T.hasValue){var H=T.value;if(b(H,N))return O=H}return O=N}if(H=O,n(I,N))return H;var z=_(N);return b!==void 0&&b(H,z)?H:(I=N,O=z)}var P=!1,I,O,U=y===void 0?null:y;return[function(){return L(g())},U===null?void 0:function(){return L(U())}]},[g,y,_,b]);var B=o(p,C[0],C[1]);return f(function(){T.hasValue=!0,T.value=B},[B]),A(B),B},NH}var Mfe;function RJe(){return Mfe||(Mfe=1,FH.exports=DJe()),FH.exports}var PJe=RJe();function OJe(t){t()}let D2e=OJe;const kJe=t=>D2e=t,FJe=()=>D2e,Dfe=Symbol.for("react-redux-context"),Rfe=typeof globalThis<"u"?globalThis:{};function NJe(){var t;if(!Ae.createContext)return{};const e=(t=Rfe[Dfe])!=null?t:Rfe[Dfe]=new Map;let r=e.get(Ae.createContext);return r||(r=Ae.createContext(null),e.set(Ae.createContext,r)),r}const gg=NJe();function xY(t=gg){return function(){return Ae.useContext(t)}}const R2e=xY(),P2e=()=>{throw new Error("uSES not initialized!")};let O2e=P2e;const UJe=t=>{O2e=t},HJe=(t,e)=>t===e;function QJe(t=gg){const e=t===gg?R2e:xY(t);return function(n,o={}){const{equalityFn:u=HJe,stabilityCheck:f=void 0,noopCheck:h=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:A,subscription:p,getServerState:g,stabilityCheck:y,noopCheck:_}=e();Ae.useRef(!0);const b=Ae.useCallback({[n.name](T){return n(T)}}[n.name],[n,y,f]),C=O2e(p.addNestedSub,A.getState,g||A.getState,b,u);return Ae.useDebugValue(C),C}}const GHt=QJe();function On(){return On=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},On.apply(null,arguments)}function V2(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}var UH={exports:{}},Ja={};/** @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 Pfe;function VJe(){if(Pfe)return Ja;Pfe=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,u=t?Symbol.for("react.profiler"):60114,f=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,A=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,g=t?Symbol.for("react.forward_ref"):60112,y=t?Symbol.for("react.suspense"):60113,_=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,C=t?Symbol.for("react.lazy"):60116,T=t?Symbol.for("react.block"):60121,B=t?Symbol.for("react.fundamental"):60117,L=t?Symbol.for("react.responder"):60118,P=t?Symbol.for("react.scope"):60119;function I(U){if(typeof U=="object"&&U!==null){var N=U.$$typeof;switch(N){case e:switch(U=U.type,U){case A:case p:case n:case u:case o:case y:return U;default:switch(U=U&&U.$$typeof,U){case h:case g:case C:case b:case f:return U;default:return N}}case r:return N}}}function O(U){return I(U)===p}return Ja.AsyncMode=A,Ja.ConcurrentMode=p,Ja.ContextConsumer=h,Ja.ContextProvider=f,Ja.Element=e,Ja.ForwardRef=g,Ja.Fragment=n,Ja.Lazy=C,Ja.Memo=b,Ja.Portal=r,Ja.Profiler=u,Ja.StrictMode=o,Ja.Suspense=y,Ja.isAsyncMode=function(U){return O(U)||I(U)===A},Ja.isConcurrentMode=O,Ja.isContextConsumer=function(U){return I(U)===h},Ja.isContextProvider=function(U){return I(U)===f},Ja.isElement=function(U){return typeof U=="object"&&U!==null&&U.$$typeof===e},Ja.isForwardRef=function(U){return I(U)===g},Ja.isFragment=function(U){return I(U)===n},Ja.isLazy=function(U){return I(U)===C},Ja.isMemo=function(U){return I(U)===b},Ja.isPortal=function(U){return I(U)===r},Ja.isProfiler=function(U){return I(U)===u},Ja.isStrictMode=function(U){return I(U)===o},Ja.isSuspense=function(U){return I(U)===y},Ja.isValidElementType=function(U){return typeof U=="string"||typeof U=="function"||U===n||U===p||U===u||U===o||U===y||U===_||typeof U=="object"&&U!==null&&(U.$$typeof===C||U.$$typeof===b||U.$$typeof===f||U.$$typeof===h||U.$$typeof===g||U.$$typeof===B||U.$$typeof===L||U.$$typeof===P||U.$$typeof===T)},Ja.typeOf=I,Ja}var Ofe;function zJe(){return Ofe||(Ofe=1,UH.exports=VJe()),UH.exports}var HH,kfe;function GJe(){if(kfe)return HH;kfe=1;var t=zJe(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[t.ForwardRef]=n,u[t.Memo]=o;function f(C){return t.isMemo(C)?o:u[C.$$typeof]||e}var h=Object.defineProperty,A=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,_=Object.prototype;function b(C,T,B){if(typeof T!="string"){if(_){var L=y(T);L&&L!==_&&b(C,L,B)}var P=A(T);p&&(P=P.concat(p(T)));for(var I=f(C),O=f(T),U=0;U<P.length;++U){var N=P[U];if(!r[N]&&!(B&&B[N])&&!(O&&O[N])&&!(I&&I[N])){var H=g(T,N);try{h(C,N,H)}catch{}}}}return C}return HH=b,HH}var jJe=GJe();const mW=Dn(jJe);var QH={exports:{}},eo={};/**
* @license React
* 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 Ffe;function qJe(){if(Ffe)return eo;Ffe=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.server_context"),A=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),C;C=Symbol.for("react.module.reference");function T(B){if(typeof B=="object"&&B!==null){var L=B.$$typeof;switch(L){case t:switch(B=B.type,B){case r:case o:case n:case p:case g:return B;default:switch(B=B&&B.$$typeof,B){case h:case f:case A:case _:case y:case u:return B;default:return L}}case e:return L}}}return eo.ContextConsumer=f,eo.ContextProvider=u,eo.Element=t,eo.ForwardRef=A,eo.Fragment=r,eo.Lazy=_,eo.Memo=y,eo.Portal=e,eo.Profiler=o,eo.StrictMode=n,eo.Suspense=p,eo.SuspenseList=g,eo.isAsyncMode=function(){return!1},eo.isConcurrentMode=function(){return!1},eo.isContextConsumer=function(B){return T(B)===f},eo.isContextProvider=function(B){return T(B)===u},eo.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===t},eo.isForwardRef=function(B){return T(B)===A},eo.isFragment=function(B){return T(B)===r},eo.isLazy=function(B){return T(B)===_},eo.isMemo=function(B){return T(B)===y},eo.isPortal=function(B){return T(B)===e},eo.isProfiler=function(B){return T(B)===o},eo.isStrictMode=function(B){return T(B)===n},eo.isSuspense=function(B){return T(B)===p},eo.isSuspenseList=function(B){return T(B)===g},eo.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===r||B===o||B===n||B===p||B===g||B===b||typeof B=="object"&&B!==null&&(B.$$typeof===_||B.$$typeof===y||B.$$typeof===u||B.$$typeof===f||B.$$typeof===A||B.$$typeof===C||B.getModuleId!==void 0)},eo.typeOf=T,eo}var Nfe;function WJe(){return Nfe||(Nfe=1,QH.exports=qJe()),QH.exports}var $Je=WJe();const KJe=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function YJe(t,e,r,n,{areStatesEqual:o,areOwnPropsEqual:u,areStatePropsEqual:f}){let h=!1,A,p,g,y,_;function b(P,I){return A=P,p=I,g=t(A,p),y=e(n,p),_=r(g,y,p),h=!0,_}function C(){return g=t(A,p),e.dependsOnOwnProps&&(y=e(n,p)),_=r(g,y,p),_}function T(){return t.dependsOnOwnProps&&(g=t(A,p)),e.dependsOnOwnProps&&(y=e(n,p)),_=r(g,y,p),_}function B(){const P=t(A,p),I=!f(P,g);return g=P,I&&(_=r(g,y,p)),_}function L(P,I){const O=!u(I,p),U=!o(P,A,I,p);return A=P,p=I,O&&U?C():O?T():U?B():_}return function(I,O){return h?L(I,O):b(I,O)}}function XJe(t,e){let{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:o}=e,u=V2(e,KJe);const f=r(t,u),h=n(t,u),A=o(t,u);return YJe(f,h,A,t,u)}function ZJe(t,e){const r={};for(const n in t){const o=t[n];typeof o=="function"&&(r[n]=(...u)=>e(o(...u)))}return r}function yW(t){return function(r){const n=t(r);function o(){return n}return o.dependsOnOwnProps=!1,o}}function Ufe(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function k2e(t,e){return function(n,{displayName:o}){const u=function(h,A){return u.dependsOnOwnProps?u.mapToProps(h,A):u.mapToProps(h,void 0)};return u.dependsOnOwnProps=!0,u.mapToProps=function(h,A){u.mapToProps=t,u.dependsOnOwnProps=Ufe(t);let p=u(h,A);return typeof p=="function"&&(u.mapToProps=p,u.dependsOnOwnProps=Ufe(p),p=u(h,A)),p},u}}function F2e(t,e){return(r,n)=>{throw new Error(`Invalid value of type ${typeof t} for ${e} argument when connecting component ${n.wrappedComponentName}.`)}}function JJe(t){return t&&typeof t=="object"?yW(e=>ZJe(t,e)):t?typeof t=="function"?k2e(t):F2e(t,"mapDispatchToProps"):yW(e=>({dispatch:e}))}function eet(t){return t?typeof t=="function"?k2e(t):F2e(t,"mapStateToProps"):yW(()=>({}))}function tet(t,e,r){return On({},r,t,e)}function ret(t){return()=>tet}function net(){const t=FJe();let e=null,r=null;return{clear(){e=null,r=null},notify(){t(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){let n=[],o=e;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0,u=r={callback:n,next:null,prev:r};return u.prev?u.prev.next=u:e=u,function(){!o||e===null||(o=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:e=u.next)}}}}const Hfe={notify(){},get:()=>[]};function N2e(t,e){let r,n=Hfe,o=0,u=!1;function f(T){g();const B=n.subscribe(T);let L=!1;return()=>{L||(L=!0,B(),y())}}function h(){n.notify()}function A(){C.onStateChange&&C.onStateChange()}function p(){return u}function g(){o++,r||(r=e?e.addNestedSub(A):t.subscribe(A),n=net())}function y(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Hfe)}function _(){u||(u=!0,g())}function b(){u&&(u=!1,y())}const C={addNestedSub:f,notifyNestedSubs:h,handleChangeWrapper:A,isSubscribed:p,trySubscribe:_,tryUnsubscribe:b,getListeners:()=>n};return C}const iet=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",RR=iet?Ae.useLayoutEffect:Ae.useEffect;function Qfe(t,e){return t===e?t!==0||e!==0||1/t===1/e:t!==t&&e!==e}function VH(t,e){if(Qfe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(e,r[o])||!Qfe(t[r[o]],e[r[o]]))return!1;return!0}const aet=["reactReduxForwardedRef"];let U2e=P2e;const oet=t=>{U2e=t},set=[null,null];function uet(t,e,r){RR(()=>t(...e),r)}function cet(t,e,r,n,o,u){t.current=n,r.current=!1,o.current&&(o.current=null,u())}function fet(t,e,r,n,o,u,f,h,A,p,g){if(!t)return()=>{};let y=!1,_=null;const b=()=>{if(y||!h.current)return;const T=e.getState();let B,L;try{B=n(T,o.current)}catch(P){L=P,_=P}L||(_=null),B===u.current?f.current||p():(u.current=B,A.current=B,f.current=!0,g())};return r.onStateChange=b,r.trySubscribe(),b(),()=>{if(y=!0,r.tryUnsubscribe(),r.onStateChange=null,_)throw _}}function het(t,e){return t===e}function jHt(t,e,r,{pure:n,areStatesEqual:o=het,areOwnPropsEqual:u=VH,areStatePropsEqual:f=VH,areMergedPropsEqual:h=VH,forwardRef:A=!1,context:p=gg}={}){const g=p,y=eet(t),_=JJe(e),b=ret(),C=!!t;return B=>{const L=B.displayName||B.name||"Component",P=`Connect(${L})`,I={shouldHandleStateChanges:C,displayName:P,wrappedComponentName:L,WrappedComponent:B,initMapStateToProps:y,initMapDispatchToProps:_,initMergeProps:b,areStatesEqual:o,areStatePropsEqual:f,areOwnPropsEqual:u,areMergedPropsEqual:h};function O(H){const[z,G,j]=Ae.useMemo(()=>{const{reactReduxForwardedRef:Ne}=H,yt=V2(H,aet);return[H.context,Ne,yt]},[H]),q=Ae.useMemo(()=>z&&z.Consumer&&$Je.isContextConsumer(Ae.createElement(z.Consumer,null))?z:g,[z,g]),X=Ae.useContext(q),Y=!!H.store&&!!H.store.getState&&!!H.store.dispatch,te=!!X&&!!X.store,K=Y?H.store:X.store,ce=te?X.getServerState:K.getState,ae=Ae.useMemo(()=>XJe(K.dispatch,I),[K]),[le,pe]=Ae.useMemo(()=>{if(!C)return set;const Ne=N2e(K,Y?void 0:X.subscription),yt=Ne.notifyNestedSubs.bind(Ne);return[Ne,yt]},[K,Y,X]),ie=Ae.useMemo(()=>Y?X:On({},X,{subscription:le}),[Y,X,le]),he=Ae.useRef(),re=Ae.useRef(j),oe=Ae.useRef(),ye=Ae.useRef(!1);Ae.useRef(!1);const _e=Ae.useRef(!1),Ce=Ae.useRef();RR(()=>(_e.current=!0,()=>{_e.current=!1}),[]);const ne=Ae.useMemo(()=>()=>oe.current&&j===re.current?oe.current:ae(K.getState(),j),[K,j]),xe=Ae.useMemo(()=>yt=>le?fet(C,K,le,ae,re,he,ye,_e,oe,pe,yt):()=>{},[le]);uet(cet,[re,he,ye,j,oe,pe]);let De;try{De=U2e(xe,ne,ce?()=>ae(ce(),j):ne)}catch(Ne){throw Ce.current&&(Ne.message+=`
The error may be correlated with this previous error:
${Ce.current.stack}
`),Ne}RR(()=>{Ce.current=void 0,oe.current=void 0,he.current=De});const ze=Ae.useMemo(()=>Ae.createElement(B,On({},De,{ref:G})),[G,B,De]);return Ae.useMemo(()=>C?Ae.createElement(q.Provider,{value:ie},ze):ze,[q,ze,ie])}const N=Ae.memo(O);if(N.WrappedComponent=B,N.displayName=O.displayName=P,A){const z=Ae.forwardRef(function(j,q){return Ae.createElement(N,On({},j,{reactReduxForwardedRef:q}))});return z.displayName=P,z.WrappedComponent=B,mW(z,B)}return mW(N,B)}}function qHt({store:t,context:e,children:r,serverState:n,stabilityCheck:o="once",noopCheck:u="once"}){const f=Ae.useMemo(()=>{const p=N2e(t);return{store:t,subscription:p,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:u}},[t,n,o,u]),h=Ae.useMemo(()=>t.getState(),[t]);RR(()=>{const{subscription:p}=f;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),h!==t.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[f,h]);const A=e||gg;return Ae.createElement(A.Provider,{value:f},r)}function H2e(t=gg){const e=t===gg?R2e:xY(t);return function(){const{store:n}=e();return n}}const det=H2e();function Aet(t=gg){const e=t===gg?det:H2e(t);return function(){return e().dispatch}}const WHt=Aet();UJe(PJe.useSyncExternalStoreWithSelector);oet(MJe.useSyncExternalStore);kJe(uu.unstable_batchedUpdates);/**
* @remix-run/router v1.23.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ys(){return ys=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ys.apply(this,arguments)}var cl;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(cl||(cl={}));const Vfe="popstate";function vet(t){t===void 0&&(t={});function e(n,o){let{pathname:u,search:f,hash:h}=n.location;return t2("",{pathname:u,search:f,hash:h},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:z2(o)}return get(e,r,null,t)}function Xi(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function wS(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function pet(){return Math.random().toString(36).substr(2,8)}function zfe(t,e){return{usr:t.state,key:t.key,idx:e}}function t2(t,e,r,n){return r===void 0&&(r=null),ys({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Eg(e):e,{state:r,key:e&&e.key||n||pet()})}function z2(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Eg(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function get(t,e,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:u=!1}=n,f=o.history,h=cl.Pop,A=null,p=g();p==null&&(p=0,f.replaceState(ys({},f.state,{idx:p}),""));function g(){return(f.state||{idx:null}).idx}function y(){h=cl.Pop;let B=g(),L=B==null?null:B-p;p=B,A&&A({action:h,location:T.location,delta:L})}function _(B,L){h=cl.Push;let P=t2(T.location,B,L);p=g()+1;let I=zfe(P,p),O=T.createHref(P);try{f.pushState(I,"",O)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;o.location.assign(O)}u&&A&&A({action:h,location:T.location,delta:1})}function b(B,L){h=cl.Replace;let P=t2(T.location,B,L);p=g();let I=zfe(P,p),O=T.createHref(P);f.replaceState(I,"",O),u&&A&&A({action:h,location:T.location,delta:0})}function C(B){let L=o.location.origin!=="null"?o.location.origin:o.location.href,P=typeof B=="string"?B:z2(B);return P=P.replace(/ $/,"%20"),Xi(L,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,L)}let T={get action(){return h},get location(){return t(o,f)},listen(B){if(A)throw new Error("A history only accepts one active listener");return o.addEventListener(Vfe,y),A=B,()=>{o.removeEventListener(Vfe,y),A=null}},createHref(B){return e(o,B)},createURL:C,encodeLocation(B){let L=C(B);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:_,replace:b,go(B){return f.go(B)}};return T}var po;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(po||(po={}));const met=new Set(["lazy","caseSensitive","path","id","index","children"]);function yet(t){return t.index===!0}function PR(t,e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),t.map((o,u)=>{let f=[...r,String(u)],h=typeof o.id=="string"?o.id:f.join("-");if(Xi(o.index!==!0||!o.children,"Cannot specify children on an index route"),Xi(!n[h],'Found a route id collision on id "'+h+`". Route id's must be globally unique within Data Router usages`),yet(o)){let A=ys({},o,e(o),{id:h});return n[h]=A,A}else{let A=ys({},o,e(o),{id:h,children:void 0});return n[h]=A,o.children&&(A.children=PR(o.children,e,f,n)),A}})}function w1(t,e,r){return r===void 0&&(r="/"),p5(t,e,r,!1)}function p5(t,e,r,n){let o=typeof e=="string"?Eg(e):e,u=G2(o.pathname||"/",r);if(u==null)return null;let f=Q2e(t);bet(f);let h=null;for(let A=0;h==null&&A<f.length;++A){let p=Ret(u);h=Met(f[A],p,n)}return h}function wet(t,e){let{route:r,pathname:n,params:o}=t;return{id:r.id,pathname:n,params:o,data:e[r.id],handle:r.handle}}function Q2e(t,e,r,n){e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(u,f,h)=>{let A={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};A.relativePath.startsWith("/")&&(Xi(A.relativePath.startsWith(n),'Absolute route path "'+A.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),A.relativePath=A.relativePath.slice(n.length));let p=ly([n,A.relativePath]),g=r.concat(A);u.children&&u.children.length>0&&(Xi(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),Q2e(u.children,e,g,p)),!(u.path==null&&!u.index)&&e.push({path:p,score:Iet(p,u.index),routesMeta:g})};return t.forEach((u,f)=>{var h;if(u.path===""||!((h=u.path)!=null&&h.includes("?")))o(u,f);else for(let A of V2e(u.path))o(u,f,A)}),e}function V2e(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,o=r.endsWith("?"),u=r.replace(/\?$/,"");if(n.length===0)return o?[u,""]:[u];let f=V2e(n.join("/")),h=[];return h.push(...f.map(A=>A===""?u:[u,A].join("/"))),o&&h.push(...f),h.map(A=>t.startsWith("/")&&A===""?"/":A)}function bet(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:Let(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const _et=/^:[\w-]+$/,xet=3,Cet=2,Tet=1,Eet=10,Bet=-2,Gfe=t=>t==="*";function Iet(t,e){let r=t.split("/"),n=r.length;return r.some(Gfe)&&(n+=Bet),e&&(n+=Cet),r.filter(o=>!Gfe(o)).reduce((o,u)=>o+(_et.test(u)?xet:u===""?Tet:Eet),n)}function Let(t,e){return t.length===e.length&&t.slice(0,-1).every((n,o)=>n===e[o])?t[t.length-1]-e[e.length-1]:0}function Met(t,e,r){r===void 0&&(r=!1);let{routesMeta:n}=t,o={},u="/",f=[];for(let h=0;h<n.length;++h){let A=n[h],p=h===n.length-1,g=u==="/"?e:e.slice(u.length)||"/",y=jfe({path:A.relativePath,caseSensitive:A.caseSensitive,end:p},g),_=A.route;if(!y&&p&&r&&!n[n.length-1].route.index&&(y=jfe({path:A.relativePath,caseSensitive:A.caseSensitive,end:!1},g)),!y)return null;Object.assign(o,y.params),f.push({params:o,pathname:ly([u,y.pathname]),pathnameBase:ket(ly([u,y.pathnameBase])),route:_}),y.pathnameBase!=="/"&&(u=ly([u,y.pathnameBase]))}return f}function jfe(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=Det(t.path,t.caseSensitive,t.end),o=e.match(r);if(!o)return null;let u=o[0],f=u.replace(/(.)\/+$/,"$1"),h=o.slice(1);return{params:n.reduce((p,g,y)=>{let{paramName:_,isOptional:b}=g;if(_==="*"){let T=h[y]||"";f=u.slice(0,u.length-T.length).replace(/(.)\/+$/,"$1")}const C=h[y];return b&&!C?p[_]=void 0:p[_]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:f,pattern:t}}function Det(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),wS(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,A)=>(n.push({paramName:h,isOptional:A!=null}),A?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),n]}function Ret(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return wS(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function G2(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function Pet(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?Eg(t):t;return{pathname:r?r.startsWith("/")?r:Oet(r,e):e,search:Fet(n),hash:Net(o)}}function Oet(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function zH(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function z2e(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function CY(t,e){let r=z2e(t);return e?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function TY(t,e,r,n){n===void 0&&(n=!1);let o;typeof t=="string"?o=Eg(t):(o=ys({},t),Xi(!o.pathname||!o.pathname.includes("?"),zH("?","pathname","search",o)),Xi(!o.pathname||!o.pathname.includes("#"),zH("#","pathname","hash",o)),Xi(!o.search||!o.search.includes("#"),zH("#","search","hash",o)));let u=t===""||o.pathname==="",f=u?"/":o.pathname,h;if(f==null)h=r;else{let y=e.length-1;if(!n&&f.startsWith("..")){let _=f.split("/");for(;_[0]==="..";)_.shift(),y-=1;o.pathname=_.join("/")}h=y>=0?e[y]:"/"}let A=Pet(o,h),p=f&&f!=="/"&&f.endsWith("/"),g=(u||f===".")&&r.endsWith("/");return!A.pathname.endsWith("/")&&(p||g)&&(A.pathname+="/"),A}const ly=t=>t.join("/").replace(/\/\/+/g,"/"),ket=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Fet=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Net=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class OR{constructor(e,r,n,o){o===void 0&&(o=!1),this.status=e,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function r2(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const G2e=["post","put","patch","delete"],Uet=new Set(G2e),Het=["get",...G2e],Qet=new Set(Het),Vet=new Set([301,302,303,307,308]),zet=new Set([307,308]),GH={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Get={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},iT={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},EY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jet=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),j2e="remix-router-transitions";function qet(t){const e=t.window?t.window:typeof window<"u"?window:void 0,r=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",n=!r;Xi(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(t.mapRouteProperties)o=t.mapRouteProperties;else if(t.detectErrorBoundary){let et=t.detectErrorBoundary;o=ot=>({hasErrorBoundary:et(ot)})}else o=jet;let u={},f=PR(t.routes,o,void 0,u),h,A=t.basename||"/",p=t.dataStrategy||Yet,g=t.patchRoutesOnNavigation,y=ys({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},t.future),_=null,b=new Set,C=null,T=null,B=null,L=t.hydrationData!=null,P=w1(f,t.history.location,A),I=!1,O=null;if(P==null&&!g){let et=Nf(404,{pathname:t.history.location.pathname}),{matches:ot,route:mt}=rhe(f);P=ot,O={[mt.id]:et}}P&&!t.hydrationData&&At(P,f,t.history.location.pathname).active&&(P=null);let U;if(P)if(P.some(et=>et.route.lazy))U=!1;else if(!P.some(et=>et.route.loader))U=!0;else if(y.v7_partialHydration){let et=t.hydrationData?t.hydrationData.loaderData:null,ot=t.hydrationData?t.hydrationData.errors:null;if(ot){let mt=P.findIndex(xt=>ot[xt.route.id]!==void 0);U=P.slice(0,mt+1).every(xt=>!bW(xt.route,et,ot))}else U=P.every(mt=>!bW(mt.route,et,ot))}else U=t.hydrationData!=null;else if(U=!1,P=[],y.v7_partialHydration){let et=At(null,f,t.history.location.pathname);et.active&&et.matches&&(I=!0,P=et.matches)}let N,H={historyAction:t.history.action,location:t.history.location,matches:P,initialized:U,navigation:GH,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||O,fetchers:new Map,blockers:new Map},z=cl.Pop,G=!1,j,q=!1,X=new Map,Y=null,te=!1,K=!1,ce=[],ae=new Set,le=new Map,pe=0,ie=-1,he=new Map,re=new Set,oe=new Map,ye=new Map,_e=new Set,Ce=new Map,ne=new Map,xe;function De(){if(_=t.history.listen(et=>{let{action:ot,location:mt,delta:xt}=et;if(xe){xe(),xe=void 0;return}wS(ne.size===0||xt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let nr=cn({currentLocation:H.location,nextLocation:mt,historyAction:ot});if(nr&&xt!=null){let yr=new Promise(Pr=>{xe=Pr});t.history.go(xt*-1),Yr(nr,{state:"blocked",location:mt,proceed(){Yr(nr,{state:"proceeding",proceed:void 0,reset:void 0,location:mt}),yr.then(()=>t.history.go(xt))},reset(){let Pr=new Map(H.blockers);Pr.set(nr,iT),Ne({blockers:Pr})}});return}return Qe(ot,mt)}),r){ctt(e,X);let et=()=>ftt(e,X);e.addEventListener("pagehide",et),Y=()=>e.removeEventListener("pagehide",et)}return H.initialized||Qe(cl.Pop,H.location,{initialHydration:!0}),N}function ze(){_&&_(),Y&&Y(),b.clear(),j&&j.abort(),H.fetchers.forEach((et,ot)=>qt(ot)),H.blockers.forEach((et,ot)=>rn(ot))}function Ye(et){return b.add(et),()=>b.delete(et)}function Ne(et,ot){ot===void 0&&(ot={}),H=ys({},H,et);let mt=[],xt=[];y.v7_fetcherPersist&&H.fetchers.forEach((nr,yr)=>{nr.state==="idle"&&(_e.has(yr)?xt.push(yr):mt.push(yr))}),_e.forEach(nr=>{!H.fetchers.has(nr)&&!le.has(nr)&&xt.push(nr)}),[...b].forEach(nr=>nr(H,{deletedFetchers:xt,viewTransitionOpts:ot.viewTransitionOpts,flushSync:ot.flushSync===!0})),y.v7_fetcherPersist?(mt.forEach(nr=>H.fetchers.delete(nr)),xt.forEach(nr=>qt(nr))):xt.forEach(nr=>_e.delete(nr))}function yt(et,ot,mt){var xt,nr;let{flushSync:yr}=mt===void 0?{}:mt,Pr=H.actionData!=null&&H.navigation.formMethod!=null&&LA(H.navigation.formMethod)&&H.navigation.state==="loading"&&((xt=et.state)==null?void 0:xt._isRedirect)!==!0,pr;ot.actionData?Object.keys(ot.actionData).length>0?pr=ot.actionData:pr=null:Pr?pr=H.actionData:pr=null;let Ar=ot.loaderData?ehe(H.loaderData,ot.loaderData,ot.matches||[],ot.errors):H.loaderData,Tr=H.blockers;Tr.size>0&&(Tr=new Map(Tr),Tr.forEach((fn,ci)=>Tr.set(ci,iT)));let Fr=G===!0||H.navigation.formMethod!=null&&LA(H.navigation.formMethod)&&((nr=et.state)==null?void 0:nr._isRedirect)!==!0;h&&(f=h,h=void 0),te||z===cl.Pop||(z===cl.Push?t.history.push(et,et.state):z===cl.Replace&&t.history.replace(et,et.state));let nn;if(z===cl.Pop){let fn=X.get(H.location.pathname);fn&&fn.has(et.pathname)?nn={currentLocation:H.location,nextLocation:et}:X.has(et.pathname)&&(nn={currentLocation:et,nextLocation:H.location})}else if(q){let fn=X.get(H.location.pathname);fn?fn.add(et.pathname):(fn=new Set([et.pathname]),X.set(H.location.pathname,fn)),nn={currentLocation:H.location,nextLocation:et}}Ne(ys({},ot,{actionData:pr,loaderData:Ar,historyAction:z,location:et,initialized:!0,navigation:GH,revalidation:"idle",restoreScrollPosition:vt(et,ot.matches||H.matches),preventScrollReset:Fr,blockers:Tr}),{viewTransitionOpts:nn,flushSync:yr===!0}),z=cl.Pop,G=!1,q=!1,te=!1,K=!1,ce=[]}async function Ue(et,ot){if(typeof et=="number"){t.history.go(et);return}let mt=wW(H.location,H.matches,A,y.v7_prependBasename,et,y.v7_relativeSplatPath,ot?.fromRouteId,ot?.relative),{path:xt,submission:nr,error:yr}=qfe(y.v7_normalizeFormMethod,!1,mt,ot),Pr=H.location,pr=t2(H.location,xt,ot&&ot.state);pr=ys({},pr,t.history.encodeLocation(pr));let Ar=ot&&ot.replace!=null?ot.replace:void 0,Tr=cl.Push;Ar===!0?Tr=cl.Replace:Ar===!1||nr!=null&&LA(nr.formMethod)&&nr.formAction===H.location.pathname+H.location.search&&(Tr=cl.Replace);let Fr=ot&&"preventScrollReset"in ot?ot.preventScrollReset===!0:void 0,nn=(ot&&ot.flushSync)===!0,fn=cn({currentLocation:Pr,nextLocation:pr,historyAction:Tr});if(fn){Yr(fn,{state:"blocked",location:pr,proceed(){Yr(fn,{state:"proceeding",proceed:void 0,reset:void 0,location:pr}),Ue(et,ot)},reset(){let ci=new Map(H.blockers);ci.set(fn,iT),Ne({blockers:ci})}});return}return await Qe(Tr,pr,{submission:nr,pendingError:yr,preventScrollReset:Fr,replace:ot&&ot.replace,enableViewTransition:ot&&ot.viewTransition,flushSync:nn})}function ue(){if(Mt(),Ne({revalidation:"loading"}),H.navigation.state!=="submitting"){if(H.navigation.state==="idle"){Qe(H.historyAction,H.location,{startUninterruptedRevalidation:!0});return}Qe(z||H.historyAction,H.navigation.location,{overrideNavigation:H.navigation,enableViewTransition:q===!0})}}async function Qe(et,ot,mt){j&&j.abort(),j=null,z=et,te=(mt&&mt.startUninterruptedRevalidation)===!0,kn(H.location,H.matches),G=(mt&&mt.preventScrollReset)===!0,q=(mt&&mt.enableViewTransition)===!0;let xt=h||f,nr=mt&&mt.overrideNavigation,yr=mt!=null&&mt.initialHydration&&H.matches&&H.matches.length>0&&!I?H.matches:w1(xt,ot,A),Pr=(mt&&mt.flushSync)===!0;if(yr&&H.initialized&&!K&&rtt(H.location,ot)&&!(mt&&mt.submission&&LA(mt.submission.formMethod))){yt(ot,{matches:yr},{flushSync:Pr});return}let pr=At(yr,xt,ot.pathname);if(pr.active&&pr.matches&&(yr=pr.matches),!yr){let{error:_r,notFoundMatches:pt,route:or}=Vn(ot.pathname);yt(ot,{matches:pt,loaderData:{},errors:{[or.id]:_r}},{flushSync:Pr});return}j=new AbortController;let Ar=$b(t.history,ot,j.signal,mt&&mt.submission),Tr;if(mt&&mt.pendingError)Tr=[b1(yr).route.id,{type:po.error,error:mt.pendingError}];else if(mt&&mt.submission&&LA(mt.submission.formMethod)){let _r=await qe(Ar,ot,mt.submission,yr,pr.active,{replace:mt.replace,flushSync:Pr});if(_r.shortCircuited)return;if(_r.pendingActionResult){let[pt,or]=_r.pendingActionResult;if(_h(or)&&r2(or.error)&&or.error.status===404){j=null,yt(ot,{matches:_r.matches,loaderData:{},errors:{[pt]:or.error}});return}}yr=_r.matches||yr,Tr=_r.pendingActionResult,nr=jH(ot,mt.submission),Pr=!1,pr.active=!1,Ar=$b(t.history,Ar.url,Ar.signal)}let{shortCircuited:Fr,matches:nn,loaderData:fn,errors:ci}=await Re(Ar,ot,yr,pr.active,nr,mt&&mt.submission,mt&&mt.fetcherSubmission,mt&&mt.replace,mt&&mt.initialHydration===!0,Pr,Tr);Fr||(j=null,yt(ot,ys({matches:nn||yr},the(Tr),{loaderData:fn,errors:ci})))}async function qe(et,ot,mt,xt,nr,yr){yr===void 0&&(yr={}),Mt();let Pr=ltt(ot,mt);if(Ne({navigation:Pr},{flushSync:yr.flushSync===!0}),nr){let Tr=await Ct(xt,ot.pathname,et.signal);if(Tr.type==="aborted")return{shortCircuited:!0};if(Tr.type==="error"){let Fr=b1(Tr.partialMatches).route.id;return{matches:Tr.partialMatches,pendingActionResult:[Fr,{type:po.error,error:Tr.error}]}}else if(Tr.matches)xt=Tr.matches;else{let{notFoundMatches:Fr,error:nn,route:fn}=Vn(ot.pathname);return{matches:Fr,pendingActionResult:[fn.id,{type:po.error,error:nn}]}}}let pr,Ar=YT(xt,ot);if(!Ar.route.action&&!Ar.route.lazy)pr={type:po.error,error:Nf(405,{method:et.method,pathname:ot.pathname,routeId:Ar.route.id})};else if(pr=(await nt("action",H,et,[Ar],xt,null))[Ar.route.id],et.signal.aborted)return{shortCircuited:!0};if(T1(pr)){let Tr;return yr&&yr.replace!=null?Tr=yr.replace:Tr=Xfe(pr.response.headers.get("Location"),new URL(et.url),A)===H.location.pathname+H.location.search,await $e(et,pr,!0,{submission:mt,replace:Tr}),{shortCircuited:!0}}if(Xm(pr))throw Nf(400,{type:"defer-action"});if(_h(pr)){let Tr=b1(xt,Ar.route.id);return(yr&&yr.replace)!==!0&&(z=cl.Push),{matches:xt,pendingActionResult:[Tr.route.id,pr]}}return{matches:xt,pendingActionResult:[Ar.route.id,pr]}}async function Re(et,ot,mt,xt,nr,yr,Pr,pr,Ar,Tr,Fr){let nn=nr||jH(ot,yr),fn=yr||Pr||ihe(nn),ci=!te&&(!y.v7_partialHydration||!Ar);if(xt){if(ci){let $i=Me(Fr);Ne(ys({navigation:nn},$i!==void 0?{actionData:$i}:{}),{flushSync:Tr})}let qn=await Ct(mt,ot.pathname,et.signal);if(qn.type==="aborted")return{shortCircuited:!0};if(qn.type==="error"){let $i=b1(qn.partialMatches).route.id;return{matches:qn.partialMatches,loaderData:{},errors:{[$i]:qn.error}}}else if(qn.matches)mt=qn.matches;else{let{error:$i,notFoundMatches:Da,route:qs}=Vn(ot.pathname);return{matches:Da,loaderData:{},errors:{[qs.id]:$i}}}}let _r=h||f,[pt,or]=$fe(t.history,H,mt,fn,ot,y.v7_partialHydration&&Ar===!0,y.v7_skipActionErrorRevalidation,K,ce,ae,_e,oe,re,_r,A,Fr);if(Nr(qn=>!(mt&&mt.some($i=>$i.route.id===qn))||pt&&pt.some($i=>$i.route.id===qn)),ie=++pe,pt.length===0&&or.length===0){let qn=br();return yt(ot,ys({matches:mt,loaderData:{},errors:Fr&&_h(Fr[1])?{[Fr[0]]:Fr[1].error}:null},the(Fr),qn?{fetchers:new Map(H.fetchers)}:{}),{flushSync:Tr}),{shortCircuited:!0}}if(ci){let qn={};if(!xt){qn.navigation=nn;let $i=Me(Fr);$i!==void 0&&(qn.actionData=$i)}or.length>0&&(qn.fetchers=Ge(or)),Ne(qn,{flushSync:Tr})}or.forEach(qn=>{lr(qn.key),qn.controller&&le.set(qn.key,qn.controller)});let Ur=()=>or.forEach(qn=>lr(qn.key));j&&j.signal.addEventListener("abort",Ur);let{loaderResults:Ti,fetcherResults:ni}=await ft(H,mt,pt,or,et);if(et.signal.aborted)return{shortCircuited:!0};j&&j.signal.removeEventListener("abort",Ur),or.forEach(qn=>le.delete(qn.key));let Li=pM(Ti);if(Li)return await $e(et,Li.result,!0,{replace:pr}),{shortCircuited:!0};if(Li=pM(ni),Li)return re.add(Li.key),await $e(et,Li.result,!0,{replace:pr}),{shortCircuited:!0};let{loaderData:ea,errors:Tn}=Jfe(H,mt,Ti,Fr,or,ni,Ce);Ce.forEach((qn,$i)=>{qn.subscribe(Da=>{(Da||qn.done)&&Ce.delete($i)})}),y.v7_partialHydration&&Ar&&H.errors&&(Tn=ys({},H.errors,Tn));let Mi=br(),Ka=on(ie),ga=Mi||Ka||or.length>0;return ys({matches:mt,loaderData:ea,errors:Tn},ga?{fetchers:new Map(H.fetchers)}:{})}function Me(et){if(et&&!_h(et[1]))return{[et[0]]:et[1].data};if(H.actionData)return Object.keys(H.actionData).length===0?null:H.actionData}function Ge(et){return et.forEach(ot=>{let mt=H.fetchers.get(ot.key),xt=aT(void 0,mt?mt.data:void 0);H.fetchers.set(ot.key,xt)}),new Map(H.fetchers)}function Pe(et,ot,mt,xt){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");lr(et);let nr=(xt&&xt.flushSync)===!0,yr=h||f,Pr=wW(H.location,H.matches,A,y.v7_prependBasename,mt,y.v7_relativeSplatPath,ot,xt?.relative),pr=w1(yr,Pr,A),Ar=At(pr,yr,Pr);if(Ar.active&&Ar.matches&&(pr=Ar.matches),!pr){Bt(et,ot,Nf(404,{pathname:Pr}),{flushSync:nr});return}let{path:Tr,submission:Fr,error:nn}=qfe(y.v7_normalizeFormMethod,!0,Pr,xt);if(nn){Bt(et,ot,nn,{flushSync:nr});return}let fn=YT(pr,Tr),ci=(xt&&xt.preventScrollReset)===!0;if(Fr&&LA(Fr.formMethod)){ke(et,ot,Tr,fn,pr,Ar.active,nr,ci,Fr);return}oe.set(et,{routeId:ot,path:Tr}),Be(et,ot,Tr,fn,pr,Ar.active,nr,ci,Fr)}async function ke(et,ot,mt,xt,nr,yr,Pr,pr,Ar){Mt(),oe.delete(et);function Tr(Di){if(!Di.route.action&&!Di.route.lazy){let Wo=Nf(405,{method:Ar.formMethod,pathname:mt,routeId:ot});return Bt(et,ot,Wo,{flushSync:Pr}),!0}return!1}if(!yr&&Tr(xt))return;let Fr=H.fetchers.get(et);Rt(et,utt(Ar,Fr),{flushSync:Pr});let nn=new AbortController,fn=$b(t.history,mt,nn.signal,Ar);if(yr){let Di=await Ct(nr,new URL(fn.url).pathname,fn.signal,et);if(Di.type==="aborted")return;if(Di.type==="error"){Bt(et,ot,Di.error,{flushSync:Pr});return}else if(Di.matches){if(nr=Di.matches,xt=YT(nr,mt),Tr(xt))return}else{Bt(et,ot,Nf(404,{pathname:mt}),{flushSync:Pr});return}}le.set(et,nn);let ci=pe,pt=(await nt("action",H,fn,[xt],nr,et))[xt.route.id];if(fn.signal.aborted){le.get(et)===nn&&le.delete(et);return}if(y.v7_fetcherPersist&&_e.has(et)){if(T1(pt)||_h(pt)){Rt(et,Nm(void 0));return}}else{if(T1(pt))if(le.delete(et),ie>ci){Rt(et,Nm(void 0));return}else return re.add(et),Rt(et,aT(Ar)),$e(fn,pt,!1,{fetcherSubmission:Ar,preventScrollReset:pr});if(_h(pt)){Bt(et,ot,pt.error);return}}if(Xm(pt))throw Nf(400,{type:"defer-action"});let or=H.navigation.location||H.location,Ur=$b(t.history,or,nn.signal),Ti=h||f,ni=H.navigation.state!=="idle"?w1(Ti,H.navigation.location,A):H.matches;Xi(ni,"Didn't find any matches after fetcher action");let Li=++pe;he.set(et,Li);let ea=aT(Ar,pt.data);H.fetchers.set(et,ea);let[Tn,Mi]=$fe(t.history,H,ni,Ar,or,!1,y.v7_skipActionErrorRevalidation,K,ce,ae,_e,oe,re,Ti,A,[xt.route.id,pt]);Mi.filter(Di=>Di.key!==et).forEach(Di=>{let Wo=Di.key,na=H.fetchers.get(Wo),bs=aT(void 0,na?na.data:void 0);H.fetchers.set(Wo,bs),lr(Wo),Di.controller&&le.set(Wo,Di.controller)}),Ne({fetchers:new Map(H.fetchers)});let Ka=()=>Mi.forEach(Di=>lr(Di.key));nn.signal.addEventListener("abort",Ka);let{loaderResults:ga,fetcherResults:qn}=await ft(H,ni,Tn,Mi,Ur);if(nn.signal.aborted)return;nn.signal.removeEventListener("abort",Ka),he.delete(et),le.delete(et),Mi.forEach(Di=>le.delete(Di.key));let $i=pM(ga);if($i)return $e(Ur,$i.result,!1,{preventScrollReset:pr});if($i=pM(qn),$i)return re.add($i.key),$e(Ur,$i.result,!1,{preventScrollReset:pr});let{loaderData:Da,errors:qs}=Jfe(H,ni,ga,void 0,Mi,qn,Ce);if(H.fetchers.has(et)){let Di=Nm(pt.data);H.fetchers.set(et,Di)}on(Li),H.navigation.state==="loading"&&Li>ie?(Xi(z,"Expected pending action"),j&&j.abort(),yt(H.navigation.location,{matches:ni,loaderData:Da,errors:qs,fetchers:new Map(H.fetchers)})):(Ne({errors:qs,loaderData:ehe(H.loaderData,Da,ni,qs),fetchers:new Map(H.fetchers)}),K=!1)}async function Be(et,ot,mt,xt,nr,yr,Pr,pr,Ar){let Tr=H.fetchers.get(et);Rt(et,aT(Ar,Tr?Tr.data:void 0),{flushSync:Pr});let Fr=new AbortController,nn=$b(t.history,mt,Fr.signal);if(yr){let pt=await Ct(nr,new URL(nn.url).pathname,nn.signal,et);if(pt.type==="aborted")return;if(pt.type==="error"){Bt(et,ot,pt.error,{flushSync:Pr});return}else if(pt.matches)nr=pt.matches,xt=YT(nr,mt);else{Bt(et,ot,Nf(404,{pathname:mt}),{flushSync:Pr});return}}le.set(et,Fr);let fn=pe,_r=(await nt("loader",H,nn,[xt],nr,et))[xt.route.id];if(Xm(_r)&&(_r=await BY(_r,nn.signal,!0)||_r),le.get(et)===Fr&&le.delete(et),!nn.signal.aborted){if(_e.has(et)){Rt(et,Nm(void 0));return}if(T1(_r))if(ie>fn){Rt(et,Nm(void 0));return}else{re.add(et),await $e(nn,_r,!1,{preventScrollReset:pr});return}if(_h(_r)){Bt(et,ot,_r.error);return}Xi(!Xm(_r),"Unhandled fetcher deferred data"),Rt(et,Nm(_r.data))}}async function $e(et,ot,mt,xt){let{submission:nr,fetcherSubmission:yr,preventScrollReset:Pr,replace:pr}=xt===void 0?{}:xt;ot.response.headers.has("X-Remix-Revalidate")&&(K=!0);let Ar=ot.response.headers.get("Location");Xi(Ar,"Expected a Location header on the redirect Response"),Ar=Xfe(Ar,new URL(et.url),A);let Tr=t2(H.location,Ar,{_isRedirect:!0});if(r){let pt=!1;if(ot.response.headers.has("X-Remix-Reload-Document"))pt=!0;else if(EY.test(Ar)){const or=t.history.createURL(Ar);pt=or.origin!==e.location.origin||G2(or.pathname,A)==null}if(pt){pr?e.location.replace(Ar):e.location.assign(Ar);return}}j=null;let Fr=pr===!0||ot.response.headers.has("X-Remix-Replace")?cl.Replace:cl.Push,{formMethod:nn,formAction:fn,formEncType:ci}=H.navigation;!nr&&!yr&&nn&&fn&&ci&&(nr=ihe(H.navigation));let _r=nr||yr;if(zet.has(ot.response.status)&&_r&&LA(_r.formMethod))await Qe(Fr,Tr,{submission:ys({},_r,{formAction:Ar}),preventScrollReset:Pr||G,enableViewTransition:mt?q:void 0});else{let pt=jH(Tr,nr);await Qe(Fr,Tr,{overrideNavigation:pt,fetcherSubmission:yr,preventScrollReset:Pr||G,enableViewTransition:mt?q:void 0})}}async function nt(et,ot,mt,xt,nr,yr){let Pr,pr={};try{Pr=await Xet(p,et,ot,mt,xt,nr,yr,u,o)}catch(Ar){return xt.forEach(Tr=>{pr[Tr.route.id]={type:po.error,error:Ar}}),pr}for(let[Ar,Tr]of Object.entries(Pr))if(ntt(Tr)){let Fr=Tr.result;pr[Ar]={type:po.redirect,response:ett(Fr,mt,Ar,nr,A,y.v7_relativeSplatPath)}}else pr[Ar]=await Jet(Tr);return pr}async function ft(et,ot,mt,xt,nr){let yr=et.matches,Pr=nt("loader",et,nr,mt,ot,null),pr=Promise.all(xt.map(async Fr=>{if(Fr.matches&&Fr.match&&Fr.controller){let fn=(await nt("loader",et,$b(t.history,Fr.path,Fr.controller.signal),[Fr.match],Fr.matches,Fr.key))[Fr.match.route.id];return{[Fr.key]:fn}}else return Promise.resolve({[Fr.key]:{type:po.error,error:Nf(404,{pathname:Fr.path})}})})),Ar=await Pr,Tr=(await pr).reduce((Fr,nn)=>Object.assign(Fr,nn),{});return await Promise.all([ott(ot,Ar,nr.signal,yr,et.loaderData),stt(ot,Tr,xt)]),{loaderResults:Ar,fetcherResults:Tr}}function Mt(){K=!0,ce.push(...Nr()),oe.forEach((et,ot)=>{le.has(ot)&&ae.add(ot),lr(ot)})}function Rt(et,ot,mt){mt===void 0&&(mt={}),H.fetchers.set(et,ot),Ne({fetchers:new Map(H.fetchers)},{flushSync:(mt&&mt.flushSync)===!0})}function Bt(et,ot,mt,xt){xt===void 0&&(xt={});let nr=b1(H.matches,ot);qt(et),Ne({errors:{[nr.route.id]:mt},fetchers:new Map(H.fetchers)},{flushSync:(xt&&xt.flushSync)===!0})}function It(et){return ye.set(et,(ye.get(et)||0)+1),_e.has(et)&&_e.delete(et),H.fetchers.get(et)||Get}function qt(et){let ot=H.fetchers.get(et);le.has(et)&&!(ot&&ot.state==="loading"&&he.has(et))&&lr(et),oe.delete(et),he.delete(et),re.delete(et),y.v7_fetcherPersist&&_e.delete(et),ae.delete(et),H.fetchers.delete(et)}function fr(et){let ot=(ye.get(et)||0)-1;ot<=0?(ye.delete(et),_e.add(et),y.v7_fetcherPersist||qt(et)):ye.set(et,ot),Ne({fetchers:new Map(H.fetchers)})}function lr(et){let ot=le.get(et);ot&&(ot.abort(),le.delete(et))}function _t(et){for(let ot of et){let mt=It(ot),xt=Nm(mt.data);H.fetchers.set(ot,xt)}}function br(){let et=[],ot=!1;for(let mt of re){let xt=H.fetchers.get(mt);Xi(xt,"Expected fetcher: "+mt),xt.state==="loading"&&(re.delete(mt),et.push(mt),ot=!0)}return _t(et),ot}function on(et){let ot=[];for(let[mt,xt]of he)if(xt<et){let nr=H.fetchers.get(mt);Xi(nr,"Expected fetcher: "+mt),nr.state==="loading"&&(lr(mt),he.delete(mt),ot.push(mt))}return _t(ot),ot.length>0}function Br(et,ot){let mt=H.blockers.get(et)||iT;return ne.get(et)!==ot&&ne.set(et,ot),mt}function rn(et){H.blockers.delete(et),ne.delete(et)}function Yr(et,ot){let mt=H.blockers.get(et)||iT;Xi(mt.state==="unblocked"&&ot.state==="blocked"||mt.state==="blocked"&&ot.state==="blocked"||mt.state==="blocked"&&ot.state==="proceeding"||mt.state==="blocked"&&ot.state==="unblocked"||mt.state==="proceeding"&&ot.state==="unblocked","Invalid blocker state transition: "+mt.state+" -> "+ot.state);let xt=new Map(H.blockers);xt.set(et,ot),Ne({blockers:xt})}function cn(et){let{currentLocation:ot,nextLocation:mt,historyAction:xt}=et;if(ne.size===0)return;ne.size>1&&wS(!1,"A router only supports one blocker at a time");let nr=Array.from(ne.entries()),[yr,Pr]=nr[nr.length-1],pr=H.blockers.get(yr);if(!(pr&&pr.state==="proceeding")&&Pr({currentLocation:ot,nextLocation:mt,historyAction:xt}))return yr}function Vn(et){let ot=Nf(404,{pathname:et}),mt=h||f,{matches:xt,route:nr}=rhe(mt);return Nr(),{notFoundMatches:xt,route:nr,error:ot}}function Nr(et){let ot=[];return Ce.forEach((mt,xt)=>{(!et||et(xt))&&(mt.cancel(),ot.push(xt),Ce.delete(xt))}),ot}function Ht(et,ot,mt){if(C=et,B=ot,T=mt||null,!L&&H.navigation===GH){L=!0;let xt=vt(H.location,H.matches);xt!=null&&Ne({restoreScrollPosition:xt})}return()=>{C=null,B=null,T=null}}function zr(et,ot){return T&&T(et,ot.map(xt=>wet(xt,H.loaderData)))||et.key}function kn(et,ot){if(C&&B){let mt=zr(et,ot);C[mt]=B()}}function vt(et,ot){if(C){let mt=zr(et,ot),xt=C[mt];if(typeof xt=="number")return xt}return null}function At(et,ot,mt){if(g)if(et){if(Object.keys(et[0].params).length>0)return{active:!0,matches:p5(ot,mt,A,!0)}}else return{active:!0,matches:p5(ot,mt,A,!0)||[]};return{active:!1,matches:null}}async function Ct(et,ot,mt,xt){if(!g)return{type:"success",matches:et};let nr=et;for(;;){let yr=h==null,Pr=h||f,pr=u;try{await g({signal:mt,path:ot,matches:nr,fetcherKey:xt,patch:(Fr,nn)=>{mt.aborted||Yfe(Fr,nn,Pr,pr,o)}})}catch(Fr){return{type:"error",error:Fr,partialMatches:nr}}finally{yr&&!mt.aborted&&(f=[...f])}if(mt.aborted)return{type:"aborted"};let Ar=w1(Pr,ot,A);if(Ar)return{type:"success",matches:Ar};let Tr=p5(Pr,ot,A,!0);if(!Tr||nr.length===Tr.length&&nr.every((Fr,nn)=>Fr.route.id===Tr[nn].route.id))return{type:"success",matches:null};nr=Tr}}function Tt(et){u={},h=PR(et,o,void 0,u)}function ir(et,ot){let mt=h==null;Yfe(et,ot,h||f,u,o),mt&&(f=[...f],Ne({}))}return N={get basename(){return A},get future(){return y},get state(){return H},get routes(){return f},get window(){return e},initialize:De,subscribe:Ye,enableScrollRestoration:Ht,navigate:Ue,fetch:Pe,revalidate:ue,createHref:et=>t.history.createHref(et),encodeLocation:et=>t.history.encodeLocation(et),getFetcher:It,deleteFetcher:fr,dispose:ze,getBlocker:Br,deleteBlocker:rn,patchRoutes:ir,_internalFetchControllers:le,_internalActiveDeferreds:Ce,_internalSetRoutes:Tt},N}function Wet(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function wW(t,e,r,n,o,u,f,h){let A,p;if(f){A=[];for(let y of e)if(A.push(y),y.route.id===f){p=y;break}}else A=e,p=e[e.length-1];let g=TY(o||".",CY(A,u),G2(t.pathname,r)||t.pathname,h==="path");if(o==null&&(g.search=t.search,g.hash=t.hash),(o==null||o===""||o===".")&&p){let y=IY(g.search);if(p.route.index&&!y)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!p.route.index&&y){let _=new URLSearchParams(g.search),b=_.getAll("index");_.delete("index"),b.filter(T=>T).forEach(T=>_.append("index",T));let C=_.toString();g.search=C?"?"+C:""}}return n&&r!=="/"&&(g.pathname=g.pathname==="/"?r:ly([r,g.pathname])),z2(g)}function qfe(t,e,r,n){if(!n||!Wet(n))return{path:r};if(n.formMethod&&!att(n.formMethod))return{path:r,error:Nf(405,{method:n.formMethod})};let o=()=>({path:r,error:Nf(400,{type:"invalid-body"})}),u=n.formMethod||"get",f=t?u.toUpperCase():u.toLowerCase(),h=$2e(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!LA(f))return o();let _=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((b,C)=>{let[T,B]=C;return""+b+T+"="+B+`
`},""):String(n.body);return{path:r,submission:{formMethod:f,formAction:h,formEncType:n.formEncType,formData:void 0,json:void 0,text:_}}}else if(n.formEncType==="application/json"){if(!LA(f))return o();try{let _=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:f,formAction:h,formEncType:n.formEncType,formData:void 0,json:_,text:void 0}}}catch{return o()}}}Xi(typeof FormData=="function","FormData is not available in this environment");let A,p;if(n.formData)A=_W(n.formData),p=n.formData;else if(n.body instanceof FormData)A=_W(n.body),p=n.body;else if(n.body instanceof URLSearchParams)A=n.body,p=Zfe(A);else if(n.body==null)A=new URLSearchParams,p=new FormData;else try{A=new URLSearchParams(n.body),p=Zfe(A)}catch{return o()}let g={formMethod:f,formAction:h,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(LA(g.formMethod))return{path:r,submission:g};let y=Eg(r);return e&&y.search&&IY(y.search)&&A.append("index",""),y.search="?"+A,{path:z2(y),submission:g}}function Wfe(t,e,r){r===void 0&&(r=!1);let n=t.findIndex(o=>o.route.id===e);return n>=0?t.slice(0,r?n+1:n):t}function $fe(t,e,r,n,o,u,f,h,A,p,g,y,_,b,C,T){let B=T?_h(T[1])?T[1].error:T[1].data:void 0,L=t.createURL(e.location),P=t.createURL(o),I=r;u&&e.errors?I=Wfe(r,Object.keys(e.errors)[0],!0):T&&_h(T[1])&&(I=Wfe(r,T[0]));let O=T?T[1].statusCode:void 0,U=f&&O&&O>=400,N=I.filter((z,G)=>{let{route:j}=z;if(j.lazy)return!0;if(j.loader==null)return!1;if(u)return bW(j,e.loaderData,e.errors);if($et(e.loaderData,e.matches[G],z)||A.some(Y=>Y===z.route.id))return!0;let q=e.matches[G],X=z;return Kfe(z,ys({currentUrl:L,currentParams:q.params,nextUrl:P,nextParams:X.params},n,{actionResult:B,actionStatus:O,defaultShouldRevalidate:U?!1:h||L.pathname+L.search===P.pathname+P.search||L.search!==P.search||q2e(q,X)}))}),H=[];return y.forEach((z,G)=>{if(u||!r.some(te=>te.route.id===z.routeId)||g.has(G))return;let j=w1(b,z.path,C);if(!j){H.push({key:G,routeId:z.routeId,path:z.path,matches:null,match:null,controller:null});return}let q=e.fetchers.get(G),X=YT(j,z.path),Y=!1;_.has(G)?Y=!1:p.has(G)?(p.delete(G),Y=!0):q&&q.state!=="idle"&&q.data===void 0?Y=h:Y=Kfe(X,ys({currentUrl:L,currentParams:e.matches[e.matches.length-1].params,nextUrl:P,nextParams:r[r.length-1].params},n,{actionResult:B,actionStatus:O,defaultShouldRevalidate:U?!1:h})),Y&&H.push({key:G,routeId:z.routeId,path:z.path,matches:j,match:X,controller:new AbortController})}),[N,H]}function bW(t,e,r){if(t.lazy)return!0;if(!t.loader)return!1;let n=e!=null&&e[t.id]!==void 0,o=r!=null&&r[t.id]!==void 0;return!n&&o?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!n&&!o}function $et(t,e,r){let n=!e||r.route.id!==e.route.id,o=t[r.route.id]===void 0;return n||o}function q2e(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function Kfe(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}function Yfe(t,e,r,n,o){var u;let f;if(t){let p=n[t];Xi(p,"No route found to patch children into: routeId = "+t),p.children||(p.children=[]),f=p.children}else f=r;let h=e.filter(p=>!f.some(g=>W2e(p,g))),A=PR(h,o,[t||"_","patch",String(((u=f)==null?void 0:u.length)||"0")],n);f.push(...A)}function W2e(t,e){return"id"in t&&"id"in e&&t.id===e.id?!0:t.index===e.index&&t.path===e.path&&t.caseSensitive===e.caseSensitive?(!t.children||t.children.length===0)&&(!e.children||e.children.length===0)?!0:t.children.every((r,n)=>{var o;return(o=e.children)==null?void 0:o.some(u=>W2e(r,u))}):!1}async function Ket(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let o=r[t.id];Xi(o,"No route found in manifest");let u={};for(let f in n){let A=o[f]!==void 0&&f!=="hasErrorBoundary";wS(!A,'Route "'+o.id+'" has a static property "'+f+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+f+'" will be ignored.')),!A&&!met.has(f)&&(u[f]=n[f])}Object.assign(o,u),Object.assign(o,ys({},e(o),{lazy:void 0}))}async function Yet(t){let{matches:e}=t,r=e.filter(o=>o.shouldLoad);return(await Promise.all(r.map(o=>o.resolve()))).reduce((o,u,f)=>Object.assign(o,{[r[f].route.id]:u}),{})}async function Xet(t,e,r,n,o,u,f,h,A,p){let g=u.map(b=>b.route.lazy?Ket(b.route,A,h):void 0),y=u.map((b,C)=>{let T=g[C],B=o.some(P=>P.route.id===b.route.id);return ys({},b,{shouldLoad:B,resolve:async P=>(P&&n.method==="GET"&&(b.route.lazy||b.route.loader)&&(B=!0),B?Zet(e,n,b,T,P,p):Promise.resolve({type:po.data,result:void 0}))})}),_=await t({matches:y,request:n,params:u[0].params,fetcherKey:f,context:p});try{await Promise.all(g)}catch{}return _}async function Zet(t,e,r,n,o,u){let f,h,A=p=>{let g,y=new Promise((C,T)=>g=T);h=()=>g(),e.signal.addEventListener("abort",h);let _=C=>typeof p!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+r.route.id+"]"))):p({request:e,params:r.params,context:u},...C!==void 0?[C]:[]),b=(async()=>{try{return{type:"data",result:await(o?o(T=>_(T)):_())}}catch(C){return{type:"error",result:C}}})();return Promise.race([b,y])};try{let p=r.route[t];if(n)if(p){let g,[y]=await Promise.all([A(p).catch(_=>{g=_}),n]);if(g!==void 0)throw g;f=y}else if(await n,p=r.route[t],p)f=await A(p);else if(t==="action"){let g=new URL(e.url),y=g.pathname+g.search;throw Nf(405,{method:e.method,pathname:y,routeId:r.route.id})}else return{type:po.data,result:void 0};else if(p)f=await A(p);else{let g=new URL(e.url),y=g.pathname+g.search;throw Nf(404,{pathname:y})}Xi(f.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(p){return{type:po.error,result:p}}finally{h&&e.signal.removeEventListener("abort",h)}return f}async function Jet(t){let{result:e,type:r}=t;if(K2e(e)){let y;try{let _=e.headers.get("Content-Type");_&&/\bapplication\/json\b/.test(_)?e.body==null?y=null:y=await e.json():y=await e.text()}catch(_){return{type:po.error,error:_}}return r===po.error?{type:po.error,error:new OR(e.status,e.statusText,y),statusCode:e.status,headers:e.headers}:{type:po.data,data:y,statusCode:e.status,headers:e.headers}}if(r===po.error){if(nhe(e)){var n,o;if(e.data instanceof Error){var u,f;return{type:po.error,error:e.data,statusCode:(u=e.init)==null?void 0:u.status,headers:(f=e.init)!=null&&f.headers?new Headers(e.init.headers):void 0}}return{type:po.error,error:new OR(((n=e.init)==null?void 0:n.status)||500,void 0,e.data),statusCode:r2(e)?e.status:void 0,headers:(o=e.init)!=null&&o.headers?new Headers(e.init.headers):void 0}}return{type:po.error,error:e,statusCode:r2(e)?e.status:void 0}}if(itt(e)){var h,A;return{type:po.deferred,deferredData:e,statusCode:(h=e.init)==null?void 0:h.status,headers:((A=e.init)==null?void 0:A.headers)&&new Headers(e.init.headers)}}if(nhe(e)){var p,g;return{type:po.data,data:e.data,statusCode:(p=e.init)==null?void 0:p.status,headers:(g=e.init)!=null&&g.headers?new Headers(e.init.headers):void 0}}return{type:po.data,data:e}}function ett(t,e,r,n,o,u){let f=t.headers.get("Location");if(Xi(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!EY.test(f)){let h=n.slice(0,n.findIndex(A=>A.route.id===r)+1);f=wW(new URL(e.url),h,o,!0,f,u),t.headers.set("Location",f)}return t}function Xfe(t,e,r){if(EY.test(t)){let n=t,o=n.startsWith("//")?new URL(e.protocol+n):new URL(n),u=G2(o.pathname,r)!=null;if(o.origin===e.origin&&u)return o.pathname+o.search+o.hash}return t}function $b(t,e,r,n){let o=t.createURL($2e(e)).toString(),u={signal:r};if(n&&LA(n.formMethod)){let{formMethod:f,formEncType:h}=n;u.method=f.toUpperCase(),h==="application/json"?(u.headers=new Headers({"Content-Type":h}),u.body=JSON.stringify(n.json)):h==="text/plain"?u.body=n.text:h==="application/x-www-form-urlencoded"&&n.formData?u.body=_W(n.formData):u.body=n.formData}return new Request(o,u)}function _W(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,typeof n=="string"?n:n.name);return e}function Zfe(t){let e=new FormData;for(let[r,n]of t.entries())e.append(r,n);return e}function ttt(t,e,r,n,o){let u={},f=null,h,A=!1,p={},g=r&&_h(r[1])?r[1].error:void 0;return t.forEach(y=>{if(!(y.route.id in e))return;let _=y.route.id,b=e[_];if(Xi(!T1(b),"Cannot handle redirect results in processLoaderData"),_h(b)){let C=b.error;g!==void 0&&(C=g,g=void 0),f=f||{};{let T=b1(t,_);f[T.route.id]==null&&(f[T.route.id]=C)}u[_]=void 0,A||(A=!0,h=r2(b.error)?b.error.status:500),b.headers&&(p[_]=b.headers)}else Xm(b)?(n.set(_,b.deferredData),u[_]=b.deferredData.data,b.statusCode!=null&&b.statusCode!==200&&!A&&(h=b.statusCode),b.headers&&(p[_]=b.headers)):(u[_]=b.data,b.statusCode&&b.statusCode!==200&&!A&&(h=b.statusCode),b.headers&&(p[_]=b.headers))}),g!==void 0&&r&&(f={[r[0]]:g},u[r[0]]=void 0),{loaderData:u,errors:f,statusCode:h||200,loaderHeaders:p}}function Jfe(t,e,r,n,o,u,f){let{loaderData:h,errors:A}=ttt(e,r,n,f);return o.forEach(p=>{let{key:g,match:y,controller:_}=p,b=u[g];if(Xi(b,"Did not find corresponding fetcher result"),!(_&&_.signal.aborted))if(_h(b)){let C=b1(t.matches,y?.route.id);A&&A[C.route.id]||(A=ys({},A,{[C.route.id]:b.error})),t.fetchers.delete(g)}else if(T1(b))Xi(!1,"Unhandled fetcher revalidation redirect");else if(Xm(b))Xi(!1,"Unhandled fetcher deferred data");else{let C=Nm(b.data);t.fetchers.set(g,C)}}),{loaderData:h,errors:A}}function ehe(t,e,r,n){let o=ys({},e);for(let u of r){let f=u.route.id;if(e.hasOwnProperty(f)?e[f]!==void 0&&(o[f]=e[f]):t[f]!==void 0&&u.route.loader&&(o[f]=t[f]),n&&n.hasOwnProperty(f))break}return o}function the(t){return t?_h(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function b1(t,e){return(e?t.slice(0,t.findIndex(n=>n.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function rhe(t){let e=t.length===1?t[0]:t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Nf(t,e){let{pathname:r,routeId:n,method:o,type:u,message:f}=e===void 0?{}:e,h="Unknown Server Error",A="Unknown @remix-run/router error";return t===400?(h="Bad Request",o&&r&&n?A="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":u==="defer-action"?A="defer() is not supported in actions":u==="invalid-body"&&(A="Unable to encode submission body")):t===403?(h="Forbidden",A='Route "'+n+'" does not match URL "'+r+'"'):t===404?(h="Not Found",A='No route matches URL "'+r+'"'):t===405&&(h="Method Not Allowed",o&&r&&n?A="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(A='Invalid request method "'+o.toUpperCase()+'"')),new OR(t||500,h,new Error(A),!0)}function pM(t){let e=Object.entries(t);for(let r=e.length-1;r>=0;r--){let[n,o]=e[r];if(T1(o))return{key:n,result:o}}}function $2e(t){let e=typeof t=="string"?Eg(t):t;return z2(ys({},e,{hash:""}))}function rtt(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function ntt(t){return K2e(t.result)&&Vet.has(t.result.status)}function Xm(t){return t.type===po.deferred}function _h(t){return t.type===po.error}function T1(t){return(t&&t.type)===po.redirect}function nhe(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function itt(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function K2e(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function att(t){return Qet.has(t.toLowerCase())}function LA(t){return Uet.has(t.toLowerCase())}async function ott(t,e,r,n,o){let u=Object.entries(e);for(let f=0;f<u.length;f++){let[h,A]=u[f],p=t.find(_=>_?.route.id===h);if(!p)continue;let g=n.find(_=>_.route.id===p.route.id),y=g!=null&&!q2e(g,p)&&(o&&o[p.route.id])!==void 0;Xm(A)&&y&&await BY(A,r,!1).then(_=>{_&&(e[h]=_)})}}async function stt(t,e,r){for(let n=0;n<r.length;n++){let{key:o,routeId:u,controller:f}=r[n],h=e[o];t.find(p=>p?.route.id===u)&&Xm(h)&&(Xi(f,"Expected an AbortController for revalidating fetcher deferred result"),await BY(h,f.signal,!0).then(p=>{p&&(e[o]=p)}))}}async function BY(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:po.data,data:t.deferredData.unwrappedData}}catch(o){return{type:po.error,error:o}}return{type:po.data,data:t.deferredData.data}}}function IY(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function YT(t,e){let r=typeof e=="string"?Eg(e).search:e.search;if(t[t.length-1].route.index&&IY(r||""))return t[t.length-1];let n=z2e(t);return n[n.length-1]}function ihe(t){let{formMethod:e,formAction:r,formEncType:n,text:o,formData:u,json:f}=t;if(!(!e||!r||!n)){if(o!=null)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(u!=null)return{formMethod:e,formAction:r,formEncType:n,formData:u,json:void 0,text:void 0};if(f!==void 0)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:f,text:void 0}}}function jH(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ltt(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function aT(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function utt(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Nm(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function ctt(t,e){try{let r=t.sessionStorage.getItem(j2e);if(r){let n=JSON.parse(r);for(let[o,u]of Object.entries(n||{}))u&&Array.isArray(u)&&e.set(o,new Set(u||[]))}}catch{}}function ftt(t,e){if(e.size>0){let r={};for(let[n,o]of e)r[n]=[...o];try{t.sessionStorage.setItem(j2e,JSON.stringify(r))}catch(n){wS(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/**
* React Router v6.30.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function n2(){return n2=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n2.apply(this,arguments)}const gO=Ae.createContext(null),Y2e=Ae.createContext(null),j2=Ae.createContext(null),mO=Ae.createContext(null),Ty=Ae.createContext({outlet:null,matches:[],isDataRoute:!1}),X2e=Ae.createContext(null);function q2(){return Ae.useContext(mO)!=null}function LY(){return q2()||Xi(!1),Ae.useContext(mO).location}function Z2e(t){Ae.useContext(j2).static||Ae.useLayoutEffect(t)}function htt(){let{isDataRoute:t}=Ae.useContext(Ty);return t?xtt():dtt()}function dtt(){q2()||Xi(!1);let t=Ae.useContext(gO),{basename:e,future:r,navigator:n}=Ae.useContext(j2),{matches:o}=Ae.useContext(Ty),{pathname:u}=LY(),f=JSON.stringify(CY(o,r.v7_relativeSplatPath)),h=Ae.useRef(!1);return Z2e(()=>{h.current=!0}),Ae.useCallback(function(p,g){if(g===void 0&&(g={}),!h.current)return;if(typeof p=="number"){n.go(p);return}let y=TY(p,JSON.parse(f),u,g.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:ly([e,y.pathname])),(g.replace?n.replace:n.push)(y,g.state,g)},[e,n,f,u,t])}function $Ht(){let{matches:t}=Ae.useContext(Ty),e=t[t.length-1];return e?e.params:{}}function Att(t,e){return J2e(t,e)}function J2e(t,e,r,n){q2()||Xi(!1);let{navigator:o}=Ae.useContext(j2),{matches:u}=Ae.useContext(Ty),f=u[u.length-1],h=f?f.params:{};f&&f.pathname;let A=f?f.pathnameBase:"/";f&&f.route;let p=LY(),g;if(e){var y;let B=typeof e=="string"?Eg(e):e;A==="/"||(y=B.pathname)!=null&&y.startsWith(A)||Xi(!1),g=B}else g=p;let _=g.pathname||"/",b=_;if(A!=="/"){let B=A.replace(/^\//,"").split("/");b="/"+_.replace(/^\//,"").split("/").slice(B.length).join("/")}let C=w1(t,{pathname:b}),T=ytt(C&&C.map(B=>Object.assign({},B,{params:Object.assign({},h,B.params),pathname:ly([A,o.encodeLocation?o.encodeLocation(B.pathname).pathname:B.pathname]),pathnameBase:B.pathnameBase==="/"?A:ly([A,o.encodeLocation?o.encodeLocation(B.pathnameBase).pathname:B.pathnameBase])})),u,r,n);return e&&T?Ae.createElement(mO.Provider,{value:{location:n2({pathname:"/",search:"",hash:"",state:null,key:"default"},g),navigationType:cl.Pop}},T):T}function vtt(){let t=Stt(),e=r2(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return Ae.createElement(Ae.Fragment,null,Ae.createElement("h2",null,"Unexpected Application Error!"),Ae.createElement("h3",{style:{fontStyle:"italic"}},e),r?Ae.createElement("pre",{style:o},r):null,null)}const ptt=Ae.createElement(vtt,null);class gtt extends Ae.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?Ae.createElement(Ty.Provider,{value:this.props.routeContext},Ae.createElement(X2e.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mtt(t){let{routeContext:e,match:r,children:n}=t,o=Ae.useContext(gO);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),Ae.createElement(Ty.Provider,{value:e},n)}function ytt(t,e,r,n){var o;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var u;if(!r)return null;if(r.errors)t=r.matches;else if((u=n)!=null&&u.v7_partialHydration&&e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let f=t,h=(o=r)==null?void 0:o.errors;if(h!=null){let g=f.findIndex(y=>y.route.id&&h?.[y.route.id]!==void 0);g>=0||Xi(!1),f=f.slice(0,Math.min(f.length,g+1))}let A=!1,p=-1;if(r&&n&&n.v7_partialHydration)for(let g=0;g<f.length;g++){let y=f[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=g),y.route.id){let{loaderData:_,errors:b}=r,C=y.route.loader&&_[y.route.id]===void 0&&(!b||b[y.route.id]===void 0);if(y.route.lazy||C){A=!0,p>=0?f=f.slice(0,p+1):f=[f[0]];break}}}return f.reduceRight((g,y,_)=>{let b,C=!1,T=null,B=null;r&&(b=h&&y.route.id?h[y.route.id]:void 0,T=y.route.errorElement||ptt,A&&(p<0&&_===0?(Ctt("route-fallback"),C=!0,B=null):p===_&&(C=!0,B=y.route.hydrateFallbackElement||null)));let L=e.concat(f.slice(0,_+1)),P=()=>{let I;return b?I=T:C?I=B:y.route.Component?I=Ae.createElement(y.route.Component,null):y.route.element?I=y.route.element:I=g,Ae.createElement(mtt,{match:y,routeContext:{outlet:g,matches:L,isDataRoute:r!=null},children:I})};return r&&(y.route.ErrorBoundary||y.route.errorElement||_===0)?Ae.createElement(gtt,{location:r.location,revalidation:r.revalidation,component:T,error:b,children:P(),routeContext:{outlet:null,matches:L,isDataRoute:!0}}):P()},null)}var eBe=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(eBe||{}),tBe=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(tBe||{});function wtt(t){let e=Ae.useContext(gO);return e||Xi(!1),e}function btt(t){let e=Ae.useContext(Y2e);return e||Xi(!1),e}function _tt(t){let e=Ae.useContext(Ty);return e||Xi(!1),e}function rBe(t){let e=_tt(),r=e.matches[e.matches.length-1];return r.route.id||Xi(!1),r.route.id}function Stt(){var t;let e=Ae.useContext(X2e),r=btt(),n=rBe();return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}function xtt(){let{router:t}=wtt(eBe.UseNavigateStable),e=rBe(tBe.UseNavigateStable),r=Ae.useRef(!1);return Z2e(()=>{r.current=!0}),Ae.useCallback(function(o,u){u===void 0&&(u={}),r.current&&(typeof o=="number"?t.navigate(o):t.navigate(o,n2({fromRouteId:e},u)))},[t,e])}const ahe={};function Ctt(t,e,r){ahe[t]||(ahe[t]=!0)}function Ttt(t,e){t?.v7_startTransition,t?.v7_relativeSplatPath===void 0&&(!e||e.v7_relativeSplatPath),e&&(e.v7_fetcherPersist,e.v7_normalizeFormMethod,e.v7_partialHydration,e.v7_skipActionErrorRevalidation)}function KHt(t){let{to:e,replace:r,state:n,relative:o}=t;q2()||Xi(!1);let{future:u,static:f}=Ae.useContext(j2),{matches:h}=Ae.useContext(Ty),{pathname:A}=LY(),p=htt(),g=TY(e,CY(h,u.v7_relativeSplatPath),A,o==="path"),y=JSON.stringify(g);return Ae.useEffect(()=>p(JSON.parse(y),{replace:r,state:n,relative:o}),[p,y,o,r,n]),null}function Ett(t){Xi(!1)}function Btt(t){let{basename:e="/",children:r=null,location:n,navigationType:o=cl.Pop,navigator:u,static:f=!1,future:h}=t;q2()&&Xi(!1);let A=e.replace(/^\/*/,"/"),p=Ae.useMemo(()=>({basename:A,navigator:u,static:f,future:n2({v7_relativeSplatPath:!1},h)}),[A,h,u,f]);typeof n=="string"&&(n=Eg(n));let{pathname:g="/",search:y="",hash:_="",state:b=null,key:C="default"}=n,T=Ae.useMemo(()=>{let B=G2(g,A);return B==null?null:{location:{pathname:B,search:y,hash:_,state:b,key:C},navigationType:o}},[A,g,y,_,b,C,o]);return T==null?null:Ae.createElement(j2.Provider,{value:p},Ae.createElement(mO.Provider,{children:r,value:T}))}function YHt(t){let{children:e,location:r}=t;return Att(SW(e),r)}new Promise(()=>{});function SW(t,e){e===void 0&&(e=[]);let r=[];return Ae.Children.forEach(t,(n,o)=>{if(!Ae.isValidElement(n))return;let u=[...e,o];if(n.type===Ae.Fragment){r.push.apply(r,SW(n.props.children,u));return}n.type!==Ett&&Xi(!1),!n.props.index||!n.props.children||Xi(!1);let f={id:n.props.id||u.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(f.children=SW(n.props.children,u)),r.push(f)}),r}function Itt(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:Ae.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:Ae.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:Ae.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/**
* React Router DOM v6.30.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function kR(){return kR=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},kR.apply(this,arguments)}const Ltt="6";try{window.__reactRouterVersion=Ltt}catch{}function XHt(t,e){return qet({basename:void 0,future:kR({},void 0,{v7_prependBasename:!0}),history:vet({window:void 0}),hydrationData:Mtt(),routes:t,mapRouteProperties:Itt,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function Mtt(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=kR({},e,{errors:Dtt(e.errors)})),e}function Dtt(t){if(!t)return null;let e=Object.entries(t),r={};for(let[n,o]of e)if(o&&o.__type==="RouteErrorResponse")r[n]=new OR(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let u=window[o.__subType];if(typeof u=="function")try{let f=new u(o.message);f.stack="",r[n]=f}catch{}}if(r[n]==null){let u=new Error(o.message);u.stack="",r[n]=u}}else r[n]=o;return r}const Rtt=Ae.createContext({isTransitioning:!1}),Ptt=Ae.createContext(new Map),Ott="startTransition",ohe=DR[Ott],ktt="flushSync",she=IJe[ktt];function Ftt(t){ohe?ohe(t):t()}function oT(t){she?she(t):t()}class Ntt{constructor(){this.status="pending",this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function ZHt(t){let{fallbackElement:e,router:r,future:n}=t,[o,u]=Ae.useState(r.state),[f,h]=Ae.useState(),[A,p]=Ae.useState({isTransitioning:!1}),[g,y]=Ae.useState(),[_,b]=Ae.useState(),[C,T]=Ae.useState(),B=Ae.useRef(new Map),{v7_startTransition:L}=n||{},P=Ae.useCallback(z=>{L?Ftt(z):z()},[L]),I=Ae.useCallback((z,G)=>{let{deletedFetchers:j,flushSync:q,viewTransitionOpts:X}=G;z.fetchers.forEach((te,K)=>{te.data!==void 0&&B.current.set(K,te.data)}),j.forEach(te=>B.current.delete(te));let Y=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!X||Y){q?oT(()=>u(z)):P(()=>u(z));return}if(q){oT(()=>{_&&(g&&g.resolve(),_.skipTransition()),p({isTransitioning:!0,flushSync:!0,currentLocation:X.currentLocation,nextLocation:X.nextLocation})});let te=r.window.document.startViewTransition(()=>{oT(()=>u(z))});te.finished.finally(()=>{oT(()=>{y(void 0),b(void 0),h(void 0),p({isTransitioning:!1})})}),oT(()=>b(te));return}_?(g&&g.resolve(),_.skipTransition(),T({state:z,currentLocation:X.currentLocation,nextLocation:X.nextLocation})):(h(z),p({isTransitioning:!0,flushSync:!1,currentLocation:X.currentLocation,nextLocation:X.nextLocation}))},[r.window,_,g,B,P]);Ae.useLayoutEffect(()=>r.subscribe(I),[r,I]),Ae.useEffect(()=>{A.isTransitioning&&!A.flushSync&&y(new Ntt)},[A]),Ae.useEffect(()=>{if(g&&f&&r.window){let z=f,G=g.promise,j=r.window.document.startViewTransition(async()=>{P(()=>u(z)),await G});j.finished.finally(()=>{y(void 0),b(void 0),h(void 0),p({isTransitioning:!1})}),b(j)}},[P,f,g,r.window]),Ae.useEffect(()=>{g&&f&&o.location.key===f.location.key&&g.resolve()},[g,_,o.location,f]),Ae.useEffect(()=>{!A.isTransitioning&&C&&(h(C.state),p({isTransitioning:!0,flushSync:!1,currentLocation:C.currentLocation,nextLocation:C.nextLocation}),T(void 0))},[A.isTransitioning,C]),Ae.useEffect(()=>{},[]);let O=Ae.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:z=>r.navigate(z),push:(z,G,j)=>r.navigate(z,{state:G,preventScrollReset:j?.preventScrollReset}),replace:(z,G,j)=>r.navigate(z,{replace:!0,state:G,preventScrollReset:j?.preventScrollReset})}),[r]),U=r.basename||"/",N=Ae.useMemo(()=>({router:r,navigator:O,static:!1,basename:U}),[r,O,U]),H=Ae.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return Ae.useEffect(()=>Ttt(n,r.future),[n,r.future]),Ae.createElement(Ae.Fragment,null,Ae.createElement(gO.Provider,{value:N},Ae.createElement(Y2e.Provider,{value:o},Ae.createElement(Ptt.Provider,{value:B.current},Ae.createElement(Rtt.Provider,{value:A},Ae.createElement(Btt,{basename:U,location:o.location,navigationType:o.historyAction,navigator:O,future:H},o.initialized||r.future.v7_partialHydration?Ae.createElement(Utt,{routes:r.routes,future:r.future,state:o}):e))))),null)}const Utt=Ae.memo(Htt);function Htt(t){let{routes:e,future:r,state:n}=t;return J2e(e,void 0,n,r)}var lhe;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(lhe||(lhe={}));var uhe;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(uhe||(uhe={}));const Qtt={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},nBe={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},ul={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},nf={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Um={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Cr{static getFirstMatch(e,r){const n=r.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,r){const n=r.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,r,n){if(e.test(r))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),r[0]===10)switch(r[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),!(r[0]===1&&r[1]<5)){if(r[0]===1&&r[1]<6)return"Cupcake";if(r[0]===1&&r[1]>=6)return"Donut";if(r[0]===2&&r[1]<2)return"Eclair";if(r[0]===2&&r[1]===2)return"Froyo";if(r[0]===2&&r[1]>2)return"Gingerbread";if(r[0]===3)return"Honeycomb";if(r[0]===4&&r[1]<1)return"Ice Cream Sandwich";if(r[0]===4&&r[1]<4)return"Jelly Bean";if(r[0]===4&&r[1]>=4)return"KitKat";if(r[0]===5)return"Lollipop";if(r[0]===6)return"Marshmallow";if(r[0]===7)return"Nougat";if(r[0]===8)return"Oreo";if(r[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,r,n=!1){const o=Cr.getVersionPrecision(e),u=Cr.getVersionPrecision(r);let f=Math.max(o,u),h=0;const A=Cr.map([e,r],p=>{const g=f-Cr.getVersionPrecision(p),y=p+new Array(g+1).join(".0");return Cr.map(y.split("."),_=>new Array(20-_.length).join("0")+_).reverse()});for(n&&(h=f-Math.min(o,u)),f-=1;f>=h;){if(A[0][f]>A[1][f])return 1;if(A[0][f]===A[1][f]){if(f===h)return 0;f-=1}else if(A[0][f]<A[1][f])return-1}}static map(e,r){const n=[];let o;if(Array.prototype.map)return Array.prototype.map.call(e,r);for(o=0;o<e.length;o+=1)n.push(r(e[o]));return n}static find(e,r){let n,o;if(Array.prototype.find)return Array.prototype.find.call(e,r);for(n=0,o=e.length;n<o;n+=1){const u=e[n];if(r(u,n))return u}}static assign(e,...r){const n=e;let o,u;if(Object.assign)return Object.assign(e,...r);for(o=0,u=r.length;o<u;o+=1){const f=r[o];typeof f=="object"&&f!==null&&Object.keys(f).forEach(A=>{n[A]=f[A]})}return e}static getBrowserAlias(e){return Qtt[e]}static getBrowserTypeByAlias(e){return nBe[e]||""}}const Ro=/version\/(\d+(\.?_?\d+)+)/i,Vtt=[{test:[/googlebot/i],describe(t){const e={name:"Googlebot"},r=Cr.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/opera/i],describe(t){const e={name:"Opera"},r=Cr.getFirstMatch(Ro,t)||Cr.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opr\/|opios/i],describe(t){const e={name:"Opera"},r=Cr.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/SamsungBrowser/i],describe(t){const e={name:"Samsung Internet for Android"},r=Cr.getFirstMatch(Ro,t)||Cr.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Whale/i],describe(t){const e={name:"NAVER Whale Browser"},r=Cr.getFirstMatch(Ro,t)||Cr.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MZBrowser/i],describe(t){const e={name:"MZ Browser"},r=Cr.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/focus/i],describe(t){const e={name:"Focus"},r=Cr.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/swing/i],describe(t){const e={name:"Swing"},r=Cr.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/coast/i],describe(t){const e={name:"Opera Coast"},r=Cr.getFirstMatch(Ro,t)||Cr.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(t){const e={name:"Opera Touch"},r=Cr.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/yabrowser/i],describe(t){const e={name:"Yandex Browser"},r=Cr.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/ucbrowser/i],describe(t){const e={name:"UC Browser"},r=Cr.getFirstMatch(Ro,t)||Cr.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Maxthon|mxios/i],describe(t){const e={name:"Maxthon"},r=Cr.getFirstMatch(Ro,t)||Cr.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/epiphany/i],describe(t){const e={name:"Epiphany"},r=Cr.getFirstMatch(Ro,t)||Cr.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/puffin/i],describe(t){const e={name:"Puffin"},r=Cr.getFirstMatch(Ro,t)||Cr.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sleipnir/i],describe(t){const e={name:"Sleipnir"},r=Cr.getFirstMatch(Ro,t)||Cr.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/k-meleon/i],describe(t){const e={name:"K-Meleon"},r=Cr.getFirstMatch(Ro,t)||Cr.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/micromessenger/i],describe(t){const e={name:"WeChat"},r=Cr.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/qqbrowser/i],describe(t){const e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},r=Cr.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/msie|trident/i],describe(t){const e={name:"Internet Explorer"},r=Cr.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/\sedg\//i],describe(t){const e={name:"Microsoft Edge"},r=Cr.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/edg([ea]|ios)/i],describe(t){const e={name:"Microsoft Edge"},r=Cr.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/vivaldi/i],describe(t){const e={name:"Vivaldi"},r=Cr.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/seamonkey/i],describe(t){const e={name:"SeaMonkey"},r=Cr.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sailfish/i],describe(t){const e={name:"Sailfish"},r=Cr.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return r&&(e.version=r),e}},{test:[/silk/i],describe(t){const e={name:"Amazon Silk"},r=Cr.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/phantom/i],describe(t){const e={name:"PhantomJS"},r=Cr.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/slimerjs/i],describe(t){const e={name:"SlimerJS"},r=Cr.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e={name:"BlackBerry"},r=Cr.getFirstMatch(Ro,t)||Cr.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(web|hpw)[o0]s/i],describe(t){const e={name:"WebOS Browser"},r=Cr.getFirstMatch(Ro,t)||Cr.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/bada/i],describe(t){const e={name:"Bada"},r=Cr.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/tizen/i],describe(t){const e={name:"Tizen"},r=Cr.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/qupzilla/i],describe(t){const e={name:"QupZilla"},r=Cr.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/firefox|iceweasel|fxios/i],describe(t){const e={name:"Firefox"},r=Cr.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/electron/i],describe(t){const e={name:"Electron"},r=Cr.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MiuiBrowser/i],describe(t){const e={name:"Miui"},r=Cr.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/chromium/i],describe(t){const e={name:"Chromium"},r=Cr.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/chrome|crios|crmo/i],describe(t){const e={name:"Chrome"},r=Cr.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/GSA/i],describe(t){const e={name:"Google Search"},r=Cr.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e={name:"Android Browser"},r=Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/playstation 4/i],describe(t){const e={name:"PlayStation 4"},r=Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/safari|applewebkit/i],describe(t){const e={name:"Safari"},r=Cr.getFirstMatch(Ro,t);return r&&(e.version=r),e}},{test:[/.*/i],describe(t){const e=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,o=t.search("\\(")!==-1?r:e;return{name:Cr.getFirstMatch(o,t),version:Cr.getSecondMatch(o,t)}}}],ztt=[{test:[/Roku\/DVP/],describe(t){const e=Cr.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:nf.Roku,version:e}}},{test:[/windows phone/i],describe(t){const e=Cr.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:nf.WindowsPhone,version:e}}},{test:[/windows /i],describe(t){const e=Cr.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),r=Cr.getWindowsVersionName(e);return{name:nf.Windows,version:e,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(t){const e={name:nf.iOS},r=Cr.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return r&&(e.version=r),e}},{test:[/macintosh/i],describe(t){const e=Cr.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),r=Cr.getMacOSVersionName(e),n={name:nf.MacOS,version:e};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(t){const e=Cr.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:nf.iOS,version:e}}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e=Cr.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),r=Cr.getAndroidVersionName(e),n={name:nf.Android,version:e};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(t){const e=Cr.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:nf.WebOS};return e&&e.length&&(r.version=e),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e=Cr.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||Cr.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||Cr.getFirstMatch(/\bbb(\d+)/i,t);return{name:nf.BlackBerry,version:e}}},{test:[/bada/i],describe(t){const e=Cr.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:nf.Bada,version:e}}},{test:[/tizen/i],describe(t){const e=Cr.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:nf.Tizen,version:e}}},{test:[/linux/i],describe(){return{name:nf.Linux}}},{test:[/CrOS/],describe(){return{name:nf.ChromeOS}}},{test:[/PlayStation 4/],describe(t){const e=Cr.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:nf.PlayStation4,version:e}}}],Gtt=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(t){const e=Cr.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:ul.mobile,vendor:"Huawei"};return e&&(r.model=e),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:ul.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:ul.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:ul.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:ul.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:ul.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:ul.tablet}}},{test(t){const e=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return e&&!r},describe(t){const e=Cr.getFirstMatch(/(ipod|iphone)/i,t);return{type:ul.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:ul.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:ul.mobile}}},{test(t){return t.getBrowserName(!0)==="blackberry"},describe(){return{type:ul.mobile,vendor:"BlackBerry"}}},{test(t){return t.getBrowserName(!0)==="bada"},describe(){return{type:ul.mobile}}},{test(t){return t.getBrowserName()==="windows phone"},describe(){return{type:ul.mobile,vendor:"Microsoft"}}},{test(t){const e=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&e>=3},describe(){return{type:ul.tablet}}},{test(t){return t.getOSName(!0)==="android"},describe(){return{type:ul.mobile}}},{test(t){return t.getOSName(!0)==="macos"},describe(){return{type:ul.desktop,vendor:"Apple"}}},{test(t){return t.getOSName(!0)==="windows"},describe(){return{type:ul.desktop}}},{test(t){return t.getOSName(!0)==="linux"},describe(){return{type:ul.desktop}}},{test(t){return t.getOSName(!0)==="playstation 4"},describe(){return{type:ul.tv}}},{test(t){return t.getOSName(!0)==="roku"},describe(){return{type:ul.tv}}}],jtt=[{test(t){return t.getBrowserName(!0)==="microsoft edge"},describe(t){if(/\sedg\//i.test(t))return{name:Um.Blink};const r=Cr.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:Um.EdgeHTML,version:r}}},{test:[/trident/i],describe(t){const e={name:Um.Trident},r=Cr.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){return t.test(/presto/i)},describe(t){const e={name:Um.Presto},r=Cr.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=t.test(/gecko/i),r=t.test(/like gecko/i);return e&&!r},describe(t){const e={name:Um.Gecko},r=Cr.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Um.Blink}}},{test:[/(apple)?webkit/i],describe(t){const e={name:Um.WebKit},r=Cr.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}}];let che=class{constructor(e,r=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},r!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const e=Cr.find(Vtt,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const e=Cr.find(ztt,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){const{name:r}=this.getOS();return e?String(r).toLowerCase()||"":r||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){const{type:r}=this.getPlatform();return e?String(r).toLowerCase()||"":r||""}parsePlatform(){this.parsedResult.platform={};const e=Cr.find(Gtt,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const e=Cr.find(jtt,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Cr.assign({},this.parsedResult)}satisfies(e){const r={};let n=0;const o={};let u=0;if(Object.keys(e).forEach(h=>{const A=e[h];typeof A=="string"?(o[h]=A,u+=1):typeof A=="object"&&(r[h]=A,n+=1)}),n>0){const h=Object.keys(r),A=Cr.find(h,g=>this.isOS(g));if(A){const g=this.satisfies(r[A]);if(g!==void 0)return g}const p=Cr.find(h,g=>this.isPlatform(g));if(p){const g=this.satisfies(r[p]);if(g!==void 0)return g}}if(u>0){const h=Object.keys(o),A=Cr.find(h,p=>this.isBrowser(p,!0));if(A!==void 0)return this.compareVersion(o[A])}}isBrowser(e,r=!1){const n=this.getBrowserName().toLowerCase();let o=e.toLowerCase();const u=Cr.getBrowserTypeByAlias(o);return r&&u&&(o=u.toLowerCase()),o===n}compareVersion(e){let r=[0],n=e,o=!1;const u=this.getBrowserVersion();if(typeof u=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(o=!0,n=e.substr(2)):r=[],e[0]===">"?r.push(1):r.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(o=!0,n=e.substr(1)),r.indexOf(Cr.compareVersions(u,n,o))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,r=!1){return this.isBrowser(e,r)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(r=>this.is(r))}};/*!
* Bowser - a browser detector
* https://github.com/lancedikson/bowser
* MIT License | (c) Dustin Diaz 2012-2015
* MIT License | (c) Denis Demchenko 2015-2019
*/class e8t{static getParser(e,r=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new che(e,r)}static parse(e){return new che(e).getResult()}static get BROWSER_MAP(){return nBe}static get ENGINE_MAP(){return Um}static get OS_MAP(){return nf}static get PLATFORMS_MAP(){return ul}}function qtt(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Wtt(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var $tt=function(){function t(r){var n=this;this._insertTag=function(o){var u;n.tags.length===0?n.insertionPoint?u=n.insertionPoint.nextSibling:n.prepend?u=n.container.firstChild:u=n.before:u=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,u),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Wtt(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var u=qtt(o);try{u.insertRule(n,u.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t}(),Tc="-ms-",FR="-moz-",qa="-webkit-",iBe="comm",MY="rule",DY="decl",Ktt="@import",aBe="@keyframes",Ytt="@layer",Xtt=Math.abs,yO=String.fromCharCode,Ztt=Object.assign;function Jtt(t,e){return ju(t,0)^45?(((e<<2^ju(t,0))<<2^ju(t,1))<<2^ju(t,2))<<2^ju(t,3):0}function oBe(t){return t.trim()}function ert(t,e){return(t=e.exec(t))?t[0]:t}function Wa(t,e,r){return t.replace(e,r)}function xW(t,e){return t.indexOf(e)}function ju(t,e){return t.charCodeAt(e)|0}function i2(t,e,r){return t.slice(e,r)}function Qv(t){return t.length}function RY(t){return t.length}function gM(t,e){return e.push(t),t}function trt(t,e){return t.map(e).join("")}var wO=1,bS=1,sBe=0,Xf=0,Ol=0,VS="";function bO(t,e,r,n,o,u,f){return{value:t,root:e,parent:r,type:n,props:o,children:u,line:wO,column:bS,length:f,return:""}}function sT(t,e){return Ztt(bO("",null,null,"",null,null,0),t,{length:-t.length},e)}function rrt(){return Ol}function nrt(){return Ol=Xf>0?ju(VS,--Xf):0,bS--,Ol===10&&(bS=1,wO--),Ol}function Ch(){return Ol=Xf<sBe?ju(VS,Xf++):0,bS++,Ol===10&&(bS=1,wO++),Ol}function Xv(){return ju(VS,Xf)}function g5(){return Xf}function W2(t,e){return i2(VS,t,e)}function a2(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function lBe(t){return wO=bS=1,sBe=Qv(VS=t),Xf=0,[]}function uBe(t){return VS="",t}function m5(t){return oBe(W2(Xf-1,CW(t===91?t+2:t===40?t+1:t)))}function irt(t){for(;(Ol=Xv())&&Ol<33;)Ch();return a2(t)>2||a2(Ol)>3?"":" "}function art(t,e){for(;--e&&Ch()&&!(Ol<48||Ol>102||Ol>57&&Ol<65||Ol>70&&Ol<97););return W2(t,g5()+(e<6&&Xv()==32&&Ch()==32))}function CW(t){for(;Ch();)switch(Ol){case t:return Xf;case 34:case 39:t!==34&&t!==39&&CW(Ol);break;case 40:t===41&&CW(t);break;case 92:Ch();break}return Xf}function ort(t,e){for(;Ch()&&t+Ol!==57;)if(t+Ol===84&&Xv()===47)break;return"/*"+W2(e,Xf-1)+"*"+yO(t===47?t:Ch())}function srt(t){for(;!a2(Xv());)Ch();return W2(t,Xf)}function lrt(t){return uBe(y5("",null,null,null,[""],t=lBe(t),0,[0],t))}function y5(t,e,r,n,o,u,f,h,A){for(var p=0,g=0,y=f,_=0,b=0,C=0,T=1,B=1,L=1,P=0,I="",O=o,U=u,N=n,H=I;B;)switch(C=P,P=Ch()){case 40:if(C!=108&&ju(H,y-1)==58){xW(H+=Wa(m5(P),"&","&\f"),"&\f")!=-1&&(L=-1);break}case 34:case 39:case 91:H+=m5(P);break;case 9:case 10:case 13:case 32:H+=irt(C);break;case 92:H+=art(g5()-1,7);continue;case 47:switch(Xv()){case 42:case 47:gM(urt(ort(Ch(),g5()),e,r),A);break;default:H+="/"}break;case 123*T:h[p++]=Qv(H)*L;case 125*T:case 59:case 0:switch(P){case 0:case 125:B=0;case 59+g:L==-1&&(H=Wa(H,/\f/g,"")),b>0&&Qv(H)-y&&gM(b>32?hhe(H+";",n,r,y-1):hhe(Wa(H," ","")+";",n,r,y-2),A);break;case 59:H+=";";default:if(gM(N=fhe(H,e,r,p,g,o,h,I,O=[],U=[],y),u),P===123)if(g===0)y5(H,e,N,N,O,u,y,h,U);else switch(_===99&&ju(H,3)===110?100:_){case 100:case 108:case 109:case 115:y5(t,N,N,n&&gM(fhe(t,N,N,0,0,o,h,I,o,O=[],y),U),o,U,y,h,n?O:U);break;default:y5(H,N,N,N,[""],U,0,h,U)}}p=g=b=0,T=L=1,I=H="",y=f;break;case 58:y=1+Qv(H),b=C;default:if(T<1){if(P==123)--T;else if(P==125&&T++==0&&nrt()==125)continue}switch(H+=yO(P),P*T){case 38:L=g>0?1:(H+="\f",-1);break;case 44:h[p++]=(Qv(H)-1)*L,L=1;break;case 64:Xv()===45&&(H+=m5(Ch())),_=Xv(),g=y=Qv(I=H+=srt(g5())),P++;break;case 45:C===45&&Qv(H)==2&&(T=0)}}return u}function fhe(t,e,r,n,o,u,f,h,A,p,g){for(var y=o-1,_=o===0?u:[""],b=RY(_),C=0,T=0,B=0;C<n;++C)for(var L=0,P=i2(t,y+1,y=Xtt(T=f[C])),I=t;L<b;++L)(I=oBe(T>0?_[L]+" "+P:Wa(P,/&\f/g,_[L])))&&(A[B++]=I);return bO(t,e,r,o===0?MY:h,A,p,g)}function urt(t,e,r){return bO(t,e,r,iBe,yO(rrt()),i2(t,2,-2),0)}function hhe(t,e,r,n){return bO(t,e,r,DY,i2(t,0,n),i2(t,n+1,-1),n)}function eS(t,e){for(var r="",n=RY(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function crt(t,e,r,n){switch(t.type){case Ytt:if(t.children.length)break;case Ktt:case DY:return t.return=t.return||t.value;case iBe:return"";case aBe:return t.return=t.value+"{"+eS(t.children,n)+"}";case MY:t.value=t.props.join(",")}return Qv(r=eS(t.children,n))?t.return=t.value+"{"+r+"}":""}function frt(t){var e=RY(t);return function(r,n,o,u){for(var f="",h=0;h<e;h++)f+=t[h](r,n,o,u)||"";return f}}function hrt(t){return function(e){e.root||(e=e.return)&&t(e)}}var dhe=function(e){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var o=e(n);return r.set(n,o),o}};function drt(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var Art=function(e,r,n){for(var o=0,u=0;o=u,u=Xv(),o===38&&u===12&&(r[n]=1),!a2(u);)Ch();return W2(e,Xf)},vrt=function(e,r){var n=-1,o=44;do switch(a2(o)){case 0:o===38&&Xv()===12&&(r[n]=1),e[n]+=Art(Xf-1,r,n);break;case 2:e[n]+=m5(o);break;case 4:if(o===44){e[++n]=Xv()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=yO(o)}while(o=Ch());return e},prt=function(e,r){return uBe(vrt(lBe(e),r))},Ahe=new WeakMap,grt=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!Ahe.get(n))&&!o){Ahe.set(e,!0);for(var u=[],f=prt(r,u),h=n.props,A=0,p=0;A<f.length;A++)for(var g=0;g<h.length;g++,p++)e.props[p]=u[A]?f[A].replace(/&\f/g,h[g]):h[g]+" "+f[A]}}},mrt=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function cBe(t,e){switch(Jtt(t,e)){case 5103:return qa+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qa+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return qa+t+FR+t+Tc+t+t;case 6828:case 4268:return qa+t+Tc+t+t;case 6165:return qa+t+Tc+"flex-"+t+t;case 5187:return qa+t+Wa(t,/(\w+).+(:[^]+)/,qa+"box-$1$2"+Tc+"flex-$1$2")+t;case 5443:return qa+t+Tc+"flex-item-"+Wa(t,/flex-|-self/,"")+t;case 4675:return qa+t+Tc+"flex-line-pack"+Wa(t,/align-content|flex-|-self/,"")+t;case 5548:return qa+t+Tc+Wa(t,"shrink","negative")+t;case 5292:return qa+t+Tc+Wa(t,"basis","preferred-size")+t;case 6060:return qa+"box-"+Wa(t,"-grow","")+qa+t+Tc+Wa(t,"grow","positive")+t;case 4554:return qa+Wa(t,/([^-])(transform)/g,"$1"+qa+"$2")+t;case 6187:return Wa(Wa(Wa(t,/(zoom-|grab)/,qa+"$1"),/(image-set)/,qa+"$1"),t,"")+t;case 5495:case 3959:return Wa(t,/(image-set\([^]*)/,qa+"$1$`$1");case 4968:return Wa(Wa(t,/(.+:)(flex-)?(.*)/,qa+"box-pack:$3"+Tc+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qa+t+t;case 4095:case 3583:case 4068:case 2532:return Wa(t,/(.+)-inline(.+)/,qa+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qv(t)-1-e>6)switch(ju(t,e+1)){case 109:if(ju(t,e+4)!==45)break;case 102:return Wa(t,/(.+:)(.+)-([^]+)/,"$1"+qa+"$2-$3$1"+FR+(ju(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~xW(t,"stretch")?cBe(Wa(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ju(t,e+1)!==115)break;case 6444:switch(ju(t,Qv(t)-3-(~xW(t,"!important")&&10))){case 107:return Wa(t,":",":"+qa)+t;case 101:return Wa(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qa+(ju(t,14)===45?"inline-":"")+"box$3$1"+qa+"$2$3$1"+Tc+"$2box$3")+t}break;case 5936:switch(ju(t,e+11)){case 114:return qa+t+Tc+Wa(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return qa+t+Tc+Wa(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return qa+t+Tc+Wa(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return qa+t+Tc+t+t}return t}var yrt=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case DY:e.return=cBe(e.value,e.length);break;case aBe:return eS([sT(e,{value:Wa(e.value,"@","@"+qa)})],o);case MY:if(e.length)return trt(e.props,function(u){switch(ert(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return eS([sT(e,{props:[Wa(u,/:(read-\w+)/,":"+FR+"$1")]})],o);case"::placeholder":return eS([sT(e,{props:[Wa(u,/:(plac\w+)/,":"+qa+"input-$1")]}),sT(e,{props:[Wa(u,/:(plac\w+)/,":"+FR+"$1")]}),sT(e,{props:[Wa(u,/:(plac\w+)/,Tc+"input-$1")]})],o)}return""})}},wrt=[yrt],brt=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(T){var B=T.getAttribute("data-emotion");B.indexOf(" ")!==-1&&(document.head.appendChild(T),T.setAttribute("data-s",""))})}var o=e.stylisPlugins||wrt,u={},f,h=[];f=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(T){for(var B=T.getAttribute("data-emotion").split(" "),L=1;L<B.length;L++)u[B[L]]=!0;h.push(T)});var A,p=[grt,mrt];{var g,y=[crt,hrt(function(T){g.insert(T)})],_=frt(p.concat(o,y)),b=function(B){return eS(lrt(B),_)};A=function(B,L,P,I){g=P,b(B?B+"{"+L.styles+"}":L.styles),I&&(C.inserted[L.name]=!0)}}var C={key:r,sheet:new $tt({key:r,container:f,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:u,registered:{},insert:A};return C.sheet.hydrate(h),C},_rt=function(t,e){return mW(t,e)},Srt=!0;function fBe(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var PY=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||Srt===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},OY=function(e,r,n){PY(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var u=r;do e.insert(r===u?"."+o:"",u,e.sheet,!0),u=u.next;while(u!==void 0)}};function xrt(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Crt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Trt=/[A-Z]|^ms/g,Ert=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hBe=function(e){return e.charCodeAt(1)===45},vhe=function(e){return e!=null&&typeof e!="boolean"},qH=drt(function(t){return hBe(t)?t:t.replace(Trt,"-$&").toLowerCase()}),phe=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Ert,function(n,o,u){return Vv={name:o,styles:u,next:Vv},o})}return Crt[e]!==1&&!hBe(e)&&typeof r=="number"&&r!==0?r+"px":r};function o2(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Vv={name:o.name,styles:o.styles,next:Vv},o.name;var u=r;if(u.styles!==void 0){var f=u.next;if(f!==void 0)for(;f!==void 0;)Vv={name:f.name,styles:f.styles,next:Vv},f=f.next;var h=u.styles+";";return h}return Brt(t,e,r)}case"function":{if(t!==void 0){var A=Vv,p=r(t);return Vv=A,o2(t,e,p)}break}}var g=r;if(e==null)return g;var y=e[g];return y!==void 0?y:g}function Brt(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=o2(t,e,r[o])+";";else for(var u in r){var f=r[u];if(typeof f!="object"){var h=f;e!=null&&e[h]!==void 0?n+=u+"{"+e[h]+"}":vhe(h)&&(n+=qH(u)+":"+phe(u,h)+";")}else if(Array.isArray(f)&&typeof f[0]=="string"&&(e==null||e[f[0]]===void 0))for(var A=0;A<f.length;A++)vhe(f[A])&&(n+=qH(u)+":"+phe(u,f[A])+";");else{var p=o2(t,e,f);switch(u){case"animation":case"animationName":{n+=qH(u)+":"+p+";";break}default:n+=u+"{"+p+"}"}}}return n}var ghe=/label:\s*([^\s;{]+)\s*(;|$)/g,Vv;function _O(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";Vv=void 0;var u=t[0];if(u==null||u.raw===void 0)n=!1,o+=o2(r,e,u);else{var f=u;o+=f[0]}for(var h=1;h<t.length;h++)if(o+=o2(r,e,t[h]),n){var A=u;o+=A[h]}ghe.lastIndex=0;for(var p="",g;(g=ghe.exec(o))!==null;)p+="-"+g[1];var y=xrt(o)+p;return{name:y,styles:o,next:Vv}}var Irt=function(e){return e()},dBe=DR.useInsertionEffect?DR.useInsertionEffect:!1,ABe=dBe||Irt,mhe=dBe||Ae.useLayoutEffect,kY=Ae.createContext(typeof HTMLElement<"u"?brt({key:"css"}):null),Lrt=kY.Provider,Mrt=function(){return Ae.useContext(kY)},SO=function(e){return Ae.forwardRef(function(r,n){var o=Ae.useContext(kY);return e(r,o,n)})},my=Ae.createContext({}),Drt=function(){return Ae.useContext(my)},Rrt=function(e,r){if(typeof r=="function"){var n=r(e);return n}return On({},e,r)},Prt=dhe(function(t){return dhe(function(e){return Rrt(t,e)})}),Ort=function(e){var r=Ae.useContext(my);return e.theme!==r&&(r=Prt(r)(e.theme)),Ae.createElement(my.Provider,{value:r},e.children)};function krt(t){var e=t.displayName||t.name||"Component",r=Ae.forwardRef(function(o,u){var f=Ae.useContext(my);return Ae.createElement(t,On({theme:f,ref:u},o))});return r.displayName="WithTheme("+e+")",_rt(r,t)}var $2={}.hasOwnProperty,TW="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",FY=function(e,r){var n={};for(var o in r)$2.call(r,o)&&(n[o]=r[o]);return n[TW]=e,n},Frt=function(e){var r=e.cache,n=e.serialized,o=e.isStringTag;return PY(r,n,o),ABe(function(){return OY(r,n,o)}),null},Nrt=SO(function(t,e,r){var n=t.css;typeof n=="string"&&e.registered[n]!==void 0&&(n=e.registered[n]);var o=t[TW],u=[n],f="";typeof t.className=="string"?f=fBe(e.registered,u,t.className):t.className!=null&&(f=t.className+" ");var h=_O(u,void 0,Ae.useContext(my));f+=e.key+"-"+h.name;var A={};for(var p in t)$2.call(t,p)&&p!=="css"&&p!==TW&&(A[p]=t[p]);return A.className=f,r&&(A.ref=r),Ae.createElement(Ae.Fragment,null,Ae.createElement(Frt,{cache:e,serialized:h,isStringTag:typeof o=="string"}),Ae.createElement(o,A))}),NY=Nrt,Gn=function(e,r){var n=arguments;if(r==null||!$2.call(r,"css"))return Ae.createElement.apply(void 0,n);var o=n.length,u=new Array(o);u[0]=NY,u[1]=FY(e,r);for(var f=2;f<o;f++)u[f]=n[f];return Ae.createElement.apply(null,u)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(Gn||(Gn={}));var Urt=SO(function(t,e){var r=t.styles,n=_O([r],void 0,Ae.useContext(my)),o=Ae.useRef();return mhe(function(){var u=e.key+"-global",f=new e.sheet.constructor({key:u,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),h=!1,A=document.querySelector('style[data-emotion="'+u+" "+n.name+'"]');return e.sheet.tags.length&&(f.before=e.sheet.tags[0]),A!==null&&(h=!0,A.setAttribute("data-emotion",u),f.hydrate([A])),o.current=[f,h],function(){f.flush()}},[e]),mhe(function(){var u=o.current,f=u[0],h=u[1];if(h){u[1]=!1;return}if(n.next!==void 0&&OY(e,n.next,!0),f.tags.length){var A=f.tags[f.tags.length-1].nextElementSibling;f.before=A,f.flush()}e.insert("",n,f,!1)},[e,n.name]),null});function xO(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return _O(e)}function vBe(){var t=xO.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Hrt=function t(e){for(var r=e.length,n=0,o="";n<r;n++){var u=e[n];if(u!=null){var f=void 0;switch(typeof u){case"boolean":break;case"object":{if(Array.isArray(u))f=t(u);else{f="";for(var h in u)u[h]&&h&&(f&&(f+=" "),f+=h)}break}default:f=u}f&&(o&&(o+=" "),o+=f)}}return o};function Qrt(t,e,r){var n=[],o=fBe(t,n,r);return n.length<2?r:o+e(n)}var Vrt=function(e){var r=e.cache,n=e.serializedArr;return ABe(function(){for(var o=0;o<n.length;o++)OY(r,n[o],!1)}),null},zrt=SO(function(t,e){var r=[],n=function(){for(var A=arguments.length,p=new Array(A),g=0;g<A;g++)p[g]=arguments[g];var y=_O(p,e.registered);return r.push(y),PY(e,y,!1),e.key+"-"+y.name},o=function(){for(var A=arguments.length,p=new Array(A),g=0;g<A;g++)p[g]=arguments[g];return Qrt(e.registered,n,Hrt(p))},u={css:n,cx:o,theme:Ae.useContext(my)},f=t.children(u);return Ae.createElement(Ae.Fragment,null,Ae.createElement(Vrt,{cache:e,serializedArr:r}),f)});const Grt=Object.freeze(Object.defineProperty({__proto__:null,CacheProvider:Lrt,ClassNames:zrt,Global:Urt,ThemeContext:my,ThemeProvider:Ort,__unsafe_useEmotionCache:Mrt,get createElement(){return Gn},css:xO,get jsx(){return Gn},keyframes:vBe,useTheme:Drt,withEmotionCache:SO,withTheme:krt},Symbol.toStringTag,{value:"Module"}));var mM={exports:{}};/*!
* CSSJanus. https://github.com/cssjanus/cssjanus
*
* Copyright 2014 Trevor Parscal
* Copyright 2010 Roan Kattouw
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var yhe;function jrt(){return yhe||(yhe=1,function(t,e){var r;function n(u,f){var h=[],A=0;function p(y){return h.push(y),f}function g(){return h[A++]}return{tokenize:function(y){return y.replace(u,p)},detokenize:function(y){return y.replace(new RegExp("("+f+")","g"),g)}}}function o(){var u="`TMP`",f="`NOFLIP_SINGLE`",h="`NOFLIP_CLASS`",A="`COMMENT`",p="[^\\u0020-\\u007e]",g="(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)",y="(?:[0-9]*\\.[0-9]+|[0-9]+)",_="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",b="direction\\s*:\\s*",C="[!#$%&*-~]",T=`['"]?\\s*`,B="(^|[^a-zA-Z])",L="[^\\}]*?",P="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",I="\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/",O="(?:"+g+"|\\\\[^\\r\\n\\f0-9a-f])",U="(?:[_a-z]|"+p+"|"+O+")",N="(?:[_a-z0-9-]|"+p+"|"+O+")",H="-?"+U+N+"*",z=y+"(?:\\s*"+_+"|"+H+")?",G="((?:-?"+z+")|(?:inherit|auto))",j="((?:margin|padding|border-width)\\s*:\\s*)",q="((?:-color|border-style)\\s*:\\s*)",X="(#?"+N+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",Y="(?:"+C+"|"+p+"|"+O+")*?",te="(?![a-zA-Z])",K="(?!("+N+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+A+")*?{)",ce="(?!"+Y+T+"\\))",ae="(?="+Y+T+"\\))",le="(\\s*(?:!important\\s*)?[;}])",pe=/`TMP`/g,ie=new RegExp(I,"gi"),he=new RegExp("("+P+K+"[^;}]+;?)","gi"),re=new RegExp("("+P+L+"})","gi"),oe=new RegExp("("+b+")ltr","gi"),ye=new RegExp("("+b+")rtl","gi"),_e=new RegExp(B+"(left)"+te+ce+K,"gi"),Ce=new RegExp(B+"(right)"+te+ce+K,"gi"),ne=new RegExp(B+"(left)"+ae,"gi"),xe=new RegExp(B+"(right)"+ae,"gi"),De=new RegExp(B+"(ltr)"+ae,"gi"),ze=new RegExp(B+"(rtl)"+ae,"gi"),Ye=new RegExp(B+"([ns]?)e-resize","gi"),Ne=new RegExp(B+"([ns]?)w-resize","gi"),yt=new RegExp(j+G+"(\\s+)"+G+"(\\s+)"+G+"(\\s+)"+G+le,"gi"),Ue=new RegExp(q+X+"(\\s+)"+X+"(\\s+)"+X+"(\\s+)"+X+le,"gi"),ue=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+z+")","gi"),Qe=new RegExp("(background-position-x\\s*:\\s*)(-?"+y+"%)","gi"),qe=new RegExp("(border-radius\\s*:\\s*)"+G+"(?:(?:\\s+"+G+")(?:\\s+"+G+")?(?:\\s+"+G+")?)?(?:(?:(?:\\s*\\/\\s*)"+G+")(?:\\s+"+G+")?(?:\\s+"+G+")?(?:\\s+"+G+")?)?"+le,"gi"),Re=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+G,"gi"),Me=new RegExp("(text-shadow\\s*:\\s*)"+G+"(\\s*)"+X,"gi"),Ge=new RegExp("(text-shadow\\s*:\\s*)"+X+"(\\s*)"+G,"gi"),Pe=new RegExp("(text-shadow\\s*:\\s*)"+G,"gi"),ke=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+G+"(\\s*\\))","gi"),Be=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+G+"((?:\\s*,\\s*"+G+"){0,2}\\s*\\))","gi");function $e(qt,fr,lr){var _t,br;return lr.slice(-1)==="%"&&(_t=lr.indexOf("."),_t!==-1?(br=lr.length-_t-2,lr=100-parseFloat(lr),lr=lr.toFixed(br)+"%"):lr=100-parseFloat(lr)+"%"),fr+lr}function nt(qt){switch(qt.length){case 4:qt=[qt[1],qt[0],qt[3],qt[2]];break;case 3:qt=[qt[1],qt[0],qt[1],qt[2]];break;case 2:qt=[qt[1],qt[0]];break;case 1:qt=[qt[0]];break}return qt.join(" ")}function ft(qt,fr){var lr,_t=[].slice.call(arguments),br=_t.slice(2,6).filter(function(rn){return rn}),on=_t.slice(6,10).filter(function(rn){return rn}),Br=_t[10]||"";return on.length?lr=nt(br)+" / "+nt(on):lr=nt(br),fr+lr+Br}function Mt(qt){return parseFloat(qt)===0?qt:qt[0]==="-"?qt.slice(1):"-"+qt}function Rt(qt,fr,lr){return fr+Mt(lr)}function Bt(qt,fr,lr,_t,br){return fr+lr+Mt(_t)+br}function It(qt,fr,lr,_t,br){return fr+lr+_t+Mt(br)}return{transform:function(qt,fr){var lr=new n(he,f),_t=new n(re,h),br=new n(ie,A);return qt=br.tokenize(_t.tokenize(lr.tokenize(qt.replace("`","%60")))),fr.transformDirInUrl&&(qt=qt.replace(De,"$1"+u).replace(ze,"$1ltr").replace(pe,"rtl")),fr.transformEdgeInUrl&&(qt=qt.replace(ne,"$1"+u).replace(xe,"$1left").replace(pe,"right")),qt=qt.replace(oe,"$1"+u).replace(ye,"$1ltr").replace(pe,"rtl").replace(_e,"$1"+u).replace(Ce,"$1left").replace(pe,"right").replace(Ye,"$1$2"+u).replace(Ne,"$1$2e-resize").replace(pe,"w-resize").replace(qe,ft).replace(Re,Rt).replace(Me,It).replace(Ge,It).replace(Pe,Rt).replace(ke,Bt).replace(Be,Bt).replace(yt,"$1$2$3$8$5$6$7$4$9").replace(Ue,"$1$2$3$8$5$6$7$4$9").replace(ue,$e).replace(Qe,$e),qt=lr.detokenize(_t.detokenize(br.detokenize(qt))),qt}}}r=new o,t.exports?e.transform=function(u,f,h){var A;return typeof f=="object"?A=f:(A={},typeof f=="boolean"&&(A.transformDirInUrl=f),typeof h=="boolean"&&(A.transformEdgeInUrl=h)),r.transform(u,A)}:typeof window<"u"&&(window.cssjanus=r)}(mM,mM.exports)),mM.exports}var t8t=jrt(),WH,whe;function th(){if(whe)return WH;whe=1;var t=Array.isArray;return WH=t,WH}var $H,bhe;function pBe(){if(bhe)return $H;bhe=1;var t=typeof Gf=="object"&&Gf&&Gf.Object===Object&&Gf;return $H=t,$H}var KH,_he;function jd(){if(_he)return KH;_he=1;var t=pBe(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return KH=r,KH}var YH,She;function zS(){if(She)return YH;She=1;var t=jd(),e=t.Symbol;return YH=e,YH}var XH,xhe;function qrt(){if(xhe)return XH;xhe=1;var t=zS(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;function u(f){var h=r.call(f,o),A=f[o];try{f[o]=void 0;var p=!0}catch{}var g=n.call(f);return p&&(h?f[o]=A:delete f[o]),g}return XH=u,XH}var ZH,Che;function Wrt(){if(Che)return ZH;Che=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return ZH=r,ZH}var JH,The;function Bg(){if(The)return JH;The=1;var t=zS(),e=qrt(),r=Wrt(),n="[object Null]",o="[object Undefined]",u=t?t.toStringTag:void 0;function f(h){return h==null?h===void 0?o:n:u&&u in Object(h)?e(h):r(h)}return JH=f,JH}var e8,Ehe;function Oh(){if(Ehe)return e8;Ehe=1;function t(e){return e!=null&&typeof e=="object"}return e8=t,e8}var t8,Bhe;function CO(){if(Bhe)return t8;Bhe=1;var t=Bg(),e=Oh(),r="[object Symbol]";function n(o){return typeof o=="symbol"||e(o)&&t(o)==r}return t8=n,t8}var r8,Ihe;function UY(){if(Ihe)return r8;Ihe=1;var t=th(),e=CO(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(u,f){if(t(u))return!1;var h=typeof u;return h=="number"||h=="symbol"||h=="boolean"||u==null||e(u)?!0:n.test(u)||!r.test(u)||f!=null&&u in Object(f)}return r8=o,r8}var n8,Lhe;function vf(){if(Lhe)return n8;Lhe=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return n8=t,n8}var i8,Mhe;function K2(){if(Mhe)return i8;Mhe=1;var t=Bg(),e=vf(),r="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",u="[object Proxy]";function f(h){if(!e(h))return!1;var A=t(h);return A==n||A==o||A==r||A==u}return i8=f,i8}var a8,Dhe;function $rt(){if(Dhe)return a8;Dhe=1;var t=jd(),e=t["__core-js_shared__"];return a8=e,a8}var o8,Rhe;function Krt(){if(Rhe)return o8;Rhe=1;var t=$rt(),e=function(){var n=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!e&&e in n}return o8=r,o8}var s8,Phe;function gBe(){if(Phe)return s8;Phe=1;var t=Function.prototype,e=t.toString;function r(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return s8=r,s8}var l8,Ohe;function Yrt(){if(Ohe)return l8;Ohe=1;var t=K2(),e=Krt(),r=vf(),n=gBe(),o=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,f=Function.prototype,h=Object.prototype,A=f.toString,p=h.hasOwnProperty,g=RegExp("^"+A.call(p).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y(_){if(!r(_)||e(_))return!1;var b=t(_)?g:u;return b.test(n(_))}return l8=y,l8}var u8,khe;function Xrt(){if(khe)return u8;khe=1;function t(e,r){return e?.[r]}return u8=t,u8}var c8,Fhe;function cw(){if(Fhe)return c8;Fhe=1;var t=Yrt(),e=Xrt();function r(n,o){var u=e(n,o);return t(u)?u:void 0}return c8=r,c8}var f8,Nhe;function TO(){if(Nhe)return f8;Nhe=1;var t=cw(),e=t(Object,"create");return f8=e,f8}var h8,Uhe;function Zrt(){if(Uhe)return h8;Uhe=1;var t=TO();function e(){this.__data__=t?t(null):{},this.size=0}return h8=e,h8}var d8,Hhe;function Jrt(){if(Hhe)return d8;Hhe=1;function t(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}return d8=t,d8}var A8,Qhe;function ent(){if(Qhe)return A8;Qhe=1;var t=TO(),e="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function o(u){var f=this.__data__;if(t){var h=f[u];return h===e?void 0:h}return n.call(f,u)?f[u]:void 0}return A8=o,A8}var v8,Vhe;function tnt(){if(Vhe)return v8;Vhe=1;var t=TO(),e=Object.prototype,r=e.hasOwnProperty;function n(o){var u=this.__data__;return t?u[o]!==void 0:r.call(u,o)}return v8=n,v8}var p8,zhe;function rnt(){if(zhe)return p8;zhe=1;var t=TO(),e="__lodash_hash_undefined__";function r(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=t&&o===void 0?e:o,this}return p8=r,p8}var g8,Ghe;function nnt(){if(Ghe)return g8;Ghe=1;var t=Zrt(),e=Jrt(),r=ent(),n=tnt(),o=rnt();function u(f){var h=-1,A=f==null?0:f.length;for(this.clear();++h<A;){var p=f[h];this.set(p[0],p[1])}}return u.prototype.clear=t,u.prototype.delete=e,u.prototype.get=r,u.prototype.has=n,u.prototype.set=o,g8=u,g8}var m8,jhe;function int(){if(jhe)return m8;jhe=1;function t(){this.__data__=[],this.size=0}return m8=t,m8}var y8,qhe;function Y2(){if(qhe)return y8;qhe=1;function t(e,r){return e===r||e!==e&&r!==r}return y8=t,y8}var w8,Whe;function EO(){if(Whe)return w8;Whe=1;var t=Y2();function e(r,n){for(var o=r.length;o--;)if(t(r[o][0],n))return o;return-1}return w8=e,w8}var b8,$he;function ant(){if($he)return b8;$he=1;var t=EO(),e=Array.prototype,r=e.splice;function n(o){var u=this.__data__,f=t(u,o);if(f<0)return!1;var h=u.length-1;return f==h?u.pop():r.call(u,f,1),--this.size,!0}return b8=n,b8}var _8,Khe;function ont(){if(Khe)return _8;Khe=1;var t=EO();function e(r){var n=this.__data__,o=t(n,r);return o<0?void 0:n[o][1]}return _8=e,_8}var S8,Yhe;function snt(){if(Yhe)return S8;Yhe=1;var t=EO();function e(r){return t(this.__data__,r)>-1}return S8=e,S8}var x8,Xhe;function lnt(){if(Xhe)return x8;Xhe=1;var t=EO();function e(r,n){var o=this.__data__,u=t(o,r);return u<0?(++this.size,o.push([r,n])):o[u][1]=n,this}return x8=e,x8}var C8,Zhe;function BO(){if(Zhe)return C8;Zhe=1;var t=int(),e=ant(),r=ont(),n=snt(),o=lnt();function u(f){var h=-1,A=f==null?0:f.length;for(this.clear();++h<A;){var p=f[h];this.set(p[0],p[1])}}return u.prototype.clear=t,u.prototype.delete=e,u.prototype.get=r,u.prototype.has=n,u.prototype.set=o,C8=u,C8}var T8,Jhe;function HY(){if(Jhe)return T8;Jhe=1;var t=cw(),e=jd(),r=t(e,"Map");return T8=r,T8}var E8,ede;function unt(){if(ede)return E8;ede=1;var t=nnt(),e=BO(),r=HY();function n(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}return E8=n,E8}var B8,tde;function cnt(){if(tde)return B8;tde=1;function t(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}return B8=t,B8}var I8,rde;function IO(){if(rde)return I8;rde=1;var t=cnt();function e(r,n){var o=r.__data__;return t(n)?o[typeof n=="string"?"string":"hash"]:o.map}return I8=e,I8}var L8,nde;function fnt(){if(nde)return L8;nde=1;var t=IO();function e(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}return L8=e,L8}var M8,ide;function hnt(){if(ide)return M8;ide=1;var t=IO();function e(r){return t(this,r).get(r)}return M8=e,M8}var D8,ade;function dnt(){if(ade)return D8;ade=1;var t=IO();function e(r){return t(this,r).has(r)}return D8=e,D8}var R8,ode;function Ant(){if(ode)return R8;ode=1;var t=IO();function e(r,n){var o=t(this,r),u=o.size;return o.set(r,n),this.size+=o.size==u?0:1,this}return R8=e,R8}var P8,sde;function QY(){if(sde)return P8;sde=1;var t=unt(),e=fnt(),r=hnt(),n=dnt(),o=Ant();function u(f){var h=-1,A=f==null?0:f.length;for(this.clear();++h<A;){var p=f[h];this.set(p[0],p[1])}}return u.prototype.clear=t,u.prototype.delete=e,u.prototype.get=r,u.prototype.has=n,u.prototype.set=o,P8=u,P8}var O8,lde;function vnt(){if(lde)return O8;lde=1;var t=QY(),e="Expected a function";function r(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(e);var u=function(){var f=arguments,h=o?o.apply(this,f):f[0],A=u.cache;if(A.has(h))return A.get(h);var p=n.apply(this,f);return u.cache=A.set(h,p)||A,p};return u.cache=new(r.Cache||t),u}return r.Cache=t,O8=r,O8}var k8,ude;function pnt(){if(ude)return k8;ude=1;var t=vnt(),e=500;function r(n){var o=t(n,function(f){return u.size===e&&u.clear(),f}),u=o.cache;return o}return k8=r,k8}var F8,cde;function gnt(){if(cde)return F8;cde=1;var t=pnt(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(o){var u=[];return o.charCodeAt(0)===46&&u.push(""),o.replace(e,function(f,h,A,p){u.push(A?p.replace(r,"$1"):h||f)}),u});return F8=n,F8}var N8,fde;function LO(){if(fde)return N8;fde=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,u=Array(o);++n<o;)u[n]=r(e[n],n,e);return u}return N8=t,N8}var U8,hde;function mnt(){if(hde)return U8;hde=1;var t=zS(),e=LO(),r=th(),n=CO(),o=t?t.prototype:void 0,u=o?o.toString:void 0;function f(h){if(typeof h=="string")return h;if(r(h))return e(h,f)+"";if(n(h))return u?u.call(h):"";var A=h+"";return A=="0"&&1/h==-1/0?"-0":A}return U8=f,U8}var H8,dde;function GS(){if(dde)return H8;dde=1;var t=mnt();function e(r){return r==null?"":t(r)}return H8=e,H8}var Q8,Ade;function jS(){if(Ade)return Q8;Ade=1;var t=th(),e=UY(),r=gnt(),n=GS();function o(u,f){return t(u)?u:e(u,f)?[u]:r(n(u))}return Q8=o,Q8}var V8,vde;function qS(){if(vde)return V8;vde=1;var t=CO();function e(r){if(typeof r=="string"||t(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return V8=e,V8}var z8,pde;function MO(){if(pde)return z8;pde=1;var t=jS(),e=qS();function r(n,o){o=t(o,n);for(var u=0,f=o.length;n!=null&&u<f;)n=n[e(o[u++])];return u&&u==f?n:void 0}return z8=r,z8}var G8,gde;function mBe(){if(gde)return G8;gde=1;var t=MO();function e(r,n,o){var u=r==null?void 0:t(r,n);return u===void 0?o:u}return G8=e,G8}var ynt=mBe();const r8t=Dn(ynt);var j8,mde;function DO(){if(mde)return j8;mde=1;function t(e){return e}return j8=t,j8}var wnt=DO();const n8t=Dn(wnt);var q8,yde;function bnt(){if(yde)return q8;yde=1;var t=Bg(),e=Oh(),r="[object Boolean]";function n(o){return o===!0||o===!1||e(o)&&t(o)==r}return q8=n,q8}var _nt=bnt();const i8t=Dn(_nt);var W8,wde;function RO(){if(wde)return W8;wde=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,o=typeof n=="function"&&n.prototype||t;return r===o}return W8=e,W8}var $8,bde;function yBe(){if(bde)return $8;bde=1;function t(e,r){return function(n){return e(r(n))}}return $8=t,$8}var K8,_de;function Snt(){if(_de)return K8;_de=1;var t=yBe(),e=t(Object.keys,Object);return K8=e,K8}var Y8,Sde;function wBe(){if(Sde)return Y8;Sde=1;var t=RO(),e=Snt(),r=Object.prototype,n=r.hasOwnProperty;function o(u){if(!t(u))return e(u);var f=[];for(var h in Object(u))n.call(u,h)&&h!="constructor"&&f.push(h);return f}return Y8=o,Y8}var X8,xde;function xnt(){if(xde)return X8;xde=1;var t=cw(),e=jd(),r=t(e,"DataView");return X8=r,X8}var Z8,Cde;function Cnt(){if(Cde)return Z8;Cde=1;var t=cw(),e=jd(),r=t(e,"Promise");return Z8=r,Z8}var J8,Tde;function bBe(){if(Tde)return J8;Tde=1;var t=cw(),e=jd(),r=t(e,"Set");return J8=r,J8}var eQ,Ede;function Tnt(){if(Ede)return eQ;Ede=1;var t=cw(),e=jd(),r=t(e,"WeakMap");return eQ=r,eQ}var tQ,Bde;function X2(){if(Bde)return tQ;Bde=1;var t=xnt(),e=HY(),r=Cnt(),n=bBe(),o=Tnt(),u=Bg(),f=gBe(),h="[object Map]",A="[object Object]",p="[object Promise]",g="[object Set]",y="[object WeakMap]",_="[object DataView]",b=f(t),C=f(e),T=f(r),B=f(n),L=f(o),P=u;return(t&&P(new t(new ArrayBuffer(1)))!=_||e&&P(new e)!=h||r&&P(r.resolve())!=p||n&&P(new n)!=g||o&&P(new o)!=y)&&(P=function(I){var O=u(I),U=O==A?I.constructor:void 0,N=U?f(U):"";if(N)switch(N){case b:return _;case C:return h;case T:return p;case B:return g;case L:return y}return O}),tQ=P,tQ}var rQ,Ide;function Ent(){if(Ide)return rQ;Ide=1;var t=Bg(),e=Oh(),r="[object Arguments]";function n(o){return e(o)&&t(o)==r}return rQ=n,rQ}var nQ,Lde;function Z2(){if(Lde)return nQ;Lde=1;var t=Ent(),e=Oh(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,u=t(function(){return arguments}())?t:function(f){return e(f)&&n.call(f,"callee")&&!o.call(f,"callee")};return nQ=u,nQ}var iQ,Mde;function VY(){if(Mde)return iQ;Mde=1;var t=9007199254740991;function e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return iQ=e,iQ}var aQ,Dde;function fw(){if(Dde)return aQ;Dde=1;var t=K2(),e=VY();function r(n){return n!=null&&e(n.length)&&!t(n)}return aQ=r,aQ}var XT={exports:{}},oQ,Rde;function Bnt(){if(Rde)return oQ;Rde=1;function t(){return!1}return oQ=t,oQ}XT.exports;var Pde;function WS(){return Pde||(Pde=1,function(t,e){var r=jd(),n=Bnt(),o=e&&!e.nodeType&&e,u=o&&!0&&t&&!t.nodeType&&t,f=u&&u.exports===o,h=f?r.Buffer:void 0,A=h?h.isBuffer:void 0,p=A||n;t.exports=p}(XT,XT.exports)),XT.exports}var sQ,Ode;function Int(){if(Ode)return sQ;Ode=1;var t=Bg(),e=VY(),r=Oh(),n="[object Arguments]",o="[object Array]",u="[object Boolean]",f="[object Date]",h="[object Error]",A="[object Function]",p="[object Map]",g="[object Number]",y="[object Object]",_="[object RegExp]",b="[object Set]",C="[object String]",T="[object WeakMap]",B="[object ArrayBuffer]",L="[object DataView]",P="[object Float32Array]",I="[object Float64Array]",O="[object Int8Array]",U="[object Int16Array]",N="[object Int32Array]",H="[object Uint8Array]",z="[object Uint8ClampedArray]",G="[object Uint16Array]",j="[object Uint32Array]",q={};q[P]=q[I]=q[O]=q[U]=q[N]=q[H]=q[z]=q[G]=q[j]=!0,q[n]=q[o]=q[B]=q[u]=q[L]=q[f]=q[h]=q[A]=q[p]=q[g]=q[y]=q[_]=q[b]=q[C]=q[T]=!1;function X(Y){return r(Y)&&e(Y.length)&&!!q[t(Y)]}return sQ=X,sQ}var lQ,kde;function zY(){if(kde)return lQ;kde=1;function t(e){return function(r){return e(r)}}return lQ=t,lQ}var ZT={exports:{}};ZT.exports;var Fde;function GY(){return Fde||(Fde=1,function(t,e){var r=pBe(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,u=o&&o.exports===n,f=u&&r.process,h=function(){try{var A=o&&o.require&&o.require("util").types;return A||f&&f.binding&&f.binding("util")}catch{}}();t.exports=h}(ZT,ZT.exports)),ZT.exports}var uQ,Nde;function J2(){if(Nde)return uQ;Nde=1;var t=Int(),e=zY(),r=GY(),n=r&&r.isTypedArray,o=n?e(n):t;return uQ=o,uQ}var cQ,Ude;function Lnt(){if(Ude)return cQ;Ude=1;var t=wBe(),e=X2(),r=Z2(),n=th(),o=fw(),u=WS(),f=RO(),h=J2(),A="[object Map]",p="[object Set]",g=Object.prototype,y=g.hasOwnProperty;function _(b){if(b==null)return!0;if(o(b)&&(n(b)||typeof b=="string"||typeof b.splice=="function"||u(b)||h(b)||r(b)))return!b.length;var C=e(b);if(C==A||C==p)return!b.size;if(f(b))return!t(b).length;for(var T in b)if(y.call(b,T))return!1;return!0}return cQ=_,cQ}var Mnt=Lnt();const a8t=Dn(Mnt);var Dnt=K2();const o8t=Dn(Dnt);var fQ,Hde;function Rnt(){if(Hde)return fQ;Hde=1;function t(e){return e==null}return fQ=t,fQ}var Pnt=Rnt();const s8t=Dn(Pnt);var Ont=Oh();const l8t=Dn(Ont);var hQ,Qde;function _Be(){if(Qde)return hQ;Qde=1;var t=Bg(),e=th(),r=Oh(),n="[object String]";function o(u){return typeof u=="string"||!e(u)&&r(u)&&t(u)==n}return hQ=o,hQ}var knt=_Be();const u8t=Dn(knt);var dQ,Vde;function Fnt(){if(Vde)return dQ;Vde=1;var t=jd(),e=GS(),r=/^\s+/,n=t.parseInt;function o(u,f,h){return h||f==null?f=0:f&&(f=+f),n(e(u).replace(r,""),f||0)}return dQ=o,dQ}var Nnt=Fnt();const c8t=Dn(Nnt);var AQ,zde;function Unt(){if(zde)return AQ;zde=1;var t=BO();function e(){this.__data__=new t,this.size=0}return AQ=e,AQ}var vQ,Gde;function Hnt(){if(Gde)return vQ;Gde=1;function t(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}return vQ=t,vQ}var pQ,jde;function Qnt(){if(jde)return pQ;jde=1;function t(e){return this.__data__.get(e)}return pQ=t,pQ}var gQ,qde;function Vnt(){if(qde)return gQ;qde=1;function t(e){return this.__data__.has(e)}return gQ=t,gQ}var mQ,Wde;function znt(){if(Wde)return mQ;Wde=1;var t=BO(),e=HY(),r=QY(),n=200;function o(u,f){var h=this.__data__;if(h instanceof t){var A=h.__data__;if(!e||A.length<n-1)return A.push([u,f]),this.size=++h.size,this;h=this.__data__=new r(A)}return h.set(u,f),this.size=h.size,this}return mQ=o,mQ}var yQ,$de;function PO(){if($de)return yQ;$de=1;var t=BO(),e=Unt(),r=Hnt(),n=Qnt(),o=Vnt(),u=znt();function f(h){var A=this.__data__=new t(h);this.size=A.size}return f.prototype.clear=e,f.prototype.delete=r,f.prototype.get=n,f.prototype.has=o,f.prototype.set=u,yQ=f,yQ}var wQ,Kde;function Gnt(){if(Kde)return wQ;Kde=1;var t="__lodash_hash_undefined__";function e(r){return this.__data__.set(r,t),this}return wQ=e,wQ}var bQ,Yde;function jnt(){if(Yde)return bQ;Yde=1;function t(e){return this.__data__.has(e)}return bQ=t,bQ}var _Q,Xde;function SBe(){if(Xde)return _Q;Xde=1;var t=QY(),e=Gnt(),r=jnt();function n(o){var u=-1,f=o==null?0:o.length;for(this.__data__=new t;++u<f;)this.add(o[u])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,_Q=n,_Q}var SQ,Zde;function qnt(){if(Zde)return SQ;Zde=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n<o;)if(r(e[n],n,e))return!0;return!1}return SQ=t,SQ}var xQ,Jde;function xBe(){if(Jde)return xQ;Jde=1;function t(e,r){return e.has(r)}return xQ=t,xQ}var CQ,eAe;function CBe(){if(eAe)return CQ;eAe=1;var t=SBe(),e=qnt(),r=xBe(),n=1,o=2;function u(f,h,A,p,g,y){var _=A&n,b=f.length,C=h.length;if(b!=C&&!(_&&C>b))return!1;var T=y.get(f),B=y.get(h);if(T&&B)return T==h&&B==f;var L=-1,P=!0,I=A&o?new t:void 0;for(y.set(f,h),y.set(h,f);++L<b;){var O=f[L],U=h[L];if(p)var N=_?p(U,O,L,h,f,y):p(O,U,L,f,h,y);if(N!==void 0){if(N)continue;P=!1;break}if(I){if(!e(h,function(H,z){if(!r(I,z)&&(O===H||g(O,H,A,p,y)))return I.push(z)})){P=!1;break}}else if(!(O===U||g(O,U,A,p,y))){P=!1;break}}return y.delete(f),y.delete(h),P}return CQ=u,CQ}var TQ,tAe;function TBe(){if(tAe)return TQ;tAe=1;var t=jd(),e=t.Uint8Array;return TQ=e,TQ}var EQ,rAe;function Wnt(){if(rAe)return EQ;rAe=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(o,u){n[++r]=[u,o]}),n}return EQ=t,EQ}var BQ,nAe;function jY(){if(nAe)return BQ;nAe=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(o){n[++r]=o}),n}return BQ=t,BQ}var IQ,iAe;function $nt(){if(iAe)return IQ;iAe=1;var t=zS(),e=TBe(),r=Y2(),n=CBe(),o=Wnt(),u=jY(),f=1,h=2,A="[object Boolean]",p="[object Date]",g="[object Error]",y="[object Map]",_="[object Number]",b="[object RegExp]",C="[object Set]",T="[object String]",B="[object Symbol]",L="[object ArrayBuffer]",P="[object DataView]",I=t?t.prototype:void 0,O=I?I.valueOf:void 0;function U(N,H,z,G,j,q,X){switch(z){case P:if(N.byteLength!=H.byteLength||N.byteOffset!=H.byteOffset)return!1;N=N.buffer,H=H.buffer;case L:return!(N.byteLength!=H.byteLength||!q(new e(N),new e(H)));case A:case p:case _:return r(+N,+H);case g:return N.name==H.name&&N.message==H.message;case b:case T:return N==H+"";case y:var Y=o;case C:var te=G&f;if(Y||(Y=u),N.size!=H.size&&!te)return!1;var K=X.get(N);if(K)return K==H;G|=h,X.set(N,H);var ce=n(Y(N),Y(H),G,j,q,X);return X.delete(N),ce;case B:if(O)return O.call(N)==O.call(H)}return!1}return IQ=U,IQ}var LQ,aAe;function qY(){if(aAe)return LQ;aAe=1;function t(e,r){for(var n=-1,o=r.length,u=e.length;++n<o;)e[u+n]=r[n];return e}return LQ=t,LQ}var MQ,oAe;function EBe(){if(oAe)return MQ;oAe=1;var t=qY(),e=th();function r(n,o,u){var f=o(n);return e(n)?f:t(f,u(n))}return MQ=r,MQ}var DQ,sAe;function Knt(){if(sAe)return DQ;sAe=1;function t(e,r){for(var n=-1,o=e==null?0:e.length,u=0,f=[];++n<o;){var h=e[n];r(h,n,e)&&(f[u++]=h)}return f}return DQ=t,DQ}var RQ,lAe;function BBe(){if(lAe)return RQ;lAe=1;function t(){return[]}return RQ=t,RQ}var PQ,uAe;function WY(){if(uAe)return PQ;uAe=1;var t=Knt(),e=BBe(),r=Object.prototype,n=r.propertyIsEnumerable,o=Object.getOwnPropertySymbols,u=o?function(f){return f==null?[]:(f=Object(f),t(o(f),function(h){return n.call(f,h)}))}:e;return PQ=u,PQ}var OQ,cAe;function Ynt(){if(cAe)return OQ;cAe=1;function t(e,r){for(var n=-1,o=Array(e);++n<e;)o[n]=r(n);return o}return OQ=t,OQ}var kQ,fAe;function eB(){if(fAe)return kQ;fAe=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function r(n,o){var u=typeof n;return o=o??t,!!o&&(u=="number"||u!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<o}return kQ=r,kQ}var FQ,hAe;function IBe(){if(hAe)return FQ;hAe=1;var t=Ynt(),e=Z2(),r=th(),n=WS(),o=eB(),u=J2(),f=Object.prototype,h=f.hasOwnProperty;function A(p,g){var y=r(p),_=!y&&e(p),b=!y&&!_&&n(p),C=!y&&!_&&!b&&u(p),T=y||_||b||C,B=T?t(p.length,String):[],L=B.length;for(var P in p)(g||h.call(p,P))&&!(T&&(P=="length"||b&&(P=="offset"||P=="parent")||C&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||o(P,L)))&&B.push(P);return B}return FQ=A,FQ}var NQ,dAe;function hw(){if(dAe)return NQ;dAe=1;var t=IBe(),e=wBe(),r=fw();function n(o){return r(o)?t(o):e(o)}return NQ=n,NQ}var UQ,AAe;function LBe(){if(AAe)return UQ;AAe=1;var t=EBe(),e=WY(),r=hw();function n(o){return t(o,r,e)}return UQ=n,UQ}var HQ,vAe;function Xnt(){if(vAe)return HQ;vAe=1;var t=LBe(),e=1,r=Object.prototype,n=r.hasOwnProperty;function o(u,f,h,A,p,g){var y=h&e,_=t(u),b=_.length,C=t(f),T=C.length;if(b!=T&&!y)return!1;for(var B=b;B--;){var L=_[B];if(!(y?L in f:n.call(f,L)))return!1}var P=g.get(u),I=g.get(f);if(P&&I)return P==f&&I==u;var O=!0;g.set(u,f),g.set(f,u);for(var U=y;++B<b;){L=_[B];var N=u[L],H=f[L];if(A)var z=y?A(H,N,L,f,u,g):A(N,H,L,u,f,g);if(!(z===void 0?N===H||p(N,H,h,A,g):z)){O=!1;break}U||(U=L=="constructor")}if(O&&!U){var G=u.constructor,j=f.constructor;G!=j&&"constructor"in u&&"constructor"in f&&!(typeof G=="function"&&G instanceof G&&typeof j=="function"&&j instanceof j)&&(O=!1)}return g.delete(u),g.delete(f),O}return HQ=o,HQ}var QQ,pAe;function Znt(){if(pAe)return QQ;pAe=1;var t=PO(),e=CBe(),r=$nt(),n=Xnt(),o=X2(),u=th(),f=WS(),h=J2(),A=1,p="[object Arguments]",g="[object Array]",y="[object Object]",_=Object.prototype,b=_.hasOwnProperty;function C(T,B,L,P,I,O){var U=u(T),N=u(B),H=U?g:o(T),z=N?g:o(B);H=H==p?y:H,z=z==p?y:z;var G=H==y,j=z==y,q=H==z;if(q&&f(T)){if(!f(B))return!1;U=!0,G=!1}if(q&&!G)return O||(O=new t),U||h(T)?e(T,B,L,P,I,O):r(T,B,H,L,P,I,O);if(!(L&A)){var X=G&&b.call(T,"__wrapped__"),Y=j&&b.call(B,"__wrapped__");if(X||Y){var te=X?T.value():T,K=Y?B.value():B;return O||(O=new t),I(te,K,L,P,O)}}return q?(O||(O=new t),n(T,B,L,P,I,O)):!1}return QQ=C,QQ}var VQ,gAe;function $Y(){if(gAe)return VQ;gAe=1;var t=Znt(),e=Oh();function r(n,o,u,f,h){return n===o?!0:n==null||o==null||!e(n)&&!e(o)?n!==n&&o!==o:t(n,o,u,f,r,h)}return VQ=r,VQ}var zQ,mAe;function Jnt(){if(mAe)return zQ;mAe=1;var t=PO(),e=$Y(),r=1,n=2;function o(u,f,h,A){var p=h.length,g=p,y=!A;if(u==null)return!g;for(u=Object(u);p--;){var _=h[p];if(y&&_[2]?_[1]!==u[_[0]]:!(_[0]in u))return!1}for(;++p<g;){_=h[p];var b=_[0],C=u[b],T=_[1];if(y&&_[2]){if(C===void 0&&!(b in u))return!1}else{var B=new t;if(A)var L=A(C,T,b,u,f,B);if(!(L===void 0?e(T,C,r|n,A,B):L))return!1}}return!0}return zQ=o,zQ}var GQ,yAe;function MBe(){if(yAe)return GQ;yAe=1;var t=vf();function e(r){return r===r&&!t(r)}return GQ=e,GQ}var jQ,wAe;function eit(){if(wAe)return jQ;wAe=1;var t=MBe(),e=hw();function r(n){for(var o=e(n),u=o.length;u--;){var f=o[u],h=n[f];o[u]=[f,h,t(h)]}return o}return jQ=r,jQ}var qQ,bAe;function DBe(){if(bAe)return qQ;bAe=1;function t(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}return qQ=t,qQ}var WQ,_Ae;function tit(){if(_Ae)return WQ;_Ae=1;var t=Jnt(),e=eit(),r=DBe();function n(o){var u=e(o);return u.length==1&&u[0][2]?r(u[0][0],u[0][1]):function(f){return f===o||t(f,o,u)}}return WQ=n,WQ}var $Q,SAe;function rit(){if(SAe)return $Q;SAe=1;function t(e,r){return e!=null&&r in Object(e)}return $Q=t,$Q}var KQ,xAe;function nit(){if(xAe)return KQ;xAe=1;var t=jS(),e=Z2(),r=th(),n=eB(),o=VY(),u=qS();function f(h,A,p){A=t(A,h);for(var g=-1,y=A.length,_=!1;++g<y;){var b=u(A[g]);if(!(_=h!=null&&p(h,b)))break;h=h[b]}return _||++g!=y?_:(y=h==null?0:h.length,!!y&&o(y)&&n(b,y)&&(r(h)||e(h)))}return KQ=f,KQ}var YQ,CAe;function RBe(){if(CAe)return YQ;CAe=1;var t=rit(),e=nit();function r(n,o){return n!=null&&e(n,o,t)}return YQ=r,YQ}var XQ,TAe;function iit(){if(TAe)return XQ;TAe=1;var t=$Y(),e=mBe(),r=RBe(),n=UY(),o=MBe(),u=DBe(),f=qS(),h=1,A=2;function p(g,y){return n(g)&&o(y)?u(f(g),y):function(_){var b=e(_,g);return b===void 0&&b===y?r(_,g):t(y,b,h|A)}}return XQ=p,XQ}var ZQ,EAe;function ait(){if(EAe)return ZQ;EAe=1;function t(e){return function(r){return r?.[e]}}return ZQ=t,ZQ}var JQ,BAe;function oit(){if(BAe)return JQ;BAe=1;var t=MO();function e(r){return function(n){return t(n,r)}}return JQ=e,JQ}var eV,IAe;function sit(){if(IAe)return eV;IAe=1;var t=ait(),e=oit(),r=UY(),n=qS();function o(u){return r(u)?t(n(u)):e(u)}return eV=o,eV}var tV,LAe;function tB(){if(LAe)return tV;LAe=1;var t=tit(),e=iit(),r=DO(),n=th(),o=sit();function u(f){return typeof f=="function"?f:f==null?r:typeof f=="object"?n(f)?e(f[0],f[1]):t(f):o(f)}return tV=u,tV}var rV,MAe;function PBe(){if(MAe)return rV;MAe=1;var t=cw(),e=function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch{}}();return rV=e,rV}var nV,DAe;function KY(){if(DAe)return nV;DAe=1;var t=PBe();function e(r,n,o){n=="__proto__"&&t?t(r,n,{configurable:!0,enumerable:!0,value:o,writable:!0}):r[n]=o}return nV=e,nV}var iV,RAe;function YY(){if(RAe)return iV;RAe=1;var t=KY(),e=Y2(),r=Object.prototype,n=r.hasOwnProperty;function o(u,f,h){var A=u[f];(!(n.call(u,f)&&e(A,h))||h===void 0&&!(f in u))&&t(u,f,h)}return iV=o,iV}var aV,PAe;function lit(){if(PAe)return aV;PAe=1;var t=YY(),e=jS(),r=eB(),n=vf(),o=qS();function u(f,h,A,p){if(!n(f))return f;h=e(h,f);for(var g=-1,y=h.length,_=y-1,b=f;b!=null&&++g<y;){var C=o(h[g]),T=A;if(C==="__proto__"||C==="constructor"||C==="prototype")return f;if(g!=_){var B=b[C];T=p?p(B,C,b):void 0,T===void 0&&(T=n(B)?B:r(h[g+1])?[]:{})}t(b,C,T),b=b[C]}return f}return aV=u,aV}var oV,OAe;function OBe(){if(OAe)return oV;OAe=1;var t=MO(),e=lit(),r=jS();function n(o,u,f){for(var h=-1,A=u.length,p={};++h<A;){var g=u[h],y=t(o,g);f(y,g)&&e(p,r(g,o),y)}return p}return oV=n,oV}var sV,kAe;function OO(){if(kAe)return sV;kAe=1;var t=yBe(),e=t(Object.getPrototypeOf,Object);return sV=e,sV}var lV,FAe;function kBe(){if(FAe)return lV;FAe=1;var t=qY(),e=OO(),r=WY(),n=BBe(),o=Object.getOwnPropertySymbols,u=o?function(f){for(var h=[];f;)t(h,r(f)),f=e(f);return h}:n;return lV=u,lV}var uV,NAe;function uit(){if(NAe)return uV;NAe=1;function t(e){var r=[];if(e!=null)for(var n in Object(e))r.push(n);return r}return uV=t,uV}var cV,UAe;function cit(){if(UAe)return cV;UAe=1;var t=vf(),e=RO(),r=uit(),n=Object.prototype,o=n.hasOwnProperty;function u(f){if(!t(f))return r(f);var h=e(f),A=[];for(var p in f)p=="constructor"&&(h||!o.call(f,p))||A.push(p);return A}return cV=u,cV}var fV,HAe;function rB(){if(HAe)return fV;HAe=1;var t=IBe(),e=cit(),r=fw();function n(o){return r(o)?t(o,!0):e(o)}return fV=n,fV}var hV,QAe;function XY(){if(QAe)return hV;QAe=1;var t=EBe(),e=kBe(),r=rB();function n(o){return t(o,r,e)}return hV=n,hV}var dV,VAe;function fit(){if(VAe)return dV;VAe=1;var t=LO(),e=tB(),r=OBe(),n=XY();function o(u,f){if(u==null)return{};var h=t(n(u),function(A){return[A]});return f=e(f),r(u,h,function(A,p){return f(A,p[0])})}return dV=o,dV}var hit=fit();const f8t=Dn(hit);var AV,zAe;function FBe(){if(zAe)return AV;zAe=1;var t=KY(),e=Y2();function r(n,o,u){(u!==void 0&&!e(n[o],u)||u===void 0&&!(o in n))&&t(n,o,u)}return AV=r,AV}var vV,GAe;function dit(){if(GAe)return vV;GAe=1;function t(e){return function(r,n,o){for(var u=-1,f=Object(r),h=o(r),A=h.length;A--;){var p=h[e?A:++u];if(n(f[p],p,f)===!1)break}return r}}return vV=t,vV}var pV,jAe;function NBe(){if(jAe)return pV;jAe=1;var t=dit(),e=t();return pV=e,pV}var JT={exports:{}};JT.exports;var qAe;function UBe(){return qAe||(qAe=1,function(t,e){var r=jd(),n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,u=o&&o.exports===n,f=u?r.Buffer:void 0,h=f?f.allocUnsafe:void 0;function A(p,g){if(g)return p.slice();var y=p.length,_=h?h(y):new p.constructor(y);return p.copy(_),_}t.exports=A}(JT,JT.exports)),JT.exports}var gV,WAe;function ZY(){if(WAe)return gV;WAe=1;var t=TBe();function e(r){var n=new r.constructor(r.byteLength);return new t(n).set(new t(r)),n}return gV=e,gV}var mV,$Ae;function HBe(){if($Ae)return mV;$Ae=1;var t=ZY();function e(r,n){var o=n?t(r.buffer):r.buffer;return new r.constructor(o,r.byteOffset,r.length)}return mV=e,mV}var yV,KAe;function QBe(){if(KAe)return yV;KAe=1;function t(e,r){var n=-1,o=e.length;for(r||(r=Array(o));++n<o;)r[n]=e[n];return r}return yV=t,yV}var wV,YAe;function VBe(){if(YAe)return wV;YAe=1;var t=vf(),e=Object.create,r=function(){function n(){}return function(o){if(!t(o))return{};if(e)return e(o);n.prototype=o;var u=new n;return n.prototype=void 0,u}}();return wV=r,wV}var bV,XAe;function zBe(){if(XAe)return bV;XAe=1;var t=VBe(),e=OO(),r=RO();function n(o){return typeof o.constructor=="function"&&!r(o)?t(e(o)):{}}return bV=n,bV}var _V,ZAe;function GBe(){if(ZAe)return _V;ZAe=1;var t=fw(),e=Oh();function r(n){return e(n)&&t(n)}return _V=r,_V}var SV,JAe;function jBe(){if(JAe)return SV;JAe=1;var t=Bg(),e=OO(),r=Oh(),n="[object Object]",o=Function.prototype,u=Object.prototype,f=o.toString,h=u.hasOwnProperty,A=f.call(Object);function p(g){if(!r(g)||t(g)!=n)return!1;var y=e(g);if(y===null)return!0;var _=h.call(y,"constructor")&&y.constructor;return typeof _=="function"&&_ instanceof _&&f.call(_)==A}return SV=p,SV}var xV,eve;function qBe(){if(eve)return xV;eve=1;function t(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}return xV=t,xV}var CV,tve;function $S(){if(tve)return CV;tve=1;var t=YY(),e=KY();function r(n,o,u,f){var h=!u;u||(u={});for(var A=-1,p=o.length;++A<p;){var g=o[A],y=f?f(u[g],n[g],g,u,n):void 0;y===void 0&&(y=n[g]),h?e(u,g,y):t(u,g,y)}return u}return CV=r,CV}var TV,rve;function Ait(){if(rve)return TV;rve=1;var t=$S(),e=rB();function r(n){return t(n,e(n))}return TV=r,TV}var EV,nve;function vit(){if(nve)return EV;nve=1;var t=FBe(),e=UBe(),r=HBe(),n=QBe(),o=zBe(),u=Z2(),f=th(),h=GBe(),A=WS(),p=K2(),g=vf(),y=jBe(),_=J2(),b=qBe(),C=Ait();function T(B,L,P,I,O,U,N){var H=b(B,P),z=b(L,P),G=N.get(z);if(G){t(B,P,G);return}var j=U?U(H,z,P+"",B,L,N):void 0,q=j===void 0;if(q){var X=f(z),Y=!X&&A(z),te=!X&&!Y&&_(z);j=z,X||Y||te?f(H)?j=H:h(H)?j=n(H):Y?(q=!1,j=e(z,!0)):te?(q=!1,j=r(z,!0)):j=[]:y(z)||u(z)?(j=H,u(H)?j=C(H):(!g(H)||p(H))&&(j=o(z))):q=!1}q&&(N.set(z,j),O(j,z,I,U,N),N.delete(z)),t(B,P,j)}return EV=T,EV}var BV,ive;function pit(){if(ive)return BV;ive=1;var t=PO(),e=FBe(),r=NBe(),n=vit(),o=vf(),u=rB(),f=qBe();function h(A,p,g,y,_){A!==p&&r(p,function(b,C){if(_||(_=new t),o(b))n(A,p,C,g,h,y,_);else{var T=y?y(f(A,C),b,C+"",A,p,_):void 0;T===void 0&&(T=b),e(A,C,T)}},u)}return BV=h,BV}var IV,ave;function git(){if(ave)return IV;ave=1;function t(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}return IV=t,IV}var LV,ove;function WBe(){if(ove)return LV;ove=1;var t=git(),e=Math.max;function r(n,o,u){return o=e(o===void 0?n.length-1:o,0),function(){for(var f=arguments,h=-1,A=e(f.length-o,0),p=Array(A);++h<A;)p[h]=f[o+h];h=-1;for(var g=Array(o+1);++h<o;)g[h]=f[h];return g[o]=u(p),t(n,this,g)}}return LV=r,LV}var MV,sve;function mit(){if(sve)return MV;sve=1;function t(e){return function(){return e}}return MV=t,MV}var DV,lve;function yit(){if(lve)return DV;lve=1;var t=mit(),e=PBe(),r=DO(),n=e?function(o,u){return e(o,"toString",{configurable:!0,enumerable:!1,value:t(u),writable:!0})}:r;return DV=n,DV}var RV,uve;function wit(){if(uve)return RV;uve=1;var t=800,e=16,r=Date.now;function n(o){var u=0,f=0;return function(){var h=r(),A=e-(h-f);if(f=h,A>0){if(++u>=t)return arguments[0]}else u=0;return o.apply(void 0,arguments)}}return RV=n,RV}var PV,cve;function $Be(){if(cve)return PV;cve=1;var t=yit(),e=wit(),r=e(t);return PV=r,PV}var OV,fve;function JY(){if(fve)return OV;fve=1;var t=DO(),e=WBe(),r=$Be();function n(o,u){return r(e(o,u,t),o+"")}return OV=n,OV}var kV,hve;function KBe(){if(hve)return kV;hve=1;var t=Y2(),e=fw(),r=eB(),n=vf();function o(u,f,h){if(!n(h))return!1;var A=typeof f;return(A=="number"?e(h)&&r(f,h.length):A=="string"&&f in h)?t(h[f],u):!1}return kV=o,kV}var FV,dve;function bit(){if(dve)return FV;dve=1;var t=JY(),e=KBe();function r(n){return t(function(o,u){var f=-1,h=u.length,A=h>1?u[h-1]:void 0,p=h>2?u[2]:void 0;for(A=n.length>3&&typeof A=="function"?(h--,A):void 0,p&&e(u[0],u[1],p)&&(A=h<3?void 0:A,h=1),o=Object(o);++f<h;){var g=u[f];g&&n(o,g,f,A)}return o})}return FV=r,FV}var NV,Ave;function _it(){if(Ave)return NV;Ave=1;var t=pit(),e=bit(),r=e(function(n,o,u){t(n,o,u)});return NV=r,NV}var Sit=_it();const h8t=Dn(Sit);var xit=e2.Fragment,Cit=function(e,r,n){return $2.call(r,"css")?e2.jsx(NY,FY(e,r),n):e2.jsx(e,r,n)},Tit=function(e,r,n){return $2.call(r,"css")?e2.jsxs(NY,FY(e,r),n):e2.jsxs(e,r,n)};const Eit=Object.freeze(Object.defineProperty({__proto__:null,Fragment:xit,jsx:Cit,jsxs:Tit},Symbol.toStringTag,{value:"Module"})),d8t=Q2(Grt),A8t=Q2(Eit);var Bit={success:"#77bb1a",successBig:"#8dc640",successBackground:"#eef7e3",warning:"#e9a514",warningBig:"#fbbf01",warningBackground:"#fcf2dc",error:"#e04239",errorBackground:"#f9e7e6",errorDark:"#d03930",info:"#3daae1",infoBig:"#69b8e0",infoBackground:"#e1f1f9",primary:"#3daae1",primaryHover:"#82bdf4",primaryActive:"#4690d5",primaryBackground:"#dfedfa",secondary:"#fff",secondaryHover:"#f0f3fb",secondaryActive:"#dfe4f1",disabled:"#999",disabledBackground:"#dfdfdf",disabledBorder:"#c6c6c6",text:"#737373",iconColor:"#576575",headlineColor:"#424d56",sidebarBackground:"#363a40",sidebarColor:"#949ca1",turquoise:"#0096a1",formInputColor:"#000000",formInputBorderColor:"#c6c6c6",formInputBackground:"#ffffff",formInputPlaceholderColor:"#bfbfbf",black:"#000000",white:"#ffffff",containerPrimary:"#ffffff",containerSecondary:"#F5F6F8",backgroundPrimary:"#FFFFFF",backgroundSecondary:"#F5F6F8",tertiaryBorder:"#EBEBEB"};const Iit=Object.freeze(Object.defineProperty({__proto__:null,default:Bit},Symbol.toStringTag,{value:"Module"})),v8t=Q2(Iit);var UV,vve;function Lit(){if(vve)return UV;vve=1;var t=Bg(),e=Oh(),r="[object Number]";function n(o){return typeof o=="number"||e(o)&&t(o)==r}return UV=n,UV}var w5={exports:{}},Mit=w5.exports,pve;function p8t(){return pve||(pve=1,function(t,e){(function(r,n){t.exports=n()})(Mit,function(){return function(r){var n={};function o(u){if(n[u])return n[u].exports;var f=n[u]={i:u,l:!1,exports:{}};return r[u].call(f.exports,f,f.exports,o),f.l=!0,f.exports}return o.m=r,o.c=n,o.d=function(u,f,h){o.o(u,f)||Object.defineProperty(u,f,{enumerable:!0,get:h})},o.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},o.t=function(u,f){if(1&f&&(u=o(u)),8&f||4&f&&typeof u=="object"&&u&&u.__esModule)return u;var h=Object.create(null);if(o.r(h),Object.defineProperty(h,"default",{enumerable:!0,value:u}),2&f&&typeof u!="string")for(var A in u)o.d(h,A,(function(p){return u[p]}).bind(null,A));return h},o.n=function(u){var f=u&&u.__esModule?function(){return u.default}:function(){return u};return o.d(f,"a",f),f},o.o=function(u,f){return Object.prototype.hasOwnProperty.call(u,f)},o.p="",o(o.s=90)}({17:function(r,n,o){n.__esModule=!0,n.default=void 0;var u=o(18),f=function(){function h(){}return h.getFirstMatch=function(A,p){var g=p.match(A);return g&&g.length>0&&g[1]||""},h.getSecondMatch=function(A,p){var g=p.match(A);return g&&g.length>1&&g[2]||""},h.matchAndReturnConst=function(A,p,g){if(A.test(p))return g},h.getWindowsVersionName=function(A){switch(A){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},h.getMacOSVersionName=function(A){var p=A.split(".").splice(0,2).map(function(g){return parseInt(g,10)||0});if(p.push(0),p[0]===10)switch(p[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},h.getAndroidVersionName=function(A){var p=A.split(".").splice(0,2).map(function(g){return parseInt(g,10)||0});if(p.push(0),!(p[0]===1&&p[1]<5))return p[0]===1&&p[1]<6?"Cupcake":p[0]===1&&p[1]>=6?"Donut":p[0]===2&&p[1]<2?"Eclair":p[0]===2&&p[1]===2?"Froyo":p[0]===2&&p[1]>2?"Gingerbread":p[0]===3?"Honeycomb":p[0]===4&&p[1]<1?"Ice Cream Sandwich":p[0]===4&&p[1]<4?"Jelly Bean":p[0]===4&&p[1]>=4?"KitKat":p[0]===5?"Lollipop":p[0]===6?"Marshmallow":p[0]===7?"Nougat":p[0]===8?"Oreo":p[0]===9?"Pie":void 0},h.getVersionPrecision=function(A){return A.split(".").length},h.compareVersions=function(A,p,g){g===void 0&&(g=!1);var y=h.getVersionPrecision(A),_=h.getVersionPrecision(p),b=Math.max(y,_),C=0,T=h.map([A,p],function(B){var L=b-h.getVersionPrecision(B),P=B+new Array(L+1).join(".0");return h.map(P.split("."),function(I){return new Array(20-I.length).join("0")+I}).reverse()});for(g&&(C=b-Math.min(y,_)),b-=1;b>=C;){if(T[0][b]>T[1][b])return 1;if(T[0][b]===T[1][b]){if(b===C)return 0;b-=1}else if(T[0][b]<T[1][b])return-1}},h.map=function(A,p){var g,y=[];if(Array.prototype.map)return Array.prototype.map.call(A,p);for(g=0;g<A.length;g+=1)y.push(p(A[g]));return y},h.find=function(A,p){var g,y;if(Array.prototype.find)return Array.prototype.find.call(A,p);for(g=0,y=A.length;g<y;g+=1){var _=A[g];if(p(_,g))return _}},h.assign=function(A){for(var p,g,y=A,_=arguments.length,b=new Array(_>1?_-1:0),C=1;C<_;C++)b[C-1]=arguments[C];if(Object.assign)return Object.assign.apply(Object,[A].concat(b));var T=function(){var B=b[p];typeof B=="object"&&B!==null&&Object.keys(B).forEach(function(L){y[L]=B[L]})};for(p=0,g=b.length;p<g;p+=1)T();return A},h.getBrowserAlias=function(A){return u.BROWSER_ALIASES_MAP[A]},h.getBrowserTypeByAlias=function(A){return u.BROWSER_MAP[A]||""},h}();n.default=f,r.exports=n.default},18:function(r,n,o){n.__esModule=!0,n.ENGINE_MAP=n.OS_MAP=n.PLATFORMS_MAP=n.BROWSER_MAP=n.BROWSER_ALIASES_MAP=void 0,n.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},n.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},n.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},n.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},n.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(r,n,o){n.__esModule=!0,n.default=void 0;var u,f=(u=o(91))&&u.__esModule?u:{default:u},h=o(18);function A(g,y){for(var _=0;_<y.length;_++){var b=y[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(g,b.key,b)}}var p=function(){function g(){}var y,_,b;return g.getParser=function(C,T){if(T===void 0&&(T=!1),typeof C!="string")throw new Error("UserAgent should be a string");return new f.default(C,T)},g.parse=function(C){return new f.default(C).getResult()},y=g,b=[{key:"BROWSER_MAP",get:function(){return h.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return h.ENGINE_MAP}},{key:"OS_MAP",get:function(){return h.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return h.PLATFORMS_MAP}}],(_=null)&&A(y.prototype,_),b&&A(y,b),g}();n.default=p,r.exports=n.default},91:function(r,n,o){n.__esModule=!0,n.default=void 0;var u=g(o(92)),f=g(o(93)),h=g(o(94)),A=g(o(95)),p=g(o(17));function g(_){return _&&_.__esModule?_:{default:_}}var y=function(){function _(C,T){if(T===void 0&&(T=!1),C==null||C==="")throw new Error("UserAgent parameter can't be empty");this._ua=C,this.parsedResult={},T!==!0&&this.parse()}var b=_.prototype;return b.getUA=function(){return this._ua},b.test=function(C){return C.test(this._ua)},b.parseBrowser=function(){var C=this;this.parsedResult.browser={};var T=p.default.find(u.default,function(B){if(typeof B.test=="function")return B.test(C);if(B.test instanceof Array)return B.test.some(function(L){return C.test(L)});throw new Error("Browser's test function is not valid")});return T&&(this.parsedResult.browser=T.describe(this.getUA())),this.parsedResult.browser},b.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},b.getBrowserName=function(C){return C?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},b.getBrowserVersion=function(){return this.getBrowser().version},b.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},b.parseOS=function(){var C=this;this.parsedResult.os={};var T=p.default.find(f.default,function(B){if(typeof B.test=="function")return B.test(C);if(B.test instanceof Array)return B.test.some(function(L){return C.test(L)});throw new Error("Browser's test function is not valid")});return T&&(this.parsedResult.os=T.describe(this.getUA())),this.parsedResult.os},b.getOSName=function(C){var T=this.getOS().name;return C?String(T).toLowerCase()||"":T||""},b.getOSVersion=function(){return this.getOS().version},b.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},b.getPlatformType=function(C){C===void 0&&(C=!1);var T=this.getPlatform().type;return C?String(T).toLowerCase()||"":T||""},b.parsePlatform=function(){var C=this;this.parsedResult.platform={};var T=p.default.find(h.default,function(B){if(typeof B.test=="function")return B.test(C);if(B.test instanceof Array)return B.test.some(function(L){return C.test(L)});throw new Error("Browser's test function is not valid")});return T&&(this.parsedResult.platform=T.describe(this.getUA())),this.parsedResult.platform},b.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},b.getEngineName=function(C){return C?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},b.parseEngine=function(){var C=this;this.parsedResult.engine={};var T=p.default.find(A.default,function(B){if(typeof B.test=="function")return B.test(C);if(B.test instanceof Array)return B.test.some(function(L){return C.test(L)});throw new Error("Browser's test function is not valid")});return T&&(this.parsedResult.engine=T.describe(this.getUA())),this.parsedResult.engine},b.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},b.getResult=function(){return p.default.assign({},this.parsedResult)},b.satisfies=function(C){var T=this,B={},L=0,P={},I=0;if(Object.keys(C).forEach(function(q){var X=C[q];typeof X=="string"?(P[q]=X,I+=1):typeof X=="object"&&(B[q]=X,L+=1)}),L>0){var O=Object.keys(B),U=p.default.find(O,function(q){return T.isOS(q)});if(U){var N=this.satisfies(B[U]);if(N!==void 0)return N}var H=p.default.find(O,function(q){return T.isPlatform(q)});if(H){var z=this.satisfies(B[H]);if(z!==void 0)return z}}if(I>0){var G=Object.keys(P),j=p.default.find(G,function(q){return T.isBrowser(q,!0)});if(j!==void 0)return this.compareVersion(P[j])}},b.isBrowser=function(C,T){T===void 0&&(T=!1);var B=this.getBrowserName().toLowerCase(),L=C.toLowerCase(),P=p.default.getBrowserTypeByAlias(L);return T&&P&&(L=P.toLowerCase()),L===B},b.compareVersion=function(C){var T=[0],B=C,L=!1,P=this.getBrowserVersion();if(typeof P=="string")return C[0]===">"||C[0]==="<"?(B=C.substr(1),C[1]==="="?(L=!0,B=C.substr(2)):T=[],C[0]===">"?T.push(1):T.push(-1)):C[0]==="="?B=C.substr(1):C[0]==="~"&&(L=!0,B=C.substr(1)),T.indexOf(p.default.compareVersions(P,B,L))>-1},b.isOS=function(C){return this.getOSName(!0)===String(C).toLowerCase()},b.isPlatform=function(C){return this.getPlatformType(!0)===String(C).toLowerCase()},b.isEngine=function(C){return this.getEngineName(!0)===String(C).toLowerCase()},b.is=function(C,T){return T===void 0&&(T=!1),this.isBrowser(C,T)||this.isOS(C)||this.isPlatform(C)},b.some=function(C){var T=this;return C===void 0&&(C=[]),C.some(function(B){return T.is(B)})},_}();n.default=y,r.exports=n.default},92:function(r,n,o){n.__esModule=!0,n.default=void 0;var u,f=(u=o(17))&&u.__esModule?u:{default:u},h=/version\/(\d+(\.?_?\d+)+)/i,A=[{test:[/googlebot/i],describe:function(p){var g={name:"Googlebot"},y=f.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,p)||f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/opera/i],describe:function(p){var g={name:"Opera"},y=f.default.getFirstMatch(h,p)||f.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/opr\/|opios/i],describe:function(p){var g={name:"Opera"},y=f.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,p)||f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/SamsungBrowser/i],describe:function(p){var g={name:"Samsung Internet for Android"},y=f.default.getFirstMatch(h,p)||f.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/Whale/i],describe:function(p){var g={name:"NAVER Whale Browser"},y=f.default.getFirstMatch(h,p)||f.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/MZBrowser/i],describe:function(p){var g={name:"MZ Browser"},y=f.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,p)||f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/focus/i],describe:function(p){var g={name:"Focus"},y=f.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,p)||f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/swing/i],describe:function(p){var g={name:"Swing"},y=f.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,p)||f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/coast/i],describe:function(p){var g={name:"Opera Coast"},y=f.default.getFirstMatch(h,p)||f.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(p){var g={name:"Opera Touch"},y=f.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,p)||f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/yabrowser/i],describe:function(p){var g={name:"Yandex Browser"},y=f.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,p)||f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/ucbrowser/i],describe:function(p){var g={name:"UC Browser"},y=f.default.getFirstMatch(h,p)||f.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/Maxthon|mxios/i],describe:function(p){var g={name:"Maxthon"},y=f.default.getFirstMatch(h,p)||f.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/epiphany/i],describe:function(p){var g={name:"Epiphany"},y=f.default.getFirstMatch(h,p)||f.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/puffin/i],describe:function(p){var g={name:"Puffin"},y=f.default.getFirstMatch(h,p)||f.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/sleipnir/i],describe:function(p){var g={name:"Sleipnir"},y=f.default.getFirstMatch(h,p)||f.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/k-meleon/i],describe:function(p){var g={name:"K-Meleon"},y=f.default.getFirstMatch(h,p)||f.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/micromessenger/i],describe:function(p){var g={name:"WeChat"},y=f.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,p)||f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/qqbrowser/i],describe:function(p){var g={name:/qqbrowserlite/i.test(p)?"QQ Browser Lite":"QQ Browser"},y=f.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,p)||f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/msie|trident/i],describe:function(p){var g={name:"Internet Explorer"},y=f.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/\sedg\//i],describe:function(p){var g={name:"Microsoft Edge"},y=f.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/edg([ea]|ios)/i],describe:function(p){var g={name:"Microsoft Edge"},y=f.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/vivaldi/i],describe:function(p){var g={name:"Vivaldi"},y=f.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/seamonkey/i],describe:function(p){var g={name:"SeaMonkey"},y=f.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/sailfish/i],describe:function(p){var g={name:"Sailfish"},y=f.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,p);return y&&(g.version=y),g}},{test:[/silk/i],describe:function(p){var g={name:"Amazon Silk"},y=f.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/phantom/i],describe:function(p){var g={name:"PhantomJS"},y=f.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/slimerjs/i],describe:function(p){var g={name:"SlimerJS"},y=f.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(p){var g={name:"BlackBerry"},y=f.default.getFirstMatch(h,p)||f.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/(web|hpw)[o0]s/i],describe:function(p){var g={name:"WebOS Browser"},y=f.default.getFirstMatch(h,p)||f.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/bada/i],describe:function(p){var g={name:"Bada"},y=f.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/tizen/i],describe:function(p){var g={name:"Tizen"},y=f.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,p)||f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/qupzilla/i],describe:function(p){var g={name:"QupZilla"},y=f.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,p)||f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/firefox|iceweasel|fxios/i],describe:function(p){var g={name:"Firefox"},y=f.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/electron/i],describe:function(p){var g={name:"Electron"},y=f.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/MiuiBrowser/i],describe:function(p){var g={name:"Miui"},y=f.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/chromium/i],describe:function(p){var g={name:"Chromium"},y=f.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,p)||f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/chrome|crios|crmo/i],describe:function(p){var g={name:"Chrome"},y=f.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/GSA/i],describe:function(p){var g={name:"Google Search"},y=f.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:function(p){var g=!p.test(/like android/i),y=p.test(/android/i);return g&&y},describe:function(p){var g={name:"Android Browser"},y=f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/playstation 4/i],describe:function(p){var g={name:"PlayStation 4"},y=f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/safari|applewebkit/i],describe:function(p){var g={name:"Safari"},y=f.default.getFirstMatch(h,p);return y&&(g.version=y),g}},{test:[/.*/i],describe:function(p){var g=p.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:f.default.getFirstMatch(g,p),version:f.default.getSecondMatch(g,p)}}}];n.default=A,r.exports=n.default},93:function(r,n,o){n.__esModule=!0,n.default=void 0;var u,f=(u=o(17))&&u.__esModule?u:{default:u},h=o(18),A=[{test:[/Roku\/DVP/],describe:function(p){var g=f.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,p);return{name:h.OS_MAP.Roku,version:g}}},{test:[/windows phone/i],describe:function(p){var g=f.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,p);return{name:h.OS_MAP.WindowsPhone,version:g}}},{test:[/windows /i],describe:function(p){var g=f.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,p),y=f.default.getWindowsVersionName(g);return{name:h.OS_MAP.Windows,version:g,versionName:y}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(p){var g={name:h.OS_MAP.iOS},y=f.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,p);return y&&(g.version=y),g}},{test:[/macintosh/i],describe:function(p){var g=f.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,p).replace(/[_\s]/g,"."),y=f.default.getMacOSVersionName(g),_={name:h.OS_MAP.MacOS,version:g};return y&&(_.versionName=y),_}},{test:[/(ipod|iphone|ipad)/i],describe:function(p){var g=f.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,p).replace(/[_\s]/g,".");return{name:h.OS_MAP.iOS,version:g}}},{test:function(p){var g=!p.test(/like android/i),y=p.test(/android/i);return g&&y},describe:function(p){var g=f.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,p),y=f.default.getAndroidVersionName(g),_={name:h.OS_MAP.Android,version:g};return y&&(_.versionName=y),_}},{test:[/(web|hpw)[o0]s/i],describe:function(p){var g=f.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,p),y={name:h.OS_MAP.WebOS};return g&&g.length&&(y.version=g),y}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(p){var g=f.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,p)||f.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,p)||f.default.getFirstMatch(/\bbb(\d+)/i,p);return{name:h.OS_MAP.BlackBerry,version:g}}},{test:[/bada/i],describe:function(p){var g=f.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,p);return{name:h.OS_MAP.Bada,version:g}}},{test:[/tizen/i],describe:function(p){var g=f.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,p);return{name:h.OS_MAP.Tizen,version:g}}},{test:[/linux/i],describe:function(){return{name:h.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:h.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(p){var g=f.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,p);return{name:h.OS_MAP.PlayStation4,version:g}}}];n.default=A,r.exports=n.default},94:function(r,n,o){n.__esModule=!0,n.default=void 0;var u,f=(u=o(17))&&u.__esModule?u:{default:u},h=o(18),A=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(p){var g=f.default.getFirstMatch(/(can-l01)/i,p)&&"Nova",y={type:h.PLATFORMS_MAP.mobile,vendor:"Huawei"};return g&&(y.model=g),y}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet}}},{test:function(p){var g=p.test(/ipod|iphone/i),y=p.test(/like (ipod|iphone)/i);return g&&!y},describe:function(p){var g=f.default.getFirstMatch(/(ipod|iphone)/i,p);return{type:h.PLATFORMS_MAP.mobile,vendor:"Apple",model:g}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:function(p){return p.getBrowserName(!0)==="blackberry"},describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(p){return p.getBrowserName(!0)==="bada"},describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:function(p){return p.getBrowserName()==="windows phone"},describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(p){var g=Number(String(p.getOSVersion()).split(".")[0]);return p.getOSName(!0)==="android"&&g>=3},describe:function(){return{type:h.PLATFORMS_MAP.tablet}}},{test:function(p){return p.getOSName(!0)==="android"},describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:function(p){return p.getOSName(!0)==="macos"},describe:function(){return{type:h.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(p){return p.getOSName(!0)==="windows"},describe:function(){return{type:h.PLATFORMS_MAP.desktop}}},{test:function(p){return p.getOSName(!0)==="linux"},describe:function(){return{type:h.PLATFORMS_MAP.desktop}}},{test:function(p){return p.getOSName(!0)==="playstation 4"},describe:function(){return{type:h.PLATFORMS_MAP.tv}}},{test:function(p){return p.getOSName(!0)==="roku"},describe:function(){return{type:h.PLATFORMS_MAP.tv}}}];n.default=A,r.exports=n.default},95:function(r,n,o){n.__esModule=!0,n.default=void 0;var u,f=(u=o(17))&&u.__esModule?u:{default:u},h=o(18),A=[{test:function(p){return p.getBrowserName(!0)==="microsoft edge"},describe:function(p){if(/\sedg\//i.test(p))return{name:h.ENGINE_MAP.Blink};var g=f.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,p);return{name:h.ENGINE_MAP.EdgeHTML,version:g}}},{test:[/trident/i],describe:function(p){var g={name:h.ENGINE_MAP.Trident},y=f.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:function(p){return p.test(/presto/i)},describe:function(p){var g={name:h.ENGINE_MAP.Presto},y=f.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:function(p){var g=p.test(/gecko/i),y=p.test(/like gecko/i);return g&&!y},describe:function(p){var g={name:h.ENGINE_MAP.Gecko},y=f.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:h.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(p){var g={name:h.ENGINE_MAP.WebKit},y=f.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,p);return y&&(g.version=y),g}}];n.default=A,r.exports=n.default}})})}(w5)),w5.exports}var HV={exports:{}},QV,gve;function YBe(){return gve||(gve=1,QV={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),QV}var VV={exports:{}},zV,mve;function Dit(){return mve||(mve=1,zV=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")}),zV}var yve;function Rit(){if(yve)return VV.exports;yve=1;var t=Dit(),e=Array.prototype.concat,r=Array.prototype.slice,n=VV.exports=function(u){for(var f=[],h=0,A=u.length;h<A;h++){var p=u[h];t(p)?f=e.call(f,r.call(p)):f.push(p)}return f};return n.wrap=function(o){return function(){return o(n(arguments))}},VV.exports}var wve;function Pit(){if(wve)return HV.exports;wve=1;var t=YBe(),e=Rit(),r=Object.hasOwnProperty,n=Object.create(null);for(var o in t)r.call(t,o)&&(n[t[o]]=o);var u=HV.exports={to:{},get:{}};u.get=function(A){var p=A.substring(0,3).toLowerCase(),g,y;switch(p){case"hsl":g=u.get.hsl(A),y="hsl";break;case"hwb":g=u.get.hwb(A),y="hwb";break;default:g=u.get.rgb(A),y="rgb";break}return g?{model:y,value:g}:null},u.get.rgb=function(A){if(!A)return null;var p=/^#([a-f0-9]{3,4})$/i,g=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,y=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,_=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,b=/^(\w+)$/,C=[0,0,0,1],T,B,L;if(T=A.match(g)){for(L=T[2],T=T[1],B=0;B<3;B++){var P=B*2;C[B]=parseInt(T.slice(P,P+2),16)}L&&(C[3]=parseInt(L,16)/255)}else if(T=A.match(p)){for(T=T[1],L=T[3],B=0;B<3;B++)C[B]=parseInt(T[B]+T[B],16);L&&(C[3]=parseInt(L+L,16)/255)}else if(T=A.match(y)){for(B=0;B<3;B++)C[B]=parseInt(T[B+1],0);T[4]&&(T[5]?C[3]=parseFloat(T[4])*.01:C[3]=parseFloat(T[4]))}else if(T=A.match(_)){for(B=0;B<3;B++)C[B]=Math.round(parseFloat(T[B+1])*2.55);T[4]&&(T[5]?C[3]=parseFloat(T[4])*.01:C[3]=parseFloat(T[4]))}else return(T=A.match(b))?T[1]==="transparent"?[0,0,0,0]:r.call(t,T[1])?(C=t[T[1]],C[3]=1,C):null:null;for(B=0;B<3;B++)C[B]=f(C[B],0,255);return C[3]=f(C[3],0,1),C},u.get.hsl=function(A){if(!A)return null;var p=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,g=A.match(p);if(g){var y=parseFloat(g[4]),_=(parseFloat(g[1])%360+360)%360,b=f(parseFloat(g[2]),0,100),C=f(parseFloat(g[3]),0,100),T=f(isNaN(y)?1:y,0,1);return[_,b,C,T]}return null},u.get.hwb=function(A){if(!A)return null;var p=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,g=A.match(p);if(g){var y=parseFloat(g[4]),_=(parseFloat(g[1])%360+360)%360,b=f(parseFloat(g[2]),0,100),C=f(parseFloat(g[3]),0,100),T=f(isNaN(y)?1:y,0,1);return[_,b,C,T]}return null},u.to.hex=function(){var A=e(arguments);return"#"+h(A[0])+h(A[1])+h(A[2])+(A[3]<1?h(Math.round(A[3]*255)):"")},u.to.rgb=function(){var A=e(arguments);return A.length<4||A[3]===1?"rgb("+Math.round(A[0])+", "+Math.round(A[1])+", "+Math.round(A[2])+")":"rgba("+Math.round(A[0])+", "+Math.round(A[1])+", "+Math.round(A[2])+", "+A[3]+")"},u.to.rgb.percent=function(){var A=e(arguments),p=Math.round(A[0]/255*100),g=Math.round(A[1]/255*100),y=Math.round(A[2]/255*100);return A.length<4||A[3]===1?"rgb("+p+"%, "+g+"%, "+y+"%)":"rgba("+p+"%, "+g+"%, "+y+"%, "+A[3]+")"},u.to.hsl=function(){var A=e(arguments);return A.length<4||A[3]===1?"hsl("+A[0]+", "+A[1]+"%, "+A[2]+"%)":"hsla("+A[0]+", "+A[1]+"%, "+A[2]+"%, "+A[3]+")"},u.to.hwb=function(){var A=e(arguments),p="";return A.length>=4&&A[3]!==1&&(p=", "+A[3]),"hwb("+A[0]+", "+A[1]+"%, "+A[2]+"%"+p+")"},u.to.keyword=function(A){return n[A.slice(0,3)]};function f(A,p,g){return Math.min(Math.max(p,A),g)}function h(A){var p=Math.round(A).toString(16).toUpperCase();return p.length<2?"0"+p:p}return HV.exports}var GV={exports:{}},bve;function XBe(){if(bve)return GV.exports;bve=1;var t=YBe(),e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);var n=GV.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in n)if(n.hasOwnProperty(o)){if(!("channels"in n[o]))throw new Error("missing channels property: "+o);if(!("labels"in n[o]))throw new Error("missing channel labels property: "+o);if(n[o].labels.length!==n[o].channels)throw new Error("channel and label counts mismatch: "+o);var u=n[o].channels,f=n[o].labels;delete n[o].channels,delete n[o].labels,Object.defineProperty(n[o],"channels",{value:u}),Object.defineProperty(n[o],"labels",{value:f})}n.rgb.hsl=function(A){var p=A[0]/255,g=A[1]/255,y=A[2]/255,_=Math.min(p,g,y),b=Math.max(p,g,y),C=b-_,T,B,L;return b===_?T=0:p===b?T=(g-y)/C:g===b?T=2+(y-p)/C:y===b&&(T=4+(p-g)/C),T=Math.min(T*60,360),T<0&&(T+=360),L=(_+b)/2,b===_?B=0:L<=.5?B=C/(b+_):B=C/(2-b-_),[T,B*100,L*100]},n.rgb.hsv=function(A){var p,g,y,_,b,C=A[0]/255,T=A[1]/255,B=A[2]/255,L=Math.max(C,T,B),P=L-Math.min(C,T,B),I=function(O){return(L-O)/6/P+1/2};return P===0?_=b=0:(b=P/L,p=I(C),g=I(T),y=I(B),C===L?_=y-g:T===L?_=1/3+p-y:B===L&&(_=2/3+g-p),_<0?_+=1:_>1&&(_-=1)),[_*360,b*100,L*100]},n.rgb.hwb=function(A){var p=A[0],g=A[1],y=A[2],_=n.rgb.hsl(A)[0],b=1/255*Math.min(p,Math.min(g,y));return y=1-1/255*Math.max(p,Math.max(g,y)),[_,b*100,y*100]},n.rgb.cmyk=function(A){var p=A[0]/255,g=A[1]/255,y=A[2]/255,_,b,C,T;return T=Math.min(1-p,1-g,1-y),_=(1-p-T)/(1-T)||0,b=(1-g-T)/(1-T)||0,C=(1-y-T)/(1-T)||0,[_*100,b*100,C*100,T*100]};function h(A,p){return Math.pow(A[0]-p[0],2)+Math.pow(A[1]-p[1],2)+Math.pow(A[2]-p[2],2)}return n.rgb.keyword=function(A){var p=e[A];if(p)return p;var g=1/0,y;for(var _ in t)if(t.hasOwnProperty(_)){var b=t[_],C=h(A,b);C<g&&(g=C,y=_)}return y},n.keyword.rgb=function(A){return t[A]},n.rgb.xyz=function(A){var p=A[0]/255,g=A[1]/255,y=A[2]/255;p=p>.04045?Math.pow((p+.055)/1.055,2.4):p/12.92,g=g>.04045?Math.pow((g+.055)/1.055,2.4):g/12.92,y=y>.04045?Math.pow((y+.055)/1.055,2.4):y/12.92;var _=p*.4124+g*.3576+y*.1805,b=p*.2126+g*.7152+y*.0722,C=p*.0193+g*.1192+y*.9505;return[_*100,b*100,C*100]},n.rgb.lab=function(A){var p=n.rgb.xyz(A),g=p[0],y=p[1],_=p[2],b,C,T;return g/=95.047,y/=100,_/=108.883,g=g>.008856?Math.pow(g,1/3):7.787*g+16/116,y=y>.008856?Math.pow(y,1/3):7.787*y+16/116,_=_>.008856?Math.pow(_,1/3):7.787*_+16/116,b=116*y-16,C=500*(g-y),T=200*(y-_),[b,C,T]},n.hsl.rgb=function(A){var p=A[0]/360,g=A[1]/100,y=A[2]/100,_,b,C,T,B;if(g===0)return B=y*255,[B,B,B];y<.5?b=y*(1+g):b=y+g-y*g,_=2*y-b,T=[0,0,0];for(var L=0;L<3;L++)C=p+1/3*-(L-1),C<0&&C++,C>1&&C--,6*C<1?B=_+(b-_)*6*C:2*C<1?B=b:3*C<2?B=_+(b-_)*(2/3-C)*6:B=_,T[L]=B*255;return T},n.hsl.hsv=function(A){var p=A[0],g=A[1]/100,y=A[2]/100,_=g,b=Math.max(y,.01),C,T;return y*=2,g*=y<=1?y:2-y,_*=b<=1?b:2-b,T=(y+g)/2,C=y===0?2*_/(b+_):2*g/(y+g),[p,C*100,T*100]},n.hsv.rgb=function(A){var p=A[0]/60,g=A[1]/100,y=A[2]/100,_=Math.floor(p)%6,b=p-Math.floor(p),C=255*y*(1-g),T=255*y*(1-g*b),B=255*y*(1-g*(1-b));switch(y*=255,_){case 0:return[y,B,C];case 1:return[T,y,C];case 2:return[C,y,B];case 3:return[C,T,y];case 4:return[B,C,y];case 5:return[y,C,T]}},n.hsv.hsl=function(A){var p=A[0],g=A[1]/100,y=A[2]/100,_=Math.max(y,.01),b,C,T;return T=(2-g)*y,b=(2-g)*_,C=g*_,C/=b<=1?b:2-b,C=C||0,T/=2,[p,C*100,T*100]},n.hwb.rgb=function(A){var p=A[0]/360,g=A[1]/100,y=A[2]/100,_=g+y,b,C,T,B;_>1&&(g/=_,y/=_),b=Math.floor(6*p),C=1-y,T=6*p-b,(b&1)!==0&&(T=1-T),B=g+T*(C-g);var L,P,I;switch(b){default:case 6:case 0:L=C,P=B,I=g;break;case 1:L=B,P=C,I=g;break;case 2:L=g,P=C,I=B;break;case 3:L=g,P=B,I=C;break;case 4:L=B,P=g,I=C;break;case 5:L=C,P=g,I=B;break}return[L*255,P*255,I*255]},n.cmyk.rgb=function(A){var p=A[0]/100,g=A[1]/100,y=A[2]/100,_=A[3]/100,b,C,T;return b=1-Math.min(1,p*(1-_)+_),C=1-Math.min(1,g*(1-_)+_),T=1-Math.min(1,y*(1-_)+_),[b*255,C*255,T*255]},n.xyz.rgb=function(A){var p=A[0]/100,g=A[1]/100,y=A[2]/100,_,b,C;return _=p*3.2406+g*-1.5372+y*-.4986,b=p*-.9689+g*1.8758+y*.0415,C=p*.0557+g*-.204+y*1.057,_=_>.0031308?1.055*Math.pow(_,1/2.4)-.055:_*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,C=C>.0031308?1.055*Math.pow(C,1/2.4)-.055:C*12.92,_=Math.min(Math.max(0,_),1),b=Math.min(Math.max(0,b),1),C=Math.min(Math.max(0,C),1),[_*255,b*255,C*255]},n.xyz.lab=function(A){var p=A[0],g=A[1],y=A[2],_,b,C;return p/=95.047,g/=100,y/=108.883,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,g=g>.008856?Math.pow(g,1/3):7.787*g+16/116,y=y>.008856?Math.pow(y,1/3):7.787*y+16/116,_=116*g-16,b=500*(p-g),C=200*(g-y),[_,b,C]},n.lab.xyz=function(A){var p=A[0],g=A[1],y=A[2],_,b,C;b=(p+16)/116,_=g/500+b,C=b-y/200;var T=Math.pow(b,3),B=Math.pow(_,3),L=Math.pow(C,3);return b=T>.008856?T:(b-16/116)/7.787,_=B>.008856?B:(_-16/116)/7.787,C=L>.008856?L:(C-16/116)/7.787,_*=95.047,b*=100,C*=108.883,[_,b,C]},n.lab.lch=function(A){var p=A[0],g=A[1],y=A[2],_,b,C;return _=Math.atan2(y,g),b=_*360/2/Math.PI,b<0&&(b+=360),C=Math.sqrt(g*g+y*y),[p,C,b]},n.lch.lab=function(A){var p=A[0],g=A[1],y=A[2],_,b,C;return C=y/360*2*Math.PI,_=g*Math.cos(C),b=g*Math.sin(C),[p,_,b]},n.rgb.ansi16=function(A){var p=A[0],g=A[1],y=A[2],_=1 in arguments?arguments[1]:n.rgb.hsv(A)[2];if(_=Math.round(_/50),_===0)return 30;var b=30+(Math.round(y/255)<<2|Math.round(g/255)<<1|Math.round(p/255));return _===2&&(b+=60),b},n.hsv.ansi16=function(A){return n.rgb.ansi16(n.hsv.rgb(A),A[2])},n.rgb.ansi256=function(A){var p=A[0],g=A[1],y=A[2];if(p===g&&g===y)return p<8?16:p>248?231:Math.round((p-8)/247*24)+232;var _=16+36*Math.round(p/255*5)+6*Math.round(g/255*5)+Math.round(y/255*5);return _},n.ansi16.rgb=function(A){var p=A%10;if(p===0||p===7)return A>50&&(p+=3.5),p=p/10.5*255,[p,p,p];var g=(~~(A>50)+1)*.5,y=(p&1)*g*255,_=(p>>1&1)*g*255,b=(p>>2&1)*g*255;return[y,_,b]},n.ansi256.rgb=function(A){if(A>=232){var p=(A-232)*10+8;return[p,p,p]}A-=16;var g,y=Math.floor(A/36)/5*255,_=Math.floor((g=A%36)/6)/5*255,b=g%6/5*255;return[y,_,b]},n.rgb.hex=function(A){var p=((Math.round(A[0])&255)<<16)+((Math.round(A[1])&255)<<8)+(Math.round(A[2])&255),g=p.toString(16).toUpperCase();return"000000".substring(g.length)+g},n.hex.rgb=function(A){var p=A.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!p)return[0,0,0];var g=p[0];p[0].length===3&&(g=g.split("").map(function(T){return T+T}).join(""));var y=parseInt(g,16),_=y>>16&255,b=y>>8&255,C=y&255;return[_,b,C]},n.rgb.hcg=function(A){var p=A[0]/255,g=A[1]/255,y=A[2]/255,_=Math.max(Math.max(p,g),y),b=Math.min(Math.min(p,g),y),C=_-b,T,B;return C<1?T=b/(1-C):T=0,C<=0?B=0:_===p?B=(g-y)/C%6:_===g?B=2+(y-p)/C:B=4+(p-g)/C+4,B/=6,B%=1,[B*360,C*100,T*100]},n.hsl.hcg=function(A){var p=A[1]/100,g=A[2]/100,y=1,_=0;return g<.5?y=2*p*g:y=2*p*(1-g),y<1&&(_=(g-.5*y)/(1-y)),[A[0],y*100,_*100]},n.hsv.hcg=function(A){var p=A[1]/100,g=A[2]/100,y=p*g,_=0;return y<1&&(_=(g-y)/(1-y)),[A[0],y*100,_*100]},n.hcg.rgb=function(A){var p=A[0]/360,g=A[1]/100,y=A[2]/100;if(g===0)return[y*255,y*255,y*255];var _=[0,0,0],b=p%1*6,C=b%1,T=1-C,B=0;switch(Math.floor(b)){case 0:_[0]=1,_[1]=C,_[2]=0;break;case 1:_[0]=T,_[1]=1,_[2]=0;break;case 2:_[0]=0,_[1]=1,_[2]=C;break;case 3:_[0]=0,_[1]=T,_[2]=1;break;case 4:_[0]=C,_[1]=0,_[2]=1;break;default:_[0]=1,_[1]=0,_[2]=T}return B=(1-g)*y,[(g*_[0]+B)*255,(g*_[1]+B)*255,(g*_[2]+B)*255]},n.hcg.hsv=function(A){var p=A[1]/100,g=A[2]/100,y=p+g*(1-p),_=0;return y>0&&(_=p/y),[A[0],_*100,y*100]},n.hcg.hsl=function(A){var p=A[1]/100,g=A[2]/100,y=g*(1-p)+.5*p,_=0;return y>0&&y<.5?_=p/(2*y):y>=.5&&y<1&&(_=p/(2*(1-y))),[A[0],_*100,y*100]},n.hcg.hwb=function(A){var p=A[1]/100,g=A[2]/100,y=p+g*(1-p);return[A[0],(y-p)*100,(1-y)*100]},n.hwb.hcg=function(A){var p=A[1]/100,g=A[2]/100,y=1-g,_=y-p,b=0;return _<1&&(b=(y-_)/(1-_)),[A[0],_*100,b*100]},n.apple.rgb=function(A){return[A[0]/65535*255,A[1]/65535*255,A[2]/65535*255]},n.rgb.apple=function(A){return[A[0]/255*65535,A[1]/255*65535,A[2]/255*65535]},n.gray.rgb=function(A){return[A[0]/100*255,A[0]/100*255,A[0]/100*255]},n.gray.hsl=n.gray.hsv=function(A){return[0,0,A[0]]},n.gray.hwb=function(A){return[0,100,A[0]]},n.gray.cmyk=function(A){return[0,0,0,A[0]]},n.gray.lab=function(A){return[A[0],0,0]},n.gray.hex=function(A){var p=Math.round(A[0]/100*255)&255,g=(p<<16)+(p<<8)+p,y=g.toString(16).toUpperCase();return"000000".substring(y.length)+y},n.rgb.gray=function(A){var p=(A[0]+A[1]+A[2])/3;return[p/255*100]},GV.exports}var jV,_ve;function Oit(){if(_ve)return jV;_ve=1;var t=XBe();function e(){for(var u={},f=Object.keys(t),h=f.length,A=0;A<h;A++)u[f[A]]={distance:-1,parent:null};return u}function r(u){var f=e(),h=[u];for(f[u].distance=0;h.length;)for(var A=h.pop(),p=Object.keys(t[A]),g=p.length,y=0;y<g;y++){var _=p[y],b=f[_];b.distance===-1&&(b.distance=f[A].distance+1,b.parent=A,h.unshift(_))}return f}function n(u,f){return function(h){return f(u(h))}}function o(u,f){for(var h=[f[u].parent,u],A=t[f[u].parent][u],p=f[u].parent;f[p].parent;)h.unshift(f[p].parent),A=n(t[f[p].parent][p],A),p=f[p].parent;return A.conversion=h,A}return jV=function(u){for(var f=r(u),h={},A=Object.keys(f),p=A.length,g=0;g<p;g++){var y=A[g],_=f[y];_.parent!==null&&(h[y]=o(y,f))}return h},jV}var qV,Sve;function kit(){if(Sve)return qV;Sve=1;var t=XBe(),e=Oit(),r={},n=Object.keys(t);function o(f){var h=function(A){return A==null?A:(arguments.length>1&&(A=Array.prototype.slice.call(arguments)),f(A))};return"conversion"in f&&(h.conversion=f.conversion),h}function u(f){var h=function(A){if(A==null)return A;arguments.length>1&&(A=Array.prototype.slice.call(arguments));var p=f(A);if(typeof p=="object")for(var g=p.length,y=0;y<g;y++)p[y]=Math.round(p[y]);return p};return"conversion"in f&&(h.conversion=f.conversion),h}return n.forEach(function(f){r[f]={},Object.defineProperty(r[f],"channels",{value:t[f].channels}),Object.defineProperty(r[f],"labels",{value:t[f].labels});var h=e(f),A=Object.keys(h);A.forEach(function(p){var g=h[p];r[f][p]=u(g),r[f][p].raw=o(g)})}),qV=r,qV}var WV,xve;function Fit(){if(xve)return WV;xve=1;var t=Pit(),e=kit(),r=[].slice,n=["keyword","gray","hex"],o={};Object.keys(e).forEach(function(b){o[r.call(e[b].labels).sort().join("")]=b});var u={};function f(b,C){if(!(this instanceof f))return new f(b,C);if(C&&C in n&&(C=null),C&&!(C in e))throw new Error("Unknown model: "+C);var T,B;if(b==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(b instanceof f)this.model=b.model,this.color=b.color.slice(),this.valpha=b.valpha;else if(typeof b=="string"){var L=t.get(b);if(L===null)throw new Error("Unable to parse color from string: "+b);this.model=L.model,B=e[this.model].channels,this.color=L.value.slice(0,B),this.valpha=typeof L.value[B]=="number"?L.value[B]:1}else if(b.length){this.model=C||"rgb",B=e[this.model].channels;var P=r.call(b,0,B);this.color=_(P,B),this.valpha=typeof b[B]=="number"?b[B]:1}else if(typeof b=="number")b&=16777215,this.model="rgb",this.color=[b>>16&255,b>>8&255,b&255],this.valpha=1;else{this.valpha=1;var I=Object.keys(b);"alpha"in b&&(I.splice(I.indexOf("alpha"),1),this.valpha=typeof b.alpha=="number"?b.alpha:0);var O=I.sort().join("");if(!(O in o))throw new Error("Unable to parse color from object: "+JSON.stringify(b));this.model=o[O];var U=e[this.model].labels,N=[];for(T=0;T<U.length;T++)N.push(b[U[T]]);this.color=_(N)}if(u[this.model])for(B=e[this.model].channels,T=0;T<B;T++){var H=u[this.model][T];H&&(this.color[T]=H(this.color[T]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}f.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(b){var C=this.model in t.to?this:this.rgb();C=C.round(typeof b=="number"?b:1);var T=C.valpha===1?C.color:C.color.concat(this.valpha);return t.to[C.model](T)},percentString:function(b){var C=this.rgb().round(typeof b=="number"?b:1),T=C.valpha===1?C.color:C.color.concat(this.valpha);return t.to.rgb.percent(T)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var b={},C=e[this.model].channels,T=e[this.model].labels,B=0;B<C;B++)b[T[B]]=this.color[B];return this.valpha!==1&&(b.alpha=this.valpha),b},unitArray:function(){var b=this.rgb().color;return b[0]/=255,b[1]/=255,b[2]/=255,this.valpha!==1&&b.push(this.valpha),b},unitObject:function(){var b=this.rgb().object();return b.r/=255,b.g/=255,b.b/=255,this.valpha!==1&&(b.alpha=this.valpha),b},round:function(b){return b=Math.max(b||0,0),new f(this.color.map(A(b)).concat(this.valpha),this.model)},alpha:function(b){return arguments.length?new f(this.color.concat(Math.max(0,Math.min(1,b))),this.model):this.valpha},red:p("rgb",0,g(255)),green:p("rgb",1,g(255)),blue:p("rgb",2,g(255)),hue:p(["hsl","hsv","hsl","hwb","hcg"],0,function(b){return(b%360+360)%360}),saturationl:p("hsl",1,g(100)),lightness:p("hsl",2,g(100)),saturationv:p("hsv",1,g(100)),value:p("hsv",2,g(100)),chroma:p("hcg",1,g(100)),gray:p("hcg",2,g(100)),white:p("hwb",1,g(100)),wblack:p("hwb",2,g(100)),cyan:p("cmyk",0,g(100)),magenta:p("cmyk",1,g(100)),yellow:p("cmyk",2,g(100)),black:p("cmyk",3,g(100)),x:p("xyz",0,g(100)),y:p("xyz",1,g(100)),z:p("xyz",2,g(100)),l:p("lab",0,g(100)),a:p("lab",1),b:p("lab",2),keyword:function(b){return arguments.length?new f(b):e[this.model].keyword(this.color)},hex:function(b){return arguments.length?new f(b):t.to.hex(this.rgb().round().color)},rgbNumber:function(){var b=this.rgb().color;return(b[0]&255)<<16|(b[1]&255)<<8|b[2]&255},luminosity:function(){for(var b=this.rgb().color,C=[],T=0;T<b.length;T++){var B=b[T]/255;C[T]=B<=.03928?B/12.92:Math.pow((B+.055)/1.055,2.4)}return .2126*C[0]+.7152*C[1]+.0722*C[2]},contrast:function(b){var C=this.luminosity(),T=b.luminosity();return C>T?(C+.05)/(T+.05):(T+.05)/(C+.05)},level:function(b){var C=this.contrast(b);return C>=7.1?"AAA":C>=4.5?"AA":""},isDark:function(){var b=this.rgb().color,C=(b[0]*299+b[1]*587+b[2]*114)/1e3;return C<128},isLight:function(){return!this.isDark()},negate:function(){for(var b=this.rgb(),C=0;C<3;C++)b.color[C]=255-b.color[C];return b},lighten:function(b){var C=this.hsl();return C.color[2]+=C.color[2]*b,C},darken:function(b){var C=this.hsl();return C.color[2]-=C.color[2]*b,C},saturate:function(b){var C=this.hsl();return C.color[1]+=C.color[1]*b,C},desaturate:function(b){var C=this.hsl();return C.color[1]-=C.color[1]*b,C},whiten:function(b){var C=this.hwb();return C.color[1]+=C.color[1]*b,C},blacken:function(b){var C=this.hwb();return C.color[2]+=C.color[2]*b,C},grayscale:function(){var b=this.rgb().color,C=b[0]*.3+b[1]*.59+b[2]*.11;return f.rgb(C,C,C)},fade:function(b){return this.alpha(this.valpha-this.valpha*b)},opaquer:function(b){return this.alpha(this.valpha+this.valpha*b)},rotate:function(b){var C=this.hsl(),T=C.color[0];return T=(T+b)%360,T=T<0?360+T:T,C.color[0]=T,C},mix:function(b,C){if(!b||!b.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof b);var T=b.rgb(),B=this.rgb(),L=C===void 0?.5:C,P=2*L-1,I=T.alpha()-B.alpha(),O=((P*I===-1?P:(P+I)/(1+P*I))+1)/2,U=1-O;return f.rgb(O*T.red()+U*B.red(),O*T.green()+U*B.green(),O*T.blue()+U*B.blue(),T.alpha()*L+B.alpha()*(1-L))}},Object.keys(e).forEach(function(b){if(n.indexOf(b)===-1){var C=e[b].channels;f.prototype[b]=function(){if(this.model===b)return new f(this);if(arguments.length)return new f(arguments,b);var T=typeof arguments[C]=="number"?C:this.valpha;return new f(y(e[this.model][b].raw(this.color)).concat(T),b)},f[b]=function(T){return typeof T=="number"&&(T=_(r.call(arguments),C)),new f(T,b)}}});function h(b,C){return Number(b.toFixed(C))}function A(b){return function(C){return h(C,b)}}function p(b,C,T){return b=Array.isArray(b)?b:[b],b.forEach(function(B){(u[B]||(u[B]=[]))[C]=T}),b=b[0],function(B){var L;return arguments.length?(T&&(B=T(B)),L=this[b](),L.color[C]=B,L):(L=this[b]().color[C],T&&(L=T(L)),L)}}function g(b){return function(C){return Math.max(0,Math.min(b,C))}}function y(b){return Array.isArray(b)?b:[b]}function _(b,C){for(var T=0;T<C;T++)typeof b[T]!="number"&&(b[T]=0);return b}return WV=f,WV}var Nit=Fit();const g8t=Dn(Nit);var $V={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/var Cve;function Uit(){return Cve||(Cve=1,function(t){(function(){var e={}.hasOwnProperty;function r(){for(var u="",f=0;f<arguments.length;f++){var h=arguments[f];h&&(u=o(u,n(h)))}return u}function n(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return r.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var f="";for(var h in u)e.call(u,h)&&u[h]&&(f=o(f,h));return f}function o(u,f){return f?u?u+" "+f:u+f:u}t.exports?(r.default=r,t.exports=r):window.classNames=r})()}($V)),$V.exports}function eX(t,e,r,n){var o=this,u=Ae.useRef(null),f=Ae.useRef(0),h=Ae.useRef(0),A=Ae.useRef(null),p=Ae.useRef([]),g=Ae.useRef(),y=Ae.useRef(),_=Ae.useRef(t),b=Ae.useRef(!0);_.current=t;var C=typeof window<"u",T=!e&&e!==0&&C;if(typeof t!="function")throw new TypeError("Expected a function");e=+e||0;var B=!!(r=r||{}).leading,L=!("trailing"in r)||!!r.trailing,P="maxWait"in r,I="debounceOnServer"in r&&!!r.debounceOnServer,O=P?Math.max(+r.maxWait||0,e):null;Ae.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]);var U=Ae.useMemo(function(){var N=function(Y){var te=p.current,K=g.current;return p.current=g.current=null,f.current=Y,h.current=h.current||Y,y.current=_.current.apply(K,te)},H=function(Y,te){T&&cancelAnimationFrame(A.current),A.current=T?requestAnimationFrame(Y):setTimeout(Y,te)},z=function(Y){if(!b.current)return!1;var te=Y-u.current;return!u.current||te>=e||te<0||P&&Y-f.current>=O},G=function(Y){return A.current=null,L&&p.current?N(Y):(p.current=g.current=null,y.current)},j=function Y(){var te=Date.now();if(B&&h.current===f.current&&q(),z(te))return G(te);if(b.current){var K=e-(te-u.current),ce=P?Math.min(K,O-(te-f.current)):K;H(Y,ce)}},q=function(){n&&n({})},X=function(){if(C||I){var Y=Date.now(),te=z(Y);if(p.current=[].slice.call(arguments),g.current=o,u.current=Y,te){if(!A.current&&b.current)return f.current=u.current,H(j,e),B?N(u.current):y.current;if(P)return H(j,e),N(u.current)}return A.current||H(j,e),y.current}};return X.cancel=function(){var Y=A.current;Y&&(T?cancelAnimationFrame(A.current):clearTimeout(A.current)),f.current=0,p.current=u.current=g.current=A.current=null,Y&&n&&n({})},X.isPending=function(){return!!A.current},X.flush=function(){return A.current?G(Date.now()):y.current},X},[B,P,e,O,L,T,C,I,n]);return U}function Hit(t,e){return t===e}function Qit(t,e,r){var n=r&&r.equalityFn||Hit,o=Ae.useRef(t),u=Ae.useState({})[1],f=eX(Ae.useCallback(function(A){o.current=A,u({})},[u]),e,r,u),h=Ae.useRef(t);return n(h.current,t)||(f(t),h.current=t),[o.current,f]}function Vit(t,e,r){var n=r===void 0?{}:r,o=n.leading,u=n.trailing;return eX(t,e,{maxWait:e,leading:o===void 0||o,trailing:u===void 0||u})}const zit=Object.freeze(Object.defineProperty({__proto__:null,useDebounce:Qit,useDebouncedCallback:eX,useThrottledCallback:Vit},Symbol.toStringTag,{value:"Module"})),m8t=Q2(zit);var Git=Lit();const y8t=Dn(Git);var jit=vf();const w8t=Dn(jit);var qit=Uit();const b8t=Dn(qit);function Ea(t){"@babel/helpers - typeof";return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ea(t)}function Wit(t,e){if(Ea(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Ea(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ZBe(t){var e=Wit(t,"string");return Ea(e)=="symbol"?e:e+""}function sa(t,e,r){return(e=ZBe(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tve(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ti(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Tve(Object(r),!0).forEach(function(n){sa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tve(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function $it(t){if(Array.isArray(t))return t}function Kit(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,o,u,f,h=[],A=!0,p=!1;try{if(u=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;A=!1}else for(;!(A=(n=u.call(r)).done)&&(h.push(n.value),h.length!==e);A=!0);}catch(g){p=!0,o=g}finally{try{if(!A&&r.return!=null&&(f=r.return(),Object(f)!==f))return}finally{if(p)throw o}}return h}}function EW(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function JBe(t,e){if(t){if(typeof t=="string")return EW(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?EW(t,e):void 0}}function Yit(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Th(t,e){return $it(t)||Kit(t,e)||JBe(t,e)||Yit()}function Ig(t,e){if(t==null)return{};var r,n,o=V2(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(n=0;n<u.length;n++)r=u[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Xit=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Zit(t){var e=t.defaultInputValue,r=e===void 0?"":e,n=t.defaultMenuIsOpen,o=n===void 0?!1:n,u=t.defaultValue,f=u===void 0?null:u,h=t.inputValue,A=t.menuIsOpen,p=t.onChange,g=t.onInputChange,y=t.onMenuClose,_=t.onMenuOpen,b=t.value,C=Ig(t,Xit),T=Ae.useState(h!==void 0?h:r),B=Th(T,2),L=B[0],P=B[1],I=Ae.useState(A!==void 0?A:o),O=Th(I,2),U=O[0],N=O[1],H=Ae.useState(b!==void 0?b:f),z=Th(H,2),G=z[0],j=z[1],q=Ae.useCallback(function(le,pe){typeof p=="function"&&p(le,pe),j(le)},[p]),X=Ae.useCallback(function(le,pe){var ie;typeof g=="function"&&(ie=g(le,pe)),P(ie!==void 0?ie:le)},[g]),Y=Ae.useCallback(function(){typeof _=="function"&&_(),N(!0)},[_]),te=Ae.useCallback(function(){typeof y=="function"&&y(),N(!1)},[y]),K=h!==void 0?h:L,ce=A!==void 0?A:U,ae=b!==void 0?b:G;return ti(ti({},C),{},{inputValue:K,menuIsOpen:ce,onChange:q,onInputChange:X,onMenuClose:te,onMenuOpen:Y,value:ae})}function KS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Eve(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ZBe(n.key),n)}}function YS(t,e,r){return e&&Eve(t.prototype,e),r&&Eve(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function NR(t,e){return NR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},NR(t,e)}function kO(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&NR(t,e)}function q1(t){return q1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},q1(t)}function eIe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eIe=function(){return!!t})()}function Vi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function FO(t,e){if(e&&(Ea(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vi(t)}function Jit(t){var e=eIe();return function(){var r,n=q1(t);if(e){var o=q1(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return FO(this,r)}}function eat(t){if(Array.isArray(t))return EW(t)}function tat(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function rat(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NO(t){return eat(t)||tat(t)||JBe(t)||rat()}function nat(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}const tIe=["top","right","bottom","left"],Bve=["start","end"],Ive=tIe.reduce((t,e)=>t.concat(e,e+"-"+Bve[0],e+"-"+Bve[1]),[]),Fd=Math.min,ou=Math.max,s2=Math.round,H_=Math.floor,Zv=t=>({x:t,y:t}),iat={left:"right",right:"left",bottom:"top",top:"bottom"},aat={start:"end",end:"start"};function BW(t,e,r){return ou(t,Fd(e,r))}function Nd(t,e){return typeof t=="function"?t(e):t}function Lh(t){return t.split("-")[0]}function UA(t){return t.split("-")[1]}function tX(t){return t==="x"?"y":"x"}function rX(t){return t==="y"?"height":"width"}function OA(t){return["top","bottom"].includes(Lh(t))?"y":"x"}function nX(t){return tX(OA(t))}function rIe(t,e,r){r===void 0&&(r=!1);const n=UA(t),o=nX(t),u=rX(o);let f=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[u]>e.floating[u]&&(f=HR(f)),[f,HR(f)]}function oat(t){const e=HR(t);return[UR(t),e,UR(e)]}function UR(t){return t.replace(/start|end/g,e=>aat[e])}function sat(t,e,r){const n=["left","right"],o=["right","left"],u=["top","bottom"],f=["bottom","top"];switch(t){case"top":case"bottom":return r?e?o:n:e?n:o;case"left":case"right":return e?u:f;default:return[]}}function lat(t,e,r,n){const o=UA(t);let u=sat(Lh(t),r==="start",n);return o&&(u=u.map(f=>f+"-"+o),e&&(u=u.concat(u.map(UR)))),u}function HR(t){return t.replace(/left|right|bottom|top/g,e=>iat[e])}function uat(t){return{top:0,right:0,bottom:0,left:0,...t}}function iX(t){return typeof t!="number"?uat(t):{top:t,right:t,bottom:t,left:t}}function _S(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function Lve(t,e,r){let{reference:n,floating:o}=t;const u=OA(e),f=nX(e),h=rX(f),A=Lh(e),p=u==="y",g=n.x+n.width/2-o.width/2,y=n.y+n.height/2-o.height/2,_=n[h]/2-o[h]/2;let b;switch(A){case"top":b={x:g,y:n.y-o.height};break;case"bottom":b={x:g,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y};break;case"left":b={x:n.x-o.width,y};break;default:b={x:n.x,y:n.y}}switch(UA(e)){case"start":b[f]-=_*(r&&p?-1:1);break;case"end":b[f]+=_*(r&&p?-1:1);break}return b}const cat=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:u=[],platform:f}=r,h=u.filter(Boolean),A=await(f.isRTL==null?void 0:f.isRTL(e));let p=await f.getElementRects({reference:t,floating:e,strategy:o}),{x:g,y}=Lve(p,n,A),_=n,b={},C=0;for(let T=0;T<h.length;T++){const{name:B,fn:L}=h[T],{x:P,y:I,data:O,reset:U}=await L({x:g,y,initialPlacement:n,placement:_,strategy:o,middlewareData:b,rects:p,platform:f,elements:{reference:t,floating:e}});g=P??g,y=I??y,b={...b,[B]:{...b[B],...O}},U&&C<=50&&(C++,typeof U=="object"&&(U.placement&&(_=U.placement),U.rects&&(p=U.rects===!0?await f.getElementRects({reference:t,floating:e,strategy:o}):U.rects),{x:g,y}=Lve(p,_,A)),T=-1)}return{x:g,y,placement:_,strategy:o,middlewareData:b}};async function W1(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:u,rects:f,elements:h,strategy:A}=t,{boundary:p="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:_=!1,padding:b=0}=Nd(e,t),C=iX(b),B=h[_?y==="floating"?"reference":"floating":y],L=_S(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(B)))==null||r?B:B.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:p,rootBoundary:g,strategy:A})),P=y==="floating"?{x:n,y:o,width:f.floating.width,height:f.floating.height}:f.reference,I=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),O=await(u.isElement==null?void 0:u.isElement(I))?await(u.getScale==null?void 0:u.getScale(I))||{x:1,y:1}:{x:1,y:1},U=_S(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:P,offsetParent:I,strategy:A}):P);return{top:(L.top-U.top+C.top)/O.y,bottom:(U.bottom-L.bottom+C.bottom)/O.y,left:(L.left-U.left+C.left)/O.x,right:(U.right-L.right+C.right)/O.x}}const fat=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:u,platform:f,elements:h,middlewareData:A}=e,{element:p,padding:g=0}=Nd(t,e)||{};if(p==null)return{};const y=iX(g),_={x:r,y:n},b=nX(o),C=rX(b),T=await f.getDimensions(p),B=b==="y",L=B?"top":"left",P=B?"bottom":"right",I=B?"clientHeight":"clientWidth",O=u.reference[C]+u.reference[b]-_[b]-u.floating[C],U=_[b]-u.reference[b],N=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let H=N?N[I]:0;(!H||!await(f.isElement==null?void 0:f.isElement(N)))&&(H=h.floating[I]||u.floating[C]);const z=O/2-U/2,G=H/2-T[C]/2-1,j=Fd(y[L],G),q=Fd(y[P],G),X=j,Y=H-T[C]-q,te=H/2-T[C]/2+z,K=BW(X,te,Y),ce=!A.arrow&&UA(o)!=null&&te!==K&&u.reference[C]/2-(te<X?j:q)-T[C]/2<0,ae=ce?te<X?te-X:te-Y:0;return{[b]:_[b]+ae,data:{[b]:K,centerOffset:te-K-ae,...ce&&{alignmentOffset:ae}},reset:ce}}});function hat(t,e,r){return(t?[...r.filter(o=>UA(o)===t),...r.filter(o=>UA(o)!==t)]:r.filter(o=>Lh(o)===o)).filter(o=>t?UA(o)===t||(e?UR(o)!==o:!1):!0)}const dat=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,o;const{rects:u,middlewareData:f,placement:h,platform:A,elements:p}=e,{crossAxis:g=!1,alignment:y,allowedPlacements:_=Ive,autoAlignment:b=!0,...C}=Nd(t,e),T=y!==void 0||_===Ive?hat(y||null,b,_):_,B=await W1(e,C),L=((r=f.autoPlacement)==null?void 0:r.index)||0,P=T[L];if(P==null)return{};const I=rIe(P,u,await(A.isRTL==null?void 0:A.isRTL(p.floating)));if(h!==P)return{reset:{placement:T[0]}};const O=[B[Lh(P)],B[I[0]],B[I[1]]],U=[...((n=f.autoPlacement)==null?void 0:n.overflows)||[],{placement:P,overflows:O}],N=T[L+1];if(N)return{data:{index:L+1,overflows:U},reset:{placement:N}};const H=U.map(j=>{const q=UA(j.placement);return[j.placement,q&&g?j.overflows.slice(0,2).reduce((X,Y)=>X+Y,0):j.overflows[0],j.overflows]}).sort((j,q)=>j[1]-q[1]),G=((o=H.filter(j=>j[2].slice(0,UA(j[0])?2:3).every(q=>q<=0))[0])==null?void 0:o[0])||H[0][0];return G!==h?{data:{index:L+1,overflows:U},reset:{placement:G}}:{}}}},Aat=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:o,middlewareData:u,rects:f,initialPlacement:h,platform:A,elements:p}=e,{mainAxis:g=!0,crossAxis:y=!0,fallbackPlacements:_,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:T=!0,...B}=Nd(t,e);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const L=Lh(o),P=OA(h),I=Lh(h)===h,O=await(A.isRTL==null?void 0:A.isRTL(p.floating)),U=_||(I||!T?[HR(h)]:oat(h)),N=C!=="none";!_&&N&&U.push(...lat(h,T,C,O));const H=[h,...U],z=await W1(e,B),G=[];let j=((n=u.flip)==null?void 0:n.overflows)||[];if(g&&G.push(z[L]),y){const te=rIe(o,f,O);G.push(z[te[0]],z[te[1]])}if(j=[...j,{placement:o,overflows:G}],!G.every(te=>te<=0)){var q,X;const te=(((q=u.flip)==null?void 0:q.index)||0)+1,K=H[te];if(K&&(!(y==="alignment"?P!==OA(K):!1)||j.every(le=>le.overflows[0]>0&&OA(le.placement)===P)))return{data:{index:te,overflows:j},reset:{placement:K}};let ce=(X=j.filter(ae=>ae.overflows[0]<=0).sort((ae,le)=>ae.overflows[1]-le.overflows[1])[0])==null?void 0:X.placement;if(!ce)switch(b){case"bestFit":{var Y;const ae=(Y=j.filter(le=>{if(N){const pe=OA(le.placement);return pe===P||pe==="y"}return!0}).map(le=>[le.placement,le.overflows.filter(pe=>pe>0).reduce((pe,ie)=>pe+ie,0)]).sort((le,pe)=>le[1]-pe[1])[0])==null?void 0:Y[0];ae&&(ce=ae);break}case"initialPlacement":ce=h;break}if(o!==ce)return{reset:{placement:ce}}}return{}}}};function Mve(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Dve(t){return tIe.some(e=>t[e]>=0)}const vat=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...o}=Nd(t,e);switch(n){case"referenceHidden":{const u=await W1(e,{...o,elementContext:"reference"}),f=Mve(u,r.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:Dve(f)}}}case"escaped":{const u=await W1(e,{...o,altBoundary:!0}),f=Mve(u,r.floating);return{data:{escapedOffsets:f,escaped:Dve(f)}}}default:return{}}}}};function nIe(t){const e=Fd(...t.map(u=>u.left)),r=Fd(...t.map(u=>u.top)),n=ou(...t.map(u=>u.right)),o=ou(...t.map(u=>u.bottom));return{x:e,y:r,width:n-e,height:o-r}}function pat(t){const e=t.slice().sort((o,u)=>o.y-u.y),r=[];let n=null;for(let o=0;o<e.length;o++){const u=e[o];!n||u.y-n.y>n.height/2?r.push([u]):r[r.length-1].push(u),n=u}return r.map(o=>_S(nIe(o)))}const gat=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:r,elements:n,rects:o,platform:u,strategy:f}=e,{padding:h=2,x:A,y:p}=Nd(t,e),g=Array.from(await(u.getClientRects==null?void 0:u.getClientRects(n.reference))||[]),y=pat(g),_=_S(nIe(g)),b=iX(h);function C(){if(y.length===2&&y[0].left>y[1].right&&A!=null&&p!=null)return y.find(B=>A>B.left-b.left&&A<B.right+b.right&&p>B.top-b.top&&p<B.bottom+b.bottom)||_;if(y.length>=2){if(OA(r)==="y"){const j=y[0],q=y[y.length-1],X=Lh(r)==="top",Y=j.top,te=q.bottom,K=X?j.left:q.left,ce=X?j.right:q.right,ae=ce-K,le=te-Y;return{top:Y,bottom:te,left:K,right:ce,width:ae,height:le,x:K,y:Y}}const B=Lh(r)==="left",L=ou(...y.map(j=>j.right)),P=Fd(...y.map(j=>j.left)),I=y.filter(j=>B?j.left===P:j.right===L),O=I[0].top,U=I[I.length-1].bottom,N=P,H=L,z=H-N,G=U-O;return{top:O,bottom:U,left:N,right:H,width:z,height:G,x:N,y:O}}return _}const T=await u.getElementRects({reference:{getBoundingClientRect:C},floating:n.floating,strategy:f});return o.reference.x!==T.reference.x||o.reference.y!==T.reference.y||o.reference.width!==T.reference.width||o.reference.height!==T.reference.height?{reset:{rects:T}}:{}}}};async function mat(t,e){const{placement:r,platform:n,elements:o}=t,u=await(n.isRTL==null?void 0:n.isRTL(o.floating)),f=Lh(r),h=UA(r),A=OA(r)==="y",p=["left","top"].includes(f)?-1:1,g=u&&A?-1:1,y=Nd(e,t);let{mainAxis:_,crossAxis:b,alignmentAxis:C}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return h&&typeof C=="number"&&(b=h==="end"?C*-1:C),A?{x:b*g,y:_*p}:{x:_*p,y:b*g}}const yat=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:u,placement:f,middlewareData:h}=e,A=await mat(e,t);return f===((r=h.offset)==null?void 0:r.placement)&&(n=h.arrow)!=null&&n.alignmentOffset?{}:{x:o+A.x,y:u+A.y,data:{...A,placement:f}}}}},wat=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o}=e,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:B=>{let{x:L,y:P}=B;return{x:L,y:P}}},...A}=Nd(t,e),p={x:r,y:n},g=await W1(e,A),y=OA(Lh(o)),_=tX(y);let b=p[_],C=p[y];if(u){const B=_==="y"?"top":"left",L=_==="y"?"bottom":"right",P=b+g[B],I=b-g[L];b=BW(P,b,I)}if(f){const B=y==="y"?"top":"left",L=y==="y"?"bottom":"right",P=C+g[B],I=C-g[L];C=BW(P,C,I)}const T=h.fn({...e,[_]:b,[y]:C});return{...T,data:{x:T.x-r,y:T.y-n,enabled:{[_]:u,[y]:f}}}}}},bat=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:o,rects:u,middlewareData:f}=e,{offset:h=0,mainAxis:A=!0,crossAxis:p=!0}=Nd(t,e),g={x:r,y:n},y=OA(o),_=tX(y);let b=g[_],C=g[y];const T=Nd(h,e),B=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(A){const I=_==="y"?"height":"width",O=u.reference[_]-u.floating[I]+B.mainAxis,U=u.reference[_]+u.reference[I]-B.mainAxis;b<O?b=O:b>U&&(b=U)}if(p){var L,P;const I=_==="y"?"width":"height",O=["top","left"].includes(Lh(o)),U=u.reference[y]-u.floating[I]+(O&&((L=f.offset)==null?void 0:L[y])||0)+(O?0:B.crossAxis),N=u.reference[y]+u.reference[I]+(O?0:((P=f.offset)==null?void 0:P[y])||0)-(O?B.crossAxis:0);C<U?C=U:C>N&&(C=N)}return{[_]:b,[y]:C}}}},_at=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:o,rects:u,platform:f,elements:h}=e,{apply:A=()=>{},...p}=Nd(t,e),g=await W1(e,p),y=Lh(o),_=UA(o),b=OA(o)==="y",{width:C,height:T}=u.floating;let B,L;y==="top"||y==="bottom"?(B=y,L=_===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(L=y,B=_==="end"?"top":"bottom");const P=T-g.top-g.bottom,I=C-g.left-g.right,O=Fd(T-g[B],P),U=Fd(C-g[L],I),N=!e.middlewareData.shift;let H=O,z=U;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(z=I),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(H=P),N&&!_){const j=ou(g.left,0),q=ou(g.right,0),X=ou(g.top,0),Y=ou(g.bottom,0);b?z=C-2*(j!==0||q!==0?j+q:ou(g.left,g.right)):H=T-2*(X!==0||Y!==0?X+Y:ou(g.top,g.bottom))}await A({...e,availableWidth:z,availableHeight:H});const G=await f.getDimensions(h.floating);return C!==G.width||T!==G.height?{reset:{rects:!0}}:{}}}};function UO(){return typeof window<"u"}function Ey(t){return iIe(t)?(t.nodeName||"").toLowerCase():"#document"}function cf(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function op(t){var e;return(e=(iIe(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function iIe(t){return UO()?t instanceof Node||t instanceof cf(t).Node:!1}function Oo(t){return UO()?t instanceof Element||t instanceof cf(t).Element:!1}function Fl(t){return UO()?t instanceof HTMLElement||t instanceof cf(t).HTMLElement:!1}function IW(t){return!UO()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof cf(t).ShadowRoot}function nB(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=Mh(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(o)}function Sat(t){return["table","td","th"].includes(Ey(t))}function HO(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function aX(t){const e=QO(),r=Oo(t)?Mh(t):t;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function xat(t){let e=mg(t);for(;Fl(e)&&!yy(e);){if(aX(e))return e;if(HO(e))return null;e=mg(e)}return null}function QO(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function yy(t){return["html","body","#document"].includes(Ey(t))}function Mh(t){return cf(t).getComputedStyle(t)}function VO(t){return Oo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function mg(t){if(Ey(t)==="html")return t;const e=t.assignedSlot||t.parentNode||IW(t)&&t.host||op(t);return IW(e)?e.host:e}function aIe(t){const e=mg(t);return yy(e)?t.ownerDocument?t.ownerDocument.body:t.body:Fl(e)&&nB(e)?e:aIe(e)}function fg(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=aIe(t),u=o===((n=t.ownerDocument)==null?void 0:n.body),f=cf(o);if(u){const h=LW(f);return e.concat(f,f.visualViewport||[],nB(o)?o:[],h&&r?fg(h):[])}return e.concat(o,fg(o,[],r))}function LW(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function oIe(t){const e=Mh(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=Fl(t),u=o?t.offsetWidth:r,f=o?t.offsetHeight:n,h=s2(r)!==u||s2(n)!==f;return h&&(r=u,n=f),{width:r,height:n,$:h}}function oX(t){return Oo(t)?t:t.contextElement}function tS(t){const e=oX(t);if(!Fl(e))return Zv(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:u}=oIe(e);let f=(u?s2(r.width):r.width)/n,h=(u?s2(r.height):r.height)/o;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const Cat=Zv(0);function sIe(t){const e=cf(t);return!QO()||!e.visualViewport?Cat:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Tat(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==cf(t)?!1:e}function $1(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),u=oX(t);let f=Zv(1);e&&(n?Oo(n)&&(f=tS(n)):f=tS(t));const h=Tat(u,r,n)?sIe(u):Zv(0);let A=(o.left+h.x)/f.x,p=(o.top+h.y)/f.y,g=o.width/f.x,y=o.height/f.y;if(u){const _=cf(u),b=n&&Oo(n)?cf(n):n;let C=_,T=LW(C);for(;T&&n&&b!==C;){const B=tS(T),L=T.getBoundingClientRect(),P=Mh(T),I=L.left+(T.clientLeft+parseFloat(P.paddingLeft))*B.x,O=L.top+(T.clientTop+parseFloat(P.paddingTop))*B.y;A*=B.x,p*=B.y,g*=B.x,y*=B.y,A+=I,p+=O,C=cf(T),T=LW(C)}}return _S({width:g,height:y,x:A,y:p})}function sX(t,e){const r=VO(t).scrollLeft;return e?e.left+r:$1(op(t)).left+r}function lIe(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-(r?0:sX(t,n)),u=n.top+e.scrollTop;return{x:o,y:u}}function Eat(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const u=o==="fixed",f=op(n),h=e?HO(e.floating):!1;if(n===f||h&&u)return r;let A={scrollLeft:0,scrollTop:0},p=Zv(1);const g=Zv(0),y=Fl(n);if((y||!y&&!u)&&((Ey(n)!=="body"||nB(f))&&(A=VO(n)),Fl(n))){const b=$1(n);p=tS(n),g.x=b.x+n.clientLeft,g.y=b.y+n.clientTop}const _=f&&!y&&!u?lIe(f,A,!0):Zv(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-A.scrollLeft*p.x+g.x+_.x,y:r.y*p.y-A.scrollTop*p.y+g.y+_.y}}function Bat(t){return Array.from(t.getClientRects())}function Iat(t){const e=op(t),r=VO(t),n=t.ownerDocument.body,o=ou(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),u=ou(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let f=-r.scrollLeft+sX(t);const h=-r.scrollTop;return Mh(n).direction==="rtl"&&(f+=ou(e.clientWidth,n.clientWidth)-o),{width:o,height:u,x:f,y:h}}function Lat(t,e){const r=cf(t),n=op(t),o=r.visualViewport;let u=n.clientWidth,f=n.clientHeight,h=0,A=0;if(o){u=o.width,f=o.height;const p=QO();(!p||p&&e==="fixed")&&(h=o.offsetLeft,A=o.offsetTop)}return{width:u,height:f,x:h,y:A}}function Mat(t,e){const r=$1(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,u=Fl(t)?tS(t):Zv(1),f=t.clientWidth*u.x,h=t.clientHeight*u.y,A=o*u.x,p=n*u.y;return{width:f,height:h,x:A,y:p}}function Rve(t,e,r){let n;if(e==="viewport")n=Lat(t,r);else if(e==="document")n=Iat(op(t));else if(Oo(e))n=Mat(e,r);else{const o=sIe(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return _S(n)}function uIe(t,e){const r=mg(t);return r===e||!Oo(r)||yy(r)?!1:Mh(r).position==="fixed"||uIe(r,e)}function Dat(t,e){const r=e.get(t);if(r)return r;let n=fg(t,[],!1).filter(h=>Oo(h)&&Ey(h)!=="body"),o=null;const u=Mh(t).position==="fixed";let f=u?mg(t):t;for(;Oo(f)&&!yy(f);){const h=Mh(f),A=aX(f);!A&&h.position==="fixed"&&(o=null),(u?!A&&!o:!A&&h.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||nB(f)&&!A&&uIe(t,f))?n=n.filter(g=>g!==f):o=h,f=mg(f)}return e.set(t,n),n}function Rat(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const f=[...r==="clippingAncestors"?HO(e)?[]:Dat(e,this._c):[].concat(r),n],h=f[0],A=f.reduce((p,g)=>{const y=Rve(e,g,o);return p.top=ou(y.top,p.top),p.right=Fd(y.right,p.right),p.bottom=Fd(y.bottom,p.bottom),p.left=ou(y.left,p.left),p},Rve(e,h,o));return{width:A.right-A.left,height:A.bottom-A.top,x:A.left,y:A.top}}function Pat(t){const{width:e,height:r}=oIe(t);return{width:e,height:r}}function Oat(t,e,r){const n=Fl(e),o=op(e),u=r==="fixed",f=$1(t,!0,u,e);let h={scrollLeft:0,scrollTop:0};const A=Zv(0);function p(){A.x=sX(o)}if(n||!n&&!u)if((Ey(e)!=="body"||nB(o))&&(h=VO(e)),n){const b=$1(e,!0,u,e);A.x=b.x+e.clientLeft,A.y=b.y+e.clientTop}else o&&p();u&&!n&&o&&p();const g=o&&!n&&!u?lIe(o,h):Zv(0),y=f.left+h.scrollLeft-A.x-g.x,_=f.top+h.scrollTop-A.y-g.y;return{x:y,y:_,width:f.width,height:f.height}}function KV(t){return Mh(t).position==="static"}function Pve(t,e){if(!Fl(t)||Mh(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return op(t)===r&&(r=r.ownerDocument.body),r}function cIe(t,e){const r=cf(t);if(HO(t))return r;if(!Fl(t)){let o=mg(t);for(;o&&!yy(o);){if(Oo(o)&&!KV(o))return o;o=mg(o)}return r}let n=Pve(t,e);for(;n&&Sat(n)&&KV(n);)n=Pve(n,e);return n&&yy(n)&&KV(n)&&!aX(n)?r:n||xat(t)||r}const kat=async function(t){const e=this.getOffsetParent||cIe,r=this.getDimensions,n=await r(t.floating);return{reference:Oat(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Fat(t){return Mh(t).direction==="rtl"}const fIe={convertOffsetParentRelativeRectToViewportRelativeRect:Eat,getDocumentElement:op,getClippingRect:Rat,getOffsetParent:cIe,getElementRects:kat,getClientRects:Bat,getDimensions:Pat,getScale:tS,isElement:Oo,isRTL:Fat};function hIe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Nat(t,e){let r=null,n;const o=op(t);function u(){var h;clearTimeout(n),(h=r)==null||h.disconnect(),r=null}function f(h,A){h===void 0&&(h=!1),A===void 0&&(A=1),u();const p=t.getBoundingClientRect(),{left:g,top:y,width:_,height:b}=p;if(h||e(),!_||!b)return;const C=H_(y),T=H_(o.clientWidth-(g+_)),B=H_(o.clientHeight-(y+b)),L=H_(g),I={rootMargin:-C+"px "+-T+"px "+-B+"px "+-L+"px",threshold:ou(0,Fd(1,A))||1};let O=!0;function U(N){const H=N[0].intersectionRatio;if(H!==A){if(!O)return f();H?f(!1,H):n=setTimeout(()=>{f(!1,1e-7)},1e3)}H===1&&!hIe(p,t.getBoundingClientRect())&&f(),O=!1}try{r=new IntersectionObserver(U,{...I,root:o.ownerDocument})}catch{r=new IntersectionObserver(U,I)}r.observe(t)}return f(!0),u}function dIe(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:A=!1}=n,p=oX(t),g=o||u?[...p?fg(p):[],...fg(e)]:[];g.forEach(L=>{o&&L.addEventListener("scroll",r,{passive:!0}),u&&L.addEventListener("resize",r)});const y=p&&h?Nat(p,r):null;let _=-1,b=null;f&&(b=new ResizeObserver(L=>{let[P]=L;P&&P.target===p&&b&&(b.unobserve(e),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var I;(I=b)==null||I.observe(e)})),r()}),p&&!A&&b.observe(p),b.observe(e));let C,T=A?$1(t):null;A&&B();function B(){const L=$1(t);T&&!hIe(T,L)&&r(),T=L,C=requestAnimationFrame(B)}return r(),()=>{var L;g.forEach(P=>{o&&P.removeEventListener("scroll",r),u&&P.removeEventListener("resize",r)}),y?.(),(L=b)==null||L.disconnect(),b=null,A&&cancelAnimationFrame(C)}}const b5=W1,Uat=yat,Hat=dat,Qat=wat,Vat=Aat,zat=_at,Gat=vat,Ove=fat,jat=gat,qat=bat,AIe=(t,e,r)=>{const n=new Map,o={platform:fIe,...r},u={...o.platform,_c:n};return cat(t,e,{...o,platform:u})};var MW=Ae.useLayoutEffect,Wat=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],QR=function(){};function $at(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function Kat(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var u=[].concat(n);if(e&&t)for(var f in e)e.hasOwnProperty(f)&&e[f]&&u.push("".concat($at(t,f)));return u.filter(function(h){return h}).map(function(h){return String(h).trim()}).join(" ")}var kve=function(e){return iot(e)?e.filter(Boolean):Ea(e)==="object"&&e!==null?[e]:[]},vIe=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var r=Ig(e,Wat);return ti({},r)},Gs=function(e,r,n){var o=e.cx,u=e.getStyles,f=e.getClassNames,h=e.className;return{css:u(r,e),className:o(n??{},f(r,e),h)}};function zO(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function Yat(t){return zO(t)?window.innerHeight:t.clientHeight}function pIe(t){return zO(t)?window.pageYOffset:t.scrollTop}function VR(t,e){if(zO(t)){window.scrollTo(0,e);return}t.scrollTop=e}function Xat(t){var e=getComputedStyle(t),r=e.position==="absolute",n=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var o=t;o=o.parentElement;)if(e=getComputedStyle(o),!(r&&e.position==="static")&&n.test(e.overflow+e.overflowY+e.overflowX))return o;return document.documentElement}function Zat(t,e,r,n){return r*((t=t/n-1)*t*t+1)+e}function yM(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:QR,o=pIe(t),u=e-o,f=10,h=0;function A(){h+=f;var p=Zat(h,o,u,r);VR(t,p),h<r?window.requestAnimationFrame(A):n(t)}A()}function Fve(t,e){var r=t.getBoundingClientRect(),n=e.getBoundingClientRect(),o=e.offsetHeight/3;n.bottom+o>r.bottom?VR(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+o,t.scrollHeight)):n.top-o<r.top&&VR(t,Math.max(e.offsetTop-o,0))}function Jat(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function Nve(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function eot(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var gIe=!1,tot={get passive(){return gIe=!0}},wM=typeof window<"u"?window:{};wM.addEventListener&&wM.removeEventListener&&(wM.addEventListener("p",QR,tot),wM.removeEventListener("p",QR,!1));var rot=gIe;function not(t){return t!=null}function iot(t){return Array.isArray(t)}function bM(t,e,r){return t?e:r}var aot=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var u=Object.entries(e).filter(function(f){var h=Th(f,1),A=h[0];return!n.includes(A)});return u.reduce(function(f,h){var A=Th(h,2),p=A[0],g=A[1];return f[p]=g,f},{})},oot=["children","innerProps"],sot=["children","innerProps"];function lot(t){var e=t.maxHeight,r=t.menuEl,n=t.minHeight,o=t.placement,u=t.shouldScroll,f=t.isFixedPosition,h=t.controlHeight,A=Xat(r),p={placement:"bottom",maxHeight:e};if(!r||!r.offsetParent)return p;var g=A.getBoundingClientRect(),y=g.height,_=r.getBoundingClientRect(),b=_.bottom,C=_.height,T=_.top,B=r.offsetParent.getBoundingClientRect(),L=B.top,P=f?window.innerHeight:Yat(A),I=pIe(A),O=parseInt(getComputedStyle(r).marginBottom,10),U=parseInt(getComputedStyle(r).marginTop,10),N=L-U,H=P-T,z=N+I,G=y-I-T,j=b-P+I+O,q=I+T-U,X=160;switch(o){case"auto":case"bottom":if(H>=C)return{placement:"bottom",maxHeight:e};if(G>=C&&!f)return u&&yM(A,j,X),{placement:"bottom",maxHeight:e};if(!f&&G>=n||f&&H>=n){u&&yM(A,j,X);var Y=f?H-O:G-O;return{placement:"bottom",maxHeight:Y}}if(o==="auto"||f){var te=e,K=f?N:z;return K>=n&&(te=Math.min(K-O-h,e)),{placement:"top",maxHeight:te}}if(o==="bottom")return u&&VR(A,j),{placement:"bottom",maxHeight:e};break;case"top":if(N>=C)return{placement:"top",maxHeight:e};if(z>=C&&!f)return u&&yM(A,q,X),{placement:"top",maxHeight:e};if(!f&&z>=n||f&&N>=n){var ce=e;return(!f&&z>=n||f&&N>=n)&&(ce=f?N-U:z-U),u&&yM(A,q,X),{placement:"top",maxHeight:ce}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return p}function uot(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var mIe=function(e){return e==="auto"?"bottom":e},cot=function(e,r){var n,o=e.placement,u=e.theme,f=u.borderRadius,h=u.spacing,A=u.colors;return ti((n={label:"menu"},sa(n,uot(o),"100%"),sa(n,"position","absolute"),sa(n,"width","100%"),sa(n,"zIndex",1),n),r?{}:{backgroundColor:A.neutral0,borderRadius:f,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:h.menuGutter,marginTop:h.menuGutter})},yIe=Ae.createContext(null),fot=function(e){var r=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,u=e.menuPlacement,f=e.menuPosition,h=e.menuShouldScrollIntoView,A=e.theme,p=Ae.useContext(yIe)||{},g=p.setPortalPlacement,y=Ae.useRef(null),_=Ae.useState(o),b=Th(_,2),C=b[0],T=b[1],B=Ae.useState(null),L=Th(B,2),P=L[0],I=L[1],O=A.spacing.controlHeight;return MW(function(){var U=y.current;if(U){var N=f==="fixed",H=h&&!N,z=lot({maxHeight:o,menuEl:U,minHeight:n,placement:u,shouldScroll:H,isFixedPosition:N,controlHeight:O});T(z.maxHeight),I(z.placement),g?.(z.placement)}},[o,u,f,h,n,g,O]),r({ref:y,placerProps:ti(ti({},e),{},{placement:P||mIe(u),maxHeight:C})})},hot=function(e){var r=e.children,n=e.innerRef,o=e.innerProps;return Gn("div",On({},Gs(e,"menu",{menu:!0}),{ref:n},o),r)},dot=hot,Aot=function(e,r){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return ti({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},r?{}:{paddingBottom:o,paddingTop:o})},vot=function(e){var r=e.children,n=e.innerProps,o=e.innerRef,u=e.isMulti;return Gn("div",On({},Gs(e,"menuList",{"menu-list":!0,"menu-list--is-multi":u}),{ref:o},n),r)},wIe=function(e,r){var n=e.theme,o=n.spacing.baseUnit,u=n.colors;return ti({textAlign:"center"},r?{}:{color:u.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},pot=wIe,got=wIe,mot=function(e){var r=e.children,n=r===void 0?"No options":r,o=e.innerProps,u=Ig(e,oot);return Gn("div",On({},Gs(ti(ti({},u),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},yot=function(e){var r=e.children,n=r===void 0?"Loading...":r,o=e.innerProps,u=Ig(e,sot);return Gn("div",On({},Gs(ti(ti({},u),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},wot=function(e){var r=e.rect,n=e.offset,o=e.position;return{left:r.left,position:o,top:n,width:r.width,zIndex:1}},bot=function(e){var r=e.appendTo,n=e.children,o=e.controlElement,u=e.innerProps,f=e.menuPlacement,h=e.menuPosition,A=Ae.useRef(null),p=Ae.useRef(null),g=Ae.useState(mIe(f)),y=Th(g,2),_=y[0],b=y[1],C=Ae.useMemo(function(){return{setPortalPlacement:b}},[]),T=Ae.useState(null),B=Th(T,2),L=B[0],P=B[1],I=Ae.useCallback(function(){if(o){var H=Jat(o),z=h==="fixed"?0:window.pageYOffset,G=H[_]+z;(G!==L?.offset||H.left!==L?.rect.left||H.width!==L?.rect.width)&&P({offset:G,rect:H})}},[o,h,_,L?.offset,L?.rect.left,L?.rect.width]);MW(function(){I()},[I]);var O=Ae.useCallback(function(){typeof p.current=="function"&&(p.current(),p.current=null),o&&A.current&&(p.current=dIe(o,A.current,I,{elementResize:"ResizeObserver"in window}))},[o,I]);MW(function(){O()},[O]);var U=Ae.useCallback(function(H){A.current=H,O()},[O]);if(!r&&h!=="fixed"||!L)return null;var N=Gn("div",On({ref:U},Gs(ti(ti({},e),{},{offset:L.offset,position:h,rect:L.rect}),"menuPortal",{"menu-portal":!0}),u),n);return Gn(yIe.Provider,{value:C},r?uu.createPortal(N,r):N)},_ot=function(e){var r=e.isDisabled,n=e.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:r?"none":void 0,position:"relative"}},Sot=function(e){var r=e.children,n=e.innerProps,o=e.isDisabled,u=e.isRtl;return Gn("div",On({},Gs(e,"container",{"--is-disabled":o,"--is-rtl":u}),n),r)},xot=function(e,r){var n=e.theme.spacing,o=e.isMulti,u=e.hasValue,f=e.selectProps.controlShouldRenderValue;return ti({alignItems:"center",display:o&&u&&f?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},r?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},Cot=function(e){var r=e.children,n=e.innerProps,o=e.isMulti,u=e.hasValue;return Gn("div",On({},Gs(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":u}),n),r)},Tot=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Eot=function(e){var r=e.children,n=e.innerProps;return Gn("div",On({},Gs(e,"indicatorsContainer",{indicators:!0}),n),r)},Uve,Bot=["size"],Iot=["innerProps","isRtl","size"],Lot={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},bIe=function(e){var r=e.size,n=Ig(e,Bot);return Gn("svg",On({height:r,width:r,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Lot},n))},lX=function(e){return Gn(bIe,On({size:20},e),Gn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},_Ie=function(e){return Gn(bIe,On({size:20},e),Gn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},SIe=function(e,r){var n=e.isFocused,o=e.theme,u=o.spacing.baseUnit,f=o.colors;return ti({label:"indicatorContainer",display:"flex",transition:"color 150ms"},r?{}:{color:n?f.neutral60:f.neutral20,padding:u*2,":hover":{color:n?f.neutral80:f.neutral40}})},Mot=SIe,Dot=function(e){var r=e.children,n=e.innerProps;return Gn("div",On({},Gs(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),r||Gn(_Ie,null))},Rot=SIe,Pot=function(e){var r=e.children,n=e.innerProps;return Gn("div",On({},Gs(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),r||Gn(lX,null))},Oot=function(e,r){var n=e.isDisabled,o=e.theme,u=o.spacing.baseUnit,f=o.colors;return ti({label:"indicatorSeparator",alignSelf:"stretch",width:1},r?{}:{backgroundColor:n?f.neutral10:f.neutral20,marginBottom:u*2,marginTop:u*2})},kot=function(e){var r=e.innerProps;return Gn("span",On({},r,Gs(e,"indicatorSeparator",{"indicator-separator":!0})))},Fot=vBe(Uve||(Uve=nat([`
0%, 80%, 100% { opacity: 0; }
40% { opacity: 1; }
`]))),Not=function(e,r){var n=e.isFocused,o=e.size,u=e.theme,f=u.colors,h=u.spacing.baseUnit;return ti({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?f.neutral60:f.neutral20,padding:h*2})},YV=function(e){var r=e.delay,n=e.offset;return Gn("span",{css:xO({animation:"".concat(Fot," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Uot=function(e){var r=e.innerProps,n=e.isRtl,o=e.size,u=o===void 0?4:o,f=Ig(e,Iot);return Gn("div",On({},Gs(ti(ti({},f),{},{innerProps:r,isRtl:n,size:u}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),Gn(YV,{delay:0,offset:n}),Gn(YV,{delay:160,offset:!0}),Gn(YV,{delay:320,offset:!n}))},Hot=function(e,r){var n=e.isDisabled,o=e.isFocused,u=e.theme,f=u.colors,h=u.borderRadius,A=u.spacing;return ti({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:A.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?f.neutral5:f.neutral0,borderColor:n?f.neutral10:o?f.primary:f.neutral20,borderRadius:h,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(f.primary):void 0,"&:hover":{borderColor:o?f.primary:f.neutral30}})},Qot=function(e){var r=e.children,n=e.isDisabled,o=e.isFocused,u=e.innerRef,f=e.innerProps,h=e.menuIsOpen;return Gn("div",On({ref:u},Gs(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":h}),f,{"aria-disabled":n||void 0}),r)},Vot=Qot,zot=["data"],Got=function(e,r){var n=e.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},jot=function(e){var r=e.children,n=e.cx,o=e.getStyles,u=e.getClassNames,f=e.Heading,h=e.headingProps,A=e.innerProps,p=e.label,g=e.theme,y=e.selectProps;return Gn("div",On({},Gs(e,"group",{group:!0}),A),Gn(f,On({},h,{selectProps:y,theme:g,getStyles:o,getClassNames:u,cx:n}),p),Gn("div",null,r))},qot=function(e,r){var n=e.theme,o=n.colors,u=n.spacing;return ti({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:u.baseUnit*3,paddingRight:u.baseUnit*3,textTransform:"uppercase"})},Wot=function(e){var r=vIe(e);r.data;var n=Ig(r,zot);return Gn("div",On({},Gs(e,"groupHeading",{"group-heading":!0}),n))},$ot=jot,Kot=["innerRef","isDisabled","isHidden","inputClassName"],Yot=function(e,r){var n=e.isDisabled,o=e.value,u=e.theme,f=u.spacing,h=u.colors;return ti(ti({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Xot),r?{}:{margin:f.baseUnit/2,paddingBottom:f.baseUnit/2,paddingTop:f.baseUnit/2,color:h.neutral80})},xIe={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Xot={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ti({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},xIe)},Zot=function(e){return ti({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},xIe)},Jot=function(e){var r=e.cx,n=e.value,o=vIe(e),u=o.innerRef,f=o.isDisabled,h=o.isHidden,A=o.inputClassName,p=Ig(o,Kot);return Gn("div",On({},Gs(e,"input",{"input-container":!0}),{"data-value":n||""}),Gn("input",On({className:r({input:!0},A),ref:u,style:Zot(h),disabled:f},p)))},est=Jot,tst=function(e,r){var n=e.theme,o=n.spacing,u=n.borderRadius,f=n.colors;return ti({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:f.neutral10,borderRadius:u/2,margin:o.baseUnit/2})},rst=function(e,r){var n=e.theme,o=n.borderRadius,u=n.colors,f=e.cropWithEllipsis;return ti({overflow:"hidden",textOverflow:f||f===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:u.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},nst=function(e,r){var n=e.theme,o=n.spacing,u=n.borderRadius,f=n.colors,h=e.isFocused;return ti({alignItems:"center",display:"flex"},r?{}:{borderRadius:u/2,backgroundColor:h?f.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:f.dangerLight,color:f.danger}})},CIe=function(e){var r=e.children,n=e.innerProps;return Gn("div",n,r)},ist=CIe,ast=CIe;function ost(t){var e=t.children,r=t.innerProps;return Gn("div",On({role:"button"},r),e||Gn(lX,{size:14}))}var sst=function(e){var r=e.children,n=e.components,o=e.data,u=e.innerProps,f=e.isDisabled,h=e.removeProps,A=e.selectProps,p=n.Container,g=n.Label,y=n.Remove;return Gn(p,{data:o,innerProps:ti(ti({},Gs(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":f})),u),selectProps:A},Gn(g,{data:o,innerProps:ti({},Gs(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:A},r),Gn(y,{data:o,innerProps:ti(ti({},Gs(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},h),selectProps:A}))},lst=sst,ust=function(e,r){var n=e.isDisabled,o=e.isFocused,u=e.isSelected,f=e.theme,h=f.spacing,A=f.colors;return ti({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:u?A.primary:o?A.primary25:"transparent",color:n?A.neutral20:u?A.neutral0:"inherit",padding:"".concat(h.baseUnit*2,"px ").concat(h.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:u?A.primary:A.primary50}})},cst=function(e){var r=e.children,n=e.isDisabled,o=e.isFocused,u=e.isSelected,f=e.innerRef,h=e.innerProps;return Gn("div",On({},Gs(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":u}),{ref:f,"aria-disabled":n},h),r)},fst=cst,hst=function(e,r){var n=e.theme,o=n.spacing,u=n.colors;return ti({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:u.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},dst=function(e){var r=e.children,n=e.innerProps;return Gn("div",On({},Gs(e,"placeholder",{placeholder:!0}),n),r)},Ast=dst,vst=function(e,r){var n=e.isDisabled,o=e.theme,u=o.spacing,f=o.colors;return ti({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?f.neutral40:f.neutral80,marginLeft:u.baseUnit/2,marginRight:u.baseUnit/2})},pst=function(e){var r=e.children,n=e.isDisabled,o=e.innerProps;return Gn("div",On({},Gs(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},gst=pst,mst={ClearIndicator:Pot,Control:Vot,DropdownIndicator:Dot,DownChevron:_Ie,CrossIcon:lX,Group:$ot,GroupHeading:Wot,IndicatorsContainer:Eot,IndicatorSeparator:kot,Input:est,LoadingIndicator:Uot,Menu:dot,MenuList:vot,MenuPortal:bot,LoadingMessage:yot,NoOptionsMessage:mot,MultiValue:lst,MultiValueContainer:ist,MultiValueLabel:ast,MultiValueRemove:ost,Option:fst,Placeholder:Ast,SelectContainer:Sot,SingleValue:gst,ValueContainer:Cot},yst=function(e){return ti(ti({},mst),e.components)},Hve=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function wst(t,e){return!!(t===e||Hve(t)&&Hve(e))}function bst(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!wst(t[r],e[r]))return!1;return!0}function _st(t,e){e===void 0&&(e=bst);var r=null;function n(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];if(r&&r.lastThis===this&&e(o,r.lastArgs))return r.lastResult;var f=t.apply(this,o);return r={lastResult:f,lastArgs:o,lastThis:this},f}return n.clear=function(){r=null},n}var Sst={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},xst=function(e){return Gn("span",On({css:Sst},e))},Qve=xst,Cst={guidance:function(e){var r=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,u=e.context,f=e.isInitialFocus;switch(u){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return f?"".concat(e["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var r=e.action,n=e.label,o=n===void 0?"":n,u=e.labels,f=e.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(u.length>1?"s":""," ").concat(u.join(","),", selected.");case"select-option":return f?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(e){var r=e.context,n=e.focused,o=e.options,u=e.label,f=u===void 0?"":u,h=e.selectValue,A=e.isDisabled,p=e.isSelected,g=e.isAppleDevice,y=function(T,B){return T&&T.length?"".concat(T.indexOf(B)+1," of ").concat(T.length):""};if(r==="value"&&h)return"value ".concat(f," focused, ").concat(y(h,n),".");if(r==="menu"&&g){var _=A?" disabled":"",b="".concat(p?" selected":"").concat(_);return"".concat(f).concat(b,", ").concat(y(o,n),".")}return""},onFilter:function(e){var r=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},Tst=function(e){var r=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,u=e.focusableOptions,f=e.isFocused,h=e.selectValue,A=e.selectProps,p=e.id,g=e.isAppleDevice,y=A.ariaLiveMessages,_=A.getOptionLabel,b=A.inputValue,C=A.isMulti,T=A.isOptionDisabled,B=A.isSearchable,L=A.menuIsOpen,P=A.options,I=A.screenReaderStatus,O=A.tabSelectsValue,U=A.isLoading,N=A["aria-label"],H=A["aria-live"],z=Ae.useMemo(function(){return ti(ti({},Cst),y||{})},[y]),G=Ae.useMemo(function(){var K="";if(r&&z.onChange){var ce=r.option,ae=r.options,le=r.removedValue,pe=r.removedValues,ie=r.value,he=function(xe){return Array.isArray(xe)?null:xe},re=le||ce||he(ie),oe=re?_(re):"",ye=ae||pe||void 0,_e=ye?ye.map(_):[],Ce=ti({isDisabled:re&&T(re,h),label:oe,labels:_e},r);K=z.onChange(Ce)}return K},[r,z,T,h,_]),j=Ae.useMemo(function(){var K="",ce=n||o,ae=!!(n&&h&&h.includes(n));if(ce&&z.onFocus){var le={focused:ce,label:_(ce),isDisabled:T(ce,h),isSelected:ae,options:u,context:ce===n?"menu":"value",selectValue:h,isAppleDevice:g};K=z.onFocus(le)}return K},[n,o,_,T,z,u,h,g]),q=Ae.useMemo(function(){var K="";if(L&&P.length&&!U&&z.onFilter){var ce=I({count:u.length});K=z.onFilter({inputValue:b,resultsMessage:ce})}return K},[u,b,L,z,P,I,U]),X=r?.action==="initial-input-focus",Y=Ae.useMemo(function(){var K="";if(z.guidance){var ce=o?"value":L?"menu":"input";K=z.guidance({"aria-label":N,context:ce,isDisabled:n&&T(n,h),isMulti:C,isSearchable:B,tabSelectsValue:O,isInitialFocus:X})}return K},[N,n,o,C,T,B,L,z,h,O,X]),te=Gn(Ae.Fragment,null,Gn("span",{id:"aria-selection"},G),Gn("span",{id:"aria-focused"},j),Gn("span",{id:"aria-results"},q),Gn("span",{id:"aria-guidance"},Y));return Gn(Ae.Fragment,null,Gn(Qve,{id:p},X&&te),Gn(Qve,{"aria-live":H,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},f&&!X&&te))},Est=Tst,DW=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Bst=new RegExp("["+DW.map(function(t){return t.letters}).join("")+"]","g"),TIe={};for(var XV=0;XV<DW.length;XV++)for(var ZV=DW[XV],JV=0;JV<ZV.letters.length;JV++)TIe[ZV.letters[JV]]=ZV.base;var EIe=function(e){return e.replace(Bst,function(r){return TIe[r]})},Ist=_st(EIe),Vve=function(e){return e.replace(/^\s+|\s+$/g,"")},Lst=function(e){return"".concat(e.label," ").concat(e.value)},Mst=function(e){return function(r,n){if(r.data.__isNew__)return!0;var o=ti({ignoreCase:!0,ignoreAccents:!0,stringify:Lst,trim:!0,matchFrom:"any"},e),u=o.ignoreCase,f=o.ignoreAccents,h=o.stringify,A=o.trim,p=o.matchFrom,g=A?Vve(n):n,y=A?Vve(h(r)):h(r);return u&&(g=g.toLowerCase(),y=y.toLowerCase()),f&&(g=Ist(g),y=EIe(y)),p==="start"?y.substr(0,g.length)===g:y.indexOf(g)>-1}},Dst=["innerRef"];function Rst(t){var e=t.innerRef,r=Ig(t,Dst),n=aot(r,"onExited","in","enter","exit","appear");return Gn("input",On({ref:e},n,{css:xO({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Pst=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function Ost(t){var e=t.isEnabled,r=t.onBottomArrive,n=t.onBottomLeave,o=t.onTopArrive,u=t.onTopLeave,f=Ae.useRef(!1),h=Ae.useRef(!1),A=Ae.useRef(0),p=Ae.useRef(null),g=Ae.useCallback(function(B,L){if(p.current!==null){var P=p.current,I=P.scrollTop,O=P.scrollHeight,U=P.clientHeight,N=p.current,H=L>0,z=O-U-I,G=!1;z>L&&f.current&&(n&&n(B),f.current=!1),H&&h.current&&(u&&u(B),h.current=!1),H&&L>z?(r&&!f.current&&r(B),N.scrollTop=O,G=!0,f.current=!0):!H&&-L>I&&(o&&!h.current&&o(B),N.scrollTop=0,G=!0,h.current=!0),G&&Pst(B)}},[r,n,o,u]),y=Ae.useCallback(function(B){g(B,B.deltaY)},[g]),_=Ae.useCallback(function(B){A.current=B.changedTouches[0].clientY},[]),b=Ae.useCallback(function(B){var L=A.current-B.changedTouches[0].clientY;g(B,L)},[g]),C=Ae.useCallback(function(B){if(B){var L=rot?{passive:!1}:!1;B.addEventListener("wheel",y,L),B.addEventListener("touchstart",_,L),B.addEventListener("touchmove",b,L)}},[b,_,y]),T=Ae.useCallback(function(B){B&&(B.removeEventListener("wheel",y,!1),B.removeEventListener("touchstart",_,!1),B.removeEventListener("touchmove",b,!1))},[b,_,y]);return Ae.useEffect(function(){if(e){var B=p.current;return C(B),function(){T(B)}}},[e,C,T]),function(B){p.current=B}}var zve=["boxSizing","height","overflow","paddingRight","position"],Gve={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function jve(t){t.cancelable&&t.preventDefault()}function qve(t){t.stopPropagation()}function Wve(){var t=this.scrollTop,e=this.scrollHeight,r=t+this.offsetHeight;t===0?this.scrollTop=1:r===e&&(this.scrollTop=t-1)}function $ve(){return"ontouchstart"in window||navigator.maxTouchPoints}var Kve=!!(typeof window<"u"&&window.document&&window.document.createElement),lT=0,Kb={capture:!1,passive:!1};function kst(t){var e=t.isEnabled,r=t.accountForScrollbars,n=r===void 0?!0:r,o=Ae.useRef({}),u=Ae.useRef(null),f=Ae.useCallback(function(A){if(Kve){var p=document.body,g=p&&p.style;if(n&&zve.forEach(function(C){var T=g&&g[C];o.current[C]=T}),n&&lT<1){var y=parseInt(o.current.paddingRight,10)||0,_=document.body?document.body.clientWidth:0,b=window.innerWidth-_+y||0;Object.keys(Gve).forEach(function(C){var T=Gve[C];g&&(g[C]=T)}),g&&(g.paddingRight="".concat(b,"px"))}p&&$ve()&&(p.addEventListener("touchmove",jve,Kb),A&&(A.addEventListener("touchstart",Wve,Kb),A.addEventListener("touchmove",qve,Kb))),lT+=1}},[n]),h=Ae.useCallback(function(A){if(Kve){var p=document.body,g=p&&p.style;lT=Math.max(lT-1,0),n&&lT<1&&zve.forEach(function(y){var _=o.current[y];g&&(g[y]=_)}),p&&$ve()&&(p.removeEventListener("touchmove",jve,Kb),A&&(A.removeEventListener("touchstart",Wve,Kb),A.removeEventListener("touchmove",qve,Kb)))}},[n]);return Ae.useEffect(function(){if(e){var A=u.current;return f(A),function(){h(A)}}},[e,f,h]),function(A){u.current=A}}var Fst=function(e){var r=e.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},Nst={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Ust(t){var e=t.children,r=t.lockEnabled,n=t.captureEnabled,o=n===void 0?!0:n,u=t.onBottomArrive,f=t.onBottomLeave,h=t.onTopArrive,A=t.onTopLeave,p=Ost({isEnabled:o,onBottomArrive:u,onBottomLeave:f,onTopArrive:h,onTopLeave:A}),g=kst({isEnabled:r}),y=function(b){p(b),g(b)};return Gn(Ae.Fragment,null,r&&Gn("div",{onClick:Fst,css:Nst}),e(y))}var Hst={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Qst=function(e){var r=e.name,n=e.onFocus;return Gn("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Hst,value:"",onChange:function(){}})},Vst=Qst;function uX(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function zst(){return uX(/^iPhone/i)}function BIe(){return uX(/^Mac/i)}function Gst(){return uX(/^iPad/i)||BIe()&&navigator.maxTouchPoints>1}function jst(){return zst()||Gst()}function qst(){return BIe()||jst()}var Wst=function(e){return e.label},$st=function(e){return e.label},Kst=function(e){return e.value},Yst=function(e){return!!e.isDisabled},Xst={clearIndicator:Rot,container:_ot,control:Hot,dropdownIndicator:Mot,group:Got,groupHeading:qot,indicatorsContainer:Tot,indicatorSeparator:Oot,input:Yot,loadingIndicator:Not,loadingMessage:got,menu:cot,menuList:Aot,menuPortal:wot,multiValue:tst,multiValueLabel:rst,multiValueRemove:nst,noOptionsMessage:pot,option:ust,placeholder:hst,singleValue:vst,valueContainer:xot},Zst={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Jst=4,IIe=4,elt=38,tlt=IIe*2,rlt={baseUnit:IIe,controlHeight:elt,menuGutter:tlt},ez={borderRadius:Jst,colors:Zst,spacing:rlt},nlt={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Nve(),captureMenuScroll:!Nve(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Mst(),formatGroupLabel:Wst,getOptionLabel:$st,getOptionValue:Kst,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Yst,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!eot(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var r=e.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Yve(t,e,r,n){var o=DIe(t,e,r),u=RIe(t,e,r),f=MIe(t,e),h=zR(t,e);return{type:"option",data:e,isDisabled:o,isSelected:u,label:f,value:h,index:n}}function _5(t,e){return t.options.map(function(r,n){if("options"in r){var o=r.options.map(function(f,h){return Yve(t,f,e,h)}).filter(function(f){return Zve(t,f)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var u=Yve(t,r,e,n);return Zve(t,u)?u:void 0}).filter(not)}function LIe(t){return t.reduce(function(e,r){return r.type==="group"?e.push.apply(e,NO(r.options.map(function(n){return n.data}))):e.push(r.data),e},[])}function Xve(t,e){return t.reduce(function(r,n){return n.type==="group"?r.push.apply(r,NO(n.options.map(function(o){return{data:o.data,id:"".concat(e,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(e,"-").concat(n.index)}),r},[])}function ilt(t,e){return LIe(_5(t,e))}function Zve(t,e){var r=t.inputValue,n=r===void 0?"":r,o=e.data,u=e.isSelected,f=e.label,h=e.value;return(!OIe(t)||!u)&&PIe(t,{label:f,value:h,data:o},n)}function alt(t,e){var r=t.focusedValue,n=t.selectValue,o=n.indexOf(r);if(o>-1){var u=e.indexOf(r);if(u>-1)return r;if(o<e.length)return e[o]}return null}function olt(t,e){var r=t.focusedOption;return r&&e.indexOf(r)>-1?r:e[0]}var tz=function(e,r){var n,o=(n=e.find(function(u){return u.data===r}))===null||n===void 0?void 0:n.id;return o||null},MIe=function(e,r){return e.getOptionLabel(r)},zR=function(e,r){return e.getOptionValue(r)};function DIe(t,e,r){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,r):!1}function RIe(t,e,r){if(r.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,r);var n=zR(t,e);return r.some(function(o){return zR(t,o)===n})}function PIe(t,e,r){return t.filterOption?t.filterOption(e,r):!0}var OIe=function(e){var r=e.hideSelectedOptions,n=e.isMulti;return r===void 0?n:r},slt=1,kIe=function(t){kO(r,t);var e=Jit(r);function r(n){var o;if(KS(this,r),o=e.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=qst(),o.controlRef=null,o.getControlRef=function(A){o.controlRef=A},o.focusedOptionRef=null,o.getFocusedOptionRef=function(A){o.focusedOptionRef=A},o.menuListRef=null,o.getMenuListRef=function(A){o.menuListRef=A},o.inputRef=null,o.getInputRef=function(A){o.inputRef=A},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(A,p){var g=o.props,y=g.onChange,_=g.name;p.name=_,o.ariaOnChange(A,p),y(A,p)},o.setValue=function(A,p,g){var y=o.props,_=y.closeMenuOnSelect,b=y.isMulti,C=y.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:C}),_&&(o.setState({inputIsHiddenAfterUpdate:!b}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(A,{action:p,option:g})},o.selectOption=function(A){var p=o.props,g=p.blurInputOnSelect,y=p.isMulti,_=p.name,b=o.state.selectValue,C=y&&o.isOptionSelected(A,b),T=o.isOptionDisabled(A,b);if(C){var B=o.getOptionValue(A);o.setValue(b.filter(function(L){return o.getOptionValue(L)!==B}),"deselect-option",A)}else if(!T)y?o.setValue([].concat(NO(b),[A]),"select-option",A):o.setValue(A,"select-option");else{o.ariaOnChange(A,{action:"select-option",option:A,name:_});return}g&&o.blurInput()},o.removeValue=function(A){var p=o.props.isMulti,g=o.state.selectValue,y=o.getOptionValue(A),_=g.filter(function(C){return o.getOptionValue(C)!==y}),b=bM(p,_,_[0]||null);o.onChange(b,{action:"remove-value",removedValue:A}),o.focusInput()},o.clearValue=function(){var A=o.state.selectValue;o.onChange(bM(o.props.isMulti,[],null),{action:"clear",removedValues:A})},o.popValue=function(){var A=o.props.isMulti,p=o.state.selectValue,g=p[p.length-1],y=p.slice(0,p.length-1),_=bM(A,y,y[0]||null);g&&o.onChange(_,{action:"pop-value",removedValue:g})},o.getFocusedOptionId=function(A){return tz(o.state.focusableOptionsWithIds,A)},o.getFocusableOptionsWithIds=function(){return Xve(_5(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var A=arguments.length,p=new Array(A),g=0;g<A;g++)p[g]=arguments[g];return Kat.apply(void 0,[o.props.classNamePrefix].concat(p))},o.getOptionLabel=function(A){return MIe(o.props,A)},o.getOptionValue=function(A){return zR(o.props,A)},o.getStyles=function(A,p){var g=o.props.unstyled,y=Xst[A](p,g);y.boxSizing="border-box";var _=o.props.styles[A];return _?_(y,p):y},o.getClassNames=function(A,p){var g,y;return(g=(y=o.props.classNames)[A])===null||g===void 0?void 0:g.call(y,p)},o.getElementId=function(A){return"".concat(o.state.instancePrefix,"-").concat(A)},o.getComponents=function(){return yst(o.props)},o.buildCategorizedOptions=function(){return _5(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return LIe(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(A,p){o.setState({ariaSelection:ti({value:A},p)})},o.onMenuMouseDown=function(A){A.button===0&&(A.stopPropagation(),A.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(A){o.blockOptionHover=!1},o.onControlMouseDown=function(A){if(!A.defaultPrevented){var p=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?A.target.tagName!=="INPUT"&&A.target.tagName!=="TEXTAREA"&&o.onMenuClose():p&&o.openMenu("first"):(p&&(o.openAfterFocus=!0),o.focusInput()),A.target.tagName!=="INPUT"&&A.target.tagName!=="TEXTAREA"&&A.preventDefault()}},o.onDropdownIndicatorMouseDown=function(A){if(!(A&&A.type==="mousedown"&&A.button!==0)&&!o.props.isDisabled){var p=o.props,g=p.isMulti,y=p.menuIsOpen;o.focusInput(),y?(o.setState({inputIsHiddenAfterUpdate:!g}),o.onMenuClose()):o.openMenu("first"),A.preventDefault()}},o.onClearIndicatorMouseDown=function(A){A&&A.type==="mousedown"&&A.button!==0||(o.clearValue(),A.preventDefault(),o.openAfterFocus=!1,A.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(A){typeof o.props.closeMenuOnScroll=="boolean"?A.target instanceof HTMLElement&&zO(A.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(A)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(A){var p=A.touches,g=p&&p.item(0);g&&(o.initialTouchX=g.clientX,o.initialTouchY=g.clientY,o.userIsDragging=!1)},o.onTouchMove=function(A){var p=A.touches,g=p&&p.item(0);if(g){var y=Math.abs(g.clientX-o.initialTouchX),_=Math.abs(g.clientY-o.initialTouchY),b=5;o.userIsDragging=y>b||_>b}},o.onTouchEnd=function(A){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(A.target)&&o.menuListRef&&!o.menuListRef.contains(A.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(A){o.userIsDragging||o.onControlMouseDown(A)},o.onClearIndicatorTouchEnd=function(A){o.userIsDragging||o.onClearIndicatorMouseDown(A)},o.onDropdownIndicatorTouchEnd=function(A){o.userIsDragging||o.onDropdownIndicatorMouseDown(A)},o.handleInputChange=function(A){var p=o.props.inputValue,g=A.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(g,{action:"input-change",prevInputValue:p}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(A){o.props.onFocus&&o.props.onFocus(A),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(A){var p=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(A),o.onInputChange("",{action:"input-blur",prevInputValue:p}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(A){if(!(o.blockOptionHover||o.state.focusedOption===A)){var p=o.getFocusableOptions(),g=p.indexOf(A);o.setState({focusedOption:A,focusedOptionId:g>-1?o.getFocusedOptionId(A):null})}},o.shouldHideSelectedOptions=function(){return OIe(o.props)},o.onValueInputFocus=function(A){A.preventDefault(),A.stopPropagation(),o.focus()},o.onKeyDown=function(A){var p=o.props,g=p.isMulti,y=p.backspaceRemovesValue,_=p.escapeClearsValue,b=p.inputValue,C=p.isClearable,T=p.isDisabled,B=p.menuIsOpen,L=p.onKeyDown,P=p.tabSelectsValue,I=p.openMenuOnFocus,O=o.state,U=O.focusedOption,N=O.focusedValue,H=O.selectValue;if(!T&&!(typeof L=="function"&&(L(A),A.defaultPrevented))){switch(o.blockOptionHover=!0,A.key){case"ArrowLeft":if(!g||b)return;o.focusValue("previous");break;case"ArrowRight":if(!g||b)return;o.focusValue("next");break;case"Delete":case"Backspace":if(b)return;if(N)o.removeValue(N);else{if(!y)return;g?o.popValue():C&&o.clearValue()}break;case"Tab":if(o.isComposing||A.shiftKey||!B||!P||!U||I&&o.isOptionSelected(U,H))return;o.selectOption(U);break;case"Enter":if(A.keyCode===229)break;if(B){if(!U||o.isComposing)return;o.selectOption(U);break}return;case"Escape":B?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:b}),o.onMenuClose()):C&&_&&o.clearValue();break;case" ":if(b)return;if(!B){o.openMenu("first");break}if(!U)return;o.selectOption(U);break;case"ArrowUp":B?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":B?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!B)return;o.focusOption("pageup");break;case"PageDown":if(!B)return;o.focusOption("pagedown");break;case"Home":if(!B)return;o.focusOption("first");break;case"End":if(!B)return;o.focusOption("last");break;default:return}A.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++slt),o.state.selectValue=kve(n.value),n.menuIsOpen&&o.state.selectValue.length){var u=o.getFocusableOptionsWithIds(),f=o.buildFocusableOptions(),h=f.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=u,o.state.focusedOption=f[h],o.state.focusedOptionId=tz(u,f[h])}return o}return YS(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Fve(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var u=this.props,f=u.isDisabled,h=u.menuIsOpen,A=this.state.isFocused;(A&&!f&&o.isDisabled||A&&h&&!o.menuIsOpen)&&this.focusInput(),A&&f&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!A&&!f&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Fve(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,u){this.props.onInputChange(o,u)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var u=this,f=this.state,h=f.selectValue,A=f.isFocused,p=this.buildFocusableOptions(),g=o==="first"?0:p.length-1;if(!this.props.isMulti){var y=p.indexOf(h[0]);y>-1&&(g=y)}this.scrollToFocusedOptionOnUpdate=!(A&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:p[g],focusedOptionId:this.getFocusedOptionId(p[g])},function(){return u.onMenuOpen()})}},{key:"focusValue",value:function(o){var u=this.state,f=u.selectValue,h=u.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var A=f.indexOf(h);h||(A=-1);var p=f.length-1,g=-1;if(f.length){switch(o){case"previous":A===0?g=0:A===-1?g=p:g=A-1;break;case"next":A>-1&&A<p&&(g=A+1);break}this.setState({inputIsHidden:g!==-1,focusedValue:f[g]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",u=this.props.pageSize,f=this.state.focusedOption,h=this.getFocusableOptions();if(h.length){var A=0,p=h.indexOf(f);f||(p=-1),o==="up"?A=p>0?p-1:h.length-1:o==="down"?A=(p+1)%h.length:o==="pageup"?(A=p-u,A<0&&(A=0)):o==="pagedown"?(A=p+u,A>h.length-1&&(A=h.length-1)):o==="last"&&(A=h.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:h[A],focusedValue:null,focusedOptionId:this.getFocusedOptionId(h[A])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(ez):ti(ti({},ez),this.props.theme):ez}},{key:"getCommonProps",value:function(){var o=this.clearValue,u=this.cx,f=this.getStyles,h=this.getClassNames,A=this.getValue,p=this.selectOption,g=this.setValue,y=this.props,_=y.isMulti,b=y.isRtl,C=y.options,T=this.hasValue();return{clearValue:o,cx:u,getStyles:f,getClassNames:h,getValue:A,hasValue:T,isMulti:_,isRtl:b,options:C,selectOption:p,selectProps:y,setValue:g,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,u=o.isClearable,f=o.isMulti;return u===void 0?f:u}},{key:"isOptionDisabled",value:function(o,u){return DIe(this.props,o,u)}},{key:"isOptionSelected",value:function(o,u){return RIe(this.props,o,u)}},{key:"filterOption",value:function(o,u){return PIe(this.props,o,u)}},{key:"formatOptionLabel",value:function(o,u){if(typeof this.props.formatOptionLabel=="function"){var f=this.props.inputValue,h=this.state.selectValue;return this.props.formatOptionLabel(o,{context:u,inputValue:f,selectValue:h})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,u=o.isDisabled,f=o.isSearchable,h=o.inputId,A=o.inputValue,p=o.tabIndex,g=o.form,y=o.menuIsOpen,_=o.required,b=this.getComponents(),C=b.Input,T=this.state,B=T.inputIsHidden,L=T.ariaSelection,P=this.commonProps,I=h||this.getElementId("input"),O=ti(ti(ti({"aria-autocomplete":"list","aria-expanded":y,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":_,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},y&&{"aria-controls":this.getElementId("listbox")}),!f&&{"aria-readonly":!0}),this.hasValue()?L?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return f?Ae.createElement(C,On({},P,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:I,innerRef:this.getInputRef,isDisabled:u,isHidden:B,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:p,form:g,type:"text",value:A},O)):Ae.createElement(Rst,On({id:I,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:QR,onFocus:this.onInputFocus,disabled:u,tabIndex:p,inputMode:"none",form:g,value:""},O))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,u=this.getComponents(),f=u.MultiValue,h=u.MultiValueContainer,A=u.MultiValueLabel,p=u.MultiValueRemove,g=u.SingleValue,y=u.Placeholder,_=this.commonProps,b=this.props,C=b.controlShouldRenderValue,T=b.isDisabled,B=b.isMulti,L=b.inputValue,P=b.placeholder,I=this.state,O=I.selectValue,U=I.focusedValue,N=I.isFocused;if(!this.hasValue()||!C)return L?null:Ae.createElement(y,On({},_,{key:"placeholder",isDisabled:T,isFocused:N,innerProps:{id:this.getElementId("placeholder")}}),P);if(B)return O.map(function(z,G){var j=z===U,q="".concat(o.getOptionLabel(z),"-").concat(o.getOptionValue(z));return Ae.createElement(f,On({},_,{components:{Container:h,Label:A,Remove:p},isFocused:j,isDisabled:T,key:q,index:G,removeProps:{onClick:function(){return o.removeValue(z)},onTouchEnd:function(){return o.removeValue(z)},onMouseDown:function(Y){Y.preventDefault()}},data:z}),o.formatOptionLabel(z,"value"))});if(L)return null;var H=O[0];return Ae.createElement(g,On({},_,{data:H,isDisabled:T}),this.formatOptionLabel(H,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),u=o.ClearIndicator,f=this.commonProps,h=this.props,A=h.isDisabled,p=h.isLoading,g=this.state.isFocused;if(!this.isClearable()||!u||A||!this.hasValue()||p)return null;var y={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Ae.createElement(u,On({},f,{innerProps:y,isFocused:g}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),u=o.LoadingIndicator,f=this.commonProps,h=this.props,A=h.isDisabled,p=h.isLoading,g=this.state.isFocused;if(!u||!p)return null;var y={"aria-hidden":"true"};return Ae.createElement(u,On({},f,{innerProps:y,isDisabled:A,isFocused:g}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),u=o.DropdownIndicator,f=o.IndicatorSeparator;if(!u||!f)return null;var h=this.commonProps,A=this.props.isDisabled,p=this.state.isFocused;return Ae.createElement(f,On({},h,{isDisabled:A,isFocused:p}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),u=o.DropdownIndicator;if(!u)return null;var f=this.commonProps,h=this.props.isDisabled,A=this.state.isFocused,p={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Ae.createElement(u,On({},f,{innerProps:p,isDisabled:h,isFocused:A}))}},{key:"renderMenu",value:function(){var o=this,u=this.getComponents(),f=u.Group,h=u.GroupHeading,A=u.Menu,p=u.MenuList,g=u.MenuPortal,y=u.LoadingMessage,_=u.NoOptionsMessage,b=u.Option,C=this.commonProps,T=this.state.focusedOption,B=this.props,L=B.captureMenuScroll,P=B.inputValue,I=B.isLoading,O=B.loadingMessage,U=B.minMenuHeight,N=B.maxMenuHeight,H=B.menuIsOpen,z=B.menuPlacement,G=B.menuPosition,j=B.menuPortalTarget,q=B.menuShouldBlockScroll,X=B.menuShouldScrollIntoView,Y=B.noOptionsMessage,te=B.onMenuScrollToTop,K=B.onMenuScrollToBottom;if(!H)return null;var ce=function(oe,ye){var _e=oe.type,Ce=oe.data,ne=oe.isDisabled,xe=oe.isSelected,De=oe.label,ze=oe.value,Ye=T===Ce,Ne=ne?void 0:function(){return o.onOptionHover(Ce)},yt=ne?void 0:function(){return o.selectOption(Ce)},Ue="".concat(o.getElementId("option"),"-").concat(ye),ue={id:Ue,onClick:yt,onMouseMove:Ne,onMouseOver:Ne,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:xe};return Ae.createElement(b,On({},C,{innerProps:ue,data:Ce,isDisabled:ne,isSelected:xe,key:Ue,label:De,type:_e,value:ze,isFocused:Ye,innerRef:Ye?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(oe.data,"menu"))},ae;if(this.hasOptions())ae=this.getCategorizedOptions().map(function(re){if(re.type==="group"){var oe=re.data,ye=re.options,_e=re.index,Ce="".concat(o.getElementId("group"),"-").concat(_e),ne="".concat(Ce,"-heading");return Ae.createElement(f,On({},C,{key:Ce,data:oe,options:ye,Heading:h,headingProps:{id:ne,data:re.data},label:o.formatGroupLabel(re.data)}),re.options.map(function(xe){return ce(xe,"".concat(_e,"-").concat(xe.index))}))}else if(re.type==="option")return ce(re,"".concat(re.index))});else if(I){var le=O({inputValue:P});if(le===null)return null;ae=Ae.createElement(y,C,le)}else{var pe=Y({inputValue:P});if(pe===null)return null;ae=Ae.createElement(_,C,pe)}var ie={minMenuHeight:U,maxMenuHeight:N,menuPlacement:z,menuPosition:G,menuShouldScrollIntoView:X},he=Ae.createElement(fot,On({},C,ie),function(re){var oe=re.ref,ye=re.placerProps,_e=ye.placement,Ce=ye.maxHeight;return Ae.createElement(A,On({},C,ie,{innerRef:oe,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:I,placement:_e}),Ae.createElement(Ust,{captureEnabled:L,onTopArrive:te,onBottomArrive:K,lockEnabled:q},function(ne){return Ae.createElement(p,On({},C,{innerRef:function(De){o.getMenuListRef(De),ne(De)},innerProps:{role:"listbox","aria-multiselectable":C.isMulti,id:o.getElementId("listbox")},isLoading:I,maxHeight:Ce,focusedOption:T}),ae)}))});return j||G==="fixed"?Ae.createElement(g,On({},C,{appendTo:j,controlElement:this.controlRef,menuPlacement:z,menuPosition:G}),he):he}},{key:"renderFormField",value:function(){var o=this,u=this.props,f=u.delimiter,h=u.isDisabled,A=u.isMulti,p=u.name,g=u.required,y=this.state.selectValue;if(g&&!this.hasValue()&&!h)return Ae.createElement(Vst,{name:p,onFocus:this.onValueInputFocus});if(!(!p||h))if(A)if(f){var _=y.map(function(T){return o.getOptionValue(T)}).join(f);return Ae.createElement("input",{name:p,type:"hidden",value:_})}else{var b=y.length>0?y.map(function(T,B){return Ae.createElement("input",{key:"i-".concat(B),name:p,type:"hidden",value:o.getOptionValue(T)})}):Ae.createElement("input",{name:p,type:"hidden",value:""});return Ae.createElement("div",null,b)}else{var C=y[0]?this.getOptionValue(y[0]):"";return Ae.createElement("input",{name:p,type:"hidden",value:C})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,u=this.state,f=u.ariaSelection,h=u.focusedOption,A=u.focusedValue,p=u.isFocused,g=u.selectValue,y=this.getFocusableOptions();return Ae.createElement(Est,On({},o,{id:this.getElementId("live-region"),ariaSelection:f,focusedOption:h,focusedValue:A,isFocused:p,selectValue:g,focusableOptions:y,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),u=o.Control,f=o.IndicatorsContainer,h=o.SelectContainer,A=o.ValueContainer,p=this.props,g=p.className,y=p.id,_=p.isDisabled,b=p.menuIsOpen,C=this.state.isFocused,T=this.commonProps=this.getCommonProps();return Ae.createElement(h,On({},T,{className:g,innerProps:{id:y,onKeyDown:this.onKeyDown},isDisabled:_,isFocused:C}),this.renderLiveRegion(),Ae.createElement(u,On({},T,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:_,isFocused:C,menuIsOpen:b}),Ae.createElement(A,On({},T,{isDisabled:_}),this.renderPlaceholderOrValue(),this.renderInput()),Ae.createElement(f,On({},T,{isDisabled:_}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,u){var f=u.prevProps,h=u.clearFocusValueOnUpdate,A=u.inputIsHiddenAfterUpdate,p=u.ariaSelection,g=u.isFocused,y=u.prevWasFocused,_=u.instancePrefix,b=o.options,C=o.value,T=o.menuIsOpen,B=o.inputValue,L=o.isMulti,P=kve(C),I={};if(f&&(C!==f.value||b!==f.options||T!==f.menuIsOpen||B!==f.inputValue)){var O=T?ilt(o,P):[],U=T?Xve(_5(o,P),"".concat(_,"-option")):[],N=h?alt(u,P):null,H=olt(u,O),z=tz(U,H);I={selectValue:P,focusedOption:H,focusedOptionId:z,focusableOptionsWithIds:U,focusedValue:N,clearFocusValueOnUpdate:!1}}var G=A!=null&&o!==f?{inputIsHidden:A,inputIsHiddenAfterUpdate:void 0}:{},j=p,q=g&&y;return g&&!q&&(j={value:bM(L,P,P[0]||null),options:P,action:"initial-input-focus"},q=!y),p?.action==="initial-input-focus"&&(j=null),ti(ti(ti({},I),G),{},{prevProps:o,ariaSelection:j,prevWasFocused:q})}}]),r}(Ae.Component);kIe.defaultProps=nlt;var llt=Ae.forwardRef(function(t,e){var r=Zit(t);return Ae.createElement(kIe,On({ref:e},r))}),_8t=llt,RW=function(t,e){return RW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},RW(t,e)};function FIe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");RW(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var rS=function(){return rS=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(e[u]=r[u])}return e},rS.apply(this,arguments)};function NIe(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}var _M=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ult(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var cX=ult,clt=typeof _M=="object"&&_M&&_M.Object===Object&&_M,flt=clt,hlt=flt,dlt=typeof self=="object"&&self&&self.Object===Object&&self,Alt=hlt||dlt||Function("return this")(),UIe=Alt,vlt=UIe,plt=function(){return vlt.Date.now()},glt=plt,mlt=/\s/;function ylt(t){for(var e=t.length;e--&&mlt.test(t.charAt(e)););return e}var wlt=ylt,blt=wlt,_lt=/^\s+/;function Slt(t){return t&&t.slice(0,blt(t)+1).replace(_lt,"")}var xlt=Slt,Clt=UIe,Tlt=Clt.Symbol,HIe=Tlt,Jve=HIe,QIe=Object.prototype,Elt=QIe.hasOwnProperty,Blt=QIe.toString,uT=Jve?Jve.toStringTag:void 0;function Ilt(t){var e=Elt.call(t,uT),r=t[uT];try{t[uT]=void 0;var n=!0}catch{}var o=Blt.call(t);return n&&(e?t[uT]=r:delete t[uT]),o}var Llt=Ilt,Mlt=Object.prototype,Dlt=Mlt.toString;function Rlt(t){return Dlt.call(t)}var Plt=Rlt,epe=HIe,Olt=Llt,klt=Plt,Flt="[object Null]",Nlt="[object Undefined]",tpe=epe?epe.toStringTag:void 0;function Ult(t){return t==null?t===void 0?Nlt:Flt:tpe&&tpe in Object(t)?Olt(t):klt(t)}var Hlt=Ult;function Qlt(t){return t!=null&&typeof t=="object"}var Vlt=Qlt,zlt=Hlt,Glt=Vlt,jlt="[object Symbol]";function qlt(t){return typeof t=="symbol"||Glt(t)&&zlt(t)==jlt}var Wlt=qlt,$lt=xlt,rpe=cX,Klt=Wlt,npe=NaN,Ylt=/^[-+]0x[0-9a-f]+$/i,Xlt=/^0b[01]+$/i,Zlt=/^0o[0-7]+$/i,Jlt=parseInt;function eut(t){if(typeof t=="number")return t;if(Klt(t))return npe;if(rpe(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=rpe(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=$lt(t);var r=Xlt.test(t);return r||Zlt.test(t)?Jlt(t.slice(2),r?2:8):Ylt.test(t)?npe:+t}var tut=eut,rut=cX,rz=glt,ipe=tut,nut="Expected a function",iut=Math.max,aut=Math.min;function out(t,e,r){var n,o,u,f,h,A,p=0,g=!1,y=!1,_=!0;if(typeof t!="function")throw new TypeError(nut);e=ipe(e)||0,rut(r)&&(g=!!r.leading,y="maxWait"in r,u=y?iut(ipe(r.maxWait)||0,e):u,_="trailing"in r?!!r.trailing:_);function b(N){var H=n,z=o;return n=o=void 0,p=N,f=t.apply(z,H),f}function C(N){return p=N,h=setTimeout(L,e),g?b(N):f}function T(N){var H=N-A,z=N-p,G=e-H;return y?aut(G,u-z):G}function B(N){var H=N-A,z=N-p;return A===void 0||H>=e||H<0||y&&z>=u}function L(){var N=rz();if(B(N))return P(N);h=setTimeout(L,T(N))}function P(N){return h=void 0,_&&n?b(N):(n=o=void 0,f)}function I(){h!==void 0&&clearTimeout(h),p=0,n=A=o=h=void 0}function O(){return h===void 0?f:P(rz())}function U(){var N=rz(),H=B(N);if(n=arguments,o=this,A=N,H){if(h===void 0)return C(A);if(y)return clearTimeout(h),h=setTimeout(L,e),b(A)}return h===void 0&&(h=setTimeout(L,e)),f}return U.cancel=I,U.flush=O,U}var VIe=out,sut=VIe,lut=cX,uut="Expected a function";function cut(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError(uut);return lut(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),sut(t,e,{leading:n,maxWait:e,trailing:o})}var fut=cut,zIe=function(t,e,r,n){switch(e){case"debounce":return VIe(t,r,n);case"throttle":return fut(t,r,n);default:return t}},PW=function(t){return typeof t=="function"},Km=function(){return typeof window>"u"},ape=function(t){return t instanceof Element||t instanceof HTMLDocument},GIe=function(t,e,r,n){return function(o){var u=o.width,f=o.height;e(function(h){return h.width===u&&h.height===f||h.width===u&&!n||h.height===f&&!r?h:(t&&PW(t)&&t(u,f),{width:u,height:f})})}},jIe=function(t){FIe(e,t);function e(r){var n=t.call(this,r)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var p=n.props,g=p.targetRef,y=p.observerOptions;if(!Km()){g&&g.current&&(n.targetRef.current=g.current);var _=n.getElement();_&&(n.observableElement&&n.observableElement===_||(n.observableElement=_,n.resizeObserver.observe(_,y)))}},n.getElement=function(){var p=n.props,g=p.querySelector,y=p.targetDomEl;if(Km())return null;if(g)return document.querySelector(g);if(y&&ape(y))return y;if(n.targetRef&&ape(n.targetRef.current))return n.targetRef.current;var _=uu.findDOMNode(n);if(!_)return null;var b=n.getRenderType();switch(b){case"renderProp":return _;case"childFunction":return _;case"child":return _;case"childArray":return _;default:return _.parentElement}},n.createResizeHandler=function(p){var g=n.props,y=g.handleWidth,_=y===void 0?!0:y,b=g.handleHeight,C=b===void 0?!0:b,T=g.onResize;if(!(!_&&!C)){var B=GIe(T,n.setState.bind(n),_,C);p.forEach(function(L){var P=L&&L.contentRect||{},I=P.width,O=P.height,U=!n.skipOnMount&&!Km();U&&B({width:I,height:O}),n.skipOnMount=!1})}},n.getRenderType=function(){var p=n.props,g=p.render,y=p.children;return PW(g)?"renderProp":PW(y)?"childFunction":Ae.isValidElement(y)?"child":Array.isArray(y)?"childArray":"parent"};var o=r.skipOnMount,u=r.refreshMode,f=r.refreshRate,h=f===void 0?1e3:f,A=r.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=o,n.targetRef=Ae.createRef(),n.observableElement=null,Km()||(n.resizeHandler=zIe(n.createResizeHandler,u,h,A),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}return e.prototype.componentDidMount=function(){this.attachObserver()},e.prototype.componentDidUpdate=function(){this.attachObserver()},e.prototype.componentWillUnmount=function(){Km()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},e.prototype.render=function(){var r=this.props,n=r.render,o=r.children,u=r.nodeType,f=u===void 0?"div":u,h=this.state,A=h.width,p=h.height,g={width:A,height:p,targetRef:this.targetRef},y=this.getRenderType(),_;switch(y){case"renderProp":return n&&n(g);case"childFunction":return _=o,_(g);case"child":if(_=o,_.type&&typeof _.type=="string"){g.targetRef;var b=NIe(g,["targetRef"]);return Ae.cloneElement(_,b)}return Ae.cloneElement(_,g);case"childArray":return _=o,_.map(function(C){return!!C&&Ae.cloneElement(C,g)});default:return Ae.createElement(f,null)}},e}(Ae.PureComponent);function hut(t,e){e===void 0&&(e={});var r=function(u){FIe(f,u);function f(){var h=u!==null&&u.apply(this,arguments)||this;return h.ref=Ae.createRef(),h}return f.prototype.render=function(){var h=this.props,A=h.forwardedRef,p=NIe(h,["forwardedRef"]),g=A??this.ref;return Ae.createElement(jIe,rS({},e,{targetRef:g}),Ae.createElement(t,rS({targetRef:g},p)))},f}(Ae.Component);function n(u,f){return Ae.createElement(r,rS({},u,{forwardedRef:f}))}var o=t.displayName||t.name;return n.displayName="withResizeDetector(".concat(o,")"),Ae.forwardRef(n)}var dut=Km()?Ae.useEffect:Ae.useLayoutEffect;function Aut(t){t===void 0&&(t={});var e=t.skipOnMount,r=e===void 0?!1:e,n=t.refreshMode,o=t.refreshRate,u=o===void 0?1e3:o,f=t.refreshOptions,h=t.handleWidth,A=h===void 0?!0:h,p=t.handleHeight,g=p===void 0?!0:p,y=t.targetRef,_=t.observerOptions,b=t.onResize,C=Ae.useRef(r),T=Ae.useRef(null),B=y??T,L=Ae.useRef(),P=Ae.useState({width:void 0,height:void 0}),I=P[0],O=P[1];return dut(function(){if(!Km()){var U=GIe(b,O,A,g),N=function(z){!A&&!g||z.forEach(function(G){var j=G&&G.contentRect||{},q=j.width,X=j.height,Y=!C.current&&!Km();Y&&U({width:q,height:X}),C.current=!1})};L.current=zIe(N,n,u,f);var H=new window.ResizeObserver(L.current);return B.current&&H.observe(B.current,_),function(){H.disconnect();var z=L.current;z&&z.cancel&&z.cancel()}}},[n,u,f,A,g,b,_,B.current]),rS({ref:B},I)}const vut=Object.freeze(Object.defineProperty({__proto__:null,default:jIe,useResizeDetector:Aut,withResizeDetector:hut},Symbol.toStringTag,{value:"Module"}));var nz,ope;function put(){if(ope)return nz;ope=1;var t=GS(),e=0;function r(n){var o=++e;return t(n)+o}return nz=r,nz}function iB(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,NR(t,e)}var iz={exports:{}},az,spe;function gut(){if(spe)return az;spe=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return az=t,az}var oz,lpe;function mut(){if(lpe)return oz;lpe=1;var t=gut();function e(){}function r(){}return r.resetWarningCache=e,oz=function(){function n(f,h,A,p,g,y){if(y!==t){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}n.isRequired=n;function o(){return n}var u={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:e};return u.PropTypes=u,u},oz}var upe;function yut(){return upe||(upe=1,iz.exports=mut()()),iz.exports}var wut=yut();const Er=Dn(wut);function but(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function _ut(t,e){t.classList?t.classList.add(e):but(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function cpe(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Sut(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=cpe(t.className,e):t.setAttribute("class",cpe(t.className&&t.className.baseVal||"",e))}const fpe={disabled:!1},fX=Sn.createContext(null);var qIe=function(e){return e.scrollTop},eE="unmounted",A1="exited",Sd="entering",zv="entered",l2="exiting",Lg=function(t){iB(e,t);function e(n,o){var u;u=t.call(this,n,o)||this;var f=o,h=f&&!f.isMounting?n.enter:n.appear,A;return u.appearStatus=null,n.in?h?(A=A1,u.appearStatus=Sd):A=zv:n.unmountOnExit||n.mountOnEnter?A=eE:A=A1,u.state={status:A},u.nextCallback=null,u}e.getDerivedStateFromProps=function(o,u){var f=o.in;return f&&u.status===eE?{status:A1}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var u=null;if(o!==this.props){var f=this.state.status;this.props.in?f!==Sd&&f!==zv&&(u=Sd):(f===Sd||f===zv)&&(u=l2)}this.updateStatus(!1,u)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,u,f,h;return u=f=h=o,o!=null&&typeof o!="number"&&(u=o.exit,f=o.enter,h=o.appear!==void 0?o.appear:f),{exit:u,enter:f,appear:h}},r.updateStatus=function(o,u){if(o===void 0&&(o=!1),u!==null)if(this.cancelNextCallback(),u===Sd){if(this.props.unmountOnExit||this.props.mountOnEnter){var f=this.props.nodeRef?this.props.nodeRef.current:KT.findDOMNode(this);f&&qIe(f)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===A1&&this.setState({status:eE})},r.performEnter=function(o){var u=this,f=this.props.enter,h=this.context?this.context.isMounting:o,A=this.props.nodeRef?[h]:[KT.findDOMNode(this),h],p=A[0],g=A[1],y=this.getTimeouts(),_=h?y.appear:y.enter;if(!o&&!f||fpe.disabled){this.safeSetState({status:zv},function(){u.props.onEntered(p)});return}this.props.onEnter(p,g),this.safeSetState({status:Sd},function(){u.props.onEntering(p,g),u.onTransitionEnd(_,function(){u.safeSetState({status:zv},function(){u.props.onEntered(p,g)})})})},r.performExit=function(){var o=this,u=this.props.exit,f=this.getTimeouts(),h=this.props.nodeRef?void 0:KT.findDOMNode(this);if(!u||fpe.disabled){this.safeSetState({status:A1},function(){o.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:l2},function(){o.props.onExiting(h),o.onTransitionEnd(f.exit,function(){o.safeSetState({status:A1},function(){o.props.onExited(h)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,u){u=this.setNextCallback(u),this.setState(o,u)},r.setNextCallback=function(o){var u=this,f=!0;return this.nextCallback=function(h){f&&(f=!1,u.nextCallback=null,o(h))},this.nextCallback.cancel=function(){f=!1},this.nextCallback},r.onTransitionEnd=function(o,u){this.setNextCallback(u);var f=this.props.nodeRef?this.props.nodeRef.current:KT.findDOMNode(this),h=o==null&&!this.props.addEndListener;if(!f||h){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var A=this.props.nodeRef?[this.nextCallback]:[f,this.nextCallback],p=A[0],g=A[1];this.props.addEndListener(p,g)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===eE)return null;var u=this.props,f=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var h=V2(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Sn.createElement(fX.Provider,{value:null},typeof f=="function"?f(o,h):Sn.cloneElement(Sn.Children.only(f),h))},e}(Sn.Component);Lg.contextType=fX;Lg.propTypes={};function Yb(){}Lg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yb,onEntering:Yb,onEntered:Yb,onExit:Yb,onExiting:Yb,onExited:Yb};Lg.UNMOUNTED=eE;Lg.EXITED=A1;Lg.ENTERING=Sd;Lg.ENTERED=zv;Lg.EXITING=l2;var xut=function(e,r){return e&&r&&r.split(" ").forEach(function(n){return _ut(e,n)})},sz=function(e,r){return e&&r&&r.split(" ").forEach(function(n){return Sut(e,n)})},WIe=function(t){iB(e,t);function e(){for(var n,o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];return n=t.call.apply(t,[this].concat(u))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(h,A){var p=n.resolveArguments(h,A),g=p[0],y=p[1];n.removeClasses(g,"exit"),n.addClass(g,y?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(h,A)},n.onEntering=function(h,A){var p=n.resolveArguments(h,A),g=p[0],y=p[1],_=y?"appear":"enter";n.addClass(g,_,"active"),n.props.onEntering&&n.props.onEntering(h,A)},n.onEntered=function(h,A){var p=n.resolveArguments(h,A),g=p[0],y=p[1],_=y?"appear":"enter";n.removeClasses(g,_),n.addClass(g,_,"done"),n.props.onEntered&&n.props.onEntered(h,A)},n.onExit=function(h){var A=n.resolveArguments(h),p=A[0];n.removeClasses(p,"appear"),n.removeClasses(p,"enter"),n.addClass(p,"exit","base"),n.props.onExit&&n.props.onExit(h)},n.onExiting=function(h){var A=n.resolveArguments(h),p=A[0];n.addClass(p,"exit","active"),n.props.onExiting&&n.props.onExiting(h)},n.onExited=function(h){var A=n.resolveArguments(h),p=A[0];n.removeClasses(p,"exit"),n.addClass(p,"exit","done"),n.props.onExited&&n.props.onExited(h)},n.resolveArguments=function(h,A){return n.props.nodeRef?[n.props.nodeRef.current,h]:[h,A]},n.getClassNames=function(h){var A=n.props.classNames,p=typeof A=="string",g=p&&A?A+"-":"",y=p?""+g+h:A[h],_=p?y+"-active":A[h+"Active"],b=p?y+"-done":A[h+"Done"];return{baseClassName:y,activeClassName:_,doneClassName:b}},n}var r=e.prototype;return r.addClass=function(o,u,f){var h=this.getClassNames(u)[f+"ClassName"],A=this.getClassNames("enter"),p=A.doneClassName;u==="appear"&&f==="done"&&p&&(h+=" "+p),f==="active"&&o&&qIe(o),h&&(this.appliedClasses[u][f]=h,xut(o,h))},r.removeClasses=function(o,u){var f=this.appliedClasses[u],h=f.base,A=f.active,p=f.done;this.appliedClasses[u]={},h&&sz(o,h),A&&sz(o,A),p&&sz(o,p)},r.render=function(){var o=this.props;o.classNames;var u=V2(o,["classNames"]);return Sn.createElement(Lg,On({},u,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(Sn.Component);WIe.defaultProps={classNames:""};WIe.propTypes={};var SM,xM;function Cut(t,e){return!(t===e||Sn.isValidElement(t)&&Sn.isValidElement(e)&&t.key!=null&&t.key===e.key)}var SS={out:"out-in",in:"in-out"},GR=function(e,r,n){return function(){var o;e.props[r]&&(o=e.props)[r].apply(o,arguments),n()}},Tut=(SM={},SM[SS.out]=function(t){var e=t.current,r=t.changeState;return Sn.cloneElement(e,{in:!1,onExited:GR(e,"onExited",function(){r(Sd,null)})})},SM[SS.in]=function(t){var e=t.current,r=t.changeState,n=t.children;return[e,Sn.cloneElement(n,{in:!0,onEntered:GR(n,"onEntered",function(){r(Sd)})})]},SM),Eut=(xM={},xM[SS.out]=function(t){var e=t.children,r=t.changeState;return Sn.cloneElement(e,{in:!0,onEntered:GR(e,"onEntered",function(){r(zv,Sn.cloneElement(e,{in:!0}))})})},xM[SS.in]=function(t){var e=t.current,r=t.children,n=t.changeState;return[Sn.cloneElement(e,{in:!1,onExited:GR(e,"onExited",function(){n(zv,Sn.cloneElement(r,{in:!0}))})}),Sn.cloneElement(r,{in:!0})]},xM),$Ie=function(t){iB(e,t);function e(){for(var n,o=arguments.length,u=new Array(o),f=0;f<o;f++)u[f]=arguments[f];return n=t.call.apply(t,[this].concat(u))||this,n.state={status:zv,current:null},n.appeared=!1,n.changeState=function(h,A){A===void 0&&(A=n.state.current),n.setState({status:h,current:A})},n}var r=e.prototype;return r.componentDidMount=function(){this.appeared=!0},e.getDerivedStateFromProps=function(o,u){return o.children==null?{current:null}:u.status===Sd&&o.mode===SS.in?{status:Sd}:u.current&&Cut(u.current,o.children)?{status:l2}:{current:Sn.cloneElement(o.children,{in:!0})}},r.render=function(){var o=this.props,u=o.children,f=o.mode,h=this.state,A=h.status,p=h.current,g={children:u,current:p,changeState:this.changeState,status:A},y;switch(A){case Sd:y=Eut[f](g);break;case l2:y=Tut[f](g);break;case zv:y=p}return Sn.createElement(fX.Provider,{value:{isMounting:!this.appeared}},y)},e}(Sn.Component);$Ie.propTypes={};$Ie.defaultProps={mode:SS.out};function DA(t){let e=t.activeElement;for(;((r=e)==null||(r=r.shadowRoot)==null?void 0:r.activeElement)!=null;){var r;e=e.shadowRoot.activeElement}return e}function hl(t,e){if(!t||!e)return!1;const r=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(r&&IW(r)){let n=e;for(;n;){if(t===n)return!0;n=n.parentNode||n.host}}return!1}function hX(){const t=navigator.userAgentData;return t!=null&&t.platform?t.platform:navigator.platform}function dX(){const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?t.brands.map(e=>{let{brand:r,version:n}=e;return r+"/"+n}).join(" "):navigator.userAgent}function KIe(t){return t.mozInputSource===0&&t.isTrusted?!0:OW()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function AX(t){return But()?!1:!OW()&&t.width===0&&t.height===0||OW()&&t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"||t.width<1&&t.height<1&&t.pressure===0&&t.detail===0&&t.pointerType==="touch"}function vX(){return/apple/i.test(navigator.vendor)}function OW(){const t=/android/i;return t.test(hX())||t.test(dX())}function YIe(){return hX().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function But(){return dX().includes("jsdom/")}function xS(t,e){const r=["mouse","pen"];return e||r.push("",void 0),r.includes(t)}function Iut(t){return"nativeEvent"in t}function Lut(t){return t.matches("html,body")}function qu(t){return t?.ownerDocument||document}function lz(t,e){if(e==null)return!1;if("composedPath"in t)return t.composedPath().includes(e);const r=t;return r.target!=null&&e.contains(r.target)}function Gv(t){return"composedPath"in t?t.composedPath()[0]:t.target}const Mut="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function pX(t){return Fl(t)&&t.matches(Mut)}function Gu(t){t.preventDefault(),t.stopPropagation()}function kW(t){return t?t.getAttribute("role")==="combobox"&&pX(t):!1}/*!
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var Dut=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],jR=Dut.join(","),XIe=typeof Element>"u",CS=XIe?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,qR=!XIe&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},WR=function t(e,r){var n;r===void 0&&(r=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),u=o===""||o==="true",f=u||r&&e&&t(e.parentNode);return f},Rut=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},Put=function(e,r,n){if(WR(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(jR));return r&&CS.call(e,jR)&&o.unshift(e),o=o.filter(n),o},Out=function t(e,r,n){for(var o=[],u=Array.from(e);u.length;){var f=u.shift();if(!WR(f,!1))if(f.tagName==="SLOT"){var h=f.assignedElements(),A=h.length?h:f.children,p=t(A,!0,n);n.flatten?o.push.apply(o,p):o.push({scopeParent:f,candidates:p})}else{var g=CS.call(f,jR);g&&n.filter(f)&&(r||!e.includes(f))&&o.push(f);var y=f.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(f),_=!WR(y,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(f));if(y&&_){var b=t(y===!0?f.children:y.children,!0,n);n.flatten?o.push.apply(o,b):o.push({scopeParent:f,candidates:b})}else u.unshift.apply(u,f.children)}}return o},ZIe=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},JIe=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Rut(e))&&!ZIe(e)?0:e.tabIndex},kut=function(e,r){var n=JIe(e);return n<0&&r&&!ZIe(e)?0:n},Fut=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},eLe=function(e){return e.tagName==="INPUT"},Nut=function(e){return eLe(e)&&e.type==="hidden"},Uut=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},Hut=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},Qut=function(e){if(!e.name)return!0;var r=e.form||qR(e),n=function(h){return r.querySelectorAll('input[type="radio"][name="'+h+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(e.name));else try{o=n(e.name)}catch(f){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",f.message),!1}var u=Hut(o,e.form);return!u||u===e},Vut=function(e){return eLe(e)&&e.type==="radio"},zut=function(e){return Vut(e)&&!Qut(e)},Gut=function(e){var r,n=e&&qR(e),o=(r=n)===null||r===void 0?void 0:r.host,u=!1;if(n&&n!==e){var f,h,A;for(u=!!((f=o)!==null&&f!==void 0&&(h=f.ownerDocument)!==null&&h!==void 0&&h.contains(o)||e!=null&&(A=e.ownerDocument)!==null&&A!==void 0&&A.contains(e));!u&&o;){var p,g,y;n=qR(o),o=(p=n)===null||p===void 0?void 0:p.host,u=!!((g=o)!==null&&g!==void 0&&(y=g.ownerDocument)!==null&&y!==void 0&&y.contains(o))}}return u},hpe=function(e){var r=e.getBoundingClientRect(),n=r.width,o=r.height;return n===0&&o===0},jut=function(e,r){var n=r.displayCheck,o=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var u=CS.call(e,"details>summary:first-of-type"),f=u?e.parentElement:e;if(CS.call(f,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var h=e;e;){var A=e.parentElement,p=qR(e);if(A&&!A.shadowRoot&&o(A)===!0)return hpe(e);e.assignedSlot?e=e.assignedSlot:!A&&p!==e.ownerDocument?e=p.host:e=A}e=h}if(Gut(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return hpe(e);return!1},qut=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var o=r.children.item(n);if(o.tagName==="LEGEND")return CS.call(r,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}r=r.parentElement}return!1},Wut=function(e,r){return!(r.disabled||WR(r)||Nut(r)||jut(r,e)||Uut(r)||qut(r))},FW=function(e,r){return!(zut(r)||JIe(r)<0||!Wut(e,r))},$ut=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},Kut=function t(e){var r=[],n=[];return e.forEach(function(o,u){var f=!!o.scopeParent,h=f?o.scopeParent:o,A=kut(h,f),p=f?t(o.candidates):h;A===0?f?r.push.apply(r,p):r.push(h):n.push({documentOrder:u,tabIndex:A,item:o,isScope:f,content:p})}),n.sort(Fut).reduce(function(o,u){return u.isScope?o.push.apply(o,u.content):o.push(u.content),o},[]).concat(r)},GO=function(e,r){r=r||{};var n;return r.getShadowRoot?n=Out([e],r.includeContainer,{filter:FW.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:$ut}):n=Put(e,r.includeContainer,FW.bind(null,r)),Kut(n)},Yut=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return CS.call(e,jR)===!1?!1:FW(r,e)},Xut=typeof document<"u",Zut=function(){},S5=Xut?Ae.useLayoutEffect:Zut;function $R(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!$R(t[n],e[n]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){const u=o[n];if(!(u==="_owner"&&t.$$typeof)&&!$R(t[u],e[u]))return!1}return!0}return t!==t&&e!==e}function tLe(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function dpe(t,e){const r=tLe(t);return Math.round(e*r)/r}function uz(t){const e=Ae.useRef(t);return S5(()=>{e.current=t}),e}function Jut(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:u,floating:f}={},transform:h=!0,whileElementsMounted:A,open:p}=t,[g,y]=Ae.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[_,b]=Ae.useState(n);$R(_,n)||b(n);const[C,T]=Ae.useState(null),[B,L]=Ae.useState(null),P=Ae.useCallback(le=>{le!==N.current&&(N.current=le,T(le))},[]),I=Ae.useCallback(le=>{le!==H.current&&(H.current=le,L(le))},[]),O=u||C,U=f||B,N=Ae.useRef(null),H=Ae.useRef(null),z=Ae.useRef(g),G=A!=null,j=uz(A),q=uz(o),X=uz(p),Y=Ae.useCallback(()=>{if(!N.current||!H.current)return;const le={placement:e,strategy:r,middleware:_};q.current&&(le.platform=q.current),AIe(N.current,H.current,le).then(pe=>{const ie={...pe,isPositioned:X.current!==!1};te.current&&!$R(z.current,ie)&&(z.current=ie,uu.flushSync(()=>{y(ie)}))})},[_,e,r,q,X]);S5(()=>{p===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,y(le=>({...le,isPositioned:!1})))},[p]);const te=Ae.useRef(!1);S5(()=>(te.current=!0,()=>{te.current=!1}),[]),S5(()=>{if(O&&(N.current=O),U&&(H.current=U),O&&U){if(j.current)return j.current(O,U,Y);Y()}},[O,U,Y,j,G]);const K=Ae.useMemo(()=>({reference:N,floating:H,setReference:P,setFloating:I}),[P,I]),ce=Ae.useMemo(()=>({reference:O,floating:U}),[O,U]),ae=Ae.useMemo(()=>{const le={position:r,left:0,top:0};if(!ce.floating)return le;const pe=dpe(ce.floating,g.x),ie=dpe(ce.floating,g.y);return h?{...le,transform:"translate("+pe+"px, "+ie+"px)",...tLe(ce.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:pe,top:ie}},[r,h,ce.floating,g.x,g.y]);return Ae.useMemo(()=>({...g,update:Y,refs:K,elements:ce,floatingStyles:ae}),[g,Y,K,ce,ae])}const ect=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:o}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?Ove({element:n.current,padding:o}).fn(r):{}:n?Ove({element:n,padding:o}).fn(r):{}}}},rLe=(t,e)=>({...Uat(t),options:[t,e]}),tct=(t,e)=>({...Qat(t),options:[t,e]}),rct=(t,e)=>({...qat(t),options:[t,e]}),nct=(t,e)=>({...Vat(t),options:[t,e]}),ict=(t,e)=>({...zat(t),options:[t,e]}),act=(t,e)=>({...Hat(t),options:[t,e]}),oct=(t,e)=>({...Gat(t),options:[t,e]}),sct=(t,e)=>({...jat(t),options:[t,e]}),lct=(t,e)=>({...ect(t),options:[t,e]});function nLe(t){return Ae.useMemo(()=>t.every(e=>e==null)?null:e=>{t.forEach(r=>{typeof r=="function"?r(e):r!=null&&(r.current=e)})},t)}const iLe={...DR},uct=iLe.useInsertionEffect,cct=uct||(t=>t());function Vs(t){const e=Ae.useRef(()=>{});return cct(()=>{e.current=t}),Ae.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.current==null?void 0:e.current(...n)},[])}const TS="ArrowUp",hg="ArrowDown",HA="ArrowLeft",QA="ArrowRight";function CM(t,e,r){return Math.floor(t/e)!==r}function nS(t,e){return e<0||e>=t.current.length}function x5(t,e){return Qu(t,{disabledIndices:e})}function NW(t,e){return Qu(t,{decrement:!0,startingIndex:t.current.length,disabledIndices:e})}function Qu(t,e){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:u=1}=e===void 0?{}:e;const f=t.current;let h=r;do h+=n?-u:u;while(h>=0&&h<=f.length-1&&O1(f,h,o));return h}function aLe(t,e){let{event:r,orientation:n,loop:o,rtl:u,cols:f,disabledIndices:h,minIndex:A,maxIndex:p,prevIndex:g,stopEvent:y=!1}=e,_=g;if(r.key===TS){if(y&&Gu(r),g===-1)_=p;else if(_=Qu(t,{startingIndex:_,amount:f,decrement:!0,disabledIndices:h}),o&&(g-f<A||_<0)){const b=g%f,C=p%f,T=p-(C-b);C===b?_=p:_=C>b?T:T-f}nS(t,_)&&(_=g)}if(r.key===hg&&(y&&Gu(r),g===-1?_=A:(_=Qu(t,{startingIndex:g,amount:f,disabledIndices:h}),o&&g+f>p&&(_=Qu(t,{startingIndex:g%f-f,amount:f,disabledIndices:h}))),nS(t,_)&&(_=g)),n==="both"){const b=H_(g/f);r.key===(u?HA:QA)&&(y&&Gu(r),g%f!==f-1?(_=Qu(t,{startingIndex:g,disabledIndices:h}),o&&CM(_,f,b)&&(_=Qu(t,{startingIndex:g-g%f-1,disabledIndices:h}))):o&&(_=Qu(t,{startingIndex:g-g%f-1,disabledIndices:h})),CM(_,f,b)&&(_=g)),r.key===(u?QA:HA)&&(y&&Gu(r),g%f!==0?(_=Qu(t,{startingIndex:g,decrement:!0,disabledIndices:h}),o&&CM(_,f,b)&&(_=Qu(t,{startingIndex:g+(f-g%f),decrement:!0,disabledIndices:h}))):o&&(_=Qu(t,{startingIndex:g+(f-g%f),decrement:!0,disabledIndices:h})),CM(_,f,b)&&(_=g));const C=H_(p/f)===b;nS(t,_)&&(o&&C?_=r.key===(u?QA:HA)?p:Qu(t,{startingIndex:g-g%f-1,disabledIndices:h}):_=g)}return _}function oLe(t,e,r){const n=[];let o=0;return t.forEach((u,f)=>{let{width:h,height:A}=u,p=!1;for(r&&(o=0);!p;){const g=[];for(let y=0;y<h;y++)for(let _=0;_<A;_++)g.push(o+y+_*e);o%e+h<=e&&g.every(y=>n[y]==null)?(g.forEach(y=>{n[y]=f}),p=!0):o++}}),[...n]}function sLe(t,e,r,n,o){if(t===-1)return-1;const u=r.indexOf(t),f=e[t];switch(o){case"tl":return u;case"tr":return f?u+f.width-1:u;case"bl":return f?u+(f.height-1)*n:u;case"br":return r.lastIndexOf(t)}}function lLe(t,e){return e.flatMap((r,n)=>t.includes(r)?[n]:[])}function O1(t,e,r){if(r)return r.includes(e);const n=t[e];return n==null||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"}var la=typeof document<"u"?Ae.useLayoutEffect:Ae.useEffect;function fct(t,e){const r=t.compareDocumentPosition(e);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}function hct(t,e){if(t.size!==e.size)return!1;for(const[r,n]of t.entries())if(n!==e.get(r))return!1;return!0}const uLe=Ae.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function cLe(t){const{children:e,elementsRef:r,labelsRef:n}=t,[o,u]=Ae.useState(()=>new Map),f=Ae.useCallback(A=>{u(p=>new Map(p).set(A,null))},[]),h=Ae.useCallback(A=>{u(p=>{const g=new Map(p);return g.delete(A),g})},[]);return la(()=>{const A=new Map(o);Array.from(A.keys()).sort(fct).forEach((g,y)=>{A.set(g,y)}),hct(o,A)||u(A)},[o]),Ae.createElement(uLe.Provider,{value:Ae.useMemo(()=>({register:f,unregister:h,map:o,elementsRef:r,labelsRef:n}),[f,h,o,r,n])},e)}function fLe(t){t===void 0&&(t={});const{label:e}=t,{register:r,unregister:n,map:o,elementsRef:u,labelsRef:f}=Ae.useContext(uLe),[h,A]=Ae.useState(null),p=Ae.useRef(null),g=Ae.useCallback(y=>{if(p.current=y,h!==null&&(u.current[h]=y,f)){var _;const b=e!==void 0;f.current[h]=b?e:(_=y?.textContent)!=null?_:null}},[h,u,f,e]);return la(()=>{const y=p.current;if(y)return r(y),()=>{n(y)}},[r,n]),la(()=>{const y=p.current?o.get(p.current):null;y!=null&&A(y)},[o]),Ae.useMemo(()=>({ref:g,index:h??-1}),[h,g])}function hLe(t,e){return typeof t=="function"?t(e):t?Ae.cloneElement(t,e):Ae.createElement("div",e)}const dLe=Ae.createContext({activeIndex:0,onNavigate:()=>{}}),ALe=[HA,QA],vLe=[TS,hg],cz=[...ALe,...vLe],dct=Ae.forwardRef(function(e,r){const{render:n,orientation:o="both",loop:u=!0,rtl:f=!1,cols:h=1,disabledIndices:A,activeIndex:p,onNavigate:g,itemSizes:y,dense:_=!1,...b}=e,[C,T]=Ae.useState(0),B=p??C,L=Vs(g??T),P=Ae.useRef([]),I=n&&typeof n!="function"?n.props:{},O=Ae.useMemo(()=>({activeIndex:B,onNavigate:L}),[B,L]),U=h>1;function N(z){if(!cz.includes(z.key))return;let G=B;const j=x5(P,A),q=NW(P,A),X=f?HA:QA,Y=f?QA:HA;if(U){const le=y||Array.from({length:P.current.length},()=>({width:1,height:1})),pe=oLe(le,h,_),ie=pe.findIndex(oe=>oe!=null&&!O1(P.current,oe,A)),he=pe.reduce((oe,ye,_e)=>ye!=null&&!O1(P.current,ye,A)?_e:oe,-1),re=pe[aLe({current:pe.map(oe=>oe?P.current[oe]:null)},{event:z,orientation:o,loop:u,rtl:f,cols:h,disabledIndices:lLe([...A||P.current.map((oe,ye)=>O1(P.current,ye)?ye:void 0),void 0],pe),minIndex:ie,maxIndex:he,prevIndex:sLe(B>q?j:B,le,pe,h,z.key===hg?"bl":z.key===X?"tr":"tl")})];re!=null&&(G=re)}const te={horizontal:[X],vertical:[hg],both:[X,hg]}[o],K={horizontal:[Y],vertical:[TS],both:[Y,TS]}[o],ce=U?cz:{horizontal:ALe,vertical:vLe,both:cz}[o];if(G===B&&[...te,...K].includes(z.key)&&(u&&G===q&&te.includes(z.key)?G=j:u&&G===j&&K.includes(z.key)?G=q:G=Qu(P,{startingIndex:G,decrement:K.includes(z.key),disabledIndices:A})),G!==B&&!nS(P,G)){var ae;z.stopPropagation(),ce.includes(z.key)&&z.preventDefault(),L(G),(ae=P.current[G])==null||ae.focus()}}const H={...b,...I,ref:r,"aria-orientation":o==="both"?void 0:o,onKeyDown(z){b.onKeyDown==null||b.onKeyDown(z),I.onKeyDown==null||I.onKeyDown(z),N(z)}};return Ae.createElement(dLe.Provider,{value:O},Ae.createElement(cLe,{elementsRef:P},hLe(n,H)))}),Act=Ae.forwardRef(function(e,r){const{render:n,...o}=e,u=n&&typeof n!="function"?n.props:{},{activeIndex:f,onNavigate:h}=Ae.useContext(dLe),{ref:A,index:p}=fLe(),g=nLe([A,r,u.ref]),y=f===p,_={...o,...u,ref:g,tabIndex:y?0:-1,"data-active":y?"":void 0,onFocus(b){o.onFocus==null||o.onFocus(b),u.onFocus==null||u.onFocus(b),h(p)}};return hLe(n,_)});function ES(){return ES=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ES.apply(this,arguments)}let Ape=!1,vct=0;const vpe=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+vct++;function pct(){const[t,e]=Ae.useState(()=>Ape?vpe():void 0);return la(()=>{t==null&&e(vpe())},[]),Ae.useEffect(()=>{Ape=!0},[]),t}const gct=iLe.useId,XS=gct||pct,mct=Ae.forwardRef(function(e,r){const{context:{placement:n,elements:{floating:o},middlewareData:{arrow:u,shift:f}},width:h=14,height:A=7,tipRadius:p=0,strokeWidth:g=0,staticOffset:y,stroke:_,d:b,style:{transform:C,...T}={},...B}=e,L=XS(),[P,I]=Ae.useState(!1);if(la(()=>{if(!o)return;Mh(o).direction==="rtl"&&I(!0)},[o]),!o)return null;const[O,U]=n.split("-"),N=O==="top"||O==="bottom";let H=y;(N&&f!=null&&f.x||!N&&f!=null&&f.y)&&(H=null);const z=g*2,G=z/2,j=h/2*(p/-8+1),q=A/2*p/4,X=!!b,Y=H&&U==="end"?"bottom":"top";let te=H&&U==="end"?"right":"left";H&&P&&(te=U==="end"?"left":"right");const K=u?.x!=null?H||u.x:"",ce=u?.y!=null?H||u.y:"",ae=b||"M0,0"+(" H"+h)+(" L"+(h-j)+","+(A-q))+(" Q"+h/2+","+A+" "+j+","+(A-q))+" Z",le={top:X?"rotate(180deg)":"",left:X?"rotate(90deg)":"rotate(-90deg)",bottom:X?"":"rotate(180deg)",right:X?"rotate(-90deg)":"rotate(90deg)"}[O];return Ae.createElement("svg",ES({},B,{"aria-hidden":!0,ref:r,width:X?h:h+z,height:h,viewBox:"0 0 "+h+" "+(A>h?A:h),style:{position:"absolute",pointerEvents:"none",[te]:K,[Y]:ce,[O]:N||X?"100%":"calc(100% - "+z/2+"px)",transform:[le,C].filter(pe=>!!pe).join(" "),...T}}),z>0&&Ae.createElement("path",{clipPath:"url(#"+L+")",fill:"none",stroke:_,strokeWidth:z+(b?0:1),d:ae}),Ae.createElement("path",{stroke:z&&!b?B.fill:"none",d:ae}),Ae.createElement("clipPath",{id:L},Ae.createElement("rect",{x:-G,y:G*(X?-1:1),width:h+z,height:h})))});function pLe(){const t=new Map;return{emit(e,r){var n;(n=t.get(e))==null||n.forEach(o=>o(r))},on(e,r){t.set(e,[...t.get(e)||[],r])},off(e,r){var n;t.set(e,((n=t.get(e))==null?void 0:n.filter(o=>o!==r))||[])}}}const gLe=Ae.createContext(null),mLe=Ae.createContext(null),dw=()=>{var t;return((t=Ae.useContext(gLe))==null?void 0:t.id)||null},Aw=()=>Ae.useContext(mLe);function yct(t){const e=XS(),r=Aw(),n=dw(),o=t||n;return la(()=>{const u={id:e,parentId:o};return r?.addNode(u),()=>{r?.removeNode(u)}},[r,e,o]),e}function wct(t){const{children:e,id:r}=t,n=dw();return Ae.createElement(gLe.Provider,{value:Ae.useMemo(()=>({id:r,parentId:n}),[r,n])},e)}function bct(t){const{children:e}=t,r=Ae.useRef([]),n=Ae.useCallback(f=>{r.current=[...r.current,f]},[]),o=Ae.useCallback(f=>{r.current=r.current.filter(h=>h!==f)},[]),u=Ae.useState(()=>pLe())[0];return Ae.createElement(mLe.Provider,{value:Ae.useMemo(()=>({nodesRef:r,addNode:n,removeNode:o,events:u}),[n,o,u])},e)}function K1(t){return"data-floating-ui-"+t}function $u(t){const e=Ae.useRef(t);return la(()=>{e.current=t}),e}const ppe=K1("safe-polygon");function C5(t,e,r){return r&&!xS(r)?0:typeof t=="number"?t:t?.[e]}function _ct(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,events:u,elements:f}=t,{enabled:h=!0,delay:A=0,handleClose:p=null,mouseOnly:g=!1,restMs:y=0,move:_=!0}=e,b=Aw(),C=dw(),T=$u(p),B=$u(A),L=$u(r),P=Ae.useRef(),I=Ae.useRef(-1),O=Ae.useRef(),U=Ae.useRef(-1),N=Ae.useRef(!0),H=Ae.useRef(!1),z=Ae.useRef(()=>{}),G=Ae.useRef(!1),j=Ae.useCallback(()=>{var ae;const le=(ae=o.current.openEvent)==null?void 0:ae.type;return le?.includes("mouse")&&le!=="mousedown"},[o]);Ae.useEffect(()=>{if(!h)return;function ae(le){let{open:pe}=le;pe||(clearTimeout(I.current),clearTimeout(U.current),N.current=!0,G.current=!1)}return u.on("openchange",ae),()=>{u.off("openchange",ae)}},[h,u]),Ae.useEffect(()=>{if(!h||!T.current||!r)return;function ae(pe){j()&&n(!1,pe,"hover")}const le=qu(f.floating).documentElement;return le.addEventListener("mouseleave",ae),()=>{le.removeEventListener("mouseleave",ae)}},[f.floating,r,n,h,T,j]);const q=Ae.useCallback(function(ae,le,pe){le===void 0&&(le=!0),pe===void 0&&(pe="hover");const ie=C5(B.current,"close",P.current);ie&&!O.current?(clearTimeout(I.current),I.current=window.setTimeout(()=>n(!1,ae,pe),ie)):le&&(clearTimeout(I.current),n(!1,ae,pe))},[B,n]),X=Vs(()=>{z.current(),O.current=void 0}),Y=Vs(()=>{if(H.current){const ae=qu(f.floating).body;ae.style.pointerEvents="",ae.removeAttribute(ppe),H.current=!1}}),te=Vs(()=>o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1);Ae.useEffect(()=>{if(!h)return;function ae(he){if(clearTimeout(I.current),N.current=!1,g&&!xS(P.current)||y>0&&!C5(B.current,"open"))return;const re=C5(B.current,"open",P.current);re?I.current=window.setTimeout(()=>{L.current||n(!0,he,"hover")},re):r||n(!0,he,"hover")}function le(he){if(te())return;z.current();const re=qu(f.floating);if(clearTimeout(U.current),G.current=!1,T.current&&o.current.floatingContext){r||clearTimeout(I.current),O.current=T.current({...o.current.floatingContext,tree:b,x:he.clientX,y:he.clientY,onClose(){Y(),X(),te()||q(he,!0,"safe-polygon")}});const ye=O.current;re.addEventListener("mousemove",ye),z.current=()=>{re.removeEventListener("mousemove",ye)};return}(P.current==="touch"?!hl(f.floating,he.relatedTarget):!0)&&q(he)}function pe(he){te()||o.current.floatingContext&&(T.current==null||T.current({...o.current.floatingContext,tree:b,x:he.clientX,y:he.clientY,onClose(){Y(),X(),te()||q(he)}})(he))}if(Oo(f.domReference)){var ie;const he=f.domReference;return r&&he.addEventListener("mouseleave",pe),(ie=f.floating)==null||ie.addEventListener("mouseleave",pe),_&&he.addEventListener("mousemove",ae,{once:!0}),he.addEventListener("mouseenter",ae),he.addEventListener("mouseleave",le),()=>{var re;r&&he.removeEventListener("mouseleave",pe),(re=f.floating)==null||re.removeEventListener("mouseleave",pe),_&&he.removeEventListener("mousemove",ae),he.removeEventListener("mouseenter",ae),he.removeEventListener("mouseleave",le)}}},[f,h,t,g,y,_,q,X,Y,n,r,L,b,B,T,o,te]),la(()=>{var ae;if(h&&r&&(ae=T.current)!=null&&ae.__options.blockPointerEvents&&j()){H.current=!0;const pe=f.floating;if(Oo(f.domReference)&&pe){var le;const ie=qu(f.floating).body;ie.setAttribute(ppe,"");const he=f.domReference,re=b==null||(le=b.nodesRef.current.find(oe=>oe.id===C))==null||(le=le.context)==null?void 0:le.elements.floating;return re&&(re.style.pointerEvents=""),ie.style.pointerEvents="none",he.style.pointerEvents="auto",pe.style.pointerEvents="auto",()=>{ie.style.pointerEvents="",he.style.pointerEvents="",pe.style.pointerEvents=""}}}},[h,r,C,f,b,T,j]),la(()=>{r||(P.current=void 0,G.current=!1,X(),Y())},[r,X,Y]),Ae.useEffect(()=>()=>{X(),clearTimeout(I.current),clearTimeout(U.current),Y()},[h,f.domReference,X,Y]);const K=Ae.useMemo(()=>{function ae(le){P.current=le.pointerType}return{onPointerDown:ae,onPointerEnter:ae,onMouseMove(le){const{nativeEvent:pe}=le;function ie(){!N.current&&!L.current&&n(!0,pe,"hover")}g&&!xS(P.current)||r||y===0||G.current&&le.movementX**2+le.movementY**2<2||(clearTimeout(U.current),P.current==="touch"?ie():(G.current=!0,U.current=window.setTimeout(ie,y)))}}},[g,n,r,L,y]),ce=Ae.useMemo(()=>({onMouseEnter(){clearTimeout(I.current)},onMouseLeave(ae){te()||q(ae.nativeEvent,!1)}}),[q,te]);return Ae.useMemo(()=>h?{reference:K,floating:ce}:{},[h,K,ce])}const UW=()=>{},yLe=Ae.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:UW,setState:UW,isInstantPhase:!1}),wLe=()=>Ae.useContext(yLe);function Sct(t){const{children:e,delay:r,timeoutMs:n=0}=t,[o,u]=Ae.useReducer((A,p)=>({...A,...p}),{delay:r,timeoutMs:n,initialDelay:r,currentId:null,isInstantPhase:!1}),f=Ae.useRef(null),h=Ae.useCallback(A=>{u({currentId:A})},[]);return la(()=>{o.currentId?f.current===null?f.current=o.currentId:o.isInstantPhase||u({isInstantPhase:!0}):(o.isInstantPhase&&u({isInstantPhase:!1}),f.current=null)},[o.currentId,o.isInstantPhase]),Ae.createElement(yLe.Provider,{value:Ae.useMemo(()=>({...o,setState:u,setCurrentId:h}),[o,h])},e)}function xct(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,floatingId:o}=t,{id:u,enabled:f=!0}=e,h=u??o,A=wLe(),{currentId:p,setCurrentId:g,initialDelay:y,setState:_,timeoutMs:b}=A;return la(()=>{f&&p&&(_({delay:{open:1,close:C5(y,"close")}}),p!==h&&n(!1))},[f,h,n,_,p,y]),la(()=>{function C(){n(!1),_({delay:y,currentId:null})}if(f&&p&&!r&&p===h){if(b){const T=window.setTimeout(C,b);return()=>{clearTimeout(T)}}C()}},[f,r,_,p,h,n,y,b]),la(()=>{f&&(g===UW||!r||g(h))},[f,r,g,h]),A}let gpe=0;function Gm(t,e){e===void 0&&(e={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=e;n&&cancelAnimationFrame(gpe);const u=()=>t?.focus({preventScroll:r});o?u():gpe=requestAnimationFrame(u)}function Cct(t,e){var r;let n=[],o=(r=t.find(u=>u.id===e))==null?void 0:r.parentId;for(;o;){const u=t.find(f=>f.id===o);o=u?.parentId,u&&(n=n.concat(u))}return n}function k1(t,e){let r=t.filter(o=>{var u;return o.parentId===e&&((u=o.context)==null?void 0:u.open)}),n=r;for(;n.length;)n=t.filter(o=>{var u;return(u=n)==null?void 0:u.some(f=>{var h;return o.parentId===f.id&&((h=o.context)==null?void 0:h.open)})}),r=r.concat(n);return r}function Tct(t,e){let r,n=-1;function o(u,f){f>n&&(r=u,n=f),k1(t,u).forEach(A=>{o(A.id,f+1)})}return o(e,0),t.find(u=>u.id===r)}let Xb=new WeakMap,TM=new WeakSet,EM={},fz=0;const Ect=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,bLe=t=>t&&(t.host||bLe(t.parentNode)),Bct=(t,e)=>e.map(r=>{if(t.contains(r))return r;const n=bLe(r);return t.contains(n)?n:null}).filter(r=>r!=null);function Ict(t,e,r,n){const o="data-floating-ui-inert",u=n?"inert":r?"aria-hidden":null,f=Bct(e,t),h=new Set,A=new Set(f),p=[];EM[o]||(EM[o]=new WeakMap);const g=EM[o];f.forEach(y),_(e),h.clear();function y(b){!b||h.has(b)||(h.add(b),b.parentNode&&y(b.parentNode))}function _(b){!b||A.has(b)||[].forEach.call(b.children,C=>{if(Ey(C)!=="script")if(h.has(C))_(C);else{const T=u?C.getAttribute(u):null,B=T!==null&&T!=="false",L=(Xb.get(C)||0)+1,P=(g.get(C)||0)+1;Xb.set(C,L),g.set(C,P),p.push(C),L===1&&B&&TM.add(C),P===1&&C.setAttribute(o,""),!B&&u&&C.setAttribute(u,"true")}})}return fz++,()=>{p.forEach(b=>{const C=(Xb.get(b)||0)-1,T=(g.get(b)||0)-1;Xb.set(b,C),g.set(b,T),C||(!TM.has(b)&&u&&b.removeAttribute(u),TM.delete(b)),T||b.removeAttribute(o)}),fz--,fz||(Xb=new WeakMap,Xb=new WeakMap,TM=new WeakSet,EM={})}}function mpe(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=qu(t[0]).body;return Ict(t.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,e,r)}const u2=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function _Le(t,e){const r=GO(t,u2());e==="prev"&&r.reverse();const n=r.indexOf(DA(qu(t)));return r.slice(n+1)[0]}function SLe(){return _Le(document.body,"next")}function xLe(){return _Le(document.body,"prev")}function xE(t,e){const r=e||t.currentTarget,n=t.relatedTarget;return!n||!hl(r,n)}function Lct(t){GO(t,u2()).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function ype(t){t.querySelectorAll("[data-tabindex]").forEach(r=>{const n=r.dataset.tabindex;delete r.dataset.tabindex,n?r.setAttribute("tabindex",n):r.removeAttribute("tabindex")})}const jO={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let Mct;function wpe(t){t.key==="Tab"&&(t.target,clearTimeout(Mct))}const KR=Ae.forwardRef(function(e,r){const[n,o]=Ae.useState();la(()=>(vX()&&o("button"),document.addEventListener("keydown",wpe),()=>{document.removeEventListener("keydown",wpe)}),[]);const u={ref:r,tabIndex:0,role:n,"aria-hidden":n?void 0:!0,[K1("focus-guard")]:"",style:jO};return Ae.createElement("span",ES({},e,u))}),CLe=Ae.createContext(null),bpe=K1("portal");function TLe(t){t===void 0&&(t={});const{id:e,root:r}=t,n=XS(),o=ELe(),[u,f]=Ae.useState(null),h=Ae.useRef(null);return la(()=>()=>{u?.remove(),queueMicrotask(()=>{h.current=null})},[u]),la(()=>{if(!n||h.current)return;const A=e?document.getElementById(e):null;if(!A)return;const p=document.createElement("div");p.id=n,p.setAttribute(bpe,""),A.appendChild(p),h.current=p,f(p)},[e,n]),la(()=>{if(r===null||!n||h.current)return;let A=r||o?.portalNode;A&&!Oo(A)&&(A=A.current),A=A||document.body;let p=null;e&&(p=document.createElement("div"),p.id=e,A.appendChild(p));const g=document.createElement("div");g.id=n,g.setAttribute(bpe,""),A=p||A,A.appendChild(g),h.current=g,f(g)},[e,r,n,o]),u}function Dct(t){const{children:e,id:r,root:n,preserveTabOrder:o=!0}=t,u=TLe({id:r,root:n}),[f,h]=Ae.useState(null),A=Ae.useRef(null),p=Ae.useRef(null),g=Ae.useRef(null),y=Ae.useRef(null),_=f?.modal,b=f?.open,C=!!f&&!f.modal&&f.open&&o&&!!(n||u);return Ae.useEffect(()=>{if(!u||!o||_)return;function T(B){u&&xE(B)&&(B.type==="focusin"?ype:Lct)(u)}return u.addEventListener("focusin",T,!0),u.addEventListener("focusout",T,!0),()=>{u.removeEventListener("focusin",T,!0),u.removeEventListener("focusout",T,!0)}},[u,o,_]),Ae.useEffect(()=>{u&&(b||ype(u))},[b,u]),Ae.createElement(CLe.Provider,{value:Ae.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:A,afterOutsideRef:p,beforeInsideRef:g,afterInsideRef:y,portalNode:u,setFocusManagerState:h}),[o,u])},C&&u&&Ae.createElement(KR,{"data-type":"outside",ref:A,onFocus:T=>{if(xE(T,u)){var B;(B=g.current)==null||B.focus()}else{const L=xLe()||f?.refs.domReference.current;L?.focus()}}}),C&&u&&Ae.createElement("span",{"aria-owns":u.id,style:jO}),u&&uu.createPortal(e,u),C&&u&&Ae.createElement(KR,{"data-type":"outside",ref:p,onFocus:T=>{if(xE(T,u)){var B;(B=y.current)==null||B.focus()}else{const L=SLe()||f?.refs.domReference.current;L?.focus(),f?.closeOnFocusOut&&f?.onOpenChange(!1,T.nativeEvent,"focus-out")}}}))}const ELe=()=>Ae.useContext(CLe),HW="data-floating-ui-focusable";function BLe(t){return t?t.hasAttribute(HW)?t:t.querySelector("["+HW+"]")||t:null}const _pe=20;let v1=[];function hz(t){v1=v1.filter(r=>r.isConnected);let e=t;if(!(!e||Ey(e)==="body")){if(!Yut(e,u2())){const r=GO(e,u2())[0];r&&(e=r)}v1.push(e),v1.length>_pe&&(v1=v1.slice(-_pe))}}function Spe(){return v1.slice().reverse().find(t=>t.isConnected)}const Rct=Ae.forwardRef(function(e,r){return Ae.createElement("button",ES({},e,{type:"button",ref:r,tabIndex:-1,style:jO}))});function Pct(t){const{context:e,children:r,disabled:n=!1,order:o=["content"],guards:u=!0,initialFocus:f=0,returnFocus:h=!0,restoreFocus:A=!1,modal:p=!0,visuallyHiddenDismiss:g=!1,closeOnFocusOut:y=!0}=t,{open:_,refs:b,nodeId:C,onOpenChange:T,events:B,dataRef:L,floatingId:P,elements:{domReference:I,floating:O}}=e,U=typeof f=="number"&&f<0,N=kW(I)&&U,H=Ect()?u:!0,z=$u(o),G=$u(f),j=$u(h),q=Aw(),X=ELe(),Y=Ae.useRef(null),te=Ae.useRef(null),K=Ae.useRef(!1),ce=Ae.useRef(!1),ae=Ae.useRef(-1),le=X!=null,pe=BLe(O),ie=Vs(function(ye){return ye===void 0&&(ye=pe),ye?GO(ye,u2()):[]}),he=Vs(ye=>{const _e=ie(ye);return z.current.map(Ce=>I&&Ce==="reference"?I:pe&&Ce==="floating"?pe:_e).filter(Boolean).flat()});Ae.useEffect(()=>{if(n||!p)return;function ye(Ce){if(Ce.key==="Tab"){hl(pe,DA(qu(pe)))&&ie().length===0&&!N&&Gu(Ce);const ne=he(),xe=Gv(Ce);z.current[0]==="reference"&&xe===I&&(Gu(Ce),Ce.shiftKey?Gm(ne[ne.length-1]):Gm(ne[1])),z.current[1]==="floating"&&xe===pe&&Ce.shiftKey&&(Gu(Ce),Gm(ne[0]))}}const _e=qu(pe);return _e.addEventListener("keydown",ye),()=>{_e.removeEventListener("keydown",ye)}},[n,I,pe,p,z,N,ie,he]),Ae.useEffect(()=>{if(n||!O)return;function ye(_e){const Ce=Gv(_e),xe=ie().indexOf(Ce);xe!==-1&&(ae.current=xe)}return O.addEventListener("focusin",ye),()=>{O.removeEventListener("focusin",ye)}},[n,O,ie]),Ae.useEffect(()=>{if(n||!y)return;function ye(){ce.current=!0,setTimeout(()=>{ce.current=!1})}function _e(Ce){const ne=Ce.relatedTarget;queueMicrotask(()=>{const xe=!(hl(I,ne)||hl(O,ne)||hl(ne,O)||hl(X?.portalNode,ne)||ne!=null&&ne.hasAttribute(K1("focus-guard"))||q&&(k1(q.nodesRef.current,C).find(De=>{var ze,Ye;return hl((ze=De.context)==null?void 0:ze.elements.floating,ne)||hl((Ye=De.context)==null?void 0:Ye.elements.domReference,ne)})||Cct(q.nodesRef.current,C).find(De=>{var ze,Ye;return((ze=De.context)==null?void 0:ze.elements.floating)===ne||((Ye=De.context)==null?void 0:Ye.elements.domReference)===ne})));if(A&&xe&&DA(qu(pe))===qu(pe).body){Fl(pe)&&pe.focus();const De=ae.current,ze=ie(),Ye=ze[De]||ze[ze.length-1]||pe;Fl(Ye)&&Ye.focus()}(N||!p)&&ne&&xe&&!ce.current&&ne!==Spe()&&(K.current=!0,T(!1,Ce,"focus-out"))})}if(O&&Fl(I))return I.addEventListener("focusout",_e),I.addEventListener("pointerdown",ye),O.addEventListener("focusout",_e),()=>{I.removeEventListener("focusout",_e),I.removeEventListener("pointerdown",ye),O.removeEventListener("focusout",_e)}},[n,I,O,pe,p,C,q,X,T,y,A,ie,N]),Ae.useEffect(()=>{var ye;if(n)return;const _e=Array.from((X==null||(ye=X.portalNode)==null?void 0:ye.querySelectorAll("["+K1("portal")+"]"))||[]);if(O){const Ce=[O,..._e,Y.current,te.current,z.current.includes("reference")||N?I:null].filter(xe=>xe!=null),ne=p||N?mpe(Ce,H,!H):mpe(Ce);return()=>{ne()}}},[n,I,O,p,z,X,N,H]),la(()=>{if(n||!Fl(pe))return;const ye=qu(pe),_e=DA(ye);queueMicrotask(()=>{const Ce=he(pe),ne=G.current,xe=(typeof ne=="number"?Ce[ne]:ne.current)||pe,De=hl(pe,_e);!U&&!De&&_&&Gm(xe,{preventScroll:xe===pe})})},[n,_,pe,U,he,G]),la(()=>{if(n||!pe)return;let ye=!1;const _e=qu(pe),Ce=DA(_e);let xe=L.current.openEvent;hz(Ce);function De(Ne){let{open:yt,reason:Ue,event:ue,nested:Qe}=Ne;yt&&(xe=ue),Ue==="escape-key"&&b.domReference.current&&hz(b.domReference.current),Ue==="hover"&&ue.type==="mouseleave"&&(K.current=!0),Ue==="outside-press"&&(Qe?(K.current=!1,ye=!0):K.current=!(KIe(ue)||AX(ue)))}B.on("openchange",De);const ze=_e.createElement("span");ze.setAttribute("tabindex","-1"),ze.setAttribute("aria-hidden","true"),Object.assign(ze.style,jO),le&&I&&I.insertAdjacentElement("afterend",ze);function Ye(){return typeof j.current=="boolean"?Spe()||ze:j.current.current||ze}return()=>{B.off("openchange",De);const Ne=DA(_e),yt=hl(O,Ne)||q&&k1(q.nodesRef.current,C).some(Qe=>{var qe;return hl((qe=Qe.context)==null?void 0:qe.elements.floating,Ne)});(yt||xe&&["click","mousedown"].includes(xe.type))&&b.domReference.current&&hz(b.domReference.current);const ue=Ye();queueMicrotask(()=>{j.current&&!K.current&&Fl(ue)&&(!(ue!==Ne&&Ne!==_e.body)||yt)&&ue.focus({preventScroll:ye}),ze.remove()})}},[n,O,pe,j,L,b,B,q,C,le,I]),Ae.useEffect(()=>{queueMicrotask(()=>{K.current=!1})},[n]),la(()=>{if(!n&&X)return X.setFocusManagerState({modal:p,closeOnFocusOut:y,open:_,onOpenChange:T,refs:b}),()=>{X.setFocusManagerState(null)}},[n,X,p,_,T,b,y]),la(()=>{if(n||!pe||typeof MutationObserver!="function"||U)return;const ye=()=>{const Ce=pe.getAttribute("tabindex"),ne=ie(),xe=DA(qu(O)),De=ne.indexOf(xe);De!==-1&&(ae.current=De),z.current.includes("floating")||xe!==b.domReference.current&&ne.length===0?Ce!=="0"&&pe.setAttribute("tabindex","0"):Ce!=="-1"&&pe.setAttribute("tabindex","-1")};ye();const _e=new MutationObserver(ye);return _e.observe(pe,{childList:!0,subtree:!0,attributes:!0}),()=>{_e.disconnect()}},[n,O,pe,b,z,ie,U]);function re(ye){return n||!g||!p?null:Ae.createElement(Rct,{ref:ye==="start"?Y:te,onClick:_e=>T(!1,_e.nativeEvent)},typeof g=="string"?g:"Dismiss")}const oe=!n&&H&&(p?!N:!0)&&(le||p);return Ae.createElement(Ae.Fragment,null,oe&&Ae.createElement(KR,{"data-type":"inside",ref:X?.beforeInsideRef,onFocus:ye=>{if(p){const Ce=he();Gm(o[0]==="reference"?Ce[0]:Ce[Ce.length-1])}else if(X!=null&&X.preserveTabOrder&&X.portalNode)if(K.current=!1,xE(ye,X.portalNode)){const Ce=SLe()||I;Ce?.focus()}else{var _e;(_e=X.beforeOutsideRef.current)==null||_e.focus()}}}),!N&&re("start"),r,re("end"),oe&&Ae.createElement(KR,{"data-type":"inside",ref:X?.afterInsideRef,onFocus:ye=>{if(p)Gm(he()[0]);else if(X!=null&&X.preserveTabOrder&&X.portalNode)if(y&&(K.current=!0),xE(ye,X.portalNode)){const Ce=xLe()||I;Ce?.focus()}else{var _e;(_e=X.afterOutsideRef.current)==null||_e.focus()}}}))}let BM=0;function Oct(){const t=/iP(hone|ad|od)|iOS/.test(hX()),e=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,u=e.left?parseFloat(e.left):window.scrollX,f=e.top?parseFloat(e.top):window.scrollY;if(e.overflow="hidden",o&&(e[n]=o+"px"),t){var h,A;const p=((h=window.visualViewport)==null?void 0:h.offsetLeft)||0,g=((A=window.visualViewport)==null?void 0:A.offsetTop)||0;Object.assign(e,{position:"fixed",top:-(f-Math.floor(g))+"px",left:-(u-Math.floor(p))+"px",right:"0"})}return()=>{Object.assign(e,{overflow:"",[n]:""}),t&&(Object.assign(e,{position:"",top:"",left:"",right:""}),window.scrollTo(u,f))}}let xpe=()=>{};const kct=Ae.forwardRef(function(e,r){const{lockScroll:n=!1,...o}=e;return la(()=>{if(n)return BM++,BM===1&&(xpe=Oct()),()=>{BM--,BM===0&&xpe()}},[n]),Ae.createElement("div",ES({ref:r},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))});function Cpe(t){return Fl(t.target)&&t.target.tagName==="BUTTON"}function Tpe(t){return pX(t)}function Fct(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:u}}=t,{enabled:f=!0,event:h="click",toggle:A=!0,ignoreMouse:p=!1,keyboardHandlers:g=!0,stickIfOpen:y=!0}=e,_=Ae.useRef(),b=Ae.useRef(!1),C=Ae.useMemo(()=>({onPointerDown(T){_.current=T.pointerType},onMouseDown(T){const B=_.current;T.button===0&&h!=="click"&&(xS(B,!0)&&p||(r&&A&&(!(o.current.openEvent&&y)||o.current.openEvent.type==="mousedown")?n(!1,T.nativeEvent,"click"):(T.preventDefault(),n(!0,T.nativeEvent,"click"))))},onClick(T){const B=_.current;if(h==="mousedown"&&_.current){_.current=void 0;return}xS(B,!0)&&p||(r&&A&&(!(o.current.openEvent&&y)||o.current.openEvent.type==="click")?n(!1,T.nativeEvent,"click"):n(!0,T.nativeEvent,"click"))},onKeyDown(T){_.current=void 0,!(T.defaultPrevented||!g||Cpe(T))&&(T.key===" "&&!Tpe(u)&&(T.preventDefault(),b.current=!0),T.key==="Enter"&&n(!(r&&A),T.nativeEvent,"click"))},onKeyUp(T){T.defaultPrevented||!g||Cpe(T)||Tpe(u)||T.key===" "&&b.current&&(b.current=!1,n(!(r&&A),T.nativeEvent,"click"))}}),[o,u,h,p,g,n,r,y,A]);return Ae.useMemo(()=>f?{reference:C}:{},[f,C])}function Nct(t,e){let r=null,n=null,o=!1;return{contextElement:t||void 0,getBoundingClientRect(){var u;const f=t?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},h=e.axis==="x"||e.axis==="both",A=e.axis==="y"||e.axis==="both",p=["mouseenter","mousemove"].includes(((u=e.dataRef.current.openEvent)==null?void 0:u.type)||"")&&e.pointerType!=="touch";let g=f.width,y=f.height,_=f.x,b=f.y;return r==null&&e.x&&h&&(r=f.x-e.x),n==null&&e.y&&A&&(n=f.y-e.y),_-=r||0,b-=n||0,g=0,y=0,!o||p?(g=e.axis==="y"?f.width:0,y=e.axis==="x"?f.height:0,_=h&&e.x!=null?e.x:_,b=A&&e.y!=null?e.y:b):o&&!p&&(y=e.axis==="x"?f.height:y,g=e.axis==="y"?f.width:g),o=!0,{width:g,height:y,x:_,y:b,top:b,right:_+g,bottom:b+y,left:_}}}}function Epe(t){return t!=null&&t.clientX!=null}function Uct(t,e){e===void 0&&(e={});const{open:r,dataRef:n,elements:{floating:o,domReference:u},refs:f}=t,{enabled:h=!0,axis:A="both",x:p=null,y:g=null}=e,y=Ae.useRef(!1),_=Ae.useRef(null),[b,C]=Ae.useState(),[T,B]=Ae.useState([]),L=Vs((N,H)=>{y.current||n.current.openEvent&&!Epe(n.current.openEvent)||f.setPositionReference(Nct(u,{x:N,y:H,axis:A,dataRef:n,pointerType:b}))}),P=Vs(N=>{p!=null||g!=null||(r?_.current||B([]):L(N.clientX,N.clientY))}),I=xS(b)?o:r,O=Ae.useCallback(()=>{if(!I||!h||p!=null||g!=null)return;const N=cf(o);function H(z){const G=Gv(z);hl(o,G)?(N.removeEventListener("mousemove",H),_.current=null):L(z.clientX,z.clientY)}if(!n.current.openEvent||Epe(n.current.openEvent)){N.addEventListener("mousemove",H);const z=()=>{N.removeEventListener("mousemove",H),_.current=null};return _.current=z,z}f.setPositionReference(u)},[I,h,p,g,o,n,f,u,L]);Ae.useEffect(()=>O(),[O,T]),Ae.useEffect(()=>{h&&!o&&(y.current=!1)},[h,o]),Ae.useEffect(()=>{!h&&r&&(y.current=!0)},[h,r]),la(()=>{h&&(p!=null||g!=null)&&(y.current=!1,L(p,g))},[h,p,g,L]);const U=Ae.useMemo(()=>{function N(H){let{pointerType:z}=H;C(z)}return{onPointerDown:N,onPointerEnter:N,onMouseMove:P,onMouseEnter:P}},[P]);return Ae.useMemo(()=>h?{reference:U}:{},[h,U])}const Hct={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Qct={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Bpe=t=>{var e,r;return{escapeKey:typeof t=="boolean"?t:(e=t?.escapeKey)!=null?e:!1,outsidePress:typeof t=="boolean"?t:(r=t?.outsidePress)!=null?r:!0}};function Vct(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,elements:o,dataRef:u}=t,{enabled:f=!0,escapeKey:h=!0,outsidePress:A=!0,outsidePressEvent:p="pointerdown",referencePress:g=!1,referencePressEvent:y="pointerdown",ancestorScroll:_=!1,bubbles:b,capture:C}=e,T=Aw(),B=Vs(typeof A=="function"?A:()=>!1),L=typeof A=="function"?B:A,P=Ae.useRef(!1),I=Ae.useRef(!1),{escapeKey:O,outsidePress:U}=Bpe(b),{escapeKey:N,outsidePress:H}=Bpe(C),z=Ae.useRef(!1),G=Vs(K=>{var ce;if(!r||!f||!h||K.key!=="Escape"||z.current)return;const ae=(ce=u.current.floatingContext)==null?void 0:ce.nodeId,le=T?k1(T.nodesRef.current,ae):[];if(!O&&(K.stopPropagation(),le.length>0)){let pe=!0;if(le.forEach(ie=>{var he;if((he=ie.context)!=null&&he.open&&!ie.context.dataRef.current.__escapeKeyBubbles){pe=!1;return}}),!pe)return}n(!1,Iut(K)?K.nativeEvent:K,"escape-key")}),j=Vs(K=>{var ce;const ae=()=>{var le;G(K),(le=Gv(K))==null||le.removeEventListener("keydown",ae)};(ce=Gv(K))==null||ce.addEventListener("keydown",ae)}),q=Vs(K=>{var ce;const ae=P.current;P.current=!1;const le=I.current;if(I.current=!1,p==="click"&&le||ae||typeof L=="function"&&!L(K))return;const pe=Gv(K),ie="["+K1("inert")+"]",he=qu(o.floating).querySelectorAll(ie);let re=Oo(pe)?pe:null;for(;re&&!yy(re);){const Ce=mg(re);if(yy(Ce)||!Oo(Ce))break;re=Ce}if(he.length&&Oo(pe)&&!Lut(pe)&&!hl(pe,o.floating)&&Array.from(he).every(Ce=>!hl(re,Ce)))return;if(Fl(pe)&&te){const Ce=pe.clientWidth>0&&pe.scrollWidth>pe.clientWidth,ne=pe.clientHeight>0&&pe.scrollHeight>pe.clientHeight;let xe=ne&&K.offsetX>pe.clientWidth;if(ne&&Mh(pe).direction==="rtl"&&(xe=K.offsetX<=pe.offsetWidth-pe.clientWidth),xe||Ce&&K.offsetY>pe.clientHeight)return}const oe=(ce=u.current.floatingContext)==null?void 0:ce.nodeId,ye=T&&k1(T.nodesRef.current,oe).some(Ce=>{var ne;return lz(K,(ne=Ce.context)==null?void 0:ne.elements.floating)});if(lz(K,o.floating)||lz(K,o.domReference)||ye)return;const _e=T?k1(T.nodesRef.current,oe):[];if(_e.length>0){let Ce=!0;if(_e.forEach(ne=>{var xe;if((xe=ne.context)!=null&&xe.open&&!ne.context.dataRef.current.__outsidePressBubbles){Ce=!1;return}}),!Ce)return}n(!1,K,"outside-press")}),X=Vs(K=>{var ce;const ae=()=>{var le;q(K),(le=Gv(K))==null||le.removeEventListener(p,ae)};(ce=Gv(K))==null||ce.addEventListener(p,ae)});Ae.useEffect(()=>{if(!r||!f)return;u.current.__escapeKeyBubbles=O,u.current.__outsidePressBubbles=U;let K=-1;function ce(he){n(!1,he,"ancestor-scroll")}function ae(){window.clearTimeout(K),z.current=!0}function le(){K=window.setTimeout(()=>{z.current=!1},QO()?5:0)}const pe=qu(o.floating);h&&(pe.addEventListener("keydown",N?j:G,N),pe.addEventListener("compositionstart",ae),pe.addEventListener("compositionend",le)),L&&pe.addEventListener(p,H?X:q,H);let ie=[];return _&&(Oo(o.domReference)&&(ie=fg(o.domReference)),Oo(o.floating)&&(ie=ie.concat(fg(o.floating))),!Oo(o.reference)&&o.reference&&o.reference.contextElement&&(ie=ie.concat(fg(o.reference.contextElement)))),ie=ie.filter(he=>{var re;return he!==((re=pe.defaultView)==null?void 0:re.visualViewport)}),ie.forEach(he=>{he.addEventListener("scroll",ce,{passive:!0})}),()=>{h&&(pe.removeEventListener("keydown",N?j:G,N),pe.removeEventListener("compositionstart",ae),pe.removeEventListener("compositionend",le)),L&&pe.removeEventListener(p,H?X:q,H),ie.forEach(he=>{he.removeEventListener("scroll",ce)}),window.clearTimeout(K)}},[u,o,h,L,p,r,n,_,f,O,U,G,N,j,q,H,X]),Ae.useEffect(()=>{P.current=!1},[L,p]);const Y=Ae.useMemo(()=>({onKeyDown:G,[Hct[y]]:K=>{g&&n(!1,K.nativeEvent,"reference-press")}}),[G,n,g,y]),te=Ae.useMemo(()=>({onKeyDown:G,onMouseDown(){I.current=!0},onMouseUp(){I.current=!0},[Qct[p]]:()=>{P.current=!0}}),[G,p]);return Ae.useMemo(()=>f?{reference:Y,floating:te}:{},[f,Y,te])}function ILe(t){const{open:e=!1,onOpenChange:r,elements:n}=t,o=XS(),u=Ae.useRef({}),[f]=Ae.useState(()=>pLe()),h=dw()!=null,[A,p]=Ae.useState(n.reference),g=Vs((b,C,T)=>{u.current.openEvent=b?C:void 0,f.emit("openchange",{open:b,event:C,reason:T,nested:h}),r?.(b,C,T)}),y=Ae.useMemo(()=>({setPositionReference:p}),[]),_=Ae.useMemo(()=>({reference:A||n.reference||null,floating:n.floating||null,domReference:n.reference}),[A,n.reference,n.floating]);return Ae.useMemo(()=>({dataRef:u,open:e,onOpenChange:g,elements:_,events:f,floatingId:o,refs:y}),[e,g,_,f,o,y])}function zct(t){t===void 0&&(t={});const{nodeId:e}=t,r=ILe({...t,elements:{reference:null,floating:null,...t.elements}}),n=t.rootContext||r,o=n.elements,[u,f]=Ae.useState(null),[h,A]=Ae.useState(null),g=o?.domReference||u,y=Ae.useRef(null),_=Aw();la(()=>{g&&(y.current=g)},[g]);const b=Jut({...t,elements:{...o,...h&&{reference:h}}}),C=Ae.useCallback(I=>{const O=Oo(I)?{getBoundingClientRect:()=>I.getBoundingClientRect(),contextElement:I}:I;A(O),b.refs.setReference(O)},[b.refs]),T=Ae.useCallback(I=>{(Oo(I)||I===null)&&(y.current=I,f(I)),(Oo(b.refs.reference.current)||b.refs.reference.current===null||I!==null&&!Oo(I))&&b.refs.setReference(I)},[b.refs]),B=Ae.useMemo(()=>({...b.refs,setReference:T,setPositionReference:C,domReference:y}),[b.refs,T,C]),L=Ae.useMemo(()=>({...b.elements,domReference:g}),[b.elements,g]),P=Ae.useMemo(()=>({...b,...n,refs:B,elements:L,nodeId:e}),[b,B,L,e,n]);return la(()=>{n.dataRef.current.floatingContext=P;const I=_?.nodesRef.current.find(O=>O.id===e);I&&(I.context=P)}),Ae.useMemo(()=>({...b,context:P,refs:B,elements:L}),[b,B,L,P])}function Gct(t,e){e===void 0&&(e={});const{open:r,onOpenChange:n,events:o,dataRef:u,elements:f}=t,{enabled:h=!0,visibleOnly:A=!0}=e,p=Ae.useRef(!1),g=Ae.useRef(),y=Ae.useRef(!0);Ae.useEffect(()=>{if(!h)return;const b=cf(f.domReference);function C(){!r&&Fl(f.domReference)&&f.domReference===DA(qu(f.domReference))&&(p.current=!0)}function T(){y.current=!0}return b.addEventListener("blur",C),b.addEventListener("keydown",T,!0),()=>{b.removeEventListener("blur",C),b.removeEventListener("keydown",T,!0)}},[f.domReference,r,h]),Ae.useEffect(()=>{if(!h)return;function b(C){let{reason:T}=C;(T==="reference-press"||T==="escape-key")&&(p.current=!0)}return o.on("openchange",b),()=>{o.off("openchange",b)}},[o,h]),Ae.useEffect(()=>()=>{clearTimeout(g.current)},[]);const _=Ae.useMemo(()=>({onPointerDown(b){AX(b.nativeEvent)||(y.current=!1)},onMouseLeave(){p.current=!1},onFocus(b){if(p.current)return;const C=Gv(b.nativeEvent);if(A&&Oo(C))try{if(vX()&&YIe())throw Error();if(!C.matches(":focus-visible"))return}catch{if(!y.current&&!pX(C))return}n(!0,b.nativeEvent,"focus")},onBlur(b){p.current=!1;const C=b.relatedTarget,T=b.nativeEvent,B=Oo(C)&&C.hasAttribute(K1("focus-guard"))&&C.getAttribute("data-type")==="outside";g.current=window.setTimeout(()=>{var L;const P=DA(f.domReference?f.domReference.ownerDocument:document);!C&&P===f.domReference||hl((L=u.current.floatingContext)==null?void 0:L.refs.floating.current,P)||hl(f.domReference,P)||B||n(!1,T,"focus")})}}),[u,f.domReference,n,A]);return Ae.useMemo(()=>h?{reference:_}:{},[h,_])}const Ipe="active",Lpe="selected";function dz(t,e,r){const n=new Map,o=r==="item";let u=t;if(o&&t){const{[Ipe]:f,[Lpe]:h,...A}=t;u=A}return{...r==="floating"&&{tabIndex:-1,[HW]:""},...u,...e.map(f=>{const h=f?f[r]:null;return typeof h=="function"?t?h(t):null:h}).concat(t).reduce((f,h)=>(h&&Object.entries(h).forEach(A=>{let[p,g]=A;if(!(o&&[Ipe,Lpe].includes(p)))if(p.indexOf("on")===0){if(n.has(p)||n.set(p,[]),typeof g=="function"){var y;(y=n.get(p))==null||y.push(g),f[p]=function(){for(var _,b=arguments.length,C=new Array(b),T=0;T<b;T++)C[T]=arguments[T];return(_=n.get(p))==null?void 0:_.map(B=>B(...C)).find(B=>B!==void 0)}}}else f[p]=g}),f),{})}}function jct(t){t===void 0&&(t=[]);const e=t.map(h=>h?.reference),r=t.map(h=>h?.floating),n=t.map(h=>h?.item),o=Ae.useCallback(h=>dz(h,t,"reference"),e),u=Ae.useCallback(h=>dz(h,t,"floating"),r),f=Ae.useCallback(h=>dz(h,t,"item"),n);return Ae.useMemo(()=>({getReferenceProps:o,getFloatingProps:u,getItemProps:f}),[o,u,f])}let Mpe=!1;function qO(t,e,r){switch(t){case"vertical":return e;case"horizontal":return r;default:return e||r}}function Dpe(t,e){return qO(e,t===TS||t===hg,t===HA||t===QA)}function Az(t,e,r){return qO(e,t===hg,r?t===HA:t===QA)||t==="Enter"||t===" "||t===""}function qct(t,e,r){return qO(e,r?t===HA:t===QA,t===hg)}function Rpe(t,e,r){return qO(e,r?t===QA:t===HA,t===TS)}function Wct(t,e){const{open:r,onOpenChange:n,elements:o}=t,{listRef:u,activeIndex:f,onNavigate:h=()=>{},enabled:A=!0,selectedIndex:p=null,allowEscape:g=!1,loop:y=!1,nested:_=!1,rtl:b=!1,virtual:C=!1,focusItemOnOpen:T="auto",focusItemOnHover:B=!0,openOnArrowKeyDown:L=!0,disabledIndices:P=void 0,orientation:I="vertical",cols:O=1,scrollItemIntoView:U=!0,virtualItemRef:N,itemSizes:H,dense:z=!1}=e,G=BLe(o.floating),j=$u(G),q=dw(),X=Aw(),Y=Vs(h),te=kW(o.domReference),K=Ae.useRef(T),ce=Ae.useRef(p??-1),ae=Ae.useRef(null),le=Ae.useRef(!0),pe=Ae.useRef(Y),ie=Ae.useRef(!!o.floating),he=Ae.useRef(r),re=Ae.useRef(!1),oe=Ae.useRef(!1),ye=$u(P),_e=$u(r),Ce=$u(U),ne=$u(p),[xe,De]=Ae.useState(),[ze,Ye]=Ae.useState(),Ne=Vs(function(Me,Ge,Pe){Pe===void 0&&(Pe=!1);function ke($e){C?(De($e.id),X?.events.emit("virtualfocus",$e),N&&(N.current=$e)):Gm($e,{preventScroll:!0,sync:YIe()&&vX()?Mpe||re.current:!1})}const Be=Me.current[Ge.current];Be&&ke(Be),requestAnimationFrame(()=>{const $e=Me.current[Ge.current]||Be;if(!$e)return;Be||ke($e);const nt=Ce.current;nt&&Ue&&(Pe||!le.current)&&($e.scrollIntoView==null||$e.scrollIntoView(typeof nt=="boolean"?{block:"nearest",inline:"nearest"}:nt))})});la(()=>{document.createElement("div").focus({get preventScroll(){return Mpe=!0,!1}})},[]),la(()=>{A&&(r&&o.floating?K.current&&p!=null&&(oe.current=!0,ce.current=p,Y(p)):ie.current&&(ce.current=-1,pe.current(null)))},[A,r,o.floating,p,Y]),la(()=>{if(A&&r&&o.floating)if(f==null){if(re.current=!1,ne.current!=null)return;if(ie.current&&(ce.current=-1,Ne(u,ce)),(!he.current||!ie.current)&&K.current&&(ae.current!=null||K.current===!0&&ae.current==null)){let Me=0;const Ge=()=>{u.current[0]==null?(Me<2&&(Me?requestAnimationFrame:queueMicrotask)(Ge),Me++):(ce.current=ae.current==null||Az(ae.current,I,b)||_?x5(u,ye.current):NW(u,ye.current),ae.current=null,Y(ce.current))};Ge()}}else nS(u,f)||(ce.current=f,Ne(u,ce,oe.current),oe.current=!1)},[A,r,o.floating,f,ne,_,u,I,b,Y,Ne,ye]),la(()=>{var Me;if(!A||o.floating||!X||C||!ie.current)return;const Ge=X.nodesRef.current,Pe=(Me=Ge.find($e=>$e.id===q))==null||(Me=Me.context)==null?void 0:Me.elements.floating,ke=DA(qu(o.floating)),Be=Ge.some($e=>$e.context&&hl($e.context.elements.floating,ke));Pe&&!Be&&le.current&&Pe.focus({preventScroll:!0})},[A,o.floating,X,q,C]),la(()=>{if(!A||!X||!C||q)return;function Me(Ge){Ye(Ge.id),N&&(N.current=Ge)}return X.events.on("virtualfocus",Me),()=>{X.events.off("virtualfocus",Me)}},[A,X,C,q,N]),la(()=>{pe.current=Y,ie.current=!!o.floating}),la(()=>{r||(ae.current=null)},[r]),la(()=>{he.current=r},[r]);const yt=f!=null,Ue=Ae.useMemo(()=>{function Me(Pe){if(!r)return;const ke=u.current.indexOf(Pe);ke!==-1&&Y(ke)}return{onFocus(Pe){let{currentTarget:ke}=Pe;Me(ke)},onClick:Pe=>{let{currentTarget:ke}=Pe;return ke.focus({preventScroll:!0})},...B&&{onMouseMove(Pe){let{currentTarget:ke}=Pe;Me(ke)},onPointerLeave(Pe){let{pointerType:ke}=Pe;!le.current||ke==="touch"||(ce.current=-1,Ne(u,ce),Y(null),C||Gm(j.current,{preventScroll:!0}))}}}},[r,j,Ne,B,u,Y,C]),ue=Vs(Me=>{if(le.current=!1,re.current=!0,Me.which===229||!_e.current&&Me.currentTarget===j.current)return;if(_&&Rpe(Me.key,I,b)){Gu(Me),n(!1,Me.nativeEvent,"list-navigation"),Fl(o.domReference)&&(C?X?.events.emit("virtualfocus",o.domReference):o.domReference.focus());return}const Ge=ce.current,Pe=x5(u,P),ke=NW(u,P);if(te||(Me.key==="Home"&&(Gu(Me),ce.current=Pe,Y(ce.current)),Me.key==="End"&&(Gu(Me),ce.current=ke,Y(ce.current))),O>1){const Be=H||Array.from({length:u.current.length},()=>({width:1,height:1})),$e=oLe(Be,O,z),nt=$e.findIndex(Rt=>Rt!=null&&!O1(u.current,Rt,P)),ft=$e.reduce((Rt,Bt,It)=>Bt!=null&&!O1(u.current,Bt,P)?It:Rt,-1),Mt=$e[aLe({current:$e.map(Rt=>Rt!=null?u.current[Rt]:null)},{event:Me,orientation:I,loop:y,rtl:b,cols:O,disabledIndices:lLe([...P||u.current.map((Rt,Bt)=>O1(u.current,Bt)?Bt:void 0),void 0],$e),minIndex:nt,maxIndex:ft,prevIndex:sLe(ce.current>ke?Pe:ce.current,Be,$e,O,Me.key===hg?"bl":Me.key===(b?HA:QA)?"tr":"tl"),stopEvent:!0})];if(Mt!=null&&(ce.current=Mt,Y(ce.current)),I==="both")return}if(Dpe(Me.key,I)){if(Gu(Me),r&&!C&&DA(Me.currentTarget.ownerDocument)===Me.currentTarget){ce.current=Az(Me.key,I,b)?Pe:ke,Y(ce.current);return}Az(Me.key,I,b)?y?ce.current=Ge>=ke?g&&Ge!==u.current.length?-1:Pe:Qu(u,{startingIndex:Ge,disabledIndices:P}):ce.current=Math.min(ke,Qu(u,{startingIndex:Ge,disabledIndices:P})):y?ce.current=Ge<=Pe?g&&Ge!==-1?u.current.length:ke:Qu(u,{startingIndex:Ge,decrement:!0,disabledIndices:P}):ce.current=Math.max(Pe,Qu(u,{startingIndex:Ge,decrement:!0,disabledIndices:P})),nS(u,ce.current)?Y(null):Y(ce.current)}}),Qe=Ae.useMemo(()=>C&&r&&yt&&{"aria-activedescendant":ze||xe},[C,r,yt,ze,xe]),qe=Ae.useMemo(()=>({"aria-orientation":I==="both"?void 0:I,...!kW(o.domReference)&&Qe,onKeyDown:ue,onPointerMove(){le.current=!0}}),[Qe,ue,o.domReference,I]),Re=Ae.useMemo(()=>{function Me(Pe){T==="auto"&&KIe(Pe.nativeEvent)&&(K.current=!0)}function Ge(Pe){K.current=T,T==="auto"&&AX(Pe.nativeEvent)&&(K.current=!0)}return{...Qe,onKeyDown(Pe){le.current=!1;const ke=Pe.key.startsWith("Arrow"),Be=["Home","End"].includes(Pe.key),$e=ke||Be,nt=qct(Pe.key,I,b),ft=Rpe(Pe.key,I,b),Mt=Dpe(Pe.key,I),Rt=(_?nt:Mt)||Pe.key==="Enter"||Pe.key.trim()==="";if(C&&r){const fr=X?.nodesRef.current.find(_t=>_t.parentId==null),lr=X&&fr?Tct(X.nodesRef.current,fr.id):null;if($e&&lr&&N){const _t=new KeyboardEvent("keydown",{key:Pe.key,bubbles:!0});if(nt||ft){var Bt,It;const br=((Bt=lr.context)==null?void 0:Bt.elements.domReference)===Pe.currentTarget,on=ft&&!br?(It=lr.context)==null?void 0:It.elements.domReference:nt?u.current.find(Br=>Br?.id===xe):null;on&&(Gu(Pe),on.dispatchEvent(_t),Ye(void 0))}if((Mt||Be)&&lr.context&&lr.context.open&&lr.parentId&&Pe.currentTarget!==lr.context.elements.domReference){var qt;Gu(Pe),(qt=lr.context.elements.domReference)==null||qt.dispatchEvent(_t);return}}return ue(Pe)}if(!(!r&&!L&&ke)){if(Rt&&(ae.current=_&&Mt?null:Pe.key),_){nt&&(Gu(Pe),r?(ce.current=x5(u,ye.current),Y(ce.current)):n(!0,Pe.nativeEvent,"list-navigation"));return}Mt&&(p!=null&&(ce.current=p),Gu(Pe),!r&&L?n(!0,Pe.nativeEvent,"list-navigation"):ue(Pe),r&&Y(ce.current))}},onFocus(){r&&!C&&Y(null)},onPointerDown:Ge,onMouseDown:Me,onClick:Me}},[xe,Qe,ue,ye,T,u,_,Y,n,r,L,I,b,p,X,C,N]);return Ae.useMemo(()=>A?{reference:Re,floating:qe,item:Ue}:{},[A,Re,qe,Ue])}const $ct=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Kct(t,e){var r;e===void 0&&(e={});const{open:n,floatingId:o}=t,{enabled:u=!0,role:f="dialog"}=e,h=(r=$ct.get(f))!=null?r:f,A=XS(),g=dw()!=null,y=Ae.useMemo(()=>h==="tooltip"||f==="label"?{["aria-"+(f==="label"?"labelledby":"describedby")]:n?o:void 0}:{"aria-expanded":n?"true":"false","aria-haspopup":h==="alertdialog"?"dialog":h,"aria-controls":n?o:void 0,...h==="listbox"&&{role:"combobox"},...h==="menu"&&{id:A},...h==="menu"&&g&&{role:"menuitem"},...f==="select"&&{"aria-autocomplete":"none"},...f==="combobox"&&{"aria-autocomplete":"list"}},[h,o,g,n,A,f]),_=Ae.useMemo(()=>{const C={id:o,...h&&{role:h}};return h==="tooltip"||f==="label"?C:{...C,...h==="menu"&&{"aria-labelledby":A}}},[h,o,A,f]),b=Ae.useCallback(C=>{let{active:T,selected:B}=C;const L={role:"option",...T&&{id:o+"-option"}};switch(f){case"select":return{...L,"aria-selected":T&&B};case"combobox":return{...L,...T&&{"aria-selected":!0}}}return{}},[o,f]);return Ae.useMemo(()=>u?{reference:y,floating:_,item:b}:{},[u,y,_,b])}const Ppe=t=>t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,r)=>(r?"-":"")+e.toLowerCase());function Zb(t,e){return typeof t=="function"?t(e):t}function Yct(t,e){const[r,n]=Ae.useState(t);return t&&!r&&n(!0),Ae.useEffect(()=>{if(!t&&r){const o=setTimeout(()=>n(!1),e);return()=>clearTimeout(o)}},[t,r,e]),r}function LLe(t,e){e===void 0&&(e={});const{open:r,elements:{floating:n}}=t,{duration:o=250}=e,f=(typeof o=="number"?o:o.close)||0,[h,A]=Ae.useState("unmounted"),p=Yct(r,f);return!p&&h==="close"&&A("unmounted"),la(()=>{if(n){if(r){A("initial");const g=requestAnimationFrame(()=>{A("open")});return()=>{cancelAnimationFrame(g)}}A("close")}},[r,n]),{isMounted:p,status:h}}function Xct(t,e){e===void 0&&(e={});const{initial:r={opacity:0},open:n,close:o,common:u,duration:f=250}=e,h=t.placement,A=h.split("-")[0],p=Ae.useMemo(()=>({side:A,placement:h}),[A,h]),g=typeof f=="number",y=(g?f:f.open)||0,_=(g?f:f.close)||0,[b,C]=Ae.useState(()=>({...Zb(u,p),...Zb(r,p)})),{isMounted:T,status:B}=LLe(t,{duration:f}),L=$u(r),P=$u(n),I=$u(o),O=$u(u);return la(()=>{const U=Zb(L.current,p),N=Zb(I.current,p),H=Zb(O.current,p),z=Zb(P.current,p)||Object.keys(U).reduce((G,j)=>(G[j]="",G),{});if(B==="initial"&&C(G=>({transitionProperty:G.transitionProperty,...H,...U})),B==="open"&&C({transitionProperty:Object.keys(z).map(Ppe).join(","),transitionDuration:y+"ms",...H,...z}),B==="close"){const G=N||U;C({transitionProperty:Object.keys(G).map(Ppe).join(","),transitionDuration:_+"ms",...H,...G})}},[_,I,L,P,O,y,B,p]),{isMounted:T,styles:b}}function Zct(t,e){var r;const{open:n,dataRef:o}=t,{listRef:u,activeIndex:f,onMatch:h,onTypingChange:A,enabled:p=!0,findMatch:g=null,resetMs:y=750,ignoreKeys:_=[],selectedIndex:b=null}=e,C=Ae.useRef(),T=Ae.useRef(""),B=Ae.useRef((r=b??f)!=null?r:-1),L=Ae.useRef(null),P=Vs(h),I=Vs(A),O=$u(g),U=$u(_);la(()=>{n&&(clearTimeout(C.current),L.current=null,T.current="")},[n]),la(()=>{if(n&&T.current===""){var j;B.current=(j=b??f)!=null?j:-1}},[n,b,f]);const N=Vs(j=>{j?o.current.typing||(o.current.typing=j,I(j)):o.current.typing&&(o.current.typing=j,I(j))}),H=Vs(j=>{function q(ce,ae,le){const pe=O.current?O.current(ae,le):ae.find(ie=>ie?.toLocaleLowerCase().indexOf(le.toLocaleLowerCase())===0);return pe?ce.indexOf(pe):-1}const X=u.current;if(T.current.length>0&&T.current[0]!==" "&&(q(X,X,T.current)===-1?N(!1):j.key===" "&&Gu(j)),X==null||U.current.includes(j.key)||j.key.length!==1||j.ctrlKey||j.metaKey||j.altKey)return;n&&j.key!==" "&&(Gu(j),N(!0)),X.every(ce=>{var ae,le;return ce?((ae=ce[0])==null?void 0:ae.toLocaleLowerCase())!==((le=ce[1])==null?void 0:le.toLocaleLowerCase()):!0})&&T.current===j.key&&(T.current="",B.current=L.current),T.current+=j.key,clearTimeout(C.current),C.current=setTimeout(()=>{T.current="",B.current=L.current,N(!1)},y);const te=B.current,K=q(X,[...X.slice((te||0)+1),...X.slice(0,(te||0)+1)],T.current);K!==-1?(P(K),L.current=K):j.key!==" "&&(T.current="",N(!1))}),z=Ae.useMemo(()=>({onKeyDown:H}),[H]),G=Ae.useMemo(()=>({onKeyDown:H,onKeyUp(j){j.key===" "&&N(!1)}}),[H,N]);return Ae.useMemo(()=>p?{reference:z,floating:G}:{},[p,z,G])}function Ope(t,e){return{...t,rects:{...t.rects,floating:{...t.rects.floating,height:e}}}}const Jct=t=>({name:"inner",options:t,async fn(e){const{listRef:r,overflowRef:n,onFallbackChange:o,offset:u=0,index:f=0,minItemsVisible:h=4,referenceOverflowThreshold:A=0,scrollRef:p,...g}=Nd(t,e),{rects:y,elements:{floating:_}}=e,b=r.current[f],C=p?.current||_,T=_.clientTop||C.clientTop,B=_.clientTop!==0,L=C.clientTop!==0,P=_===C;if(!b)return{};const I={...e,...await rLe(-b.offsetTop-_.clientTop-y.reference.height/2-b.offsetHeight/2-u).fn(e)},O=await b5(Ope(I,C.scrollHeight+T+_.clientTop),g),U=await b5(I,{...g,elementContext:"reference"}),N=ou(0,O.top),H=I.y+N,j=(C.scrollHeight>C.clientHeight?q=>q:s2)(ou(0,C.scrollHeight+(B&&P||L?T*2:0)-N-ou(0,O.bottom)));if(C.style.maxHeight=j+"px",C.scrollTop=N,o){const q=C.offsetHeight<b.offsetHeight*Fd(h,r.current.length)-1||U.top>=-A||U.bottom>=-A;uu.flushSync(()=>o(q))}return n&&(n.current=await b5(Ope({...I,y:H},C.offsetHeight+T+_.clientTop),g)),{y:H}}});function eft(t,e){const{open:r,elements:n}=t,{enabled:o=!0,overflowRef:u,scrollRef:f,onChange:h}=e,A=Vs(h),p=Ae.useRef(!1),g=Ae.useRef(null),y=Ae.useRef(null);Ae.useEffect(()=>{if(!o)return;function b(T){if(T.ctrlKey||!C||u.current==null)return;const B=T.deltaY,L=u.current.top>=-.5,P=u.current.bottom>=-.5,I=C.scrollHeight-C.clientHeight,O=B<0?-1:1,U=B<0?"max":"min";C.scrollHeight<=C.clientHeight||(!L&&B>0||!P&&B<0?(T.preventDefault(),uu.flushSync(()=>{A(N=>N+Math[U](B,I*O))})):/firefox/i.test(dX())&&(C.scrollTop+=B))}const C=f?.current||n.floating;if(r&&C)return C.addEventListener("wheel",b),requestAnimationFrame(()=>{g.current=C.scrollTop,u.current!=null&&(y.current={...u.current})}),()=>{g.current=null,y.current=null,C.removeEventListener("wheel",b)}},[o,r,n.floating,u,f,A]);const _=Ae.useMemo(()=>({onKeyDown(){p.current=!0},onWheel(){p.current=!1},onPointerMove(){p.current=!1},onScroll(){const b=f?.current||n.floating;if(!(!u.current||!b||!p.current)){if(g.current!==null){const C=b.scrollTop-g.current;(u.current.bottom<-.5&&C<-1||u.current.top<-.5&&C>1)&&uu.flushSync(()=>A(T=>T+C))}requestAnimationFrame(()=>{g.current=b.scrollTop})}}}),[n.floating,A,u,f]);return Ae.useMemo(()=>o?{floating:_}:{},[o,_])}function kpe(t,e){const[r,n]=t;let o=!1;const u=e.length;for(let f=0,h=u-1;f<u;h=f++){const[A,p]=e[f]||[0,0],[g,y]=e[h]||[0,0];p>=n!=y>=n&&r<=(g-A)*(n-p)/(y-p)+A&&(o=!o)}return o}function tft(t,e){return t[0]>=e.x&&t[0]<=e.x+e.width&&t[1]>=e.y&&t[1]<=e.y+e.height}function rft(t){t===void 0&&(t={});const{buffer:e=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=t;let o,u=!1,f=null,h=null,A=performance.now();function p(y,_){const b=performance.now(),C=b-A;if(f===null||h===null||C===0)return f=y,h=_,A=b,null;const T=y-f,B=_-h,P=Math.sqrt(T*T+B*B)/C;return f=y,h=_,A=b,P}const g=y=>{let{x:_,y:b,placement:C,elements:T,onClose:B,nodeId:L,tree:P}=y;return function(O){function U(){clearTimeout(o),B()}if(clearTimeout(o),!T.domReference||!T.floating||C==null||_==null||b==null)return;const{clientX:N,clientY:H}=O,z=[N,H],G=Gv(O),j=O.type==="mouseleave",q=hl(T.floating,G),X=hl(T.domReference,G),Y=T.domReference.getBoundingClientRect(),te=T.floating.getBoundingClientRect(),K=C.split("-")[0],ce=_>te.right-te.width/2,ae=b>te.bottom-te.height/2,le=tft(z,Y),pe=te.width>Y.width,ie=te.height>Y.height,he=(pe?Y:te).left,re=(pe?Y:te).right,oe=(ie?Y:te).top,ye=(ie?Y:te).bottom;if(q&&(u=!0,!j))return;if(X&&(u=!1),X&&!j){u=!0;return}if(j&&Oo(O.relatedTarget)&&hl(T.floating,O.relatedTarget)||P&&k1(P.nodesRef.current,L).some(ne=>{let{context:xe}=ne;return xe?.open}))return;if(K==="top"&&b>=Y.bottom-1||K==="bottom"&&b<=Y.top+1||K==="left"&&_>=Y.right-1||K==="right"&&_<=Y.left+1)return U();let _e=[];switch(K){case"top":_e=[[he,Y.top+1],[he,te.bottom-1],[re,te.bottom-1],[re,Y.top+1]];break;case"bottom":_e=[[he,te.top+1],[he,Y.bottom-1],[re,Y.bottom-1],[re,te.top+1]];break;case"left":_e=[[te.right-1,ye],[te.right-1,oe],[Y.left+1,oe],[Y.left+1,ye]];break;case"right":_e=[[Y.right-1,ye],[Y.right-1,oe],[te.left+1,oe],[te.left+1,ye]];break}function Ce(ne){let[xe,De]=ne;switch(K){case"top":{const ze=[pe?xe+e/2:ce?xe+e*4:xe-e*4,De+e+1],Ye=[pe?xe-e/2:ce?xe+e*4:xe-e*4,De+e+1],Ne=[[te.left,ce||pe?te.bottom-e:te.top],[te.right,ce?pe?te.bottom-e:te.top:te.bottom-e]];return[ze,Ye,...Ne]}case"bottom":{const ze=[pe?xe+e/2:ce?xe+e*4:xe-e*4,De-e],Ye=[pe?xe-e/2:ce?xe+e*4:xe-e*4,De-e],Ne=[[te.left,ce||pe?te.top+e:te.bottom],[te.right,ce?pe?te.top+e:te.bottom:te.top+e]];return[ze,Ye,...Ne]}case"left":{const ze=[xe+e+1,ie?De+e/2:ae?De+e*4:De-e*4],Ye=[xe+e+1,ie?De-e/2:ae?De+e*4:De-e*4];return[...[[ae||ie?te.right-e:te.left,te.top],[ae?ie?te.right-e:te.left:te.right-e,te.bottom]],ze,Ye]}case"right":{const ze=[xe-e,ie?De+e/2:ae?De+e*4:De-e*4],Ye=[xe-e,ie?De-e/2:ae?De+e*4:De-e*4],Ne=[[ae||ie?te.left+e:te.right,te.top],[ae?ie?te.left+e:te.right:te.left+e,te.bottom]];return[ze,Ye,...Ne]}}}if(!kpe([N,H],_e)){if(u&&!le)return U();if(!j&&n){const ne=p(O.clientX,O.clientY);if(ne!==null&&ne<.1)return U()}kpe([N,H],Ce([_,b]))?!u&&n&&(o=window.setTimeout(U,40)):U()}}};return g.__options={blockPointerEvents:r},g}const S8t=Object.freeze(Object.defineProperty({__proto__:null,Composite:dct,CompositeItem:Act,FloatingArrow:mct,FloatingDelayGroup:Sct,FloatingFocusManager:Pct,FloatingList:cLe,FloatingNode:wct,FloatingOverlay:kct,FloatingPortal:Dct,FloatingTree:bct,arrow:lct,autoPlacement:act,autoUpdate:dIe,computePosition:AIe,detectOverflow:b5,flip:nct,getOverflowAncestors:fg,hide:oct,inline:sct,inner:Jct,limitShift:rct,offset:rLe,platform:fIe,safePolygon:rft,shift:tct,size:ict,useClick:Fct,useClientPoint:Uct,useDelayGroup:xct,useDelayGroupContext:wLe,useDismiss:Vct,useFloating:zct,useFloatingNodeId:yct,useFloatingParentNodeId:dw,useFloatingPortalNode:TLe,useFloatingRootContext:ILe,useFloatingTree:Aw,useFocus:Gct,useHover:_ct,useId:XS,useInnerOffset:eft,useInteractions:jct,useListItem:fLe,useListNavigation:Wct,useMergeRefs:nLe,useRole:Kct,useTransitionStatus:LLe,useTransitionStyles:Xct,useTypeahead:Zct},Symbol.toStringTag,{value:"Module"}));put();var T5={exports:{}};/*!
* dist/inputmask
* https://github.com/RobinHerbots/Inputmask
* Copyright (c) 2010 - 2024 Robin Herbots
* Licensed under the MIT license
* Version: 5.0.9
*/var nft=T5.exports,Fpe;function ift(){return Fpe||(Fpe=1,function(t,e){(function(r,n){t.exports=n()})(typeof self<"u"?self:nft,function(){return function(){var r={3976:function(f,h){Object.defineProperty(h,"__esModule",{value:!0}),h.default=void 0,h.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(A,p){return typeof p.onBeforeMask=="function"?p.onBeforeMask.call(this,A,p):A},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(f,h){Object.defineProperty(h,"__esModule",{value:!0}),h.default=void 0,h.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(f,h){Object.defineProperty(h,"__esModule",{value:!0}),h.default=function(A,p,g){if(g===void 0)return A.__data?A.__data[p]:null;A.__data=A.__data||{},A.__data[p]=g}},3776:function(f,h,A){Object.defineProperty(h,"__esModule",{value:!0}),h.Event=void 0,h.off=function(P,I){var O,U;return B(this[0])&&P&&(O=this[0].eventRegistry,U=this[0],P.split(" ").forEach(function(N){var H=_(N.split("."),2);(function(z,G){var j,q,X=[];if(z.length>0)if(I===void 0)for(j=0,q=O[z][G].length;j<q;j++)X.push({ev:z,namespace:G&&G.length>0?G:"global",handler:O[z][G][j]});else X.push({ev:z,namespace:G&&G.length>0?G:"global",handler:I});else if(G.length>0){for(var Y in O)for(var te in O[Y])if(te===G)if(I===void 0)for(j=0,q=O[Y][te].length;j<q;j++)X.push({ev:Y,namespace:te,handler:O[Y][te][j]});else X.push({ev:Y,namespace:te,handler:I})}return X})(H[0],H[1]).forEach(function(z){var G=z.ev,j=z.handler;(function(q,X,Y){if(q in O==1)if(U.removeEventListener?U.removeEventListener(q,Y,!1):U.detachEvent&&U.detachEvent("on".concat(q),Y),X==="global")for(var te in O[q])O[q][te].splice(O[q][te].indexOf(Y),1);else O[q][X].splice(O[q][X].indexOf(Y),1)})(G,z.namespace,j)})})),this},h.on=function(P,I){if(B(this[0])){var O=this[0].eventRegistry,U=this[0];P.split(" ").forEach(function(N){var H=_(N.split("."),2),z=H[0],G=H[1];(function(j,q){U.addEventListener?U.addEventListener(j,I,!1):U.attachEvent&&U.attachEvent("on".concat(j),I),O[j]=O[j]||{},O[j][q]=O[j][q]||[],O[j][q].push(I)})(z,G===void 0?"global":G)})}return this},h.trigger=function(P){var I=arguments;if(B(this[0]))for(var O=this[0].eventRegistry,U=this[0],N=typeof P=="string"?P.split(" "):[P.type],H=0;H<N.length;H++){var z=N[H].split("."),G=z[0],j=z[1]||"global";if(T!==void 0&&j==="global"){var q,X={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(T.createEvent){try{G==="input"?(X.inputType="insertText",q=new InputEvent(G,X)):q=new CustomEvent(G,X)}catch{(q=T.createEvent("CustomEvent")).initCustomEvent(G,X.bubbles,X.cancelable,X.detail)}P.type&&(0,g.default)(q,P),U.dispatchEvent(q)}else(q=T.createEventObject()).eventType=G,q.detail=arguments[1],P.type&&(0,g.default)(q,P),U.fireEvent("on"+q.eventType,q)}else if(O[G]!==void 0){arguments[0]=arguments[0].type?arguments[0]:y.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);var Y=O[G];(j==="global"?Object.values(Y).flat():Y[j]).forEach(function(te){return te.apply(U,I)})}}return this};var p=C(A(9380)),g=C(A(600)),y=C(A(4963));function _(P,I){return function(O){if(Array.isArray(O))return O}(P)||function(O,U){var N=O==null?null:typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(N!=null){var H,z,G,j,q=[],X=!0,Y=!1;try{if(G=(N=N.call(O)).next,U!==0)for(;!(X=(H=G.call(N)).done)&&(q.push(H.value),q.length!==U);X=!0);}catch(te){Y=!0,z=te}finally{try{if(!X&&N.return!=null&&(j=N.return(),Object(j)!==j))return}finally{if(Y)throw z}}return q}}(P,I)||function(O,U){if(O){if(typeof O=="string")return b(O,U);var N=Object.prototype.toString.call(O).slice(8,-1);if(N==="Object"&&O.constructor&&(N=O.constructor.name),N==="Map"||N==="Set")return Array.from(O);if(N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return b(O,U)}}(P,I)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function b(P,I){(I==null||I>P.length)&&(I=P.length);for(var O=0,U=new Array(I);O<I;O++)U[O]=P[O];return U}function C(P){return P&&P.__esModule?P:{default:P}}var T=p.default.document;function B(P){return P instanceof Element}var L=h.Event=void 0;typeof p.default.CustomEvent=="function"?h.Event=L=p.default.CustomEvent:p.default.Event&&T&&T.createEvent?(h.Event=L=function(P,I){I=I||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var O=T.createEvent("CustomEvent");return O.initCustomEvent(P,I.bubbles,I.cancelable,I.detail),O},L.prototype=p.default.Event.prototype):typeof Event<"u"&&(h.Event=L=Event)},600:function(f,h){function A(p){return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},A(p)}Object.defineProperty(h,"__esModule",{value:!0}),h.default=function p(){var g,y,_,b,C,T,B=arguments[0]||{},L=1,P=arguments.length,I=!1;for(typeof B=="boolean"&&(I=B,B=arguments[L]||{},L++),A(B)!=="object"&&typeof B!="function"&&(B={});L<P;L++)if((g=arguments[L])!=null)for(y in g)_=B[y],B!==(b=g[y])&&(I&&b&&(Object.prototype.toString.call(b)==="[object Object]"||(C=Array.isArray(b)))?(C?(C=!1,T=_&&Array.isArray(_)?_:[]):T=_&&Object.prototype.toString.call(_)==="[object Object]"?_:{},B[y]=p(I,T,b)):b!==void 0&&(B[y]=b));return B}},4963:function(f,h,A){Object.defineProperty(h,"__esModule",{value:!0}),h.default=void 0;var p=b(A(9380)),g=b(A(253)),y=A(3776),_=b(A(600));function b(B){return B&&B.__esModule?B:{default:B}}var C=p.default.document;function T(B){return B instanceof T?B:this instanceof T?void(B!=null&&B!==p.default&&(this[0]=B.nodeName?B:B[0]!==void 0&&B[0].nodeName?B[0]:C.querySelector(B),this[0]!==void 0&&this[0]!==null&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new T(B)}T.prototype={on:y.on,off:y.off,trigger:y.trigger},T.extend=_.default,T.data=g.default,T.Event=y.Event,h.default=T},9845:function(f,h,A){Object.defineProperty(h,"__esModule",{value:!0}),h.mobile=h.iphone=h.ie=void 0;var p,g=(p=A(9380))&&p.__esModule?p:{default:p},y=g.default.navigator&&g.default.navigator.userAgent||"";h.ie=y.indexOf("MSIE ")>0||y.indexOf("Trident/")>0,h.mobile=g.default.navigator&&g.default.navigator.userAgentData&&g.default.navigator.userAgentData.mobile||g.default.navigator&&g.default.navigator.maxTouchPoints||"ontouchstart"in g.default,h.iphone=/iphone/i.test(y)},7184:function(f,h){Object.defineProperty(h,"__esModule",{value:!0}),h.default=function(p){return p.replace(A,"\\$1")};var A=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(f,h,A){function p(G){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},p(G)}Object.defineProperty(h,"__esModule",{value:!0}),h.EventHandlers=void 0;var g,y=A(9845),_=(g=A(9380))&&g.__esModule?g:{default:g},b=A(7760),C=A(2839),T=A(8711),B=A(7215),L=A(4713);function P(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */P=function(){return j};var G,j={},q=Object.prototype,X=q.hasOwnProperty,Y=Object.defineProperty||function(Pe,ke,Be){Pe[ke]=Be.value},te=typeof Symbol=="function"?Symbol:{},K=te.iterator||"@@iterator",ce=te.asyncIterator||"@@asyncIterator",ae=te.toStringTag||"@@toStringTag";function le(Pe,ke,Be){return Object.defineProperty(Pe,ke,{value:Be,enumerable:!0,configurable:!0,writable:!0}),Pe[ke]}try{le({},"")}catch{le=function(ke,Be,$e){return ke[Be]=$e}}function pe(Pe,ke,Be,$e){var nt=ke&&ke.prototype instanceof Ce?ke:Ce,ft=Object.create(nt.prototype),Mt=new Me($e||[]);return Y(ft,"_invoke",{value:ue(Pe,Be,Mt)}),ft}function ie(Pe,ke,Be){try{return{type:"normal",arg:Pe.call(ke,Be)}}catch($e){return{type:"throw",arg:$e}}}j.wrap=pe;var he="suspendedStart",re="suspendedYield",oe="executing",ye="completed",_e={};function Ce(){}function ne(){}function xe(){}var De={};le(De,K,function(){return this});var ze=Object.getPrototypeOf,Ye=ze&&ze(ze(Ge([])));Ye&&Ye!==q&&X.call(Ye,K)&&(De=Ye);var Ne=xe.prototype=Ce.prototype=Object.create(De);function yt(Pe){["next","throw","return"].forEach(function(ke){le(Pe,ke,function(Be){return this._invoke(ke,Be)})})}function Ue(Pe,ke){function Be(nt,ft,Mt,Rt){var Bt=ie(Pe[nt],Pe,ft);if(Bt.type!=="throw"){var It=Bt.arg,qt=It.value;return qt&&p(qt)=="object"&&X.call(qt,"__await")?ke.resolve(qt.__await).then(function(fr){Be("next",fr,Mt,Rt)},function(fr){Be("throw",fr,Mt,Rt)}):ke.resolve(qt).then(function(fr){It.value=fr,Mt(It)},function(fr){return Be("throw",fr,Mt,Rt)})}Rt(Bt.arg)}var $e;Y(this,"_invoke",{value:function(nt,ft){function Mt(){return new ke(function(Rt,Bt){Be(nt,ft,Rt,Bt)})}return $e=$e?$e.then(Mt,Mt):Mt()}})}function ue(Pe,ke,Be){var $e=he;return function(nt,ft){if($e===oe)throw new Error("Generator is already running");if($e===ye){if(nt==="throw")throw ft;return{value:G,done:!0}}for(Be.method=nt,Be.arg=ft;;){var Mt=Be.delegate;if(Mt){var Rt=Qe(Mt,Be);if(Rt){if(Rt===_e)continue;return Rt}}if(Be.method==="next")Be.sent=Be._sent=Be.arg;else if(Be.method==="throw"){if($e===he)throw $e=ye,Be.arg;Be.dispatchException(Be.arg)}else Be.method==="return"&&Be.abrupt("return",Be.arg);$e=oe;var Bt=ie(Pe,ke,Be);if(Bt.type==="normal"){if($e=Be.done?ye:re,Bt.arg===_e)continue;return{value:Bt.arg,done:Be.done}}Bt.type==="throw"&&($e=ye,Be.method="throw",Be.arg=Bt.arg)}}}function Qe(Pe,ke){var Be=ke.method,$e=Pe.iterator[Be];if($e===G)return ke.delegate=null,Be==="throw"&&Pe.iterator.return&&(ke.method="return",ke.arg=G,Qe(Pe,ke),ke.method==="throw")||Be!=="return"&&(ke.method="throw",ke.arg=new TypeError("The iterator does not provide a '"+Be+"' method")),_e;var nt=ie($e,Pe.iterator,ke.arg);if(nt.type==="throw")return ke.method="throw",ke.arg=nt.arg,ke.delegate=null,_e;var ft=nt.arg;return ft?ft.done?(ke[Pe.resultName]=ft.value,ke.next=Pe.nextLoc,ke.method!=="return"&&(ke.method="next",ke.arg=G),ke.delegate=null,_e):ft:(ke.method="throw",ke.arg=new TypeError("iterator result is not an object"),ke.delegate=null,_e)}function qe(Pe){var ke={tryLoc:Pe[0]};1 in Pe&&(ke.catchLoc=Pe[1]),2 in Pe&&(ke.finallyLoc=Pe[2],ke.afterLoc=Pe[3]),this.tryEntries.push(ke)}function Re(Pe){var ke=Pe.completion||{};ke.type="normal",delete ke.arg,Pe.completion=ke}function Me(Pe){this.tryEntries=[{tryLoc:"root"}],Pe.forEach(qe,this),this.reset(!0)}function Ge(Pe){if(Pe||Pe===""){var ke=Pe[K];if(ke)return ke.call(Pe);if(typeof Pe.next=="function")return Pe;if(!isNaN(Pe.length)){var Be=-1,$e=function nt(){for(;++Be<Pe.length;)if(X.call(Pe,Be))return nt.value=Pe[Be],nt.done=!1,nt;return nt.value=G,nt.done=!0,nt};return $e.next=$e}}throw new TypeError(p(Pe)+" is not iterable")}return ne.prototype=xe,Y(Ne,"constructor",{value:xe,configurable:!0}),Y(xe,"constructor",{value:ne,configurable:!0}),ne.displayName=le(xe,ae,"GeneratorFunction"),j.isGeneratorFunction=function(Pe){var ke=typeof Pe=="function"&&Pe.constructor;return!!ke&&(ke===ne||(ke.displayName||ke.name)==="GeneratorFunction")},j.mark=function(Pe){return Object.setPrototypeOf?Object.setPrototypeOf(Pe,xe):(Pe.__proto__=xe,le(Pe,ae,"GeneratorFunction")),Pe.prototype=Object.create(Ne),Pe},j.awrap=function(Pe){return{__await:Pe}},yt(Ue.prototype),le(Ue.prototype,ce,function(){return this}),j.AsyncIterator=Ue,j.async=function(Pe,ke,Be,$e,nt){nt===void 0&&(nt=Promise);var ft=new Ue(pe(Pe,ke,Be,$e),nt);return j.isGeneratorFunction(ke)?ft:ft.next().then(function(Mt){return Mt.done?Mt.value:ft.next()})},yt(Ne),le(Ne,ae,"Generator"),le(Ne,K,function(){return this}),le(Ne,"toString",function(){return"[object Generator]"}),j.keys=function(Pe){var ke=Object(Pe),Be=[];for(var $e in ke)Be.push($e);return Be.reverse(),function nt(){for(;Be.length;){var ft=Be.pop();if(ft in ke)return nt.value=ft,nt.done=!1,nt}return nt.done=!0,nt}},j.values=Ge,Me.prototype={constructor:Me,reset:function(Pe){if(this.prev=0,this.next=0,this.sent=this._sent=G,this.done=!1,this.delegate=null,this.method="next",this.arg=G,this.tryEntries.forEach(Re),!Pe)for(var ke in this)ke.charAt(0)==="t"&&X.call(this,ke)&&!isNaN(+ke.slice(1))&&(this[ke]=G)},stop:function(){this.done=!0;var Pe=this.tryEntries[0].completion;if(Pe.type==="throw")throw Pe.arg;return this.rval},dispatchException:function(Pe){if(this.done)throw Pe;var ke=this;function Be(Bt,It){return ft.type="throw",ft.arg=Pe,ke.next=Bt,It&&(ke.method="next",ke.arg=G),!!It}for(var $e=this.tryEntries.length-1;$e>=0;--$e){var nt=this.tryEntries[$e],ft=nt.completion;if(nt.tryLoc==="root")return Be("end");if(nt.tryLoc<=this.prev){var Mt=X.call(nt,"catchLoc"),Rt=X.call(nt,"finallyLoc");if(Mt&&Rt){if(this.prev<nt.catchLoc)return Be(nt.catchLoc,!0);if(this.prev<nt.finallyLoc)return Be(nt.finallyLoc)}else if(Mt){if(this.prev<nt.catchLoc)return Be(nt.catchLoc,!0)}else{if(!Rt)throw new Error("try statement without catch or finally");if(this.prev<nt.finallyLoc)return Be(nt.finallyLoc)}}}},abrupt:function(Pe,ke){for(var Be=this.tryEntries.length-1;Be>=0;--Be){var $e=this.tryEntries[Be];if($e.tryLoc<=this.prev&&X.call($e,"finallyLoc")&&this.prev<$e.finallyLoc){var nt=$e;break}}nt&&(Pe==="break"||Pe==="continue")&&nt.tryLoc<=ke&&ke<=nt.finallyLoc&&(nt=null);var ft=nt?nt.completion:{};return ft.type=Pe,ft.arg=ke,nt?(this.method="next",this.next=nt.finallyLoc,_e):this.complete(ft)},complete:function(Pe,ke){if(Pe.type==="throw")throw Pe.arg;return Pe.type==="break"||Pe.type==="continue"?this.next=Pe.arg:Pe.type==="return"?(this.rval=this.arg=Pe.arg,this.method="return",this.next="end"):Pe.type==="normal"&&ke&&(this.next=ke),_e},finish:function(Pe){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var Be=this.tryEntries[ke];if(Be.finallyLoc===Pe)return this.complete(Be.completion,Be.afterLoc),Re(Be),_e}},catch:function(Pe){for(var ke=this.tryEntries.length-1;ke>=0;--ke){var Be=this.tryEntries[ke];if(Be.tryLoc===Pe){var $e=Be.completion;if($e.type==="throw"){var nt=$e.arg;Re(Be)}return nt}}throw new Error("illegal catch attempt")},delegateYield:function(Pe,ke,Be){return this.delegate={iterator:Ge(Pe),resultName:ke,nextLoc:Be},this.method==="next"&&(this.arg=G),_e}},j}function I(G,j){var q=typeof Symbol<"u"&&G[Symbol.iterator]||G["@@iterator"];if(!q){if(Array.isArray(G)||(q=function(ae,le){if(ae){if(typeof ae=="string")return O(ae,le);var pe=Object.prototype.toString.call(ae).slice(8,-1);if(pe==="Object"&&ae.constructor&&(pe=ae.constructor.name),pe==="Map"||pe==="Set")return Array.from(ae);if(pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return O(ae,le)}}(G))||j){q&&(G=q);var X=0,Y=function(){};return{s:Y,n:function(){return X>=G.length?{done:!0}:{done:!1,value:G[X++]}},e:function(ae){throw ae},f:Y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var te,K=!0,ce=!1;return{s:function(){q=q.call(G)},n:function(){var ae=q.next();return K=ae.done,ae},e:function(ae){ce=!0,te=ae},f:function(){try{K||q.return==null||q.return()}finally{if(ce)throw te}}}}function O(G,j){(j==null||j>G.length)&&(j=G.length);for(var q=0,X=new Array(j);q<j;q++)X[q]=G[q];return X}function U(G,j,q,X,Y,te,K){try{var ce=G[te](K),ae=ce.value}catch(le){return void q(le)}ce.done?j(ae):Promise.resolve(ae).then(X,Y)}var N,H,z=h.EventHandlers={keyEvent:function(G,j,q,X,Y){var te=this.inputmask,K=te.opts,ce=te.dependencyLib,ae=te.maskset,le=this,pe=ce(le),ie=G.key,he=T.caret.call(te,le),re=K.onKeyDown.call(this,G,T.getBuffer.call(te),he,K);if(re!==void 0)return re;if(ie===C.keys.Backspace||ie===C.keys.Delete||y.iphone&&ie===C.keys.BACKSPACE_SAFARI||G.ctrlKey&&ie===C.keys.x&&!("oncut"in le))G.preventDefault(),B.handleRemove.call(te,le,ie,he),(0,b.writeBuffer)(le,T.getBuffer.call(te,!0),ae.p,G,le.inputmask._valueGet()!==T.getBuffer.call(te).join(""));else if(ie===C.keys.End||ie===C.keys.PageDown){G.preventDefault();var oe=T.seekNext.call(te,T.getLastValidPosition.call(te));T.caret.call(te,le,G.shiftKey?he.begin:oe,oe,!0)}else ie===C.keys.Home&&!G.shiftKey||ie===C.keys.PageUp?(G.preventDefault(),T.caret.call(te,le,0,G.shiftKey?he.begin:0,!0)):K.undoOnEscape&&ie===C.keys.Escape&&G.altKey!==!0?((0,b.checkVal)(le,!0,!1,te.undoValue.split("")),pe.trigger("click")):ie!==C.keys.Insert||G.shiftKey||G.ctrlKey||te.userOptions.insertMode!==void 0?K.tabThrough===!0&&ie===C.keys.Tab?G.shiftKey===!0?(he.end=T.seekPrevious.call(te,he.end,!0),L.getTest.call(te,he.end-1).match.static===!0&&he.end--,he.begin=T.seekPrevious.call(te,he.end,!0),he.begin>=0&&he.end>0&&(G.preventDefault(),T.caret.call(te,le,he.begin,he.end))):(he.begin=T.seekNext.call(te,he.begin,!0),he.end=T.seekNext.call(te,he.begin,!0),he.end<ae.maskLength&&he.end--,he.begin<=ae.maskLength&&(G.preventDefault(),T.caret.call(te,le,he.begin,he.end))):G.shiftKey||(K.insertModeVisual&&K.insertMode===!1?ie===C.keys.ArrowRight?setTimeout(function(){var ye=T.caret.call(te,le);T.caret.call(te,le,ye.begin)},0):ie===C.keys.ArrowLeft&&setTimeout(function(){var ye=T.translatePosition.call(te,le.inputmask.caretPos.begin);T.translatePosition.call(te,le.inputmask.caretPos.end),te.isRTL?T.caret.call(te,le,ye+(ye===ae.maskLength?0:1)):T.caret.call(te,le,ye-(ye===0?0:1))},0):te.keyEventHook===void 0||te.keyEventHook(G)):B.isSelection.call(te,he)?K.insertMode=!K.insertMode:(K.insertMode=!K.insertMode,T.caret.call(te,le,he.begin,he.begin));return te.isComposing=ie==C.keys.Process||ie==C.keys.Unidentified,te.ignorable=ie.length>1&&!(le.tagName.toLowerCase()==="textarea"&&ie==C.keys.Enter),z.keypressEvent.call(this,G,j,q,X,Y)},keypressEvent:function(G,j,q,X,Y){var te=this.inputmask||this,K=te.opts,ce=te.dependencyLib,ae=te.maskset,le=te.el,pe=ce(le),ie=G.key;if(j===!0||G.ctrlKey&&G.altKey&&!te.ignorable||!(G.ctrlKey||G.metaKey||te.ignorable)){if(ie){var he,re=j?{begin:Y,end:Y}:T.caret.call(te,le);j||(ie=K.substitutes[ie]||ie),ae.writeOutBuffer=!0;var oe=B.isValid.call(te,re,ie,X,void 0,void 0,void 0,j);if(oe!==!1&&(T.resetMaskSet.call(te,!0),he=oe.caret!==void 0?oe.caret:T.seekNext.call(te,oe.pos.begin?oe.pos.begin:oe.pos),ae.p=he),he=K.numericInput&&oe.caret===void 0?T.seekPrevious.call(te,he):he,q!==!1&&(setTimeout(function(){K.onKeyValidation.call(le,ie,oe)},0),ae.writeOutBuffer&&oe!==!1)){var ye=T.getBuffer.call(te);(0,b.writeBuffer)(le,ye,he,G,j!==!0)}if(G.preventDefault(),j)return oe!==!1&&(oe.forwardPosition=he),oe}}else ie===C.keys.Enter&&te.undoValue!==te._valueGet(!0)&&(te.undoValue=te._valueGet(!0),setTimeout(function(){pe.trigger("change")},0))},pasteEvent:(N=P().mark(function G(j){var q,X,Y,te,K,ce;return P().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:q=function(le,pe,ie,he,re){var oe=T.caret.call(le,pe,void 0,void 0,!0),ye=ie.substr(0,oe.begin),_e=ie.substr(oe.end,ie.length);if(ye==(le.isRTL?T.getBufferTemplate.call(le).slice().reverse():T.getBufferTemplate.call(le)).slice(0,oe.begin).join("")&&(ye=""),_e==(le.isRTL?T.getBufferTemplate.call(le).slice().reverse():T.getBufferTemplate.call(le)).slice(oe.end).join("")&&(_e=""),he=ye+he+_e,le.isRTL&&te.numericInput!==!0){he=he.split("");var Ce,ne=I(T.getBufferTemplate.call(le));try{for(ne.s();!(Ce=ne.n()).done;){var xe=Ce.value;he[0]===xe&&he.shift()}}catch(ze){ne.e(ze)}finally{ne.f()}he=he.reverse().join("")}var De=he;if(typeof re=="function"){if((De=re.call(le,De,te))===!1)return!1;De||(De=ie)}(0,b.checkVal)(pe,!0,!1,De.toString().split(""),j)},X=this,Y=this.inputmask,te=Y.opts,K=Y._valueGet(!0),Y.skipInputEvent=!0,j.clipboardData&&j.clipboardData.getData?ce=j.clipboardData.getData("text/plain"):_.default.clipboardData&&_.default.clipboardData.getData&&(ce=_.default.clipboardData.getData("Text")),q(Y,X,K,ce,te.onBeforePaste),j.preventDefault();case 7:case"end":return ae.stop()}},G,this)}),H=function(){var G=this,j=arguments;return new Promise(function(q,X){var Y=N.apply(G,j);function te(ce){U(Y,q,X,te,K,"next",ce)}function K(ce){U(Y,q,X,te,K,"throw",ce)}te(void 0)})},function(G){return H.apply(this,arguments)}),inputFallBackEvent:function(G){var j=this.inputmask,q=j.opts,X=j.dependencyLib,Y,te=this,K=te.inputmask._valueGet(!0),ce=(j.isRTL?T.getBuffer.call(j).slice().reverse():T.getBuffer.call(j)).join(""),ae=T.caret.call(j,te,void 0,void 0,!0);if(ce!==K){if(Y=function(pe,ie,he){for(var re,oe,ye,_e=pe.substr(0,he.begin).split(""),Ce=pe.substr(he.begin).split(""),ne=ie.substr(0,he.begin).split(""),xe=ie.substr(he.begin).split(""),De=_e.length>=ne.length?_e.length:ne.length,ze=Ce.length>=xe.length?Ce.length:xe.length,Ye="",Ne=[],yt="~";_e.length<De;)_e.push(yt);for(;ne.length<De;)ne.push(yt);for(;Ce.length<ze;)Ce.unshift(yt);for(;xe.length<ze;)xe.unshift(yt);var Ue=_e.concat(Ce),ue=ne.concat(xe);for(oe=0,re=Ue.length;oe<re;oe++)switch(ye=L.getPlaceholder.call(j,T.translatePosition.call(j,oe)),Ye){case"insertText":ue[oe-1]===Ue[oe]&&he.begin==Ue.length-1&&Ne.push(Ue[oe]),oe=re;break;case"insertReplacementText":case"deleteContentBackward":Ue[oe]===yt?he.end++:oe=re;break;default:Ue[oe]!==ue[oe]&&(Ue[oe+1]!==yt&&Ue[oe+1]!==ye&&Ue[oe+1]!==void 0||(ue[oe]!==ye||ue[oe+1]!==yt)&&ue[oe]!==yt?ue[oe+1]===yt&&ue[oe]===Ue[oe+1]?(Ye="insertText",Ne.push(Ue[oe]),he.begin--,he.end--):Ue[oe]!==ye&&Ue[oe]!==yt&&(Ue[oe+1]===yt||ue[oe]!==Ue[oe]&&ue[oe+1]===Ue[oe+1])?(Ye="insertReplacementText",Ne.push(Ue[oe]),he.begin--):Ue[oe]===yt?(Ye="deleteContentBackward",(T.isMask.call(j,T.translatePosition.call(j,oe),!0)||ue[oe]===q.radixPoint)&&he.end++):oe=re:(Ye="insertText",Ne.push(Ue[oe]),he.begin--,he.end--))}return{action:Ye,data:Ne,caret:he}}(K,ce,ae),(te.inputmask.shadowRoot||te.ownerDocument).activeElement!==te&&te.focus(),(0,b.writeBuffer)(te,T.getBuffer.call(j)),T.caret.call(j,te,ae.begin,ae.end,!0),!y.mobile&&j.skipNextInsert&&G.inputType==="insertText"&&Y.action==="insertText"&&j.isComposing)return!1;switch(G.inputType==="insertCompositionText"&&Y.action==="insertText"&&j.isComposing?j.skipNextInsert=!0:j.skipNextInsert=!1,Y.action){case"insertText":case"insertReplacementText":Y.data.forEach(function(pe,ie){var he=new X.Event("keypress");he.key=pe,j.ignorable=!1,z.keypressEvent.call(te,he)}),setTimeout(function(){j.$el.trigger("keyup")},0);break;case"deleteContentBackward":var le=new X.Event("keydown");le.key=C.keys.Backspace,z.keyEvent.call(te,le);break;default:(0,b.applyInputValue)(te,K),T.caret.call(j,te,ae.begin,ae.end,!0)}G.preventDefault()}},setValueEvent:function(G){var j=this.inputmask,q=j.dependencyLib,X=this,Y=G&&G.detail?G.detail[0]:arguments[1];Y===void 0&&(Y=X.inputmask._valueGet(!0)),(0,b.applyInputValue)(X,Y,new q.Event("input")),(G.detail&&G.detail[1]!==void 0||arguments[2]!==void 0)&&T.caret.call(j,X,G.detail?G.detail[1]:arguments[2])},focusEvent:function(G){var j=this.inputmask,q=j.opts,X=j&&j._valueGet();q.showMaskOnFocus&&X!==T.getBuffer.call(j).join("")&&(0,b.writeBuffer)(this,T.getBuffer.call(j),T.seekNext.call(j,T.getLastValidPosition.call(j))),q.positionCaretOnTab!==!0||j.mouseEnter!==!1||B.isComplete.call(j,T.getBuffer.call(j))&&T.getLastValidPosition.call(j)!==-1||z.clickEvent.apply(this,[G,!0]),j.undoValue=j&&j._valueGet(!0)},invalidEvent:function(G){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var G=this.inputmask,j=G.opts,q=this;G.mouseEnter=!1,j.clearMaskOnLostFocus&&(q.inputmask.shadowRoot||q.ownerDocument).activeElement!==q&&(0,b.HandleNativePlaceholder)(q,G.originalPlaceholder)},clickEvent:function(G,j){var q=this.inputmask;q.clicked++;var X=this;if((X.inputmask.shadowRoot||X.ownerDocument).activeElement===X){var Y=T.determineNewCaretPosition.call(q,T.caret.call(q,X),j);Y!==void 0&&T.caret.call(q,X,Y)}},cutEvent:function(G){var j=this.inputmask,q=j.maskset,X=this,Y=T.caret.call(j,X),te=j.isRTL?T.getBuffer.call(j).slice(Y.end,Y.begin):T.getBuffer.call(j).slice(Y.begin,Y.end),K=j.isRTL?te.reverse().join(""):te.join("");_.default.navigator&&_.default.navigator.clipboard?_.default.navigator.clipboard.writeText(K):_.default.clipboardData&&_.default.clipboardData.getData&&_.default.clipboardData.setData("Text",K),B.handleRemove.call(j,X,C.keys.Delete,Y),(0,b.writeBuffer)(X,T.getBuffer.call(j),q.p,G,j.undoValue!==j._valueGet(!0))},blurEvent:function(G){var j=this.inputmask,q=j.opts,X=j.dependencyLib;j.clicked=0;var Y=X(this),te=this;if(te.inputmask){(0,b.HandleNativePlaceholder)(te,j.originalPlaceholder);var K=te.inputmask._valueGet(),ce=T.getBuffer.call(j).slice();K!==""&&(q.clearMaskOnLostFocus&&(T.getLastValidPosition.call(j)===-1&&K===T.getBufferTemplate.call(j).join("")?ce=[]:b.clearOptionalTail.call(j,ce)),B.isComplete.call(j,ce)===!1&&(setTimeout(function(){Y.trigger("incomplete")},0),q.clearIncomplete&&(T.resetMaskSet.call(j,!1),ce=q.clearMaskOnLostFocus?[]:T.getBufferTemplate.call(j).slice())),(0,b.writeBuffer)(te,ce,void 0,G)),K=j._valueGet(!0),j.undoValue!==K&&(K!=""||j.undoValue!=T.getBufferTemplate.call(j).join("")||j.undoValue==T.getBufferTemplate.call(j).join("")&&j.maskset.validPositions.length>0)&&(j.undoValue=K,Y.trigger("change"))}},mouseenterEvent:function(){var G=this.inputmask,j=G.opts.showMaskOnHover,q=this;if(G.mouseEnter=!0,(q.inputmask.shadowRoot||q.ownerDocument).activeElement!==q){var X=(G.isRTL?T.getBufferTemplate.call(G).slice().reverse():T.getBufferTemplate.call(G)).join("");j&&(0,b.HandleNativePlaceholder)(q,X)}},submitEvent:function(){var G=this.inputmask,j=G.opts;G.undoValue!==G._valueGet(!0)&&G.$el.trigger("change"),T.getLastValidPosition.call(G)===-1&&G._valueGet&&G._valueGet()===T.getBufferTemplate.call(G).join("")&&G._valueSet(""),j.clearIncomplete&&B.isComplete.call(G,T.getBuffer.call(G))===!1&&G._valueSet(""),j.removeMaskOnSubmit&&(G._valueSet(G.unmaskedvalue(),!0),setTimeout(function(){(0,b.writeBuffer)(G.el,T.getBuffer.call(G))},0))},resetEvent:function(){var G=this.inputmask;G.refreshValue=!0,setTimeout(function(){(0,b.applyInputValue)(G.el,G._valueGet(!0))},0)}}},9716:function(f,h,A){Object.defineProperty(h,"__esModule",{value:!0}),h.EventRuler=void 0;var p,g=A(7760),y=(p=A(2394))&&p.__esModule?p:{default:p},_=A(2839),b=A(8711);h.EventRuler={on:function(C,T,B){var L=C.inputmask.dependencyLib,P=function(I){I.originalEvent&&(I=I.originalEvent||I,arguments[0]=I);var O,U=this,N=U.inputmask,H=N?N.opts:void 0;if(N===void 0&&this.nodeName!=="FORM"){var z=L.data(U,"_inputmask_opts");L(U).off(),z&&new y.default(z).mask(U)}else{if(["submit","reset","setvalue"].includes(I.type)||this.nodeName==="FORM"||!(U.disabled||U.readOnly&&!(I.type==="keydown"&&I.ctrlKey&&I.key===_.keys.c||H.tabThrough===!1&&I.key===_.keys.Tab))){switch(I.type){case"input":if(N.skipInputEvent===!0)return N.skipInputEvent=!1,I.preventDefault();break;case"click":case"focus":return N.validationEvent?(N.validationEvent=!1,C.blur(),(0,g.HandleNativePlaceholder)(C,(N.isRTL?b.getBufferTemplate.call(N).slice().reverse():b.getBufferTemplate.call(N)).join("")),setTimeout(function(){C.focus()},H.validationEventTimeOut),!1):(O=arguments,void setTimeout(function(){C.inputmask&&B.apply(U,O)},0))}var G=B.apply(U,arguments);return G===!1&&(I.preventDefault(),I.stopPropagation()),G}I.preventDefault()}};["submit","reset"].includes(T)?(P=P.bind(C),C.form!==null&&L(C.form).on(T,P)):L(C).on(T,P),C.inputmask.events[T]=C.inputmask.events[T]||[],C.inputmask.events[T].push(P)},off:function(C,T){if(C.inputmask&&C.inputmask.events){var B=C.inputmask.dependencyLib,L=C.inputmask.events;for(var P in T&&((L=[])[T]=C.inputmask.events[T]),L){for(var I=L[P];I.length>0;){var O=I.pop();["submit","reset"].includes(P)?C.form!==null&&B(C.form).off(P,O):B(C).off(P,O)}delete C.inputmask.events[P]}}}}},219:function(f,h,A){var p=P(A(7184)),g=P(A(2394)),y=A(2839),_=A(8711),b=A(4713);function C(ie,he){return function(re){if(Array.isArray(re))return re}(ie)||function(re,oe){var ye=re==null?null:typeof Symbol<"u"&&re[Symbol.iterator]||re["@@iterator"];if(ye!=null){var _e,Ce,ne,xe,De=[],ze=!0,Ye=!1;try{if(ne=(ye=ye.call(re)).next,oe!==0)for(;!(ze=(_e=ne.call(ye)).done)&&(De.push(_e.value),De.length!==oe);ze=!0);}catch(Ne){Ye=!0,Ce=Ne}finally{try{if(!ze&&ye.return!=null&&(xe=ye.return(),Object(xe)!==xe))return}finally{if(Ye)throw Ce}}return De}}(ie,he)||function(re,oe){if(re){if(typeof re=="string")return T(re,oe);var ye=Object.prototype.toString.call(re).slice(8,-1);if(ye==="Object"&&re.constructor&&(ye=re.constructor.name),ye==="Map"||ye==="Set")return Array.from(re);if(ye==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ye))return T(re,oe)}}(ie,he)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function T(ie,he){(he==null||he>ie.length)&&(he=ie.length);for(var re=0,oe=new Array(he);re<he;re++)oe[re]=ie[re];return oe}function B(ie){return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(he){return typeof he}:function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he},B(ie)}function L(ie,he){for(var re=0;re<he.length;re++){var oe=he[re];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(ie,(ye=oe.key,_e=void 0,_e=function(Ce,ne){if(B(Ce)!=="object"||Ce===null)return Ce;var xe=Ce[Symbol.toPrimitive];if(xe!==void 0){var De=xe.call(Ce,ne);if(B(De)!=="object")return De;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ne==="string"?String:Number)(Ce)}(ye,"string"),B(_e)==="symbol"?_e:String(_e)),oe)}var ye,_e}function P(ie){return ie&&ie.__esModule?ie:{default:ie}}A(1313);var I=g.default.dependencyLib,O=function(){function ie(oe,ye,_e,Ce){(function(ne,xe){if(!(ne instanceof xe))throw new TypeError("Cannot call a class as a function")})(this,ie),this.mask=oe,this.format=ye,this.opts=_e,this.inputmask=Ce,this._date=new Date(1,0,1),this.initDateObject(oe,this.opts,this.inputmask)}var he,re;return he=ie,(re=[{key:"date",get:function(){return this._date===void 0&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}},{key:"initDateObject",value:function(oe,ye,_e){var Ce;for(Y(ye).lastIndex=0;Ce=Y(ye).exec(this.format);){var ne=/\d+$/.exec(Ce[0]),xe=ne?Ce[0][0]+"x":Ce[0],De=void 0;if(oe!==void 0){if(ne){var ze=Y(ye).lastIndex,Ye=pe.call(_e,Ce.index,ye,_e&&_e.maskset);Y(ye).lastIndex=ze,De=oe.slice(0,oe.indexOf(Ye.nextMatch[0]))}else{for(var Ne=Ce[0][0],yt=Ce.index;_e&&(ye.placeholder[b.getTest.call(_e,yt).match.placeholder]||b.getTest.call(_e,yt).match.placeholder)===Ne;)yt++;var Ue=yt-Ce.index;De=oe.slice(0,Ue||z[xe]&&z[xe][4]||xe.length)}oe=oe.slice(De.length)}Object.prototype.hasOwnProperty.call(z,xe)&&this.setValue(this,De,xe,z[xe][2],z[xe][1])}}},{key:"setValue",value:function(oe,ye,_e,Ce,ne){if(ye!==void 0)switch(Ce){case"ampm":oe[Ce]=ye,oe["raw"+Ce]=ye.replace(/\s/g,"_");break;case"month":if(_e==="mmm"||_e==="mmmm"){oe[Ce]=ce(_e==="mmm"?N.monthNames.slice(0,12).findIndex(function(De){return ye.toLowerCase()===De.toLowerCase()})+1:N.monthNames.slice(12,24).findIndex(function(De){return ye.toLowerCase()===De.toLowerCase()})+1,2),oe[Ce]=oe[Ce]==="00"?"":oe[Ce].toString(),oe["raw"+Ce]=oe[Ce];break}default:oe[Ce]=ye.replace(/[^0-9]/g,"0"),oe["raw"+Ce]=ye.replace(/\s/g,"_")}if(ne!==void 0){var xe=oe[Ce];(Ce==="day"&&parseInt(xe)===29||Ce==="month"&&parseInt(xe)===2)&&(parseInt(oe.day)!==29||parseInt(oe.month)!==2||oe.year!==""&&oe.year!==void 0||oe._date.setFullYear(2012,1,29)),Ce==="day"&&(H=!0,parseInt(xe)===0&&(xe=1)),Ce==="month"&&(H=!0),Ce==="year"&&(H=!0,xe.length<z[_e][4]&&(xe=ce(xe,z[_e][4],!0))),(xe!==""&&!isNaN(xe)||Ce==="ampm")&&ne.call(oe._date,xe)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0,this.date}}])&&L(he.prototype,re),Object.defineProperty(he,"prototype",{writable:!1}),ie}(),U=new Date().getFullYear(),N=g.default.prototype.i18n,H=!1,z={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return ce(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(ie){var he=ie?parseInt(ie):0;return he>0&&he--,Date.prototype.setMonth.call(this,he)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(ie){var he=ie?parseInt(ie):0;return he>0&&he--,Date.prototype.setMonth.call(this,he)},"month",function(){return ce(Date.prototype.getMonth.call(this)+1,2)}],mmm:[N.monthNames.slice(0,12).join("|"),function(ie){var he=N.monthNames.slice(0,12).findIndex(function(re){return ie.toLowerCase()===re.toLowerCase()});return he!==-1&&Date.prototype.setMonth.call(this,he)},"month",function(){return N.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[N.monthNames.slice(12,24).join("|"),function(ie){var he=N.monthNames.slice(12,24).findIndex(function(re){return ie.toLowerCase()===re.toLowerCase()});return he!==-1&&Date.prototype.setMonth.call(this,he)},"month",function(){return N.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(ie){var he=new Date().getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(he).concat(ie))},"year",function(){return ce(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return ce(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return ce(Date.prototype.getHours.call(this),2)}],hx:[function(ie){return"[0-9]{".concat(ie,"}")},Date.prototype.setHours,"hours",function(ie){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return ce(Date.prototype.getHours.call(this),2)}],Hx:[function(ie){return"[0-9]{".concat(ie,"}")},Date.prototype.setHours,"hours",function(ie){return function(){return ce(Date.prototype.getHours.call(this),ie)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return ce(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return ce(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return ce(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return ce(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",j,"ampm",q,1],tt:["[ap]m",j,"ampm",q,2],T:["[AP]",j,"ampm",q,1],TT:["[AP]M",j,"ampm",q,2],Z:[".*",void 0,"Z",function(){var ie=this.toString().match(/\((.+)\)/)[1];return ie.includes(" ")&&(ie=(ie=ie.replace("-"," ").toUpperCase()).split(" ").map(function(he){return C(he,1)[0]}).join("")),ie}],o:[""],S:[""]},G={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function j(ie){var he=this.getHours();ie.toLowerCase().includes("p")?this.setHours(he+12):ie.toLowerCase().includes("a")&&he>=12&&this.setHours(he-12)}function q(){var ie=this.getHours();return(ie=ie||12)>=12?"PM":"AM"}function X(ie){var he=/\d+$/.exec(ie[0]);if(he&&he[0]!==void 0){var re=z[ie[0][0]+"x"].slice("");return re[0]=re[0](he[0]),re[3]=re[3](he[0]),re}if(z[ie[0]])return z[ie[0]]}function Y(ie){if(!ie.tokenizer){var he=[],re=[];for(var oe in z)if(/\.*x$/.test(oe)){var ye=oe[0]+"\\d+";re.indexOf(ye)===-1&&re.push(ye)}else he.indexOf(oe[0])===-1&&he.push(oe[0]);ie.tokenizer="("+(re.length>0?re.join("|")+"|":"")+he.join("+|")+")+?|.",ie.tokenizer=new RegExp(ie.tokenizer,"g")}return ie.tokenizer}function te(ie,he,re){if(!H)return!0;if(ie.rawday===void 0||!isFinite(ie.rawday)&&new Date(ie.date.getFullYear(),isFinite(ie.rawmonth)?ie.month:ie.date.getMonth()+1,0).getDate()>=ie.day||ie.day=="29"&&(!isFinite(ie.rawyear)||ie.rawyear===void 0||ie.rawyear==="")||new Date(ie.date.getFullYear(),isFinite(ie.rawmonth)?ie.month:ie.date.getMonth()+1,0).getDate()>=ie.day)return he;if(ie.day=="29"){var oe=pe.call(this,he.pos,re,this.maskset);if(oe.targetMatch&&oe.targetMatch[0]==="yyyy"&&he.pos-oe.targetMatchIndex==2)return he.remove=he.pos+1,he}else if(ie.date.getMonth()==2&&ie.day=="30"&&he.c!==void 0)return ie.day="03",ie.date.setDate(3),ie.date.setMonth(1),he.insert=[{pos:he.pos,c:"0"},{pos:he.pos+1,c:he.c}],he.caret=_.seekNext.call(this,he.pos+1),he;return!1}function K(ie,he,re,oe){var ye,_e,Ce="",ne=0,xe={};for(Y(re).lastIndex=0;ye=Y(re).exec(ie);){if(he===void 0)if(_e=X(ye))Ce+="("+_e[0]+")",re.placeholder&&re.placeholder!==""?(xe[ne]=re.placeholder[ye.index%re.placeholder.length],xe[re.placeholder[ye.index%re.placeholder.length]]=ye[0].charAt(0)):xe[ne]=ye[0].charAt(0);else switch(ye[0]){case"[":Ce+="(";break;case"]":Ce+=")?";break;default:Ce+=(0,p.default)(ye[0]),xe[ne]=ye[0].charAt(0)}else(_e=X(ye))?oe!==!0&&_e[3]?Ce+=_e[3].call(he.date):_e[2]?Ce+=he["raw"+_e[2]]:Ce+=ye[0]:Ce+=ye[0];ne++}return he===void 0&&(re.placeholder=xe),Ce}function ce(ie,he,re){for(ie=String(ie),he=he||2;ie.length<he;)ie=re?ie+"0":"0"+ie;return ie}function ae(ie,he,re){return typeof ie=="string"?new O(ie,he,re,this):ie&&B(ie)==="object"&&Object.prototype.hasOwnProperty.call(ie,"date")?ie:void 0}function le(ie,he){return K(he.inputFormat,{date:ie},he)}function pe(ie,he,re){var oe,ye,_e=this,Ce=re&&re.tests[ie]?he.placeholder[re.tests[ie][0].match.placeholder]||re.tests[ie][0].match.placeholder:"",ne=0,xe=0;for(Y(he).lastIndex=0;ye=Y(he).exec(he.inputFormat);){var De=/\d+$/.exec(ye[0]);if(De)xe=parseInt(De[0]);else{for(var ze=ye[0][0],Ye=ne;_e&&(he.placeholder[b.getTest.call(_e,Ye).match.placeholder]||b.getTest.call(_e,Ye).match.placeholder)===ze;)Ye++;(xe=Ye-ne)===0&&(xe=ye[0].length)}if(ne+=xe,ye[0].indexOf(Ce)!=-1||ne>=ie+1){oe=ye,ye=Y(he).exec(he.inputFormat);break}}return{targetMatchIndex:ne-xe,nextMatch:ye,targetMatch:oe}}g.default.extendAliases({datetime:{mask:function(ie){return ie.numericInput=!1,z.S=N.ordinalSuffix.join("|"),ie.inputFormat=G[ie.inputFormat]||ie.inputFormat,ie.displayFormat=G[ie.displayFormat]||ie.displayFormat||ie.inputFormat,ie.outputFormat=G[ie.outputFormat]||ie.outputFormat||ie.inputFormat,ie.regex=K(ie.inputFormat,void 0,ie),ie.min=ae(ie.min,ie.inputFormat,ie),ie.max=ae(ie.max,ie.inputFormat,ie),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(ie,he,re,oe,ye,_e,Ce,ne){if(ne)return!0;if(isNaN(re)&&ie[he]!==re){var xe=pe.call(this,he,ye,_e);if(xe.nextMatch&&xe.nextMatch[0]===re&&xe.targetMatch[0].length>1){var De=X(xe.targetMatch)[0];if(new RegExp(De).test("0"+ie[he-1]))return ie[he]=ie[he-1],ie[he-1]="0",{fuzzy:!0,buffer:ie,refreshFromBuffer:{start:he-1,end:he+1},pos:he+1}}}return!0},postValidation:function(ie,he,re,oe,ye,_e,Ce,ne){var xe,De,ze=this;if(Ce)return!0;if(oe===!1&&(((xe=pe.call(ze,he+1,ye,_e)).targetMatch&&xe.targetMatchIndex===he&&xe.targetMatch[0].length>1&&z[xe.targetMatch[0]]!==void 0||(xe=pe.call(ze,he+2,ye,_e)).targetMatch&&xe.targetMatchIndex===he+1&&xe.targetMatch[0].length>1&&z[xe.targetMatch[0]]!==void 0)&&(De=X(xe.targetMatch)[0]),De!==void 0&&(_e.validPositions[he+1]!==void 0&&new RegExp(De).test(re+"0")?(ie[he]=re,ie[he+1]="0",oe={pos:he+2,caret:he}):new RegExp(De).test("0"+re)&&(ie[he]="0",ie[he+1]=re,oe={pos:he+2})),oe===!1))return oe;if(oe.fuzzy&&(ie=oe.buffer,he=oe.pos),(xe=pe.call(ze,he,ye,_e)).targetMatch&&xe.targetMatch[0]&&z[xe.targetMatch[0]]!==void 0){var Ye=X(xe.targetMatch);De=Ye[0];var Ne=ie.slice(xe.targetMatchIndex,xe.targetMatchIndex+xe.targetMatch[0].length);if(new RegExp(De).test(Ne.join(""))===!1&&xe.targetMatch[0].length===2&&_e.validPositions[xe.targetMatchIndex]&&_e.validPositions[xe.targetMatchIndex+1]&&(_e.validPositions[xe.targetMatchIndex+1].input="0"),Ye[2]=="year")for(var yt=b.getMaskTemplate.call(ze,!1,1,void 0,!0),Ue=he+1;Ue<ie.length;Ue++)ie[Ue]=yt[Ue],_e.validPositions.splice(he+1,1)}var ue=oe,Qe=ae.call(ze,ie.join(""),ye.inputFormat,ye);return ue&&!isNaN(Qe.date.getTime())&&(ye.prefillYear&&(ue=function(qe,Re,Me){if(qe.year!==qe.rawyear){var Ge=U.toString(),Pe=qe.rawyear.replace(/[^0-9]/g,""),ke=Ge.slice(0,Pe.length),Be=Ge.slice(Pe.length);if(Pe.length===2&&Pe===ke){var $e=new Date(U,qe.month-1,qe.day);qe.day==$e.getDate()&&(!Me.max||Me.max.date.getTime()>=$e.getTime())&&(qe.date.setFullYear(U),qe.year=Ge,Re.insert=[{pos:Re.pos+1,c:Be[0]},{pos:Re.pos+2,c:Be[1]}])}}return Re}(Qe,ue,ye)),ue=function(qe,Re,Me,Ge,Pe){if(!Re)return Re;if(Re&&Me.min&&!isNaN(Me.min.date.getTime())){var ke;for(qe.reset(),Y(Me).lastIndex=0;ke=Y(Me).exec(Me.inputFormat);){var Be;if((Be=X(ke))&&Be[3]){for(var $e=Be[1],nt=qe[Be[2]],ft=Me.min[Be[2]],Mt=Me.max?Me.max[Be[2]]:ft+1,Rt=[],Bt=!1,It=0;It<ft.length;It++)Ge.validPositions[It+ke.index]!==void 0||Bt?(Rt[It]=nt[It],Bt=Bt||nt[It]>ft[It]):(It+ke.index==0&&nt[It]<ft[It]?(Rt[It]=nt[It],Bt=!0):Rt[It]=ft[It],Be[2]==="year"&&nt.length-1==It&&ft!=Mt&&(Rt=(parseInt(Rt.join(""))+1).toString().split("")),Be[2]==="ampm"&&ft!=Mt&&Me.min.date.getTime()>qe.date.getTime()&&(Rt[It]=Mt[It]));$e.call(qe._date,Rt.join(""))}}Re=Me.min.date.getTime()<=qe.date.getTime(),qe.reInit()}return Re&&Me.max&&(isNaN(Me.max.date.getTime())||(Re=Me.max.date.getTime()>=qe.date.getTime())),Re}(Qe,ue=te.call(ze,Qe,ue,ye),ye,_e)),he!==void 0&&ue&&oe.pos!==he?{buffer:K(ye.inputFormat,Qe,ye).split(""),refreshFromBuffer:{start:he,end:oe.pos},pos:oe.caret||oe.pos}:ue},onKeyDown:function(ie,he,re,oe){ie.ctrlKey&&ie.key===y.keys.ArrowRight&&(this.inputmask._valueSet(le(new Date,oe)),I(this).trigger("setvalue"))},onUnMask:function(ie,he,re){return he&&K(re.outputFormat,ae.call(this,ie,re.inputFormat,re),re,!0)},casing:function(ie,he,re,oe){if(he.nativeDef.indexOf("[ap]")==0)return ie.toLowerCase();if(he.nativeDef.indexOf("[AP]")==0)return ie.toUpperCase();var ye=b.getTest.call(this,[re-1]);return ye.match.def.indexOf("[AP]")==0||re===0||ye&&ye.input===String.fromCharCode(y.keyCode.Space)||ye&&ye.match.def===String.fromCharCode(y.keyCode.Space)?ie.toUpperCase():ie.toLowerCase()},onBeforeMask:function(ie,he){return Object.prototype.toString.call(ie)==="[object Date]"&&(ie=le(ie,he)),ie},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(f,h,A){var p,g=(p=A(2394))&&p.__esModule?p:{default:p};g.default.dependencyLib.extend(!0,g.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},3851:function(f,h,A){var p,g=(p=A(2394))&&p.__esModule?p:{default:p},y=A(8711),_=A(4713);function b(L){return function(P){if(Array.isArray(P))return C(P)}(L)||function(P){if(typeof Symbol<"u"&&P[Symbol.iterator]!=null||P["@@iterator"]!=null)return Array.from(P)}(L)||function(P,I){if(P){if(typeof P=="string")return C(P,I);var O=Object.prototype.toString.call(P).slice(8,-1);if(O==="Object"&&P.constructor&&(O=P.constructor.name),O==="Map"||O==="Set")return Array.from(P);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return C(P,I)}}(L)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function C(L,P){(P==null||P>L.length)&&(P=L.length);for(var I=0,O=new Array(P);I<P;I++)O[I]=L[I];return O}g.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var T=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function B(L,P,I,O,U){if(I-1>-1&&P.buffer[I-1]!=="."?(L=P.buffer[I-1]+L,L=I-2>-1&&P.buffer[I-2]!=="."?P.buffer[I-2]+L:"0"+L):L="00"+L,U.greedy&&parseInt(L)>255&&T.test("00"+L.charAt(2))){var N=[].concat(b(P.buffer.slice(0,I)),[".",L.charAt(2)]);if(N.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:N,caret:I+2}}return T.test(L)}g.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:B},j:{validator:B},k:{validator:B},l:{validator:B}},onUnMask:function(L,P,I){return L},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(L){var P=L.separator,I=L.quantifier,O="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",U=O;if(P)for(var N=0;N<I;N++)U+="[".concat(P).concat(O,"]");return U},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(L,P){return(L=L.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(L,P,I){return L},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(L,P,I,O,U,N,H){var z=_.getMaskTemplate.call(this,!0,y.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(z.join(""))}}})},207:function(f,h,A){var p=b(A(7184)),g=b(A(2394)),y=A(2839),_=A(8711);function b(O){return O&&O.__esModule?O:{default:O}}var C=g.default.dependencyLib;function T(O,U){for(var N="",H=0;H<O.length;H++)g.default.prototype.definitions[O.charAt(H)]||U.definitions[O.charAt(H)]||U.optionalmarker[0]===O.charAt(H)||U.optionalmarker[1]===O.charAt(H)||U.quantifiermarker[0]===O.charAt(H)||U.quantifiermarker[1]===O.charAt(H)||U.groupmarker[0]===O.charAt(H)||U.groupmarker[1]===O.charAt(H)||U.alternatormarker===O.charAt(H)?N+="\\"+O.charAt(H):N+=O.charAt(H);return N}function B(O,U,N,H){if(O.length>0&&U>0&&(!N.digitsOptional||H)){var z=O.indexOf(N.radixPoint),G=!1;N.negationSymbol.back===O[O.length-1]&&(G=!0,O.length--),z===-1&&(O.push(N.radixPoint),z=O.length-1);for(var j=1;j<=U;j++)isFinite(O[z+j])||(O[z+j]="0")}return G&&O.push(N.negationSymbol.back),O}function L(O,U){var N=0;for(var H in O==="+"&&(N=_.seekNext.call(this,U.validPositions.length-1)),U.tests)if((H=parseInt(H))>=N){for(var z=0,G=U.tests[H].length;z<G;z++)if((U.validPositions[H]===void 0||O==="-")&&U.tests[H][z].match.def===O)return H+(U.validPositions[H]!==void 0&&O!=="-"?1:0)}return N}function P(O,U){for(var N=-1,H=0,z=U.validPositions.length;H<z;H++){var G=U.validPositions[H];if(G&&G.match.def===O){N=H;break}}return N}function I(O,U,N,H,z){var G=U.buffer?U.buffer.indexOf(z.radixPoint):-1,j=(G!==-1||H&&z.jitMasking)&&new RegExp(z.definitions[9].validator).test(O);return!H&&z._radixDance&&G!==-1&&j&&U.validPositions[G]==null?{insert:{pos:G===N?G+1:G,c:z.radixPoint},pos:N}:j}g.default.extendAliases({numeric:{mask:function(O){O.repeat=0,O.groupSeparator===O.radixPoint&&O.digits&&O.digits!=="0"&&(O.radixPoint==="."?O.groupSeparator=",":O.radixPoint===","?O.groupSeparator=".":O.groupSeparator=""),O.groupSeparator===" "&&(O.skipOptionalPartCharacter=void 0),O.placeholder.length>1&&(O.placeholder=O.placeholder.charAt(0)),O.positionCaretOnClick==="radixFocus"&&O.placeholder===""&&(O.positionCaretOnClick="lvp");var U="0",N=O.radixPoint;O.numericInput===!0&&O.__financeInput===void 0?(U="1",O.positionCaretOnClick=O.positionCaretOnClick==="radixFocus"?"lvp":O.positionCaretOnClick,O.digitsOptional=!1,isNaN(O.digits)&&(O.digits=2),O._radixDance=!1,N=O.radixPoint===","?"?":"!",O.radixPoint!==""&&O.definitions[N]===void 0&&(O.definitions[N]={},O.definitions[N].validator="["+O.radixPoint+"]",O.definitions[N].placeholder=O.radixPoint,O.definitions[N].static=!0,O.definitions[N].generated=!0)):(O.__financeInput=!1,O.numericInput=!0);var H,z="[+]";if(z+=T(O.prefix,O),O.groupSeparator!==""?(O.definitions[O.groupSeparator]===void 0&&(O.definitions[O.groupSeparator]={},O.definitions[O.groupSeparator].validator="["+O.groupSeparator+"]",O.definitions[O.groupSeparator].placeholder=O.groupSeparator,O.definitions[O.groupSeparator].static=!0,O.definitions[O.groupSeparator].generated=!0),z+=O._mask(O)):z+="9{+}",O.digits!==void 0&&O.digits!==0){var G=O.digits.toString().split(",");isFinite(G[0])&&G[1]&&isFinite(G[1])?z+=N+U+"{"+O.digits+"}":(isNaN(O.digits)||parseInt(O.digits)>0)&&(O.digitsOptional||O.jitMasking?(H=z+N+U+"{0,"+O.digits+"}",O.keepStatic=!0):z+=N+U+"{"+O.digits+"}")}else O.inputmode="numeric";return z+=T(O.suffix,O),z+="[-]",H&&(z=[H+T(O.suffix,O)+"[-]",z]),O.greedy=!1,function(j){j.parseMinMaxOptions===void 0&&(j.min!==null&&(j.min=j.min.toString().replace(new RegExp((0,p.default)(j.groupSeparator),"g"),""),j.radixPoint===","&&(j.min=j.min.replace(j.radixPoint,".")),j.min=isFinite(j.min)?parseFloat(j.min):NaN,isNaN(j.min)&&(j.min=Number.MIN_VALUE)),j.max!==null&&(j.max=j.max.toString().replace(new RegExp((0,p.default)(j.groupSeparator),"g"),""),j.radixPoint===","&&(j.max=j.max.replace(j.radixPoint,".")),j.max=isFinite(j.max)?parseFloat(j.max):NaN,isNaN(j.max)&&(j.max=Number.MAX_VALUE)),j.parseMinMaxOptions="done")}(O),O.radixPoint!==""&&O.substituteRadixPoint&&(O.substitutes[O.radixPoint=="."?",":"."]=O.radixPoint),z},_mask:function(O){return"("+O.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:I},1:{validator:I,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(O,U,N,H,z){return z.allowMinus&&(O==="-"||O===z.negationSymbol.front)}},"-":{validator:function(O,U,N,H,z){return z.allowMinus&&O===z.negationSymbol.back}}},preValidation:function(O,U,N,H,z,G,j,q){var X=this;if(z.__financeInput!==!1&&N===z.radixPoint)return!1;var Y=O.indexOf(z.radixPoint),te=U;if(U=function(pe,ie,he,re,oe){return oe._radixDance&&oe.numericInput&&ie!==oe.negationSymbol.back&&pe<=he&&(he>0||ie==oe.radixPoint)&&(re.validPositions[pe-1]===void 0||re.validPositions[pe-1].input!==oe.negationSymbol.back)&&(pe-=1),pe}(U,N,Y,G,z),N==="-"||N===z.negationSymbol.front){if(z.allowMinus!==!0)return!1;var K=!1,ce=P("+",G),ae=P("-",G);return ce!==-1&&(K=[ce],ae!==-1&&K.push(ae)),K!==!1?{remove:K,caret:te-z.negationSymbol.back.length}:{insert:[{pos:L.call(X,"+",G),c:z.negationSymbol.front,fromIsValid:!0},{pos:L.call(X,"-",G),c:z.negationSymbol.back,fromIsValid:void 0}],caret:te+z.negationSymbol.back.length}}if(N===z.groupSeparator)return{caret:te};if(q)return!0;if(Y!==-1&&z._radixDance===!0&&H===!1&&N===z.radixPoint&&z.digits!==void 0&&(isNaN(z.digits)||parseInt(z.digits)>0)&&Y!==U){var le=L.call(X,z.radixPoint,G);return G.validPositions[le]&&(G.validPositions[le].generatedInput=G.validPositions[le].generated||!1),{caret:z._radixDance&&U===Y-1?Y+1:Y}}if(z.__financeInput===!1){if(H){if(z.digitsOptional)return{rewritePosition:j.end};if(!z.digitsOptional){if(j.begin>Y&&j.end<=Y)return N===z.radixPoint?{insert:{pos:Y+1,c:"0",fromIsValid:!0},rewritePosition:Y}:{rewritePosition:Y+1};if(j.begin<Y)return{rewritePosition:j.begin-1}}}else if(!z.showMaskOnHover&&!z.showMaskOnFocus&&!z.digitsOptional&&z.digits>0&&this.__valueGet.call(this.el)==="")return{rewritePosition:Y}}return{rewritePosition:U}},postValidation:function(O,U,N,H,z,G,j){if(H===!1)return H;if(j)return!0;if(z.min!==null||z.max!==null){var q=z.onUnMask(O.slice().reverse().join(""),void 0,C.extend({},z,{unmaskAsNumber:!0}));if(z.min!==null&&q<z.min&&(q.toString().length>z.min.toString().length||q<0))return!1;if(z.max!==null&&q>z.max)return!!z.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:B(z.max.toString().replace(".",z.radixPoint).split(""),z.digits,z).reverse()}}return H},onUnMask:function(O,U,N){if(U===""&&N.nullable===!0)return U;var H=O.replace(N.prefix,"");return H=(H=H.replace(N.suffix,"")).replace(new RegExp((0,p.default)(N.groupSeparator),"g"),""),N.placeholder.charAt(0)!==""&&(H=H.replace(new RegExp(N.placeholder.charAt(0),"g"),"0")),N.unmaskAsNumber?(N.radixPoint!==""&&H.indexOf(N.radixPoint)!==-1&&(H=H.replace(p.default.call(this,N.radixPoint),".")),H=(H=H.replace(new RegExp("^"+(0,p.default)(N.negationSymbol.front)),"-")).replace(new RegExp((0,p.default)(N.negationSymbol.back)+"$"),""),Number(H)):H},isComplete:function(O,U){var N=(U.numericInput?O.slice().reverse():O).join("");return N=(N=(N=(N=(N=N.replace(new RegExp("^"+(0,p.default)(U.negationSymbol.front)),"-")).replace(new RegExp((0,p.default)(U.negationSymbol.back)+"$"),"")).replace(U.prefix,"")).replace(U.suffix,"")).replace(new RegExp((0,p.default)(U.groupSeparator)+"([0-9]{3})","g"),"$1"),U.radixPoint===","&&(N=N.replace((0,p.default)(U.radixPoint),".")),isFinite(N)},onBeforeMask:function(O,U){var N;O=(N=O)!==null&&N!==void 0?N:"";var H=U.radixPoint||",";isFinite(U.digits)&&(U.digits=parseInt(U.digits)),typeof O!="number"&&U.inputType!=="number"||H===""||(O=O.toString().replace(".",H));var z=O.charAt(0)==="-"||O.charAt(0)===U.negationSymbol.front,G=O.split(H),j=G[0].replace(/[^\-0-9]/g,""),q=G.length>1?G[1].replace(/[^0-9]/g,""):"",X=G.length>1;O=j+(q!==""?H+q:q);var Y=0;if(H!==""&&(Y=U.digitsOptional?U.digits<q.length?U.digits:q.length:U.digits,q!==""||!U.digitsOptional)){var te=Math.pow(10,Y||1);O=O.replace((0,p.default)(H),"."),isNaN(parseFloat(O))||(O=(U.roundingFN(parseFloat(O)*te)/te).toFixed(Y)),O=O.toString().replace(".",H)}if(U.digits===0&&O.indexOf(H)!==-1&&(O=O.substring(0,O.indexOf(H))),U.min!==null||U.max!==null){var K=O.toString().replace(H,".");U.min!==null&&K<U.min?O=U.min.toString().replace(".",H):U.max!==null&&K>U.max&&(O=U.max.toString().replace(".",H))}return z&&O.charAt(0)!=="-"&&(O="-"+O),B(O.toString().split(""),Y,U,X).join("")},onBeforeWrite:function(O,U,N,H){function z(ae,le){if(H.__financeInput!==!1||le){var pe=ae.indexOf(H.radixPoint);pe!==-1&&ae.splice(pe,1)}if(H.groupSeparator!=="")for(;(pe=ae.indexOf(H.groupSeparator))!==-1;)ae.splice(pe,1);return ae}var G,j;if(H.stripLeadingZeroes&&(j=function(ae,le){var pe=new RegExp("(^"+(le.negationSymbol.front!==""?(0,p.default)(le.negationSymbol.front)+"?":"")+(0,p.default)(le.prefix)+")(.*)("+(0,p.default)(le.suffix)+(le.negationSymbol.back!=""?(0,p.default)(le.negationSymbol.back)+"?":"")+"$)").exec(ae.slice().reverse().join("")),ie=pe?pe[2]:"",he=!1;return ie&&(ie=ie.split(le.radixPoint.charAt(0))[0],he=new RegExp("^[0"+le.groupSeparator+"]*").exec(ie)),!(!he||!(he[0].length>1||he[0].length>0&&he[0].length<ie.length))&&he}(U,H)))for(var q=U.join("").lastIndexOf(j[0].split("").reverse().join(""))-(j[0]==j.input?0:1),X=j[0]==j.input?1:0,Y=j[0].length-X;Y>0;Y--)this.maskset.validPositions.splice(q+Y,1),delete U[q+Y];if(O)switch(O.type){case"blur":case"checkval":if(H.min!==null){var te=H.onUnMask(U.slice().reverse().join(""),void 0,C.extend({},H,{unmaskAsNumber:!0}));if(H.min!==null&&te<H.min)return{refreshFromBuffer:!0,buffer:B(H.min.toString().replace(".",H.radixPoint).split(""),H.digits,H).reverse()}}if(U[U.length-1]===H.negationSymbol.front){var K=new RegExp("(^"+(H.negationSymbol.front!=""?(0,p.default)(H.negationSymbol.front)+"?":"")+(0,p.default)(H.prefix)+")(.*)("+(0,p.default)(H.suffix)+(H.negationSymbol.back!=""?(0,p.default)(H.negationSymbol.back)+"?":"")+"$)").exec(z(U.slice(),!0).reverse().join(""));(K?K[2]:"")==0&&(G={refreshFromBuffer:!0,buffer:[0]})}else H.radixPoint!==""&&U.indexOf(H.radixPoint)===H.suffix.length&&(G&&G.buffer?G.buffer.splice(0,1+H.suffix.length):(U.splice(0,1+H.suffix.length),G={refreshFromBuffer:!0,buffer:z(U)}));if(H.enforceDigitsOnBlur){var ce=(G=G||{})&&G.buffer||U.slice().reverse();G.refreshFromBuffer=!0,G.buffer=B(ce,H.digits,H,!0).reverse()}}return G},onKeyDown:function(O,U,N,H){var z,G=C(this);if(O.location!=3){var j,q=O.key;if((j=H.shortcuts&&H.shortcuts[q])&&j.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(j)),G.trigger("setvalue"),!1}if(O.ctrlKey)switch(O.key){case y.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(H.step)),G.trigger("setvalue"),!1;case y.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(H.step)),G.trigger("setvalue"),!1}if(!O.shiftKey&&(O.key===y.keys.Delete||O.key===y.keys.Backspace||O.key===y.keys.BACKSPACE_SAFARI)&&N.begin!==U.length){if(U[O.key===y.keys.Delete?N.begin-1:N.end]===H.negationSymbol.front)return z=U.slice().reverse(),H.negationSymbol.front!==""&&z.shift(),H.negationSymbol.back!==""&&z.pop(),G.trigger("setvalue",[z.join(""),N.begin]),!1;if(H._radixDance===!0){var X,Y=U.indexOf(H.radixPoint);if(H.digitsOptional){if(Y===0)return(z=U.slice().reverse()).pop(),G.trigger("setvalue",[z.join(""),N.begin>=z.length?z.length:N.begin]),!1}else if(Y!==-1&&(N.begin<Y||N.end<Y||O.key===y.keys.Delete&&(N.begin===Y||N.begin-1===Y)))return N.begin===N.end&&(O.key===y.keys.Backspace||O.key===y.keys.BACKSPACE_SAFARI?N.begin++:O.key===y.keys.Delete&&N.begin-1===Y&&(X=C.extend({},N),N.begin--,N.end--)),(z=U.slice().reverse()).splice(z.length-N.begin,N.begin-N.end+1),z=B(z,H.digits,H).join(""),X&&(N=X),G.trigger("setvalue",[z,N.begin>=z.length?Y+1:N.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(O){return"("+O.groupSeparator+"99){*|1}("+O.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(f,h){Object.defineProperty(h,"__esModule",{value:!0}),h.default=void 0;var A=!(typeof window>"u"||!window.document||!window.document.createElement);h.default=A?window:{}},7760:function(f,h,A){Object.defineProperty(h,"__esModule",{value:!0}),h.HandleNativePlaceholder=function(I,O){var U=I?I.inputmask:this;if(p.ie){if(I.inputmask._valueGet()!==O&&(I.placeholder!==O||I.placeholder==="")){var N=_.getBuffer.call(U).slice(),H=I.inputmask._valueGet();if(H!==O){var z=_.getLastValidPosition.call(U);z===-1&&H===_.getBufferTemplate.call(U).join("")?N=[]:z!==-1&&B.call(U,N),P(I,N)}}}else I.placeholder!==O&&(I.placeholder=O,I.placeholder===""&&I.removeAttribute("placeholder"))},h.applyInputValue=T,h.checkVal=L,h.clearOptionalTail=B,h.unmaskedvalue=function(I){var O=I?I.inputmask:this,U=O.opts,N=O.maskset;if(I){if(I.inputmask===void 0)return I.value;I.inputmask&&I.inputmask.refreshValue&&T(I,I.inputmask._valueGet(!0))}for(var H=[],z=N.validPositions,G=0,j=z.length;G<j;G++)z[G]&&z[G].match&&(z[G].match.static!=1||Array.isArray(N.metadata)&&z[G].generatedInput!==!0)&&H.push(z[G].input);var q=H.length===0?"":(O.isRTL?H.reverse():H).join("");if(typeof U.onUnMask=="function"){var X=(O.isRTL?_.getBuffer.call(O).slice().reverse():_.getBuffer.call(O)).join("");q=U.onUnMask.call(O,X,q,U)}return q},h.writeBuffer=P;var p=A(9845),g=A(6030),y=A(2839),_=A(8711),b=A(7215),C=A(4713);function T(I,O,U){var N=I?I.inputmask:this,H=N.opts;I.inputmask.refreshValue=!1,typeof H.onBeforeMask=="function"&&(O=H.onBeforeMask.call(N,O,H)||O),L(I,!0,!1,O=(O||"").toString().split(""),U),N.undoValue=N._valueGet(!0),(H.clearMaskOnLostFocus||H.clearIncomplete)&&I.inputmask._valueGet()===_.getBufferTemplate.call(N).join("")&&_.getLastValidPosition.call(N)===-1&&I.inputmask._valueSet("")}function B(I){I.length=0;for(var O,U=C.getMaskTemplate.call(this,!0,0,!0,void 0,!0);(O=U.shift())!==void 0;)I.push(O);return I}function L(I,O,U,N,H){var z,G=I?I.inputmask:this,j=G.maskset,q=G.opts,X=G.dependencyLib,Y=N.slice(),te="",K=-1,ce=q.skipOptionalPartCharacter;q.skipOptionalPartCharacter="",_.resetMaskSet.call(G,!1),G.clicked=0,K=q.radixPoint?_.determineNewCaretPosition.call(G,{begin:0,end:0},!1,q.__financeInput===!1?"radixFocus":void 0).begin:0,j.p=K,G.caretPos={begin:K};var ae=[],le=G.caretPos;if(Y.forEach(function(ye,_e){if(ye!==void 0){var Ce=new X.Event("_checkval");Ce.key=ye,te+=ye;var ne=_.getLastValidPosition.call(G,void 0,!0);(function(xe,De){for(var ze=C.getMaskTemplate.call(G,!0,0).slice(xe,_.seekNext.call(G,xe,!1,!1)).join("").replace(/'/g,""),Ye=ze.indexOf(De);Ye>0&&ze[Ye-1]===" ";)Ye--;var Ne=Ye===0&&!_.isMask.call(G,xe)&&(C.getTest.call(G,xe).match.nativeDef===De.charAt(0)||C.getTest.call(G,xe).match.static===!0&&C.getTest.call(G,xe).match.nativeDef==="'"+De.charAt(0)||C.getTest.call(G,xe).match.nativeDef===" "&&(C.getTest.call(G,xe+1).match.nativeDef===De.charAt(0)||C.getTest.call(G,xe+1).match.static===!0&&C.getTest.call(G,xe+1).match.nativeDef==="'"+De.charAt(0)));if(!Ne&&Ye>0&&!_.isMask.call(G,xe,!1,!0)){var yt=_.seekNext.call(G,xe);G.caretPos.begin<yt&&(G.caretPos={begin:yt})}return Ne})(K,te)?z=g.EventHandlers.keypressEvent.call(G,Ce,!0,!1,U,ne+1):(z=g.EventHandlers.keypressEvent.call(G,Ce,!0,!1,U,G.caretPos.begin))&&(K=G.caretPos.begin+1,te=""),z?(z.pos!==void 0&&j.validPositions[z.pos]&&j.validPositions[z.pos].match.static===!0&&j.validPositions[z.pos].alternation===void 0&&(ae.push(z.pos),G.isRTL||(z.forwardPosition=z.pos+1)),P.call(G,void 0,_.getBuffer.call(G),z.forwardPosition,Ce,!1),G.caretPos={begin:z.forwardPosition,end:z.forwardPosition},le=G.caretPos):j.validPositions[_e]===void 0&&Y[_e]===C.getPlaceholder.call(G,_e)&&_.isMask.call(G,_e,!0)?G.caretPos.begin++:G.caretPos=le}}),ae.length>0){var pe,ie,he=_.seekNext.call(G,-1,void 0,!1);if(!b.isComplete.call(G,_.getBuffer.call(G))&&ae.length<=he||b.isComplete.call(G,_.getBuffer.call(G))&&ae.length>0&&ae.length!==he&&ae[0]===0){for(var re=he;(pe=ae.shift())!==void 0;)if(pe<re){var oe=new X.Event("_checkval");if((ie=j.validPositions[pe]).generatedInput=!0,oe.key=ie.input,(z=g.EventHandlers.keypressEvent.call(G,oe,!0,!1,U,re))&&z.pos!==void 0&&z.pos!==pe&&j.validPositions[z.pos]&&j.validPositions[z.pos].match.static===!0)ae.push(z.pos);else if(!z)break;re++}}}O&&P.call(G,I,_.getBuffer.call(G),z?z.forwardPosition:G.caretPos.begin,H||new X.Event("checkval"),H&&(H.type==="input"&&G.undoValue!==_.getBuffer.call(G).join("")||H.type==="paste")),q.skipOptionalPartCharacter=ce}function P(I,O,U,N,H){var z=I?I.inputmask:this,G=z.opts,j=z.dependencyLib;if(N&&typeof G.onBeforeWrite=="function"){var q=G.onBeforeWrite.call(z,N,O,U,G);if(q){if(q.refreshFromBuffer){var X=q.refreshFromBuffer;b.refreshFromBuffer.call(z,X===!0?X:X.start,X.end,q.buffer||O),O=_.getBuffer.call(z,!0)}U!==void 0&&(U=q.caret!==void 0?q.caret:U)}}if(I!==void 0&&(I.inputmask._valueSet(O.join("")),U===void 0||N!==void 0&&N.type==="blur"||_.caret.call(z,I,U,void 0,void 0,N!==void 0&&N.type==="keydown"&&(N.key===y.keys.Delete||N.key===y.keys.Backspace)),I.inputmask.writeBufferHook===void 0||I.inputmask.writeBufferHook(U),H===!0)){var Y=j(I),te=I.inputmask._valueGet();I.inputmask.skipInputEvent=!0,Y.trigger("input"),setTimeout(function(){te===_.getBufferTemplate.call(z).join("")?Y.trigger("cleared"):b.isComplete.call(z,O)===!0&&Y.trigger("complete")},0)}}},2394:function(f,h,A){Object.defineProperty(h,"__esModule",{value:!0}),h.default=void 0;var p=U(A(3976)),g=U(A(7392)),y=U(A(4963)),_=A(9716),b=U(A(9380)),C=A(7760),T=A(157),B=A(2391),L=A(8711),P=A(7215),I=A(4713);function O(j){return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},O(j)}function U(j){return j&&j.__esModule?j:{default:j}}var N=b.default.document,H="_inputmask_opts";function z(j,q,X){if(!(this instanceof z))return new z(j,q,X);this.dependencyLib=y.default,this.el=void 0,this.events={},this.maskset=void 0,X!==!0&&(Object.prototype.toString.call(j)==="[object Object]"?q=j:(q=q||{},j&&(q.alias=j)),this.opts=y.default.extend(!0,{},this.defaults,q),this.noMasksCache=q&&q.definitions!==void 0,this.userOptions=q||{},G(this.opts.alias,q,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}function G(j,q,X){var Y=z.prototype.aliases[j];return Y?(Y.alias&&G(Y.alias,void 0,X),y.default.extend(!0,X,Y),y.default.extend(!0,X,q),!0):(X.mask===null&&(X.mask=j),!1)}z.prototype={dataAttribute:"data-inputmask",defaults:p.default,definitions:g.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(j){var q=this;return typeof j=="string"&&(j=N.getElementById(j)||N.querySelectorAll(j)),(j=j.nodeName?[j]:Array.isArray(j)?j:[].slice.call(j)).forEach(function(X,Y){var te=y.default.extend(!0,{},q.opts);if(function(ce,ae,le,pe){function ie(Ce,ne){var xe=pe===""?Ce:pe+"-"+Ce;(ne=ne!==void 0?ne:ce.getAttribute(xe))!==null&&(typeof ne=="string"&&(Ce.indexOf("on")===0?ne=b.default[ne]:ne==="false"?ne=!1:ne==="true"&&(ne=!0)),le[Ce]=ne)}if(ae.importDataAttributes===!0){var he,re,oe,ye,_e=ce.getAttribute(pe);if(_e&&_e!==""&&(_e=_e.replace(/'/g,'"'),re=JSON.parse("{"+_e+"}")),re){for(ye in oe=void 0,re)if(ye.toLowerCase()==="alias"){oe=re[ye];break}}for(he in ie("alias",oe),le.alias&&G(le.alias,le,ae),ae){if(re){for(ye in oe=void 0,re)if(ye.toLowerCase()===he.toLowerCase()){oe=re[ye];break}}ie(he,oe)}}return y.default.extend(!0,ae,le),(ce.dir==="rtl"||ae.rightAlign)&&(ce.style.textAlign="right"),(ce.dir==="rtl"||ae.numericInput)&&(ce.dir="ltr",ce.removeAttribute("dir"),ae.isRTL=!0),Object.keys(le).length}(X,te,y.default.extend(!0,{},q.userOptions),q.dataAttribute)){var K=(0,B.generateMaskSet)(te,q.noMasksCache);K!==void 0&&(X.inputmask!==void 0&&(X.inputmask.opts.autoUnmask=!0,X.inputmask.remove()),X.inputmask=new z(void 0,void 0,!0),X.inputmask.opts=te,X.inputmask.noMasksCache=q.noMasksCache,X.inputmask.userOptions=y.default.extend(!0,{},q.userOptions),X.inputmask.el=X,X.inputmask.$el=(0,y.default)(X),X.inputmask.maskset=K,y.default.data(X,H,q.userOptions),T.mask.call(X.inputmask))}}),j&&j[0]&&j[0].inputmask||this},option:function(j,q){return typeof j=="string"?this.opts[j]:O(j)==="object"?(y.default.extend(this.userOptions,j),this.el&&q!==!0&&this.mask(this.el),this):void 0},unmaskedvalue:function(j){if(this.maskset=this.maskset||(0,B.generateMaskSet)(this.opts,this.noMasksCache),this.el===void 0||j!==void 0){var q=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,j,this.opts)||j).split("");C.checkVal.call(this,void 0,!1,!1,q),typeof this.opts.onBeforeWrite=="function"&&this.opts.onBeforeWrite.call(this,void 0,L.getBuffer.call(this),0,this.opts)}return C.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){y.default.data(this.el,H,null);var j=this.opts.autoUnmask?(0,C.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);j!==L.getBufferTemplate.call(this).join("")?this._valueSet(j,this.opts.autoUnmask):this._valueSet(""),_.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):N.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,B.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?L.getBufferTemplate.call(this).reverse():L.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,B.generateMaskSet)(this.opts,this.noMasksCache),P.isComplete.call(this,L.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,B.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var j=I.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach(function(q){return q.mask!==j||(j=q,!1)}),j}return this.maskset.metadata},isValid:function(j){if(this.maskset=this.maskset||(0,B.generateMaskSet)(this.opts,this.noMasksCache),j){var q=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,j,this.opts)||j).split("");C.checkVal.call(this,void 0,!0,!1,q)}else j=this.isRTL?L.getBuffer.call(this).slice().reverse().join(""):L.getBuffer.call(this).join("");for(var X=L.getBuffer.call(this),Y=L.determineLastRequiredPosition.call(this),te=X.length-1;te>Y&&!L.isMask.call(this,te);te--);return X.splice(Y,te+1-Y),P.isComplete.call(this,X)&&j===(this.isRTL?L.getBuffer.call(this).slice().reverse().join(""):L.getBuffer.call(this).join(""))},format:function(j,q){this.maskset=this.maskset||(0,B.generateMaskSet)(this.opts,this.noMasksCache);var X=(typeof this.opts.onBeforeMask=="function"&&this.opts.onBeforeMask.call(this,j,this.opts)||j).split("");C.checkVal.call(this,void 0,!0,!1,X);var Y=this.isRTL?L.getBuffer.call(this).slice().reverse().join(""):L.getBuffer.call(this).join("");return q?{value:Y,metadata:this.getmetadata()}:Y},setValue:function(j){this.el&&(0,y.default)(this.el).trigger("setvalue",[j])},analyseMask:B.analyseMask},z.extendDefaults=function(j){y.default.extend(!0,z.prototype.defaults,j)},z.extendDefinitions=function(j){y.default.extend(!0,z.prototype.definitions,j)},z.extendAliases=function(j){y.default.extend(!0,z.prototype.aliases,j)},z.format=function(j,q,X){return z(q).format(j,X)},z.unmask=function(j,q){return z(q).unmaskedvalue(j)},z.isValid=function(j,q){return z(q).isValid(j)},z.remove=function(j){typeof j=="string"&&(j=N.getElementById(j)||N.querySelectorAll(j)),(j=j.nodeName?[j]:j).forEach(function(q){q.inputmask&&q.inputmask.remove()})},z.setValue=function(j,q){typeof j=="string"&&(j=N.getElementById(j)||N.querySelectorAll(j)),(j=j.nodeName?[j]:j).forEach(function(X){X.inputmask?X.inputmask.setValue(q):(0,y.default)(X).trigger("setvalue",[q])})},z.dependencyLib=y.default,b.default.Inputmask=z,h.default=z},5296:function(f,h,A){function p(N){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},p(N)}var g=I(A(9380)),y=I(A(2394));function _(N,H){for(var z=0;z<H.length;z++){var G=H[z];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(N,(j=G.key,q=void 0,q=function(X,Y){if(p(X)!=="object"||X===null)return X;var te=X[Symbol.toPrimitive];if(te!==void 0){var K=te.call(X,Y);if(p(K)!=="object")return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Y==="string"?String:Number)(X)}(j,"string"),p(q)==="symbol"?q:String(q)),G)}var j,q}function b(N){var H=B();return function(){var z,G=P(N);if(H){var j=P(this).constructor;z=Reflect.construct(G,arguments,j)}else z=G.apply(this,arguments);return function(q,X){if(X&&(p(X)==="object"||typeof X=="function"))return X;if(X!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Y){if(Y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y}(q)}(this,z)}}function C(N){var H=typeof Map=="function"?new Map:void 0;return C=function(z){if(z===null||!function(j){try{return Function.toString.call(j).indexOf("[native code]")!==-1}catch{return typeof j=="function"}}(z))return z;if(typeof z!="function")throw new TypeError("Super expression must either be null or a function");if(H!==void 0){if(H.has(z))return H.get(z);H.set(z,G)}function G(){return T(z,arguments,P(this).constructor)}return G.prototype=Object.create(z.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),L(G,z)},C(N)}function T(N,H,z){return T=B()?Reflect.construct.bind():function(G,j,q){var X=[null];X.push.apply(X,j);var Y=new(Function.bind.apply(G,X));return q&&L(Y,q.prototype),Y},T.apply(null,arguments)}function B(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function L(N,H){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,G){return z.__proto__=G,z},L(N,H)}function P(N){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},P(N)}function I(N){return N&&N.__esModule?N:{default:N}}var O=g.default.document;if(O&&O.head&&O.head.attachShadow&&g.default.customElements&&g.default.customElements.get("input-mask")===void 0){var U=function(N){(function(q,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(X&&X.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Object.defineProperty(q,"prototype",{writable:!1}),X&&L(q,X)})(j,N);var H,z,G=b(j);function j(){var q;(function(ce,ae){if(!(ce instanceof ae))throw new TypeError("Cannot call a class as a function")})(this,j);var X=(q=G.call(this)).getAttributeNames(),Y=q.attachShadow({mode:"closed"});for(var te in q.input=O.createElement("input"),q.input.type="text",Y.appendChild(q.input),X)Object.prototype.hasOwnProperty.call(X,te)&&q.input.setAttribute(X[te],q.getAttribute(X[te]));var K=new y.default;return K.dataAttribute="",K.mask(q.input),q.input.inputmask.shadowRoot=Y,q}return H=j,(z=[{key:"attributeChangedCallback",value:function(q,X,Y){this.input.setAttribute(q,Y)}},{key:"value",get:function(){return this.input.value},set:function(q){this.input.value=q}}])&&_(H.prototype,z),Object.defineProperty(H,"prototype",{writable:!1}),j}(C(HTMLElement));g.default.customElements.define("input-mask",U)}},2839:function(f,h){function A(T){return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},A(T)}function p(T,B){return function(L){if(Array.isArray(L))return L}(T)||function(L,P){var I=L==null?null:typeof Symbol<"u"&&L[Symbol.iterator]||L["@@iterator"];if(I!=null){var O,U,N,H,z=[],G=!0,j=!1;try{if(N=(I=I.call(L)).next,P!==0)for(;!(G=(O=N.call(I)).done)&&(z.push(O.value),z.length!==P);G=!0);}catch(q){j=!0,U=q}finally{try{if(!G&&I.return!=null&&(H=I.return(),Object(H)!==H))return}finally{if(j)throw U}}return z}}(T,B)||function(L,P){if(L){if(typeof L=="string")return g(L,P);var I=Object.prototype.toString.call(L).slice(8,-1);if(I==="Object"&&L.constructor&&(I=L.constructor.name),I==="Map"||I==="Set")return Array.from(L);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return g(L,P)}}(T,B)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function g(T,B){(B==null||B>T.length)&&(B=T.length);for(var L=0,P=new Array(B);L<B;L++)P[L]=T[L];return P}function y(T,B){var L=Object.keys(T);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(T);B&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(T,I).enumerable})),L.push.apply(L,P)}return L}function _(T,B,L){return(B=function(P){var I=function(O,U){if(A(O)!=="object"||O===null)return O;var N=O[Symbol.toPrimitive];if(N!==void 0){var H=N.call(O,U);if(A(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(O)}(P,"string");return A(I)==="symbol"?I:String(I)}(B))in T?Object.defineProperty(T,B,{value:L,enumerable:!0,configurable:!0,writable:!0}):T[B]=L,T}Object.defineProperty(h,"__esModule",{value:!0}),h.keys=h.keyCode=void 0,h.toKey=function(T,B){return C[T]||(B?String.fromCharCode(T):String.fromCharCode(T).toLowerCase())},h.toKeyCode=function(T){return b[T]};var b=h.keyCode=function(T){for(var B=1;B<arguments.length;B++){var L=arguments[B]!=null?arguments[B]:{};B%2?y(Object(L),!0).forEach(function(P){_(T,P,L[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(L)):y(Object(L)).forEach(function(P){Object.defineProperty(T,P,Object.getOwnPropertyDescriptor(L,P))})}return T}({c:67,x:88,z:90,BACKSPACE_SAFARI:127,Enter:13,Meta_LEFT:91,Meta_RIGHT:92,Space:32},{Alt:18,AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,CapsLock:20,Control:17,ContextMenu:93,Dead:221,Delete:46,End:35,Escape:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Home:36,Insert:45,NumLock:144,PageDown:34,PageUp:33,Pause:19,PrintScreen:44,Process:229,Shift:16,ScrollLock:145,Tab:9,Unidentified:229}),C=Object.entries(b).reduce(function(T,B){var L=p(B,2),P=L[0],I=L[1];return T[I]=T[I]===void 0?P:T[I],T},{});h.keys=Object.entries(b).reduce(function(T,B){var L=p(B,2),P=L[0];return L[1],T[P]=P==="Space"?" ":P,T},{})},2391:function(f,h,A){Object.defineProperty(h,"__esModule",{value:!0}),h.analyseMask=function(B,L,P){var I,O,U,N,H,z,G=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,j=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,q=!1,X=new _.default,Y=[],te=[],K=!1;function ce(Ye,Ne,yt){yt=yt!==void 0?yt:Ye.matches.length;var Ue=Ye.matches[yt-1];if(L){if(Ne.indexOf("[")===0||q&&/\\d|\\s|\\w|\\p/i.test(Ne)||Ne==="."){var ue=P.casing?"i":"";/\\p\{.*}/i.test(Ne)&&(ue+="u"),Ye.matches.splice(yt++,0,{fn:new RegExp(Ne,ue),static:!1,optionality:!1,newBlockMarker:Ue===void 0?"master":Ue.def!==Ne,casing:null,def:Ne,placeholder:b(P.placeholder)==="object"?P.placeholder[X.matches.length]:void 0,nativeDef:Ne})}else q&&(Ne=Ne[Ne.length-1]),Ne.split("").forEach(function(qe,Re){Ue=Ye.matches[yt-1],Ye.matches.splice(yt++,0,{fn:/[a-z]/i.test(P.staticDefinitionSymbol||qe)?new RegExp("["+(P.staticDefinitionSymbol||qe)+"]",P.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:Ue===void 0?"master":Ue.def!==qe&&Ue.static!==!0,casing:null,def:P.staticDefinitionSymbol||qe,placeholder:P.staticDefinitionSymbol!==void 0?qe:b(P.placeholder)==="object"?P.placeholder[X.matches.length]:void 0,nativeDef:(q?"'":"")+qe})});q=!1}else{var Qe=P.definitions&&P.definitions[Ne]||P.usePrototypeDefinitions&&y.default.prototype.definitions[Ne];Qe&&!q?Ye.matches.splice(yt++,0,{fn:Qe.validator?typeof Qe.validator=="string"?new RegExp(Qe.validator,P.casing?"i":""):new function(){this.test=Qe.validator}:/./,static:Qe.static||!1,optionality:Qe.optional||!1,defOptionality:Qe.optional||!1,newBlockMarker:Ue===void 0||Qe.optional?"master":Ue.def!==(Qe.definitionSymbol||Ne),casing:Qe.casing,def:Qe.definitionSymbol||Ne,placeholder:Qe.placeholder,nativeDef:Ne,generated:Qe.generated}):(Ye.matches.splice(yt++,0,{fn:/[a-z]/i.test(P.staticDefinitionSymbol||Ne)?new RegExp("["+(P.staticDefinitionSymbol||Ne)+"]",P.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:Ue===void 0?"master":Ue.def!==Ne&&Ue.static!==!0,casing:null,def:P.staticDefinitionSymbol||Ne,placeholder:P.staticDefinitionSymbol!==void 0?Ne:void 0,nativeDef:(q?"'":"")+Ne}),q=!1)}}function ae(){if(Y.length>0){if(ce(N=Y[Y.length-1],O),N.isAlternator){H=Y.pop();for(var Ye=0;Ye<H.matches.length;Ye++)H.matches[Ye].isGroup&&(H.matches[Ye].isGroup=!1);Y.length>0?(N=Y[Y.length-1]).matches.push(H):X.matches.push(H)}}else ce(X,O)}function le(Ye){var Ne=new _.default(!0);return Ne.openGroup=!1,Ne.matches=Ye,Ne}function pe(){if((U=Y.pop()).openGroup=!1,U!==void 0)if(Y.length>0){if((N=Y[Y.length-1]).matches.push(U),N.isAlternator){H=Y.pop();for(var Ye=0;Ye<H.matches.length;Ye++)H.matches[Ye].isGroup=!1,H.matches[Ye].alternatorGroup=!1;Y.length>0?(N=Y[Y.length-1]).matches.push(H):X.matches.push(H)}}else X.matches.push(U);else ae()}function ie(Ye){var Ne=Ye.pop();return Ne.isQuantifier&&(Ne=le([Ye.pop(),Ne])),Ne}for(L&&(P.optionalmarker[0]=void 0,P.optionalmarker[1]=void 0);I=L?j.exec(B):G.exec(B);){if(O=I[0],L){switch(O.charAt(0)){case"?":O="{0,1}";break;case"+":case"*":O="{"+O+"}";break;case"|":if(Y.length===0){var he=le(X.matches);he.openGroup=!0,Y.push(he),X.matches=[],K=!0}}switch(O){case"\\d":O="[0-9]";break;case"\\p":O+=j.exec(B)[0],O+=j.exec(B)[0]}}if(q)ae();else switch(O.charAt(0)){case"$":case"^":L||ae();break;case P.escapeChar:q=!0,L&&ae();break;case P.optionalmarker[1]:case P.groupmarker[1]:pe();break;case P.optionalmarker[0]:Y.push(new _.default(!1,!0));break;case P.groupmarker[0]:Y.push(new _.default(!0));break;case P.quantifiermarker[0]:var re=new _.default(!1,!1,!0),oe=(O=O.replace(/[{}?]/g,"")).split("|"),ye=oe[0].split(","),_e=isNaN(ye[0])?ye[0]:parseInt(ye[0]),Ce=ye.length===1?_e:isNaN(ye[1])?ye[1]:parseInt(ye[1]),ne=isNaN(oe[1])?oe[1]:parseInt(oe[1]);_e!=="*"&&_e!=="+"||(_e=Ce==="*"?0:1),re.quantifier={min:_e,max:Ce,jit:ne};var xe=Y.length>0?Y[Y.length-1].matches:X.matches;(I=xe.pop()).isGroup||(I=le([I])),xe.push(I),xe.push(re);break;case P.alternatormarker:if(Y.length>0){var De=(N=Y[Y.length-1]).matches[N.matches.length-1];z=N.openGroup&&(De.matches===void 0||De.isGroup===!1&&De.isAlternator===!1)?Y.pop():ie(N.matches)}else z=ie(X.matches);if(z.isAlternator)Y.push(z);else if(z.alternatorGroup?(H=Y.pop(),z.alternatorGroup=!1):H=new _.default(!1,!1,!1,!0),H.matches.push(z),Y.push(H),z.openGroup){z.openGroup=!1;var ze=new _.default(!0);ze.alternatorGroup=!0,Y.push(ze)}break;default:ae()}}for(K&&pe();Y.length>0;)U=Y.pop(),X.matches.push(U);return X.matches.length>0&&(function Ye(Ne){Ne&&Ne.matches&&Ne.matches.forEach(function(yt,Ue){var ue=Ne.matches[Ue+1];(ue===void 0||ue.matches===void 0||ue.isQuantifier===!1)&&yt&&yt.isGroup&&(yt.isGroup=!1,L||(ce(yt,P.groupmarker[0],0),yt.openGroup!==!0&&ce(yt,P.groupmarker[1]))),Ye(yt)})}(X),te.push(X)),(P.numericInput||P.isRTL)&&function Ye(Ne){for(var yt in Ne.matches=Ne.matches.reverse(),Ne.matches)if(Object.prototype.hasOwnProperty.call(Ne.matches,yt)){var Ue=parseInt(yt);if(Ne.matches[yt].isQuantifier&&Ne.matches[Ue+1]&&Ne.matches[Ue+1].isGroup){var ue=Ne.matches[yt];Ne.matches.splice(yt,1),Ne.matches.splice(Ue+1,0,ue)}Ne.matches[yt].matches!==void 0?Ne.matches[yt]=Ye(Ne.matches[yt]):Ne.matches[yt]=((Qe=Ne.matches[yt])===P.optionalmarker[0]?Qe=P.optionalmarker[1]:Qe===P.optionalmarker[1]?Qe=P.optionalmarker[0]:Qe===P.groupmarker[0]?Qe=P.groupmarker[1]:Qe===P.groupmarker[1]&&(Qe=P.groupmarker[0]),Qe)}var Qe;return Ne}(te[0]),te},h.generateMaskSet=function(B,L){var P;function I(N,H){var z=H.repeat,G=H.groupmarker,j=H.quantifiermarker,q=H.keepStatic;if(z>0||z==="*"||z==="+"){var X=z==="*"?0:z==="+"?1:z;if(X!=z)N=G[0]+N+G[1]+j[0]+X+","+z+j[1];else for(var Y=N,te=1;te<X;te++)N+=Y}if(q===!0){var K=N.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));K&&K.forEach(function(ce,ae){var le=function(he,re){return function(oe){if(Array.isArray(oe))return oe}(he)||function(oe,ye){var _e=oe==null?null:typeof Symbol<"u"&&oe[Symbol.iterator]||oe["@@iterator"];if(_e!=null){var Ce,ne,xe,De,ze=[],Ye=!0,Ne=!1;try{if(xe=(_e=_e.call(oe)).next,ye!==0)for(;!(Ye=(Ce=xe.call(_e)).done)&&(ze.push(Ce.value),ze.length!==ye);Ye=!0);}catch(yt){Ne=!0,ne=yt}finally{try{if(!Ye&&_e.return!=null&&(De=_e.return(),Object(De)!==De))return}finally{if(Ne)throw ne}}return ze}}(he,re)||function(oe,ye){if(oe){if(typeof oe=="string")return C(oe,ye);var _e=Object.prototype.toString.call(oe).slice(8,-1);if(_e==="Object"&&oe.constructor&&(_e=oe.constructor.name),_e==="Map"||_e==="Set")return Array.from(oe);if(_e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_e))return C(oe,ye)}}(he,re)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(ce.split("["),2),pe=le[0],ie=le[1];ie=ie.replace("]",""),N=N.replace(new RegExp("".concat((0,g.default)(pe),"\\[").concat((0,g.default)(ie),"\\]")),pe.charAt(0)===ie.charAt(0)?"(".concat(pe,"|").concat(pe).concat(ie,")"):"".concat(pe,"[").concat(ie,"]"))})}return N}function O(N,H,z){var G,j,q=!1;return N!==null&&N!==""||((q=z.regex!==null)?N=(N=z.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(q=!0,N=".*")),N.length===1&&z.greedy===!1&&z.repeat!==0&&(z.placeholder=""),N=I(N,z),j=q?"regex_"+z.regex:z.numericInput?N.split("").reverse().join(""):N,z.keepStatic!==null&&(j="ks_"+z.keepStatic+j),b(z.placeholder)==="object"&&(j="ph_"+JSON.stringify(z.placeholder)+j),y.default.prototype.masksCache[j]===void 0||L===!0?(G={mask:N,maskToken:y.default.prototype.analyseMask(N,q,z),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:H,maskLength:void 0,jitOffset:{}},L!==!0&&(y.default.prototype.masksCache[j]=G,G=p.default.extend(!0,{},y.default.prototype.masksCache[j]))):G=p.default.extend(!0,{},y.default.prototype.masksCache[j]),G}if(typeof B.mask=="function"&&(B.mask=B.mask(B)),Array.isArray(B.mask)){if(B.mask.length>1){B.keepStatic===null&&(B.keepStatic=!0);var U=B.groupmarker[0];return(B.isRTL?B.mask.reverse():B.mask).forEach(function(N){U.length>1&&(U+=B.alternatormarker),N.mask!==void 0&&typeof N.mask!="function"?U+=N.mask:U+=N}),O(U+=B.groupmarker[1],B.mask,B)}B.mask=B.mask.pop()}return P=B.mask&&B.mask.mask!==void 0&&typeof B.mask.mask!="function"?O(B.mask.mask,B.mask,B):O(B.mask,B.mask,B),B.keepStatic===null&&(B.keepStatic=!1),P};var p=T(A(4963)),g=T(A(7184)),y=T(A(2394)),_=T(A(9695));function b(B){return b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},b(B)}function C(B,L){(L==null||L>B.length)&&(L=B.length);for(var P=0,I=new Array(L);P<L;P++)I[P]=B[P];return I}function T(B){return B&&B.__esModule?B:{default:B}}},157:function(f,h,A){Object.defineProperty(h,"__esModule",{value:!0}),h.mask=function(){var T=this,B=this.opts,L=this.el,P=this.dependencyLib;y.EventRuler.off(L);var I=function(N,H){var z=N.getAttribute("type"),G=N.tagName.toLowerCase()==="input"&&H.supportsInputType.includes(z)||N.isContentEditable||N.tagName.toLowerCase()==="textarea";if(!G)if(N.tagName.toLowerCase()==="input"){var j=document.createElement("input");j.setAttribute("type",z),G=j.type==="text",j=null}else G="partial";return G!==!1?function(q){var X,Y;function te(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():b.getLastValidPosition.call(T)!==-1||H.nullable!==!0?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&H.clearMaskOnLostFocus?(T.isRTL?_.clearOptionalTail.call(T,b.getBuffer.call(T).slice()).reverse():_.clearOptionalTail.call(T,b.getBuffer.call(T).slice())).join(""):X.call(this):"":X.call(this)}function K(ae){Y.call(this,ae),this.inputmask&&(0,_.applyInputValue)(this,ae)}if(!q.inputmask.__valueGet){if(H.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){var ce=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(q),"value"):void 0;ce&&ce.get&&ce.set?(X=ce.get,Y=ce.set,Object.defineProperty(q,"value",{get:te,set:K,configurable:!0})):q.tagName.toLowerCase()!=="input"&&(X=function(){return this.textContent},Y=function(ae){this.textContent=ae},Object.defineProperty(q,"value",{get:te,set:K,configurable:!0}))}else document.__lookupGetter__&&q.__lookupGetter__("value")&&(X=q.__lookupGetter__("value"),Y=q.__lookupSetter__("value"),q.__defineGetter__("value",te),q.__defineSetter__("value",K));q.inputmask.__valueGet=X,q.inputmask.__valueSet=Y}q.inputmask._valueGet=function(ae){return T.isRTL&&ae!==!0?X.call(this.el).split("").reverse().join(""):X.call(this.el)},q.inputmask._valueSet=function(ae,le){Y.call(this.el,ae==null?"":le!==!0&&T.isRTL?ae.split("").reverse().join(""):ae)},X===void 0&&(X=function(){return this.value},Y=function(ae){this.value=ae},function(ae){if(P.valHooks&&(P.valHooks[ae]===void 0||P.valHooks[ae].inputmaskpatch!==!0)){var le=P.valHooks[ae]&&P.valHooks[ae].get?P.valHooks[ae].get:function(ie){return ie.value},pe=P.valHooks[ae]&&P.valHooks[ae].set?P.valHooks[ae].set:function(ie,he){return ie.value=he,ie};P.valHooks[ae]={get:function(ie){if(ie.inputmask){if(ie.inputmask.opts.autoUnmask)return ie.inputmask.unmaskedvalue();var he=le(ie);return b.getLastValidPosition.call(T,void 0,void 0,ie.inputmask.maskset.validPositions)!==-1||H.nullable!==!0?he:""}return le(ie)},set:function(ie,he){var re=pe(ie,he);return ie.inputmask&&(0,_.applyInputValue)(ie,he),re},inputmaskpatch:!0}}}(q.type),function(ae){y.EventRuler.on(ae,"mouseenter",function(){var le=this,pe=le.inputmask._valueGet(!0);pe!=(le.inputmask.isRTL?b.getBuffer.call(le.inputmask).slice().reverse():b.getBuffer.call(le.inputmask)).join("")&&(0,_.applyInputValue)(le,pe)})}(q))}}(N):N.inputmask=void 0,G}(L,B);if(I!==!1){T.originalPlaceholder=L.placeholder,T.maxLength=L!==void 0?L.maxLength:void 0,T.maxLength===-1&&(T.maxLength=void 0),"inputMode"in L&&L.getAttribute("inputmode")===null&&(L.inputMode=B.inputmode,L.setAttribute("inputmode",B.inputmode)),I===!0&&(B.showMaskOnFocus=B.showMaskOnFocus&&["cc-number","cc-exp"].indexOf(L.autocomplete)===-1,p.iphone&&(B.insertModeVisual=!1,L.setAttribute("autocorrect","off")),y.EventRuler.on(L,"submit",g.EventHandlers.submitEvent),y.EventRuler.on(L,"reset",g.EventHandlers.resetEvent),y.EventRuler.on(L,"blur",g.EventHandlers.blurEvent),y.EventRuler.on(L,"focus",g.EventHandlers.focusEvent),y.EventRuler.on(L,"invalid",g.EventHandlers.invalidEvent),y.EventRuler.on(L,"click",g.EventHandlers.clickEvent),y.EventRuler.on(L,"mouseleave",g.EventHandlers.mouseleaveEvent),y.EventRuler.on(L,"mouseenter",g.EventHandlers.mouseenterEvent),y.EventRuler.on(L,"paste",g.EventHandlers.pasteEvent),y.EventRuler.on(L,"cut",g.EventHandlers.cutEvent),y.EventRuler.on(L,"complete",B.oncomplete),y.EventRuler.on(L,"incomplete",B.onincomplete),y.EventRuler.on(L,"cleared",B.oncleared),B.inputEventOnly!==!0&&y.EventRuler.on(L,"keydown",g.EventHandlers.keyEvent),(p.mobile||B.inputEventOnly)&&L.removeAttribute("maxLength"),y.EventRuler.on(L,"input",g.EventHandlers.inputFallBackEvent)),y.EventRuler.on(L,"setvalue",g.EventHandlers.setValueEvent),T.applyMaskHook===void 0||T.applyMaskHook(),b.getBufferTemplate.call(T).join(""),T.undoValue=T._valueGet(!0);var O=(L.inputmask.shadowRoot||L.ownerDocument).activeElement;if(L.inputmask._valueGet(!0)!==""||B.clearMaskOnLostFocus===!1||O===L){(0,_.applyInputValue)(L,L.inputmask._valueGet(!0),B);var U=b.getBuffer.call(T).slice();C.isComplete.call(T,U)===!1&&B.clearIncomplete&&b.resetMaskSet.call(T,!1),B.clearMaskOnLostFocus&&O!==L&&(b.getLastValidPosition.call(T)===-1?U=[]:_.clearOptionalTail.call(T,U)),(B.clearMaskOnLostFocus===!1||B.showMaskOnFocus&&O===L||L.inputmask._valueGet(!0)!=="")&&(0,_.writeBuffer)(L,U),O===L&&b.caret.call(T,L,b.seekNext.call(T,b.getLastValidPosition.call(T)))}}};var p=A(9845),g=A(6030),y=A(9716),_=A(7760),b=A(8711),C=A(7215)},9695:function(f,h){Object.defineProperty(h,"__esModule",{value:!0}),h.default=function(A,p,g,y){this.matches=[],this.openGroup=A||!1,this.alternatorGroup=!1,this.isGroup=A||!1,this.isOptional=p||!1,this.isQuantifier=g||!1,this.isAlternator=y||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(f,h){if(this==null)throw new TypeError('"this" is null or not defined');var A=Object(this),p=A.length>>>0;if(p===0)return!1;for(var g=0|h,y=Math.max(g>=0?g:p-Math.abs(g),0);y<p;){if(A[y]===f)return!0;y++}return!1}})},9302:function(){var f=Function.bind.call(Function.call,Array.prototype.reduce),h=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),A=Function.bind.call(Function.call,Array.prototype.concat),p=Object.keys;Object.entries||(Object.entries=function(g){return f(p(g),function(y,_){return A(y,typeof _=="string"&&h(g,_)?[[_,g[_]]]:[])},[])})},7149:function(){function f(h){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},f(h)}typeof Object.getPrototypeOf!="function"&&(Object.getPrototypeOf=f("test".__proto__)==="object"?function(h){return h.__proto__}:function(h){return h.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(f,h){return typeof h!="number"&&(h=0),!(h+f.length>this.length)&&this.indexOf(f,h)!==-1})},8711:function(f,h,A){Object.defineProperty(h,"__esModule",{value:!0}),h.caret=function(P,I,O,U,N){var H,z=this,G=this.opts;if(I===void 0)return"selectionStart"in P&&"selectionEnd"in P?(I=P.selectionStart,O=P.selectionEnd):g.default.getSelection?(H=g.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==P&&H.commonAncestorContainer!==P||(I=H.startOffset,O=H.endOffset):document.selection&&document.selection.createRange&&(O=(I=0-(H=document.selection.createRange()).duplicate().moveStart("character",-P.inputmask._valueGet().length))+H.text.length),{begin:U?I:L.call(z,I),end:U?O:L.call(z,O)};if(Array.isArray(I)&&(O=z.isRTL?I[0]:I[1],I=z.isRTL?I[1]:I[0]),I.begin!==void 0&&(O=z.isRTL?I.begin:I.end,I=z.isRTL?I.end:I.begin),typeof I=="number"){I=U?I:L.call(z,I),O=typeof(O=U?O:L.call(z,O))=="number"?O:I;var j=parseInt(((P.ownerDocument.defaultView||g.default).getComputedStyle?(P.ownerDocument.defaultView||g.default).getComputedStyle(P,null):P.currentStyle).fontSize)*O;if(P.scrollLeft=j>P.scrollWidth?j:0,P.inputmask.caretPos={begin:I,end:O},G.insertModeVisual&&G.insertMode===!1&&I===O&&(N||O++),P===(P.inputmask.shadowRoot||P.ownerDocument).activeElement){if("setSelectionRange"in P)P.setSelectionRange(I,O);else if(g.default.getSelection){if(H=document.createRange(),P.firstChild===void 0||P.firstChild===null){var q=document.createTextNode("");P.appendChild(q)}H.setStart(P.firstChild,I<P.inputmask._valueGet().length?I:P.inputmask._valueGet().length),H.setEnd(P.firstChild,O<P.inputmask._valueGet().length?O:P.inputmask._valueGet().length),H.collapse(!0);var X=g.default.getSelection();X.removeAllRanges(),X.addRange(H)}else P.createTextRange&&((H=P.createTextRange()).collapse(!0),H.moveEnd("character",O),H.moveStart("character",I),H.select());P.inputmask.caretHook===void 0||P.inputmask.caretHook.call(z,{begin:I,end:O})}}},h.determineLastRequiredPosition=function(P){var I,O,U=this,N=U.maskset,H=U.dependencyLib,z=C.call(U),G={},j=N.validPositions[z],q=_.getMaskTemplate.call(U,!0,C.call(U),!0,!0),X=q.length,Y=j!==void 0?j.locator.slice():void 0;for(I=z+1;I<q.length;I++)Y=(O=_.getTestTemplate.call(U,I,Y,I-1)).locator.slice(),G[I]=H.extend(!0,{},O);var te=j&&j.alternation!==void 0?j.locator[j.alternation]:void 0;for(I=X-1;I>z&&((O=G[I]).match.optionality||O.match.optionalQuantifier&&O.match.newBlockMarker||te&&(te!==G[I].locator[j.alternation]&&O.match.static!==!0||O.match.static===!0&&O.locator[j.alternation]&&y.checkAlternationMatch.call(U,O.locator[j.alternation].toString().split(","),te.toString().split(","))&&_.getTests.call(U,I)[0].def!==""))&&q[I]===_.getPlaceholder.call(U,I,O.match);I--)X--;return P?{l:X,def:G[X]?G[X].match:void 0}:X},h.determineNewCaretPosition=function(P,I,O){var U,N,H,z=this,G=z.maskset,j=z.opts;if(I&&(z.isRTL?P.end=P.begin:P.begin=P.end),P.begin===P.end){switch(O=O||j.positionCaretOnClick){case"none":break;case"select":P={begin:0,end:b.call(z).length};break;case"ignore":P.end=P.begin=B.call(z,C.call(z));break;case"radixFocus":if(z.clicked>1&&G.validPositions.length===0)break;if(function(ce){if(j.radixPoint!==""&&j.digits!==0){var ae=G.validPositions;if(ae[ce]===void 0||ae[ce].input===void 0){if(ce<B.call(z,-1))return!0;var le=b.call(z).indexOf(j.radixPoint);if(le!==-1){for(var pe=0,ie=ae.length;pe<ie;pe++)if(ae[pe]&&le<pe&&ae[pe].input!==_.getPlaceholder.call(z,pe))return!1;return!0}}}return!1}(P.begin)){var q=b.call(z).join("").indexOf(j.radixPoint);P.end=P.begin=j.numericInput?B.call(z,q):q;break}default:if(U=P.begin,N=C.call(z,U,!0),U<=(H=B.call(z,N!==-1||T.call(z,0)?N:-1)))P.end=P.begin=T.call(z,U,!1,!0)?U:B.call(z,U);else{var X=G.validPositions[N],Y=_.getTestTemplate.call(z,H,X?X.match.locator:void 0,X),te=_.getPlaceholder.call(z,H,Y.match);if(te!==""&&b.call(z)[H]!==te&&Y.match.optionalQuantifier!==!0&&Y.match.newBlockMarker!==!0||!T.call(z,H,j.keepStatic,!0)&&Y.match.def===te){var K=B.call(z,H);(U>=K||U===H)&&(H=K)}P.end=P.begin=H}}return P}},h.getBuffer=b,h.getBufferTemplate=function(){var P=this.maskset;return P._buffer===void 0&&(P._buffer=_.getMaskTemplate.call(this,!1,1),P.buffer===void 0&&(P.buffer=P._buffer.slice())),P._buffer},h.getLastValidPosition=C,h.isMask=T,h.resetMaskSet=function(P){var I=this.maskset;I.buffer=void 0,P!==!0&&(I.validPositions=[],I.p=0),P===!1&&(I.tests={},I.jitOffset={})},h.seekNext=B,h.seekPrevious=function(P,I){var O=this,U=P-1;if(P<=0)return 0;for(;U>0&&(I===!0&&(_.getTest.call(O,U).match.newBlockMarker!==!0||!T.call(O,U,void 0,!0))||I!==!0&&!T.call(O,U,void 0,!0));)U--;return U},h.translatePosition=L;var p,g=(p=A(9380))&&p.__esModule?p:{default:p},y=A(7215),_=A(4713);function b(P){var I=this,O=I.maskset;return O.buffer!==void 0&&P!==!0||(O.buffer=_.getMaskTemplate.call(I,!0,C.call(I),!0),O._buffer===void 0&&(O._buffer=O.buffer.slice())),O.buffer}function C(P,I,O){var U=this.maskset,N=-1,H=-1,z=O||U.validPositions;P===void 0&&(P=-1);for(var G=0,j=z.length;G<j;G++)z[G]&&(I||z[G].generatedInput!==!0)&&(G<=P&&(N=G),G>=P&&(H=G));return N===-1||N===P?H:H===-1||P-N<H-P?N:H}function T(P,I,O){var U=this,N=this.maskset,H=_.getTestTemplate.call(U,P).match;if(H.def===""&&(H=_.getTest.call(U,P).match),H.static!==!0)return H.fn;if(O===!0&&N.validPositions[P]!==void 0&&N.validPositions[P].generatedInput!==!0)return!0;if(I!==!0&&P>-1){if(O){var z=_.getTests.call(U,P);return z.length>1+(z[z.length-1].match.def===""?1:0)}var G=_.determineTestTemplate.call(U,P,_.getTests.call(U,P)),j=_.getPlaceholder.call(U,P,G.match);return G.match.def!==j}return!1}function B(P,I,O){var U=this;O===void 0&&(O=!0);for(var N=P+1;_.getTest.call(U,N).match.def!==""&&(I===!0&&(_.getTest.call(U,N).match.newBlockMarker!==!0||!T.call(U,N,void 0,!0))||I!==!0&&!T.call(U,N,void 0,O));)N++;return N}function L(P){var I=this.opts,O=this.el;return!this.isRTL||typeof P!="number"||I.greedy&&I.placeholder===""||!O||(P=this._valueGet().length-P)<0&&(P=0),P}},4713:function(f,h,A){Object.defineProperty(h,"__esModule",{value:!0}),h.determineTestTemplate=L,h.getDecisionTaker=C,h.getMaskTemplate=function(U,N,H,z,G){var j=this,q=this.opts,X=this.maskset,Y=q.greedy;G&&q.greedy&&(q.greedy=!1,j.maskset.tests={}),N=N||0;var te,K,ce,ae,le=[],pe=0;do{if(U===!0&&X.validPositions[pe])K=(ce=G&&X.validPositions[pe].match.optionality&&X.validPositions[pe+1]===void 0&&(X.validPositions[pe].generatedInput===!0||X.validPositions[pe].input==q.skipOptionalPartCharacter&&pe>0)?L.call(j,pe,O.call(j,pe,te,pe-1)):X.validPositions[pe]).match,te=ce.locator.slice(),le.push(H===!0?ce.input:H===!1?K.nativeDef:T.call(j,pe,K));else{K=(ce=B.call(j,pe,te,pe-1)).match,te=ce.locator.slice();var ie=z!==!0&&(q.jitMasking!==!1?q.jitMasking:K.jit);(ae=(ae||X.validPositions[pe-1])&&K.static&&K.def!==q.groupSeparator&&K.fn===null)||ie===!1||ie===void 0||typeof ie=="number"&&isFinite(ie)&&ie>pe?le.push(H===!1?K.nativeDef:T.call(j,le.length,K)):ae=!1}pe++}while(K.static!==!0||K.def!==""||N>pe);return le[le.length-1]===""&&le.pop(),H===!1&&X.maskLength!==void 0||(X.maskLength=pe-1),q.greedy=Y,le},h.getPlaceholder=T,h.getTest=P,h.getTestTemplate=B,h.getTests=O,h.isSubsetOf=I;var p,g=(p=A(2394))&&p.__esModule?p:{default:p},y=A(8711);function _(U){return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},_(U)}function b(U,N){var H=(U.alternation!=null?U.mloc[C(U)]:U.locator).join("");if(H!=="")for(H=H.split(":")[0];H.length<N;)H+="0";return H}function C(U){var N=U.locator[U.alternation];return typeof N=="string"&&N.length>0&&(N=N.split(",")[0]),N!==void 0?N.toString():""}function T(U,N,H){var z=this,G=this.opts,j=this.maskset;if((N=N||P.call(z,U).match).placeholder!==void 0||H===!0){if(N.placeholder!==""&&N.static===!0&&N.generated!==!0){var q=y.getLastValidPosition.call(z,U),X=y.seekNext.call(z,q);return(H?U<=X:U<X)?G.staticDefinitionSymbol&&N.static?N.nativeDef:N.def:typeof N.placeholder=="function"?N.placeholder(G):N.placeholder}return typeof N.placeholder=="function"?N.placeholder(G):N.placeholder}if(N.static===!0){if(U>-1&&j.validPositions[U]===void 0){var Y,te=O.call(z,U),K=[];if(typeof G.placeholder=="string"&&te.length>1+(te[te.length-1].match.def===""?1:0)){for(var ce=0;ce<te.length;ce++)if(te[ce].match.def!==""&&te[ce].match.optionality!==!0&&te[ce].match.optionalQuantifier!==!0&&(te[ce].match.static===!0||Y===void 0||te[ce].match.fn.test(Y.match.def,j,U,!0,G)!==!1)&&(K.push(te[ce]),te[ce].match.static===!0&&(Y=te[ce]),K.length>1&&/[0-9a-bA-Z]/.test(K[0].match.def)))return G.placeholder.charAt(U%G.placeholder.length)}}return N.def}return _(G.placeholder)==="object"?N.def:G.placeholder.charAt(U%G.placeholder.length)}function B(U,N,H){return this.maskset.validPositions[U]||L.call(this,U,O.call(this,U,N&&N.slice(),H))}function L(U,N){var H=this.opts,z=0,G=function(ae,le){var pe=0,ie=!1;return le.forEach(function(he){he.match.optionality&&(pe!==0&&pe!==he.match.optionality&&(ie=!0),(pe===0||pe>he.match.optionality)&&(pe=he.match.optionality))}),pe&&(ae==0||le.length==1?pe=0:ie||(pe=0)),pe}(U,N);U=U>0?U-1:0;var j,q,X,Y=b(P.call(this,U));H.greedy&&N.length>1&&N[N.length-1].match.def===""&&(z=1);for(var te=0;te<N.length-z;te++){var K=N[te];j=b(K,Y.length);var ce=Math.abs(j-Y);(K.unMatchedAlternationStopped!==!0||N.filter(function(ae){return ae.unMatchedAlternationStopped!==!0}).length<=1)&&(q===void 0||j!==""&&ce<q||X&&!H.greedy&&X.match.optionality&&X.match.optionality-G>0&&X.match.newBlockMarker==="master"&&(!K.match.optionality||K.match.optionality-G<1||!K.match.newBlockMarker)||X&&!H.greedy&&X.match.optionalQuantifier&&!K.match.optionalQuantifier)&&(q=ce,X=K)}return X}function P(U,N){var H=this.maskset;return H.validPositions[U]?H.validPositions[U]:(N||O.call(this,U))[0]}function I(U,N,H){function z(G){for(var j,q=[],X=-1,Y=0,te=G.length;Y<te;Y++)if(G.charAt(Y)==="-")for(j=G.charCodeAt(Y+1);++X<j;)q.push(String.fromCharCode(X));else X=G.charCodeAt(Y),q.push(G.charAt(Y));return q.join("")}return U.match.def===N.match.nativeDef||!(!(H.regex||U.match.fn instanceof RegExp&&N.match.fn instanceof RegExp)||U.match.static===!0||N.match.static===!0)&&(N.match.fn.source==="."||z(N.match.fn.source.replace(/[[\]/]/g,"")).indexOf(z(U.match.fn.source.replace(/[[\]/]/g,"")))!==-1)}function O(U,N,H){var z,G,j=this,q=this.dependencyLib,X=this.maskset,Y=this.opts,te=this.el,K=X.maskToken,ce=N?H:0,ae=N?N.slice():[0],le=[],pe=!1,ie=N?N.join(""):"",he=!1;function re(ne,xe,De,ze){function Ye(Ue,ue,Qe){function qe(ke,Be){var $e=Be.matches.indexOf(ke)===0;return $e||Be.matches.every(function(nt,ft){return nt.isQuantifier===!0?$e=qe(ke,Be.matches[ft-1]):Object.prototype.hasOwnProperty.call(nt,"matches")&&($e=qe(ke,nt)),!$e}),$e}function Re(ke,Be,$e){var nt,ft;if((X.tests[ke]||X.validPositions[ke])&&(X.validPositions[ke]?[X.validPositions[ke]]:X.tests[ke]).every(function(Bt,It){if(Bt.mloc[Be])return nt=Bt,!1;var qt=$e!==void 0?$e:Bt.alternation,fr=Bt.locator[qt]!==void 0?Bt.locator[qt].toString().indexOf(Be):-1;return(ft===void 0||fr<ft)&&fr!==-1&&(nt=Bt,ft=fr),!0}),nt){var Mt=nt.locator[nt.alternation],Rt=nt.mloc[Be]||nt.mloc[Mt]||nt.locator;return Rt[Rt.length-1].toString().indexOf(":")!==-1&&Rt.pop(),Rt.slice(($e!==void 0?$e:nt.alternation)+1)}return $e!==void 0?Re(ke,Be):void 0}function Me(ke,Be){return ke.match.static===!0&&Be.match.static!==!0&&Be.match.fn.test(ke.match.def,X,U,!1,Y,!1)}function Ge(ke,Be){var $e=ke.alternation,nt=Be===void 0||$e<=Be.alternation&&ke.locator[$e].toString().indexOf(Be.locator[$e])===-1;if(!nt&&$e>Be.alternation){for(var ft=0;ft<$e;ft++)if(ke.locator[ft]!==Be.locator[ft]){$e=ft,nt=!0;break}}return!!nt&&function(Mt){ke.mloc=ke.mloc||{};var Rt=ke.locator[Mt];if(Rt!==void 0){if(typeof Rt=="string"&&(Rt=Rt.split(",")[0]),ke.mloc[Rt]===void 0&&(ke.mloc[Rt]=ke.locator.slice(),ke.mloc[Rt].push(":".concat(ke.alternation))),Be!==void 0){for(var Bt in Be.mloc)typeof Bt=="string"&&(Bt=parseInt(Bt.split(",")[0])),ke.mloc[Bt+0]=Be.mloc[Bt];ke.locator[Mt]=Object.keys(ke.mloc).join(",")}return ke.alternation>Mt&&(ke.alternation=Mt),!0}return ke.alternation=void 0,!1}($e)}function Pe(ke,Be){if(ke.locator.length!==Be.locator.length)return!1;for(var $e=ke.alternation+1;$e<ke.locator.length;$e++)if(ke.locator[$e]!==Be.locator[$e])return!1;return!0}if(ce>U+Y._maxTestPos)throw new Error("Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ".concat(X.mask));if(ce===U&&Ue.matches===void 0){if(le.push({match:Ue,locator:ue.reverse(),cd:ie,mloc:{}}),!Ue.optionality||Qe!==void 0||!(Y.definitions&&Y.definitions[Ue.nativeDef]&&Y.definitions[Ue.nativeDef].optional||g.default.prototype.definitions[Ue.nativeDef]&&g.default.prototype.definitions[Ue.nativeDef].optional))return!0;pe=!0,ce=U}else if(Ue.matches!==void 0){if(Ue.isGroup&&Qe!==Ue)return function(){if(Ue=Ye(ne.matches[ne.matches.indexOf(Ue)+1],ue,Qe))return!0}();if(Ue.isOptional)return function(){var ke=Ue,Be=le.length;if(Ue=re(Ue,xe,ue,Qe),le.length>0){if(le.forEach(function($e,nt){nt>=Be&&($e.match.optionality=$e.match.optionality?$e.match.optionality+1:1)}),z=le[le.length-1].match,Qe!==void 0||!qe(z,ke))return Ue;pe=!0,ce=U}}();if(Ue.isAlternator)return function(){function ke(zr){for(var kn,vt=zr.matches[0].matches?zr.matches[0].matches.length:1,At=0;At<zr.matches.length&&vt===(kn=zr.matches[At].matches?zr.matches[At].matches.length:1);At++);return vt!==kn}j.hasAlternator=!0;var Be,$e=Ue,nt=[],ft=le.slice(),Mt=ue.length,Rt=xe.length>0?xe.shift():-1;if(Rt===-1||typeof Rt=="string"){var Bt,It=ce,qt=xe.slice(),fr=[];if(typeof Rt=="string")fr=Rt.split(",");else for(Bt=0;Bt<$e.matches.length;Bt++)fr.push(Bt.toString());if(X.excludes[U]!==void 0){for(var lr=fr.slice(),_t=0,br=X.excludes[U].length;_t<br;_t++){var on=X.excludes[U][_t].toString().split(":");ue.length==on[1]&&fr.splice(fr.indexOf(on[0]),1)}fr.length===0&&(delete X.excludes[U],fr=lr)}(Y.keepStatic===!0||isFinite(parseInt(Y.keepStatic))&&It>=Y.keepStatic)&&(fr=fr.slice(0,1));for(var Br=0;Br<fr.length;Br++){Bt=parseInt(fr[Br]),le=[],xe=typeof Rt=="string"&&Re(ce,Bt,Mt)||qt.slice();var rn=$e.matches[Bt];if(rn&&Ye(rn,[Bt].concat(ue),Qe))Ue=!0;else if(Br===0&&(he=ke($e)),rn&&rn.matches&&rn.matches.length>$e.matches[0].matches.length)break;Be=le.slice(),ce=It,le=[];for(var Yr=0;Yr<Be.length;Yr++){var cn=Be[Yr],Vn=!1;cn.alternation=cn.alternation||Mt,Ge(cn);for(var Nr=0;Nr<nt.length;Nr++){var Ht=nt[Nr];if(typeof Rt!="string"||cn.alternation!==void 0&&fr.includes(cn.locator[cn.alternation].toString())){if(cn.match.nativeDef===Ht.match.nativeDef){Vn=!0,Ge(Ht,cn);break}if(I(cn,Ht,Y)){Ge(cn,Ht)&&(Vn=!0,nt.splice(nt.indexOf(Ht),0,cn));break}if(I(Ht,cn,Y)){Ge(Ht,cn);break}if(Me(cn,Ht)){Pe(cn,Ht)||te.inputmask.userOptions.keepStatic!==void 0?Ge(cn,Ht)&&(Vn=!0,nt.splice(nt.indexOf(Ht),0,cn)):Y.keepStatic=!0;break}if(Me(Ht,cn)){Ge(Ht,cn);break}}}Vn||nt.push(cn)}}le=ft.concat(nt),ce=U,pe=le.length>0&&he,Ue=nt.length>0&&!he,he&&pe&&!Ue&&le.forEach(function(zr,kn){zr.unMatchedAlternationStopped=!0}),xe=qt.slice()}else Ue=Ye($e.matches[Rt]||ne.matches[Rt],[Rt].concat(ue),Qe);if(Ue)return!0}();if(Ue.isQuantifier&&Qe!==ne.matches[ne.matches.indexOf(Ue)-1])return function(){for(var ke=Ue,Be=!1,$e=xe.length>0?xe.shift():0;$e<(isNaN(ke.quantifier.max)?$e+1:ke.quantifier.max)&&ce<=U;$e++){var nt=ne.matches[ne.matches.indexOf(ke)-1];if(Ue=Ye(nt,[$e].concat(ue),nt)){if(le.forEach(function(ft,Mt){(z=oe(nt,ft.match)?ft.match:le[le.length-1].match).optionalQuantifier=$e>=ke.quantifier.min,z.jit=($e+1)*(nt.matches.indexOf(z)+1)>ke.quantifier.jit,z.optionalQuantifier&&qe(z,nt)&&(pe=!0,ce=U,Y.greedy&&X.validPositions[U-1]==null&&$e>ke.quantifier.min&&["*","+"].indexOf(ke.quantifier.max)!=-1&&(le.pop(),ie=void 0),Be=!0,Ue=!1),!Be&&z.jit&&(X.jitOffset[U]=nt.matches.length-nt.matches.indexOf(z))}),Be)break;return!0}}}();if(Ue=re(Ue,xe,ue,Qe))return!0}else ce++}for(var Ne=xe.length>0?xe.shift():0;Ne<ne.matches.length;Ne++)if(ne.matches[Ne].isQuantifier!==!0){var yt=Ye(ne.matches[Ne],[Ne].concat(De),ze);if(yt&&ce===U)return yt;if(ce>U)break}}function oe(ne,xe){var De=ne.matches.indexOf(xe)!=-1;return De||ne.matches.forEach(function(ze,Ye){ze.matches===void 0||De||(De=oe(ze,xe))}),De}if(U>-1){if(N===void 0){for(var ye,_e=U-1;(ye=X.validPositions[_e]||X.tests[_e])===void 0&&_e>-1;)_e--;ye!==void 0&&_e>-1&&(ae=function(ne,xe){var De,ze=[];return Array.isArray(xe)||(xe=[xe]),xe.length>0&&(xe[0].alternation===void 0||Y.keepStatic===!0?(ze=L.call(j,ne,xe.slice()).locator.slice()).length===0&&(ze=xe[0].locator.slice()):xe.forEach(function(Ye){Ye.def!==""&&(ze.length===0?(De=Ye.alternation,ze=Ye.locator.slice()):Ye.locator[De]&&ze[De].toString().indexOf(Ye.locator[De])===-1&&(ze[De]+=","+Ye.locator[De]))})),ze}(_e,ye),ie=ae.join(""),ce=_e)}if(X.tests[U]&&X.tests[U][0].cd===ie)return X.tests[U];for(var Ce=ae.shift();Ce<K.length&&!(re(K[Ce],ae,[Ce])&&ce===U||ce>U);Ce++);}return(le.length===0||pe)&&le.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:he&&le.filter(function(ne){return ne.unMatchedAlternationStopped!==!0}).length===0?[0]:[],mloc:{},cd:ie}),N!==void 0&&X.tests[U]?G=q.extend(!0,[],le):(X.tests[U]=q.extend(!0,[],le),G=X.tests[U]),le.forEach(function(ne){ne.match.optionality=ne.match.defOptionality||!1}),G}},7215:function(f,h,A){Object.defineProperty(h,"__esModule",{value:!0}),h.alternate=b,h.checkAlternationMatch=function(N,H,z){for(var G,j=this.opts.greedy?H:H.slice(0,1),q=!1,X=z!==void 0?z.split(","):[],Y=0;Y<X.length;Y++)(G=N.indexOf(X[Y]))!==-1&&N.splice(G,1);for(var te=0;te<N.length;te++)if(j.includes(N[te])){q=!0;break}return q},h.handleRemove=function(N,H,z,G,j){var q=this,X=this.maskset,Y=this.opts;if((Y.numericInput||q.isRTL)&&(H===g.keys.Backspace?H=g.keys.Delete:H===g.keys.Delete&&(H=g.keys.Backspace),q.isRTL)){var te=z.end;z.end=z.begin,z.begin=te}var K,ce=y.getLastValidPosition.call(q,void 0,!0);z.end>=y.getBuffer.call(q).length&&ce>=z.end&&(z.end=ce+1),H===g.keys.Backspace?z.end-z.begin<1&&(z.begin=y.seekPrevious.call(q,z.begin)):H===g.keys.Delete&&z.begin===z.end&&(z.end=y.isMask.call(q,z.end,!0,!0)?z.end+1:y.seekNext.call(q,z.end)+1),(K=U.call(q,z))!==!1&&((G!==!0&&Y.keepStatic!==!1||Y.regex!==null&&_.getTest.call(q,z.begin).match.def.indexOf("|")!==-1)&&b.call(q,!0),G!==!0&&(X.p=H===g.keys.Delete?z.begin+K:z.begin,X.p=y.determineNewCaretPosition.call(q,{begin:X.p,end:X.p},!1,Y.insertMode===!1&&H===g.keys.Backspace?"none":void 0).begin))},h.isComplete=T,h.isSelection=B,h.isValid=L,h.refreshFromBuffer=I,h.revalidateMask=U;var p=A(6030),g=A(2839),y=A(8711),_=A(4713);function b(N,H,z,G,j,q){var X=this,Y=this.dependencyLib,te=this.opts,K=X.maskset;if(!X.hasAlternator)return!1;var ce,ae,le,pe,ie,he,re,oe,ye,_e,Ce,ne=Y.extend(!0,[],K.validPositions),xe=Y.extend(!0,{},K.tests),De=!1,ze=!1,Ye=j!==void 0?j:y.getLastValidPosition.call(X);if(q&&(_e=q.begin,Ce=q.end,q.begin>q.end&&(_e=q.end,Ce=q.begin)),Ye===-1&&j===void 0)ce=0,ae=(pe=_.getTest.call(X,ce)).alternation;else for(;Ye>=0;Ye--)if((le=K.validPositions[Ye])&&le.alternation!==void 0){if(Ye<=(N||0)&&pe&&pe.locator[le.alternation]!==le.locator[le.alternation])break;ce=Ye,ae=K.validPositions[ce].alternation,pe=le}if(ae!==void 0){re=parseInt(ce),K.excludes[re]=K.excludes[re]||[],N!==!0&&K.excludes[re].push((0,_.getDecisionTaker)(pe)+":"+pe.alternation);var Ne=[],yt=-1;for(ie=re;re<y.getLastValidPosition.call(X,void 0,!0)+1;ie++)yt===-1&&N<=ie&&H!==void 0&&(Ne.push(H),yt=Ne.length-1),(he=K.validPositions[re])&&he.generatedInput!==!0&&(q===void 0||ie<_e||ie>=Ce)&&Ne.push(he.input),K.validPositions.splice(re,1);for(yt===-1&&H!==void 0&&(Ne.push(H),yt=Ne.length-1);K.excludes[re]!==void 0&&K.excludes[re].length<10;){for(K.tests={},y.resetMaskSet.call(X,!0),De=!0,ie=0;ie<Ne.length&&(oe=De.caret||te.insertMode==0&&oe!=null?y.seekNext.call(X,oe):y.getLastValidPosition.call(X,void 0,!0)+1,ye=Ne[ie],De=L.call(X,oe,ye,!1,G,!0));ie++)ie===yt&&(ze=De),N==1&&De&&(ze={caretPos:ie});if(De)break;if(y.resetMaskSet.call(X),pe=_.getTest.call(X,re),K.validPositions=Y.extend(!0,[],ne),K.tests=Y.extend(!0,{},xe),!K.excludes[re]){ze=b.call(X,N,H,z,G,re-1,q);break}if(pe.alternation!=null){var Ue=(0,_.getDecisionTaker)(pe);if(K.excludes[re].indexOf(Ue+":"+pe.alternation)!==-1){ze=b.call(X,N,H,z,G,re-1,q);break}for(K.excludes[re].push(Ue+":"+pe.alternation),ie=re;ie<y.getLastValidPosition.call(X,void 0,!0)+1;ie++)K.validPositions.splice(re)}else delete K.excludes[re]}}return ze&&te.keepStatic===!1||delete K.excludes[re],ze}function C(N,H,z){var G=this.opts,j=this.maskset;switch(G.casing||H.casing){case"upper":N=N.toUpperCase();break;case"lower":N=N.toLowerCase();break;case"title":var q=j.validPositions[z-1];N=z===0||q&&q.input===String.fromCharCode(g.keyCode.Space)?N.toUpperCase():N.toLowerCase();break;default:if(typeof G.casing=="function"){var X=Array.prototype.slice.call(arguments);X.push(j.validPositions),N=G.casing.apply(this,X)}}return N}function T(N){var H=this,z=this.opts,G=this.maskset;if(typeof z.isComplete=="function")return z.isComplete(N,z);if(z.repeat!=="*"){var j=!1,q=y.determineLastRequiredPosition.call(H,!0),X=q.l;if(q.def===void 0||q.def.newBlockMarker||q.def.optionality||q.def.optionalQuantifier){j=!0;for(var Y=0;Y<=X;Y++){var te=_.getTestTemplate.call(H,Y).match;if(te.static!==!0&&G.validPositions[Y]===void 0&&(te.optionality===!1||te.optionality===void 0||te.optionality&&te.newBlockMarker==0)&&(te.optionalQuantifier===!1||te.optionalQuantifier===void 0)||te.static===!0&&te.def!=""&&N[Y]!==_.getPlaceholder.call(H,Y,te)){j=!1;break}}}return j}}function B(N){var H=this.opts.insertMode?0:1;return this.isRTL?N.begin-N.end>H:N.end-N.begin>H}function L(N,H,z,G,j,q,X){var Y=this,te=this.dependencyLib,K=this.opts,ce=Y.maskset;z=z===!0;var ae=N;function le(De){if(De!==void 0){if(De.remove!==void 0&&(Array.isArray(De.remove)||(De.remove=[De.remove]),De.remove.sort(function(Ye,Ne){return Y.isRTL?Ye.pos-Ne.pos:Ne.pos-Ye.pos}).forEach(function(Ye){U.call(Y,{begin:Ye,end:Ye+1})}),De.remove=void 0),De.insert!==void 0&&(Array.isArray(De.insert)||(De.insert=[De.insert]),De.insert.sort(function(Ye,Ne){return Y.isRTL?Ne.pos-Ye.pos:Ye.pos-Ne.pos}).forEach(function(Ye){Ye.c!==""&&L.call(Y,Ye.pos,Ye.c,Ye.strict===void 0||Ye.strict,Ye.fromIsValid!==void 0?Ye.fromIsValid:G)}),De.insert=void 0),De.refreshFromBuffer&&De.buffer){var ze=De.refreshFromBuffer;I.call(Y,ze===!0?ze:ze.start,ze.end,De.buffer),De.refreshFromBuffer=void 0}De.rewritePosition!==void 0&&(ae=De.rewritePosition,De=!0)}return De}function pe(De,ze,Ye){var Ne=!1;return _.getTests.call(Y,De).every(function(yt,Ue){var ue=yt.match;if(y.getBuffer.call(Y,!0),(Ne=(!ue.jit||ce.validPositions[y.seekPrevious.call(Y,De)]!==void 0)&&(ue.fn!=null?ue.fn.test(ze,ce,De,Ye,K,B.call(Y,N)):(ze===ue.def||ze===K.skipOptionalPartCharacter)&&ue.def!==""&&{c:_.getPlaceholder.call(Y,De,ue,!0)||ue.def,pos:De}))!==!1){var Qe=Ne.c!==void 0?Ne.c:ze,qe=De;return Qe=Qe===K.skipOptionalPartCharacter&&ue.static===!0?_.getPlaceholder.call(Y,De,ue,!0)||ue.def:Qe,(Ne=le(Ne))!==!0&&Ne.pos!==void 0&&Ne.pos!==De&&(qe=Ne.pos),Ne!==!0&&Ne.pos===void 0&&Ne.c===void 0||U.call(Y,N,te.extend({},yt,{input:C.call(Y,Qe,ue,qe)}),G,qe)===!1&&(Ne=!1),!1}return!0}),Ne}N.begin!==void 0&&(ae=Y.isRTL?N.end:N.begin);var ie=!0,he=te.extend(!0,[],ce.validPositions);if(K.keepStatic===!1&&ce.excludes[ae]!==void 0&&j!==!0&&G!==!0)for(var re=ae;re<(Y.isRTL?N.begin:N.end);re++)ce.excludes[re]!==void 0&&(ce.excludes[re]=void 0,delete ce.tests[re]);if(typeof K.preValidation=="function"&&G!==!0&&q!==!0&&(ie=le(ie=K.preValidation.call(Y,y.getBuffer.call(Y),ae,H,B.call(Y,N),K,ce,N,z||j))),ie===!0){if(ie=pe(ae,H,z),(!z||G===!0)&&ie===!1&&q!==!0){var oe=ce.validPositions[ae];if(!oe||oe.match.static!==!0||oe.match.def!==H&&H!==K.skipOptionalPartCharacter){if(K.insertMode||ce.validPositions[y.seekNext.call(Y,ae)]===void 0||N.end>ae){var ye=!1;if(ce.jitOffset[ae]&&ce.validPositions[y.seekNext.call(Y,ae)]===void 0&&(ie=L.call(Y,ae+ce.jitOffset[ae],H,!0,!0))!==!1&&(j!==!0&&(ie.caret=ae),ye=!0),N.end>ae&&(ce.validPositions[ae]=void 0),!ye&&!y.isMask.call(Y,ae,K.keepStatic&&ae===0)){for(var _e=ae+1,Ce=y.seekNext.call(Y,ae,!1,ae!==0);_e<=Ce;_e++)if((ie=pe(_e,H,z))!==!1){ie=O.call(Y,ae,ie.pos!==void 0?ie.pos:_e)||ie,ae=_e;break}}}}else ie={caret:y.seekNext.call(Y,ae)}}Y.hasAlternator&&j!==!0&&!z&&(j=!0,ie===!1&&K.keepStatic&&(T.call(Y,y.getBuffer.call(Y))||ae===0)?ie=b.call(Y,ae,H,z,G,void 0,N):(B.call(Y,N)&&ce.tests[ae]&&ce.tests[ae].length>1&&K.keepStatic||ie==1&&K.numericInput!==!0&&ce.tests[ae]&&ce.tests[ae].length>1&&y.getLastValidPosition.call(Y,void 0,!0)>ae)&&(ie=b.call(Y,!0))),ie===!0&&(ie={pos:ae})}if(typeof K.postValidation=="function"&&G!==!0&&q!==!0){var ne=K.postValidation.call(Y,y.getBuffer.call(Y,!0),N.begin!==void 0?Y.isRTL?N.end:N.begin:N,H,ie,K,ce,z,X);ne!==void 0&&(ie=ne===!0?ie:ne)}ie&&ie.pos===void 0&&(ie.pos=ae),ie===!1||q===!0?(y.resetMaskSet.call(Y,!0),ce.validPositions=te.extend(!0,[],he)):O.call(Y,void 0,ae,!0);var xe=le(ie);return Y.maxLength!==void 0&&y.getBuffer.call(Y).length>Y.maxLength&&!G&&(y.resetMaskSet.call(Y,!0),ce.validPositions=te.extend(!0,[],he),xe=!1),xe}function P(N,H,z){for(var G=this.maskset,j=!1,q=_.getTests.call(this,N),X=0;X<q.length;X++){if(q[X].match&&(q[X].match.nativeDef===H.match[z.shiftPositions?"def":"nativeDef"]&&(!z.shiftPositions||!H.match.static)||q[X].match.nativeDef===H.match.nativeDef||z.regex&&!q[X].match.static&&q[X].match.fn.test(H.input,G,N,!1,z))){j=!0;break}if(q[X].match&&q[X].match.def===H.match.nativeDef){j=void 0;break}}return j===!1&&G.jitOffset[N]!==void 0&&(j=P.call(this,N+G.jitOffset[N],H,z)),j}function I(N,H,z){var G,j,q=this,X=this.maskset,Y=this.opts,te=this.dependencyLib,K=Y.skipOptionalPartCharacter,ce=q.isRTL?z.slice().reverse():z;if(Y.skipOptionalPartCharacter="",N===!0)y.resetMaskSet.call(q,!1),N=0,H=z.length,j=y.determineNewCaretPosition.call(q,{begin:0,end:0},!1).begin;else{for(G=N;G<H;G++)X.validPositions.splice(N,0);j=N}var ae=new te.Event("keypress");for(G=N;G<H;G++){ae.key=ce[G].toString(),q.ignorable=!1;var le=p.EventHandlers.keypressEvent.call(q,ae,!0,!1,!1,j);le!==!1&&le!==void 0&&(j=le.forwardPosition)}Y.skipOptionalPartCharacter=K}function O(N,H,z){var G=this,j=this.maskset,q=this.dependencyLib;if(N===void 0)for(N=H-1;N>0&&!j.validPositions[N];N--);for(var X=N;X<H;X++)if(j.validPositions[X]===void 0&&!y.isMask.call(G,X,!1)&&(X==0?_.getTest.call(G,X):j.validPositions[X-1])){var Y=_.getTests.call(G,X).slice();Y[Y.length-1].match.def===""&&Y.pop();var te,K=_.determineTestTemplate.call(G,X,Y);if(K&&(K.match.jit!==!0||K.match.newBlockMarker==="master"&&(te=j.validPositions[X+1])&&te.match.optionalQuantifier===!0)&&((K=q.extend({},K,{input:_.getPlaceholder.call(G,X,K.match,!0)||K.match.def})).generatedInput=!0,U.call(G,X,K,!0),z!==!0)){var ce=j.validPositions[H].input;return j.validPositions[H]=void 0,L.call(G,H,ce,!0,!0)}}}function U(N,H,z,G){var j=this,q=this.maskset,X=this.opts,Y=this.dependencyLib;function te(xe,De,ze){var Ye=De[xe];if(Ye!==void 0&&Ye.match.static===!0&&Ye.match.optionality!==!0&&(De[0]===void 0||De[0].alternation===void 0)){var Ne=ze.begin<=xe-1?De[xe-1]&&De[xe-1].match.static===!0&&De[xe-1]:De[xe-1],yt=ze.end>xe+1?De[xe+1]&&De[xe+1].match.static===!0&&De[xe+1]:De[xe+1];return Ne&&yt}return!1}var K=0,ce=N.begin!==void 0?N.begin:N,ae=N.end!==void 0?N.end:N,le=!0;if(N.begin>N.end&&(ce=N.end,ae=N.begin),G=G!==void 0?G:ce,z===void 0&&(ce!==ae||X.insertMode&&q.validPositions[G]!==void 0||H===void 0||H.match.optionalQuantifier||H.match.optionality)){var pe,ie=Y.extend(!0,[],q.validPositions),he=y.getLastValidPosition.call(j,void 0,!0);q.p=ce;var re=B.call(j,N)?ce:G;for(pe=he;pe>=re;pe--)q.validPositions.splice(pe,1),H===void 0&&delete q.tests[pe+1];var oe,ye,_e=G,Ce=_e;for(H&&(q.validPositions[G]=Y.extend(!0,{},H),Ce++,_e++),ie[ae]==null&&q.jitOffset[ae]&&(ae+=q.jitOffset[ae]+1),pe=H?ae:ae-1;pe<=he;pe++){if((oe=ie[pe])!==void 0&&oe.generatedInput!==!0&&(pe>=ae||pe>=ce&&te(pe,ie,{begin:ce,end:ae}))){for(;_.getTest.call(j,Ce).match.def!=="";){if((ye=P.call(j,Ce,oe,X))!==!1||oe.match.def==="+"){oe.match.def==="+"&&y.getBuffer.call(j,!0);var ne=L.call(j,Ce,oe.input,oe.match.def!=="+",!0);if(le=ne!==!1,_e=(ne.pos||Ce)+1,!le&&ye)break}else le=!1;if(le){H===void 0&&oe.match.static&&pe===N.begin&&K++;break}if(!le&&y.getBuffer.call(j),Ce>q.maskLength)break;Ce++}_.getTest.call(j,Ce).match.def==""&&(le=!1),Ce=_e}if(!le)break}if(!le)return q.validPositions=Y.extend(!0,[],ie),y.resetMaskSet.call(j,!0),!1}else H&&_.getTest.call(j,G).match.cd===H.match.cd&&(q.validPositions[G]=Y.extend(!0,{},H));return y.resetMaskSet.call(j,!0),K}}},n={};function o(f){var h=n[f];if(h!==void 0)return h.exports;var A=n[f]={exports:{}};return r[f](A,A.exports,o),A.exports}var u={};return function(){var f=u;Object.defineProperty(f,"__esModule",{value:!0}),f.default=void 0,o(7149),o(3194),o(9302),o(4013),o(3851),o(219),o(207),o(5296);var h,A=(h=o(2394))&&h.__esModule?h:{default:h};f.default=A.default}(),u}()})}(T5)),T5.exports}ift();var vz={exports:{}},Npe;function x8t(){return Npe||(Npe=1,function(t){function e(r){return r&&r.__esModule?r:{default:r}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(vz)),vz.exports}var pz={exports:{}},gz={exports:{}},Upe;function aft(){return Upe||(Upe=1,function(t){function e(r,n){if(r==null)return{};var o={};for(var u in r)if({}.hasOwnProperty.call(r,u)){if(n.indexOf(u)!==-1)continue;o[u]=r[u]}return o}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(gz)),gz.exports}var Hpe;function C8t(){return Hpe||(Hpe=1,function(t){var e=aft();function r(n,o){if(n==null)return{};var u,f,h=e(n,o);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(n);for(f=0;f<A.length;f++)u=A[f],o.indexOf(u)===-1&&{}.propertyIsEnumerable.call(n,u)&&(h[u]=n[u])}return h}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}(pz)),pz.exports}var mz={exports:{}},Qpe;function T8t(){return Qpe||(Qpe=1,function(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var u in o)({}).hasOwnProperty.call(o,u)&&(r[u]=o[u])}return r},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(null,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(mz)),mz.exports}var IM={},Vpe;function oft(){if(Vpe)return IM;Vpe=1,IM.match=u,IM.parse=f;var t=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,e=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,r=/^(?:(min|max)-)?(.+)/,n=/(em|rem|px|cm|mm|in|pt|pc)?$/,o=/(dpi|dpcm|dppx)?$/;function u(g,y){return f(g).some(function(_){var b=_.inverse,C=_.type==="all"||y.type===_.type;if(C&&b||!(C||b))return!1;var T=_.expressions.every(function(B){var L=B.feature,P=B.modifier,I=B.value,O=y[L];if(!O)return!1;switch(L){case"orientation":case"scan":return O.toLowerCase()===I.toLowerCase();case"width":case"height":case"device-width":case"device-height":I=p(I),O=p(O);break;case"resolution":I=A(I),O=A(O);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":I=h(I),O=h(O);break;case"grid":case"color":case"color-index":case"monochrome":I=parseInt(I,10)||1,O=parseInt(O,10)||0;break}switch(P){case"min":return O>=I;case"max":return O<=I;default:return O===I}});return T&&!b||!T&&b})}function f(g){return g.split(",").map(function(y){y=y.trim();var _=y.match(t),b=_[1],C=_[2],T=_[3]||"",B={};return B.inverse=!!b&&b.toLowerCase()==="not",B.type=C?C.toLowerCase():"all",T=T.match(/\([^\)]+\)/g)||[],B.expressions=T.map(function(L){var P=L.match(e),I=P[1].toLowerCase().match(r);return{modifier:I[1],feature:I[2],value:P[2]}}),B})}function h(g){var y=Number(g),_;return y||(_=g.match(/^(\d+)\s*\/\s*(\d+)$/),y=_[1]/_[2]),y}function A(g){var y=parseFloat(g),_=String(g).match(o)[1];switch(_){case"dpcm":return y/2.54;case"dppx":return y*96;default:return y}}function p(g){var y=parseFloat(g),_=String(g).match(n)[1];switch(_){case"em":return y*16;case"rem":return y*16;case"cm":return y*96/2.54;case"mm":return y*96/2.54/10;case"in":return y*96;case"pt":return y*72;case"pc":return y*72/12;default:return y}}return IM}var yz,zpe;function sft(){if(zpe)return yz;zpe=1;var t=oft().match,e=typeof window<"u"?window.matchMedia:null;function r(o,u,f){var h=this,A;e&&!f&&(A=e.call(window,o)),A?(this.matches=A.matches,this.media=A.media,A.addListener(y)):(this.matches=t(o,u),this.media=o),this.addListener=p,this.removeListener=g,this.dispose=_;function p(b){A&&A.addListener(b)}function g(b){A&&A.removeListener(b)}function y(b){h.matches=b.matches,h.media=b.media}function _(){A&&A.removeListener(y)}}function n(o,u,f){return new r(o,u,f)}return yz=n,yz}var lft=sft();const uft=Dn(lft);var cft=/[A-Z]/g,fft=/^ms-/,wz={};function hft(t){return"-"+t.toLowerCase()}function MLe(t){if(wz.hasOwnProperty(t))return wz[t];var e=t.replace(cft,hft);return wz[t]=fft.test(e)?"-"+e:e}function dft(t,e){if(t===e)return!0;if(!t||!e)return!1;const r=Object.keys(t),n=Object.keys(e),o=r.length;if(n.length!==o)return!1;for(let u=0;u<o;u++){const f=r[u];if(t[f]!==e[f]||!Object.prototype.hasOwnProperty.call(e,f))return!1}return!0}const of=Er.oneOfType([Er.string,Er.number]),DLe={all:Er.bool,grid:Er.bool,aural:Er.bool,braille:Er.bool,handheld:Er.bool,print:Er.bool,projection:Er.bool,screen:Er.bool,tty:Er.bool,tv:Er.bool,embossed:Er.bool},Aft={orientation:Er.oneOf(["portrait","landscape"]),scan:Er.oneOf(["progressive","interlace"]),aspectRatio:Er.string,deviceAspectRatio:Er.string,height:of,deviceHeight:of,width:of,deviceWidth:of,color:Er.bool,colorIndex:Er.bool,monochrome:Er.bool,resolution:of,type:Object.keys(DLe)},{type:E8t,...vft}=Aft,pft={minAspectRatio:Er.string,maxAspectRatio:Er.string,minDeviceAspectRatio:Er.string,maxDeviceAspectRatio:Er.string,minHeight:of,maxHeight:of,minDeviceHeight:of,maxDeviceHeight:of,minWidth:of,maxWidth:of,minDeviceWidth:of,maxDeviceWidth:of,minColor:Er.number,maxColor:Er.number,minColorIndex:Er.number,maxColorIndex:Er.number,minMonochrome:Er.number,maxMonochrome:Er.number,minResolution:of,maxResolution:of,...vft},gft={...DLe,...pft};var mft={all:gft};const yft=t=>`not ${t}`,wft=(t,e)=>{const r=MLe(t);return typeof e=="number"&&(e=`${e}px`),e===!0?r:e===!1?yft(r):`(${r}: ${e})`},bft=t=>t.join(" and "),_ft=t=>{const e=[];return Object.keys(mft.all).forEach(r=>{const n=t[r];n!=null&&e.push(wft(r,n))}),bft(e)},Sft=Ae.createContext(void 0),xft=t=>t.query||_ft(t),Gpe=t=>t?Object.keys(t).reduce((r,n)=>(r[MLe(n)]=t[n],r),{}):void 0,RLe=()=>{const t=Ae.useRef(!1);return Ae.useEffect(()=>{t.current=!0},[]),t.current},Cft=t=>{const e=Ae.useContext(Sft),r=()=>Gpe(t)||Gpe(e),[n,o]=Ae.useState(r);return Ae.useEffect(()=>{const u=r();dft(n,u)||o(u)},[t,e]),n},Tft=t=>{const e=()=>xft(t),[r,n]=Ae.useState(e);return Ae.useEffect(()=>{const o=e();r!==o&&n(o)},[t]),r},Eft=(t,e)=>{const r=()=>uft(t,e||{},!!e),[n,o]=Ae.useState(r),u=RLe();return Ae.useEffect(()=>{if(u){const f=r();return o(f),()=>{f&&f.dispose()}}},[t,e]),n},Bft=t=>{const[e,r]=Ae.useState(t.matches);return Ae.useEffect(()=>{const n=o=>{r(o.matches)};return t.addListener(n),r(t.matches),()=>{t.removeListener(n)}},[t]),e},Ift=(t,e,r)=>{const n=Cft(e),o=Tft(t);if(!o)throw new Error("Invalid or missing MediaQuery!");const u=Eft(o,n),f=Bft(u),h=RLe();return Ae.useEffect(()=>{h&&r&&r(f)},[f]),Ae.useEffect(()=>()=>{u&&u.dispose()},[]),f},B8t=({children:t,device:e,onChange:r,...n})=>{const o=Ift(n,e,r);return typeof t=="function"?t(o):o?t:null};var bz,jpe;function Lft(){if(jpe)return bz;jpe=1;var t=GS();function e(r){return t(r).toLowerCase()}return bz=e,bz}var Mft=Lft();const I8t=Dn(Mft);var _z,qpe;function Dft(){if(qpe)return _z;qpe=1;var t=zS(),e=Z2(),r=th(),n=t?t.isConcatSpreadable:void 0;function o(u){return r(u)||e(u)||!!(n&&u&&u[n])}return _z=o,_z}var Sz,Wpe;function PLe(){if(Wpe)return Sz;Wpe=1;var t=qY(),e=Dft();function r(n,o,u,f,h){var A=-1,p=n.length;for(u||(u=e),h||(h=[]);++A<p;){var g=n[A];o>0&&u(g)?o>1?r(g,o-1,u,f,h):t(h,g):f||(h[h.length]=g)}return h}return Sz=r,Sz}var xz,$pe;function OLe(){if($pe)return xz;$pe=1;function t(e,r,n,o){for(var u=e.length,f=n+(o?1:-1);o?f--:++f<u;)if(r(e[f],f,e))return f;return-1}return xz=t,xz}var Cz,Kpe;function Rft(){if(Kpe)return Cz;Kpe=1;function t(e){return e!==e}return Cz=t,Cz}var Tz,Ype;function Pft(){if(Ype)return Tz;Ype=1;function t(e,r,n){for(var o=n-1,u=e.length;++o<u;)if(e[o]===r)return o;return-1}return Tz=t,Tz}var Ez,Xpe;function kLe(){if(Xpe)return Ez;Xpe=1;var t=OLe(),e=Rft(),r=Pft();function n(o,u,f){return u===u?r(o,u,f):t(o,e,f)}return Ez=n,Ez}var Bz,Zpe;function Oft(){if(Zpe)return Bz;Zpe=1;var t=kLe();function e(r,n){var o=r==null?0:r.length;return!!o&&t(r,n,0)>-1}return Bz=e,Bz}var Iz,Jpe;function kft(){if(Jpe)return Iz;Jpe=1;function t(e,r,n){for(var o=-1,u=e==null?0:e.length;++o<u;)if(n(r,e[o]))return!0;return!1}return Iz=t,Iz}var Lz,ege;function Fft(){if(ege)return Lz;ege=1;function t(){}return Lz=t,Lz}var Mz,tge;function Nft(){if(tge)return Mz;tge=1;var t=bBe(),e=Fft(),r=jY(),n=1/0,o=t&&1/r(new t([,-0]))[1]==n?function(u){return new t(u)}:e;return Mz=o,Mz}var Dz,rge;function Uft(){if(rge)return Dz;rge=1;var t=SBe(),e=Oft(),r=kft(),n=xBe(),o=Nft(),u=jY(),f=200;function h(A,p,g){var y=-1,_=e,b=A.length,C=!0,T=[],B=T;if(g)C=!1,_=r;else if(b>=f){var L=p?null:o(A);if(L)return u(L);C=!1,_=n,B=new t}else B=p?[]:T;e:for(;++y<b;){var P=A[y],I=p?p(P):P;if(P=g||P!==0?P:0,C&&I===I){for(var O=B.length;O--;)if(B[O]===I)continue e;p&&B.push(I),T.push(P)}else _(B,I,g)||(B!==T&&B.push(I),T.push(P))}return T}return Dz=h,Dz}var Rz,nge;function Hft(){if(nge)return Rz;nge=1;var t=PLe(),e=JY(),r=Uft(),n=GBe(),o=e(function(u){return r(t(u,1,n,!0))});return Rz=o,Rz}var Qft=Hft();const L8t=Dn(Qft);var ige=function(e){return e.reduce(function(r,n){var o=n[0],u=n[1];return r[o]=u,r},{})},age=typeof window<"u"&&window.document&&window.document.createElement?Ae.useLayoutEffect:Ae.useEffect,Wf="top",Ud="bottom",Hd="right",$f="left",gX="auto",aB=[Wf,Ud,Hd,$f],BS="start",c2="end",Vft="clippingParents",FLe="viewport",cT="popper",zft="reference",oge=aB.reduce(function(t,e){return t.concat([e+"-"+BS,e+"-"+c2])},[]),NLe=[].concat(aB,[gX]).reduce(function(t,e){return t.concat([e,e+"-"+BS,e+"-"+c2])},[]),Gft="beforeRead",jft="read",qft="afterRead",Wft="beforeMain",$ft="main",Kft="afterMain",Yft="beforeWrite",Xft="write",Zft="afterWrite",Jft=[Gft,jft,qft,Wft,$ft,Kft,Yft,Xft,Zft];function np(t){return t?(t.nodeName||"").toLowerCase():null}function Dh(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Y1(t){var e=Dh(t).Element;return t instanceof e||t instanceof Element}function kd(t){var e=Dh(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function mX(t){if(typeof ShadowRoot>"u")return!1;var e=Dh(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function eht(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},u=e.elements[r];!kd(u)||!np(u)||(Object.assign(u.style,n),Object.keys(o).forEach(function(f){var h=o[f];h===!1?u.removeAttribute(f):u.setAttribute(f,h===!0?"":h)}))})}function tht(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],u=e.attributes[n]||{},f=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),h=f.reduce(function(A,p){return A[p]="",A},{});!kd(o)||!np(o)||(Object.assign(o.style,h),Object.keys(u).forEach(function(A){o.removeAttribute(A)}))})}}const rht={name:"applyStyles",enabled:!0,phase:"write",fn:eht,effect:tht,requires:["computeStyles"]};function Jv(t){return t.split("-")[0]}var F1=Math.max,YR=Math.min,IS=Math.round;function QW(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ULe(){return!/^((?!chrome|android).)*safari/i.test(QW())}function LS(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,u=1;e&&kd(t)&&(o=t.offsetWidth>0&&IS(n.width)/t.offsetWidth||1,u=t.offsetHeight>0&&IS(n.height)/t.offsetHeight||1);var f=Y1(t)?Dh(t):window,h=f.visualViewport,A=!ULe()&&r,p=(n.left+(A&&h?h.offsetLeft:0))/o,g=(n.top+(A&&h?h.offsetTop:0))/u,y=n.width/o,_=n.height/u;return{width:y,height:_,top:g,right:p+y,bottom:g+_,left:p,x:p,y:g}}function yX(t){var e=LS(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function HLe(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&mX(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function yg(t){return Dh(t).getComputedStyle(t)}function nht(t){return["table","td","th"].indexOf(np(t))>=0}function By(t){return((Y1(t)?t.ownerDocument:t.document)||window.document).documentElement}function WO(t){return np(t)==="html"?t:t.assignedSlot||t.parentNode||(mX(t)?t.host:null)||By(t)}function sge(t){return!kd(t)||yg(t).position==="fixed"?null:t.offsetParent}function iht(t){var e=/firefox/i.test(QW()),r=/Trident/i.test(QW());if(r&&kd(t)){var n=yg(t);if(n.position==="fixed")return null}var o=WO(t);for(mX(o)&&(o=o.host);kd(o)&&["html","body"].indexOf(np(o))<0;){var u=yg(o);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||e&&u.willChange==="filter"||e&&u.filter&&u.filter!=="none")return o;o=o.parentNode}return null}function oB(t){for(var e=Dh(t),r=sge(t);r&&nht(r)&&yg(r).position==="static";)r=sge(r);return r&&(np(r)==="html"||np(r)==="body"&&yg(r).position==="static")?e:r||iht(t)||e}function wX(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function CE(t,e,r){return F1(t,YR(e,r))}function aht(t,e,r){var n=CE(t,e,r);return n>r?r:n}function QLe(){return{top:0,right:0,bottom:0,left:0}}function VLe(t){return Object.assign({},QLe(),t)}function zLe(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var oht=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,VLe(typeof e!="number"?e:zLe(e,aB))};function sht(t){var e,r=t.state,n=t.name,o=t.options,u=r.elements.arrow,f=r.modifiersData.popperOffsets,h=Jv(r.placement),A=wX(h),p=[$f,Hd].indexOf(h)>=0,g=p?"height":"width";if(!(!u||!f)){var y=oht(o.padding,r),_=yX(u),b=A==="y"?Wf:$f,C=A==="y"?Ud:Hd,T=r.rects.reference[g]+r.rects.reference[A]-f[A]-r.rects.popper[g],B=f[A]-r.rects.reference[A],L=oB(u),P=L?A==="y"?L.clientHeight||0:L.clientWidth||0:0,I=T/2-B/2,O=y[b],U=P-_[g]-y[C],N=P/2-_[g]/2+I,H=CE(O,N,U),z=A;r.modifiersData[n]=(e={},e[z]=H,e.centerOffset=H-N,e)}}function lht(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||HLe(e.elements.popper,o)&&(e.elements.arrow=o))}const uht={name:"arrow",enabled:!0,phase:"main",fn:sht,effect:lht,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function MS(t){return t.split("-")[1]}var cht={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fht(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:IS(r*o)/o||0,y:IS(n*o)/o||0}}function lge(t){var e,r=t.popper,n=t.popperRect,o=t.placement,u=t.variation,f=t.offsets,h=t.position,A=t.gpuAcceleration,p=t.adaptive,g=t.roundOffsets,y=t.isFixed,_=f.x,b=_===void 0?0:_,C=f.y,T=C===void 0?0:C,B=typeof g=="function"?g({x:b,y:T}):{x:b,y:T};b=B.x,T=B.y;var L=f.hasOwnProperty("x"),P=f.hasOwnProperty("y"),I=$f,O=Wf,U=window;if(p){var N=oB(r),H="clientHeight",z="clientWidth";if(N===Dh(r)&&(N=By(r),yg(N).position!=="static"&&h==="absolute"&&(H="scrollHeight",z="scrollWidth")),N=N,o===Wf||(o===$f||o===Hd)&&u===c2){O=Ud;var G=y&&N===U&&U.visualViewport?U.visualViewport.height:N[H];T-=G-n.height,T*=A?1:-1}if(o===$f||(o===Wf||o===Ud)&&u===c2){I=Hd;var j=y&&N===U&&U.visualViewport?U.visualViewport.width:N[z];b-=j-n.width,b*=A?1:-1}}var q=Object.assign({position:h},p&&cht),X=g===!0?fht({x:b,y:T},Dh(r)):{x:b,y:T};if(b=X.x,T=X.y,A){var Y;return Object.assign({},q,(Y={},Y[O]=P?"0":"",Y[I]=L?"0":"",Y.transform=(U.devicePixelRatio||1)<=1?"translate("+b+"px, "+T+"px)":"translate3d("+b+"px, "+T+"px, 0)",Y))}return Object.assign({},q,(e={},e[O]=P?T+"px":"",e[I]=L?b+"px":"",e.transform="",e))}function hht(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,u=r.adaptive,f=u===void 0?!0:u,h=r.roundOffsets,A=h===void 0?!0:h,p={placement:Jv(e.placement),variation:MS(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,lge(Object.assign({},p,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:f,roundOffsets:A})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,lge(Object.assign({},p,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:A})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const dht={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hht,data:{}};var LM={passive:!0};function Aht(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,u=o===void 0?!0:o,f=n.resize,h=f===void 0?!0:f,A=Dh(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return u&&p.forEach(function(g){g.addEventListener("scroll",r.update,LM)}),h&&A.addEventListener("resize",r.update,LM),function(){u&&p.forEach(function(g){g.removeEventListener("scroll",r.update,LM)}),h&&A.removeEventListener("resize",r.update,LM)}}const vht={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Aht,data:{}};var pht={left:"right",right:"left",bottom:"top",top:"bottom"};function E5(t){return t.replace(/left|right|bottom|top/g,function(e){return pht[e]})}var ght={start:"end",end:"start"};function uge(t){return t.replace(/start|end/g,function(e){return ght[e]})}function bX(t){var e=Dh(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function _X(t){return LS(By(t)).left+bX(t).scrollLeft}function mht(t,e){var r=Dh(t),n=By(t),o=r.visualViewport,u=n.clientWidth,f=n.clientHeight,h=0,A=0;if(o){u=o.width,f=o.height;var p=ULe();(p||!p&&e==="fixed")&&(h=o.offsetLeft,A=o.offsetTop)}return{width:u,height:f,x:h+_X(t),y:A}}function yht(t){var e,r=By(t),n=bX(t),o=(e=t.ownerDocument)==null?void 0:e.body,u=F1(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),f=F1(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),h=-n.scrollLeft+_X(t),A=-n.scrollTop;return yg(o||r).direction==="rtl"&&(h+=F1(r.clientWidth,o?o.clientWidth:0)-u),{width:u,height:f,x:h,y:A}}function SX(t){var e=yg(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function GLe(t){return["html","body","#document"].indexOf(np(t))>=0?t.ownerDocument.body:kd(t)&&SX(t)?t:GLe(WO(t))}function TE(t,e){var r;e===void 0&&(e=[]);var n=GLe(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),u=Dh(n),f=o?[u].concat(u.visualViewport||[],SX(n)?n:[]):n,h=e.concat(f);return o?h:h.concat(TE(WO(f)))}function VW(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function wht(t,e){var r=LS(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function cge(t,e,r){return e===FLe?VW(mht(t,r)):Y1(e)?wht(e,r):VW(yht(By(t)))}function bht(t){var e=TE(WO(t)),r=["absolute","fixed"].indexOf(yg(t).position)>=0,n=r&&kd(t)?oB(t):t;return Y1(n)?e.filter(function(o){return Y1(o)&&HLe(o,n)&&np(o)!=="body"}):[]}function _ht(t,e,r,n){var o=e==="clippingParents"?bht(t):[].concat(e),u=[].concat(o,[r]),f=u[0],h=u.reduce(function(A,p){var g=cge(t,p,n);return A.top=F1(g.top,A.top),A.right=YR(g.right,A.right),A.bottom=YR(g.bottom,A.bottom),A.left=F1(g.left,A.left),A},cge(t,f,n));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function jLe(t){var e=t.reference,r=t.element,n=t.placement,o=n?Jv(n):null,u=n?MS(n):null,f=e.x+e.width/2-r.width/2,h=e.y+e.height/2-r.height/2,A;switch(o){case Wf:A={x:f,y:e.y-r.height};break;case Ud:A={x:f,y:e.y+e.height};break;case Hd:A={x:e.x+e.width,y:h};break;case $f:A={x:e.x-r.width,y:h};break;default:A={x:e.x,y:e.y}}var p=o?wX(o):null;if(p!=null){var g=p==="y"?"height":"width";switch(u){case BS:A[p]=A[p]-(e[g]/2-r[g]/2);break;case c2:A[p]=A[p]+(e[g]/2-r[g]/2);break}}return A}function f2(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,u=r.strategy,f=u===void 0?t.strategy:u,h=r.boundary,A=h===void 0?Vft:h,p=r.rootBoundary,g=p===void 0?FLe:p,y=r.elementContext,_=y===void 0?cT:y,b=r.altBoundary,C=b===void 0?!1:b,T=r.padding,B=T===void 0?0:T,L=VLe(typeof B!="number"?B:zLe(B,aB)),P=_===cT?zft:cT,I=t.rects.popper,O=t.elements[C?P:_],U=_ht(Y1(O)?O:O.contextElement||By(t.elements.popper),A,g,f),N=LS(t.elements.reference),H=jLe({reference:N,element:I,placement:o}),z=VW(Object.assign({},I,H)),G=_===cT?z:N,j={top:U.top-G.top+L.top,bottom:G.bottom-U.bottom+L.bottom,left:U.left-G.left+L.left,right:G.right-U.right+L.right},q=t.modifiersData.offset;if(_===cT&&q){var X=q[o];Object.keys(j).forEach(function(Y){var te=[Hd,Ud].indexOf(Y)>=0?1:-1,K=[Wf,Ud].indexOf(Y)>=0?"y":"x";j[Y]+=X[K]*te})}return j}function Sht(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,u=r.rootBoundary,f=r.padding,h=r.flipVariations,A=r.allowedAutoPlacements,p=A===void 0?NLe:A,g=MS(n),y=g?h?oge:oge.filter(function(C){return MS(C)===g}):aB,_=y.filter(function(C){return p.indexOf(C)>=0});_.length===0&&(_=y);var b=_.reduce(function(C,T){return C[T]=f2(t,{placement:T,boundary:o,rootBoundary:u,padding:f})[Jv(T)],C},{});return Object.keys(b).sort(function(C,T){return b[C]-b[T]})}function xht(t){if(Jv(t)===gX)return[];var e=E5(t);return[uge(t),e,uge(e)]}function Cht(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,u=o===void 0?!0:o,f=r.altAxis,h=f===void 0?!0:f,A=r.fallbackPlacements,p=r.padding,g=r.boundary,y=r.rootBoundary,_=r.altBoundary,b=r.flipVariations,C=b===void 0?!0:b,T=r.allowedAutoPlacements,B=e.options.placement,L=Jv(B),P=L===B,I=A||(P||!C?[E5(B)]:xht(B)),O=[B].concat(I).reduce(function(ye,_e){return ye.concat(Jv(_e)===gX?Sht(e,{placement:_e,boundary:g,rootBoundary:y,padding:p,flipVariations:C,allowedAutoPlacements:T}):_e)},[]),U=e.rects.reference,N=e.rects.popper,H=new Map,z=!0,G=O[0],j=0;j<O.length;j++){var q=O[j],X=Jv(q),Y=MS(q)===BS,te=[Wf,Ud].indexOf(X)>=0,K=te?"width":"height",ce=f2(e,{placement:q,boundary:g,rootBoundary:y,altBoundary:_,padding:p}),ae=te?Y?Hd:$f:Y?Ud:Wf;U[K]>N[K]&&(ae=E5(ae));var le=E5(ae),pe=[];if(u&&pe.push(ce[X]<=0),h&&pe.push(ce[ae]<=0,ce[le]<=0),pe.every(function(ye){return ye})){G=q,z=!1;break}H.set(q,pe)}if(z)for(var ie=C?3:1,he=function(_e){var Ce=O.find(function(ne){var xe=H.get(ne);if(xe)return xe.slice(0,_e).every(function(De){return De})});if(Ce)return G=Ce,"break"},re=ie;re>0;re--){var oe=he(re);if(oe==="break")break}e.placement!==G&&(e.modifiersData[n]._skip=!0,e.placement=G,e.reset=!0)}}const Tht={name:"flip",enabled:!0,phase:"main",fn:Cht,requiresIfExists:["offset"],data:{_skip:!1}};function fge(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function hge(t){return[Wf,Hd,Ud,$f].some(function(e){return t[e]>=0})}function Eht(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,u=e.modifiersData.preventOverflow,f=f2(e,{elementContext:"reference"}),h=f2(e,{altBoundary:!0}),A=fge(f,n),p=fge(h,o,u),g=hge(A),y=hge(p);e.modifiersData[r]={referenceClippingOffsets:A,popperEscapeOffsets:p,isReferenceHidden:g,hasPopperEscaped:y},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":y})}const Bht={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Eht};function Iht(t,e,r){var n=Jv(t),o=[$f,Wf].indexOf(n)>=0?-1:1,u=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,f=u[0],h=u[1];return f=f||0,h=(h||0)*o,[$f,Hd].indexOf(n)>=0?{x:h,y:f}:{x:f,y:h}}function Lht(t){var e=t.state,r=t.options,n=t.name,o=r.offset,u=o===void 0?[0,0]:o,f=NLe.reduce(function(g,y){return g[y]=Iht(y,e.rects,u),g},{}),h=f[e.placement],A=h.x,p=h.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=A,e.modifiersData.popperOffsets.y+=p),e.modifiersData[n]=f}const Mht={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lht};function Dht(t){var e=t.state,r=t.name;e.modifiersData[r]=jLe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Rht={name:"popperOffsets",enabled:!0,phase:"read",fn:Dht,data:{}};function Pht(t){return t==="x"?"y":"x"}function Oht(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,u=o===void 0?!0:o,f=r.altAxis,h=f===void 0?!1:f,A=r.boundary,p=r.rootBoundary,g=r.altBoundary,y=r.padding,_=r.tether,b=_===void 0?!0:_,C=r.tetherOffset,T=C===void 0?0:C,B=f2(e,{boundary:A,rootBoundary:p,padding:y,altBoundary:g}),L=Jv(e.placement),P=MS(e.placement),I=!P,O=wX(L),U=Pht(O),N=e.modifiersData.popperOffsets,H=e.rects.reference,z=e.rects.popper,G=typeof T=="function"?T(Object.assign({},e.rects,{placement:e.placement})):T,j=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),q=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,X={x:0,y:0};if(N){if(u){var Y,te=O==="y"?Wf:$f,K=O==="y"?Ud:Hd,ce=O==="y"?"height":"width",ae=N[O],le=ae+B[te],pe=ae-B[K],ie=b?-z[ce]/2:0,he=P===BS?H[ce]:z[ce],re=P===BS?-z[ce]:-H[ce],oe=e.elements.arrow,ye=b&&oe?yX(oe):{width:0,height:0},_e=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:QLe(),Ce=_e[te],ne=_e[K],xe=CE(0,H[ce],ye[ce]),De=I?H[ce]/2-ie-xe-Ce-j.mainAxis:he-xe-Ce-j.mainAxis,ze=I?-H[ce]/2+ie+xe+ne+j.mainAxis:re+xe+ne+j.mainAxis,Ye=e.elements.arrow&&oB(e.elements.arrow),Ne=Ye?O==="y"?Ye.clientTop||0:Ye.clientLeft||0:0,yt=(Y=q?.[O])!=null?Y:0,Ue=ae+De-yt-Ne,ue=ae+ze-yt,Qe=CE(b?YR(le,Ue):le,ae,b?F1(pe,ue):pe);N[O]=Qe,X[O]=Qe-ae}if(h){var qe,Re=O==="x"?Wf:$f,Me=O==="x"?Ud:Hd,Ge=N[U],Pe=U==="y"?"height":"width",ke=Ge+B[Re],Be=Ge-B[Me],$e=[Wf,$f].indexOf(L)!==-1,nt=(qe=q?.[U])!=null?qe:0,ft=$e?ke:Ge-H[Pe]-z[Pe]-nt+j.altAxis,Mt=$e?Ge+H[Pe]+z[Pe]-nt-j.altAxis:Be,Rt=b&&$e?aht(ft,Ge,Mt):CE(b?ft:ke,Ge,b?Mt:Be);N[U]=Rt,X[U]=Rt-Ge}e.modifiersData[n]=X}}const kht={name:"preventOverflow",enabled:!0,phase:"main",fn:Oht,requiresIfExists:["offset"]};function Fht(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Nht(t){return t===Dh(t)||!kd(t)?bX(t):Fht(t)}function Uht(t){var e=t.getBoundingClientRect(),r=IS(e.width)/t.offsetWidth||1,n=IS(e.height)/t.offsetHeight||1;return r!==1||n!==1}function Hht(t,e,r){r===void 0&&(r=!1);var n=kd(e),o=kd(e)&&Uht(e),u=By(e),f=LS(t,o,r),h={scrollLeft:0,scrollTop:0},A={x:0,y:0};return(n||!n&&!r)&&((np(e)!=="body"||SX(u))&&(h=Nht(e)),kd(e)?(A=LS(e,!0),A.x+=e.clientLeft,A.y+=e.clientTop):u&&(A.x=_X(u))),{x:f.left+h.scrollLeft-A.x,y:f.top+h.scrollTop-A.y,width:f.width,height:f.height}}function Qht(t){var e=new Map,r=new Set,n=[];t.forEach(function(u){e.set(u.name,u)});function o(u){r.add(u.name);var f=[].concat(u.requires||[],u.requiresIfExists||[]);f.forEach(function(h){if(!r.has(h)){var A=e.get(h);A&&o(A)}}),n.push(u)}return t.forEach(function(u){r.has(u.name)||o(u)}),n}function Vht(t){var e=Qht(t);return Jft.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function zht(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Ght(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var dge={placement:"bottom",modifiers:[],strategy:"absolute"};function Age(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function jht(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,o=e.defaultOptions,u=o===void 0?dge:o;return function(h,A,p){p===void 0&&(p=u);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},dge,u),modifiersData:{},elements:{reference:h,popper:A},attributes:{},styles:{}},y=[],_=!1,b={state:g,setOptions:function(L){var P=typeof L=="function"?L(g.options):L;T(),g.options=Object.assign({},u,g.options,P),g.scrollParents={reference:Y1(h)?TE(h):h.contextElement?TE(h.contextElement):[],popper:TE(A)};var I=Vht(Ght([].concat(n,g.options.modifiers)));return g.orderedModifiers=I.filter(function(O){return O.enabled}),C(),b.update()},forceUpdate:function(){if(!_){var L=g.elements,P=L.reference,I=L.popper;if(Age(P,I)){g.rects={reference:Hht(P,oB(I),g.options.strategy==="fixed"),popper:yX(I)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(j){return g.modifiersData[j.name]=Object.assign({},j.data)});for(var O=0;O<g.orderedModifiers.length;O++){if(g.reset===!0){g.reset=!1,O=-1;continue}var U=g.orderedModifiers[O],N=U.fn,H=U.options,z=H===void 0?{}:H,G=U.name;typeof N=="function"&&(g=N({state:g,options:z,name:G,instance:b})||g)}}}},update:zht(function(){return new Promise(function(B){b.forceUpdate(),B(g)})}),destroy:function(){T(),_=!0}};if(!Age(h,A))return b;b.setOptions(p).then(function(B){!_&&p.onFirstUpdate&&p.onFirstUpdate(B)});function C(){g.orderedModifiers.forEach(function(B){var L=B.name,P=B.options,I=P===void 0?{}:P,O=B.effect;if(typeof O=="function"){var U=O({state:g,name:L,instance:b,options:I}),N=function(){};y.push(U||N)}})}function T(){y.forEach(function(B){return B()}),y=[]}return b}}var qht=[vht,Rht,dht,rht,Mht,Tht,kht,uht,Bht],Wht=jht({defaultModifiers:qht}),Pz,vge;function $ht(){if(vge)return Pz;vge=1;var t=typeof Element<"u",e=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(u,f){if(u===f)return!0;if(u&&f&&typeof u=="object"&&typeof f=="object"){if(u.constructor!==f.constructor)return!1;var h,A,p;if(Array.isArray(u)){if(h=u.length,h!=f.length)return!1;for(A=h;A--!==0;)if(!o(u[A],f[A]))return!1;return!0}var g;if(e&&u instanceof Map&&f instanceof Map){if(u.size!==f.size)return!1;for(g=u.entries();!(A=g.next()).done;)if(!f.has(A.value[0]))return!1;for(g=u.entries();!(A=g.next()).done;)if(!o(A.value[1],f.get(A.value[0])))return!1;return!0}if(r&&u instanceof Set&&f instanceof Set){if(u.size!==f.size)return!1;for(g=u.entries();!(A=g.next()).done;)if(!f.has(A.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(f)){if(h=u.length,h!=f.length)return!1;for(A=h;A--!==0;)if(u[A]!==f[A])return!1;return!0}if(u.constructor===RegExp)return u.source===f.source&&u.flags===f.flags;if(u.valueOf!==Object.prototype.valueOf&&typeof u.valueOf=="function"&&typeof f.valueOf=="function")return u.valueOf()===f.valueOf();if(u.toString!==Object.prototype.toString&&typeof u.toString=="function"&&typeof f.toString=="function")return u.toString()===f.toString();if(p=Object.keys(u),h=p.length,h!==Object.keys(f).length)return!1;for(A=h;A--!==0;)if(!Object.prototype.hasOwnProperty.call(f,p[A]))return!1;if(t&&u instanceof Element)return!1;for(A=h;A--!==0;)if(!((p[A]==="_owner"||p[A]==="__v"||p[A]==="__o")&&u.$$typeof)&&!o(u[p[A]],f[p[A]]))return!1;return!0}return u!==u&&f!==f}return Pz=function(f,h){try{return o(f,h)}catch(A){if((A.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw A}},Pz}var Kht=$ht();const Yht=Dn(Kht);var Xht=[],M8t=function(e,r,n){n===void 0&&(n={});var o=Ae.useRef(null),u={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Xht},f=Ae.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),h=f[0],A=f[1],p=Ae.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var C=b.state,T=Object.keys(C.elements);uu.flushSync(function(){A({styles:ige(T.map(function(B){return[B,C.styles[B]||{}]})),attributes:ige(T.map(function(B){return[B,C.attributes[B]]}))})})},requires:["computeStyles"]}},[]),g=Ae.useMemo(function(){var _={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[p,{name:"applyStyles",enabled:!1}])};return Yht(o.current,_)?o.current||_:(o.current=_,_)},[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,p]),y=Ae.useRef();return age(function(){y.current&&y.current.setOptions(g)},[g]),age(function(){if(!(e==null||r==null)){var _=n.createPopper||Wht,b=_(e,r,g);return y.current=b,function(){b.destroy(),y.current=null}}},[e,r,n.createPopper]),{state:y.current?y.current.state:null,styles:h.styles,attributes:h.attributes,update:y.current?y.current.update:null,forceUpdate:y.current?y.current.forceUpdate:null}},Oz,pge;function Zht(){if(pge)return Oz;pge=1;var t=/\s/;function e(r){for(var n=r.length;n--&&t.test(r.charAt(n)););return n}return Oz=e,Oz}var kz,gge;function Jht(){if(gge)return kz;gge=1;var t=Zht(),e=/^\s+/;function r(n){return n&&n.slice(0,t(n)+1).replace(e,"")}return kz=r,kz}var Fz,mge;function qLe(){if(mge)return Fz;mge=1;var t=Jht(),e=vf(),r=CO(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,h=parseInt;function A(p){if(typeof p=="number")return p;if(r(p))return n;if(e(p)){var g=typeof p.valueOf=="function"?p.valueOf():p;p=e(g)?g+"":g}if(typeof p!="string")return p===0?p:+p;p=t(p);var y=u.test(p);return y||f.test(p)?h(p.slice(2),y?2:8):o.test(p)?n:+p}return Fz=A,Fz}var Nz,yge;function WLe(){if(yge)return Nz;yge=1;var t=qLe(),e=1/0,r=17976931348623157e292;function n(o){if(!o)return o===0?o:0;if(o=t(o),o===e||o===-e){var u=o<0?-1:1;return u*r}return o===o?o:0}return Nz=n,Nz}var Uz,wge;function $Le(){if(wge)return Uz;wge=1;var t=WLe();function e(r){var n=t(r),o=n%1;return n===n?o?n-o:n:0}return Uz=e,Uz}var Hz,bge;function KLe(){if(bge)return Hz;bge=1;var t=OLe(),e=tB(),r=$Le(),n=Math.max;function o(u,f,h){var A=u==null?0:u.length;if(!A)return-1;var p=h==null?0:r(h);return p<0&&(p=n(A+p,0)),t(u,e(f,3),p)}return Hz=o,Hz}var edt=KLe();const D8t=Dn(edt);function YLe(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=YLe(t[e]))&&(n&&(n+=" "),n+=r);else for(e in t)t[e]&&(n&&(n+=" "),n+=e);return n}function Zm(){for(var t,e,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(e=YLe(t))&&(n&&(n+=" "),n+=e);return n}const EE=t=>typeof t=="number"&&!isNaN(t),X1=t=>typeof t=="string",jf=t=>typeof t=="function",B5=t=>X1(t)||jf(t)?t:null,Qz=t=>Ae.isValidElement(t)||X1(t)||jf(t)||EE(t);function tdt(t,e,r){r===void 0&&(r=300);const{scrollHeight:n,style:o}=t;requestAnimationFrame(()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(e,r)})})}function $O(t){let{enter:e,exit:r,appendPosition:n=!1,collapse:o=!0,collapseDuration:u=300}=t;return function(f){let{children:h,position:A,preventExitTransition:p,done:g,nodeRef:y,isIn:_}=f;const b=n?`${e}--${A}`:e,C=n?`${r}--${A}`:r,T=Ae.useRef(0);return Ae.useLayoutEffect(()=>{const B=y.current,L=b.split(" "),P=I=>{I.target===y.current&&(B.dispatchEvent(new Event("d")),B.removeEventListener("animationend",P),B.removeEventListener("animationcancel",P),T.current===0&&I.type!=="animationcancel"&&B.classList.remove(...L))};B.classList.add(...L),B.addEventListener("animationend",P),B.addEventListener("animationcancel",P)},[]),Ae.useEffect(()=>{const B=y.current,L=()=>{B.removeEventListener("animationend",L),o?tdt(B,g,u):g()};_||(p?L():(T.current=1,B.className+=` ${C}`,B.addEventListener("animationend",L)))},[_]),Sn.createElement(Sn.Fragment,null,h)}}function _ge(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const bd={list:new Map,emitQueue:new Map,on(t,e){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(e),this},off(t,e){if(e){const r=this.list.get(t).filter(n=>n!==e);return this.list.set(t,r),this}return this.list.delete(t),this},cancelEmit(t){const e=this.emitQueue.get(t);return e&&(e.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit(t){this.list.has(t)&&this.list.get(t).forEach(e=>{const r=setTimeout(()=>{e(...[].slice.call(arguments,1))},0);this.emitQueue.has(t)||this.emitQueue.set(t,[]),this.emitQueue.get(t).push(r)})}},MM=t=>{let{theme:e,type:r,...n}=t;return Sn.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...n})},Vz={info:function(t){return Sn.createElement(MM,{...t},Sn.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return Sn.createElement(MM,{...t},Sn.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return Sn.createElement(MM,{...t},Sn.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return Sn.createElement(MM,{...t},Sn.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return Sn.createElement("div",{className:"Toastify__spinner"})}};function rdt(t){const[,e]=Ae.useReducer(b=>b+1,0),[r,n]=Ae.useState([]),o=Ae.useRef(null),u=Ae.useRef(new Map).current,f=b=>r.indexOf(b)!==-1,h=Ae.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:t,containerId:null,isToastActive:f,getToast:b=>u.get(b)}).current;function A(b){let{containerId:C}=b;const{limit:T}=h.props;!T||C&&h.containerId!==C||(h.count-=h.queue.length,h.queue=[])}function p(b){n(C=>b==null?[]:C.filter(T=>T!==b))}function g(){const{toastContent:b,toastProps:C,staleId:T}=h.queue.shift();_(b,C,T)}function y(b,C){let{delay:T,staleId:B,...L}=C;if(!Qz(b)||function(X){return!o.current||h.props.enableMultiContainer&&X.containerId!==h.props.containerId||u.has(X.toastId)&&X.updateId==null}(L))return;const{toastId:P,updateId:I,data:O}=L,{props:U}=h,N=()=>p(P),H=I==null;H&&h.count++;const z={...U,style:U.toastStyle,key:h.toastKey++,...Object.fromEntries(Object.entries(L).filter(X=>{let[Y,te]=X;return te!=null})),toastId:P,updateId:I,data:O,closeToast:N,isIn:!1,className:B5(L.className||U.toastClassName),bodyClassName:B5(L.bodyClassName||U.bodyClassName),progressClassName:B5(L.progressClassName||U.progressClassName),autoClose:!L.isLoading&&(G=L.autoClose,j=U.autoClose,G===!1||EE(G)&&G>0?G:j),deleteToast(){const X=_ge(u.get(P),"removed");u.delete(P),bd.emit(4,X);const Y=h.queue.length;if(h.count=P==null?h.count-h.displayedToast:h.count-1,h.count<0&&(h.count=0),Y>0){const te=P==null?h.props.limit:1;if(Y===1||te===1)h.displayedToast++,g();else{const K=te>Y?Y:te;h.displayedToast=K;for(let ce=0;ce<K;ce++)g()}}else e()}};var G,j;z.iconOut=function(X){let{theme:Y,type:te,isLoading:K,icon:ce}=X,ae=null;const le={theme:Y,type:te};return ce===!1||(jf(ce)?ae=ce(le):Ae.isValidElement(ce)?ae=Ae.cloneElement(ce,le):X1(ce)||EE(ce)?ae=ce:K?ae=Vz.spinner():(pe=>pe in Vz)(te)&&(ae=Vz[te](le))),ae}(z),jf(L.onOpen)&&(z.onOpen=L.onOpen),jf(L.onClose)&&(z.onClose=L.onClose),z.closeButton=U.closeButton,L.closeButton===!1||Qz(L.closeButton)?z.closeButton=L.closeButton:L.closeButton===!0&&(z.closeButton=!Qz(U.closeButton)||U.closeButton);let q=b;Ae.isValidElement(b)&&!X1(b.type)?q=Ae.cloneElement(b,{closeToast:N,toastProps:z,data:O}):jf(b)&&(q=b({closeToast:N,toastProps:z,data:O})),U.limit&&U.limit>0&&h.count>U.limit&&H?h.queue.push({toastContent:q,toastProps:z,staleId:B}):EE(T)?setTimeout(()=>{_(q,z,B)},T):_(q,z,B)}function _(b,C,T){const{toastId:B}=C;T&&u.delete(T);const L={content:b,props:C};u.set(B,L),n(P=>[...P,B].filter(I=>I!==T)),bd.emit(4,_ge(L,L.props.updateId==null?"added":"updated"))}return Ae.useEffect(()=>(h.containerId=t.containerId,bd.cancelEmit(3).on(0,y).on(1,b=>o.current&&p(b)).on(5,A).emit(2,h),()=>{u.clear(),bd.emit(3,h)}),[]),Ae.useEffect(()=>{h.props=t,h.isToastActive=f,h.displayedToast=r.length}),{getToastToRender:function(b){const C=new Map,T=Array.from(u.values());return t.newestOnTop&&T.reverse(),T.forEach(B=>{const{position:L}=B.props;C.has(L)||C.set(L,[]),C.get(L).push(B)}),Array.from(C,B=>b(B[0],B[1]))},containerRef:o,isToastActive:f}}function Sge(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}function xge(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}function ndt(t){const[e,r]=Ae.useState(!1),[n,o]=Ae.useState(!1),u=Ae.useRef(null),f=Ae.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,h=Ae.useRef(t),{autoClose:A,pauseOnHover:p,closeToast:g,onClick:y,closeOnClick:_}=t;function b(O){if(t.draggable){O.nativeEvent.type==="touchstart"&&O.nativeEvent.preventDefault(),f.didMove=!1,document.addEventListener("mousemove",L),document.addEventListener("mouseup",P),document.addEventListener("touchmove",L),document.addEventListener("touchend",P);const U=u.current;f.canCloseOnClick=!0,f.canDrag=!0,f.boundingRect=U.getBoundingClientRect(),U.style.transition="",f.x=Sge(O.nativeEvent),f.y=xge(O.nativeEvent),t.draggableDirection==="x"?(f.start=f.x,f.removalDistance=U.offsetWidth*(t.draggablePercent/100)):(f.start=f.y,f.removalDistance=U.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent/100))}}function C(O){if(f.boundingRect){const{top:U,bottom:N,left:H,right:z}=f.boundingRect;O.nativeEvent.type!=="touchend"&&t.pauseOnHover&&f.x>=H&&f.x<=z&&f.y>=U&&f.y<=N?B():T()}}function T(){r(!0)}function B(){r(!1)}function L(O){const U=u.current;f.canDrag&&U&&(f.didMove=!0,e&&B(),f.x=Sge(O),f.y=xge(O),f.delta=t.draggableDirection==="x"?f.x-f.start:f.y-f.start,f.start!==f.x&&(f.canCloseOnClick=!1),U.style.transform=`translate${t.draggableDirection}(${f.delta}px)`,U.style.opacity=""+(1-Math.abs(f.delta/f.removalDistance)))}function P(){document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",P),document.removeEventListener("touchmove",L),document.removeEventListener("touchend",P);const O=u.current;if(f.canDrag&&f.didMove&&O){if(f.canDrag=!1,Math.abs(f.delta)>f.removalDistance)return o(!0),void t.closeToast();O.style.transition="transform 0.2s, opacity 0.2s",O.style.transform=`translate${t.draggableDirection}(0)`,O.style.opacity="1"}}Ae.useEffect(()=>{h.current=t}),Ae.useEffect(()=>(u.current&&u.current.addEventListener("d",T,{once:!0}),jf(t.onOpen)&&t.onOpen(Ae.isValidElement(t.children)&&t.children.props),()=>{const O=h.current;jf(O.onClose)&&O.onClose(Ae.isValidElement(O.children)&&O.children.props)}),[]),Ae.useEffect(()=>(t.pauseOnFocusLoss&&(document.hasFocus()||B(),window.addEventListener("focus",T),window.addEventListener("blur",B)),()=>{t.pauseOnFocusLoss&&(window.removeEventListener("focus",T),window.removeEventListener("blur",B))}),[t.pauseOnFocusLoss]);const I={onMouseDown:b,onTouchStart:b,onMouseUp:C,onTouchEnd:C};return A&&p&&(I.onMouseEnter=B,I.onMouseLeave=T),_&&(I.onClick=O=>{y&&y(O),f.canCloseOnClick&&g()}),{playToast:T,pauseToast:B,isRunning:e,preventExitTransition:n,toastRef:u,eventHandlers:I}}function XLe(t){let{closeToast:e,theme:r,ariaLabel:n="close"}=t;return Sn.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:o=>{o.stopPropagation(),e(o)},"aria-label":n},Sn.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Sn.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function idt(t){let{delay:e,isRunning:r,closeToast:n,type:o="default",hide:u,className:f,style:h,controlledProgress:A,progress:p,rtl:g,isIn:y,theme:_}=t;const b=u||A&&p===0,C={...h,animationDuration:`${e}ms`,animationPlayState:r?"running":"paused",opacity:b?0:1};A&&(C.transform=`scaleX(${p})`);const T=Zm("Toastify__progress-bar",A?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${_}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":g}),B=jf(f)?f({rtl:g,type:o,defaultClassName:T}):Zm(T,f);return Sn.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:B,style:C,[A&&p>=1?"onTransitionEnd":"onAnimationEnd"]:A&&p<1?null:()=>{y&&n()}})}const adt=t=>{const{isRunning:e,preventExitTransition:r,toastRef:n,eventHandlers:o}=ndt(t),{closeButton:u,children:f,autoClose:h,onClick:A,type:p,hideProgressBar:g,closeToast:y,transition:_,position:b,className:C,style:T,bodyClassName:B,bodyStyle:L,progressClassName:P,progressStyle:I,updateId:O,role:U,progress:N,rtl:H,toastId:z,deleteToast:G,isIn:j,isLoading:q,iconOut:X,closeOnClick:Y,theme:te}=t,K=Zm("Toastify__toast",`Toastify__toast-theme--${te}`,`Toastify__toast--${p}`,{"Toastify__toast--rtl":H},{"Toastify__toast--close-on-click":Y}),ce=jf(C)?C({rtl:H,position:b,type:p,defaultClassName:K}):Zm(K,C),ae=!!N||!h,le={closeToast:y,type:p,theme:te};let pe=null;return u===!1||(pe=jf(u)?u(le):Ae.isValidElement(u)?Ae.cloneElement(u,le):XLe(le)),Sn.createElement(_,{isIn:j,done:G,position:b,preventExitTransition:r,nodeRef:n},Sn.createElement("div",{id:z,onClick:A,className:ce,...o,style:T,ref:n},Sn.createElement("div",{...j&&{role:U},className:jf(B)?B({type:p}):Zm("Toastify__toast-body",B),style:L},X!=null&&Sn.createElement("div",{className:Zm("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!q})},X),Sn.createElement("div",null,f)),pe,Sn.createElement(idt,{...O&&!ae?{key:`pb-${O}`}:{},rtl:H,theme:te,delay:h,isRunning:e,isIn:j,closeToast:y,hide:g,type:p,style:I,className:P,controlledProgress:ae,progress:N||0})))},KO=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},odt=$O(KO("bounce",!0));$O(KO("slide",!0));$O(KO("zoom"));$O(KO("flip"));const Cge=Ae.forwardRef((t,e)=>{const{getToastToRender:r,containerRef:n,isToastActive:o}=rdt(t),{className:u,style:f,rtl:h,containerId:A}=t;function p(g){const y=Zm("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":h});return jf(u)?u({position:g,rtl:h,defaultClassName:y}):Zm(y,B5(u))}return Ae.useEffect(()=>{e&&(e.current=n.current)},[]),Sn.createElement("div",{ref:n,className:"Toastify",id:A},r((g,y)=>{const _=y.length?{...f}:{...f,pointerEvents:"none"};return Sn.createElement("div",{className:p(g),style:_,key:`container-${g}`},y.map((b,C)=>{let{content:T,props:B}=b;return Sn.createElement(adt,{...B,isIn:o(B.toastId),style:{...B.style,"--nth":C+1,"--len":y.length},key:`toast-${B.key}`},T)}))}))});Cge.displayName="ToastContainer",Cge.defaultProps={position:"top-right",transition:odt,autoClose:5e3,closeButton:XLe,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let zz,p1=new Map,tE=[],sdt=1;function ZLe(){return""+sdt++}function ldt(t){return t&&(X1(t.toastId)||EE(t.toastId))?t.toastId:ZLe()}function BE(t,e){return p1.size>0?bd.emit(0,t,e):tE.push({content:t,options:e}),e.toastId}function XR(t,e){return{...e,type:e&&e.type||t,toastId:ldt(e)}}function DM(t){return(e,r)=>BE(e,XR(t,r))}function Ts(t,e){return BE(t,XR("default",e))}Ts.loading=(t,e)=>BE(t,XR("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),Ts.promise=function(t,e,r){let n,{pending:o,error:u,success:f}=e;o&&(n=X1(o)?Ts.loading(o,r):Ts.loading(o.render,{...r,...o}));const h={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},A=(g,y,_)=>{if(y==null)return void Ts.dismiss(n);const b={type:g,...h,...r,data:_},C=X1(y)?{render:y}:y;return n?Ts.update(n,{...b,...C}):Ts(C.render,{...b,...C}),_},p=jf(t)?t():t;return p.then(g=>A("success",f,g)).catch(g=>A("error",u,g)),p},Ts.success=DM("success"),Ts.info=DM("info"),Ts.error=DM("error"),Ts.warning=DM("warning"),Ts.warn=Ts.warning,Ts.dark=(t,e)=>BE(t,XR("default",{theme:"dark",...e})),Ts.dismiss=t=>{p1.size>0?bd.emit(1,t):tE=tE.filter(e=>t!=null&&e.options.toastId!==t)},Ts.clearWaitingQueue=function(t){return t===void 0&&(t={}),bd.emit(5,t)},Ts.isActive=t=>{let e=!1;return p1.forEach(r=>{r.isToastActive&&r.isToastActive(t)&&(e=!0)}),e},Ts.update=function(t,e){e===void 0&&(e={}),setTimeout(()=>{const r=function(n,o){let{containerId:u}=o;const f=p1.get(u||zz);return f&&f.getToast(n)}(t,e);if(r){const{props:n,content:o}=r,u={delay:100,...n,...e,toastId:e.toastId||t,updateId:ZLe()};u.toastId!==t&&(u.staleId=t);const f=u.render||o;delete u.render,BE(f,u)}},0)},Ts.done=t=>{Ts.update(t,{progress:1})},Ts.onChange=t=>(bd.on(4,t),()=>{bd.off(4,t)}),Ts.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Ts.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},bd.on(2,t=>{zz=t.containerId||t,p1.set(zz,t),tE.forEach(e=>{bd.emit(0,e.content,e.options)}),tE=[]}).on(3,t=>{p1.delete(t.containerId||t),p1.size===0&&bd.off(0).off(1).off(5)});var Gz,Tge;function JLe(){if(Tge)return Gz;Tge=1;function t(e,r,n){var o=-1,u=e.length;r<0&&(r=-r>u?0:u+r),n=n>u?u:n,n<0&&(n+=u),u=r>n?0:n-r>>>0,r>>>=0;for(var f=Array(u);++o<u;)f[o]=e[o+r];return f}return Gz=t,Gz}var jz,Ege;function udt(){if(Ege)return jz;Ege=1;var t=JLe();function e(r,n,o){var u=r.length;return o=o===void 0?u:o,!n&&o>=u?r:t(r,n,o)}return jz=e,jz}var qz,Bge;function eMe(){if(Bge)return qz;Bge=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",o=e+r+n,u="\\ufe0e\\ufe0f",f="\\u200d",h=RegExp("["+f+t+o+u+"]");function A(p){return h.test(p)}return qz=A,qz}var Wz,Ige;function cdt(){if(Ige)return Wz;Ige=1;function t(e){return e.split("")}return Wz=t,Wz}var $z,Lge;function fdt(){if(Lge)return $z;Lge=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",o=e+r+n,u="\\ufe0e\\ufe0f",f="["+t+"]",h="["+o+"]",A="\\ud83c[\\udffb-\\udfff]",p="(?:"+h+"|"+A+")",g="[^"+t+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",C=p+"?",T="["+u+"]?",B="(?:"+b+"(?:"+[g,y,_].join("|")+")"+T+C+")*",L=T+C+B,P="(?:"+[g+h+"?",h,y,_,f].join("|")+")",I=RegExp(A+"(?="+A+")|"+P+L,"g");function O(U){return U.match(I)||[]}return $z=O,$z}var Kz,Mge;function hdt(){if(Mge)return Kz;Mge=1;var t=cdt(),e=eMe(),r=fdt();function n(o){return e(o)?r(o):t(o)}return Kz=n,Kz}var Yz,Dge;function ddt(){if(Dge)return Yz;Dge=1;var t=udt(),e=eMe(),r=hdt(),n=GS();function o(u){return function(f){f=n(f);var h=e(f)?r(f):void 0,A=h?h[0]:f.charAt(0),p=h?t(h,1).join(""):f.slice(1);return A[u]()+p}}return Yz=o,Yz}var Xz,Rge;function Adt(){if(Rge)return Xz;Rge=1;var t=ddt(),e=t("toUpperCase");return Xz=e,Xz}var Zz,Pge;function vdt(){if(Pge)return Zz;Pge=1;var t=GS(),e=Adt();function r(n){return e(t(n).toLowerCase())}return Zz=r,Zz}var pdt=vdt();const R8t=Dn(pdt);var Jz,Oge;function gdt(){if(Oge)return Jz;Oge=1;var t=OBe(),e=RBe();function r(n,o){return t(n,o,function(u,f){return e(n,f)})}return Jz=r,Jz}var e7,kge;function mdt(){if(kge)return e7;kge=1;var t=PLe();function e(r){var n=r==null?0:r.length;return n?t(r,1):[]}return e7=e,e7}var t7,Fge;function tMe(){if(Fge)return t7;Fge=1;var t=mdt(),e=WBe(),r=$Be();function n(o){return r(e(o,void 0,t),o+"")}return t7=n,t7}var r7,Nge;function ydt(){if(Nge)return r7;Nge=1;var t=gdt(),e=tMe(),r=e(function(n,o){return n==null?{}:t(n,o)});return r7=r,r7}var wdt=ydt();const P8t=Dn(wdt);var rE={exports:{}};/*!
* validate.js 0.13.1
*
* (c) 2013-2019 Nicklas Ansman, 2013 Wrapp
* Validate.js may be freely distributed under the MIT license.
* For all details and documentation:
* http://validatejs.org/
*/var bdt=rE.exports,Uge;function _dt(){return Uge||(Uge=1,function(t,e){(function(r,n,o){var u=function(h,A,p){p=f.extend({},f.options,p);var g=f.runValidations(h,A,p);if(g.some(function(y){return f.isPromise(y.error)}))throw new Error("Use validate.async if you want support for promises");return u.processValidationResults(g,p)},f=u;f.extend=function(h){return[].slice.call(arguments,1).forEach(function(A){for(var p in A)h[p]=A[p]}),h},f.extend(u,{version:{major:0,minor:13,patch:1,metadata:null,toString:function(){var h=f.format("%{major}.%{minor}.%{patch}",f.version);return f.isEmpty(f.version.metadata)||(h+="+"+f.version.metadata),h}},Promise:typeof Promise<"u"?Promise:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(h,A,p){var g=[],y,_,b,C,T,B,L;(f.isDomElement(h)||f.isJqueryElement(h))&&(h=f.collectFormValues(h));for(y in A){b=f.getDeepObjectValue(h,y),C=f.result(A[y],b,h,y,p,A);for(_ in C){if(T=f.validators[_],!T)throw L=f.format("Unknown validator %{name}",{name:_}),new Error(L);B=C[_],B=f.result(B,b,h,y,p,A),B&&g.push({attribute:y,value:b,validator:_,globalOptions:p,attributes:h,options:B,error:T.call(T,b,B,y,h,p)})}}return g},processValidationResults:function(h,A){h=f.pruneEmptyErrors(h,A),h=f.expandMultipleErrors(h,A),h=f.convertErrorMessages(h,A);var p=A.format||"grouped";if(typeof f.formatters[p]=="function")h=f.formatters[p](h);else throw new Error(f.format("Unknown format %{format}",A));return f.isEmpty(h)?void 0:h},async:function(h,A,p){p=f.extend({},f.async.options,p);var g=p.wrapErrors||function(_){return _};p.cleanAttributes!==!1&&(h=f.cleanAttributes(h,A));var y=f.runValidations(h,A,p);return new f.Promise(function(_,b){f.waitForResults(y).then(function(){var C=f.processValidationResults(y,p);C?b(new g(C,p,h,A)):_(h)},function(C){b(C)})})},single:function(h,A,p){return p=f.extend({},f.single.options,p,{format:"flat",fullMessages:!1}),f({single:h},{single:A},p)},waitForResults:function(h){return h.reduce(function(A,p){return f.isPromise(p.error)?A.then(function(){return p.error.then(function(g){p.error=g||null})}):A},new f.Promise(function(A){A()}))},result:function(h){var A=[].slice.call(arguments,1);return typeof h=="function"&&(h=h.apply(null,A)),h},isNumber:function(h){return typeof h=="number"&&!isNaN(h)},isFunction:function(h){return typeof h=="function"},isInteger:function(h){return f.isNumber(h)&&h%1===0},isBoolean:function(h){return typeof h=="boolean"},isObject:function(h){return h===Object(h)},isDate:function(h){return h instanceof Date},isDefined:function(h){return h!=null},isPromise:function(h){return!!h&&f.isFunction(h.then)},isJqueryElement:function(h){return h&&f.isString(h.jquery)},isDomElement:function(h){return!h||!h.querySelectorAll||!h.querySelector?!1:f.isObject(document)&&h===document?!0:typeof HTMLElement=="object"?h instanceof HTMLElement:h&&typeof h=="object"&&h!==null&&h.nodeType===1&&typeof h.nodeName=="string"},isEmpty:function(h){var A;if(!f.isDefined(h))return!0;if(f.isFunction(h))return!1;if(f.isString(h))return f.EMPTY_STRING_REGEXP.test(h);if(f.isArray(h))return h.length===0;if(f.isDate(h))return!1;if(f.isObject(h)){for(A in h)return!1;return!0}return!1},format:f.extend(function(h,A){return f.isString(h)?h.replace(f.format.FORMAT_REGEXP,function(p,g,y){return g==="%"?"%{"+y+"}":String(A[y])}):h},{FORMAT_REGEXP:/(%?)%\{([^\}]+)\}/g}),prettify:function(h){return f.isNumber(h)?h*100%1===0?""+h:parseFloat(Math.round(h*100)/100).toFixed(2):f.isArray(h)?h.map(function(A){return f.prettify(A)}).join(", "):f.isObject(h)?f.isDefined(h.toString)?h.toString():JSON.stringify(h):(h=""+h,h.replace(/([^\s])\.([^\s])/g,"$1 $2").replace(/\\+/g,"").replace(/[_-]/g," ").replace(/([a-z])([A-Z])/g,function(A,p,g){return""+p+" "+g.toLowerCase()}).toLowerCase())},stringifyValue:function(h,A){var p=A&&A.prettify||f.prettify;return p(h)},isString:function(h){return typeof h=="string"},isArray:function(h){return{}.toString.call(h)==="[object Array]"},isHash:function(h){return f.isObject(h)&&!f.isArray(h)&&!f.isFunction(h)},contains:function(h,A){return f.isDefined(h)?f.isArray(h)?h.indexOf(A)!==-1:A in h:!1},unique:function(h){return f.isArray(h)?h.filter(function(A,p,g){return g.indexOf(A)==p}):h},forEachKeyInKeypath:function(h,A,p){if(f.isString(A)){var g="",y,_=!1;for(y=0;y<A.length;++y)switch(A[y]){case".":_?(_=!1,g+="."):(h=p(h,g,!1),g="");break;case"\\":_?(_=!1,g+="\\"):_=!0;break;default:_=!1,g+=A[y];break}return p(h,g,!0)}},getDeepObjectValue:function(h,A){if(f.isObject(h))return f.forEachKeyInKeypath(h,A,function(p,g){if(f.isObject(p))return p[g]})},collectFormValues:function(h,A){var p={},g,y,_,b,C,T;if(f.isJqueryElement(h)&&(h=h[0]),!h)return p;for(A=A||{},b=h.querySelectorAll("input[name], textarea[name]"),g=0;g<b.length;++g)if(_=b.item(g),!f.isDefined(_.getAttribute("data-ignored"))){var B=_.name.replace(/\./g,"\\\\.");T=f.sanitizeFormValue(_.value,A),_.type==="number"?T=T?+T:null:_.type==="checkbox"?_.attributes.value?_.checked||(T=p[B]||null):T=_.checked:_.type==="radio"&&(_.checked||(T=p[B]||null)),p[B]=T}for(b=h.querySelectorAll("select[name]"),g=0;g<b.length;++g)if(_=b.item(g),!f.isDefined(_.getAttribute("data-ignored"))){if(_.multiple){T=[];for(y in _.options)C=_.options[y],C&&C.selected&&T.push(f.sanitizeFormValue(C.value,A))}else{var L=typeof _.options[_.selectedIndex]<"u"?_.options[_.selectedIndex].value:"";T=f.sanitizeFormValue(L,A)}p[_.name]=T}return p},sanitizeFormValue:function(h,A){return A.trim&&f.isString(h)&&(h=h.trim()),A.nullify!==!1&&h===""?null:h},capitalize:function(h){return f.isString(h)?h[0].toUpperCase()+h.slice(1):h},pruneEmptyErrors:function(h){return h.filter(function(A){return!f.isEmpty(A.error)})},expandMultipleErrors:function(h){var A=[];return h.forEach(function(p){f.isArray(p.error)?p.error.forEach(function(g){A.push(f.extend({},p,{error:g}))}):A.push(p)}),A},convertErrorMessages:function(h,A){A=A||{};var p=[],g=A.prettify||f.prettify;return h.forEach(function(y){var _=f.result(y.error,y.value,y.attribute,y.options,y.attributes,y.globalOptions);if(!f.isString(_)){p.push(y);return}_[0]==="^"?_=_.slice(1):A.fullMessages!==!1&&(_=f.capitalize(g(y.attribute))+" "+_),_=_.replace(/\\\^/g,"^"),_=f.format(_,{value:f.stringifyValue(y.value,A)}),p.push(f.extend({},y,{error:_}))}),p},groupErrorsByAttribute:function(h){var A={};return h.forEach(function(p){var g=A[p.attribute];g?g.push(p):A[p.attribute]=[p]}),A},flattenErrorsToArray:function(h){return h.map(function(A){return A.error}).filter(function(A,p,g){return g.indexOf(A)===p})},cleanAttributes:function(h,A){function p(_,b,C){return f.isObject(_[b])?_[b]:_[b]=C?!0:{}}function g(_){var b={},C;for(C in _)_[C]&&f.forEachKeyInKeypath(b,C,p);return b}function y(_,b){if(!f.isObject(_))return _;var C=f.extend({},_),T,B;for(B in _)T=b[B],f.isObject(T)?C[B]=y(C[B],T):T||delete C[B];return C}return!f.isObject(A)||!f.isObject(h)?{}:(A=g(A),y(h,A))},exposeModule:function(h,A,p,g,y){p?(g&&g.exports&&(p=g.exports=h),p.validate=h):(A.validate=h,h.isFunction(y)&&y.amd&&y([],function(){return h}))},warn:function(h){typeof console<"u"&&console.warn&&console.warn("[validate.js] "+h)},error:function(h){typeof console<"u"&&console.error&&console.error("[validate.js] "+h)}}),u.validators={presence:function(h,A){if(A=f.extend({},this.options,A),A.allowEmpty!==!1?!f.isDefined(h):f.isEmpty(h))return A.message||this.message||"can't be blank"},length:function(h,A,p){if(f.isDefined(h)){A=f.extend({},this.options,A);var g=A.is,y=A.maximum,_=A.minimum,b=A.tokenizer||function(L){return L},C,T=[];h=b(h);var B=h.length;if(!f.isNumber(B))return A.message||this.notValid||"has an incorrect length";if(f.isNumber(g)&&B!==g&&(C=A.wrongLength||this.wrongLength||"is the wrong length (should be %{count} characters)",T.push(f.format(C,{count:g}))),f.isNumber(_)&&B<_&&(C=A.tooShort||this.tooShort||"is too short (minimum is %{count} characters)",T.push(f.format(C,{count:_}))),f.isNumber(y)&&B>y&&(C=A.tooLong||this.tooLong||"is too long (maximum is %{count} characters)",T.push(f.format(C,{count:y}))),T.length>0)return A.message||T}},numericality:function(h,A,p,g,y){if(f.isDefined(h)){A=f.extend({},this.options,A);var _=[],b,C,T={greaterThan:function(O,U){return O>U},greaterThanOrEqualTo:function(O,U){return O>=U},equalTo:function(O,U){return O===U},lessThan:function(O,U){return O<U},lessThanOrEqualTo:function(O,U){return O<=U},divisibleBy:function(O,U){return O%U===0}},B=A.prettify||y&&y.prettify||f.prettify;if(f.isString(h)&&A.strict){var L="^-?(0|[1-9]\\d*)";if(A.onlyInteger||(L+="(\\.\\d+)?"),L+="$",!new RegExp(L).test(h))return A.message||A.notValid||this.notValid||this.message||"must be a valid number"}if(A.noStrings!==!0&&f.isString(h)&&!f.isEmpty(h)&&(h=+h),!f.isNumber(h))return A.message||A.notValid||this.notValid||this.message||"is not a number";if(A.onlyInteger&&!f.isInteger(h))return A.message||A.notInteger||this.notInteger||this.message||"must be an integer";for(b in T)if(C=A[b],f.isNumber(C)&&!T[b](h,C)){var P="not"+f.capitalize(b),I=A[P]||this[P]||this.message||"must be %{type} %{count}";_.push(f.format(I,{count:C,type:B(b)}))}if(A.odd&&h%2!==1&&_.push(A.notOdd||this.notOdd||this.message||"must be odd"),A.even&&h%2!==0&&_.push(A.notEven||this.notEven||this.message||"must be even"),_.length)return A.message||_}},datetime:f.extend(function(h,A){if(!f.isFunction(this.parse)||!f.isFunction(this.format))throw new Error("Both the parse and format functions needs to be set to use the datetime/date validator");if(f.isDefined(h)){A=f.extend({},this.options,A);var p,g=[],y=A.earliest?this.parse(A.earliest,A):NaN,_=A.latest?this.parse(A.latest,A):NaN;if(h=this.parse(h,A),isNaN(h)||A.dateOnly&&h%864e5!==0)return p=A.notValid||A.message||this.notValid||"must be a valid date",f.format(p,{value:arguments[0]});if(!isNaN(y)&&h<y&&(p=A.tooEarly||A.message||this.tooEarly||"must be no earlier than %{date}",p=f.format(p,{value:this.format(h,A),date:this.format(y,A)}),g.push(p)),!isNaN(_)&&h>_&&(p=A.tooLate||A.message||this.tooLate||"must be no later than %{date}",p=f.format(p,{date:this.format(_,A),value:this.format(h,A)}),g.push(p)),g.length)return f.unique(g)}},{parse:null,format:null}),date:function(h,A){return A=f.extend({},A,{dateOnly:!0}),f.validators.datetime.call(f.validators.datetime,h,A)},format:function(h,A){(f.isString(A)||A instanceof RegExp)&&(A={pattern:A}),A=f.extend({},this.options,A);var p=A.message||this.message||"is invalid",g=A.pattern,y;if(f.isDefined(h)&&(!f.isString(h)||(f.isString(g)&&(g=new RegExp(A.pattern,A.flags)),y=g.exec(h),!y||y[0].length!=h.length)))return p},inclusion:function(h,A){if(f.isDefined(h)&&(f.isArray(A)&&(A={within:A}),A=f.extend({},this.options,A),!f.contains(A.within,h))){var p=A.message||this.message||"^%{value} is not included in the list";return f.format(p,{value:h})}},exclusion:function(h,A){if(f.isDefined(h)&&(f.isArray(A)&&(A={within:A}),A=f.extend({},this.options,A),!!f.contains(A.within,h))){var p=A.message||this.message||"^%{value} is restricted";return f.isString(A.within[h])&&(h=A.within[h]),f.format(p,{value:h})}},email:f.extend(function(h,A){A=f.extend({},this.options,A);var p=A.message||this.message||"is not a valid email";if(f.isDefined(h)&&(!f.isString(h)||!this.PATTERN.exec(h)))return p},{PATTERN:/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i}),equality:function(h,A,p,g,y){if(f.isDefined(h)){f.isString(A)&&(A={attribute:A}),A=f.extend({},this.options,A);var _=A.message||this.message||"is not equal to %{attribute}";if(f.isEmpty(A.attribute)||!f.isString(A.attribute))throw new Error("The attribute must be a non empty string");var b=f.getDeepObjectValue(g,A.attribute),C=A.comparator||function(B,L){return B===L},T=A.prettify||y&&y.prettify||f.prettify;if(!C(h,b,A,p,g))return f.format(_,{attribute:T(A.attribute)})}},url:function(h,A){if(f.isDefined(h)){A=f.extend({},this.options,A);var p=A.message||this.message||"is not a valid url",g=A.schemes||this.schemes||["http","https"],y=A.allowLocal||this.allowLocal||!1,_=A.allowDataUrl||this.allowDataUrl||!1;if(!f.isString(h))return p;var b="^(?:(?:"+g.join("|")+")://)(?:\\S+(?::\\S*)?@)?(?:",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))";if(y?C+="?":b+="(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})",b+="(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*"+C+")(?::\\d{2,5})?(?:[/?#]\\S*)?$",_){var T="\\w+\\/[-+.\\w]+(?:;[\\w=]+)*",B="[A-Za-z0-9-_.!~\\*'();\\/?:@&=+$,%]*",L="data:(?:"+T+")?(?:;base64)?,"+B;b="(?:"+b+")|(?:^"+L+"$)"}var P=new RegExp(b,"i");if(!P.exec(h))return p}},type:f.extend(function(h,A,p,g,y){if(f.isString(A)&&(A={type:A}),!!f.isDefined(h)){var _=f.extend({},this.options,A),b=_.type;if(!f.isDefined(b))throw new Error("No type was specified");var C;if(f.isFunction(b)?C=b:C=this.types[b],!f.isFunction(C))throw new Error("validate.validators.type.types."+b+" must be a function.");if(!C(h,_,p,g,y)){var T=A.message||this.messages[b]||this.message||_.message||(f.isFunction(b)?"must be of the correct type":"must be of type %{type}");return f.isFunction(T)&&(T=T(h,A,p,g,y)),f.format(T,{attribute:f.prettify(p),type:b})}}},{types:{object:function(h){return f.isObject(h)&&!f.isArray(h)},array:f.isArray,integer:f.isInteger,number:f.isNumber,string:f.isString,date:f.isDate,boolean:f.isBoolean},messages:{}})},u.formatters={detailed:function(h){return h},flat:f.flattenErrorsToArray,grouped:function(h){var A;h=f.groupErrorsByAttribute(h);for(A in h)h[A]=f.flattenErrorsToArray(h[A]);return h},constraint:function(h){var A;h=f.groupErrorsByAttribute(h);for(A in h)h[A]=h[A].map(function(p){return p.validator}).sort();return h}},u.exposeModule(u,this,r,n,o)}).call(bdt,e,t,null)}(rE,rE.exports)),rE.exports}var n7,Hge;function rMe(){if(Hge)return n7;Hge=1;function t(e,r){for(var n=-1,o=e==null?0:e.length;++n<o&&r(e[n],n,e)!==!1;);return e}return n7=t,n7}var i7,Qge;function Sdt(){if(Qge)return i7;Qge=1;var t=$S(),e=hw();function r(n,o){return n&&t(o,e(o),n)}return i7=r,i7}var a7,Vge;function xdt(){if(Vge)return a7;Vge=1;var t=$S(),e=rB();function r(n,o){return n&&t(o,e(o),n)}return a7=r,a7}var o7,zge;function Cdt(){if(zge)return o7;zge=1;var t=$S(),e=WY();function r(n,o){return t(n,e(n),o)}return o7=r,o7}var s7,Gge;function Tdt(){if(Gge)return s7;Gge=1;var t=$S(),e=kBe();function r(n,o){return t(n,e(n),o)}return s7=r,s7}var l7,jge;function Edt(){if(jge)return l7;jge=1;var t=Object.prototype,e=t.hasOwnProperty;function r(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&e.call(n,"index")&&(u.index=n.index,u.input=n.input),u}return l7=r,l7}var u7,qge;function Bdt(){if(qge)return u7;qge=1;var t=ZY();function e(r,n){var o=n?t(r.buffer):r.buffer;return new r.constructor(o,r.byteOffset,r.byteLength)}return u7=e,u7}var c7,Wge;function Idt(){if(Wge)return c7;Wge=1;var t=/\w*$/;function e(r){var n=new r.constructor(r.source,t.exec(r));return n.lastIndex=r.lastIndex,n}return c7=e,c7}var f7,$ge;function Ldt(){if($ge)return f7;$ge=1;var t=zS(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;function n(o){return r?Object(r.call(o)):{}}return f7=n,f7}var h7,Kge;function Mdt(){if(Kge)return h7;Kge=1;var t=ZY(),e=Bdt(),r=Idt(),n=Ldt(),o=HBe(),u="[object Boolean]",f="[object Date]",h="[object Map]",A="[object Number]",p="[object RegExp]",g="[object Set]",y="[object String]",_="[object Symbol]",b="[object ArrayBuffer]",C="[object DataView]",T="[object Float32Array]",B="[object Float64Array]",L="[object Int8Array]",P="[object Int16Array]",I="[object Int32Array]",O="[object Uint8Array]",U="[object Uint8ClampedArray]",N="[object Uint16Array]",H="[object Uint32Array]";function z(G,j,q){var X=G.constructor;switch(j){case b:return t(G);case u:case f:return new X(+G);case C:return e(G,q);case T:case B:case L:case P:case I:case O:case U:case N:case H:return o(G,q);case h:return new X;case A:case y:return new X(G);case p:return r(G);case g:return new X;case _:return n(G)}}return h7=z,h7}var d7,Yge;function Ddt(){if(Yge)return d7;Yge=1;var t=X2(),e=Oh(),r="[object Map]";function n(o){return e(o)&&t(o)==r}return d7=n,d7}var A7,Xge;function Rdt(){if(Xge)return A7;Xge=1;var t=Ddt(),e=zY(),r=GY(),n=r&&r.isMap,o=n?e(n):t;return A7=o,A7}var v7,Zge;function Pdt(){if(Zge)return v7;Zge=1;var t=X2(),e=Oh(),r="[object Set]";function n(o){return e(o)&&t(o)==r}return v7=n,v7}var p7,Jge;function Odt(){if(Jge)return p7;Jge=1;var t=Pdt(),e=zY(),r=GY(),n=r&&r.isSet,o=n?e(n):t;return p7=o,p7}var g7,eme;function nMe(){if(eme)return g7;eme=1;var t=PO(),e=rMe(),r=YY(),n=Sdt(),o=xdt(),u=UBe(),f=QBe(),h=Cdt(),A=Tdt(),p=LBe(),g=XY(),y=X2(),_=Edt(),b=Mdt(),C=zBe(),T=th(),B=WS(),L=Rdt(),P=vf(),I=Odt(),O=hw(),U=rB(),N=1,H=2,z=4,G="[object Arguments]",j="[object Array]",q="[object Boolean]",X="[object Date]",Y="[object Error]",te="[object Function]",K="[object GeneratorFunction]",ce="[object Map]",ae="[object Number]",le="[object Object]",pe="[object RegExp]",ie="[object Set]",he="[object String]",re="[object Symbol]",oe="[object WeakMap]",ye="[object ArrayBuffer]",_e="[object DataView]",Ce="[object Float32Array]",ne="[object Float64Array]",xe="[object Int8Array]",De="[object Int16Array]",ze="[object Int32Array]",Ye="[object Uint8Array]",Ne="[object Uint8ClampedArray]",yt="[object Uint16Array]",Ue="[object Uint32Array]",ue={};ue[G]=ue[j]=ue[ye]=ue[_e]=ue[q]=ue[X]=ue[Ce]=ue[ne]=ue[xe]=ue[De]=ue[ze]=ue[ce]=ue[ae]=ue[le]=ue[pe]=ue[ie]=ue[he]=ue[re]=ue[Ye]=ue[Ne]=ue[yt]=ue[Ue]=!0,ue[Y]=ue[te]=ue[oe]=!1;function Qe(qe,Re,Me,Ge,Pe,ke){var Be,$e=Re&N,nt=Re&H,ft=Re&z;if(Me&&(Be=Pe?Me(qe,Ge,Pe,ke):Me(qe)),Be!==void 0)return Be;if(!P(qe))return qe;var Mt=T(qe);if(Mt){if(Be=_(qe),!$e)return f(qe,Be)}else{var Rt=y(qe),Bt=Rt==te||Rt==K;if(B(qe))return u(qe,$e);if(Rt==le||Rt==G||Bt&&!Pe){if(Be=nt||Bt?{}:C(qe),!$e)return nt?A(qe,o(Be,qe)):h(qe,n(Be,qe))}else{if(!ue[Rt])return Pe?qe:{};Be=b(qe,Rt,$e)}}ke||(ke=new t);var It=ke.get(qe);if(It)return It;ke.set(qe,Be),I(qe)?qe.forEach(function(lr){Be.add(Qe(lr,Re,Me,lr,qe,ke))}):L(qe)&&qe.forEach(function(lr,_t){Be.set(_t,Qe(lr,Re,Me,_t,qe,ke))});var qt=ft?nt?g:p:nt?U:O,fr=Mt?void 0:qt(qe);return e(fr||qe,function(lr,_t){fr&&(_t=lr,lr=qe[_t]),r(Be,_t,Qe(lr,Re,Me,_t,qe,ke))}),Be}return g7=Qe,g7}var m7,tme;function kdt(){if(tme)return m7;tme=1;var t=nMe(),e=1,r=4;function n(o){return t(o,e|r)}return m7=n,m7}var Fdt=kdt();const O8t=Dn(Fdt);var y7,rme;function Ndt(){if(rme)return y7;rme=1;var t=LO();function e(r,n){return t(n,function(o){return r[o]})}return y7=e,y7}var w7,nme;function Udt(){if(nme)return w7;nme=1;var t=Ndt(),e=hw();function r(n){return n==null?[]:t(n,e(n))}return w7=r,w7}var b7,ime;function Hdt(){if(ime)return b7;ime=1;var t=kLe(),e=fw(),r=_Be(),n=$Le(),o=Udt(),u=Math.max;function f(h,A,p,g){h=e(h)?h:o(h),p=p&&!g?n(p):0;var y=h.length;return p<0&&(p=u(y+p,0)),r(h)?p<=y&&h.indexOf(A,p)>-1:!!y&&t(h,A,p)>-1}return b7=f,b7}var Qdt=Hdt();const k8t=Dn(Qdt);var _7,ame;function Vdt(){if(ame)return _7;ame=1;var t=$Y();function e(r,n){return t(r,n)}return _7=e,_7}var zdt=Vdt();const F8t=Dn(zdt);var S7,ome;function Gdt(){if(ome)return S7;ome=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return S7=t,S7}var x7,sme;function jdt(){if(sme)return x7;sme=1;var t=MO(),e=JLe();function r(n,o){return o.length<2?n:t(n,e(o,0,-1))}return x7=r,x7}var C7,lme;function iMe(){if(lme)return C7;lme=1;var t=jS(),e=Gdt(),r=jdt(),n=qS();function o(u,f){return f=t(f,u),u=r(u,f),u==null||delete u[n(e(f))]}return C7=o,C7}var T7,ume;function qdt(){if(ume)return T7;ume=1;var t=iMe(),e=eB(),r=Array.prototype,n=r.splice;function o(u,f){for(var h=u?f.length:0,A=h-1;h--;){var p=f[h];if(h==A||p!==g){var g=p;e(p)?n.call(u,p,1):t(u,p)}}return u}return T7=o,T7}var E7,cme;function Wdt(){if(cme)return E7;cme=1;var t=tB(),e=qdt();function r(n,o){var u=[];if(!(n&&n.length))return u;var f=-1,h=[],A=n.length;for(o=t(o,3);++f<A;){var p=n[f];o(p,f,n)&&(u.push(p),h.push(f))}return e(n,h),u}return E7=r,E7}var $dt=Wdt();const N8t=Dn($dt);var B7,fme;function Kdt(){if(fme)return B7;fme=1;var t=jd(),e=function(){return t.Date.now()};return B7=e,B7}var I7,hme;function aMe(){if(hme)return I7;hme=1;var t=vf(),e=Kdt(),r=qLe(),n="Expected a function",o=Math.max,u=Math.min;function f(h,A,p){var g,y,_,b,C,T,B=0,L=!1,P=!1,I=!0;if(typeof h!="function")throw new TypeError(n);A=r(A)||0,t(p)&&(L=!!p.leading,P="maxWait"in p,_=P?o(r(p.maxWait)||0,A):_,I="trailing"in p?!!p.trailing:I);function O(Y){var te=g,K=y;return g=y=void 0,B=Y,b=h.apply(K,te),b}function U(Y){return B=Y,C=setTimeout(z,A),L?O(Y):b}function N(Y){var te=Y-T,K=Y-B,ce=A-te;return P?u(ce,_-K):ce}function H(Y){var te=Y-T,K=Y-B;return T===void 0||te>=A||te<0||P&&K>=_}function z(){var Y=e();if(H(Y))return G(Y);C=setTimeout(z,N(Y))}function G(Y){return C=void 0,I&&g?O(Y):(g=y=void 0,b)}function j(){C!==void 0&&clearTimeout(C),B=0,g=T=y=C=void 0}function q(){return C===void 0?b:G(e())}function X(){var Y=e(),te=H(Y);if(g=arguments,y=this,T=Y,te){if(C===void 0)return U(T);if(P)return clearTimeout(C),C=setTimeout(z,A),O(T)}return C===void 0&&(C=setTimeout(z,A)),b}return X.cancel=j,X.flush=q,X}return I7=f,I7}var L7,dme;function Ydt(){if(dme)return L7;dme=1;var t=aMe(),e=vf(),r="Expected a function";function n(o,u,f){var h=!0,A=!0;if(typeof o!="function")throw new TypeError(r);return e(f)&&(h="leading"in f?!!f.leading:h,A="trailing"in f?!!f.trailing:A),t(o,u,{leading:h,maxWait:u,trailing:A})}return L7=n,L7}var Xdt=Ydt();const U8t=Dn(Xdt);function M7(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),n.forEach(function(o){sa(t,o,r[o])})}return t}var D7,Ame;function Zdt(){if(Ame)return D7;Ame=1;var t=function(e,r,n,o,u,f,h,A){if(!e){var p;if(r===void 0)p=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[n,o,u,f,h,A],y=0;p=new Error(r.replace(/%s/g,function(){return g[y++]})),p.name="Invariant Violation"}throw p.framesToPop=1,p}};return D7=t,D7}var Jdt=Zdt();const Z1=Dn(Jdt);var eAt=function(){function t(){KS(this,t),sa(this,"refs",{})}return YS(t,[{key:"add",value:function(r,n){this.refs[r]||(this.refs[r]=[]),this.refs[r].push(n)}},{key:"remove",value:function(r,n){var o=this.getIndex(r,n);o!==-1&&this.refs[r].splice(o,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var r=this;return this.refs[this.active.collection].find(function(n){var o=n.node;return o.sortableInfo.index==r.active.index})}},{key:"getIndex",value:function(r,n){return this.refs[r].indexOf(n)}},{key:"getOrderedRefs",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[r].sort(tAt)}}]),t}();function tAt(t,e){var r=t.node.sortableInfo.index,n=e.node.sortableInfo.index;return r-n}function oMe(t,e){return Object.keys(t).reduce(function(r,n){return e.indexOf(n)===-1&&(r[n]=t[n]),r},{})}var Jb={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},sMe=function(){if(typeof window>"u"||typeof document>"u")return"";var t=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],e=(Array.prototype.slice.call(t).join("").match(/-(moz|webkit|ms)-/)||t.OLink===""&&["","o"])[1];switch(e){case"ms":return"ms";default:return e&&e.length?e[0].toUpperCase()+e.substr(1):""}}();function RM(t,e){Object.keys(e).forEach(function(r){t.style[r]=e[r]})}function PM(t,e){t.style["".concat(sMe,"Transform")]=e==null?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function R7(t,e){t.style["".concat(sMe,"TransitionDuration")]=e==null?"":"".concat(e,"ms")}function nE(t,e){for(;t;){if(e(t))return t;t=t.parentNode}return null}function vme(t,e,r){return Math.max(t,Math.min(r,e))}function Q_(t){return t.substr(-2)==="px"?parseFloat(t):0}function rAt(t){var e=window.getComputedStyle(t);return{bottom:Q_(e.marginBottom),left:Q_(e.marginLeft),right:Q_(e.marginRight),top:Q_(e.marginTop)}}function xX(t,e){var r=e.displayName||e.name;return r?"".concat(t,"(").concat(r,")"):t}function P7(t,e){var r=t.getBoundingClientRect();return{top:r.top+e.top,left:r.left+e.left}}function fT(t){return t.touches&&t.touches.length?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.changedTouches&&t.changedTouches.length?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.pageX,y:t.pageY}}function nAt(t){return t.touches&&t.touches.length||t.changedTouches&&t.changedTouches.length}function I5(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(t){var n={left:r.left+t.offsetLeft,top:r.top+t.offsetTop};return t.parentNode===e?n:I5(t.parentNode,e,n)}}function iAt(t,e,r){return t<r&&t>e?t-1:t>r&&t<e?t+1:t}function pme(t){var e=t.lockOffset,r=t.width,n=t.height,o=e,u=e,f="px";if(typeof e=="string"){var h=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);Z1(h!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),o=parseFloat(e),u=parseFloat(e),f=h[1]}return Z1(isFinite(o)&&isFinite(u),"lockOffset value should be a finite. Given %s",e),f==="%"&&(o=o*r/100,u=u*n/100),{x:o,y:u}}function aAt(t){var e=t.height,r=t.width,n=t.lockOffset,o=Array.isArray(n)?n:[n,n];Z1(o.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",n);var u=Th(o,2),f=u[0],h=u[1];return[pme({height:e,lockOffset:f,width:r}),pme({height:e,lockOffset:h,width:r})]}function oAt(t){var e=window.getComputedStyle(t),r=/(auto|scroll)/,n=["overflow","overflowX","overflowY"];return n.find(function(o){return r.test(e[o])})}function lMe(t){return t instanceof HTMLElement?oAt(t)?t:lMe(t.parentNode):null}function sAt(t){var e=window.getComputedStyle(t);return e.display==="grid"?{x:Q_(e.gridColumnGap),y:Q_(e.gridRowGap)}:{x:0,y:0}}var H0={ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},_1={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function lAt(t){var e="input, textarea, select, canvas, [contenteditable]",r=t.querySelectorAll(e),n=t.cloneNode(!0),o=NO(n.querySelectorAll(e));return o.forEach(function(u,f){if(u.type!=="file"&&(u.value=r[f].value),u.type==="radio"&&u.name&&(u.name="__sortableClone__".concat(u.name)),u.tagName===_1.Canvas&&r[f].width>0&&r[f].height>0){var h=u.getContext("2d");h.drawImage(r[f],0,0)}}),n}function H8t(t){var e,r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return r=e=function(o){kO(u,o);function u(){var f,h;KS(this,u);for(var A=arguments.length,p=new Array(A),g=0;g<A;g++)p[g]=arguments[g];return h=FO(this,(f=q1(u)).call.apply(f,[this].concat(p))),sa(Vi(Vi(h)),"wrappedInstance",Ae.createRef()),h}return YS(u,[{key:"componentDidMount",value:function(){var h=uu.findDOMNode(this);h.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return Z1(n.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var h=n.withRef?this.wrappedInstance:null;return Ae.createElement(t,On({ref:h},this.props))}}]),u}(Ae.Component),sa(e,"displayName",xX("sortableHandle",t)),r}function gme(t){return t.sortableHandle!=null}var uAt=function(){function t(e,r){KS(this,t),this.container=e,this.onScrollCallback=r}return YS(t,[{key:"clear",value:function(){this.interval!=null&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(r){var n=this,o=r.translate,u=r.minTranslate,f=r.maxTranslate,h=r.width,A=r.height,p={x:0,y:0},g={x:1,y:1},y={x:10,y:10},_=this.container,b=_.scrollTop,C=_.scrollLeft,T=_.scrollHeight,B=_.scrollWidth,L=_.clientHeight,P=_.clientWidth,I=b===0,O=T-b-L===0,U=C===0,N=B-C-P===0;o.y>=f.y-A/2&&!O?(p.y=1,g.y=y.y*Math.abs((f.y-A/2-o.y)/A)):o.x>=f.x-h/2&&!N?(p.x=1,g.x=y.x*Math.abs((f.x-h/2-o.x)/h)):o.y<=u.y+A/2&&!I?(p.y=-1,g.y=y.y*Math.abs((o.y-A/2-u.y)/A)):o.x<=u.x+h/2&&!U&&(p.x=-1,g.x=y.x*Math.abs((o.x-h/2-u.x)/h)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(p.x!==0||p.y!==0)&&(this.interval=setInterval(function(){n.isAutoScrolling=!0;var H={left:g.x*p.x,top:g.y*p.y};n.container.scrollTop+=H.top,n.container.scrollLeft+=H.left,n.onScrollCallback(H)},5))}}]),t}();function cAt(t){var e=t.node;return{height:e.offsetHeight,width:e.offsetWidth}}function fAt(t){var e=[_1.Input,_1.Textarea,_1.Select,_1.Option,_1.Button];return!!(e.indexOf(t.target.tagName)!==-1||nE(t.target,function(r){return r.contentEditable==="true"}))}var uMe={axis:Er.oneOf(["x","y","xy"]),contentWindow:Er.any,disableAutoscroll:Er.bool,distance:Er.number,getContainer:Er.func,getHelperDimensions:Er.func,helperClass:Er.string,helperContainer:Er.oneOfType([Er.func,typeof HTMLElement>"u"?Er.any:Er.instanceOf(HTMLElement)]),hideSortableGhost:Er.bool,keyboardSortingTransitionDuration:Er.number,lockAxis:Er.string,lockOffset:Er.oneOfType([Er.number,Er.string,Er.arrayOf(Er.oneOfType([Er.number,Er.string]))]),lockToContainerEdges:Er.bool,onSortEnd:Er.func,onSortMove:Er.func,onSortOver:Er.func,onSortStart:Er.func,pressDelay:Er.number,pressThreshold:Er.number,keyCodes:Er.shape({lift:Er.arrayOf(Er.number),drop:Er.arrayOf(Er.number),cancel:Er.arrayOf(Er.number),up:Er.arrayOf(Er.number),down:Er.arrayOf(Er.number)}),shouldCancelStart:Er.func,transitionDuration:Er.number,updateBeforeSortStart:Er.func,useDragHandle:Er.bool,useWindowAsScrollContainer:Er.bool},cMe={lift:[H0.SPACE],drop:[H0.SPACE],cancel:[H0.ESC],up:[H0.UP,H0.LEFT],down:[H0.DOWN,H0.RIGHT]},hAt={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:cAt,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:cMe,shouldCancelStart:fAt,transitionDuration:300,useWindowAsScrollContainer:!1},dAt=Object.keys(uMe);function AAt(t){Z1(!(t.distance&&t.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function vAt(t,e){try{var r=t()}catch(n){return e(!0,n)}return r&&r.then?r.then(e.bind(null,!1),e.bind(null,!0)):e(!1,value)}var fMe=Ae.createContext({manager:{}});function Q8t(t){var e,r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return r=e=function(o){kO(u,o);function u(f){var h;KS(this,u),h=FO(this,q1(u).call(this,f)),sa(Vi(Vi(h)),"state",{}),sa(Vi(Vi(h)),"handleStart",function(p){var g=h.props,y=g.distance,_=g.shouldCancelStart;if(!(p.button===2||_(p))){h.touched=!0,h.position=fT(p);var b=nE(p.target,function(I){return I.sortableInfo!=null});if(b&&b.sortableInfo&&h.nodeIsChild(b)&&!h.state.sorting){var C=h.props.useDragHandle,T=b.sortableInfo,B=T.index,L=T.collection,P=T.disabled;if(P||C&&!nE(p.target,gme))return;h.manager.active={collection:L,index:B},!nAt(p)&&p.target.tagName===_1.Anchor&&p.preventDefault(),y||(h.props.pressDelay===0?h.handlePress(p):h.pressTimer=setTimeout(function(){return h.handlePress(p)},h.props.pressDelay))}}}),sa(Vi(Vi(h)),"nodeIsChild",function(p){return p.sortableInfo.manager===h.manager}),sa(Vi(Vi(h)),"handleMove",function(p){var g=h.props,y=g.distance,_=g.pressThreshold;if(!h.state.sorting&&h.touched&&!h._awaitingUpdateBeforeSortStart){var b=fT(p),C={x:h.position.x-b.x,y:h.position.y-b.y},T=Math.abs(C.x)+Math.abs(C.y);h.delta=C,!y&&(!_||T>=_)?(clearTimeout(h.cancelTimer),h.cancelTimer=setTimeout(h.cancel,0)):y&&T>=y&&h.manager.isActive()&&h.handlePress(p)}}),sa(Vi(Vi(h)),"handleEnd",function(){h.touched=!1,h.cancel()}),sa(Vi(Vi(h)),"cancel",function(){var p=h.props.distance,g=h.state.sorting;g||(p||clearTimeout(h.pressTimer),h.manager.active=null)}),sa(Vi(Vi(h)),"handlePress",function(p){try{var g=h.manager.getActive(),y=function(){if(g){var _=function(){var j=U.sortableInfo.index,q=rAt(U),X=sAt(h.container),Y=h.scrollContainer.getBoundingClientRect(),te=T({index:j,node:U,collection:N});if(h.node=U,h.margin=q,h.gridGap=X,h.width=te.width,h.height=te.height,h.marginOffset={x:h.margin.left+h.margin.right+h.gridGap.x,y:Math.max(h.margin.top,h.margin.bottom,h.gridGap.y)},h.boundingClientRect=U.getBoundingClientRect(),h.containerBoundingRect=Y,h.index=j,h.newIndex=j,h.axis={x:C.indexOf("x")>=0,y:C.indexOf("y")>=0},h.offsetEdge=I5(U,h.container),H?h.initialOffset=fT(M7({},p,{pageX:h.boundingClientRect.left,pageY:h.boundingClientRect.top})):h.initialOffset=fT(p),h.initialScroll={left:h.scrollContainer.scrollLeft,top:h.scrollContainer.scrollTop},h.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},h.helper=h.helperContainer.appendChild(lAt(U)),RM(h.helper,{boxSizing:"border-box",height:"".concat(h.height,"px"),left:"".concat(h.boundingClientRect.left-q.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(h.boundingClientRect.top-q.top,"px"),width:"".concat(h.width,"px")}),H&&h.helper.focus(),L&&(h.sortableGhost=U,RM(U,{opacity:0,visibility:"hidden"})),h.minTranslate={},h.maxTranslate={},H){var K=O?{top:0,left:0,width:h.contentWindow.innerWidth,height:h.contentWindow.innerHeight}:h.containerBoundingRect,ce=K.top,ae=K.left,le=K.width,pe=K.height,ie=ce+pe,he=ae+le;h.axis.x&&(h.minTranslate.x=ae-h.boundingClientRect.left,h.maxTranslate.x=he-(h.boundingClientRect.left+h.width)),h.axis.y&&(h.minTranslate.y=ce-h.boundingClientRect.top,h.maxTranslate.y=ie-(h.boundingClientRect.top+h.height))}else h.axis.x&&(h.minTranslate.x=(O?0:Y.left)-h.boundingClientRect.left-h.width/2,h.maxTranslate.x=(O?h.contentWindow.innerWidth:Y.left+Y.width)-h.boundingClientRect.left-h.width/2),h.axis.y&&(h.minTranslate.y=(O?0:Y.top)-h.boundingClientRect.top-h.height/2,h.maxTranslate.y=(O?h.contentWindow.innerHeight:Y.top+Y.height)-h.boundingClientRect.top-h.height/2);B&&B.split(" ").forEach(function(re){return h.helper.classList.add(re)}),h.listenerNode=p.touches?p.target:h.contentWindow,H?(h.listenerNode.addEventListener("wheel",h.handleKeyEnd,!0),h.listenerNode.addEventListener("mousedown",h.handleKeyEnd,!0),h.listenerNode.addEventListener("keydown",h.handleKeyDown)):(Jb.move.forEach(function(re){return h.listenerNode.addEventListener(re,h.handleSortMove,!1)}),Jb.end.forEach(function(re){return h.listenerNode.addEventListener(re,h.handleSortEnd,!1)})),h.setState({sorting:!0,sortingIndex:j}),I&&I({node:U,index:j,collection:N,isKeySorting:H,nodes:h.manager.getOrderedRefs(),helper:h.helper},p),H&&h.keyMove(0)},b=h.props,C=b.axis,T=b.getHelperDimensions,B=b.helperClass,L=b.hideSortableGhost,P=b.updateBeforeSortStart,I=b.onSortStart,O=b.useWindowAsScrollContainer,U=g.node,N=g.collection,H=h.manager.isKeySorting,z=function(){if(typeof P=="function"){h._awaitingUpdateBeforeSortStart=!0;var G=vAt(function(){var j=U.sortableInfo.index;return Promise.resolve(P({collection:N,index:j,node:U,isKeySorting:H},p)).then(function(){})},function(j,q){if(h._awaitingUpdateBeforeSortStart=!1,j)throw q;return q});if(G&&G.then)return G.then(function(){})}}();return z&&z.then?z.then(_):_(z)}}();return Promise.resolve(y&&y.then?y.then(function(){}):void 0)}catch(_){return Promise.reject(_)}}),sa(Vi(Vi(h)),"handleSortMove",function(p){var g=h.props.onSortMove;typeof p.preventDefault=="function"&&p.cancelable&&p.preventDefault(),h.updateHelperPosition(p),h.animateNodes(),h.autoscroll(),g&&g(p)}),sa(Vi(Vi(h)),"handleSortEnd",function(p){var g=h.props,y=g.hideSortableGhost,_=g.onSortEnd,b=h.manager,C=b.active.collection,T=b.isKeySorting,B=h.manager.getOrderedRefs();h.listenerNode&&(T?(h.listenerNode.removeEventListener("wheel",h.handleKeyEnd,!0),h.listenerNode.removeEventListener("mousedown",h.handleKeyEnd,!0),h.listenerNode.removeEventListener("keydown",h.handleKeyDown)):(Jb.move.forEach(function(U){return h.listenerNode.removeEventListener(U,h.handleSortMove)}),Jb.end.forEach(function(U){return h.listenerNode.removeEventListener(U,h.handleSortEnd)}))),h.helper.parentNode.removeChild(h.helper),y&&h.sortableGhost&&RM(h.sortableGhost,{opacity:"",visibility:""});for(var L=0,P=B.length;L<P;L++){var I=B[L],O=I.node;I.edgeOffset=null,I.boundingClientRect=null,PM(O,null),R7(O,null),I.translate=null}h.autoScroller.clear(),h.manager.active=null,h.manager.isKeySorting=!1,h.setState({sorting:!1,sortingIndex:null}),typeof _=="function"&&_({collection:C,newIndex:h.newIndex,oldIndex:h.index,isKeySorting:T,nodes:B},p),h.touched=!1}),sa(Vi(Vi(h)),"autoscroll",function(){var p=h.props.disableAutoscroll,g=h.manager.isKeySorting;if(p){h.autoScroller.clear();return}if(g){var y=M7({},h.translate),_=0,b=0;h.axis.x&&(y.x=Math.min(h.maxTranslate.x,Math.max(h.minTranslate.x,h.translate.x)),_=h.translate.x-y.x),h.axis.y&&(y.y=Math.min(h.maxTranslate.y,Math.max(h.minTranslate.y,h.translate.y)),b=h.translate.y-y.y),h.translate=y,PM(h.helper,h.translate),h.scrollContainer.scrollLeft+=_,h.scrollContainer.scrollTop+=b;return}h.autoScroller.update({height:h.height,maxTranslate:h.maxTranslate,minTranslate:h.minTranslate,translate:h.translate,width:h.width})}),sa(Vi(Vi(h)),"onAutoScroll",function(p){h.translate.x+=p.left,h.translate.y+=p.top,h.animateNodes()}),sa(Vi(Vi(h)),"handleKeyDown",function(p){var g=p.keyCode,y=h.props,_=y.shouldCancelStart,b=y.keyCodes,C=b===void 0?{}:b,T=M7({},cMe,C);h.manager.active&&!h.manager.isKeySorting||!h.manager.active&&(!T.lift.includes(g)||_(p)||!h.isValidSortingTarget(p))||(p.stopPropagation(),p.preventDefault(),T.lift.includes(g)&&!h.manager.active?h.keyLift(p):T.drop.includes(g)&&h.manager.active?h.keyDrop(p):T.cancel.includes(g)?(h.newIndex=h.manager.active.index,h.keyDrop(p)):T.up.includes(g)?h.keyMove(-1):T.down.includes(g)&&h.keyMove(1))}),sa(Vi(Vi(h)),"keyLift",function(p){var g=p.target,y=nE(g,function(T){return T.sortableInfo!=null}),_=y.sortableInfo,b=_.index,C=_.collection;h.initialFocusedNode=g,h.manager.isKeySorting=!0,h.manager.active={index:b,collection:C},h.handlePress(p)}),sa(Vi(Vi(h)),"keyMove",function(p){var g=h.manager.getOrderedRefs(),y=g[g.length-1].node.sortableInfo.index,_=h.newIndex+p,b=h.newIndex;if(!(_<0||_>y)){h.prevIndex=b,h.newIndex=_;var C=iAt(h.newIndex,h.prevIndex,h.index),T=g.find(function(H){var z=H.node;return z.sortableInfo.index===C}),B=T.node,L=h.containerScrollDelta,P=T.boundingClientRect||P7(B,L),I=T.translate||{x:0,y:0},O={top:P.top+I.y-L.top,left:P.left+I.x-L.left},U=b<_,N={x:U&&h.axis.x?B.offsetWidth-h.width:0,y:U&&h.axis.y?B.offsetHeight-h.height:0};h.handleSortMove({pageX:O.left+N.x,pageY:O.top+N.y,ignoreTransition:p===0})}}),sa(Vi(Vi(h)),"keyDrop",function(p){h.handleSortEnd(p),h.initialFocusedNode&&h.initialFocusedNode.focus()}),sa(Vi(Vi(h)),"handleKeyEnd",function(p){h.manager.active&&h.keyDrop(p)}),sa(Vi(Vi(h)),"isValidSortingTarget",function(p){var g=h.props.useDragHandle,y=p.target,_=nE(y,function(b){return b.sortableInfo!=null});return _&&_.sortableInfo&&!_.sortableInfo.disabled&&(g?gme(y):y.sortableInfo)});var A=new eAt;return AAt(f),h.manager=A,h.wrappedInstance=Ae.createRef(),h.sortableContextValue={manager:A},h.events={end:h.handleEnd,move:h.handleMove,start:h.handleStart},h}return YS(u,[{key:"componentDidMount",value:function(){var h=this,A=this.props.useWindowAsScrollContainer,p=this.getContainer();Promise.resolve(p).then(function(g){h.container=g,h.document=h.container.ownerDocument||document;var y=h.props.contentWindow||h.document.defaultView||window;h.contentWindow=typeof y=="function"?y():y,h.scrollContainer=A?h.document.scrollingElement||h.document.documentElement:lMe(h.container)||h.container,h.autoScroller=new uAt(h.scrollContainer,h.onAutoScroll),Object.keys(h.events).forEach(function(_){return Jb[_].forEach(function(b){return h.container.addEventListener(b,h.events[_],!1)})}),h.container.addEventListener("keydown",h.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var h=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(A){return Jb[A].forEach(function(p){return h.container.removeEventListener(p,h.events[A])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(h){var A=this.props,p=A.lockAxis,g=A.lockOffset,y=A.lockToContainerEdges,_=A.transitionDuration,b=A.keyboardSortingTransitionDuration,C=b===void 0?_:b,T=this.manager.isKeySorting,B=h.ignoreTransition,L=fT(h),P={x:L.x-this.initialOffset.x,y:L.y-this.initialOffset.y};if(P.y-=window.pageYOffset-this.initialWindowScroll.top,P.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=P,y){var I=aAt({height:this.height,lockOffset:g,width:this.width}),O=Th(I,2),U=O[0],N=O[1],H={x:this.width/2-U.x,y:this.height/2-U.y},z={x:this.width/2-N.x,y:this.height/2-N.y};P.x=vme(this.minTranslate.x+H.x,this.maxTranslate.x-z.x,P.x),P.y=vme(this.minTranslate.y+H.y,this.maxTranslate.y-z.y,P.y)}p==="x"?P.y=0:p==="y"&&(P.x=0),T&&C&&!B&&R7(this.helper,C),PM(this.helper,P)}},{key:"animateNodes",value:function(){var h=this.props,A=h.transitionDuration,p=h.hideSortableGhost,g=h.onSortOver,y=this.containerScrollDelta,_=this.windowScrollDelta,b=this.manager.getOrderedRefs(),C={left:this.offsetEdge.left+this.translate.x+y.left,top:this.offsetEdge.top+this.translate.y+y.top},T=this.manager.isKeySorting,B=this.newIndex;this.newIndex=null;for(var L=0,P=b.length;L<P;L++){var I=b[L].node,O=I.sortableInfo.index,U=I.offsetWidth,N=I.offsetHeight,H={height:this.height>N?N/2:this.height/2,width:this.width>U?U/2:this.width/2},z=T&&O>this.index&&O<=B,G=T&&O<this.index&&O>=B,j={x:0,y:0},q=b[L].edgeOffset;q||(q=I5(I,this.container),b[L].edgeOffset=q,T&&(b[L].boundingClientRect=P7(I,y)));var X=L<b.length-1&&b[L+1],Y=L>0&&b[L-1];if(X&&!X.edgeOffset&&(X.edgeOffset=I5(X.node,this.container),T&&(X.boundingClientRect=P7(X.node,y))),O===this.index){p&&(this.sortableGhost=I,RM(I,{opacity:0,visibility:"hidden"}));continue}A&&R7(I,A),this.axis.x?this.axis.y?G||O<this.index&&(C.left+_.left-H.width<=q.left&&C.top+_.top<=q.top+H.height||C.top+_.top+H.height<=q.top)?(j.x=this.width+this.marginOffset.x,q.left+j.x>this.containerBoundingRect.width-H.width&&X&&(j.x=X.edgeOffset.left-q.left,j.y=X.edgeOffset.top-q.top),this.newIndex===null&&(this.newIndex=O)):(z||O>this.index&&(C.left+_.left+H.width>=q.left&&C.top+_.top+H.height>=q.top||C.top+_.top+H.height>=q.top+N))&&(j.x=-(this.width+this.marginOffset.x),q.left+j.x<this.containerBoundingRect.left+H.width&&Y&&(j.x=Y.edgeOffset.left-q.left,j.y=Y.edgeOffset.top-q.top),this.newIndex=O):z||O>this.index&&C.left+_.left+H.width>=q.left?(j.x=-(this.width+this.marginOffset.x),this.newIndex=O):(G||O<this.index&&C.left+_.left<=q.left+H.width)&&(j.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=O)):this.axis.y&&(z||O>this.index&&C.top+_.top+H.height>=q.top?(j.y=-(this.height+this.marginOffset.y),this.newIndex=O):(G||O<this.index&&C.top+_.top<=q.top+H.height)&&(j.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=O))),PM(I,j),b[L].translate=j}this.newIndex==null&&(this.newIndex=this.index),T&&(this.newIndex=B);var te=T?this.prevIndex:B;g&&this.newIndex!==te&&g({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:te,isKeySorting:T,nodes:b,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return Z1(n.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var h=this.props.getContainer;return typeof h!="function"?uu.findDOMNode(this):h(n.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var h=n.withRef?this.wrappedInstance:null;return Ae.createElement(fMe.Provider,{value:this.sortableContextValue},Ae.createElement(t,On({ref:h},oMe(this.props,dAt))))}},{key:"helperContainer",get:function(){var h=this.props.helperContainer;return typeof h=="function"?h():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var h=this.props.useWindowAsScrollContainer;return h?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),u}(Ae.Component),sa(e,"displayName",xX("sortableList",t)),sa(e,"defaultProps",hAt),sa(e,"propTypes",uMe),r}var hMe={index:Er.number.isRequired,collection:Er.oneOfType([Er.number,Er.string]),disabled:Er.bool},pAt=Object.keys(hMe);function V8t(t){var e,r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return r=e=function(o){kO(u,o);function u(){var f,h;KS(this,u);for(var A=arguments.length,p=new Array(A),g=0;g<A;g++)p[g]=arguments[g];return h=FO(this,(f=q1(u)).call.apply(f,[this].concat(p))),sa(Vi(Vi(h)),"wrappedInstance",Ae.createRef()),h}return YS(u,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(h){this.node&&(h.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),h.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),h.collection!==this.props.collection&&(this.unregister(h.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var h=this.props,A=h.collection,p=h.disabled,g=h.index,y=uu.findDOMNode(this);y.sortableInfo={collection:A,disabled:p,index:g,manager:this.context.manager},this.node=y,this.ref={node:y},this.context.manager.add(A,this.ref)}},{key:"unregister",value:function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(h,this.ref)}},{key:"getWrappedInstance",value:function(){return Z1(n.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var h=n.withRef?this.wrappedInstance:null;return Ae.createElement(t,On({ref:h},oMe(this.props,pAt)))}}]),u}(Ae.Component),sa(e,"displayName",xX("sortableElement",t)),sa(e,"contextType",fMe),sa(e,"propTypes",hMe),sa(e,"defaultProps",{collection:0}),r}var O7,mme;function gAt(){if(mme)return O7;mme=1;var t=tB(),e=fw(),r=hw();function n(o){return function(u,f,h){var A=Object(u);if(!e(u)){var p=t(f,3);u=r(u),f=function(y){return p(A[y],y,A)}}var g=o(u,f,h);return g>-1?A[p?u[g]:g]:void 0}}return O7=n,O7}var k7,yme;function mAt(){if(yme)return k7;yme=1;var t=gAt(),e=KLe(),r=t(e);return k7=r,k7}var yAt=mAt();const z8t=Dn(yAt);var F7,wme;function wAt(){if(wme)return F7;wme=1;var t=Math.ceil,e=Math.max;function r(n,o,u,f){for(var h=-1,A=e(t((o-n)/(u||1)),0),p=Array(A);A--;)p[f?A:++h]=n,n+=u;return p}return F7=r,F7}var N7,bme;function bAt(){if(bme)return N7;bme=1;var t=wAt(),e=KBe(),r=WLe();function n(o){return function(u,f,h){return h&&typeof h!="number"&&e(u,f,h)&&(f=h=void 0),u=r(u),f===void 0?(f=u,u=0):f=r(f),h=h===void 0?u<f?1:-1:r(h),t(u,f,h,o)}}return N7=n,N7}var U7,_me;function _At(){if(_me)return U7;_me=1;var t=bAt(),e=t();return U7=e,U7}var SAt=_At();const G8t=Dn(SAt);function xAt(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return Ae.useMemo(()=>n=>{e.forEach(o=>o(n))},e)}const YO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ZS(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function CX(t){return"nodeType"in t}function pf(t){var e,r;return t?ZS(t)?t:CX(t)&&(e=(r=t.ownerDocument)==null?void 0:r.defaultView)!=null?e:window:window}function TX(t){const{Document:e}=pf(t);return t instanceof e}function sB(t){return ZS(t)?!1:t instanceof pf(t).HTMLElement}function dMe(t){return t instanceof pf(t).SVGElement}function JS(t){return t?ZS(t)?t.document:CX(t)?TX(t)?t:sB(t)||dMe(t)?t.ownerDocument:document:document:document}const zA=YO?Ae.useLayoutEffect:Ae.useEffect;function XO(t){const e=Ae.useRef(t);return zA(()=>{e.current=t}),Ae.useCallback(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.current==null?void 0:e.current(...n)},[])}function CAt(){const t=Ae.useRef(null),e=Ae.useCallback((n,o)=>{t.current=setInterval(n,o)},[]),r=Ae.useCallback(()=>{t.current!==null&&(clearInterval(t.current),t.current=null)},[]);return[e,r]}function h2(t,e){e===void 0&&(e=[t]);const r=Ae.useRef(t);return zA(()=>{r.current!==t&&(r.current=t)},e),r}function lB(t,e){const r=Ae.useRef();return Ae.useMemo(()=>{const n=t(r.current);return r.current=n,n},[...e])}function ZR(t){const e=XO(t),r=Ae.useRef(null),n=Ae.useCallback(o=>{o!==r.current&&e?.(o,r.current),r.current=o},[]);return[r,n]}function JR(t){const e=Ae.useRef();return Ae.useEffect(()=>{e.current=t},[t]),e.current}let H7={};function uB(t,e){return Ae.useMemo(()=>{if(e)return e;const r=H7[t]==null?0:H7[t]+1;return H7[t]=r,t+"-"+r},[t,e])}function AMe(t){return function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.reduce((u,f)=>{const h=Object.entries(f);for(const[A,p]of h){const g=u[A];g!=null&&(u[A]=g+t*p)}return u},{...e})}}const iS=AMe(1),eP=AMe(-1);function TAt(t){return"clientX"in t&&"clientY"in t}function ZO(t){if(!t)return!1;const{KeyboardEvent:e}=pf(t.target);return e&&t instanceof e}function EAt(t){if(!t)return!1;const{TouchEvent:e}=pf(t.target);return e&&t instanceof e}function tP(t){if(EAt(t)){if(t.touches&&t.touches.length){const{clientX:e,clientY:r}=t.touches[0];return{x:e,y:r}}else if(t.changedTouches&&t.changedTouches.length){const{clientX:e,clientY:r}=t.changedTouches[0];return{x:e,y:r}}}return TAt(t)?{x:t.clientX,y:t.clientY}:null}const J1=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:r}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:r}=t;return"scaleX("+e+") scaleY("+r+")"}},Transform:{toString(t){if(t)return[J1.Translate.toString(t),J1.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:r,easing:n}=t;return e+" "+r+"ms "+n}}}),Sme="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function BAt(t){return t.matches(Sme)?t:t.querySelector(Sme)}const IAt={display:"none"};function LAt(t){let{id:e,value:r}=t;return Sn.createElement("div",{id:e,style:IAt},r)}function MAt(t){let{id:e,announcement:r,ariaLiveType:n="assertive"}=t;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Sn.createElement("div",{id:e,style:o,role:"status","aria-live":n,"aria-atomic":!0},r)}function DAt(){const[t,e]=Ae.useState("");return{announce:Ae.useCallback(n=>{n!=null&&e(n)},[]),announcement:t}}const vMe=Ae.createContext(null);function RAt(t){const e=Ae.useContext(vMe);Ae.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(t)},[t,e])}function PAt(){const[t]=Ae.useState(()=>new Set),e=Ae.useCallback(n=>(t.add(n),()=>t.delete(n)),[t]);return[Ae.useCallback(n=>{let{type:o,event:u}=n;t.forEach(f=>{var h;return(h=f[o])==null?void 0:h.call(f,u)})},[t]),e]}const OAt={draggable:`
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},kAt={onDragStart(t){let{active:e}=t;return"Picked up draggable item "+e.id+"."},onDragOver(t){let{active:e,over:r}=t;return r?"Draggable item "+e.id+" was moved over droppable area "+r.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(t){let{active:e,over:r}=t;return r?"Draggable item "+e.id+" was dropped over droppable area "+r.id:"Draggable item "+e.id+" was dropped."},onDragCancel(t){let{active:e}=t;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function FAt(t){let{announcements:e=kAt,container:r,hiddenTextDescribedById:n,screenReaderInstructions:o=OAt}=t;const{announce:u,announcement:f}=DAt(),h=uB("DndLiveRegion"),[A,p]=Ae.useState(!1);if(Ae.useEffect(()=>{p(!0)},[]),RAt(Ae.useMemo(()=>({onDragStart(y){let{active:_}=y;u(e.onDragStart({active:_}))},onDragMove(y){let{active:_,over:b}=y;e.onDragMove&&u(e.onDragMove({active:_,over:b}))},onDragOver(y){let{active:_,over:b}=y;u(e.onDragOver({active:_,over:b}))},onDragEnd(y){let{active:_,over:b}=y;u(e.onDragEnd({active:_,over:b}))},onDragCancel(y){let{active:_,over:b}=y;u(e.onDragCancel({active:_,over:b}))}}),[u,e])),!A)return null;const g=Sn.createElement(Sn.Fragment,null,Sn.createElement(LAt,{id:n,value:o.draggable}),Sn.createElement(MAt,{id:h,announcement:f}));return r?uu.createPortal(g,r):g}var au;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(au||(au={}));function rP(){}const GA=Object.freeze({x:0,y:0});function NAt(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function UAt(t,e){const r=tP(t);if(!r)return"0 0";const n={x:(r.x-e.left)/e.width*100,y:(r.y-e.top)/e.height*100};return n.x+"% "+n.y+"%"}function HAt(t,e){let{data:{value:r}}=t,{data:{value:n}}=e;return r-n}function QAt(t,e){let{data:{value:r}}=t,{data:{value:n}}=e;return n-r}function VAt(t,e){if(!t||t.length===0)return null;const[r]=t;return r[e]}function xme(t,e,r){return e===void 0&&(e=t.left),r===void 0&&(r=t.top),{x:e+t.width*.5,y:r+t.height*.5}}const j8t=t=>{let{collisionRect:e,droppableRects:r,droppableContainers:n}=t;const o=xme(e,e.left,e.top),u=[];for(const f of n){const{id:h}=f,A=r.get(h);if(A){const p=NAt(xme(A),o);u.push({id:h,data:{droppableContainer:f,value:p}})}}return u.sort(HAt)};function zAt(t,e){const r=Math.max(e.top,t.top),n=Math.max(e.left,t.left),o=Math.min(e.left+e.width,t.left+t.width),u=Math.min(e.top+e.height,t.top+t.height),f=o-n,h=u-r;if(n<o&&r<u){const A=e.width*e.height,p=t.width*t.height,g=f*h,y=g/(A+p-g);return Number(y.toFixed(4))}return 0}const GAt=t=>{let{collisionRect:e,droppableRects:r,droppableContainers:n}=t;const o=[];for(const u of n){const{id:f}=u,h=r.get(f);if(h){const A=zAt(h,e);A>0&&o.push({id:f,data:{droppableContainer:u,value:A}})}}return o.sort(QAt)};function jAt(t,e,r){return{...t,scaleX:e&&r?e.width/r.width:1,scaleY:e&&r?e.height/r.height:1}}function pMe(t,e){return t&&e?{x:t.left-e.left,y:t.top-e.top}:GA}function qAt(t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),u=1;u<n;u++)o[u-1]=arguments[u];return o.reduce((f,h)=>({...f,top:f.top+t*h.y,bottom:f.bottom+t*h.y,left:f.left+t*h.x,right:f.right+t*h.x}),{...r})}}const WAt=qAt(1);function gMe(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function $At(t,e,r){const n=gMe(e);if(!n)return t;const{scaleX:o,scaleY:u,x:f,y:h}=n,A=t.left-f-(1-o)*parseFloat(r),p=t.top-h-(1-u)*parseFloat(r.slice(r.indexOf(" ")+1)),g=o?t.width/o:t.width,y=u?t.height/u:t.height;return{width:g,height:y,top:p,right:A+g,bottom:p+y,left:A}}const KAt={ignoreTransform:!1};function ex(t,e){e===void 0&&(e=KAt);let r=t.getBoundingClientRect();if(e.ignoreTransform){const{transform:p,transformOrigin:g}=pf(t).getComputedStyle(t);p&&(r=$At(r,p,g))}const{top:n,left:o,width:u,height:f,bottom:h,right:A}=r;return{top:n,left:o,width:u,height:f,bottom:h,right:A}}function Cme(t){return ex(t,{ignoreTransform:!0})}function YAt(t){const e=t.innerWidth,r=t.innerHeight;return{top:0,left:0,right:e,bottom:r,width:e,height:r}}function XAt(t,e){return e===void 0&&(e=pf(t).getComputedStyle(t)),e.position==="fixed"}function ZAt(t,e){e===void 0&&(e=pf(t).getComputedStyle(t));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const u=e[o];return typeof u=="string"?r.test(u):!1})}function EX(t,e){const r=[];function n(o){if(e!=null&&r.length>=e||!o)return r;if(TX(o)&&o.scrollingElement!=null&&!r.includes(o.scrollingElement))return r.push(o.scrollingElement),r;if(!sB(o)||dMe(o)||r.includes(o))return r;const u=pf(t).getComputedStyle(o);return o!==t&&ZAt(o,u)&&r.push(o),XAt(o,u)?r:n(o.parentNode)}return t?n(t):r}function mMe(t){const[e]=EX(t,1);return e??null}function Q7(t){return!YO||!t?null:ZS(t)?t:CX(t)?TX(t)||t===JS(t).scrollingElement?window:sB(t)?t:null:null}function yMe(t){return ZS(t)?t.scrollX:t.scrollLeft}function wMe(t){return ZS(t)?t.scrollY:t.scrollTop}function zW(t){return{x:yMe(t),y:wMe(t)}}var Su;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Su||(Su={}));function bMe(t){return!YO||!t?!1:t===document.scrollingElement}function _Me(t){const e={x:0,y:0},r=bMe(t)?{height:window.innerHeight,width:window.innerWidth}:{height:t.clientHeight,width:t.clientWidth},n={x:t.scrollWidth-r.width,y:t.scrollHeight-r.height},o=t.scrollTop<=e.y,u=t.scrollLeft<=e.x,f=t.scrollTop>=n.y,h=t.scrollLeft>=n.x;return{isTop:o,isLeft:u,isBottom:f,isRight:h,maxScroll:n,minScroll:e}}const JAt={x:.2,y:.2};function evt(t,e,r,n,o){let{top:u,left:f,right:h,bottom:A}=r;n===void 0&&(n=10),o===void 0&&(o=JAt);const{isTop:p,isBottom:g,isLeft:y,isRight:_}=_Me(t),b={x:0,y:0},C={x:0,y:0},T={height:e.height*o.y,width:e.width*o.x};return!p&&u<=e.top+T.height?(b.y=Su.Backward,C.y=n*Math.abs((e.top+T.height-u)/T.height)):!g&&A>=e.bottom-T.height&&(b.y=Su.Forward,C.y=n*Math.abs((e.bottom-T.height-A)/T.height)),!_&&h>=e.right-T.width?(b.x=Su.Forward,C.x=n*Math.abs((e.right-T.width-h)/T.width)):!y&&f<=e.left+T.width&&(b.x=Su.Backward,C.x=n*Math.abs((e.left+T.width-f)/T.width)),{direction:b,speed:C}}function tvt(t){if(t===document.scrollingElement){const{innerWidth:u,innerHeight:f}=window;return{top:0,left:0,right:u,bottom:f,width:u,height:f}}const{top:e,left:r,right:n,bottom:o}=t.getBoundingClientRect();return{top:e,left:r,right:n,bottom:o,width:t.clientWidth,height:t.clientHeight}}function SMe(t){return t.reduce((e,r)=>iS(e,zW(r)),GA)}function rvt(t){return t.reduce((e,r)=>e+yMe(r),0)}function nvt(t){return t.reduce((e,r)=>e+wMe(r),0)}function xMe(t,e){if(e===void 0&&(e=ex),!t)return;const{top:r,left:n,bottom:o,right:u}=e(t);mMe(t)&&(o<=0||u<=0||r>=window.innerHeight||n>=window.innerWidth)&&t.scrollIntoView({block:"center",inline:"center"})}const ivt=[["x",["left","right"],rvt],["y",["top","bottom"],nvt]];let BX=class{constructor(e,r){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=EX(r),o=SMe(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[u,f,h]of ivt)for(const A of f)Object.defineProperty(this,A,{get:()=>{const p=h(n),g=o[u]-p;return this.rect[A]+g},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class IE{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...r)})},this.target=e}add(e,r,n){var o;(o=this.target)==null||o.addEventListener(e,r,n),this.listeners.push([e,r,n])}}function avt(t){const{EventTarget:e}=pf(t);return t instanceof e?t:JS(t)}function V7(t,e){const r=Math.abs(t.x),n=Math.abs(t.y);return typeof e=="number"?Math.sqrt(r**2+n**2)>e:"x"in e&&"y"in e?r>e.x&&n>e.y:"x"in e?r>e.x:"y"in e?n>e.y:!1}var _d;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(_d||(_d={}));function Tme(t){t.preventDefault()}function ovt(t){t.stopPropagation()}var $a;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})($a||($a={}));const CMe={start:[$a.Space,$a.Enter],cancel:[$a.Esc],end:[$a.Space,$a.Enter,$a.Tab]},svt=(t,e)=>{let{currentCoordinates:r}=e;switch(t.code){case $a.Right:return{...r,x:r.x+25};case $a.Left:return{...r,x:r.x-25};case $a.Down:return{...r,y:r.y+25};case $a.Up:return{...r,y:r.y-25}}};class TMe{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:r}}=e;this.props=e,this.listeners=new IE(JS(r)),this.windowListeners=new IE(pf(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(_d.Resize,this.handleCancel),this.windowListeners.add(_d.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(_d.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:r}=this.props,n=e.node.current;n&&xMe(n),r(GA)}handleKeyDown(e){if(ZO(e)){const{active:r,context:n,options:o}=this.props,{keyboardCodes:u=CMe,coordinateGetter:f=svt,scrollBehavior:h="smooth"}=o,{code:A}=e;if(u.end.includes(A)){this.handleEnd(e);return}if(u.cancel.includes(A)){this.handleCancel(e);return}const{collisionRect:p}=n.current,g=p?{x:p.left,y:p.top}:GA;this.referenceCoordinates||(this.referenceCoordinates=g);const y=f(e,{active:r,context:n.current,currentCoordinates:g});if(y){const _=eP(y,g),b={x:0,y:0},{scrollableAncestors:C}=n.current;for(const T of C){const B=e.code,{isTop:L,isRight:P,isLeft:I,isBottom:O,maxScroll:U,minScroll:N}=_Me(T),H=tvt(T),z={x:Math.min(B===$a.Right?H.right-H.width/2:H.right,Math.max(B===$a.Right?H.left:H.left+H.width/2,y.x)),y:Math.min(B===$a.Down?H.bottom-H.height/2:H.bottom,Math.max(B===$a.Down?H.top:H.top+H.height/2,y.y))},G=B===$a.Right&&!P||B===$a.Left&&!I,j=B===$a.Down&&!O||B===$a.Up&&!L;if(G&&z.x!==y.x){const q=T.scrollLeft+_.x,X=B===$a.Right&&q<=U.x||B===$a.Left&&q>=N.x;if(X&&!_.y){T.scrollTo({left:q,behavior:h});return}X?b.x=T.scrollLeft-q:b.x=B===$a.Right?T.scrollLeft-U.x:T.scrollLeft-N.x,b.x&&T.scrollBy({left:-b.x,behavior:h});break}else if(j&&z.y!==y.y){const q=T.scrollTop+_.y,X=B===$a.Down&&q<=U.y||B===$a.Up&&q>=N.y;if(X&&!_.x){T.scrollTo({top:q,behavior:h});return}X?b.y=T.scrollTop-q:b.y=B===$a.Down?T.scrollTop-U.y:T.scrollTop-N.y,b.y&&T.scrollBy({top:-b.y,behavior:h});break}}this.handleMove(e,iS(eP(y,this.referenceCoordinates),b))}}}handleMove(e,r){const{onMove:n}=this.props;e.preventDefault(),n(r)}handleEnd(e){const{onEnd:r}=this.props;e.preventDefault(),this.detach(),r()}handleCancel(e){const{onCancel:r}=this.props;e.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}TMe.activators=[{eventName:"onKeyDown",handler:(t,e,r)=>{let{keyboardCodes:n=CMe,onActivation:o}=e,{active:u}=r;const{code:f}=t.nativeEvent;if(n.start.includes(f)){const h=u.activatorNode.current;return h&&t.target!==h?!1:(t.preventDefault(),o?.({event:t.nativeEvent}),!0)}return!1}}];function Eme(t){return!!(t&&"distance"in t)}function Bme(t){return!!(t&&"delay"in t)}class IX{constructor(e,r,n){var o;n===void 0&&(n=avt(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=r;const{event:u}=e,{target:f}=u;this.props=e,this.events=r,this.document=JS(f),this.documentListeners=new IE(this.document),this.listeners=new IE(n),this.windowListeners=new IE(pf(f)),this.initialCoordinates=(o=tP(u))!=null?o:GA,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:r,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(_d.Resize,this.handleCancel),this.windowListeners.add(_d.DragStart,Tme),this.windowListeners.add(_d.VisibilityChange,this.handleCancel),this.windowListeners.add(_d.ContextMenu,Tme),this.documentListeners.add(_d.Keydown,this.handleKeydown),r){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Bme(r)){this.timeoutId=setTimeout(this.handleStart,r.delay),this.handlePending(r);return}if(Eme(r)){this.handlePending(r);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,r){const{active:n,onPending:o}=this.props;o(n,e,this.initialCoordinates,r)}handleStart(){const{initialCoordinates:e}=this,{onStart:r}=this.props;e&&(this.activated=!0,this.documentListeners.add(_d.Click,ovt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(_d.SelectionChange,this.removeTextSelection),r(e))}handleMove(e){var r;const{activated:n,initialCoordinates:o,props:u}=this,{onMove:f,options:{activationConstraint:h}}=u;if(!o)return;const A=(r=tP(e))!=null?r:GA,p=eP(o,A);if(!n&&h){if(Eme(h)){if(h.tolerance!=null&&V7(p,h.tolerance))return this.handleCancel();if(V7(p,h.distance))return this.handleStart()}if(Bme(h)&&V7(p,h.tolerance))return this.handleCancel();this.handlePending(h,p);return}e.cancelable&&e.preventDefault(),f(A)}handleEnd(){const{onAbort:e,onEnd:r}=this.props;this.detach(),this.activated||e(this.props.active),r()}handleCancel(){const{onAbort:e,onCancel:r}=this.props;this.detach(),this.activated||e(this.props.active),r()}handleKeydown(e){e.code===$a.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const lvt={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class EMe extends IX{constructor(e){const{event:r}=e,n=JS(r.target);super(e,lvt,n)}}EMe.activators=[{eventName:"onPointerDown",handler:(t,e)=>{let{nativeEvent:r}=t,{onActivation:n}=e;return!r.isPrimary||r.button!==0?!1:(n?.({event:r}),!0)}}];const uvt={move:{name:"mousemove"},end:{name:"mouseup"}};var GW;(function(t){t[t.RightClick=2]="RightClick"})(GW||(GW={}));class cvt extends IX{constructor(e){super(e,uvt,JS(e.event.target))}}cvt.activators=[{eventName:"onMouseDown",handler:(t,e)=>{let{nativeEvent:r}=t,{onActivation:n}=e;return r.button===GW.RightClick?!1:(n?.({event:r}),!0)}}];const z7={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class fvt extends IX{constructor(e){super(e,z7)}static setup(){return window.addEventListener(z7.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(z7.move.name,e)};function e(){}}}fvt.activators=[{eventName:"onTouchStart",handler:(t,e)=>{let{nativeEvent:r}=t,{onActivation:n}=e;const{touches:o}=r;return o.length>1?!1:(n?.({event:r}),!0)}}];var LE;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(LE||(LE={}));var nP;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(nP||(nP={}));function hvt(t){let{acceleration:e,activator:r=LE.Pointer,canScroll:n,draggingRect:o,enabled:u,interval:f=5,order:h=nP.TreeOrder,pointerCoordinates:A,scrollableAncestors:p,scrollableAncestorRects:g,delta:y,threshold:_}=t;const b=Avt({delta:y,disabled:!u}),[C,T]=CAt(),B=Ae.useRef({x:0,y:0}),L=Ae.useRef({x:0,y:0}),P=Ae.useMemo(()=>{switch(r){case LE.Pointer:return A?{top:A.y,bottom:A.y,left:A.x,right:A.x}:null;case LE.DraggableRect:return o}},[r,o,A]),I=Ae.useRef(null),O=Ae.useCallback(()=>{const N=I.current;if(!N)return;const H=B.current.x*L.current.x,z=B.current.y*L.current.y;N.scrollBy(H,z)},[]),U=Ae.useMemo(()=>h===nP.TreeOrder?[...p].reverse():p,[h,p]);Ae.useEffect(()=>{if(!u||!p.length||!P){T();return}for(const N of U){if(n?.(N)===!1)continue;const H=p.indexOf(N),z=g[H];if(!z)continue;const{direction:G,speed:j}=evt(N,z,P,e,_);for(const q of["x","y"])b[q][G[q]]||(j[q]=0,G[q]=0);if(j.x>0||j.y>0){T(),I.current=N,C(O,f),B.current=j,L.current=G;return}}B.current={x:0,y:0},L.current={x:0,y:0},T()},[e,O,n,T,u,f,JSON.stringify(P),JSON.stringify(b),C,p,U,g,JSON.stringify(_)])}const dvt={x:{[Su.Backward]:!1,[Su.Forward]:!1},y:{[Su.Backward]:!1,[Su.Forward]:!1}};function Avt(t){let{delta:e,disabled:r}=t;const n=JR(e);return lB(o=>{if(r||!n||!o)return dvt;const u={x:Math.sign(e.x-n.x),y:Math.sign(e.y-n.y)};return{x:{[Su.Backward]:o.x[Su.Backward]||u.x===-1,[Su.Forward]:o.x[Su.Forward]||u.x===1},y:{[Su.Backward]:o.y[Su.Backward]||u.y===-1,[Su.Forward]:o.y[Su.Forward]||u.y===1}}},[r,e,n])}function vvt(t,e){const r=e!=null?t.get(e):void 0,n=r?r.node.current:null;return lB(o=>{var u;return e==null?null:(u=n??o)!=null?u:null},[n,e])}function pvt(t,e){return Ae.useMemo(()=>t.reduce((r,n)=>{const{sensor:o}=n,u=o.activators.map(f=>({eventName:f.eventName,handler:e(f.handler,n)}));return[...r,...u]},[]),[t,e])}var d2;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(d2||(d2={}));var jW;(function(t){t.Optimized="optimized"})(jW||(jW={}));const Ime=new Map;function gvt(t,e){let{dragging:r,dependencies:n,config:o}=e;const[u,f]=Ae.useState(null),{frequency:h,measure:A,strategy:p}=o,g=Ae.useRef(t),y=B(),_=h2(y),b=Ae.useCallback(function(L){L===void 0&&(L=[]),!_.current&&f(P=>P===null?L:P.concat(L.filter(I=>!P.includes(I))))},[_]),C=Ae.useRef(null),T=lB(L=>{if(y&&!r)return Ime;if(!L||L===Ime||g.current!==t||u!=null){const P=new Map;for(let I of t){if(!I)continue;if(u&&u.length>0&&!u.includes(I.id)&&I.rect.current){P.set(I.id,I.rect.current);continue}const O=I.node.current,U=O?new BX(A(O),O):null;I.rect.current=U,U&&P.set(I.id,U)}return P}return L},[t,u,r,y,A]);return Ae.useEffect(()=>{g.current=t},[t]),Ae.useEffect(()=>{y||b()},[r,y]),Ae.useEffect(()=>{u&&u.length>0&&f(null)},[JSON.stringify(u)]),Ae.useEffect(()=>{y||typeof h!="number"||C.current!==null||(C.current=setTimeout(()=>{b(),C.current=null},h))},[h,y,b,...n]),{droppableRects:T,measureDroppableContainers:b,measuringScheduled:u!=null};function B(){switch(p){case d2.Always:return!1;case d2.BeforeDragging:return r;default:return!r}}}function LX(t,e){return lB(r=>t?r||(typeof e=="function"?e(t):t):null,[e,t])}function mvt(t,e){return LX(t,e)}function yvt(t){let{callback:e,disabled:r}=t;const n=XO(e),o=Ae.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:u}=window;return new u(n)},[n,r]);return Ae.useEffect(()=>()=>o?.disconnect(),[o]),o}function JO(t){let{callback:e,disabled:r}=t;const n=XO(e),o=Ae.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:u}=window;return new u(n)},[r]);return Ae.useEffect(()=>()=>o?.disconnect(),[o]),o}function wvt(t){return new BX(ex(t),t)}function Lme(t,e,r){e===void 0&&(e=wvt);const[n,o]=Ae.useState(null);function u(){o(A=>{if(!t)return null;if(t.isConnected===!1){var p;return(p=A??r)!=null?p:null}const g=e(t);return JSON.stringify(A)===JSON.stringify(g)?A:g})}const f=yvt({callback(A){if(t)for(const p of A){const{type:g,target:y}=p;if(g==="childList"&&y instanceof HTMLElement&&y.contains(t)){u();break}}}}),h=JO({callback:u});return zA(()=>{u(),t?(h?.observe(t),f?.observe(document.body,{childList:!0,subtree:!0})):(h?.disconnect(),f?.disconnect())},[t]),n}function bvt(t){const e=LX(t);return pMe(t,e)}const Mme=[];function _vt(t){const e=Ae.useRef(t),r=lB(n=>t?n&&n!==Mme&&t&&e.current&&t.parentNode===e.current.parentNode?n:EX(t):Mme,[t]);return Ae.useEffect(()=>{e.current=t},[t]),r}function Svt(t){const[e,r]=Ae.useState(null),n=Ae.useRef(t),o=Ae.useCallback(u=>{const f=Q7(u.target);f&&r(h=>h?(h.set(f,zW(f)),new Map(h)):null)},[]);return Ae.useEffect(()=>{const u=n.current;if(t!==u){f(u);const h=t.map(A=>{const p=Q7(A);return p?(p.addEventListener("scroll",o,{passive:!0}),[p,zW(p)]):null}).filter(A=>A!=null);r(h.length?new Map(h):null),n.current=t}return()=>{f(t),f(u)};function f(h){h.forEach(A=>{const p=Q7(A);p?.removeEventListener("scroll",o)})}},[o,t]),Ae.useMemo(()=>t.length?e?Array.from(e.values()).reduce((u,f)=>iS(u,f),GA):SMe(t):GA,[t,e])}function Dme(t,e){e===void 0&&(e=[]);const r=Ae.useRef(null);return Ae.useEffect(()=>{r.current=null},e),Ae.useEffect(()=>{const n=t!==GA;n&&!r.current&&(r.current=t),!n&&r.current&&(r.current=null)},[t]),r.current?eP(t,r.current):GA}function xvt(t){Ae.useEffect(()=>{if(!YO)return;const e=t.map(r=>{let{sensor:n}=r;return n.setup==null?void 0:n.setup()});return()=>{for(const r of e)r?.()}},t.map(e=>{let{sensor:r}=e;return r}))}function Cvt(t,e){return Ae.useMemo(()=>t.reduce((r,n)=>{let{eventName:o,handler:u}=n;return r[o]=f=>{u(f,e)},r},{}),[t,e])}function BMe(t){return Ae.useMemo(()=>t?YAt(t):null,[t])}const Rme=[];function Tvt(t,e){e===void 0&&(e=ex);const[r]=t,n=BMe(r?pf(r):null),[o,u]=Ae.useState(Rme);function f(){u(()=>t.length?t.map(A=>bMe(A)?n:new BX(e(A),A)):Rme)}const h=JO({callback:f});return zA(()=>{h?.disconnect(),f(),t.forEach(A=>h?.observe(A))},[t]),o}function IMe(t){if(!t)return null;if(t.children.length>1)return t;const e=t.children[0];return sB(e)?e:t}function Evt(t){let{measure:e}=t;const[r,n]=Ae.useState(null),o=Ae.useCallback(p=>{for(const{target:g}of p)if(sB(g)){n(y=>{const _=e(g);return y?{...y,width:_.width,height:_.height}:_});break}},[e]),u=JO({callback:o}),f=Ae.useCallback(p=>{const g=IMe(p);u?.disconnect(),g&&u?.observe(g),n(g?e(g):null)},[e,u]),[h,A]=ZR(f);return Ae.useMemo(()=>({nodeRef:h,rect:r,setRef:A}),[r,h,A])}const Bvt=[{sensor:EMe,options:{}},{sensor:TMe,options:{}}],Ivt={current:{}},L5={draggable:{measure:Cme},droppable:{measure:Cme,strategy:d2.WhileDragging,frequency:jW.Optimized},dragOverlay:{measure:ex}};class ME extends Map{get(e){var r;return e!=null&&(r=super.get(e))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:r}=e;return!r})}getNodeFor(e){var r,n;return(r=(n=this.get(e))==null?void 0:n.node.current)!=null?r:void 0}}const Lvt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ME,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:rP},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:L5,measureDroppableContainers:rP,windowRect:null,measuringScheduled:!1},LMe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:rP,draggableNodes:new Map,over:null,measureDroppableContainers:rP},cB=Ae.createContext(LMe),MMe=Ae.createContext(Lvt);function Mvt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ME}}}function Dvt(t,e){switch(e.type){case au.DragStart:return{...t,draggable:{...t.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case au.DragMove:return t.draggable.active==null?t:{...t,draggable:{...t.draggable,translate:{x:e.coordinates.x-t.draggable.initialCoordinates.x,y:e.coordinates.y-t.draggable.initialCoordinates.y}}};case au.DragEnd:case au.DragCancel:return{...t,draggable:{...t.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case au.RegisterDroppable:{const{element:r}=e,{id:n}=r,o=new ME(t.droppable.containers);return o.set(n,r),{...t,droppable:{...t.droppable,containers:o}}}case au.SetDroppableDisabled:{const{id:r,key:n,disabled:o}=e,u=t.droppable.containers.get(r);if(!u||n!==u.key)return t;const f=new ME(t.droppable.containers);return f.set(r,{...u,disabled:o}),{...t,droppable:{...t.droppable,containers:f}}}case au.UnregisterDroppable:{const{id:r,key:n}=e,o=t.droppable.containers.get(r);if(!o||n!==o.key)return t;const u=new ME(t.droppable.containers);return u.delete(r),{...t,droppable:{...t.droppable,containers:u}}}default:return t}}function Rvt(t){let{disabled:e}=t;const{active:r,activatorEvent:n,draggableNodes:o}=Ae.useContext(cB),u=JR(n),f=JR(r?.id);return Ae.useEffect(()=>{if(!e&&!n&&u&&f!=null){if(!ZO(u)||document.activeElement===u.target)return;const h=o.get(f);if(!h)return;const{activatorNode:A,node:p}=h;if(!A.current&&!p.current)return;requestAnimationFrame(()=>{for(const g of[A.current,p.current]){if(!g)continue;const y=BAt(g);if(y){y.focus();break}}})}},[n,e,o,f,u]),null}function DMe(t,e){let{transform:r,...n}=e;return t!=null&&t.length?t.reduce((o,u)=>u({transform:o,...n}),r):r}function Pvt(t){return Ae.useMemo(()=>({draggable:{...L5.draggable,...t?.draggable},droppable:{...L5.droppable,...t?.droppable},dragOverlay:{...L5.dragOverlay,...t?.dragOverlay}}),[t?.draggable,t?.droppable,t?.dragOverlay])}function Ovt(t){let{activeNode:e,measure:r,initialRect:n,config:o=!0}=t;const u=Ae.useRef(!1),{x:f,y:h}=typeof o=="boolean"?{x:o,y:o}:o;zA(()=>{if(!f&&!h||!e){u.current=!1;return}if(u.current||!n)return;const p=e?.node.current;if(!p||p.isConnected===!1)return;const g=r(p),y=pMe(g,n);if(f||(y.x=0),h||(y.y=0),u.current=!0,Math.abs(y.x)>0||Math.abs(y.y)>0){const _=mMe(p);_&&_.scrollBy({top:y.y,left:y.x})}},[e,f,h,n,r])}const ek=Ae.createContext({...GA,scaleX:1,scaleY:1});var jm;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(jm||(jm={}));const W8t=Ae.memo(function(e){var r,n,o,u;let{id:f,accessibility:h,autoScroll:A=!0,children:p,sensors:g=Bvt,collisionDetection:y=GAt,measuring:_,modifiers:b,...C}=e;const T=Ae.useReducer(Dvt,void 0,Mvt),[B,L]=T,[P,I]=PAt(),[O,U]=Ae.useState(jm.Uninitialized),N=O===jm.Initialized,{draggable:{active:H,nodes:z,translate:G},droppable:{containers:j}}=B,q=H!=null?z.get(H):null,X=Ae.useRef({initial:null,translated:null}),Y=Ae.useMemo(()=>{var Nr;return H!=null?{id:H,data:(Nr=q?.data)!=null?Nr:Ivt,rect:X}:null},[H,q]),te=Ae.useRef(null),[K,ce]=Ae.useState(null),[ae,le]=Ae.useState(null),pe=h2(C,Object.values(C)),ie=uB("DndDescribedBy",f),he=Ae.useMemo(()=>j.getEnabled(),[j]),re=Pvt(_),{droppableRects:oe,measureDroppableContainers:ye,measuringScheduled:_e}=gvt(he,{dragging:N,dependencies:[G.x,G.y],config:re.droppable}),Ce=vvt(z,H),ne=Ae.useMemo(()=>ae?tP(ae):null,[ae]),xe=Vn(),De=mvt(Ce,re.draggable.measure);Ovt({activeNode:H!=null?z.get(H):null,config:xe.layoutShiftCompensation,initialRect:De,measure:re.draggable.measure});const ze=Lme(Ce,re.draggable.measure,De),Ye=Lme(Ce?Ce.parentElement:null),Ne=Ae.useRef({activatorEvent:null,active:null,activeNode:Ce,collisionRect:null,collisions:null,droppableRects:oe,draggableNodes:z,draggingNode:null,draggingNodeRect:null,droppableContainers:j,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),yt=j.getNodeFor((r=Ne.current.over)==null?void 0:r.id),Ue=Evt({measure:re.dragOverlay.measure}),ue=(n=Ue.nodeRef.current)!=null?n:Ce,Qe=N?(o=Ue.rect)!=null?o:ze:null,qe=!!(Ue.nodeRef.current&&Ue.rect),Re=bvt(qe?null:ze),Me=BMe(ue?pf(ue):null),Ge=_vt(N?yt??Ce:null),Pe=Tvt(Ge),ke=DMe(b,{transform:{x:G.x-Re.x,y:G.y-Re.y,scaleX:1,scaleY:1},activatorEvent:ae,active:Y,activeNodeRect:ze,containerNodeRect:Ye,draggingNodeRect:Qe,over:Ne.current.over,overlayNodeRect:Ue.rect,scrollableAncestors:Ge,scrollableAncestorRects:Pe,windowRect:Me}),Be=ne?iS(ne,G):null,$e=Svt(Ge),nt=Dme($e),ft=Dme($e,[ze]),Mt=iS(ke,nt),Rt=Qe?WAt(Qe,ke):null,Bt=Y&&Rt?y({active:Y,collisionRect:Rt,droppableRects:oe,droppableContainers:he,pointerCoordinates:Be}):null,It=VAt(Bt,"id"),[qt,fr]=Ae.useState(null),lr=qe?ke:iS(ke,ft),_t=jAt(lr,(u=qt?.rect)!=null?u:null,ze),br=Ae.useRef(null),on=Ae.useCallback((Nr,Ht)=>{let{sensor:zr,options:kn}=Ht;if(te.current==null)return;const vt=z.get(te.current);if(!vt)return;const At=Nr.nativeEvent,Ct=new zr({active:te.current,activeNode:vt,event:At,options:kn,context:Ne,onAbort(ir){if(!z.get(ir))return;const{onDragAbort:ot}=pe.current,mt={id:ir};ot?.(mt),P({type:"onDragAbort",event:mt})},onPending(ir,et,ot,mt){if(!z.get(ir))return;const{onDragPending:nr}=pe.current,yr={id:ir,constraint:et,initialCoordinates:ot,offset:mt};nr?.(yr),P({type:"onDragPending",event:yr})},onStart(ir){const et=te.current;if(et==null)return;const ot=z.get(et);if(!ot)return;const{onDragStart:mt}=pe.current,xt={activatorEvent:At,active:{id:et,data:ot.data,rect:X}};uu.unstable_batchedUpdates(()=>{mt?.(xt),U(jm.Initializing),L({type:au.DragStart,initialCoordinates:ir,active:et}),P({type:"onDragStart",event:xt}),ce(br.current),le(At)})},onMove(ir){L({type:au.DragMove,coordinates:ir})},onEnd:Tt(au.DragEnd),onCancel:Tt(au.DragCancel)});br.current=Ct;function Tt(ir){return async function(){const{active:ot,collisions:mt,over:xt,scrollAdjustedTranslate:nr}=Ne.current;let yr=null;if(ot&&nr){const{cancelDrop:Pr}=pe.current;yr={activatorEvent:At,active:ot,collisions:mt,delta:nr,over:xt},ir===au.DragEnd&&typeof Pr=="function"&&await Promise.resolve(Pr(yr))&&(ir=au.DragCancel)}te.current=null,uu.unstable_batchedUpdates(()=>{L({type:ir}),U(jm.Uninitialized),fr(null),ce(null),le(null),br.current=null;const Pr=ir===au.DragEnd?"onDragEnd":"onDragCancel";if(yr){const pr=pe.current[Pr];pr?.(yr),P({type:Pr,event:yr})}})}}},[z]),Br=Ae.useCallback((Nr,Ht)=>(zr,kn)=>{const vt=zr.nativeEvent,At=z.get(kn);if(te.current!==null||!At||vt.dndKit||vt.defaultPrevented)return;const Ct={active:At};Nr(zr,Ht.options,Ct)===!0&&(vt.dndKit={capturedBy:Ht.sensor},te.current=kn,on(zr,Ht))},[z,on]),rn=pvt(g,Br);xvt(g),zA(()=>{ze&&O===jm.Initializing&&U(jm.Initialized)},[ze,O]),Ae.useEffect(()=>{const{onDragMove:Nr}=pe.current,{active:Ht,activatorEvent:zr,collisions:kn,over:vt}=Ne.current;if(!Ht||!zr)return;const At={active:Ht,activatorEvent:zr,collisions:kn,delta:{x:Mt.x,y:Mt.y},over:vt};uu.unstable_batchedUpdates(()=>{Nr?.(At),P({type:"onDragMove",event:At})})},[Mt.x,Mt.y]),Ae.useEffect(()=>{const{active:Nr,activatorEvent:Ht,collisions:zr,droppableContainers:kn,scrollAdjustedTranslate:vt}=Ne.current;if(!Nr||te.current==null||!Ht||!vt)return;const{onDragOver:At}=pe.current,Ct=kn.get(It),Tt=Ct&&Ct.rect.current?{id:Ct.id,rect:Ct.rect.current,data:Ct.data,disabled:Ct.disabled}:null,ir={active:Nr,activatorEvent:Ht,collisions:zr,delta:{x:vt.x,y:vt.y},over:Tt};uu.unstable_batchedUpdates(()=>{fr(Tt),At?.(ir),P({type:"onDragOver",event:ir})})},[It]),zA(()=>{Ne.current={activatorEvent:ae,active:Y,activeNode:Ce,collisionRect:Rt,collisions:Bt,droppableRects:oe,draggableNodes:z,draggingNode:ue,draggingNodeRect:Qe,droppableContainers:j,over:qt,scrollableAncestors:Ge,scrollAdjustedTranslate:Mt},X.current={initial:Qe,translated:Rt}},[Y,Ce,Bt,Rt,z,ue,Qe,oe,j,qt,Ge,Mt]),hvt({...xe,delta:G,draggingRect:Rt,pointerCoordinates:Be,scrollableAncestors:Ge,scrollableAncestorRects:Pe});const Yr=Ae.useMemo(()=>({active:Y,activeNode:Ce,activeNodeRect:ze,activatorEvent:ae,collisions:Bt,containerNodeRect:Ye,dragOverlay:Ue,draggableNodes:z,droppableContainers:j,droppableRects:oe,over:qt,measureDroppableContainers:ye,scrollableAncestors:Ge,scrollableAncestorRects:Pe,measuringConfiguration:re,measuringScheduled:_e,windowRect:Me}),[Y,Ce,ze,ae,Bt,Ye,Ue,z,j,oe,qt,ye,Ge,Pe,re,_e,Me]),cn=Ae.useMemo(()=>({activatorEvent:ae,activators:rn,active:Y,activeNodeRect:ze,ariaDescribedById:{draggable:ie},dispatch:L,draggableNodes:z,over:qt,measureDroppableContainers:ye}),[ae,rn,Y,ze,L,ie,z,qt,ye]);return Sn.createElement(vMe.Provider,{value:I},Sn.createElement(cB.Provider,{value:cn},Sn.createElement(MMe.Provider,{value:Yr},Sn.createElement(ek.Provider,{value:_t},p)),Sn.createElement(Rvt,{disabled:h?.restoreFocus===!1})),Sn.createElement(FAt,{...h,hiddenTextDescribedById:ie}));function Vn(){const Nr=K?.autoScrollEnabled===!1,Ht=typeof A=="object"?A.enabled===!1:A===!1,zr=N&&!Nr&&!Ht;return typeof A=="object"?{...A,enabled:zr}:{enabled:zr}}}),kvt=Ae.createContext(null),Pme="button",Fvt="Draggable";function Nvt(t){let{id:e,data:r,disabled:n=!1,attributes:o}=t;const u=uB(Fvt),{activators:f,activatorEvent:h,active:A,activeNodeRect:p,ariaDescribedById:g,draggableNodes:y,over:_}=Ae.useContext(cB),{role:b=Pme,roleDescription:C="draggable",tabIndex:T=0}=o??{},B=A?.id===e,L=Ae.useContext(B?ek:kvt),[P,I]=ZR(),[O,U]=ZR(),N=Cvt(f,e),H=h2(r);zA(()=>(y.set(e,{id:e,key:u,node:P,activatorNode:O,data:H}),()=>{const G=y.get(e);G&&G.key===u&&y.delete(e)}),[y,e]);const z=Ae.useMemo(()=>({role:b,tabIndex:T,"aria-disabled":n,"aria-pressed":B&&b===Pme?!0:void 0,"aria-roledescription":C,"aria-describedby":g.draggable}),[n,b,T,B,C,g.draggable]);return{active:A,activatorEvent:h,activeNodeRect:p,attributes:z,isDragging:B,listeners:n?void 0:N,node:P,over:_,setNodeRef:I,setActivatorNodeRef:U,transform:L}}function RMe(){return Ae.useContext(MMe)}const Uvt="Droppable",Hvt={timeout:25};function Qvt(t){let{data:e,disabled:r=!1,id:n,resizeObserverConfig:o}=t;const u=uB(Uvt),{active:f,dispatch:h,over:A,measureDroppableContainers:p}=Ae.useContext(cB),g=Ae.useRef({disabled:r}),y=Ae.useRef(!1),_=Ae.useRef(null),b=Ae.useRef(null),{disabled:C,updateMeasurementsFor:T,timeout:B}={...Hvt,...o},L=h2(T??n),P=Ae.useCallback(()=>{if(!y.current){y.current=!0;return}b.current!=null&&clearTimeout(b.current),b.current=setTimeout(()=>{p(Array.isArray(L.current)?L.current:[L.current]),b.current=null},B)},[B]),I=JO({callback:P,disabled:C||!f}),O=Ae.useCallback((z,G)=>{I&&(G&&(I.unobserve(G),y.current=!1),z&&I.observe(z))},[I]),[U,N]=ZR(O),H=h2(e);return Ae.useEffect(()=>{!I||!U.current||(I.disconnect(),y.current=!1,I.observe(U.current))},[U,I]),Ae.useEffect(()=>(h({type:au.RegisterDroppable,element:{id:n,key:u,disabled:r,node:U,rect:_,data:H}}),()=>h({type:au.UnregisterDroppable,key:u,id:n})),[n]),Ae.useEffect(()=>{r!==g.current.disabled&&(h({type:au.SetDroppableDisabled,id:n,key:u,disabled:r}),g.current.disabled=r)},[n,u,r,h]),{active:f,rect:_,isOver:A?.id===n,node:U,over:A,setNodeRef:N}}function Vvt(t){let{animation:e,children:r}=t;const[n,o]=Ae.useState(null),[u,f]=Ae.useState(null),h=JR(r);return!r&&!n&&h&&o(h),zA(()=>{if(!u)return;const A=n?.key,p=n?.props.id;if(A==null||p==null){o(null);return}Promise.resolve(e(p,u)).then(()=>{o(null)})},[e,n,u]),Sn.createElement(Sn.Fragment,null,r,n?Ae.cloneElement(n,{ref:f}):null)}const zvt={x:0,y:0,scaleX:1,scaleY:1};function Gvt(t){let{children:e}=t;return Sn.createElement(cB.Provider,{value:LMe},Sn.createElement(ek.Provider,{value:zvt},e))}const jvt={position:"fixed",touchAction:"none"},qvt=t=>ZO(t)?"transform 250ms ease":void 0,Wvt=Ae.forwardRef((t,e)=>{let{as:r,activatorEvent:n,adjustScale:o,children:u,className:f,rect:h,style:A,transform:p,transition:g=qvt}=t;if(!h)return null;const y=o?p:{...p,scaleX:1,scaleY:1},_={...jvt,width:h.width,height:h.height,top:h.top,left:h.left,transform:J1.Transform.toString(y),transformOrigin:o&&n?UAt(n,h):void 0,transition:typeof g=="function"?g(n):g,...A};return Sn.createElement(r,{className:f,style:_,ref:e},u)}),$vt=t=>e=>{let{active:r,dragOverlay:n}=e;const o={},{styles:u,className:f}=t;if(u!=null&&u.active)for(const[h,A]of Object.entries(u.active))A!==void 0&&(o[h]=r.node.style.getPropertyValue(h),r.node.style.setProperty(h,A));if(u!=null&&u.dragOverlay)for(const[h,A]of Object.entries(u.dragOverlay))A!==void 0&&n.node.style.setProperty(h,A);return f!=null&&f.active&&r.node.classList.add(f.active),f!=null&&f.dragOverlay&&n.node.classList.add(f.dragOverlay),function(){for(const[A,p]of Object.entries(o))r.node.style.setProperty(A,p);f!=null&&f.active&&r.node.classList.remove(f.active)}},Kvt=t=>{let{transform:{initial:e,final:r}}=t;return[{transform:J1.Transform.toString(e)},{transform:J1.Transform.toString(r)}]},Yvt={duration:250,easing:"ease",keyframes:Kvt,sideEffects:$vt({styles:{active:{opacity:"0"}}})};function Xvt(t){let{config:e,draggableNodes:r,droppableContainers:n,measuringConfiguration:o}=t;return XO((u,f)=>{if(e===null)return;const h=r.get(u);if(!h)return;const A=h.node.current;if(!A)return;const p=IMe(f);if(!p)return;const{transform:g}=pf(f).getComputedStyle(f),y=gMe(g);if(!y)return;const _=typeof e=="function"?e:Zvt(e);return xMe(A,o.draggable.measure),_({active:{id:u,data:h.data,node:A,rect:o.draggable.measure(A)},draggableNodes:r,dragOverlay:{node:f,rect:o.dragOverlay.measure(p)},droppableContainers:n,measuringConfiguration:o,transform:y})})}function Zvt(t){const{duration:e,easing:r,sideEffects:n,keyframes:o}={...Yvt,...t};return u=>{let{active:f,dragOverlay:h,transform:A,...p}=u;if(!e)return;const g={x:h.rect.left-f.rect.left,y:h.rect.top-f.rect.top},y={scaleX:A.scaleX!==1?f.rect.width*A.scaleX/h.rect.width:1,scaleY:A.scaleY!==1?f.rect.height*A.scaleY/h.rect.height:1},_={x:A.x-g.x,y:A.y-g.y,...y},b=o({...p,active:f,dragOverlay:h,transform:{initial:A,final:_}}),[C]=b,T=b[b.length-1];if(JSON.stringify(C)===JSON.stringify(T))return;const B=n?.({active:f,dragOverlay:h,...p}),L=h.node.animate(b,{duration:e,easing:r,fill:"forwards"});return new Promise(P=>{L.onfinish=()=>{B?.(),P()}})}}let Ome=0;function Jvt(t){return Ae.useMemo(()=>{if(t!=null)return Ome++,Ome},[t])}const $8t=Sn.memo(t=>{let{adjustScale:e=!1,children:r,dropAnimation:n,style:o,transition:u,modifiers:f,wrapperElement:h="div",className:A,zIndex:p=999}=t;const{activatorEvent:g,active:y,activeNodeRect:_,containerNodeRect:b,draggableNodes:C,droppableContainers:T,dragOverlay:B,over:L,measuringConfiguration:P,scrollableAncestors:I,scrollableAncestorRects:O,windowRect:U}=RMe(),N=Ae.useContext(ek),H=Jvt(y?.id),z=DMe(f,{activatorEvent:g,active:y,activeNodeRect:_,containerNodeRect:b,draggingNodeRect:B.rect,over:L,overlayNodeRect:B.rect,scrollableAncestors:I,scrollableAncestorRects:O,transform:N,windowRect:U}),G=LX(_),j=Xvt({config:n,draggableNodes:C,droppableContainers:T,measuringConfiguration:P}),q=G?B.setRef:void 0;return Sn.createElement(Gvt,null,Sn.createElement(Vvt,{animation:j},y&&H?Sn.createElement(Wvt,{key:H,id:y.id,ref:q,as:h,activatorEvent:g,adjustScale:e,className:A,transition:u,rect:G,style:{zIndex:p,...o},transform:z},r):null))});function PMe(t,e,r){const n=t.slice();return n.splice(r<0?n.length+r:r,0,n.splice(e,1)[0]),n}function ept(t,e){return t.reduce((r,n,o)=>{const u=e.get(n);return u&&(r[o]=u),r},Array(t.length))}function OM(t){return t!==null&&t>=0}function tpt(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function rpt(t){return typeof t=="boolean"?{draggable:t,droppable:t}:t}const kM={scaleX:1,scaleY:1},K8t=t=>{var e;let{rects:r,activeNodeRect:n,activeIndex:o,overIndex:u,index:f}=t;const h=(e=r[o])!=null?e:n;if(!h)return null;const A=npt(r,f,o);if(f===o){const p=r[u];return p?{x:o<u?p.left+p.width-(h.left+h.width):p.left-h.left,y:0,...kM}:null}return f>o&&f<=u?{x:-h.width-A,y:0,...kM}:f<o&&f>=u?{x:h.width+A,y:0,...kM}:{x:0,y:0,...kM}};function npt(t,e,r){const n=t[e],o=t[e-1],u=t[e+1];return!n||!o&&!u?0:r<e?o?n.left-(o.left+o.width):u.left-(n.left+n.width):u?u.left-(n.left+n.width):n.left-(o.left+o.width)}const OMe=t=>{let{rects:e,activeIndex:r,overIndex:n,index:o}=t;const u=PMe(e,n,r),f=e[o],h=u[o];return!h||!f?null:{x:h.left-f.left,y:h.top-f.top,scaleX:h.width/f.width,scaleY:h.height/f.height}},kMe="Sortable",FMe=Sn.createContext({activeIndex:-1,containerId:kMe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:OMe,disabled:{draggable:!1,droppable:!1}});function Y8t(t){let{children:e,id:r,items:n,strategy:o=OMe,disabled:u=!1}=t;const{active:f,dragOverlay:h,droppableRects:A,over:p,measureDroppableContainers:g}=RMe(),y=uB(kMe,r),_=h.rect!==null,b=Ae.useMemo(()=>n.map(N=>typeof N=="object"&&"id"in N?N.id:N),[n]),C=f!=null,T=f?b.indexOf(f.id):-1,B=p?b.indexOf(p.id):-1,L=Ae.useRef(b),P=!tpt(b,L.current),I=B!==-1&&T===-1||P,O=rpt(u);zA(()=>{P&&C&&g(b)},[P,b,C,g]),Ae.useEffect(()=>{L.current=b},[b]);const U=Ae.useMemo(()=>({activeIndex:T,containerId:y,disabled:O,disableTransforms:I,items:b,overIndex:B,useDragOverlay:_,sortedRects:ept(b,A),strategy:o}),[T,y,O.draggable,O.droppable,I,b,B,A,_,o]);return Sn.createElement(FMe.Provider,{value:U},e)}const ipt=t=>{let{id:e,items:r,activeIndex:n,overIndex:o}=t;return PMe(r,n,o).indexOf(e)},apt=t=>{let{containerId:e,isSorting:r,wasDragging:n,index:o,items:u,newIndex:f,previousItems:h,previousContainerId:A,transition:p}=t;return!p||!n||h!==u&&o===f?!1:r?!0:f!==o&&e===A},opt={duration:200,easing:"ease"},NMe="transform",spt=J1.Transition.toString({property:NMe,duration:0,easing:"linear"}),lpt={roleDescription:"sortable"};function upt(t){let{disabled:e,index:r,node:n,rect:o}=t;const[u,f]=Ae.useState(null),h=Ae.useRef(r);return zA(()=>{if(!e&&r!==h.current&&n.current){const A=o.current;if(A){const p=ex(n.current,{ignoreTransform:!0}),g={x:A.left-p.left,y:A.top-p.top,scaleX:A.width/p.width,scaleY:A.height/p.height};(g.x||g.y)&&f(g)}}r!==h.current&&(h.current=r)},[e,r,n,o]),Ae.useEffect(()=>{u&&f(null)},[u]),u}function X8t(t){let{animateLayoutChanges:e=apt,attributes:r,disabled:n,data:o,getNewIndex:u=ipt,id:f,strategy:h,resizeObserverConfig:A,transition:p=opt}=t;const{items:g,containerId:y,activeIndex:_,disabled:b,disableTransforms:C,sortedRects:T,overIndex:B,useDragOverlay:L,strategy:P}=Ae.useContext(FMe),I=cpt(n,b),O=g.indexOf(f),U=Ae.useMemo(()=>({sortable:{containerId:y,index:O,items:g},...o}),[y,o,O,g]),N=Ae.useMemo(()=>g.slice(g.indexOf(f)),[g,f]),{rect:H,node:z,isOver:G,setNodeRef:j}=Qvt({id:f,data:U,disabled:I.droppable,resizeObserverConfig:{updateMeasurementsFor:N,...A}}),{active:q,activatorEvent:X,activeNodeRect:Y,attributes:te,setNodeRef:K,listeners:ce,isDragging:ae,over:le,setActivatorNodeRef:pe,transform:ie}=Nvt({id:f,data:U,attributes:{...lpt,...r},disabled:I.draggable}),he=xAt(j,K),re=!!q,oe=re&&!C&&OM(_)&&OM(B),ye=!L&&ae,_e=ye&&oe?ie:null,ne=oe?_e??(h??P)({rects:T,activeNodeRect:Y,activeIndex:_,overIndex:B,index:O}):null,xe=OM(_)&&OM(B)?u({id:f,items:g,activeIndex:_,overIndex:B}):O,De=q?.id,ze=Ae.useRef({activeId:De,items:g,newIndex:xe,containerId:y}),Ye=g!==ze.current.items,Ne=e({active:q,containerId:y,isDragging:ae,isSorting:re,id:f,index:O,items:g,newIndex:ze.current.newIndex,previousItems:ze.current.items,previousContainerId:ze.current.containerId,transition:p,wasDragging:ze.current.activeId!=null}),yt=upt({disabled:!Ne,index:O,node:z,rect:H});return Ae.useEffect(()=>{re&&ze.current.newIndex!==xe&&(ze.current.newIndex=xe),y!==ze.current.containerId&&(ze.current.containerId=y),g!==ze.current.items&&(ze.current.items=g)},[re,xe,y,g]),Ae.useEffect(()=>{if(De===ze.current.activeId)return;if(De!=null&&ze.current.activeId==null){ze.current.activeId=De;return}const ue=setTimeout(()=>{ze.current.activeId=De},50);return()=>clearTimeout(ue)},[De]),{active:q,activeIndex:_,attributes:te,data:U,rect:H,index:O,newIndex:xe,items:g,isOver:G,isSorting:re,isDragging:ae,listeners:ce,node:z,overIndex:B,over:le,setNodeRef:he,setActivatorNodeRef:pe,setDroppableNodeRef:j,setDraggableNodeRef:K,transform:yt??ne,transition:Ue()};function Ue(){if(yt||Ye&&ze.current.newIndex===O)return spt;if(!(ye&&!ZO(X)||!p)&&(re||Ne))return J1.Transition.toString({...p,property:NMe})}}function cpt(t,e){var r,n;return typeof t=="boolean"?{draggable:t,droppable:!1}:{draggable:(r=t?.draggable)!=null?r:e.draggable,droppable:(n=t?.droppable)!=null?n:e.droppable}}$a.Down,$a.Right,$a.Up,$a.Left;var G7,kme;function fpt(){if(kme)return G7;kme=1;var t=NBe(),e=hw();function r(n,o){return n&&t(n,o,e)}return G7=r,G7}var j7,Fme;function hpt(){if(Fme)return j7;Fme=1;var t=rMe(),e=VBe(),r=fpt(),n=tB(),o=OO(),u=th(),f=WS(),h=K2(),A=vf(),p=J2();function g(y,_,b){var C=u(y),T=C||f(y)||p(y);if(_=n(_,4),b==null){var B=y&&y.constructor;T?b=C?new B:[]:A(y)?b=h(B)?e(o(y)):{}:b={}}return(T?t:r)(y,function(L,P,I){return _(b,L,P,I)}),b}return j7=g,j7}var dpt=hpt();const Z8t=Dn(dpt);var Apt=aMe();const J8t=Dn(Apt);var qW=function(t,e){return qW=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},qW(t,e)};function fB(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");qW(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function vw(t,e,r,n){function o(u){return u instanceof r?u:new r(function(f){f(u)})}return new(r||(r=Promise))(function(u,f){function h(g){try{p(n.next(g))}catch(y){f(y)}}function A(g){try{p(n.throw(g))}catch(y){f(y)}}function p(g){g.done?u(g.value):o(g.value).then(h,A)}p((n=n.apply(t,e||[])).next())})}function Iy(t,e){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,o,u,f;return f={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function h(p){return function(g){return A([p,g])}}function A(p){if(n)throw new TypeError("Generator is already executing.");for(;f&&(f=0,p[0]&&(r=0)),r;)try{if(n=1,o&&(u=p[0]&2?o.return:p[0]?o.throw||((u=o.return)&&u.call(o),0):o.next)&&!(u=u.call(o,p[1])).done)return u;switch(o=0,u&&(p=[p[0]&2,u.value]),p[0]){case 0:case 1:u=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,o=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(u=r.trys,!(u=u.length>0&&u[u.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!u||p[1]>u[0]&&p[1]<u[3])){r.label=p[1];break}if(p[0]===6&&r.label<u[1]){r.label=u[1],u=p;break}if(u&&r.label<u[2]){r.label=u[2],r.ops.push(p);break}u[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(g){p=[6,g],o=0}finally{n=u=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}function DS(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function A2(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,u=[],f;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)u.push(o.value)}catch(h){f={error:h}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(f)throw f.error}}return u}function vpt(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(A2(arguments[e]));return t}function iP(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,u;n<o;n++)(u||!(n in e))&&(u||(u=Array.prototype.slice.call(e,0,n)),u[n]=e[n]);return t.concat(u||Array.prototype.slice.call(e))}function aS(t){return this instanceof aS?(this.v=t,this):new aS(t)}function ppt(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,u=[];return o={},f("next"),f("throw"),f("return"),o[Symbol.asyncIterator]=function(){return this},o;function f(_){n[_]&&(o[_]=function(b){return new Promise(function(C,T){u.push([_,b,C,T])>1||h(_,b)})})}function h(_,b){try{A(n[_](b))}catch(C){y(u[0][3],C)}}function A(_){_.value instanceof aS?Promise.resolve(_.value.v).then(p,g):y(u[0][2],_)}function p(_){h("next",_)}function g(_){h("throw",_)}function y(_,b){_(b),u.shift(),u.length&&h(u[0][0],u[0][1])}}function gpt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof DS=="function"?DS(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(u){r[u]=t[u]&&function(f){return new Promise(function(h,A){f=t[u](f),o(h,A,f.done,f.value)})}}function o(u,f,h,A){Promise.resolve(A).then(function(p){u({value:p,done:h})},f)}}var mpt=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function hB(t,e){var r=ypt(t);if(typeof r.path!="string"){var n=t.webkitRelativePath;Object.defineProperty(r,"path",{value:typeof e=="string"?e:typeof n=="string"&&n.length>0?n:t.name,writable:!1,configurable:!1,enumerable:!0})}return r}function ypt(t){var e=t.name,r=e&&e.lastIndexOf(".")!==-1;if(r&&!t.type){var n=e.split(".").pop().toLowerCase(),o=mpt.get(n);o&&Object.defineProperty(t,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return t}var wpt=[".DS_Store","Thumbs.db"];function bpt(t){return vw(this,void 0,void 0,function(){return Iy(this,function(e){return aP(t)&&_pt(t)?[2,Tpt(t.dataTransfer,t.type)]:Spt(t)?[2,xpt(t)]:Array.isArray(t)&&t.every(function(r){return"getFile"in r&&typeof r.getFile=="function"})?[2,Cpt(t)]:[2,[]]})})}function _pt(t){return aP(t.dataTransfer)}function Spt(t){return aP(t)&&aP(t.target)}function aP(t){return typeof t=="object"&&t!==null}function xpt(t){return WW(t.target.files).map(function(e){return hB(e)})}function Cpt(t){return vw(this,void 0,void 0,function(){var e;return Iy(this,function(r){switch(r.label){case 0:return[4,Promise.all(t.map(function(n){return n.getFile()}))];case 1:return e=r.sent(),[2,e.map(function(n){return hB(n)})]}})})}function Tpt(t,e){return vw(this,void 0,void 0,function(){var r,n;return Iy(this,function(o){switch(o.label){case 0:return t===null?[2,[]]:t.items?(r=WW(t.items).filter(function(u){return u.kind==="file"}),e!=="drop"?[2,r]:[4,Promise.all(r.map(Ept))]):[3,2];case 1:return n=o.sent(),[2,Nme(UMe(n))];case 2:return[2,Nme(WW(t.files).map(function(u){return hB(u)}))]}})})}function Nme(t){return t.filter(function(e){return wpt.indexOf(e.name)===-1})}function WW(t){if(t===null)return[];for(var e=[],r=0;r<t.length;r++){var n=t[r];e.push(n)}return e}function Ept(t){if(typeof t.webkitGetAsEntry!="function")return Ume(t);var e=t.webkitGetAsEntry();return e&&e.isDirectory?HMe(e):Ume(t)}function UMe(t){return t.reduce(function(e,r){return vpt(e,Array.isArray(r)?UMe(r):[r])},[])}function Ume(t){var e=t.getAsFile();if(!e)return Promise.reject(t+" is not a File");var r=hB(e);return Promise.resolve(r)}function Bpt(t){return vw(this,void 0,void 0,function(){return Iy(this,function(e){return[2,t.isDirectory?HMe(t):Ipt(t)]})})}function HMe(t){var e=t.createReader();return new Promise(function(r,n){var o=[];function u(){var f=this;e.readEntries(function(h){return vw(f,void 0,void 0,function(){var A,p,g;return Iy(this,function(y){switch(y.label){case 0:if(h.length)return[3,5];y.label=1;case 1:return y.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return A=y.sent(),r(A),[3,4];case 3:return p=y.sent(),n(p),[3,4];case 4:return[3,6];case 5:g=Promise.all(h.map(Bpt)),o.push(g),u(),y.label=6;case 6:return[2]}})})},function(h){n(h)})}u()})}function Ipt(t){return vw(this,void 0,void 0,function(){return Iy(this,function(e){return[2,new Promise(function(r,n){t.file(function(o){var u=hB(o,t.fullPath);r(u)},function(o){n(o)})})]})})}var FM={},Hme;function Lpt(){return Hme||(Hme=1,FM.__esModule=!0,FM.default=function(t,e){if(t&&e){var r=Array.isArray(e)?e:e.split(",");if(r.length===0)return!0;var n=t.name||"",o=(t.type||"").toLowerCase(),u=o.replace(/\/.*$/,"");return r.some(function(f){var h=f.trim().toLowerCase();return h.charAt(0)==="."?n.toLowerCase().endsWith(h):h.endsWith("/*")?u===h.replace(/\/.*$/,""):o===h})}return!0}),FM}var Mpt=Lpt();const Dpt=Dn(Mpt);function Qme(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Vme(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Qme(Object(r),!0).forEach(function(n){QMe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qme(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function QMe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zme(t,e){return kpt(t)||Opt(t,e)||Ppt(t,e)||Rpt()}function Rpt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ppt(t,e){if(t){if(typeof t=="string")return Gme(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gme(t,e)}}function Gme(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Opt(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],o=!0,u=!1,f,h;try{for(r=r.call(t);!(o=(f=r.next()).done)&&(n.push(f.value),!(e&&n.length===e));o=!0);}catch(A){u=!0,h=A}finally{try{!o&&r.return!=null&&r.return()}finally{if(u)throw h}}return n}}function kpt(t){if(Array.isArray(t))return t}var Fpt="file-invalid-type",Npt="file-too-large",Upt="file-too-small",Hpt="too-many-files",Qpt=function(e){e=Array.isArray(e)&&e.length===1?e[0]:e;var r=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:Fpt,message:"File type must be ".concat(r)}},jme=function(e){return{code:Npt,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},qme=function(e){return{code:Upt,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},Vpt={code:Hpt,message:"Too many files"};function VMe(t,e){var r=t.type==="application/x-moz-file"||Dpt(t,e);return[r,r?null:Qpt(e)]}function zMe(t,e,r){if(hT(t.size))if(hT(e)&&hT(r)){if(t.size>r)return[!1,jme(r)];if(t.size<e)return[!1,qme(e)]}else{if(hT(e)&&t.size<e)return[!1,qme(e)];if(hT(r)&&t.size>r)return[!1,jme(r)]}return[!0,null]}function hT(t){return t!=null}function zpt(t){var e=t.files,r=t.accept,n=t.minSize,o=t.maxSize,u=t.multiple,f=t.maxFiles;return!u&&e.length>1||u&&f>=1&&e.length>f?!1:e.every(function(h){var A=VMe(h,r),p=zme(A,1),g=p[0],y=zMe(h,n,o),_=zme(y,1),b=_[0];return g&&b})}function oP(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function NM(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function Wme(t){t.preventDefault()}function Gpt(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function jpt(t){return t.indexOf("Edge/")!==-1}function qpt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Gpt(t)||jpt(t)}function Dv(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){for(var o=arguments.length,u=new Array(o>1?o-1:0),f=1;f<o;f++)u[f-1]=arguments[f];return e.some(function(h){return!oP(n)&&h&&h.apply(void 0,[n].concat(u)),oP(n)})}}function $me(){return"showOpenFilePicker"in window}function Wpt(t){return t=typeof t=="string"?t.split(","):t,[{description:"everything",accept:Array.isArray(t)?t.filter(function(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}).reduce(function(e,r){return Vme(Vme({},e),{},QMe({},r,[]))},{}):{}}]}var $pt=["children"],Kpt=["open"],Ypt=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Xpt=["refKey","onChange","onClick"];function Zpt(t){return tgt(t)||egt(t)||GMe(t)||Jpt()}function Jpt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function egt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function tgt(t){if(Array.isArray(t))return $W(t)}function q7(t,e){return igt(t)||ngt(t,e)||GMe(t,e)||rgt()}function rgt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GMe(t,e){if(t){if(typeof t=="string")return $W(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $W(t,e)}}function $W(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ngt(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],o=!0,u=!1,f,h;try{for(r=r.call(t);!(o=(f=r.next()).done)&&(n.push(f.value),!(e&&n.length===e));o=!0);}catch(A){u=!0,h=A}finally{try{!o&&r.return!=null&&r.return()}finally{if(u)throw h}}return n}}function igt(t){if(Array.isArray(t))return t}function Kme(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Es(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Kme(Object(r),!0).forEach(function(n){KW(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kme(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function KW(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sP(t,e){if(t==null)return{};var r=agt(t,e),n,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(o=0;o<u.length;o++)n=u[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function agt(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,u;for(u=0;u<n.length;u++)o=n[u],!(e.indexOf(o)>=0)&&(r[o]=t[o]);return r}var MX=Ae.forwardRef(function(t,e){var r=t.children,n=sP(t,$pt),o=ogt(n),u=o.open,f=sP(o,Kpt);return Ae.useImperativeHandle(e,function(){return{open:u}},[u]),Sn.createElement(Ae.Fragment,null,r(Es(Es({},f),{},{open:u})))});MX.displayName="Dropzone";var jMe={disabled:!1,getFilesFromEvent:bpt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};MX.defaultProps=jMe;MX.propTypes={children:Er.func,accept:Er.oneOfType([Er.string,Er.arrayOf(Er.string)]),multiple:Er.bool,preventDropOnDocument:Er.bool,noClick:Er.bool,noKeyboard:Er.bool,noDrag:Er.bool,noDragEventsBubbling:Er.bool,minSize:Er.number,maxSize:Er.number,maxFiles:Er.number,disabled:Er.bool,getFilesFromEvent:Er.func,onFileDialogCancel:Er.func,onFileDialogOpen:Er.func,useFsAccessApi:Er.bool,onDragEnter:Er.func,onDragLeave:Er.func,onDragOver:Er.func,onDrop:Er.func,onDropAccepted:Er.func,onDropRejected:Er.func,validator:Er.func};var YW={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function ogt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Es(Es({},jMe),t),r=e.accept,n=e.disabled,o=e.getFilesFromEvent,u=e.maxSize,f=e.minSize,h=e.multiple,A=e.maxFiles,p=e.onDragEnter,g=e.onDragLeave,y=e.onDragOver,_=e.onDrop,b=e.onDropAccepted,C=e.onDropRejected,T=e.onFileDialogCancel,B=e.onFileDialogOpen,L=e.useFsAccessApi,P=e.preventDropOnDocument,I=e.noClick,O=e.noKeyboard,U=e.noDrag,N=e.noDragEventsBubbling,H=e.validator,z=Ae.useMemo(function(){return typeof B=="function"?B:Yme},[B]),G=Ae.useMemo(function(){return typeof T=="function"?T:Yme},[T]),j=Ae.useRef(null),q=Ae.useRef(null),X=Ae.useReducer(sgt,YW),Y=q7(X,2),te=Y[0],K=Y[1],ce=te.isFocused,ae=te.isFileDialogActive,le=te.draggedFiles,pe=function(){ae&&setTimeout(function(){if(q.current){var Be=q.current.files;Be.length||(K({type:"closeDialog"}),G())}},300)};Ae.useEffect(function(){return L&&$me()?function(){}:(window.addEventListener("focus",pe,!1),function(){window.removeEventListener("focus",pe,!1)})},[q,ae,G,L]);var ie=Ae.useRef([]),he=function(Be){j.current&&j.current.contains(Be.target)||(Be.preventDefault(),ie.current=[])};Ae.useEffect(function(){return P&&(document.addEventListener("dragover",Wme,!1),document.addEventListener("drop",he,!1)),function(){P&&(document.removeEventListener("dragover",Wme),document.removeEventListener("drop",he))}},[j,P]);var re=Ae.useCallback(function(ke){ke.preventDefault(),ke.persist(),ue(ke),ie.current=[].concat(Zpt(ie.current),[ke.target]),NM(ke)&&Promise.resolve(o(ke)).then(function(Be){oP(ke)&&!N||(K({draggedFiles:Be,isDragActive:!0,type:"setDraggedFiles"}),p&&p(ke))})},[o,p,N]),oe=Ae.useCallback(function(ke){ke.preventDefault(),ke.persist(),ue(ke);var Be=NM(ke);if(Be&&ke.dataTransfer)try{ke.dataTransfer.dropEffect="copy"}catch{}return Be&&y&&y(ke),!1},[y,N]),ye=Ae.useCallback(function(ke){ke.preventDefault(),ke.persist(),ue(ke);var Be=ie.current.filter(function(nt){return j.current&&j.current.contains(nt)}),$e=Be.indexOf(ke.target);$e!==-1&&Be.splice($e,1),ie.current=Be,!(Be.length>0)&&(K({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),NM(ke)&&g&&g(ke))},[j,g,N]),_e=Ae.useCallback(function(ke,Be){var $e=[],nt=[];ke.forEach(function(ft){var Mt=VMe(ft,r),Rt=q7(Mt,2),Bt=Rt[0],It=Rt[1],qt=zMe(ft,f,u),fr=q7(qt,2),lr=fr[0],_t=fr[1],br=H?H(ft):null;if(Bt&&lr&&!br)$e.push(ft);else{var on=[It,_t];br&&(on=on.concat(br)),nt.push({file:ft,errors:on.filter(function(Br){return Br})})}}),(!h&&$e.length>1||h&&A>=1&&$e.length>A)&&($e.forEach(function(ft){nt.push({file:ft,errors:[Vpt]})}),$e.splice(0)),K({acceptedFiles:$e,fileRejections:nt,type:"setFiles"}),_&&_($e,nt,Be),nt.length>0&&C&&C(nt,Be),$e.length>0&&b&&b($e,Be)},[K,h,r,f,u,A,_,b,C,H]),Ce=Ae.useCallback(function(ke){ke.preventDefault(),ke.persist(),ue(ke),ie.current=[],NM(ke)&&Promise.resolve(o(ke)).then(function(Be){oP(ke)&&!N||_e(Be,ke)}),K({type:"reset"})},[o,_e,N]),ne=Ae.useCallback(function(){if(L&&$me()){K({type:"openDialog"}),z();var ke={multiple:h,types:Wpt(r)};window.showOpenFilePicker(ke).then(function(Be){return o(Be)}).then(function(Be){return _e(Be,null)}).catch(function(Be){return G(Be)}).finally(function(){return K({type:"closeDialog"})});return}q.current&&(K({type:"openDialog"}),z(),q.current.value=null,q.current.click())},[K,z,G,L,_e,r,h]),xe=Ae.useCallback(function(ke){!j.current||!j.current.isEqualNode(ke.target)||(ke.keyCode===32||ke.keyCode===13)&&(ke.preventDefault(),ne())},[j,q,ne]),De=Ae.useCallback(function(){K({type:"focus"})},[]),ze=Ae.useCallback(function(){K({type:"blur"})},[]),Ye=Ae.useCallback(function(){I||(qpt()?setTimeout(ne,0):ne())},[q,I,ne]),Ne=function(Be){return n?null:Be},yt=function(Be){return O?null:Ne(Be)},Ue=function(Be){return U?null:Ne(Be)},ue=function(Be){N&&Be.stopPropagation()},Qe=Ae.useMemo(function(){return function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Be=ke.refKey,$e=Be===void 0?"ref":Be,nt=ke.role,ft=ke.onKeyDown,Mt=ke.onFocus,Rt=ke.onBlur,Bt=ke.onClick,It=ke.onDragEnter,qt=ke.onDragOver,fr=ke.onDragLeave,lr=ke.onDrop,_t=sP(ke,Ypt);return Es(Es(KW({onKeyDown:yt(Dv(ft,xe)),onFocus:yt(Dv(Mt,De)),onBlur:yt(Dv(Rt,ze)),onClick:Ne(Dv(Bt,Ye)),onDragEnter:Ue(Dv(It,re)),onDragOver:Ue(Dv(qt,oe)),onDragLeave:Ue(Dv(fr,ye)),onDrop:Ue(Dv(lr,Ce)),role:typeof nt=="string"&&nt!==""?nt:"button"},$e,j),!n&&!O?{tabIndex:0}:{}),_t)}},[j,xe,De,ze,Ye,re,oe,ye,Ce,O,U,n]),qe=Ae.useCallback(function(ke){ke.stopPropagation()},[]),Re=Ae.useMemo(function(){return function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Be=ke.refKey,$e=Be===void 0?"ref":Be,nt=ke.onChange,ft=ke.onClick,Mt=sP(ke,Xpt),Rt=KW({accept:r,multiple:h,type:"file",style:{display:"none"},onChange:Ne(Dv(nt,Ce)),onClick:Ne(Dv(ft,qe)),autoComplete:"off",tabIndex:-1},$e,q);return Es(Es({},Rt),Mt)}},[q,r,h,Ce,n]),Me=le.length,Ge=Me>0&&zpt({files:le,accept:r,minSize:f,maxSize:u,multiple:h,maxFiles:A}),Pe=Me>0&&!Ge;return Es(Es({},te),{},{isDragAccept:Ge,isDragReject:Pe,isFocused:ce&&!n,getRootProps:Qe,getInputProps:Re,rootRef:j,inputRef:q,open:Ne(ne)})}function sgt(t,e){switch(e.type){case"focus":return Es(Es({},t),{},{isFocused:!0});case"blur":return Es(Es({},t),{},{isFocused:!1});case"openDialog":return Es(Es({},YW),{},{isFileDialogActive:!0});case"closeDialog":return Es(Es({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":var r=e.isDragActive,n=e.draggedFiles;return Es(Es({},t),{},{draggedFiles:n,isDragActive:r});case"setFiles":return Es(Es({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return Es({},YW);default:return t}}function Yme(){}const eQt=Q2(vut);var W7={};/*!
* Splide.js
* Version : 4.1.4
* License : MIT
* Copyright: 2022 Naotoshi Fujita
*/var Xme;function tQt(){return Xme||(Xme=1,function(t){function e(it,gt){for(var st=0;st<gt.length;st++){var Ze=gt[st];Ze.enumerable=Ze.enumerable||!1,Ze.configurable=!0,"value"in Ze&&(Ze.writable=!0),Object.defineProperty(it,Ze.key,Ze)}}function r(it,gt,st){return gt&&e(it.prototype,gt),Object.defineProperty(it,"prototype",{writable:!1}),it}Object.defineProperty(t,"__esModule",{value:!0});var n="(prefers-reduced-motion: reduce)",o=1,u=2,f=3,h=4,A=5,p=6,g=7,y={CREATED:o,MOUNTED:u,IDLE:f,MOVING:h,SCROLLING:A,DRAGGING:p,DESTROYED:g};function _(it){it.length=0}function b(it,gt,st){return Array.prototype.slice.call(it,gt,st)}function C(it){return it.bind.apply(it,[null].concat(b(arguments,1)))}var T=setTimeout,B=function(){};function L(it){return requestAnimationFrame(it)}function P(it,gt){return typeof gt===it}function I(it){return!z(it)&&P("object",it)}var O=Array.isArray,U=C(P,"function"),N=C(P,"string"),H=C(P,"undefined");function z(it){return it===null}function G(it){try{return it instanceof(it.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function j(it){return O(it)?it:[it]}function q(it,gt){j(it).forEach(gt)}function X(it,gt){return it.indexOf(gt)>-1}function Y(it,gt){return it.push.apply(it,j(gt)),it}function te(it,gt,st){it&&q(gt,function(Ze){Ze&&it.classList[st?"add":"remove"](Ze)})}function K(it,gt){te(it,N(gt)?gt.split(" "):gt,!0)}function ce(it,gt){q(gt,it.appendChild.bind(it))}function ae(it,gt){q(it,function(st){var Ze=(gt||st).parentNode;Ze&&Ze.insertBefore(st,gt)})}function le(it,gt){return G(it)&&(it.msMatchesSelector||it.matches).call(it,gt)}function pe(it,gt){var st=it?b(it.children):[];return gt?st.filter(function(Ze){return le(Ze,gt)}):st}function ie(it,gt){return gt?pe(it,gt)[0]:it.firstElementChild}var he=Object.keys;function re(it,gt,st){return it&&(st?he(it).reverse():he(it)).forEach(function(Ze){Ze!=="__proto__"&>(it[Ze],Ze)}),it}function oe(it){return b(arguments,1).forEach(function(gt){re(gt,function(st,Ze){it[Ze]=gt[Ze]})}),it}function ye(it){return b(arguments,1).forEach(function(gt){re(gt,function(st,Ze){O(st)?it[Ze]=st.slice():I(st)?it[Ze]=ye({},I(it[Ze])?it[Ze]:{},st):it[Ze]=st})}),it}function _e(it,gt){q(gt||he(it),function(st){delete it[st]})}function Ce(it,gt){q(it,function(st){q(gt,function(Ze){st&&st.removeAttribute(Ze)})})}function ne(it,gt,st){I(gt)?re(gt,function(Ze,Et){ne(it,Et,Ze)}):q(it,function(Ze){z(st)||st===""?Ce(Ze,gt):Ze.setAttribute(gt,String(st))})}function xe(it,gt,st){var Ze=document.createElement(it);return gt&&(N(gt)?K(Ze,gt):ne(Ze,gt)),st&&ce(st,Ze),Ze}function De(it,gt,st){if(H(st))return getComputedStyle(it)[gt];z(st)||(it.style[gt]=""+st)}function ze(it,gt){De(it,"display",gt)}function Ye(it){it.setActive&&it.setActive()||it.focus({preventScroll:!0})}function Ne(it,gt){return it.getAttribute(gt)}function yt(it,gt){return it&&it.classList.contains(gt)}function Ue(it){return it.getBoundingClientRect()}function ue(it){q(it,function(gt){gt&>.parentNode&>.parentNode.removeChild(gt)})}function Qe(it){return ie(new DOMParser().parseFromString(it,"text/html").body)}function qe(it,gt){it.preventDefault(),gt&&(it.stopPropagation(),it.stopImmediatePropagation())}function Re(it,gt){return it&&it.querySelector(gt)}function Me(it,gt){return gt?b(it.querySelectorAll(gt)):[]}function Ge(it,gt){te(it,gt,!1)}function Pe(it){return it.timeStamp}function ke(it){return N(it)?it:it?it+"px":""}var Be="splide",$e="data-"+Be;function nt(it,gt){if(!it)throw new Error("["+Be+"] "+(gt||""))}var ft=Math.min,Mt=Math.max,Rt=Math.floor,Bt=Math.ceil,It=Math.abs;function qt(it,gt,st){return It(it-gt)<st}function fr(it,gt,st,Ze){var Et=ft(gt,st),Nt=Mt(gt,st);return Ze?Et<it&&it<Nt:Et<=it&&it<=Nt}function lr(it,gt,st){var Ze=ft(gt,st),Et=Mt(gt,st);return ft(Mt(Ze,it),Et)}function _t(it){return+(it>0)-+(it<0)}function br(it){return it.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function on(it,gt){return q(gt,function(st){it=it.replace("%s",""+st)}),it}function Br(it){return it<10?"0"+it:""+it}var rn={};function Yr(it){return""+it+Br(rn[it]=(rn[it]||0)+1)}function cn(){var it=[];function gt(Pt,Ft,Wt,er){Et(Pt,Ft,function(Xt,Rr,ar){var Ir="addEventListener"in Xt,gr=Ir?Xt.removeEventListener.bind(Xt,Rr,Wt,er):Xt.removeListener.bind(Xt,Wt);Ir?Xt.addEventListener(Rr,Wt,er):Xt.addListener(Wt),it.push([Xt,Rr,ar,Wt,gr])})}function st(Pt,Ft,Wt){Et(Pt,Ft,function(er,Xt,Rr){it=it.filter(function(ar){return ar[0]===er&&ar[1]===Xt&&ar[2]===Rr&&(!Wt||ar[3]===Wt)?(ar[4](),!1):!0})})}function Ze(Pt,Ft,Wt){var er,Xt=!0;return typeof CustomEvent=="function"?er=new CustomEvent(Ft,{bubbles:Xt,detail:Wt}):(er=document.createEvent("CustomEvent"),er.initCustomEvent(Ft,Xt,!1,Wt)),Pt.dispatchEvent(er),er}function Et(Pt,Ft,Wt){q(Pt,function(er){er&&q(Ft,function(Xt){Xt.split(" ").forEach(function(Rr){var ar=Rr.split(".");Wt(er,ar[0],ar[1])})})})}function Nt(){it.forEach(function(Pt){Pt[4]()}),_(it)}return{bind:gt,unbind:st,dispatch:Ze,destroy:Nt}}var Vn="mounted",Nr="ready",Ht="move",zr="moved",kn="click",vt="active",At="inactive",Ct="visible",Tt="hidden",ir="refresh",et="updated",ot="resize",mt="resized",xt="drag",nr="dragging",yr="dragged",Pr="scroll",pr="scrolled",Ar="overflow",Tr="destroy",Fr="arrows:mounted",nn="arrows:updated",fn="pagination:mounted",ci="pagination:updated",_r="navigation:mounted",pt="autoplay:play",or="autoplay:playing",Ur="autoplay:pause",Ti="lazyload:loaded",ni="sk",Li="sh",ea="ei";function Tn(it){var gt=it?it.event.bus:document.createDocumentFragment(),st=cn();function Ze(Nt,Pt){st.bind(gt,j(Nt).join(" "),function(Ft){Pt.apply(Pt,O(Ft.detail)?Ft.detail:[])})}function Et(Nt){st.dispatch(gt,Nt,b(arguments,1))}return it&&it.event.on(Tr,st.destroy),oe(st,{bus:gt,on:Ze,off:C(st.unbind,gt),emit:Et})}function Mi(it,gt,st,Ze){var Et=Date.now,Nt,Pt=0,Ft,Wt=!0,er=0;function Xt(){if(!Wt){if(Pt=it?ft((Et()-Nt)/it,1):1,st&&st(Pt),Pt>=1&&(gt(),Nt=Et(),Ze&&++er>=Ze))return ar();Ft=L(Xt)}}function Rr(Hr){Hr||gr(),Nt=Et()-(Hr?Pt*it:0),Wt=!1,Ft=L(Xt)}function ar(){Wt=!0}function Ir(){Nt=Et(),Pt=0,st&&st(Pt)}function gr(){Ft&&cancelAnimationFrame(Ft),Pt=0,Ft=0,Wt=!0}function cr(Hr){it=Hr}function Kr(){return Wt}return{start:Rr,rewind:Ir,pause:ar,cancel:gr,set:cr,isPaused:Kr}}function Ka(it){var gt=it;function st(Et){gt=Et}function Ze(Et){return X(j(Et),gt)}return{set:st,is:Ze}}function ga(it,gt){var st=Mi(gt||0,it,null,1);return function(){st.isPaused()&&st.start()}}function qn(it,gt,st){var Ze=it.state,Et=st.breakpoints||{},Nt=st.reducedMotion||{},Pt=cn(),Ft=[];function Wt(){var gr=st.mediaQuery==="min";he(Et).sort(function(cr,Kr){return gr?+cr-+Kr:+Kr-+cr}).forEach(function(cr){Xt(Et[cr],"("+(gr?"min":"max")+"-width:"+cr+"px)")}),Xt(Nt,n),Rr()}function er(gr){gr&&Pt.destroy()}function Xt(gr,cr){var Kr=matchMedia(cr);Pt.bind(Kr,"change",Rr),Ft.push([gr,Kr])}function Rr(){var gr=Ze.is(g),cr=st.direction,Kr=Ft.reduce(function(Hr,Gr){return ye(Hr,Gr[1].matches?Gr[0]:{})},{});_e(st),Ir(Kr),st.destroy?it.destroy(st.destroy==="completely"):gr?(er(!0),it.mount()):cr!==st.direction&&it.refresh()}function ar(gr){matchMedia(n).matches&&(gr?ye(st,Nt):_e(st,he(Nt)))}function Ir(gr,cr,Kr){ye(st,gr),cr&&ye(Object.getPrototypeOf(st),gr),(Kr||!Ze.is(o))&&it.emit(et,st)}return{setup:Wt,destroy:er,reduce:ar,set:Ir}}var $i="Arrow",Da=$i+"Left",qs=$i+"Right",Di=$i+"Up",Wo=$i+"Down",na="ltr",bs="rtl",Hl="ttb",_s={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Di,qs],ArrowRight:[Wo,Da]};function du(it,gt,st){function Ze(Nt,Pt,Ft){Ft=Ft||st.direction;var Wt=Ft===bs&&!Pt?1:Ft===Hl?0:-1;return _s[Nt]&&_s[Nt][Wt]||Nt.replace(/width|left|right/i,function(er,Xt){var Rr=_s[er.toLowerCase()][Wt]||er;return Xt>0?Rr.charAt(0).toUpperCase()+Rr.slice(1):Rr})}function Et(Nt){return Nt*(st.direction===bs?1:-1)}return{resolve:Ze,orient:Et}}var No="role",Ws="tabindex",mo="disabled",$o="aria-",yo=$o+"controls",rv=$o+"current",Oc=$o+"selected",wo=$o+"label",wf=$o+"labelledby",Zu=$o+"hidden",Ql=$o+"orientation",oo=$o+"roledescription",kc=$o+"live",bf=$o+"busy",Kd=$o+"atomic",us=[No,Ws,mo,yo,rv,wo,wf,Zu,Ql,oo],cs=Be+"__",Ls="is-",Vl=Be,Tu=cs+"track",Ju=cs+"list",gn=cs+"slide",ec=gn+"--clone",Fc=gn+"__container",$s=cs+"arrows",Ai=cs+"arrow",so=Ai+"--prev",_l=Ai+"--next",zl=cs+"pagination",tc=zl+"__page",_f=cs+"progress",xn=_f+"__bar",fs=cs+"toggle",Eu=fs+"__play",Ks=fs+"__pause",Ss=cs+"spinner",Au=cs+"sr",vu=Ls+"initialized",Uo=Ls+"active",Gl=Ls+"prev",Bn=Ls+"next",jl=Ls+"visible",Sf=Ls+"loading",Nc=Ls+"focus-in",Uc=Ls+"overflow",pu=[Uo,jl,Gl,Bn,Sf,Nc,Uc],Lo={slide:gn,clone:ec,arrows:$s,arrow:Ai,prev:so,next:_l,pagination:zl,page:tc,spinner:Ss};function Sl(it,gt){if(U(it.closest))return it.closest(gt);for(var st=it;st&&st.nodeType===1&&!le(st,gt);)st=st.parentElement;return st}var me=5,Ve=200,lt="touchstart mousedown",St="touchmove mousemove",Qt="touchend touchcancel mouseup click";function Zt(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=Ze.bind,Pt=it.root,Ft=st.i18n,Wt={},er=[],Xt=[],Rr=[],ar,Ir,gr;function cr(){Vr(),oi(),Gr()}function Kr(){Et(ir,Hr),Et(ir,cr),Et(et,Gr),Nt(document,lt+" keydown",function(Qr){gr=Qr.type==="keydown"},{capture:!0}),Nt(Pt,"focusin",function(){te(Pt,Nc,!!gr)})}function Hr(Qr){var En=us.concat("style");_(er),Ge(Pt,Xt),Ge(ar,Rr),Ce([ar,Ir],En),Ce(Pt,Qr?En:["style",oo])}function Gr(){Ge(Pt,Xt),Ge(ar,Rr),Xt=$n(Vl),Rr=$n(Tu),K(Pt,Xt),K(ar,Rr),ne(Pt,wo,st.label),ne(Pt,wf,st.labelledby)}function Vr(){ar=In("."+Tu),Ir=ie(ar,"."+Ju),nt(ar&&Ir,"A track/list element is missing."),Y(er,pe(Ir,"."+gn+":not(."+ec+")")),re({arrows:$s,pagination:zl,prev:so,next:_l,bar:xn,toggle:fs},function(Qr,En){Wt[En]=In("."+Qr)}),oe(Wt,{root:Pt,track:ar,list:Ir,slides:er})}function oi(){var Qr=Pt.id||Yr(Be),En=st.role;Pt.id=Qr,ar.id=ar.id||Qr+"-track",Ir.id=Ir.id||Qr+"-list",!Ne(Pt,No)&&Pt.tagName!=="SECTION"&&En&&ne(Pt,No,En),ne(Pt,oo,Ft.carousel),ne(Ir,No,"presentation")}function In(Qr){var En=Re(Pt,Qr);return En&&Sl(En,"."+Vl)===Pt?En:void 0}function $n(Qr){return[Qr+"--"+st.type,Qr+"--"+st.direction,st.drag&&Qr+"--draggable",st.isNavigation&&Qr+"--nav",Qr===Vl&&Uo]}return oe(Wt,{setup:cr,mount:Kr,destroy:Hr})}var hr="slide",Jr="loop",hn="fade";function Wn(it,gt,st,Ze){var Et=Tn(it),Nt=Et.on,Pt=Et.emit,Ft=Et.bind,Wt=it.Components,er=it.root,Xt=it.options,Rr=Xt.isNavigation,ar=Xt.updateOnMove,Ir=Xt.i18n,gr=Xt.pagination,cr=Xt.slideFocus,Kr=Wt.Direction.resolve,Hr=Ne(Ze,"style"),Gr=Ne(Ze,wo),Vr=st>-1,oi=ie(Ze,"."+Fc),In;function $n(){Vr||(Ze.id=er.id+"-slide"+Br(gt+1),ne(Ze,No,gr?"tabpanel":"group"),ne(Ze,oo,Ir.slide),ne(Ze,wo,Gr||on(Ir.slideLabel,[gt+1,it.length]))),Qr()}function Qr(){Ft(Ze,"click",C(Pt,kn,Zn)),Ft(Ze,"keydown",C(Pt,ni,Zn)),Nt([zr,Li,pr],$r),Nt(_r,Ei),ar&&Nt(Ht,Qn)}function En(){In=!0,Et.destroy(),Ge(Ze,pu),Ce(Ze,us),ne(Ze,"style",Hr),ne(Ze,wo,Gr||"")}function Ei(){var Zr=it.splides.map(function(Xr){var Fn=Xr.splide.Components.Slides.getAt(gt);return Fn?Fn.slide.id:""}).join(" ");ne(Ze,wo,on(Ir.slideX,(Vr?st:gt)+1)),ne(Ze,yo,Zr),ne(Ze,No,cr?"button":""),cr&&Ce(Ze,oo)}function Qn(){In||$r()}function $r(){if(!In){var Zr=it.index;An(),mn(),te(Ze,Gl,gt===Zr-1),te(Ze,Bn,gt===Zr+1)}}function An(){var Zr=ii();Zr!==yt(Ze,Uo)&&(te(Ze,Uo,Zr),ne(Ze,rv,Rr&&Zr||""),Pt(Zr?vt:At,Zn))}function mn(){var Zr=da(),Xr=!Zr&&(!ii()||Vr);if(it.state.is([h,A])||ne(Ze,Zu,Xr||""),ne(Me(Ze,Xt.focusableNodes||""),Ws,Xr?-1:""),cr&&ne(Ze,Ws,Xr?-1:0),Zr!==yt(Ze,jl)&&(te(Ze,jl,Zr),Pt(Zr?Ct:Tt,Zn)),!Zr&&document.activeElement===Ze){var Fn=Wt.Slides.getAt(it.index);Fn&&Ye(Fn.slide)}}function Kn(Zr,Xr,Fn){De(Fn&&oi||Ze,Zr,Xr)}function ii(){var Zr=it.index;return Zr===gt||Xt.cloneStatus&&Zr===st}function da(){if(it.is(hn))return ii();var Zr=Ue(Wt.Elements.track),Xr=Ue(Ze),Fn=Kr("left",!0),si=Kr("right",!0);return Rt(Zr[Fn])<=Bt(Xr[Fn])&&Rt(Xr[si])<=Bt(Zr[si])}function ma(Zr,Xr){var Fn=It(Zr-gt);return!Vr&&(Xt.rewind||it.is(Jr))&&(Fn=ft(Fn,it.length-Fn)),Fn<=Xr}var Zn={index:gt,slideIndex:st,slide:Ze,container:oi,isClone:Vr,mount:$n,destroy:En,update:$r,style:Kn,isWithin:ma};return Zn}function Xn(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=Ze.emit,Pt=Ze.bind,Ft=gt.Elements,Wt=Ft.slides,er=Ft.list,Xt=[];function Rr(){ar(),Et(ir,Ir),Et(ir,ar)}function ar(){Wt.forEach(function($r,An){cr($r,An,-1)})}function Ir(){In(function($r){$r.destroy()}),_(Xt)}function gr(){In(function($r){$r.update()})}function cr($r,An,mn){var Kn=Wn(it,An,mn,$r);Kn.mount(),Xt.push(Kn),Xt.sort(function(ii,da){return ii.index-da.index})}function Kr($r){return $r?$n(function(An){return!An.isClone}):Xt}function Hr($r){var An=gt.Controller,mn=An.toIndex($r),Kn=An.hasFocus()?1:st.perPage;return $n(function(ii){return fr(ii.index,mn,mn+Kn-1)})}function Gr($r){return $n($r)[0]}function Vr($r,An){q($r,function(mn){if(N(mn)&&(mn=Qe(mn)),G(mn)){var Kn=Wt[An];Kn?ae(mn,Kn):ce(er,mn),K(mn,st.classes.slide),En(mn,C(Nt,ot))}}),Nt(ir)}function oi($r){ue($n($r).map(function(An){return An.slide})),Nt(ir)}function In($r,An){Kr(An).forEach($r)}function $n($r){return Xt.filter(U($r)?$r:function(An){return N($r)?le(An.slide,$r):X(j($r),An.index)})}function Qr($r,An,mn){In(function(Kn){Kn.style($r,An,mn)})}function En($r,An){var mn=Me($r,"img"),Kn=mn.length;Kn?mn.forEach(function(ii){Pt(ii,"load error",function(){--Kn||An()})}):An()}function Ei($r){return $r?Wt.length:Xt.length}function Qn(){return Xt.length>st.perPage}return{mount:Rr,destroy:Ir,update:gr,register:cr,get:Kr,getIn:Hr,getAt:Gr,add:Vr,remove:oi,forEach:In,filter:$n,style:Qr,getLength:Ei,isEnough:Qn}}function ji(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=Ze.bind,Pt=Ze.emit,Ft=gt.Slides,Wt=gt.Direction.resolve,er=gt.Elements,Xt=er.root,Rr=er.track,ar=er.list,Ir=Ft.getAt,gr=Ft.style,cr,Kr,Hr;function Gr(){Vr(),Nt(window,"resize load",ga(C(Pt,ot))),Et([et,ir],Vr),Et(ot,oi)}function Vr(){cr=st.direction===Hl,De(Xt,"maxWidth",ke(st.width)),De(Rr,Wt("paddingLeft"),In(!1)),De(Rr,Wt("paddingRight"),In(!0)),oi(!0)}function oi(Zn){var Zr=Ue(Xt);(Zn||Kr.width!==Zr.width||Kr.height!==Zr.height)&&(De(Rr,"height",$n()),gr(Wt("marginRight"),ke(st.gap)),gr("width",En()),gr("height",Ei(),!0),Kr=Zr,Pt(mt),Hr!==(Hr=ma())&&(te(Xt,Uc,Hr),Pt(Ar,Hr)))}function In(Zn){var Zr=st.padding,Xr=Wt(Zn?"right":"left");return Zr&&ke(Zr[Xr]||(I(Zr)?0:Zr))||"0px"}function $n(){var Zn="";return cr&&(Zn=Qr(),nt(Zn,"height or heightRatio is missing."),Zn="calc("+Zn+" - "+In(!1)+" - "+In(!0)+")"),Zn}function Qr(){return ke(st.height||Ue(ar).width*st.heightRatio)}function En(){return st.autoWidth?null:ke(st.fixedWidth)||(cr?"":Qn())}function Ei(){return ke(st.fixedHeight)||(cr?st.autoHeight?null:Qn():Qr())}function Qn(){var Zn=ke(st.gap);return"calc((100%"+(Zn&&" + "+Zn)+")/"+(st.perPage||1)+(Zn&&" - "+Zn)+")"}function $r(){return Ue(ar)[Wt("width")]}function An(Zn,Zr){var Xr=Ir(Zn||0);return Xr?Ue(Xr.slide)[Wt("width")]+(Zr?0:ii()):0}function mn(Zn,Zr){var Xr=Ir(Zn);if(Xr){var Fn=Ue(Xr.slide)[Wt("right")],si=Ue(ar)[Wt("left")];return It(Fn-si)+(Zr?0:ii())}return 0}function Kn(Zn){return mn(it.length-1)-mn(0)+An(0,Zn)}function ii(){var Zn=Ir(0);return Zn&&parseFloat(De(Zn.slide,Wt("marginRight")))||0}function da(Zn){return parseFloat(De(Rr,Wt("padding"+(Zn?"Right":"Left"))))||0}function ma(){return it.is(hn)||Kn(!0)>$r()}return{mount:Gr,resize:oi,listSize:$r,slideSize:An,sliderSize:Kn,totalSize:mn,getPadding:da,isOverflow:ma}}var Ia=2;function Ra(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=gt.Elements,Pt=gt.Slides,Ft=gt.Direction.resolve,Wt=[],er;function Xt(){Et(ir,Rr),Et([et,ot],Ir),(er=Kr())&&(gr(er),gt.Layout.resize(!0))}function Rr(){ar(),Xt()}function ar(){ue(Wt),_(Wt),Ze.destroy()}function Ir(){var Hr=Kr();er!==Hr&&(er<Hr||!Hr)&&Ze.emit(ir)}function gr(Hr){var Gr=Pt.get().slice(),Vr=Gr.length;if(Vr){for(;Gr.length<Hr;)Y(Gr,Gr);Y(Gr.slice(-Hr),Gr.slice(0,Hr)).forEach(function(oi,In){var $n=In<Hr,Qr=cr(oi.slide,In);$n?ae(Qr,Gr[0].slide):ce(Nt.list,Qr),Y(Wt,Qr),Pt.register(Qr,In-Hr+($n?0:Vr),oi.index)})}}function cr(Hr,Gr){var Vr=Hr.cloneNode(!0);return K(Vr,st.classes.clone),Vr.id=it.root.id+"-clone"+Br(Gr+1),Vr}function Kr(){var Hr=st.clones;if(!it.is(Jr))Hr=0;else if(H(Hr)){var Gr=st[Ft("fixedWidth")]&>.Layout.slideSize(0),Vr=Gr&&Bt(Ue(Nt.track)[Ft("width")]/Gr);Hr=Vr||st[Ft("autoWidth")]&&it.length||st.perPage*Ia}return Hr}return{mount:Xt,destroy:ar}}function bi(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=Ze.emit,Pt=it.state.set,Ft=gt.Layout,Wt=Ft.slideSize,er=Ft.getPadding,Xt=Ft.totalSize,Rr=Ft.listSize,ar=Ft.sliderSize,Ir=gt.Direction,gr=Ir.resolve,cr=Ir.orient,Kr=gt.Elements,Hr=Kr.list,Gr=Kr.track,Vr;function oi(){Vr=gt.Transition,Et([Vn,mt,et,ir],In)}function In(){gt.Controller.isBusy()||(gt.Scroll.cancel(),Qr(it.index),gt.Slides.update())}function $n(Xr,Fn,si,ya){Xr!==Fn&&Zn(Xr>si)&&($r(),En(Qn(Kn(),Xr>si),!0)),Pt(h),Nt(Ht,Fn,si,Xr),Vr.start(Fn,function(){Pt(f),Nt(zr,Fn,si,Xr),ya&&ya()})}function Qr(Xr){En(mn(Xr,!0))}function En(Xr,Fn){if(!it.is(hn)){var si=Fn?Xr:Ei(Xr);De(Hr,"transform","translate"+gr("X")+"("+si+"px)"),Xr!==si&&Nt(Li)}}function Ei(Xr){if(it.is(Jr)){var Fn=An(Xr),si=Fn>gt.Controller.getEnd(),ya=Fn<0;(ya||si)&&(Xr=Qn(Xr,si))}return Xr}function Qn(Xr,Fn){var si=Xr-ma(Fn),ya=ar();return Xr-=cr(ya*(Bt(It(si)/ya)||1))*(Fn?1:-1),Xr}function $r(){En(Kn(),!0),Vr.cancel()}function An(Xr){for(var Fn=gt.Slides.get(),si=0,ya=1/0,_o=0;_o<Fn.length;_o++){var Js=Fn[_o].index,jr=It(mn(Js,!0)-Xr);if(jr<=ya)ya=jr,si=Js;else break}return si}function mn(Xr,Fn){var si=cr(Xt(Xr-1)-da(Xr));return Fn?ii(si):si}function Kn(){var Xr=gr("left");return Ue(Hr)[Xr]-Ue(Gr)[Xr]+cr(er(!1))}function ii(Xr){return st.trimSpace&&it.is(hr)&&(Xr=lr(Xr,0,cr(ar(!0)-Rr()))),Xr}function da(Xr){var Fn=st.focus;return Fn==="center"?(Rr()-Wt(Xr,!0))/2:+Fn*Wt(Xr)||0}function ma(Xr){return mn(Xr?gt.Controller.getEnd():0,!!st.trimSpace)}function Zn(Xr){var Fn=cr(Qn(Kn(),Xr));return Xr?Fn>=0:Fn<=Hr[gr("scrollWidth")]-Ue(Gr)[gr("width")]}function Zr(Xr,Fn){Fn=H(Fn)?Kn():Fn;var si=Xr!==!0&&cr(Fn)<cr(ma(!1)),ya=Xr!==!1&&cr(Fn)>cr(ma(!0));return si||ya}return{mount:oi,move:$n,jump:Qr,translate:En,shift:Qn,cancel:$r,toIndex:An,toPosition:mn,getPosition:Kn,getLimit:ma,exceededLimit:Zr,reposition:In}}function lo(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=Ze.emit,Pt=gt.Move,Ft=Pt.getPosition,Wt=Pt.getLimit,er=Pt.toPosition,Xt=gt.Slides,Rr=Xt.isEnough,ar=Xt.getLength,Ir=st.omitEnd,gr=it.is(Jr),cr=it.is(hr),Kr=C(Kn,!1),Hr=C(Kn,!0),Gr=st.start||0,Vr,oi=Gr,In,$n,Qr;function En(){Ei(),Et([et,ir,ea],Ei),Et(mt,Qn)}function Ei(){In=ar(!0),$n=st.perMove,Qr=st.perPage,Vr=Zn();var jr=lr(Gr,0,Ir?Vr:In-1);jr!==Gr&&(Gr=jr,Pt.reposition())}function Qn(){Vr!==Zn()&&Nt(ea)}function $r(jr,Wi,Zo){if(!Js()){var Fa=mn(jr),Mo=ma(Fa);Mo>-1&&(Wi||Mo!==Gr)&&(si(Mo),Pt.move(Fa,Mo,oi,Zo))}}function An(jr,Wi,Zo,Fa){gt.Scroll.scroll(jr,Wi,Zo,function(){var Mo=ma(Pt.toIndex(Ft()));si(Ir?ft(Mo,Vr):Mo),Fa&&Fa()})}function mn(jr){var Wi=Gr;if(N(jr)){var Zo=jr.match(/([+\-<>])(\d+)?/)||[],Fa=Zo[1],Mo=Zo[2];Fa==="+"||Fa==="-"?Wi=ii(Gr+ +(""+Fa+(+Mo||1)),Gr):Fa===">"?Wi=Mo?Zr(+Mo):Kr(!0):Fa==="<"&&(Wi=Hr(!0))}else Wi=gr?jr:lr(jr,0,Vr);return Wi}function Kn(jr,Wi){var Zo=$n||(_o()?1:Qr),Fa=ii(Gr+Zo*(jr?-1:1),Gr,!($n||_o()));return Fa===-1&&cr&&!qt(Ft(),Wt(!jr),1)?jr?0:Vr:Wi?Fa:ma(Fa)}function ii(jr,Wi,Zo){if(Rr()||_o()){var Fa=da(jr);Fa!==jr&&(Wi=jr,jr=Fa,Zo=!1),jr<0||jr>Vr?!$n&&(fr(0,jr,Wi,!0)||fr(Vr,Wi,jr,!0))?jr=Zr(Xr(jr)):gr?jr=Zo?jr<0?-(In%Qr||Qr):In:jr:st.rewind?jr=jr<0?Vr:0:jr=-1:Zo&&jr!==Wi&&(jr=Zr(Xr(Wi)+(jr<Wi?-1:1)))}else jr=-1;return jr}function da(jr){if(cr&&st.trimSpace==="move"&&jr!==Gr)for(var Wi=Ft();Wi===er(jr,!0)&&fr(jr,0,it.length-1,!st.rewind);)jr<Gr?--jr:++jr;return jr}function ma(jr){return gr?(jr+In)%In||0:jr}function Zn(){for(var jr=In-(_o()||gr&&$n?1:Qr);Ir&&jr-- >0;)if(er(In-1,!0)!==er(jr,!0)){jr++;break}return lr(jr,0,In-1)}function Zr(jr){return lr(_o()?jr:Qr*jr,0,Vr)}function Xr(jr){return _o()?ft(jr,Vr):Rt((jr>=Vr?In-1:jr)/Qr)}function Fn(jr){var Wi=Pt.toIndex(jr);return cr?lr(Wi,0,Vr):Wi}function si(jr){jr!==Gr&&(oi=Gr,Gr=jr)}function ya(jr){return jr?oi:Gr}function _o(){return!H(st.focus)||st.isNavigation}function Js(){return it.state.is([h,A])&&!!st.waitForTransition}return{mount:En,go:$r,scroll:An,getNext:Kr,getPrev:Hr,getAdjacent:Kn,getEnd:Zn,setIndex:si,getIndex:ya,toIndex:Zr,toPage:Xr,toDest:Fn,hasFocus:_o,isBusy:Js}}var Pa="http://www.w3.org/2000/svg",Ko="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",Ho=40;function Hc(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=Ze.bind,Pt=Ze.emit,Ft=st.classes,Wt=st.i18n,er=gt.Elements,Xt=gt.Controller,Rr=er.arrows,ar=er.track,Ir=Rr,gr=er.prev,cr=er.next,Kr,Hr,Gr={};function Vr(){In(),Et(et,oi)}function oi(){$n(),Vr()}function In(){var An=st.arrows;An&&!(gr&&cr)&&Ei(),gr&&cr&&(oe(Gr,{prev:gr,next:cr}),ze(Ir,An?"":"none"),K(Ir,Hr=$s+"--"+st.direction),An&&(Qr(),$r(),ne([gr,cr],yo,ar.id),Pt(Fr,gr,cr)))}function $n(){Ze.destroy(),Ge(Ir,Hr),Kr?(ue(Rr?[gr,cr]:Ir),gr=cr=null):Ce([gr,cr],us)}function Qr(){Et([Vn,zr,ir,pr,ea],$r),Nt(cr,"click",C(En,">")),Nt(gr,"click",C(En,"<"))}function En(An){Xt.go(An,!0)}function Ei(){Ir=Rr||xe("div",Ft.arrows),gr=Qn(!0),cr=Qn(!1),Kr=!0,ce(Ir,[gr,cr]),!Rr&&ae(Ir,ar)}function Qn(An){var mn='<button class="'+Ft.arrow+" "+(An?Ft.prev:Ft.next)+'" type="button"><svg xmlns="'+Pa+'" viewBox="0 0 '+Ho+" "+Ho+'" width="'+Ho+'" height="'+Ho+'" focusable="false"><path d="'+(st.arrowPath||Ko)+'" />';return Qe(mn)}function $r(){if(gr&&cr){var An=it.index,mn=Xt.getPrev(),Kn=Xt.getNext(),ii=mn>-1&&An<mn?Wt.last:Wt.prev,da=Kn>-1&&An>Kn?Wt.first:Wt.next;gr.disabled=mn<0,cr.disabled=Kn<0,ne(gr,wo,ii),ne(cr,wo,da),Pt(nn,gr,cr,mn,Kn)}}return{arrows:Gr,mount:Vr,destroy:$n,update:$r}}var Ap=$e+"-interval";function Yd(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=Ze.bind,Pt=Ze.emit,Ft=Mi(st.interval,it.go.bind(it,">"),Qr),Wt=Ft.isPaused,er=gt.Elements,Xt=gt.Elements,Rr=Xt.root,ar=Xt.toggle,Ir=st.autoplay,gr,cr,Kr=Ir==="pause";function Hr(){Ir&&(Gr(),ar&&ne(ar,yo,er.track.id),Kr||Vr(),$n())}function Gr(){st.pauseOnHover&&Nt(Rr,"mouseenter mouseleave",function(Ei){gr=Ei.type==="mouseenter",In()}),st.pauseOnFocus&&Nt(Rr,"focusin focusout",function(Ei){cr=Ei.type==="focusin",In()}),ar&&Nt(ar,"click",function(){Kr?Vr():oi(!0)}),Et([Ht,Pr,ir],Ft.rewind),Et(Ht,En)}function Vr(){Wt()&>.Slides.isEnough()&&(Ft.start(!st.resetProgress),cr=gr=Kr=!1,$n(),Pt(pt))}function oi(Ei){Ei===void 0&&(Ei=!0),Kr=!!Ei,$n(),Wt()||(Ft.pause(),Pt(Ur))}function In(){Kr||(gr||cr?oi(!1):Vr())}function $n(){ar&&(te(ar,Uo,!Kr),ne(ar,wo,st.i18n[Kr?"play":"pause"]))}function Qr(Ei){var Qn=er.bar;Qn&&De(Qn,"width",Ei*100+"%"),Pt(or,Ei)}function En(Ei){var Qn=gt.Slides.getAt(Ei);Ft.set(Qn&&+Ne(Qn.slide,Ap)||st.interval)}return{mount:Hr,destroy:Ft.cancel,play:Vr,pause:oi,isPaused:Wt}}function Qc(it,gt,st){var Ze=Tn(it),Et=Ze.on;function Nt(){st.cover&&(Et(Ti,C(Ft,!0)),Et([Vn,et,ir],C(Pt,!0)))}function Pt(Wt){gt.Slides.forEach(function(er){var Xt=ie(er.container||er.slide,"img");Xt&&Xt.src&&Ft(Wt,Xt,er)})}function Ft(Wt,er,Xt){Xt.style("background",Wt?'center/cover no-repeat url("'+er.src+'")':"",!0),ze(er,Wt?"none":"")}return{mount:Nt,destroy:C(Pt,!1)}}var Ys=10,Vc=600,ql=.6,Bu=1.5,Yo=800;function rc(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=Ze.emit,Pt=it.state.set,Ft=gt.Move,Wt=Ft.getPosition,er=Ft.getLimit,Xt=Ft.exceededLimit,Rr=Ft.translate,ar=it.is(hr),Ir,gr,cr=1;function Kr(){Et(Ht,oi),Et([et,ir],In)}function Hr(Qr,En,Ei,Qn,$r){var An=Wt();if(oi(),Ei&&(!ar||!Xt())){var mn=gt.Layout.sliderSize(),Kn=_t(Qr)*mn*Rt(It(Qr)/mn)||0;Qr=Ft.toPosition(gt.Controller.toDest(Qr%mn))+Kn}var ii=qt(An,Qr,1);cr=1,En=ii?0:En||Mt(It(Qr-An)/Bu,Yo),gr=Qn,Ir=Mi(En,Gr,C(Vr,An,Qr,$r),1),Pt(A),Nt(Pr),Ir.start()}function Gr(){Pt(f),gr&&gr(),Nt(pr)}function Vr(Qr,En,Ei,Qn){var $r=Wt(),An=Qr+(En-Qr)*$n(Qn),mn=(An-$r)*cr;Rr($r+mn),ar&&!Ei&&Xt()&&(cr*=ql,It(mn)<Ys&&Hr(er(Xt(!0)),Vc,!1,gr,!0))}function oi(){Ir&&Ir.cancel()}function In(){Ir&&!Ir.isPaused()&&(oi(),Gr())}function $n(Qr){var En=st.easingFunc;return En?En(Qr):1-Math.pow(1-Qr,4)}return{mount:Kr,destroy:oi,scroll:Hr,cancel:In}}var Xo={passive:!1,capture:!0};function Xs(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=Ze.emit,Pt=Ze.bind,Ft=Ze.unbind,Wt=it.state,er=gt.Move,Xt=gt.Scroll,Rr=gt.Controller,ar=gt.Elements.track,Ir=gt.Media.reduce,gr=gt.Direction,cr=gr.resolve,Kr=gr.orient,Hr=er.getPosition,Gr=er.exceededLimit,Vr,oi,In,$n,Qr,En=!1,Ei,Qn,$r;function An(){Pt(ar,St,B,Xo),Pt(ar,Qt,B,Xo),Pt(ar,lt,Kn,Xo),Pt(ar,"click",ma,{capture:!0}),Pt(ar,"dragstart",qe),Et([Vn,et],mn)}function mn(){var yn=st.drag;Nh(!yn),$n=yn==="free"}function Kn(yn){if(Ei=!1,!Qn){var Aa=Mo(yn);Fa(yn.target)&&(Aa||!yn.button)&&(Rr.isBusy()?qe(yn,!0):($r=Aa?ar:window,Qr=Wt.is([h,A]),In=null,Pt($r,St,ii,Xo),Pt($r,Qt,da,Xo),er.cancel(),Xt.cancel(),Zn(yn)))}}function ii(yn){if(Wt.is(p)||(Wt.set(p),Nt(xt)),yn.cancelable)if(Qr){er.translate(Vr+Zo(_o(yn)));var Aa=Js(yn)>Ve,el=En!==(En=Gr());(Aa||el)&&Zn(yn),Ei=!0,Nt(nr),qe(yn)}else Fn(yn)&&(Qr=Xr(yn),qe(yn))}function da(yn){Wt.is(p)&&(Wt.set(f),Nt(yr)),Qr&&(Zr(yn),qe(yn)),Ft($r,St,ii),Ft($r,Qt,da),Qr=!1}function ma(yn){!Qn&&Ei&&qe(yn,!0)}function Zn(yn){In=oi,oi=yn,Vr=Hr()}function Zr(yn){var Aa=si(yn),el=ya(Aa),jc=st.rewind&&st.rewindByDrag;Ir(!1),$n?Rr.scroll(el,0,st.snap):it.is(hn)?Rr.go(Kr(_t(Aa))<0?jc?"<":"-":jc?">":"+"):it.is(hr)&&En&&jc?Rr.go(Gr(!0)?">":"<"):Rr.go(Rr.toDest(el),!0),Ir(!0)}function Xr(yn){var Aa=st.dragMinThreshold,el=I(Aa),jc=el&&Aa.mouse||0,oh=(el?Aa.touch:+Aa)||10;return It(_o(yn))>(Mo(yn)?oh:jc)}function Fn(yn){return It(_o(yn))>It(_o(yn,!0))}function si(yn){if(it.is(Jr)||!En){var Aa=Js(yn);if(Aa&&Aa<Ve)return _o(yn)/Aa}return 0}function ya(yn){return Hr()+_t(yn)*ft(It(yn)*(st.flickPower||600),$n?1/0:gt.Layout.listSize()*(st.flickMaxPages||1))}function _o(yn,Aa){return Wi(yn,Aa)-Wi(jr(yn),Aa)}function Js(yn){return Pe(yn)-Pe(jr(yn))}function jr(yn){return oi===yn&&In||oi}function Wi(yn,Aa){return(Mo(yn)?yn.changedTouches[0]:yn)["page"+cr(Aa?"Y":"X")]}function Zo(yn){return yn/(En&&it.is(hr)?me:1)}function Fa(yn){var Aa=st.noDrag;return!le(yn,"."+tc+", ."+Ai)&&(!Aa||!le(yn,Aa))}function Mo(yn){return typeof TouchEvent<"u"&&yn instanceof TouchEvent}function Fh(){return Qr}function Nh(yn){Qn=yn}return{mount:An,disable:Nh,isDragging:Fh}}var Ms={Spacebar:" ",Right:qs,Left:Da,Up:Di,Down:Wo};function bo(it){return it=N(it)?it:it.key,Ms[it]||it}var Wl="keydown";function ih(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=Ze.bind,Pt=Ze.unbind,Ft=it.root,Wt=gt.Direction.resolve,er,Xt;function Rr(){ar(),Et(et,Ir),Et(et,ar),Et(Ht,cr)}function ar(){var Hr=st.keyboard;Hr&&(er=Hr==="global"?window:Ft,Nt(er,Wl,Kr))}function Ir(){Pt(er,Wl)}function gr(Hr){Xt=Hr}function cr(){var Hr=Xt;Xt=!0,T(function(){Xt=Hr})}function Kr(Hr){if(!Xt){var Gr=bo(Hr);Gr===Wt(Da)?it.go("<"):Gr===Wt(qs)&&it.go(">")}}return{mount:Rr,destroy:Ir,disable:gr}}var Oa=$e+"-lazy",uo=Oa+"-srcset",Zs="["+Oa+"], ["+uo+"]";function kh(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=Ze.off,Pt=Ze.bind,Ft=Ze.emit,Wt=st.lazyLoad==="sequential",er=[zr,pr],Xt=[];function Rr(){st.lazyLoad&&(ar(),Et(ir,ar))}function ar(){_(Xt),Ir(),Wt?Hr():(Nt(er),Et(er,gr),gr())}function Ir(){gt.Slides.forEach(function(Gr){Me(Gr.slide,Zs).forEach(function(Vr){var oi=Ne(Vr,Oa),In=Ne(Vr,uo);if(oi!==Vr.src||In!==Vr.srcset){var $n=st.classes.spinner,Qr=Vr.parentElement,En=ie(Qr,"."+$n)||xe("span",$n,Qr);Xt.push([Vr,Gr,En]),Vr.src||ze(Vr,"none")}})})}function gr(){Xt=Xt.filter(function(Gr){var Vr=st.perPage*((st.preloadPages||1)+1)-1;return Gr[1].isWithin(it.index,Vr)?cr(Gr):!0}),Xt.length||Nt(er)}function cr(Gr){var Vr=Gr[0];K(Gr[1].slide,Sf),Pt(Vr,"load error",C(Kr,Gr)),ne(Vr,"src",Ne(Vr,Oa)),ne(Vr,"srcset",Ne(Vr,uo)),Ce(Vr,Oa),Ce(Vr,uo)}function Kr(Gr,Vr){var oi=Gr[0],In=Gr[1];Ge(In.slide,Sf),Vr.type!=="error"&&(ue(Gr[2]),ze(oi,""),Ft(Ti,oi,In),Ft(ot)),Wt&&Hr()}function Hr(){Xt.length&&cr(Xt.shift())}return{mount:Rr,destroy:C(_,Xt),check:gr}}function gu(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=Ze.emit,Pt=Ze.bind,Ft=gt.Slides,Wt=gt.Elements,er=gt.Controller,Xt=er.hasFocus,Rr=er.getIndex,ar=er.go,Ir=gt.Direction.resolve,gr=Wt.pagination,cr=[],Kr,Hr;function Gr(){Vr(),Et([et,ir,ea],Gr);var Qn=st.pagination;gr&&ze(gr,Qn?"":"none"),Qn&&(Et([Ht,Pr,pr],Ei),oi(),Ei(),Nt(fn,{list:Kr,items:cr},En(it.index)))}function Vr(){Kr&&(ue(gr?b(Kr.children):Kr),Ge(Kr,Hr),_(cr),Kr=null),Ze.destroy()}function oi(){var Qn=it.length,$r=st.classes,An=st.i18n,mn=st.perPage,Kn=Xt()?er.getEnd()+1:Bt(Qn/mn);Kr=gr||xe("ul",$r.pagination,Wt.track.parentElement),K(Kr,Hr=zl+"--"+Qr()),ne(Kr,No,"tablist"),ne(Kr,wo,An.select),ne(Kr,Ql,Qr()===Hl?"vertical":"");for(var ii=0;ii<Kn;ii++){var da=xe("li",null,Kr),ma=xe("button",{class:$r.page,type:"button"},da),Zn=Ft.getIn(ii).map(function(Xr){return Xr.slide.id}),Zr=!Xt()&&mn>1?An.pageX:An.slideX;Pt(ma,"click",C(In,ii)),st.paginationKeyboard&&Pt(ma,"keydown",C($n,ii)),ne(da,No,"presentation"),ne(ma,No,"tab"),ne(ma,yo,Zn.join(" ")),ne(ma,wo,on(Zr,ii+1)),ne(ma,Ws,-1),cr.push({li:da,button:ma,page:ii})}}function In(Qn){ar(">"+Qn,!0)}function $n(Qn,$r){var An=cr.length,mn=bo($r),Kn=Qr(),ii=-1;mn===Ir(qs,!1,Kn)?ii=++Qn%An:mn===Ir(Da,!1,Kn)?ii=(--Qn+An)%An:mn==="Home"?ii=0:mn==="End"&&(ii=An-1);var da=cr[ii];da&&(Ye(da.button),ar(">"+ii),qe($r,!0))}function Qr(){return st.paginationDirection||st.direction}function En(Qn){return cr[er.toPage(Qn)]}function Ei(){var Qn=En(Rr(!0)),$r=En(Rr());if(Qn){var An=Qn.button;Ge(An,Uo),Ce(An,Oc),ne(An,Ws,-1)}if($r){var mn=$r.button;K(mn,Uo),ne(mn,Oc,!0),ne(mn,Ws,"")}Nt(ci,{list:Kr,items:cr},Qn,$r)}return{items:cr,mount:Gr,destroy:Vr,getAt:En,update:Ei}}var zc=[" ","Enter"];function xf(it,gt,st){var Ze=st.isNavigation,Et=st.slideFocus,Nt=[];function Pt(){it.splides.forEach(function(gr){gr.isParent||(er(it,gr.splide),er(gr.splide,it))}),Ze&&Xt()}function Ft(){Nt.forEach(function(gr){gr.destroy()}),_(Nt)}function Wt(){Ft(),Pt()}function er(gr,cr){var Kr=Tn(gr);Kr.on(Ht,function(Hr,Gr,Vr){cr.go(cr.is(Jr)?Vr:Hr)}),Nt.push(Kr)}function Xt(){var gr=Tn(it),cr=gr.on;cr(kn,ar),cr(ni,Ir),cr([Vn,et],Rr),Nt.push(gr),gr.emit(_r,it.splides)}function Rr(){ne(gt.Elements.list,Ql,st.direction===Hl?"vertical":"")}function ar(gr){it.go(gr.index)}function Ir(gr,cr){X(zc,bo(cr))&&(ar(gr),qe(cr))}return{setup:C(gt.Media.set,{slideFocus:H(Et)?Ze:Et},!0),mount:Pt,destroy:Ft,remount:Wt}}function qi(it,gt,st){var Ze=Tn(it),Et=Ze.bind,Nt=0;function Pt(){st.wheel&&Et(gt.Elements.track,"wheel",Ft,Xo)}function Ft(er){if(er.cancelable){var Xt=er.deltaY,Rr=Xt<0,ar=Pe(er),Ir=st.wheelMinThreshold||0,gr=st.wheelSleep||0;It(Xt)>Ir&&ar-Nt>gr&&(it.go(Rr?"<":">"),Nt=ar),Wt(Rr)&&qe(er)}}function Wt(er){return!st.releaseWheel||it.state.is(h)||gt.Controller.getAdjacent(er)!==-1}return{mount:Pt}}var Ds=90;function Cf(it,gt,st){var Ze=Tn(it),Et=Ze.on,Nt=gt.Elements.track,Pt=st.live&&!st.isNavigation,Ft=xe("span",Au),Wt=Mi(Ds,C(Xt,!1));function er(){Pt&&(ar(!gt.Autoplay.isPaused()),ne(Nt,Kd,!0),Ft.textContent="…",Et(pt,C(ar,!0)),Et(Ur,C(ar,!1)),Et([zr,pr],C(Xt,!0)))}function Xt(Ir){ne(Nt,bf,Ir),Ir?(ce(Nt,Ft),Wt.start()):(ue(Ft),Wt.cancel())}function Rr(){Ce(Nt,[kc,Kd,bf]),ue(Ft)}function ar(Ir){Pt&&ne(Nt,kc,Ir?"off":"polite")}return{mount:er,disable:ar,destroy:Rr}}var mu=Object.freeze({__proto__:null,Media:qn,Direction:du,Elements:Zt,Slides:Xn,Layout:ji,Clones:Ra,Move:bi,Controller:lo,Arrows:Hc,Autoplay:Yd,Cover:Qc,Scroll:rc,Drag:Xs,Keyboard:ih,LazyLoad:kh,Pagination:gu,Sync:xf,Wheel:qi,Live:Cf}),$l={prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},nc={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:Lo,i18n:$l,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function Gc(it,gt,st){var Ze=gt.Slides;function Et(){Tn(it).on([Vn,ir],Nt)}function Nt(){Ze.forEach(function(Ft){Ft.style("transform","translateX(-"+100*Ft.index+"%)")})}function Pt(Ft,Wt){Ze.style("transition","opacity "+st.speed+"ms "+st.easing),T(Wt)}return{mount:Et,start:Pt,cancel:B}}function ka(it,gt,st){var Ze=gt.Move,Et=gt.Controller,Nt=gt.Scroll,Pt=gt.Elements.list,Ft=C(De,Pt,"transition"),Wt;function er(){Tn(it).bind(Pt,"transitionend",function(Ir){Ir.target===Pt&&Wt&&(Rr(),Wt())})}function Xt(Ir,gr){var cr=Ze.toPosition(Ir,!0),Kr=Ze.getPosition(),Hr=ar(Ir);It(cr-Kr)>=1&&Hr>=1?st.useScroll?Nt.scroll(cr,Hr,!1,gr):(Ft("transform "+Hr+"ms "+st.easing),Ze.translate(cr,!0),Wt=gr):(Ze.jump(Ir),gr())}function Rr(){Ft(""),Nt.cancel()}function ar(Ir){var gr=st.rewindSpeed;if(it.is(hr)&&gr){var cr=Et.getIndex(!0),Kr=Et.getEnd();if(cr===0&&Ir>=Kr||cr>=Kr&&Ir===0)return gr}return st.speed}return{mount:er,start:Xt,cancel:Rr}}var Xd=function(){function it(st,Ze){this.event=Tn(),this.Components={},this.state=Ka(o),this.splides=[],this._o={},this._E={};var Et=N(st)?Re(document,st):st;nt(Et,Et+" is invalid."),this.root=Et,Ze=ye({label:Ne(Et,wo)||"",labelledby:Ne(Et,wf)||""},nc,it.defaults,Ze||{});try{ye(Ze,JSON.parse(Ne(Et,$e)))}catch{nt(!1,"Invalid JSON")}this._o=Object.create(ye({},Ze))}var gt=it.prototype;return gt.mount=function(Ze,Et){var Nt=this,Pt=this.state,Ft=this.Components;nt(Pt.is([o,g]),"Already mounted!"),Pt.set(o),this._C=Ft,this._T=Et||this._T||(this.is(hn)?Gc:ka),this._E=Ze||this._E;var Wt=oe({},mu,this._E,{Transition:this._T});return re(Wt,function(er,Xt){var Rr=er(Nt,Ft,Nt._o);Ft[Xt]=Rr,Rr.setup&&Rr.setup()}),re(Ft,function(er){er.mount&&er.mount()}),this.emit(Vn),K(this.root,vu),Pt.set(f),this.emit(Nr),this},gt.sync=function(Ze){return this.splides.push({splide:Ze}),Ze.splides.push({splide:this,isParent:!0}),this.state.is(f)&&(this._C.Sync.remount(),Ze.Components.Sync.remount()),this},gt.go=function(Ze){return this._C.Controller.go(Ze),this},gt.on=function(Ze,Et){return this.event.on(Ze,Et),this},gt.off=function(Ze){return this.event.off(Ze),this},gt.emit=function(Ze){var Et;return(Et=this.event).emit.apply(Et,[Ze].concat(b(arguments,1))),this},gt.add=function(Ze,Et){return this._C.Slides.add(Ze,Et),this},gt.remove=function(Ze){return this._C.Slides.remove(Ze),this},gt.is=function(Ze){return this._o.type===Ze},gt.refresh=function(){return this.emit(ir),this},gt.destroy=function(Ze){Ze===void 0&&(Ze=!0);var Et=this.event,Nt=this.state;return Nt.is(o)?Tn(this).on(Nr,this.destroy.bind(this,Ze)):(re(this._C,function(Pt){Pt.destroy&&Pt.destroy(Ze)},!0),Et.emit(Tr),Et.destroy(),Ze&&_(this.splides),Nt.set(g)),this},r(it,[{key:"options",get:function(){return this._o},set:function(Ze){this._C.Media.set(Ze,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),it}(),Kl=Xd;Kl.defaults={},Kl.STATES=y;var Iu="is-rendered",ah={listTag:"ul",slideTag:"li"},ic=function(){function it(st,Ze){this.styles={},this.id=st,this.options=Ze}var gt=it.prototype;return gt.rule=function(Ze,Et,Nt,Pt){Pt=Pt||"default";var Ft=this.styles[Pt]=this.styles[Pt]||{},Wt=Ft[Ze]=Ft[Ze]||{};Wt[Et]=Nt},gt.build=function(){var Ze=this,Et="";return this.styles.default&&(Et+=this.buildSelectors(this.styles.default)),Object.keys(this.styles).sort(function(Nt,Pt){return Ze.options.mediaQuery==="min"?+Nt-+Pt:+Pt-+Nt}).forEach(function(Nt){Nt!=="default"&&(Et+="@media screen and (max-width: "+Nt+"px) {",Et+=Ze.buildSelectors(Ze.styles[Nt]),Et+="}")}),Et},gt.buildSelectors=function(Ze){var Et=this,Nt="";return re(Ze,function(Pt,Ft){Ft=("#"+Et.id+" "+Ft).trim(),Nt+=Ft+" {",re(Pt,function(Wt,er){(Wt||Wt===0)&&(Nt+=er+": "+Wt+";")}),Nt+="}"}),Nt},it}(),Lu=function(){function it(st,Ze,Et,Nt){this.slides=[],this.options={},this.breakpoints=[],ye(nc,Nt||{}),ye(ye(this.options,nc),Ze||{}),this.contents=st,this.config=oe({},ah,Et||{}),this.id=this.config.id||Yr("splide"),this.Style=new ic(this.id,this.options),this.Direction=du(null,null,this.options),nt(this.contents.length,"Provide at least 1 content."),this.init()}it.clean=function(Ze){var Et=Tn(Ze),Nt=Et.on,Pt=Ze.root,Ft=Me(Pt,"."+ec);Nt(Vn,function(){ue(ie(Pt,"style"))}),ue(Ft)};var gt=it.prototype;return gt.init=function(){this.parseBreakpoints(),this.initSlides(),this.registerRootStyles(),this.registerTrackStyles(),this.registerSlideStyles(),this.registerListStyles()},gt.initSlides=function(){var Ze=this;Y(this.slides,this.contents.map(function(Et,Nt){Et=N(Et)?{html:Et}:Et,Et.styles=Et.styles||{},Et.attrs=Et.attrs||{},Ze.cover(Et);var Pt=Ze.options.classes.slide+" "+(Nt===0?Uo:"");return oe(Et.attrs,{class:(Pt+" "+(Et.attrs.class||"")).trim(),style:Ze.buildStyles(Et.styles)}),Et})),this.isLoop()&&this.generateClones(this.slides)},gt.registerRootStyles=function(){var Ze=this;this.breakpoints.forEach(function(Et){var Nt=Et[0],Pt=Et[1];Ze.Style.rule(" ","max-width",ke(Pt.width),Nt)})},gt.registerTrackStyles=function(){var Ze=this,Et=this.Style,Nt="."+Tu;this.breakpoints.forEach(function(Pt){var Ft=Pt[0],Wt=Pt[1];Et.rule(Nt,Ze.resolve("paddingLeft"),Ze.cssPadding(Wt,!1),Ft),Et.rule(Nt,Ze.resolve("paddingRight"),Ze.cssPadding(Wt,!0),Ft),Et.rule(Nt,"height",Ze.cssTrackHeight(Wt),Ft)})},gt.registerListStyles=function(){var Ze=this,Et=this.Style,Nt="."+Ju;this.breakpoints.forEach(function(Pt){var Ft=Pt[0],Wt=Pt[1];Et.rule(Nt,"transform",Ze.buildTranslate(Wt),Ft),Ze.cssSlideHeight(Wt)||Et.rule(Nt,"aspect-ratio",Ze.cssAspectRatio(Wt),Ft)})},gt.registerSlideStyles=function(){var Ze=this,Et=this.Style,Nt="."+gn;this.breakpoints.forEach(function(Pt){var Ft=Pt[0],Wt=Pt[1];Et.rule(Nt,"width",Ze.cssSlideWidth(Wt),Ft),Et.rule(Nt,"height",Ze.cssSlideHeight(Wt)||"100%",Ft),Et.rule(Nt,Ze.resolve("marginRight"),ke(Wt.gap)||"0px",Ft),Et.rule(Nt+" > img","display",Wt.cover?"none":"inline",Ft)})},gt.buildTranslate=function(Ze){var Et=this.Direction,Nt=Et.resolve,Pt=Et.orient,Ft=[];return Ft.push(this.cssOffsetClones(Ze)),Ft.push(this.cssOffsetGaps(Ze)),this.isCenter(Ze)&&(Ft.push(this.buildCssValue(Pt(-50),"%")),Ft.push.apply(Ft,this.cssOffsetCenter(Ze))),Ft.filter(Boolean).map(function(Wt){return"translate"+Nt("X")+"("+Wt+")"}).join(" ")},gt.cssOffsetClones=function(Ze){var Et=this.Direction,Nt=Et.resolve,Pt=Et.orient,Ft=this.getCloneCount();if(this.isFixedWidth(Ze)){var Wt=this.parseCssValue(Ze[Nt("fixedWidth")]),er=Wt.value,Xt=Wt.unit;return this.buildCssValue(Pt(er)*Ft,Xt)}var Rr=100*Ft/Ze.perPage;return Pt(Rr)+"%"},gt.cssOffsetCenter=function(Ze){var Et=this.Direction,Nt=Et.resolve,Pt=Et.orient;if(this.isFixedWidth(Ze)){var Ft=this.parseCssValue(Ze[Nt("fixedWidth")]),Wt=Ft.value,er=Ft.unit;return[this.buildCssValue(Pt(Wt/2),er)]}var Xt=[],Rr=Ze.perPage,ar=Ze.gap;if(Xt.push(Pt(50/Rr)+"%"),ar){var Ir=this.parseCssValue(ar),gr=Ir.value,cr=Ir.unit,Kr=(gr/Rr-gr)/2;Xt.push(this.buildCssValue(Pt(Kr),cr))}return Xt},gt.cssOffsetGaps=function(Ze){var Et=this.getCloneCount();if(Et&&Ze.gap){var Nt=this.Direction.orient,Pt=this.parseCssValue(Ze.gap),Ft=Pt.value,Wt=Pt.unit;if(this.isFixedWidth(Ze))return this.buildCssValue(Nt(Ft*Et),Wt);var er=Ze.perPage,Xt=Et/er;return this.buildCssValue(Nt(Xt*Ft),Wt)}return""},gt.resolve=function(Ze){return br(this.Direction.resolve(Ze))},gt.cssPadding=function(Ze,Et){var Nt=Ze.padding,Pt=this.Direction.resolve(Et?"right":"left",!0);return Nt&&ke(Nt[Pt]||(I(Nt)?0:Nt))||"0px"},gt.cssTrackHeight=function(Ze){var Et="";return this.isVertical()&&(Et=this.cssHeight(Ze),nt(Et,'"height" is missing.'),Et="calc("+Et+" - "+this.cssPadding(Ze,!1)+" - "+this.cssPadding(Ze,!0)+")"),Et},gt.cssHeight=function(Ze){return ke(Ze.height)},gt.cssSlideWidth=function(Ze){return Ze.autoWidth?"":ke(Ze.fixedWidth)||(this.isVertical()?"":this.cssSlideSize(Ze))},gt.cssSlideHeight=function(Ze){return ke(Ze.fixedHeight)||(this.isVertical()?Ze.autoHeight?"":this.cssSlideSize(Ze):this.cssHeight(Ze))},gt.cssSlideSize=function(Ze){var Et=ke(Ze.gap);return"calc((100%"+(Et&&" + "+Et)+")/"+(Ze.perPage||1)+(Et&&" - "+Et)+")"},gt.cssAspectRatio=function(Ze){var Et=Ze.heightRatio;return Et?""+1/Et:""},gt.buildCssValue=function(Ze,Et){return""+Ze+Et},gt.parseCssValue=function(Ze){if(N(Ze)){var Et=parseFloat(Ze)||0,Nt=Ze.replace(/\d*(\.\d*)?/,"")||"px";return{value:Et,unit:Nt}}return{value:Ze,unit:"px"}},gt.parseBreakpoints=function(){var Ze=this,Et=this.options.breakpoints;this.breakpoints.push(["default",this.options]),Et&&re(Et,function(Nt,Pt){Ze.breakpoints.push([Pt,ye(ye({},Ze.options),Nt)])})},gt.isFixedWidth=function(Ze){return!!Ze[this.Direction.resolve("fixedWidth")]},gt.isLoop=function(){return this.options.type===Jr},gt.isCenter=function(Ze){if(Ze.focus==="center"){if(this.isLoop())return!0;if(this.options.type===hr)return!this.options.trimSpace}return!1},gt.isVertical=function(){return this.options.direction===Hl},gt.buildClasses=function(){var Ze=this.options;return[Vl,Vl+"--"+Ze.type,Vl+"--"+Ze.direction,Ze.drag&&Vl+"--draggable",Ze.isNavigation&&Vl+"--nav",Uo,!this.config.hidden&&Iu].filter(Boolean).join(" ")},gt.buildAttrs=function(Ze){var Et="";return re(Ze,function(Nt,Pt){Et+=Nt?" "+br(Pt)+'="'+Nt+'"':""}),Et.trim()},gt.buildStyles=function(Ze){var Et="";return re(Ze,function(Nt,Pt){Et+=" "+br(Pt)+":"+Nt+";"}),Et.trim()},gt.renderSlides=function(){var Ze=this,Et=this.config.slideTag;return this.slides.map(function(Nt){return"<"+Et+" "+Ze.buildAttrs(Nt.attrs)+">"+(Nt.html||"")+"</"+Et+">"}).join("")},gt.cover=function(Ze){var Et=Ze.styles,Nt=Ze.html,Pt=Nt===void 0?"":Nt;if(this.options.cover&&!this.options.lazyLoad){var Ft=Pt.match(/<img.*?src\s*=\s*(['"])(.+?)\1.*?>/);Ft&&Ft[2]&&(Et.background="center/cover no-repeat url('"+Ft[2]+"')")}},gt.generateClones=function(Ze){for(var Et=this.options.classes,Nt=this.getCloneCount(),Pt=Ze.slice();Pt.length<Nt;)Y(Pt,Pt);Y(Pt.slice(-Nt).reverse(),Pt.slice(0,Nt)).forEach(function(Ft,Wt){var er=oe({},Ft.attrs,{class:Ft.attrs.class+" "+Et.clone}),Xt=oe({},Ft,{attrs:er});Wt<Nt?Ze.unshift(Xt):Ze.push(Xt)})},gt.getCloneCount=function(){if(this.isLoop()){var Ze=this.options;if(Ze.clones)return Ze.clones;var Et=Mt.apply(void 0,this.breakpoints.map(function(Nt){var Pt=Nt[1];return Pt.perPage}));return Et*((Ze.flickMaxPages||1)+1)}return 0},gt.renderArrows=function(){var Ze="";return Ze+='<div class="'+this.options.classes.arrows+'">',Ze+=this.renderArrow(!0),Ze+=this.renderArrow(!1),Ze+="</div>",Ze},gt.renderArrow=function(Ze){var Et=this.options,Nt=Et.classes,Pt=Et.i18n,Ft={class:Nt.arrow+" "+(Ze?Nt.prev:Nt.next),type:"button",ariaLabel:Ze?Pt.prev:Pt.next};return"<button "+this.buildAttrs(Ft)+'><svg xmlns="'+Pa+'" viewBox="0 0 '+Ho+" "+Ho+'" width="'+Ho+'" height="'+Ho+'"><path d="'+(this.options.arrowPath||Ko)+'" /></svg></button>'},gt.html=function(){var Ze=this.config,Et=Ze.rootClass,Nt=Ze.listTag,Pt=Ze.arrows,Ft=Ze.beforeTrack,Wt=Ze.afterTrack,er=Ze.slider,Xt=Ze.beforeSlider,Rr=Ze.afterSlider,ar="";return ar+='<div id="'+this.id+'" class="'+this.buildClasses()+" "+(Et||"")+'">',ar+="<style>"+this.Style.build()+"</style>",er&&(ar+=Xt||"",ar+='<div class="splide__slider">'),ar+=Ft||"",Pt&&(ar+=this.renderArrows()),ar+='<div class="splide__track">',ar+="<"+Nt+' class="splide__list">',ar+=this.renderSlides(),ar+="</"+Nt+">",ar+="</div>",ar+=Wt||"",er&&(ar+="</div>",ar+=Rr||""),ar+="</div>",ar},it}();t.CLASSES=Lo,t.CLASS_ACTIVE=Uo,t.CLASS_ARROW=Ai,t.CLASS_ARROWS=$s,t.CLASS_ARROW_NEXT=_l,t.CLASS_ARROW_PREV=so,t.CLASS_CLONE=ec,t.CLASS_CONTAINER=Fc,t.CLASS_FOCUS_IN=Nc,t.CLASS_INITIALIZED=vu,t.CLASS_LIST=Ju,t.CLASS_LOADING=Sf,t.CLASS_NEXT=Bn,t.CLASS_OVERFLOW=Uc,t.CLASS_PAGINATION=zl,t.CLASS_PAGINATION_PAGE=tc,t.CLASS_PREV=Gl,t.CLASS_PROGRESS=_f,t.CLASS_PROGRESS_BAR=xn,t.CLASS_ROOT=Vl,t.CLASS_SLIDE=gn,t.CLASS_SPINNER=Ss,t.CLASS_SR=Au,t.CLASS_TOGGLE=fs,t.CLASS_TOGGLE_PAUSE=Ks,t.CLASS_TOGGLE_PLAY=Eu,t.CLASS_TRACK=Tu,t.CLASS_VISIBLE=jl,t.DEFAULTS=nc,t.EVENT_ACTIVE=vt,t.EVENT_ARROWS_MOUNTED=Fr,t.EVENT_ARROWS_UPDATED=nn,t.EVENT_AUTOPLAY_PAUSE=Ur,t.EVENT_AUTOPLAY_PLAY=pt,t.EVENT_AUTOPLAY_PLAYING=or,t.EVENT_CLICK=kn,t.EVENT_DESTROY=Tr,t.EVENT_DRAG=xt,t.EVENT_DRAGGED=yr,t.EVENT_DRAGGING=nr,t.EVENT_END_INDEX_CHANGED=ea,t.EVENT_HIDDEN=Tt,t.EVENT_INACTIVE=At,t.EVENT_LAZYLOAD_LOADED=Ti,t.EVENT_MOUNTED=Vn,t.EVENT_MOVE=Ht,t.EVENT_MOVED=zr,t.EVENT_NAVIGATION_MOUNTED=_r,t.EVENT_OVERFLOW=Ar,t.EVENT_PAGINATION_MOUNTED=fn,t.EVENT_PAGINATION_UPDATED=ci,t.EVENT_READY=Nr,t.EVENT_REFRESH=ir,t.EVENT_RESIZE=ot,t.EVENT_RESIZED=mt,t.EVENT_SCROLL=Pr,t.EVENT_SCROLLED=pr,t.EVENT_SHIFTED=Li,t.EVENT_SLIDE_KEYDOWN=ni,t.EVENT_UPDATED=et,t.EVENT_VISIBLE=Ct,t.EventBinder=cn,t.EventInterface=Tn,t.FADE=hn,t.LOOP=Jr,t.LTR=na,t.RTL=bs,t.RequestInterval=Mi,t.SLIDE=hr,t.STATUS_CLASSES=pu,t.Splide=Kl,t.SplideRenderer=Lu,t.State=Ka,t.TTB=Hl,t.Throttle=ga,t.default=Kl}(W7)),W7}const lgt="modulepreload",ugt=function(t){return"/"+t},Zme={},M5=function(e,r,n){let o=Promise.resolve();if(r&&r.length>0){let A=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),h=f?.nonce||f?.getAttribute("nonce");o=A(r.map(p=>{if(p=ugt(p),p in Zme)return;Zme[p]=!0;const g=p.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const _=document.createElement("link");if(_.rel=g?"stylesheet":lgt,g||(_.as="script"),_.crossOrigin="",_.href=p,h&&_.setAttribute("nonce",h),document.head.appendChild(_),g)return new Promise((b,C)=>{_.addEventListener("load",b),_.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(f){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=f,window.dispatchEvent(h),!h.defaultPrevented)throw f}return o.then(f=>{for(const h of f||[])h.status==="rejected"&&u(h.reason);return e().catch(u)})};var $7,Jme;function cgt(){if(Jme)return $7;Jme=1;var t="Expected a function";function e(r,n,o){if(typeof r!="function")throw new TypeError(t);return setTimeout(function(){r.apply(void 0,o)},n)}return $7=e,$7}var K7,eye;function fgt(){if(eye)return K7;eye=1;var t=cgt(),e=JY(),r=e(function(n,o){return t(n,1,o)});return K7=r,K7}var hgt=fgt();const rQt=Dn(hgt);var D5={exports:{}};/*! @preserve
* numeral.js
* version : 2.0.6
* author : Adam Draper
* license : MIT
* http://adamwdraper.github.com/Numeral-js/
*/var dgt=D5.exports,tye;function fu(){return tye||(tye=1,function(t){(function(e,r){t.exports?t.exports=r():e.numeral=r()})(dgt,function(){var e,r,n="2.0.6",o={},u={},f={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},h={currentLocale:f.currentLocale,zeroFormat:f.zeroFormat,nullFormat:f.nullFormat,defaultFormat:f.defaultFormat,scalePercentBy100:f.scalePercentBy100};function A(p,g){this._input=p,this._value=g}return e=function(p){var g,y,_,b;if(e.isNumeral(p))g=p.value();else if(p===0||typeof p>"u")g=0;else if(p===null||r.isNaN(p))g=null;else if(typeof p=="string")if(h.zeroFormat&&p===h.zeroFormat)g=0;else if(h.nullFormat&&p===h.nullFormat||!p.replace(/[^0-9]+/g,"").length)g=null;else{for(y in o)if(b=typeof o[y].regexps.unformat=="function"?o[y].regexps.unformat():o[y].regexps.unformat,b&&p.match(b)){_=o[y].unformat;break}_=_||e._.stringToNumber,g=_(p)}else g=Number(p)||null;return new A(p,g)},e.version=n,e.isNumeral=function(p){return p instanceof A},e._=r={numberToFormat:function(p,g,y){var _=u[e.options.currentLocale],b=!1,C=!1,T=0,B="",L=1e12,P=1e9,I=1e6,O=1e3,U="",N=!1,H,z,G,j,q,X,Y;if(p=p||0,z=Math.abs(p),e._.includes(g,"(")?(b=!0,g=g.replace(/[\(|\)]/g,"")):(e._.includes(g,"+")||e._.includes(g,"-"))&&(q=e._.includes(g,"+")?g.indexOf("+"):p<0?g.indexOf("-"):-1,g=g.replace(/[\+|\-]/g,"")),e._.includes(g,"a")&&(H=g.match(/a(k|m|b|t)?/),H=H?H[1]:!1,e._.includes(g," a")&&(B=" "),g=g.replace(new RegExp(B+"a[kmbt]?"),""),z>=L&&!H||H==="t"?(B+=_.abbreviations.trillion,p=p/L):z<L&&z>=P&&!H||H==="b"?(B+=_.abbreviations.billion,p=p/P):z<P&&z>=I&&!H||H==="m"?(B+=_.abbreviations.million,p=p/I):(z<I&&z>=O&&!H||H==="k")&&(B+=_.abbreviations.thousand,p=p/O)),e._.includes(g,"[.]")&&(C=!0,g=g.replace("[.]",".")),G=p.toString().split(".")[0],j=g.split(".")[1],X=g.indexOf(","),T=(g.split(".")[0].split(",")[0].match(/0/g)||[]).length,j?(e._.includes(j,"[")?(j=j.replace("]",""),j=j.split("["),U=e._.toFixed(p,j[0].length+j[1].length,y,j[1].length)):U=e._.toFixed(p,j.length,y),G=U.split(".")[0],e._.includes(U,".")?U=_.delimiters.decimal+U.split(".")[1]:U="",C&&Number(U.slice(1))===0&&(U="")):G=e._.toFixed(p,0,y),B&&!H&&Number(G)>=1e3&&B!==_.abbreviations.trillion)switch(G=String(Number(G)/1e3),B){case _.abbreviations.thousand:B=_.abbreviations.million;break;case _.abbreviations.million:B=_.abbreviations.billion;break;case _.abbreviations.billion:B=_.abbreviations.trillion;break}if(e._.includes(G,"-")&&(G=G.slice(1),N=!0),G.length<T)for(var te=T-G.length;te>0;te--)G="0"+G;return X>-1&&(G=G.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+_.delimiters.thousands)),g.indexOf(".")===0&&(G=""),Y=G+U+(B||""),b?Y=(b&&N?"(":"")+Y+(b&&N?")":""):q>=0?Y=q===0?(N?"-":"+")+Y:Y+(N?"-":"+"):N&&(Y="-"+Y),Y},stringToNumber:function(p){var g=u[h.currentLocale],y=p,_={thousand:3,million:6,billion:9,trillion:12},b,C,T;if(h.zeroFormat&&p===h.zeroFormat)C=0;else if(h.nullFormat&&p===h.nullFormat||!p.replace(/[^0-9]+/g,"").length)C=null;else{C=1,g.delimiters.decimal!=="."&&(p=p.replace(/\./g,"").replace(g.delimiters.decimal,"."));for(b in _)if(T=new RegExp("[^a-zA-Z]"+g.abbreviations[b]+"(?:\\)|(\\"+g.currency.symbol+")?(?:\\))?)?$"),y.match(T)){C*=Math.pow(10,_[b]);break}C*=(p.split("-").length+Math.min(p.split("(").length-1,p.split(")").length-1))%2?1:-1,p=p.replace(/[^0-9\.]+/g,""),C*=Number(p)}return C},isNaN:function(p){return typeof p=="number"&&isNaN(p)},includes:function(p,g){return p.indexOf(g)!==-1},insert:function(p,g,y){return p.slice(0,y)+g+p.slice(y)},reduce:function(p,g){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof g!="function")throw new TypeError(g+" is not a function");var y=Object(p),_=y.length>>>0,b=0,C;if(arguments.length===3)C=arguments[2];else{for(;b<_&&!(b in y);)b++;if(b>=_)throw new TypeError("Reduce of empty array with no initial value");C=y[b++]}for(;b<_;b++)b in y&&(C=g(C,y[b],b,y));return C},multiplier:function(p){var g=p.toString().split(".");return g.length<2?1:Math.pow(10,g[1].length)},correctionFactor:function(){var p=Array.prototype.slice.call(arguments);return p.reduce(function(g,y){var _=r.multiplier(y);return g>_?g:_},1)},toFixed:function(p,g,y,_){var b=p.toString().split("."),C=g-(_||0),T,B,L,P;return b.length===2?T=Math.min(Math.max(b[1].length,C),g):T=C,L=Math.pow(10,T),P=(y(p+"e+"+T)/L).toFixed(T),_>g-T&&(B=new RegExp("\\.?0{1,"+(_-(g-T))+"}$"),P=P.replace(B,"")),P}},e.options=h,e.formats=o,e.locales=u,e.locale=function(p){return p&&(h.currentLocale=p.toLowerCase()),h.currentLocale},e.localeData=function(p){if(!p)return u[h.currentLocale];if(p=p.toLowerCase(),!u[p])throw new Error("Unknown locale : "+p);return u[p]},e.reset=function(){for(var p in f)h[p]=f[p]},e.zeroFormat=function(p){h.zeroFormat=typeof p=="string"?p:null},e.nullFormat=function(p){h.nullFormat=typeof p=="string"?p:null},e.defaultFormat=function(p){h.defaultFormat=typeof p=="string"?p:"0.0"},e.register=function(p,g,y){if(g=g.toLowerCase(),this[p+"s"][g])throw new TypeError(g+" "+p+" already registered.");return this[p+"s"][g]=y,y},e.validate=function(p,g){var y,_,b,C,T,B,L,P;if(typeof p!="string"&&(p+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",p)),p=p.trim(),p.match(/^\d+$/))return!0;if(p==="")return!1;try{L=e.localeData(g)}catch{L=e.localeData(e.locale())}return b=L.currency.symbol,T=L.abbreviations,y=L.delimiters.decimal,L.delimiters.thousands==="."?_="\\.":_=L.delimiters.thousands,P=p.match(/^[^\d]+/),P!==null&&(p=p.substr(1),P[0]!==b)||(P=p.match(/[^\d]+$/),P!==null&&(p=p.slice(0,-1),P[0]!==T.thousand&&P[0]!==T.million&&P[0]!==T.billion&&P[0]!==T.trillion))?!1:(B=new RegExp(_+"{2}"),p.match(/[^\d.,]/g)?!1:(C=p.split(y),C.length>2?!1:C.length<2?!!C[0].match(/^\d+.*\d$/)&&!C[0].match(B):C[0].length===1?!!C[0].match(/^\d+$/)&&!C[0].match(B)&&!!C[1].match(/^\d+$/):!!C[0].match(/^\d+.*\d$/)&&!C[0].match(B)&&!!C[1].match(/^\d+$/)))},e.fn=A.prototype={clone:function(){return e(this)},format:function(p,g){var y=this._value,_=p||h.defaultFormat,b,C,T;if(g=g||Math.round,y===0&&h.zeroFormat!==null)C=h.zeroFormat;else if(y===null&&h.nullFormat!==null)C=h.nullFormat;else{for(b in o)if(_.match(o[b].regexps.format)){T=o[b].format;break}T=T||e._.numberToFormat,C=T(y,_,g)}return C},value:function(){return this._value},input:function(){return this._input},set:function(p){return this._value=Number(p),this},add:function(p){var g=r.correctionFactor.call(null,this._value,p);function y(_,b,C,T){return _+Math.round(g*b)}return this._value=r.reduce([this._value,p],y,0)/g,this},subtract:function(p){var g=r.correctionFactor.call(null,this._value,p);function y(_,b,C,T){return _-Math.round(g*b)}return this._value=r.reduce([p],y,Math.round(this._value*g))/g,this},multiply:function(p){function g(y,_,b,C){var T=r.correctionFactor(y,_);return Math.round(y*T)*Math.round(_*T)/Math.round(T*T)}return this._value=r.reduce([this._value,p],g,1),this},divide:function(p){function g(y,_,b,C){var T=r.correctionFactor(y,_);return Math.round(y*T)/Math.round(_*T)}return this._value=r.reduce([this._value,p],g),this},difference:function(p){return Math.abs(e(this._value).subtract(p).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(p){var g=p%10;return~~(p%100/10)===1?"th":g===1?"st":g===2?"nd":g===3?"rd":"th"},currency:{symbol:"$"}}),function(){e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(p,g,y){var _=e._.includes(g," BPS")?" ":"",b;return p=p*1e4,g=g.replace(/\s?BPS/,""),b=e._.numberToFormat(p,g,y),e._.includes(b,")")?(b=b.split(""),b.splice(-1,0,_+"BPS"),b=b.join("")):b=b+_+"BPS",b},unformat:function(p){return+(e._.stringToNumber(p)*1e-4).toFixed(15)}})}(),function(){var p={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},g={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},y=p.suffixes.concat(g.suffixes.filter(function(b){return p.suffixes.indexOf(b)<0})),_=y.join("|");_="("+_.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(_)},format:function(b,C,T){var B,L=e._.includes(C,"ib")?g:p,P=e._.includes(C," b")||e._.includes(C," ib")?" ":"",I,O,U;for(C=C.replace(/\s?i?b/,""),I=0;I<=L.suffixes.length;I++)if(O=Math.pow(L.base,I),U=Math.pow(L.base,I+1),b===null||b===0||b>=O&&b<U){P+=L.suffixes[I],O>0&&(b=b/O);break}return B=e._.numberToFormat(b,C,T),B+P},unformat:function(b){var C=e._.stringToNumber(b),T,B;if(C){for(T=p.suffixes.length-1;T>=0;T--){if(e._.includes(b,p.suffixes[T])){B=Math.pow(p.base,T);break}if(e._.includes(b,g.suffixes[T])){B=Math.pow(g.base,T);break}}C*=B||1}return C}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(p,g,y){var _=e.locales[e.options.currentLocale],b={before:g.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:g.match(/([\+|\-|\)|\s|\$]*)$/)[0]},C,T,B;for(g=g.replace(/\s?\$\s?/,""),C=e._.numberToFormat(p,g,y),p>=0?(b.before=b.before.replace(/[\-\(]/,""),b.after=b.after.replace(/[\-\)]/,"")):p<0&&!e._.includes(b.before,"-")&&!e._.includes(b.before,"(")&&(b.before="-"+b.before),B=0;B<b.before.length;B++)switch(T=b.before[B],T){case"$":C=e._.insert(C,_.currency.symbol,B);break;case" ":C=e._.insert(C," ",B+_.currency.symbol.length-1);break}for(B=b.after.length-1;B>=0;B--)switch(T=b.after[B],T){case"$":C=B===b.after.length-1?C+_.currency.symbol:e._.insert(C,_.currency.symbol,-(b.after.length-(1+B)));break;case" ":C=B===b.after.length-1?C+" ":e._.insert(C," ",-(b.after.length-(1+B)+_.currency.symbol.length-1));break}return C}})}(),function(){e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(p,g,y){var _,b=typeof p=="number"&&!e._.isNaN(p)?p.toExponential():"0e+0",C=b.split("e");return g=g.replace(/e[\+|\-]{1}0/,""),_=e._.numberToFormat(Number(C[0]),g,y),_+"e"+C[1]},unformat:function(p){var g=e._.includes(p,"e+")?p.split("e+"):p.split("e-"),y=Number(g[0]),_=Number(g[1]);_=e._.includes(p,"e-")?_*=-1:_;function b(C,T,B,L){var P=e._.correctionFactor(C,T),I=C*P*(T*P)/(P*P);return I}return e._.reduce([y,Math.pow(10,_)],b,1)}})}(),function(){e.register("format","ordinal",{regexps:{format:/(o)/},format:function(p,g,y){var _=e.locales[e.options.currentLocale],b,C=e._.includes(g," o")?" ":"";return g=g.replace(/\s?o/,""),C+=_.ordinal(p),b=e._.numberToFormat(p,g,y),b+C}})}(),function(){e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(p,g,y){var _=e._.includes(g," %")?" ":"",b;return e.options.scalePercentBy100&&(p=p*100),g=g.replace(/\s?\%/,""),b=e._.numberToFormat(p,g,y),e._.includes(b,")")?(b=b.split(""),b.splice(-1,0,_+"%"),b=b.join("")):b=b+_+"%",b},unformat:function(p){var g=e._.stringToNumber(p);return e.options.scalePercentBy100?g*.01:g}})}(),function(){e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(p,g,y){var _=Math.floor(p/60/60),b=Math.floor((p-_*60*60)/60),C=Math.round(p-_*60*60-b*60);return _+":"+(b<10?"0"+b:b)+":"+(C<10?"0"+C:C)},unformat:function(p){var g=p.split(":"),y=0;return g.length===3?(y=y+Number(g[0])*60*60,y=y+Number(g[1])*60,y=y+Number(g[2])):g.length===2&&(y=y+Number(g[0])*60,y=y+Number(g[1])),Number(y)}})}(),e})}(D5)),D5.exports}var Agt=fu();const nQt=Dn(Agt);var Y7,rye;function vgt(){if(rye)return Y7;rye=1;function t(e){return e===void 0}return Y7=t,Y7}var pgt=vgt();const iQt=Dn(pgt);var nye=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function ggt(t,e){return!!(t===e||nye(t)&&nye(e))}function mgt(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(!ggt(t[r],e[r]))return!1;return!0}function oS(t,e){e===void 0&&(e=mgt);var r,n=[],o,u=!1;function f(){for(var h=[],A=0;A<arguments.length;A++)h[A]=arguments[A];return u&&r===this&&e(h,n)||(o=t.apply(this,h),u=!0,r=this,n=h),o}return f}var ygt=typeof performance=="object"&&typeof performance.now=="function",iye=ygt?function(){return performance.now()}:function(){return Date.now()};function lP(t){cancelAnimationFrame(t.id)}function qMe(t,e){var r=iye();function n(){iye()-r>=e?t.call(null):o.id=requestAnimationFrame(n)}var o={id:requestAnimationFrame(n)};return o}var X7=-1;function XW(t){if(t===void 0&&(t=!1),X7===-1||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(e),X7=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return X7}var e_=null;function uP(t){if(t===void 0&&(t=!1),e_===null||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?e_="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?e_="negative":e_="positive-ascending"),document.body.removeChild(e),e_}return e_}var wgt=150,bgt=function(e){var r=e.columnIndex;e.data;var n=e.rowIndex;return n+":"+r};function _gt(t){var e,r=t.getColumnOffset,n=t.getColumnStartIndexForOffset,o=t.getColumnStopIndexForStartIndex,u=t.getColumnWidth,f=t.getEstimatedTotalHeight,h=t.getEstimatedTotalWidth,A=t.getOffsetForColumnAndAlignment,p=t.getOffsetForRowAndAlignment,g=t.getRowHeight,y=t.getRowOffset,_=t.getRowStartIndexForOffset,b=t.getRowStopIndexForStartIndex,C=t.initInstanceProps,T=t.shouldResetStyleCacheOnItemSizeChange,B=t.validateProps;return e=function(L){iB(P,L);function P(O){var U;return U=L.call(this,O)||this,U._instanceProps=C(U.props,Vi(U)),U._resetIsScrollingTimeoutId=null,U._outerRef=void 0,U.state={instance:Vi(U),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:typeof U.props.initialScrollLeft=="number"?U.props.initialScrollLeft:0,scrollTop:typeof U.props.initialScrollTop=="number"?U.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},U._callOnItemsRendered=void 0,U._callOnItemsRendered=oS(function(N,H,z,G,j,q,X,Y){return U.props.onItemsRendered({overscanColumnStartIndex:N,overscanColumnStopIndex:H,overscanRowStartIndex:z,overscanRowStopIndex:G,visibleColumnStartIndex:j,visibleColumnStopIndex:q,visibleRowStartIndex:X,visibleRowStopIndex:Y})}),U._callOnScroll=void 0,U._callOnScroll=oS(function(N,H,z,G,j){return U.props.onScroll({horizontalScrollDirection:z,scrollLeft:N,scrollTop:H,verticalScrollDirection:G,scrollUpdateWasRequested:j})}),U._getItemStyle=void 0,U._getItemStyle=function(N,H){var z=U.props,G=z.columnWidth,j=z.direction,q=z.rowHeight,X=U._getItemStyleCache(T&&G,T&&j,T&&q),Y=N+":"+H,te;if(X.hasOwnProperty(Y))te=X[Y];else{var K=r(U.props,H,U._instanceProps),ce=j==="rtl";X[Y]=te={position:"absolute",left:ce?void 0:K,right:ce?K:void 0,top:y(U.props,N,U._instanceProps),height:g(U.props,N,U._instanceProps),width:u(U.props,H,U._instanceProps)}}return te},U._getItemStyleCache=void 0,U._getItemStyleCache=oS(function(N,H,z){return{}}),U._onScroll=function(N){var H=N.currentTarget,z=H.clientHeight,G=H.clientWidth,j=H.scrollLeft,q=H.scrollTop,X=H.scrollHeight,Y=H.scrollWidth;U.setState(function(te){if(te.scrollLeft===j&&te.scrollTop===q)return null;var K=U.props.direction,ce=j;if(K==="rtl")switch(uP()){case"negative":ce=-j;break;case"positive-descending":ce=Y-G-j;break}ce=Math.max(0,Math.min(ce,Y-G));var ae=Math.max(0,Math.min(q,X-z));return{isScrolling:!0,horizontalScrollDirection:te.scrollLeft<j?"forward":"backward",scrollLeft:ce,scrollTop:ae,verticalScrollDirection:te.scrollTop<q?"forward":"backward",scrollUpdateWasRequested:!1}},U._resetIsScrollingDebounced)},U._outerRefSetter=function(N){var H=U.props.outerRef;U._outerRef=N,typeof H=="function"?H(N):H!=null&&typeof H=="object"&&H.hasOwnProperty("current")&&(H.current=N)},U._resetIsScrollingDebounced=function(){U._resetIsScrollingTimeoutId!==null&&lP(U._resetIsScrollingTimeoutId),U._resetIsScrollingTimeoutId=qMe(U._resetIsScrolling,wgt)},U._resetIsScrolling=function(){U._resetIsScrollingTimeoutId=null,U.setState({isScrolling:!1},function(){U._getItemStyleCache(-1)})},U}P.getDerivedStateFromProps=function(U,N){return Sgt(U,N),B(U),null};var I=P.prototype;return I.scrollTo=function(U){var N=U.scrollLeft,H=U.scrollTop;N!==void 0&&(N=Math.max(0,N)),H!==void 0&&(H=Math.max(0,H)),this.setState(function(z){return N===void 0&&(N=z.scrollLeft),H===void 0&&(H=z.scrollTop),z.scrollLeft===N&&z.scrollTop===H?null:{horizontalScrollDirection:z.scrollLeft<N?"forward":"backward",scrollLeft:N,scrollTop:H,scrollUpdateWasRequested:!0,verticalScrollDirection:z.scrollTop<H?"forward":"backward"}},this._resetIsScrollingDebounced)},I.scrollToItem=function(U){var N=U.align,H=N===void 0?"auto":N,z=U.columnIndex,G=U.rowIndex,j=this.props,q=j.columnCount,X=j.height,Y=j.rowCount,te=j.width,K=this.state,ce=K.scrollLeft,ae=K.scrollTop,le=XW();z!==void 0&&(z=Math.max(0,Math.min(z,q-1))),G!==void 0&&(G=Math.max(0,Math.min(G,Y-1)));var pe=f(this.props,this._instanceProps),ie=h(this.props,this._instanceProps),he=ie>te?le:0,re=pe>X?le:0;this.scrollTo({scrollLeft:z!==void 0?A(this.props,z,H,ce,this._instanceProps,re):ce,scrollTop:G!==void 0?p(this.props,G,H,ae,this._instanceProps,he):ae})},I.componentDidMount=function(){var U=this.props,N=U.initialScrollLeft,H=U.initialScrollTop;if(this._outerRef!=null){var z=this._outerRef;typeof N=="number"&&(z.scrollLeft=N),typeof H=="number"&&(z.scrollTop=H)}this._callPropsCallbacks()},I.componentDidUpdate=function(){var U=this.props.direction,N=this.state,H=N.scrollLeft,z=N.scrollTop,G=N.scrollUpdateWasRequested;if(G&&this._outerRef!=null){var j=this._outerRef;if(U==="rtl")switch(uP()){case"negative":j.scrollLeft=-H;break;case"positive-ascending":j.scrollLeft=H;break;default:var q=j.clientWidth,X=j.scrollWidth;j.scrollLeft=X-q-H;break}else j.scrollLeft=Math.max(0,H);j.scrollTop=Math.max(0,z)}this._callPropsCallbacks()},I.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&lP(this._resetIsScrollingTimeoutId)},I.render=function(){var U=this.props,N=U.children,H=U.className,z=U.columnCount,G=U.direction,j=U.height,q=U.innerRef,X=U.innerElementType,Y=U.innerTagName,te=U.itemData,K=U.itemKey,ce=K===void 0?bgt:K,ae=U.outerElementType,le=U.outerTagName,pe=U.rowCount,ie=U.style,he=U.useIsScrolling,re=U.width,oe=this.state.isScrolling,ye=this._getHorizontalRangeToRender(),_e=ye[0],Ce=ye[1],ne=this._getVerticalRangeToRender(),xe=ne[0],De=ne[1],ze=[];if(z>0&&pe)for(var Ye=xe;Ye<=De;Ye++)for(var Ne=_e;Ne<=Ce;Ne++)ze.push(Ae.createElement(N,{columnIndex:Ne,data:te,isScrolling:he?oe:void 0,key:ce({columnIndex:Ne,data:te,rowIndex:Ye}),rowIndex:Ye,style:this._getItemStyle(Ye,Ne)}));var yt=f(this.props,this._instanceProps),Ue=h(this.props,this._instanceProps);return Ae.createElement(ae||le||"div",{className:H,onScroll:this._onScroll,ref:this._outerRefSetter,style:On({position:"relative",height:j,width:re,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:G},ie)},Ae.createElement(X||Y||"div",{children:ze,ref:q,style:{height:yt,pointerEvents:oe?"none":void 0,width:Ue}}))},I._callPropsCallbacks=function(){var U=this.props,N=U.columnCount,H=U.onItemsRendered,z=U.onScroll,G=U.rowCount;if(typeof H=="function"&&N>0&&G>0){var j=this._getHorizontalRangeToRender(),q=j[0],X=j[1],Y=j[2],te=j[3],K=this._getVerticalRangeToRender(),ce=K[0],ae=K[1],le=K[2],pe=K[3];this._callOnItemsRendered(q,X,ce,ae,Y,te,le,pe)}if(typeof z=="function"){var ie=this.state,he=ie.horizontalScrollDirection,re=ie.scrollLeft,oe=ie.scrollTop,ye=ie.scrollUpdateWasRequested,_e=ie.verticalScrollDirection;this._callOnScroll(re,oe,he,_e,ye)}},I._getHorizontalRangeToRender=function(){var U=this.props,N=U.columnCount,H=U.overscanColumnCount,z=U.overscanColumnsCount,G=U.overscanCount,j=U.rowCount,q=this.state,X=q.horizontalScrollDirection,Y=q.isScrolling,te=q.scrollLeft,K=H||z||G||1;if(N===0||j===0)return[0,0,0,0];var ce=n(this.props,te,this._instanceProps),ae=o(this.props,ce,te,this._instanceProps),le=!Y||X==="backward"?Math.max(1,K):1,pe=!Y||X==="forward"?Math.max(1,K):1;return[Math.max(0,ce-le),Math.max(0,Math.min(N-1,ae+pe)),ce,ae]},I._getVerticalRangeToRender=function(){var U=this.props,N=U.columnCount,H=U.overscanCount,z=U.overscanRowCount,G=U.overscanRowsCount,j=U.rowCount,q=this.state,X=q.isScrolling,Y=q.verticalScrollDirection,te=q.scrollTop,K=z||G||H||1;if(N===0||j===0)return[0,0,0,0];var ce=_(this.props,te,this._instanceProps),ae=b(this.props,ce,te,this._instanceProps),le=!X||Y==="backward"?Math.max(1,K):1,pe=!X||Y==="forward"?Math.max(1,K):1;return[Math.max(0,ce-le),Math.max(0,Math.min(j-1,ae+pe)),ce,ae]},P}(Ae.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},e}var Sgt=function(e,r){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,r.instance},aye=50,WMe=function(e,r){var n=e.rowCount,o=r.rowMetadataMap,u=r.estimatedRowHeight,f=r.lastMeasuredRowIndex,h=0;if(f>=n&&(f=n-1),f>=0){var A=o[f];h=A.offset+A.size}var p=n-f-1,g=p*u;return h+g},$Me=function(e,r){var n=e.columnCount,o=r.columnMetadataMap,u=r.estimatedColumnWidth,f=r.lastMeasuredColumnIndex,h=0;if(f>=n&&(f=n-1),f>=0){var A=o[f];h=A.offset+A.size}var p=n-f-1,g=p*u;return h+g},og=function(e,r,n,o){var u,f,h;if(e==="column"?(u=o.columnMetadataMap,f=r.columnWidth,h=o.lastMeasuredColumnIndex):(u=o.rowMetadataMap,f=r.rowHeight,h=o.lastMeasuredRowIndex),n>h){var A=0;if(h>=0){var p=u[h];A=p.offset+p.size}for(var g=h+1;g<=n;g++){var y=f(g);u[g]={offset:A,size:y},A+=y}e==="column"?o.lastMeasuredColumnIndex=n:o.lastMeasuredRowIndex=n}return u[n]},oye=function(e,r,n,o){var u,f;e==="column"?(u=n.columnMetadataMap,f=n.lastMeasuredColumnIndex):(u=n.rowMetadataMap,f=n.lastMeasuredRowIndex);var h=f>0?u[f].offset:0;return h>=o?KMe(e,r,n,f,0,o):xgt(e,r,n,Math.max(0,f),o)},KMe=function(e,r,n,o,u,f){for(;u<=o;){var h=u+Math.floor((o-u)/2),A=og(e,r,h,n).offset;if(A===f)return h;A<f?u=h+1:A>f&&(o=h-1)}return u>0?u-1:0},xgt=function(e,r,n,o,u){for(var f=e==="column"?r.columnCount:r.rowCount,h=1;o<f&&og(e,r,o,n).offset<u;)o+=h,h*=2;return KMe(e,r,n,Math.min(o,f-1),Math.floor(o/2),u)},sye=function(e,r,n,o,u,f,h){var A=e==="column"?r.width:r.height,p=og(e,r,n,f),g=e==="column"?$Me(r,f):WMe(r,f),y=Math.max(0,Math.min(g-A,p.offset)),_=Math.max(0,p.offset-A+h+p.size);switch(o==="smart"&&(u>=_-A&&u<=y+A?o="auto":o="center"),o){case"start":return y;case"end":return _;case"center":return Math.round(_+(y-_)/2);case"auto":default:return u>=_&&u<=y?u:_>y||u<_?_:y}},aQt=_gt({getColumnOffset:function(e,r,n){return og("column",e,r,n).offset},getColumnStartIndexForOffset:function(e,r,n){return oye("column",e,n,r)},getColumnStopIndexForStartIndex:function(e,r,n,o){for(var u=e.columnCount,f=e.width,h=og("column",e,r,o),A=n+f,p=h.offset+h.size,g=r;g<u-1&&p<A;)g++,p+=og("column",e,g,o).size;return g},getColumnWidth:function(e,r,n){return n.columnMetadataMap[r].size},getEstimatedTotalHeight:WMe,getEstimatedTotalWidth:$Me,getOffsetForColumnAndAlignment:function(e,r,n,o,u,f){return sye("column",e,r,n,o,u,f)},getOffsetForRowAndAlignment:function(e,r,n,o,u,f){return sye("row",e,r,n,o,u,f)},getRowOffset:function(e,r,n){return og("row",e,r,n).offset},getRowHeight:function(e,r,n){return n.rowMetadataMap[r].size},getRowStartIndexForOffset:function(e,r,n){return oye("row",e,n,r)},getRowStopIndexForStartIndex:function(e,r,n,o){for(var u=e.rowCount,f=e.height,h=og("row",e,r,o),A=n+f,p=h.offset+h.size,g=r;g<u-1&&p<A;)g++,p+=og("row",e,g,o).size;return g},initInstanceProps:function(e,r){var n=e,o=n.estimatedColumnWidth,u=n.estimatedRowHeight,f={columnMetadataMap:{},estimatedColumnWidth:o||aye,estimatedRowHeight:u||aye,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return r.resetAfterColumnIndex=function(h,A){A===void 0&&(A=!0),r.resetAfterIndices({columnIndex:h,shouldForceUpdate:A})},r.resetAfterRowIndex=function(h,A){A===void 0&&(A=!0),r.resetAfterIndices({rowIndex:h,shouldForceUpdate:A})},r.resetAfterIndices=function(h){var A=h.columnIndex,p=h.rowIndex,g=h.shouldForceUpdate,y=g===void 0?!0:g;typeof A=="number"&&(f.lastMeasuredColumnIndex=Math.min(f.lastMeasuredColumnIndex,A-1)),typeof p=="number"&&(f.lastMeasuredRowIndex=Math.min(f.lastMeasuredRowIndex,p-1)),r._getItemStyleCache(-1),y&&r.forceUpdate()},f},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),Cgt=150,Tgt=function(e,r){return e};function Egt(t){var e,r=t.getItemOffset,n=t.getEstimatedTotalSize,o=t.getItemSize,u=t.getOffsetForIndexAndAlignment,f=t.getStartIndexForOffset,h=t.getStopIndexForStartIndex,A=t.initInstanceProps,p=t.shouldResetStyleCacheOnItemSizeChange,g=t.validateProps;return e=function(y){iB(_,y);function _(C){var T;return T=y.call(this,C)||this,T._instanceProps=A(T.props,Vi(T)),T._outerRef=void 0,T._resetIsScrollingTimeoutId=null,T.state={instance:Vi(T),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof T.props.initialScrollOffset=="number"?T.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},T._callOnItemsRendered=void 0,T._callOnItemsRendered=oS(function(B,L,P,I){return T.props.onItemsRendered({overscanStartIndex:B,overscanStopIndex:L,visibleStartIndex:P,visibleStopIndex:I})}),T._callOnScroll=void 0,T._callOnScroll=oS(function(B,L,P){return T.props.onScroll({scrollDirection:B,scrollOffset:L,scrollUpdateWasRequested:P})}),T._getItemStyle=void 0,T._getItemStyle=function(B){var L=T.props,P=L.direction,I=L.itemSize,O=L.layout,U=T._getItemStyleCache(p&&I,p&&O,p&&P),N;if(U.hasOwnProperty(B))N=U[B];else{var H=r(T.props,B,T._instanceProps),z=o(T.props,B,T._instanceProps),G=P==="horizontal"||O==="horizontal",j=P==="rtl",q=G?H:0;U[B]=N={position:"absolute",left:j?void 0:q,right:j?q:void 0,top:G?0:H,height:G?"100%":z,width:G?z:"100%"}}return N},T._getItemStyleCache=void 0,T._getItemStyleCache=oS(function(B,L,P){return{}}),T._onScrollHorizontal=function(B){var L=B.currentTarget,P=L.clientWidth,I=L.scrollLeft,O=L.scrollWidth;T.setState(function(U){if(U.scrollOffset===I)return null;var N=T.props.direction,H=I;if(N==="rtl")switch(uP()){case"negative":H=-I;break;case"positive-descending":H=O-P-I;break}return H=Math.max(0,Math.min(H,O-P)),{isScrolling:!0,scrollDirection:U.scrollOffset<H?"forward":"backward",scrollOffset:H,scrollUpdateWasRequested:!1}},T._resetIsScrollingDebounced)},T._onScrollVertical=function(B){var L=B.currentTarget,P=L.clientHeight,I=L.scrollHeight,O=L.scrollTop;T.setState(function(U){if(U.scrollOffset===O)return null;var N=Math.max(0,Math.min(O,I-P));return{isScrolling:!0,scrollDirection:U.scrollOffset<N?"forward":"backward",scrollOffset:N,scrollUpdateWasRequested:!1}},T._resetIsScrollingDebounced)},T._outerRefSetter=function(B){var L=T.props.outerRef;T._outerRef=B,typeof L=="function"?L(B):L!=null&&typeof L=="object"&&L.hasOwnProperty("current")&&(L.current=B)},T._resetIsScrollingDebounced=function(){T._resetIsScrollingTimeoutId!==null&&lP(T._resetIsScrollingTimeoutId),T._resetIsScrollingTimeoutId=qMe(T._resetIsScrolling,Cgt)},T._resetIsScrolling=function(){T._resetIsScrollingTimeoutId=null,T.setState({isScrolling:!1},function(){T._getItemStyleCache(-1,null)})},T}_.getDerivedStateFromProps=function(T,B){return Bgt(T,B),g(T),null};var b=_.prototype;return b.scrollTo=function(T){T=Math.max(0,T),this.setState(function(B){return B.scrollOffset===T?null:{scrollDirection:B.scrollOffset<T?"forward":"backward",scrollOffset:T,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},b.scrollToItem=function(T,B){B===void 0&&(B="auto");var L=this.props,P=L.itemCount,I=L.layout,O=this.state.scrollOffset;T=Math.max(0,Math.min(T,P-1));var U=0;if(this._outerRef){var N=this._outerRef;I==="vertical"?U=N.scrollWidth>N.clientWidth?XW():0:U=N.scrollHeight>N.clientHeight?XW():0}this.scrollTo(u(this.props,T,B,O,this._instanceProps,U))},b.componentDidMount=function(){var T=this.props,B=T.direction,L=T.initialScrollOffset,P=T.layout;if(typeof L=="number"&&this._outerRef!=null){var I=this._outerRef;B==="horizontal"||P==="horizontal"?I.scrollLeft=L:I.scrollTop=L}this._callPropsCallbacks()},b.componentDidUpdate=function(){var T=this.props,B=T.direction,L=T.layout,P=this.state,I=P.scrollOffset,O=P.scrollUpdateWasRequested;if(O&&this._outerRef!=null){var U=this._outerRef;if(B==="horizontal"||L==="horizontal")if(B==="rtl")switch(uP()){case"negative":U.scrollLeft=-I;break;case"positive-ascending":U.scrollLeft=I;break;default:var N=U.clientWidth,H=U.scrollWidth;U.scrollLeft=H-N-I;break}else U.scrollLeft=I;else U.scrollTop=I}this._callPropsCallbacks()},b.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&lP(this._resetIsScrollingTimeoutId)},b.render=function(){var T=this.props,B=T.children,L=T.className,P=T.direction,I=T.height,O=T.innerRef,U=T.innerElementType,N=T.innerTagName,H=T.itemCount,z=T.itemData,G=T.itemKey,j=G===void 0?Tgt:G,q=T.layout,X=T.outerElementType,Y=T.outerTagName,te=T.style,K=T.useIsScrolling,ce=T.width,ae=this.state.isScrolling,le=P==="horizontal"||q==="horizontal",pe=le?this._onScrollHorizontal:this._onScrollVertical,ie=this._getRangeToRender(),he=ie[0],re=ie[1],oe=[];if(H>0)for(var ye=he;ye<=re;ye++)oe.push(Ae.createElement(B,{data:z,key:j(ye,z),index:ye,isScrolling:K?ae:void 0,style:this._getItemStyle(ye)}));var _e=n(this.props,this._instanceProps);return Ae.createElement(X||Y||"div",{className:L,onScroll:pe,ref:this._outerRefSetter,style:On({position:"relative",height:I,width:ce,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:P},te)},Ae.createElement(U||N||"div",{children:oe,ref:O,style:{height:le?"100%":_e,pointerEvents:ae?"none":void 0,width:le?_e:"100%"}}))},b._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var T=this.props.itemCount;if(T>0){var B=this._getRangeToRender(),L=B[0],P=B[1],I=B[2],O=B[3];this._callOnItemsRendered(L,P,I,O)}}if(typeof this.props.onScroll=="function"){var U=this.state,N=U.scrollDirection,H=U.scrollOffset,z=U.scrollUpdateWasRequested;this._callOnScroll(N,H,z)}},b._getRangeToRender=function(){var T=this.props,B=T.itemCount,L=T.overscanCount,P=this.state,I=P.isScrolling,O=P.scrollDirection,U=P.scrollOffset;if(B===0)return[0,0,0,0];var N=f(this.props,U,this._instanceProps),H=h(this.props,N,U,this._instanceProps),z=!I||O==="backward"?Math.max(1,L):1,G=!I||O==="forward"?Math.max(1,L):1;return[Math.max(0,N-z),Math.max(0,Math.min(B-1,H+G)),N,H]},_}(Ae.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var Bgt=function(e,r){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,r.instance},Igt=50,V_=function(e,r,n){var o=e,u=o.itemSize,f=n.itemMetadataMap,h=n.lastMeasuredIndex;if(r>h){var A=0;if(h>=0){var p=f[h];A=p.offset+p.size}for(var g=h+1;g<=r;g++){var y=u(g);f[g]={offset:A,size:y},A+=y}n.lastMeasuredIndex=r}return f[r]},Lgt=function(e,r,n){var o=r.itemMetadataMap,u=r.lastMeasuredIndex,f=u>0?o[u].offset:0;return f>=n?YMe(e,r,u,0,n):Mgt(e,r,Math.max(0,u),n)},YMe=function(e,r,n,o,u){for(;o<=n;){var f=o+Math.floor((n-o)/2),h=V_(e,f,r).offset;if(h===u)return f;h<u?o=f+1:h>u&&(n=f-1)}return o>0?o-1:0},Mgt=function(e,r,n,o){for(var u=e.itemCount,f=1;n<u&&V_(e,n,r).offset<o;)n+=f,f*=2;return YMe(e,r,Math.min(n,u-1),Math.floor(n/2),o)},lye=function(e,r){var n=e.itemCount,o=r.itemMetadataMap,u=r.estimatedItemSize,f=r.lastMeasuredIndex,h=0;if(f>=n&&(f=n-1),f>=0){var A=o[f];h=A.offset+A.size}var p=n-f-1,g=p*u;return h+g},oQt=Egt({getItemOffset:function(e,r,n){return V_(e,r,n).offset},getItemSize:function(e,r,n){return n.itemMetadataMap[r].size},getEstimatedTotalSize:lye,getOffsetForIndexAndAlignment:function(e,r,n,o,u,f){var h=e.direction,A=e.height,p=e.layout,g=e.width,y=h==="horizontal"||p==="horizontal",_=y?g:A,b=V_(e,r,u),C=lye(e,u),T=Math.max(0,Math.min(C-_,b.offset)),B=Math.max(0,b.offset-_+b.size+f);switch(n==="smart"&&(o>=B-_&&o<=T+_?n="auto":n="center"),n){case"start":return T;case"end":return B;case"center":return Math.round(B+(T-B)/2);case"auto":default:return o>=B&&o<=T?o:o<B?B:T}},getStartIndexForOffset:function(e,r,n){return Lgt(e,n,r)},getStopIndexForStartIndex:function(e,r,n,o){for(var u=e.direction,f=e.height,h=e.itemCount,A=e.layout,p=e.width,g=u==="horizontal"||A==="horizontal",y=g?p:f,_=V_(e,r,o),b=n+y,C=_.offset+_.size,T=r;T<h-1&&C<b;)T++,C+=V_(e,T,o).size;return T},initInstanceProps:function(e,r){var n=e,o=n.estimatedItemSize,u={itemMetadataMap:{},estimatedItemSize:o||Igt,lastMeasuredIndex:-1};return r.resetAfterIndex=function(f,h){h===void 0&&(h=!0),u.lastMeasuredIndex=Math.min(u.lastMeasuredIndex,f-1),r._getItemStyleCache(-1),h&&r.forceUpdate()},u},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function Dgt(t){var e=t.lastRenderedStartIndex,r=t.lastRenderedStopIndex,n=t.startIndex,o=t.stopIndex;return!(n>r||o<e)}function Rgt(t){for(var e=t.isItemLoaded,r=t.itemCount,n=t.minimumBatchSize,o=t.startIndex,u=t.stopIndex,f=[],h=null,A=null,p=o;p<=u;p++){var g=e(p);g?A!==null&&(f.push(h,A),h=A=null):(A=p,h===null&&(h=p))}if(A!==null){for(var y=Math.min(Math.max(A,h+n-1),r-1),_=A+1;_<=y&&!e(_);_++)A=_;f.push(h,A)}if(f.length)for(;f[1]-f[0]+1<n&&f[0]>0;){var b=f[0]-1;if(!e(b))f[0]=b;else break}return f}var Pgt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Ogt=function(){function t(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),kgt=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},uye=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},sQt=function(t){kgt(e,t);function e(){var r,n,o,u;Pgt(this,e);for(var f=arguments.length,h=Array(f),A=0;A<f;A++)h[A]=arguments[A];return u=(n=(o=uye(this,(r=e.__proto__||Object.getPrototypeOf(e)).call.apply(r,[this].concat(h))),o),o._lastRenderedStartIndex=-1,o._lastRenderedStopIndex=-1,o._memoizedUnloadedRanges=[],o._onItemsRendered=function(p){var g=p.visibleStartIndex,y=p.visibleStopIndex;o._lastRenderedStartIndex=g,o._lastRenderedStopIndex=y,o._ensureRowsLoaded(g,y)},o._setRef=function(p){o._listRef=p},n),uye(o,u)}return Ogt(e,[{key:"resetloadMoreItemsCache",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],n&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var n=this.props.children;return n({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(n,o){var u=this.props,f=u.isItemLoaded,h=u.itemCount,A=u.minimumBatchSize,p=A===void 0?10:A,g=u.threshold,y=g===void 0?15:g,_=Rgt({isItemLoaded:f,itemCount:h,minimumBatchSize:p,startIndex:Math.max(0,n-y),stopIndex:Math.min(h-1,o+y)});(this._memoizedUnloadedRanges.length!==_.length||this._memoizedUnloadedRanges.some(function(b,C){return _[C]!==b}))&&(this._memoizedUnloadedRanges=_,this._loadUnloadedRanges(_))}},{key:"_loadUnloadedRanges",value:function(n){for(var o=this,u=this.props.loadMoreItems||this.props.loadMoreRows,f=function(p){var g=n[p],y=n[p+1],_=u(g,y);_?.then(function(){if(Dgt({lastRenderedStartIndex:o._lastRenderedStartIndex,lastRenderedStopIndex:o._lastRenderedStopIndex,startIndex:g,stopIndex:y})){if(o._listRef==null)return;typeof o._listRef.resetAfterIndex=="function"?o._listRef.resetAfterIndex(g,!0):(typeof o._listRef._getItemStyleCache=="function"&&o._listRef._getItemStyleCache(-1),o._listRef.forceUpdate())}})},h=0;h<n.length;h+=2)f(h)}}]),e}(Ae.PureComponent),v2,_u;(function(t){t.VERTICAL="vertical",t.HORIZONTAL="horizontal"})(v2||(v2={})),function(t){t.UP="up",t.DOWN="down",t.LEFT="left",t.RIGHT="right"}(_u||(_u={}));const XMe=t=>typeof t=="number"?t<0?-1:1:t?-1:1,cP=({newValue:t,scrollSize:e,fallbackValue:r})=>{const n=r??e*XMe(t);return Math.abs(t)>e?n:t},Fgt=({ref:t,windowScroll:e})=>{const r={scrollingElement:null,registerEventListener:null};if(!e&&t){let n=null;"_scrollingContainer"in t&&(n=t._scrollingContainer),"Grid"in t&&(n=t.Grid._scrollingContainer),"scrollHeight"in t&&(n=t),r.scrollingElement=n,r.registerEventListener=n}else e&&(r.scrollingElement=document.scrollingElement,r.registerEventListener=document);return r},Ngt=t=>{const{scrollingElement:e,registerEventListener:r}=t;return!(e&&r&&(typeof e.scrollHeight!="number"||typeof e.scrollWidth!="number"||typeof e.scrollLeft!="number"||typeof e.scrollTop!="number"||typeof e.clientHeight!="number"||typeof e.clientWidth!="number"||typeof r.addEventListener!="function"||typeof r.removeEventListener!="function")||!e||!r)||(console.error("Sorry I can't use this container - try using a different DOM element."),!1)},Ugt=t=>{const{state:{clientWidth:e,clientHeight:r},props:{scrollThreshold:n=1},_scrollingContainerRef:o}=t;if(!o?.scrollingElement||e===o.scrollingElement.clientWidth&&r===o.scrollingElement.clientHeight)return;const{clientWidth:u,clientHeight:f,scrollHeight:h,scrollWidth:A}=o.scrollingElement;let p={vertical:0,horizontal:0};if(typeof n=="string"){const g=Math.abs(parseInt(n));p={vertical:cP({newValue:g,scrollSize:h,fallbackValue:f}),horizontal:cP({newValue:g,scrollSize:A,fallbackValue:u})}}else{const g=n>1?1:n<=0?.1:n;p={vertical:g*f,horizontal:g*u}}t.state.computedScrollThreshold=p,t.state.clientWidth=u,t.state.clientHeight=f},cye=(t,e,r)=>Math.abs(t)<=e-r,fye=(t,e,r,n,o)=>Math.abs(t)>=Math.abs(e-r-n-o),ZMe=(t,e)=>{var r;Ugt(t);const n=(r=e?.offset)!==null&&r!==void 0?r:0,{state:{clientHeight:o,clientWidth:u,computedScrollThreshold:{vertical:f,horizontal:h}},props:{reverse:A={}},_scrollingContainerRef:p}=t;if(!p?.scrollingElement)return Object.values(_u).reduce((B,L)=>Object.assign(Object.assign({},B),{[L]:!1}),{});const{scrollHeight:g,scrollWidth:y,scrollLeft:_,scrollTop:b}=p.scrollingElement,{column:C,row:T}=A;return{[C?_u.DOWN:_u.UP]:cye(b,f,n),[C?_u.UP:_u.DOWN]:fye(b,g,o,f,n),[T?_u.RIGHT:_u.LEFT]:cye(_,h,n),[T?_u.LEFT:_u.RIGHT]:fye(_,y,u,h,n)}};function Hgt(t,e,r,n){return new(r||(r=Promise))(function(o,u){function f(p){try{A(n.next(p))}catch(g){u(g)}}function h(p){try{A(n.throw(p))}catch(g){u(g)}}function A(p){var g;p.done?o(p.value):(g=p.value,g instanceof r?g:new r(function(y){y(g)})).then(f,h)}A((n=n.apply(t,[])).next())})}const JMe=(t,{direction:e,offset:r,hardReset:n})=>{(!ZMe(t,{offset:r})[e]&&t.state.thresholdReached[e]||n)&&(t.state.thresholdReached[e]=!1)},eDe=(t,{scrollTop:e,scrollLeft:r})=>{var n;if(!(!((n=t._scrollingContainerRef)===null||n===void 0)&&n.scrollingElement))return;const{scrollHeight:o,scrollWidth:u}=t._scrollingContainerRef.scrollingElement;e!==void 0&&(t._scrollingContainerRef.scrollingElement.scrollTop=cP({newValue:e,scrollSize:o})),r!==void 0&&(t._scrollingContainerRef.scrollingElement.scrollLeft=cP({newValue:r,scrollSize:u}))},Qgt=(t,{axis:e,loadMore:r})=>{var n;if(!(!((n=t._scrollingContainerRef)===null||n===void 0)&&n.scrollingElement)||!t.state.isLoading)return;const o=e===v2.VERTICAL,{state:{rowCount:u=0,columnCount:f=0,scrollHeight:h,scrollWidth:A},props:{rowCount:p=0,columnCount:g=0,reverse:y={}},_scrollingContainerRef:_}=t,{scrollTop:b,scrollLeft:C,scrollHeight:T,scrollWidth:B,clientHeight:L,clientWidth:P}=_.scrollingElement,I=o?p:g,O=o?b:C,U=o?T:B,N=o?h:A,H=o?L:P;if((o?u:f)!==I&&Math.abs(O)<H){const z=XMe(y[o?"column":"row"]);eDe(t,{["scroll"+(o?"Top":"Left")]:O+(U-N)*z})}Object.values(_u).forEach(z=>JMe(t,{direction:z})),t.state[o?"scrollHeight":"scrollWidth"]=U,t.state[o?"rowCount":"columnCount"]=I,t.state.isLoading=!1,setTimeout(()=>r(t),100)},hye=(t,{positiveDirection:e,negativeDirection:r,offset:n,loadMore:o})=>Hgt(void 0,void 0,void 0,function*(){const{state:{isLoading:u,thresholdReached:f},props:{next:h,hasMore:A}}=t,p=e===_u.UP?v2.VERTICAL:v2.HORIZONTAL;if(!u){const g=A[e]&&!f[e]&&n[e],y=!g&&A[r]&&!f[r]&&n[r];if(g||y)try{const _=g?e:r;t.state.thresholdReached[_]=!0,t.state.isLoading=!0,yield h(_)}finally{setTimeout(()=>Qgt(t,{axis:p,loadMore:o}),100)}}}),DE=t=>{const{_scrollingContainerRef:e}=t;if(!e)return;t.state.isLoading||Object.values(_u).forEach(n=>JMe(t,{direction:n,offset:0,hardReset:!0}));const r=ZMe(t);hye(t,{positiveDirection:_u.UP,negativeDirection:_u.DOWN,offset:r,loadMore:DE}),hye(t,{positiveDirection:_u.LEFT,negativeDirection:_u.RIGHT,offset:r,loadMore:DE})};let Vgt=class{constructor(e){this._setRef=function(r){const{windowScroll:n}=this.props,o=Fgt({ref:r,windowScroll:n});if(!Ngt(o))return;this._scrollingContainerRef=o;const u=()=>{var h;if(!(!((h=this._scrollingContainerRef)===null||h===void 0)&&h.scrollingElement))return;const{_scrollingContainerRef:{scrollingElement:A},props:{onScroll:p}}=this,{scrollHeight:g,scrollWidth:y,scrollLeft:_,scrollTop:b,clientHeight:C,clientWidth:T}=A;p&&p({clientHeight:C,clientWidth:T,scrollHeight:g,scrollWidth:y,scrollLeft:_,scrollTop:b}),this.state.isLoading||DE(this)};this.state.rowCount=this.props.rowCount,this.state.columnCount=this.props.columnCount,this.state.scrollHeight=this._scrollingContainerRef.scrollingElement.scrollHeight,this.state.scrollWidth=this._scrollingContainerRef.scrollingElement.scrollWidth;const{initialScroll:f}=this.props;f&&eDe(this,{scrollTop:f.top,scrollLeft:f.left}),this._onCleanup(),this._scrollingContainerRef.registerEventListener.addEventListener("scroll",u),this.state.cleanup.push(()=>{var h,A;(A=(h=this._scrollingContainerRef)===null||h===void 0?void 0:h.registerEventListener)===null||A===void 0||A.removeEventListener("scroll",u)}),DE(this)},this._onPropsChange=function(r){this.props=r;const{state:{isLoading:n},props:{rowCount:o,columnCount:u,hasMore:f},_scrollingContainerRef:h}=this;h&&(o===void 0&&(f.down||f.up)&&console.warn(`You provided props with "hasMore: { up: ${!!f.up}, down: ${!!f.down} }" but "rowCount" is "undefined"`),u===void 0&&(f.left||f.right)&&console.warn(`You provided props with "hasMore: { left: ${!!f.left}, right: ${!!f.right} }" but "columnCount" is "undefined"`),n||DE(this))},this._onCleanup=function(){const{state:{cleanup:r}}=this;r.length&&(r.forEach(n=>n()),this.state.cleanup=[])},this.setRef=this._setRef.bind(this),this.onPropsChange=this._onPropsChange.bind(this),this.onCleanup=this._onCleanup.bind(this),this.props=e,this.state={rowCount:e.rowCount,columnCount:e.columnCount,scrollHeight:0,scrollWidth:0,clientHeight:0,clientWidth:0,isLoading:!1,computedScrollThreshold:{vertical:0,horizontal:0},thresholdReached:{},cleanup:[]}}};const uQt=t=>{const e=Ae.useRef(null),{rowCount:r,columnCount:n,hasMore:{up:o,down:u,left:f,right:h},next:A,windowScroll:p}=t,{current:{setRef:g,onPropsChange:y,onCleanup:_}}=Ae.useRef(new Vgt(t));return Ae.useEffect(()=>(g(p?null:e.current),_),[e.current]),Ae.useEffect(()=>y(t),[r,n,o,u,f,h,A]),e};_dt();function Uu(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var zgt=typeof Symbol=="function"&&Symbol.observable||"@@observable",dye=zgt,Z7=()=>Math.random().toString(36).substring(7).split("").join("."),Ggt={INIT:`@@redux/INIT${Z7()}`,REPLACE:`@@redux/REPLACE${Z7()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Z7()}`},fP=Ggt;function DX(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function tDe(t,e,r){if(typeof t!="function")throw new Error(Uu(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Uu(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Uu(1));return r(tDe)(t,e)}let n=t,o=e,u=new Map,f=u,h=0,A=!1;function p(){f===u&&(f=new Map,u.forEach((B,L)=>{f.set(L,B)}))}function g(){if(A)throw new Error(Uu(3));return o}function y(B){if(typeof B!="function")throw new Error(Uu(4));if(A)throw new Error(Uu(5));let L=!0;p();const P=h++;return f.set(P,B),function(){if(L){if(A)throw new Error(Uu(6));L=!1,p(),f.delete(P),u=null}}}function _(B){if(!DX(B))throw new Error(Uu(7));if(typeof B.type>"u")throw new Error(Uu(8));if(typeof B.type!="string")throw new Error(Uu(17));if(A)throw new Error(Uu(9));try{A=!0,o=n(o,B)}finally{A=!1}return(u=f).forEach(P=>{P()}),B}function b(B){if(typeof B!="function")throw new Error(Uu(10));n=B,_({type:fP.REPLACE})}function C(){const B=y;return{subscribe(L){if(typeof L!="object"||L===null)throw new Error(Uu(11));function P(){const O=L;O.next&&O.next(g())}return P(),{unsubscribe:B(P)}},[dye](){return this}}}return _({type:fP.INIT}),{dispatch:_,subscribe:y,getState:g,replaceReducer:b,[dye]:C}}function jgt(t){Object.keys(t).forEach(e=>{const r=t[e];if(typeof r(void 0,{type:fP.INIT})>"u")throw new Error(Uu(12));if(typeof r(void 0,{type:fP.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Uu(13))})}function qgt(t){const e=Object.keys(t),r={};for(let u=0;u<e.length;u++){const f=e[u];typeof t[f]=="function"&&(r[f]=t[f])}const n=Object.keys(r);let o;try{jgt(r)}catch(u){o=u}return function(f={},h){if(o)throw o;let A=!1;const p={};for(let g=0;g<n.length;g++){const y=n[g],_=r[y],b=f[y],C=_(b,h);if(typeof C>"u")throw h&&h.type,new Error(Uu(14));p[y]=C,A=A||C!==b}return A=A||n.length!==Object.keys(f).length,A?p:f}}function hP(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...n)=>e(r(...n)))}function Wgt(...t){return e=>(r,n)=>{const o=e(r,n);let u=()=>{throw new Error(Uu(15))};const f={getState:o.getState,dispatch:(A,...p)=>u(A,...p)},h=t.map(A=>A(f));return u=hP(...h)(o.dispatch),{...o,dispatch:u}}}function $gt(t){return DX(t)&&"type"in t&&typeof t.type=="string"}var rDe=Symbol.for("immer-nothing"),Aye=Symbol.for("immer-draftable"),Rh=Symbol.for("immer-state");function RA(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var RS=Object.getPrototypeOf;function ew(t){return!!t&&!!t[Rh]}function wg(t){return t?nDe(t)||Array.isArray(t)||!!t[Aye]||!!t.constructor?.[Aye]||rk(t)||nk(t):!1}var Kgt=Object.prototype.constructor.toString();function nDe(t){if(!t||typeof t!="object")return!1;const e=RS(t);if(e===null)return!0;const r=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Kgt}function dP(t,e){tk(t)===0?Reflect.ownKeys(t).forEach(r=>{e(r,t[r],t)}):t.forEach((r,n)=>e(n,r,t))}function tk(t){const e=t[Rh];return e?e.type_:Array.isArray(t)?1:rk(t)?2:nk(t)?3:0}function ZW(t,e){return tk(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function iDe(t,e,r){const n=tk(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Ygt(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function rk(t){return t instanceof Map}function nk(t){return t instanceof Set}function g1(t){return t.copy_||t.base_}function JW(t,e){if(rk(t))return new Map(t);if(nk(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const r=nDe(t);if(e===!0||e==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(t);delete n[Rh];let o=Reflect.ownKeys(n);for(let u=0;u<o.length;u++){const f=o[u],h=n[f];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(n[f]={configurable:!0,writable:!0,enumerable:h.enumerable,value:t[f]})}return Object.create(RS(t),n)}else{const n=RS(t);if(n!==null&&r)return{...t};const o=Object.create(n);return Object.assign(o,t)}}function RX(t,e=!1){return ik(t)||ew(t)||!wg(t)||(tk(t)>1&&(t.set=t.add=t.clear=t.delete=Xgt),Object.freeze(t),e&&Object.entries(t).forEach(([r,n])=>RX(n,!0))),t}function Xgt(){RA(2)}function ik(t){return Object.isFrozen(t)}var Zgt={};function tw(t){const e=Zgt[t];return e||RA(0,t),e}var p2;function aDe(){return p2}function Jgt(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function vye(t,e){e&&(tw("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function e$(t){t$(t),t.drafts_.forEach(emt),t.drafts_=null}function t$(t){t===p2&&(p2=t.parent_)}function pye(t){return p2=Jgt(p2,t)}function emt(t){const e=t[Rh];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function gye(t,e){e.unfinalizedDrafts_=e.drafts_.length;const r=e.drafts_[0];return t!==void 0&&t!==r?(r[Rh].modified_&&(e$(e),RA(4)),wg(t)&&(t=AP(e,t),e.parent_||vP(e,t)),e.patches_&&tw("Patches").generateReplacementPatches_(r[Rh].base_,t,e.patches_,e.inversePatches_)):t=AP(e,r,[]),e$(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==rDe?t:void 0}function AP(t,e,r){if(ik(e))return e;const n=e[Rh];if(!n)return dP(e,(o,u)=>mye(t,n,e,o,u,r)),e;if(n.scope_!==t)return e;if(!n.modified_)return vP(t,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const o=n.copy_;let u=o,f=!1;n.type_===3&&(u=new Set(o),o.clear(),f=!0),dP(u,(h,A)=>mye(t,n,o,h,A,r,f)),vP(t,o,!1),r&&t.patches_&&tw("Patches").generatePatches_(n,r,t.patches_,t.inversePatches_)}return n.copy_}function mye(t,e,r,n,o,u,f){if(ew(o)){const h=u&&e&&e.type_!==3&&!ZW(e.assigned_,n)?u.concat(n):void 0,A=AP(t,o,h);if(iDe(r,n,A),ew(A))t.canAutoFreeze_=!1;else return}else f&&r.add(o);if(wg(o)&&!ik(o)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;AP(t,o),(!e||!e.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&vP(t,o)}}function vP(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&RX(e,r)}function tmt(t,e){const r=Array.isArray(t),n={type_:r?1:0,scope_:e?e.scope_:aDe(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,u=PX;r&&(o=[n],u=g2);const{revoke:f,proxy:h}=Proxy.revocable(o,u);return n.draft_=h,n.revoke_=f,h}var PX={get(t,e){if(e===Rh)return t;const r=g1(t);if(!ZW(r,e))return rmt(t,r,e);const n=r[e];return t.finalized_||!wg(n)?n:n===J7(t.base_,e)?(e9(t),t.copy_[e]=n$(n,t)):n},has(t,e){return e in g1(t)},ownKeys(t){return Reflect.ownKeys(g1(t))},set(t,e,r){const n=oDe(g1(t),e);if(n?.set)return n.set.call(t.draft_,r),!0;if(!t.modified_){const o=J7(g1(t),e),u=o?.[Rh];if(u&&u.base_===r)return t.copy_[e]=r,t.assigned_[e]=!1,!0;if(Ygt(r,o)&&(r!==void 0||ZW(t.base_,e)))return!0;e9(t),r$(t)}return t.copy_[e]===r&&(r!==void 0||e in t.copy_)||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_[e]=!0),!0},deleteProperty(t,e){return J7(t.base_,e)!==void 0||e in t.base_?(t.assigned_[e]=!1,e9(t),r$(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const r=g1(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.type_!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty(){RA(11)},getPrototypeOf(t){return RS(t.base_)},setPrototypeOf(){RA(12)}},g2={};dP(PX,(t,e)=>{g2[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}});g2.deleteProperty=function(t,e){return g2.set.call(this,t,e,void 0)};g2.set=function(t,e,r){return PX.set.call(this,t[0],e,r,t[0])};function J7(t,e){const r=t[Rh];return(r?g1(r):t)[e]}function rmt(t,e,r){const n=oDe(e,r);return n?"value"in n?n.value:n.get?.call(t.draft_):void 0}function oDe(t,e){if(!(e in t))return;let r=RS(t);for(;r;){const n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=RS(r)}}function r$(t){t.modified_||(t.modified_=!0,t.parent_&&r$(t.parent_))}function e9(t){t.copy_||(t.copy_=JW(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var nmt=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,r,n)=>{if(typeof e=="function"&&typeof r!="function"){const u=r;r=e;const f=this;return function(A=u,...p){return f.produce(A,g=>r.call(this,g,...p))}}typeof r!="function"&&RA(6),n!==void 0&&typeof n!="function"&&RA(7);let o;if(wg(e)){const u=pye(this),f=n$(e,void 0);let h=!0;try{o=r(f),h=!1}finally{h?e$(u):t$(u)}return vye(u,n),gye(o,u)}else if(!e||typeof e!="object"){if(o=r(e),o===void 0&&(o=e),o===rDe&&(o=void 0),this.autoFreeze_&&RX(o,!0),n){const u=[],f=[];tw("Patches").generateReplacementPatches_(e,o,u,f),n(u,f)}return o}else RA(1,e)},this.produceWithPatches=(e,r)=>{if(typeof e=="function")return(f,...h)=>this.produceWithPatches(f,A=>e(A,...h));let n,o;return[this.produce(e,r,(f,h)=>{n=f,o=h}),n,o]},typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof t?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){wg(t)||RA(8),ew(t)&&(t=imt(t));const e=pye(this),r=n$(t,void 0);return r[Rh].isManual_=!0,t$(e),r}finishDraft(t,e){const r=t&&t[Rh];(!r||!r.isManual_)&&RA(9);const{scope_:n}=r;return vye(n,e),gye(void 0,n)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){const o=e[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(e=e.slice(r+1));const n=tw("Patches").applyPatches_;return ew(t)?n(t,e):this.produce(t,o=>n(o,e))}};function n$(t,e){const r=rk(t)?tw("MapSet").proxyMap_(t,e):nk(t)?tw("MapSet").proxySet_(t,e):tmt(t,e);return(e?e.scope_:aDe()).drafts_.push(r),r}function imt(t){return ew(t)||RA(10,t),sDe(t)}function sDe(t){if(!wg(t)||ik(t))return t;const e=t[Rh];let r;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=JW(t,e.scope_.immer_.useStrictShallowCopy_)}else r=JW(t,!0);return dP(r,(n,o)=>{iDe(r,n,sDe(o))}),e&&(e.finalized_=!1),r}var Ph=new nmt,lDe=Ph.produce;Ph.produceWithPatches.bind(Ph);Ph.setAutoFreeze.bind(Ph);Ph.setUseStrictShallowCopy.bind(Ph);Ph.applyPatches.bind(Ph);Ph.createDraft.bind(Ph);Ph.finishDraft.bind(Ph);function amt(t,e=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(e)}function omt(t,e=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(e)}function smt(t,e="expected all items to be functions, instead received the following types: "){if(!t.every(r=>typeof r=="function")){const r=t.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${e}[${r}]`)}}var yye=t=>Array.isArray(t)?t:[t];function lmt(t){const e=Array.isArray(t[0])?t[0]:t;return smt(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function umt(t,e){const r=[],{length:n}=t;for(let o=0;o<n;o++)r.push(t[o].apply(null,e));return r}var cmt=class{constructor(t){this.value=t}deref(){return this.value}},fmt=typeof WeakRef<"u"?WeakRef:cmt,hmt=0,wye=1;function UM(){return{s:hmt,v:void 0,o:null,p:null}}function uDe(t,e={}){let r=UM();const{resultEqualityCheck:n}=e;let o,u=0;function f(){let h=r;const{length:A}=arguments;for(let y=0,_=A;y<_;y++){const b=arguments[y];if(typeof b=="function"||typeof b=="object"&&b!==null){let C=h.o;C===null&&(h.o=C=new WeakMap);const T=C.get(b);T===void 0?(h=UM(),C.set(b,h)):h=T}else{let C=h.p;C===null&&(h.p=C=new Map);const T=C.get(b);T===void 0?(h=UM(),C.set(b,h)):h=T}}const p=h;let g;if(h.s===wye)g=h.v;else if(g=t.apply(null,arguments),u++,n){const y=o?.deref?.()??o;y!=null&&n(y,g)&&(g=y,u!==0&&u--),o=typeof g=="object"&&g!==null||typeof g=="function"?new fmt(g):g}return p.s=wye,p.v=g,g}return f.clearCache=()=>{r=UM(),f.resetResultsCount()},f.resultsCount=()=>u,f.resetResultsCount=()=>{u=0},f}function dmt(t,...e){const r=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,n=(...o)=>{let u=0,f=0,h,A={},p=o.pop();typeof p=="object"&&(A=p,p=o.pop()),amt(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const g={...r,...A},{memoize:y,memoizeOptions:_=[],argsMemoize:b=uDe,argsMemoizeOptions:C=[]}=g,T=yye(_),B=yye(C),L=lmt(o),P=y(function(){return u++,p.apply(null,arguments)},...T),I=b(function(){f++;const U=umt(L,arguments);return h=P.apply(null,U),h},...B);return Object.assign(I,{resultFunc:p,memoizedResultFunc:P,dependencies:L,dependencyRecomputations:()=>f,resetDependencyRecomputations:()=>{f=0},lastResult:()=>h,recomputations:()=>u,resetRecomputations:()=>{u=0},memoize:y,argsMemoize:b})};return Object.assign(n,{withTypes:()=>n}),n}var Amt=dmt(uDe),vmt=Object.assign((t,e=Amt)=>{omt(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const r=Object.keys(t),n=r.map(u=>t[u]);return e(n,(...u)=>u.reduce((f,h,A)=>(f[r[A]]=h,f),{}))},{withTypes:()=>vmt});function cDe(t){return({dispatch:r,getState:n})=>o=>u=>typeof u=="function"?u(r,n,t):o(u)}var pmt=cDe(),gmt=cDe,mmt=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hP:hP.apply(null,arguments)},ymt=t=>t&&typeof t.match=="function";function RE(t,e){function r(...n){if(e){let o=e(...n);if(!o)throw new Error(dg(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:n[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=n=>$gt(n)&&n.type===t,r}var fDe=class iE extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,iE.prototype)}static get[Symbol.species](){return iE}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new iE(...e[0].concat(this)):new iE(...e.concat(this))}};function bye(t){return wg(t)?lDe(t,()=>{}):t}function HM(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function wmt(t){return typeof t=="boolean"}var bmt=()=>function(e){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:u=!0}=e??{};let f=new fDe;return r&&(wmt(r)?f.push(pmt):f.push(gmt(r.extraArgument))),f},_mt="RTK_autoBatch",_ye=t=>e=>{setTimeout(e,t)},Smt=(t={type:"raf"})=>e=>(...r)=>{const n=e(...r);let o=!0,u=!1,f=!1;const h=new Set,A=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:_ye(10):t.type==="callback"?t.queueNotification:_ye(t.timeout),p=()=>{f=!1,u&&(u=!1,h.forEach(g=>g()))};return Object.assign({},n,{subscribe(g){const y=()=>o&&g(),_=n.subscribe(y);return h.add(g),()=>{_(),h.delete(g)}},dispatch(g){try{return o=!g?.meta?.[_mt],u=!o,u&&(f||(f=!0,A(p))),n.dispatch(g)}finally{o=!0}}})},xmt=t=>function(r){const{autoBatch:n=!0}=r??{};let o=new fDe(t);return n&&o.push(Smt(typeof n=="object"?n:void 0)),o};function cQt(t){const e=bmt(),{reducer:r=void 0,middleware:n,devTools:o=!0,preloadedState:u=void 0,enhancers:f=void 0}=t||{};let h;if(typeof r=="function")h=r;else if(DX(r))h=qgt(r);else throw new Error(dg(1));let A;typeof n=="function"?A=n(e):A=e();let p=hP;o&&(p=mmt({trace:!1,...typeof o=="object"&&o}));const g=Wgt(...A),y=xmt(g);let _=typeof f=="function"?f(y):y();const b=p(..._);return tDe(h,u,b)}function hDe(t){const e={},r=[];let n;const o={addCase(u,f){const h=typeof u=="string"?u:u.type;if(!h)throw new Error(dg(28));if(h in e)throw new Error(dg(29));return e[h]=f,o},addAsyncThunk(u,f){return f.pending&&(e[u.pending.type]=f.pending),f.rejected&&(e[u.rejected.type]=f.rejected),f.fulfilled&&(e[u.fulfilled.type]=f.fulfilled),f.settled&&r.push({matcher:u.settled,reducer:f.settled}),o},addMatcher(u,f){return r.push({matcher:u,reducer:f}),o},addDefaultCase(u){return n=u,o}};return t(o),[e,r,n]}function Cmt(t){return typeof t=="function"}function Tmt(t,e){let[r,n,o]=hDe(e),u;if(Cmt(t))u=()=>bye(t());else{const h=bye(t);u=()=>h}function f(h=u(),A){let p=[r[A.type],...n.filter(({matcher:g})=>g(A)).map(({reducer:g})=>g)];return p.filter(g=>!!g).length===0&&(p=[o]),p.reduce((g,y)=>{if(y)if(ew(g)){const b=y(g,A);return b===void 0?g:b}else{if(wg(g))return lDe(g,_=>y(_,A));{const _=y(g,A);if(_===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}}return g},h)}return f.getInitialState=u,f}var Emt=(t,e)=>ymt(t)?t.match(e):t(e);function Bmt(...t){return e=>t.some(r=>Emt(r,e))}var Imt="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Lmt=(t=21)=>{let e="",r=t;for(;r--;)e+=Imt[Math.random()*64|0];return e},Mmt=["name","message","stack","code"],t9=class{constructor(t,e){this.payload=t,this.meta=e}_type},Sye=class{constructor(t,e){this.payload=t,this.meta=e}_type},Dmt=t=>{if(typeof t=="object"&&t!==null){const e={};for(const r of Mmt)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},xye="External signal was aborted",Rmt=(()=>{function t(e,r,n){const o=RE(e+"/fulfilled",(A,p,g,y)=>({payload:A,meta:{...y||{},arg:g,requestId:p,requestStatus:"fulfilled"}})),u=RE(e+"/pending",(A,p,g)=>({payload:void 0,meta:{...g||{},arg:p,requestId:A,requestStatus:"pending"}})),f=RE(e+"/rejected",(A,p,g,y,_)=>({payload:y,error:(n&&n.serializeError||Dmt)(A||"Rejected"),meta:{..._||{},arg:g,requestId:p,rejectedWithValue:!!y,requestStatus:"rejected",aborted:A?.name==="AbortError",condition:A?.name==="ConditionError"}}));function h(A,{signal:p}={}){return(g,y,_)=>{const b=n?.idGenerator?n.idGenerator(A):Lmt(),C=new AbortController;let T,B;function L(I){B=I,C.abort()}p&&(p.aborted?L(xye):p.addEventListener("abort",()=>L(xye),{once:!0}));const P=async function(){let I;try{let U=n?.condition?.(A,{getState:y,extra:_});if(Omt(U)&&(U=await U),U===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const N=new Promise((H,z)=>{T=()=>{z({name:"AbortError",message:B||"Aborted"})},C.signal.addEventListener("abort",T)});g(u(b,A,n?.getPendingMeta?.({requestId:b,arg:A},{getState:y,extra:_}))),I=await Promise.race([N,Promise.resolve(r(A,{dispatch:g,getState:y,extra:_,requestId:b,signal:C.signal,abort:L,rejectWithValue:(H,z)=>new t9(H,z),fulfillWithValue:(H,z)=>new Sye(H,z)})).then(H=>{if(H instanceof t9)throw H;return H instanceof Sye?o(H.payload,b,A,H.meta):o(H,b,A)})])}catch(U){I=U instanceof t9?f(null,b,A,U.payload,U.meta):f(U,b,A)}finally{T&&C.signal.removeEventListener("abort",T)}return n&&!n.dispatchConditionRejection&&f.match(I)&&I.meta.condition||g(I),I}();return Object.assign(P,{abort:L,requestId:b,arg:A,unwrap(){return P.then(Pmt)}})}}return Object.assign(h,{pending:u,rejected:f,fulfilled:o,settled:Bmt(f,o),typePrefix:e})}return t.withTypes=()=>t,t})();function Pmt(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Omt(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var dDe=Symbol.for("rtk-slice-createasyncthunk"),fQt={[dDe]:Rmt};function kmt(t,e){return`${t}/${e}`}function Fmt({creators:t}={}){const e=t?.asyncThunk?.[dDe];return function(n){const{name:o,reducerPath:u=o}=n;if(!o)throw new Error(dg(11));const f=(typeof n.reducers=="function"?n.reducers(Umt()):n.reducers)||{},h=Object.keys(f),A={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(I,O){const U=typeof I=="string"?I:I.type;if(!U)throw new Error(dg(12));if(U in A.sliceCaseReducersByType)throw new Error(dg(13));return A.sliceCaseReducersByType[U]=O,p},addMatcher(I,O){return A.sliceMatchers.push({matcher:I,reducer:O}),p},exposeAction(I,O){return A.actionCreators[I]=O,p},exposeCaseReducer(I,O){return A.sliceCaseReducersByName[I]=O,p}};h.forEach(I=>{const O=f[I],U={reducerName:I,type:kmt(o,I),createNotation:typeof n.reducers=="function"};Qmt(O)?zmt(U,O,p,e):Hmt(U,O,p)});function g(){const[I={},O=[],U=void 0]=typeof n.extraReducers=="function"?hDe(n.extraReducers):[n.extraReducers],N={...I,...A.sliceCaseReducersByType};return Tmt(n.initialState,H=>{for(let z in N)H.addCase(z,N[z]);for(let z of A.sliceMatchers)H.addMatcher(z.matcher,z.reducer);for(let z of O)H.addMatcher(z.matcher,z.reducer);U&&H.addDefaultCase(U)})}const y=I=>I,_=new Map,b=new WeakMap;let C;function T(I,O){return C||(C=g()),C(I,O)}function B(){return C||(C=g()),C.getInitialState()}function L(I,O=!1){function U(H){let z=H[I];return typeof z>"u"&&O&&(z=HM(b,U,B)),z}function N(H=y){const z=HM(_,O,()=>new WeakMap);return HM(z,H,()=>{const G={};for(const[j,q]of Object.entries(n.selectors??{}))G[j]=Nmt(q,H,()=>HM(b,H,B),O);return G})}return{reducerPath:I,getSelectors:N,get selectors(){return N(U)},selectSlice:U}}const P={name:o,reducer:T,actions:A.actionCreators,caseReducers:A.sliceCaseReducersByName,getInitialState:B,...L(u),injectInto(I,{reducerPath:O,...U}={}){const N=O??u;return I.inject({reducerPath:N,reducer:T},U),{...P,...L(N,!0)}}};return P}}function Nmt(t,e,r,n){function o(u,...f){let h=e(u);return typeof h>"u"&&n&&(h=r()),t(h,...f)}return o.unwrapped=t,o}var hQt=Fmt();function Umt(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function Hmt({type:t,reducerName:e,createNotation:r},n,o){let u,f;if("reducer"in n){if(r&&!Vmt(n))throw new Error(dg(17));u=n.reducer,f=n.prepare}else u=n;o.addCase(t,u).exposeCaseReducer(e,u).exposeAction(e,f?RE(t,f):RE(t))}function Qmt(t){return t._reducerDefinitionType==="asyncThunk"}function Vmt(t){return t._reducerDefinitionType==="reducerWithPrepare"}function zmt({type:t,reducerName:e},r,n,o){if(!o)throw new Error(dg(18));const{payloadCreator:u,fulfilled:f,pending:h,rejected:A,settled:p,options:g}=r,y=o(t,u,g);n.exposeAction(e,y),f&&n.addCase(y.fulfilled,f),h&&n.addCase(y.pending,h),A&&n.addCase(y.rejected,A),p&&n.addMatcher(y.settled,p),n.exposeCaseReducer(e,{fulfilled:f||QM,pending:h||QM,rejected:A||QM,settled:p||QM})}function QM(){}function dg(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const ip=Object.create(null);ip.open="0";ip.close="1";ip.ping="2";ip.pong="3";ip.message="4";ip.upgrade="5";ip.noop="6";const R5=Object.create(null);Object.keys(ip).forEach(t=>{R5[ip[t]]=t});const i$={type:"error",data:"parser error"},ADe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",vDe=typeof ArrayBuffer=="function",pDe=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,OX=({type:t,data:e},r,n)=>ADe&&e instanceof Blob?r?n(e):Cye(e,n):vDe&&(e instanceof ArrayBuffer||pDe(e))?r?n(e):Cye(new Blob([e]),n):n(ip[t]+(e||"")),Cye=(t,e)=>{const r=new FileReader;return r.onload=function(){const n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function Tye(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let r9;function Gmt(t,e){if(ADe&&t.data instanceof Blob)return t.data.arrayBuffer().then(Tye).then(e);if(vDe&&(t.data instanceof ArrayBuffer||pDe(t.data)))return e(Tye(t.data));OX(t,!1,r=>{r9||(r9=new TextEncoder),e(r9.encode(r))})}const Eye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",aE=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Eye.length;t++)aE[Eye.charCodeAt(t)]=t;const jmt=t=>{let e=t.length*.75,r=t.length,n,o=0,u,f,h,A;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const p=new ArrayBuffer(e),g=new Uint8Array(p);for(n=0;n<r;n+=4)u=aE[t.charCodeAt(n)],f=aE[t.charCodeAt(n+1)],h=aE[t.charCodeAt(n+2)],A=aE[t.charCodeAt(n+3)],g[o++]=u<<2|f>>4,g[o++]=(f&15)<<4|h>>2,g[o++]=(h&3)<<6|A&63;return p},qmt=typeof ArrayBuffer=="function",kX=(t,e)=>{if(typeof t!="string")return{type:"message",data:gDe(t,e)};const r=t.charAt(0);return r==="b"?{type:"message",data:Wmt(t.substring(1),e)}:R5[r]?t.length>1?{type:R5[r],data:t.substring(1)}:{type:R5[r]}:i$},Wmt=(t,e)=>{if(qmt){const r=jmt(t);return gDe(r,e)}else return{base64:!0,data:t}},gDe=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},mDe="",$mt=(t,e)=>{const r=t.length,n=new Array(r);let o=0;t.forEach((u,f)=>{OX(u,!1,h=>{n[f]=h,++o===r&&e(n.join(mDe))})})},Kmt=(t,e)=>{const r=t.split(mDe),n=[];for(let o=0;o<r.length;o++){const u=kX(r[o],e);if(n.push(u),u.type==="error")break}return n};function Ymt(){return new TransformStream({transform(t,e){Gmt(t,r=>{const n=r.length;let o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);const u=new DataView(o.buffer);u.setUint8(0,126),u.setUint16(1,n)}else{o=new Uint8Array(9);const u=new DataView(o.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(n))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})}let n9;function VM(t){return t.reduce((e,r)=>e+r.length,0)}function zM(t,e){if(t[0].length===e)return t.shift();const r=new Uint8Array(e);let n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function Xmt(t,e){n9||(n9=new TextDecoder);const r=[];let n=0,o=-1,u=!1;return new TransformStream({transform(f,h){for(r.push(f);;){if(n===0){if(VM(r)<1)break;const A=zM(r,1);u=(A[0]&128)===128,o=A[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(VM(r)<2)break;const A=zM(r,2);o=new DataView(A.buffer,A.byteOffset,A.length).getUint16(0),n=3}else if(n===2){if(VM(r)<8)break;const A=zM(r,8),p=new DataView(A.buffer,A.byteOffset,A.length),g=p.getUint32(0);if(g>Math.pow(2,21)-1){h.enqueue(i$);break}o=g*Math.pow(2,32)+p.getUint32(4),n=3}else{if(VM(r)<o)break;const A=zM(r,o);h.enqueue(kX(u?A:n9.decode(A),e)),n=0}if(o===0||o>t){h.enqueue(i$);break}}}})}const yDe=4;function Ul(t){if(t)return Zmt(t)}function Zmt(t){for(var e in Ul.prototype)t[e]=Ul.prototype[e];return t}Ul.prototype.on=Ul.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};Ul.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};Ul.prototype.off=Ul.prototype.removeListener=Ul.prototype.removeAllListeners=Ul.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+t],this};Ul.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this};Ul.prototype.emitReserved=Ul.prototype.emit;Ul.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};Ul.prototype.hasListeners=function(t){return!!this.listeners(t).length};const ak=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),xd=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Jmt="arraybuffer";function wDe(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}const eyt=xd.setTimeout,tyt=xd.clearTimeout;function ok(t,e){e.useNativeTimers?(t.setTimeoutFn=eyt.bind(xd),t.clearTimeoutFn=tyt.bind(xd)):(t.setTimeoutFn=xd.setTimeout.bind(xd),t.clearTimeoutFn=xd.clearTimeout.bind(xd))}const ryt=1.33;function nyt(t){return typeof t=="string"?iyt(t):Math.ceil((t.byteLength||t.size)*ryt)}function iyt(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}function bDe(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function ayt(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function oyt(t){let e={},r=t.split("&");for(let n=0,o=r.length;n<o;n++){let u=r[n].split("=");e[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return e}class syt extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}}class FX extends Ul{constructor(e){super(),this.writable=!1,ok(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,n){return super.emitReserved("error",new syt(e,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const r=kX(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const r=ayt(e);return r.length?"?"+r:""}}class lyt extends FX{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const r=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};Kmt(e,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,$mt(e,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=bDe()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}}let _De=!1;try{_De=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const uyt=_De;function cyt(){}class fyt extends lyt{constructor(e){if(super(e),typeof location<"u"){const r=location.protocol==="https:";let n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,r){const n=this.request({method:"POST",data:e});n.on("success",r),n.on("error",(o,u)=>{this.onError("xhr post error",o,u)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=e}}let sS=class P5 extends Ul{constructor(e,r,n){super(),this.createRequest=e,ok(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var e;const r=wDe(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=P5.requestsCount++,P5.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=cyt,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete P5.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};sS.requestsCount=0;sS.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Bye);else if(typeof addEventListener=="function"){const t="onpagehide"in xd?"pagehide":"unload";addEventListener(t,Bye,!1)}}function Bye(){for(let t in sS.requests)sS.requests.hasOwnProperty(t)&&sS.requests[t].abort()}const hyt=function(){const t=SDe({xdomain:!1});return t&&t.responseType!==null}();class dyt extends fyt{constructor(e){super(e);const r=e&&e.forceBase64;this.supportsBinary=hyt&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new sS(SDe,this.uri(),e)}}function SDe(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||uyt))return new XMLHttpRequest}catch{}if(!e)try{return new xd[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const xDe=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Ayt extends FX{get name(){return"websocket"}doOpen(){const e=this.uri(),r=this.opts.protocols,n=xDe?{}:wDe(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let r=0;r<e.length;r++){const n=e[r],o=r===e.length-1;OX(n,this.supportsBinary,u=>{try{this.doWrite(n,u)}catch{}o&&ak(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=bDe()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}}const i9=xd.WebSocket||xd.MozWebSocket;class vyt extends Ayt{createSocket(e,r,n){return xDe?new i9(e,r,n):r?new i9(e,r):new i9(e)}doWrite(e,r){this.ws.send(r)}}class pyt extends FX{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const r=Xmt(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=Ymt();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();const u=()=>{n.read().then(({done:h,value:A})=>{h||(this.onPacket(A),u())}).catch(h=>{})};u();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this._writer.write(f).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let r=0;r<e.length;r++){const n=e[r],o=r===e.length-1;this._writer.write(n).then(()=>{o&&ak(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const gyt={websocket:vyt,webtransport:pyt,polling:dyt},myt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,yyt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function a$(t){if(t.length>8e3)throw"URI too long";const e=t,r=t.indexOf("["),n=t.indexOf("]");r!=-1&&n!=-1&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let o=myt.exec(t||""),u={},f=14;for(;f--;)u[yyt[f]]=o[f]||"";return r!=-1&&n!=-1&&(u.source=e,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=wyt(u,u.path),u.queryKey=byt(u,u.query),u}function wyt(t,e){const r=/\/{2,9}/g,n=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function byt(t,e){const r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,u){o&&(r[o]=u)}),r}const o$=typeof addEventListener=="function"&&typeof removeEventListener=="function",O5=[];o$&&addEventListener("offline",()=>{O5.forEach(t=>t())},!1);class uy extends Ul{constructor(e,r){if(super(),this.binaryType=Jmt,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){const n=a$(e);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=a$(r.host).host);ok(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{const o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=oyt(this.opts.query)),o$&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},O5.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const r=Object.assign({},this.opts.query);r.EIO=yDe,r.transport=e,this.id&&(r.sid=this.id);const n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&uy.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",uy.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){const o=this.writeBuffer[n].data;if(o&&(r+=nyt(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ak(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,n){return this._sendPacket("message",e,r,n),this}send(e,r,n){return this._sendPacket("message",e,r,n),this}_sendPacket(e,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const u={type:e,data:r,options:n};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),o&&this.once("flush",o),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(e){if(uy.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),o$&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const n=O5.indexOf(this._offlineEventListener);n!==-1&&O5.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}}uy.protocol=yDe;class _yt extends uy{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let r=this.createTransport(e),n=!1;uy.priorWebsocketSuccess=!1;const o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",y=>{if(!n)if(y.type==="pong"&&y.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;uy.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(g(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const _=new Error("probe error");_.transport=r.name,this.emitReserved("upgradeError",_)}}))};function u(){n||(n=!0,g(),r.close(),r=null)}const f=y=>{const _=new Error("probe error: "+y);_.transport=r.name,u(),this.emitReserved("upgradeError",_)};function h(){f("transport closed")}function A(){f("socket closed")}function p(y){r&&y.name!==r.name&&u()}const g=()=>{r.removeListener("open",o),r.removeListener("error",f),r.removeListener("close",h),this.off("close",A),this.off("upgrading",p)};r.once("open",o),r.once("error",f),r.once("close",h),this.once("close",A),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const r=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&r.push(e[n]);return r}}let Syt=class extends _yt{constructor(e,r={}){const n=typeof e=="object"?e:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>gyt[o]).filter(o=>!!o)),super(e,n)}};function xyt(t,e="",r){let n=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),n=a$(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const u=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+u+":"+n.port+e,n.href=n.protocol+"://"+u+(r&&r.port===n.port?"":":"+n.port),n}const Cyt=typeof ArrayBuffer=="function",Tyt=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,CDe=Object.prototype.toString,Eyt=typeof Blob=="function"||typeof Blob<"u"&&CDe.call(Blob)==="[object BlobConstructor]",Byt=typeof File=="function"||typeof File<"u"&&CDe.call(File)==="[object FileConstructor]";function NX(t){return Cyt&&(t instanceof ArrayBuffer||Tyt(t))||Eyt&&t instanceof Blob||Byt&&t instanceof File}function k5(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(k5(t[r]))return!0;return!1}if(NX(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return k5(t.toJSON(),!0);for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&k5(t[r]))return!0;return!1}function Iyt(t){const e=[],r=t.data,n=t;return n.data=s$(r,e),n.attachments=e.length,{packet:n,buffers:e}}function s$(t,e){if(!t)return t;if(NX(t)){const r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){const r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=s$(t[n],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){const r={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=s$(t[n],e));return r}return t}function Lyt(t,e){return t.data=l$(t.data,e),delete t.attachments,t}function l$(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=l$(t[r],e);else if(typeof t=="object")for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=l$(t[r],e));return t}const Myt=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Dyt=5;var pa;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(pa||(pa={}));class Ryt{constructor(e){this.replacer=e}encode(e){return(e.type===pa.EVENT||e.type===pa.ACK)&&k5(e)?this.encodeAsBinary({type:e.type===pa.EVENT?pa.BINARY_EVENT:pa.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===pa.BINARY_EVENT||e.type===pa.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),r}encodeAsBinary(e){const r=Iyt(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}}function Iye(t){return Object.prototype.toString.call(t)==="[object Object]"}class UX extends Ul{constructor(e){super(),this.reviver=e}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);const n=r.type===pa.BINARY_EVENT;n||r.type===pa.BINARY_ACK?(r.type=n?pa.EVENT:pa.ACK,this.reconstructor=new Pyt(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(NX(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let r=0;const n={type:Number(e.charAt(0))};if(pa[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===pa.BINARY_EVENT||n.type===pa.BINARY_ACK){const u=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);const f=e.substring(u,r);if(f!=Number(f)||e.charAt(r)!=="-")throw new Error("Illegal attachments");n.attachments=Number(f)}if(e.charAt(r+1)==="/"){const u=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););n.nsp=e.substring(u,r)}else n.nsp="/";const o=e.charAt(r+1);if(o!==""&&Number(o)==o){const u=r+1;for(;++r;){const f=e.charAt(r);if(f==null||Number(f)!=f){--r;break}if(r===e.length)break}n.id=Number(e.substring(u,r+1))}if(e.charAt(++r)){const u=this.tryParse(e.substr(r));if(UX.isPayloadValid(n.type,u))n.data=u;else throw new Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case pa.CONNECT:return Iye(r);case pa.DISCONNECT:return r===void 0;case pa.CONNECT_ERROR:return typeof r=="string"||Iye(r);case pa.EVENT:case pa.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&Myt.indexOf(r[0])===-1);case pa.ACK:case pa.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Pyt{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const r=Lyt(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Oyt=Object.freeze(Object.defineProperty({__proto__:null,Decoder:UX,Encoder:Ryt,get PacketType(){return pa},protocol:Dyt},Symbol.toStringTag,{value:"Module"}));function MA(t,e,r){return t.on(e,r),function(){t.off(e,r)}}const kyt=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class TDe extends Ul{constructor(e,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[MA(e,"open",this.onopen.bind(this)),MA(e,"packet",this.onpacket.bind(this)),MA(e,"error",this.onerror.bind(this)),MA(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...r){var n,o,u;if(kyt.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const f={type:pa.EVENT,data:r};if(f.options={},f.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const g=this.ids++,y=r.pop();this._registerAckCallback(g,y),f.id=g}const h=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,A=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!h||(A?(this.notifyOutgoingListeners(f),this.packet(f)):this.sendBuffer.push(f)),this.flags={},this}_registerAckCallback(e,r){var n;const o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[e]=r;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===e&&this.sendBuffer.splice(h,1);r.call(this,new Error("operation has timed out"))},o),f=(...h)=>{this.io.clearTimeoutFn(u),r.apply(this,h)};f.withError=!0,this.acks[e]=f}emitWithAck(e,...r){return new Promise((n,o)=>{const u=(f,h)=>f?o(f):n(h);u.withError=!0,r.push(u),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((o,...u)=>n!==this._queue[0]?void 0:(o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...u)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:pa.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){const n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case pa.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case pa.EVENT:case pa.BINARY_EVENT:this.onevent(e);break;case pa.ACK:case pa.BINARY_ACK:this.onack(e);break;case pa.DISCONNECT:this.ondisconnect();break;case pa.CONNECT_ERROR:this.destroy();const n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){const r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const n of r)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const r=this;let n=!1;return function(...o){n||(n=!0,r.packet({type:pa.ACK,id:e,data:o}))}}onack(e){const r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:pa.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const r=this._anyListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const n of r)n.apply(this,e.data)}}}function tx(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}tx.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};tx.prototype.reset=function(){this.attempts=0};tx.prototype.setMin=function(t){this.ms=t};tx.prototype.setMax=function(t){this.max=t};tx.prototype.setJitter=function(t){this.jitter=t};class u$ extends Ul{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,ok(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new tx({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;const o=r.parser||Oyt;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Syt(this.uri,this.opts);const r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=MA(r,"open",function(){n.onopen(),e&&e()}),u=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),e?e(h):this.maybeReconnectOnOpen()},f=MA(r,"error",u);if(this._timeout!==!1){const h=this._timeout,A=this.setTimeoutFn(()=>{o(),u(new Error("timeout")),r.close()},h);this.opts.autoUnref&&A.unref(),this.subs.push(()=>{this.clearTimeoutFn(A)})}return this.subs.push(o),this.subs.push(f),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(MA(e,"ping",this.onping.bind(this)),MA(e,"data",this.ondata.bind(this)),MA(e,"error",this.onerror.bind(this)),MA(e,"close",this.onclose.bind(this)),MA(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){ak(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new TDe(this,e,r),this.nsps[e]=n),n}_destroy(e){const r=Object.keys(this.nsps);for(const n of r)if(this.nsps[n].active)return;this._close()}_packet(e){const r=this.encoder.encode(e);for(let n=0;n<r.length;n++)this.engine.write(r[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const dT={};function a9(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const r=xyt(t,e.path||"/socket.io"),n=r.source,o=r.id,u=r.path,f=dT[o]&&u in dT[o].nsps,h=e.forceNew||e["force new connection"]||e.multiplex===!1||f;let A;return h?A=new u$(n,e):(dT[o]||(dT[o]=new u$(n,e)),A=dT[o]),r.query&&!e.query&&(e.query=r.queryKey),A.socket(r.path,e)}Object.assign(a9,{Manager:u$,Socket:TDe,io:a9,connect:a9});var o9={};function Fyt(t){if(o9[t])return o9[t];for(var e=[],r=0,n=0,o=!1,u="",f="",h="",A="",p="",g=0,y=t.length;n<y;++n){if(g=t.charCodeAt(n),!o){if(g!==37)continue;r<n&&e.push(["L",t.substring(r,n)]),r=n,o=!0;continue}if(g>=48&&g<58)A.length?A+=String.fromCharCode(g):g==48&&!h.length?f+=String.fromCharCode(g):h+=String.fromCharCode(g);else switch(g){case 36:A.length?A+="$":h.charAt(0)=="*"?h+="$":(u=h+"$",h="");break;case 39:f+="'";break;case 45:f+="-";break;case 43:f+="+";break;case 32:f+=" ";break;case 35:f+="#";break;case 46:A=".";break;case 42:A.charAt(0)=="."?A+="*":h+="*";break;case 104:case 108:if(p.length>1)throw"bad length "+p+String(g);p+=String.fromCharCode(g);break;case 76:case 106:case 122:case 116:case 113:case 90:case 119:if(p!=="")throw"bad length "+p+String.fromCharCode(g);p=String.fromCharCode(g);break;case 73:if(p!=="")throw"bad length "+p+"I";p="I";break;case 100:case 105:case 111:case 117:case 120:case 88:case 102:case 70:case 101:case 69:case 103:case 71:case 97:case 65:case 99:case 67:case 115:case 83:case 112:case 110:case 68:case 85:case 79:case 109:case 98:case 66:case 121:case 89:case 74:case 86:case 84:case 37:o=!1,A.length>1&&(A=A.substr(1)),e.push([String.fromCharCode(g),t.substring(r,n+1),u,f,h,A,p]),r=n+1,p=A=h=f=u="";break;default:throw new Error("Invalid format string starting with |"+t.substring(r,n+1)+"|")}}return r<t.length&&e.push(["L",t.substring(r)]),o9[t]=e}var Nyt=JSON.stringify;function Uyt(t,e){for(var r="",n=0,o=0,u=0,f="",h=0;h<t.length;++h){var A=t[h],p=A[0].charCodeAt(0);if(p===76){r+=A[1];continue}if(p===37){r+="%";continue}var g="",y=0,_=10,b=4,C=!1,T=A[3],B=T.indexOf("#")>-1;if(A[2])n=parseInt(A[2],10)-1;else if(p===109&&!B){r+="Success";continue}var L=0;A[4].length>0&&(A[4].charAt(0)!=="*"?L=parseInt(A[4],10):A[4].length===1?L=e[o++]:L=e[parseInt(A[4].substr(1),10)-1]);var P=-1;A[5].length>0&&(A[5].charAt(0)!=="*"?P=parseInt(A[5],10):A[5].length===1?P=e[o++]:P=e[parseInt(A[5].substr(1),10)-1]),A[2]||(n=o++);var I=e[n],O=A[6];switch(p){case 83:case 115:g=String(I),P>=0&&(g=g.substr(0,P)),(L>g.length||-L>g.length)&&((T.indexOf("-")==-1||L<0)&&T.indexOf("0")!=-1?(f=L-g.length>=0?"0".repeat(L-g.length):"",g=f+g):(f=L-g.length>=0?" ".repeat(L-g.length):"",g=T.indexOf("-")>-1?g+f:f+g));break;case 67:case 99:switch(typeof I){case"number":var U=I;p==67||O.charCodeAt(0)===108?(U&=4294967295,g=String.fromCharCode(U)):(U&=255,g=String.fromCharCode(U));break;case"string":g=I.charAt(0);break;default:g=String(I).charAt(0)}(L>g.length||-L>g.length)&&((T.indexOf("-")==-1||L<0)&&T.indexOf("0")!=-1?(f=L-g.length>=0?"0".repeat(L-g.length):"",g=f+g):(f=L-g.length>=0?" ".repeat(L-g.length):"",g=T.indexOf("-")>-1?g+f:f+g));break;case 68:b=8;case 100:case 105:y=-1,C=!0;break;case 85:b=8;case 117:y=-1;break;case 79:b=8;case 111:y=-1,_=8;break;case 120:y=-1,_=-16;break;case 88:y=-1,_=16;break;case 66:b=8;case 98:y=-1,_=2;break;case 70:case 102:y=1;break;case 69:case 101:y=2;break;case 71:case 103:y=3;break;case 65:case 97:y=4;break;case 112:u=typeof I=="number"?I:I?Number(I.l):-1,isNaN(u)&&(u=-1),B?g=u.toString(10):(u=Math.abs(u),g="0x"+u.toString(16).toLowerCase());break;case 110:I&&(I.len=r.length);continue;case 109:I instanceof Error?I.message?g=I.message:I.errno?g="Error number "+I.errno:g="Error "+String(I):g="Success";break;case 74:g=(B?Nyt:JSON.stringify)(I);break;case 86:g=I==null?"null":String(I.valueOf());break;case 84:B?(g=Object.prototype.toString.call(I).substr(8),g=g.substr(0,g.length-1)):g=typeof I;break;case 89:case 121:g=I?B?"yes":"true":B?"no":"false",p==89&&(g=g.toUpperCase()),P>=0&&(g=g.substr(0,P)),(L>g.length||-L>g.length)&&((T.indexOf("-")==-1||L<0)&&T.indexOf("0")!=-1?(f=L-g.length>=0?"0".repeat(L-g.length):"",g=f+g):(f=L-g.length>=0?" ".repeat(L-g.length):"",g=T.indexOf("-")>-1?g+f:f+g));break}if(L<0&&(L=-L,T+="-"),y==-1){switch(u=Number(I),O){case"hh":b=1;break;case"h":b=2;break;case"l":b==4&&(b=8);break;case"L":case"q":case"ll":b==4&&(b=8);break;case"j":b==4&&(b=8);break;case"t":b==4&&(b=8);break;case"z":case"Z":b==4&&(b=8);break;case"I":b==4&&(b=8);break}switch(b){case 1:u=u&255,C&&u>127&&(u-=256);break;case 2:u=u&65535,C&&u>32767&&(u-=65536);break;case 4:u=C?u|0:u>>>0;break;default:u=isNaN(u)?0:Math.round(u);break}if(b>4&&u<0&&!C)if(_==16||_==-16)g=(u>>>0).toString(16),u=Math.floor((u-(u>>>0))/Math.pow(2,32)),g=(u>>>0).toString(16)+(8-g.length>=0?"0".repeat(8-g.length):"")+g,g=(16-g.length>=0?"f".repeat(16-g.length):"")+g,_==16&&(g=g.toUpperCase());else if(_==8)g=(u>>>0).toString(8),g=(10-g.length>=0?"0".repeat(10-g.length):"")+g,u=Math.floor((u-(u>>>0&1073741823))/Math.pow(2,30)),g=(u>>>0).toString(8)+g.substr(g.length-10),g=g.substr(g.length-20),g="1"+(21-g.length>=0?"7".repeat(21-g.length):"")+g;else{u=-u%1e16;for(var N=[1,8,4,4,6,7,4,4,0,7,3,7,0,9,5,5,1,6,1,6],H=N.length-1;u>0;)(N[H]-=u%10)<0&&(N[H]+=10,N[H-1]--),--H,u=Math.floor(u/10);g=N.join("")}else _===-16?g=u.toString(16).toLowerCase():_===16?g=u.toString(16).toUpperCase():g=u.toString(_);if(P===0&&g=="0"&&!(_==8&&B))g="";else if(g.length<P+(g.substr(0,1)=="-"?1:0)&&(g.substr(0,1)!="-"?g=(P-g.length>=0?"0".repeat(P-g.length):"")+g:g=g.substr(0,1)+(P+1-g.length>=0?"0".repeat(P+1-g.length):"")+g.substr(1)),!C&&B&&u!==0)switch(_){case-16:g="0x"+g;break;case 16:g="0X"+g;break;case 8:g.charAt(0)!="0"&&(g="0"+g);break;case 2:g="0b"+g;break}C&&g.charAt(0)!="-"&&(T.indexOf("+")>-1?g="+"+g:T.indexOf(" ")>-1&&(g=" "+g)),L>0&&g.length<L&&(T.indexOf("-")>-1?g=g+(L-g.length>=0?" ".repeat(L-g.length):""):T.indexOf("0")>-1&&P<0&&g.length>0?(P>g.length&&(g=(P-g.length>=0?"0".repeat(P-g.length):"")+g),f=L-g.length>=0?(P>0?" ":"0").repeat(L-g.length):"",g.charCodeAt(0)<48?g.charAt(2).toLowerCase()=="x"?g=g.substr(0,3)+f+g.substring(3):g=g.substr(0,1)+f+g.substring(1):g.charAt(1).toLowerCase()=="x"?g=g.substr(0,2)+f+g.substring(2):g=f+g):g=(L-g.length>=0?" ".repeat(L-g.length):"")+g)}else if(y>0){u=Number(I),I===null&&(u=NaN),O=="L"&&(b=12);var z=isFinite(u);if(!z)u<0?g="-":T.indexOf("+")>-1?g="+":T.indexOf(" ")>-1&&(g=" "),g+=isNaN(u)?"nan":"inf";else{var G=0;P==-1&&y!=4&&(P=6),y==3&&(g=u.toExponential(1),G=+g.substr(g.indexOf("e")+1),P===0&&(P=1),P>G&&G>=-4?(y=11,P=P-(G+1)):(y=12,P=P-1));var j=u<0||1/u==-1/0?"-":"";switch(u<0&&(u=-u),y){case 1:case 11:if(u<1e21){g=u.toFixed(P),y==1?P===0&&B&&g.indexOf(".")==-1&&(g+="."):B?g.indexOf(".")==-1&&(g+="."):g=g.replace(/(\.\d*[1-9])0*$/,"$1").replace(/\.0*$/,"");break}g=u.toExponential(20),G=+g.substr(g.indexOf("e")+1),g=g.charAt(0)+g.substr(2,g.indexOf("e")-2),g=g+(G-g.length+1>=0?"0".repeat(G-g.length+1):""),(B||P>0&&y!==11)&&(g=g+"."+(P>=0?"0".repeat(P):""));break;case 2:case 12:g=u.toExponential(P),G=g.indexOf("e"),g.length-G===3&&(g=g.substr(0,G+2)+"0"+g.substr(G+2)),B&&g.indexOf(".")==-1?g=g.substr(0,G)+"."+g.substr(G):!B&&y==12&&(g=g.replace(/\.0*e/,"e").replace(/\.(\d*[1-9])0*e/,".$1e"));break;case 4:if(u===0){g="0x0"+(B||P>0?"."+(P>=0?"0".repeat(P):""):"")+"p+0";break}g=u.toString(16);var q=g.charCodeAt(0);if(q==48){for(q=2,G=-4,u*=16;g.charCodeAt(q++)==48;)G-=4,u*=16;g=u.toString(16),q=g.charCodeAt(0)}var X=g.indexOf(".");if(g.indexOf("(")>-1){var Y=g.match(/\(e(.*)\)/),te=Y?+Y[1]:0;G+=4*te,u/=Math.pow(16,te)}else X>1?(G+=4*(X-1),u/=Math.pow(16,X-1)):X==-1&&(G+=4*(g.length-1),u/=Math.pow(16,g.length-1));if(b>8?q<50?(G-=3,u*=8):q<52?(G-=2,u*=4):q<56&&(G-=1,u*=2):q>=56?(G+=3,u/=8):q>=52?(G+=2,u/=4):q>=50&&(G+=1,u/=2),g=u.toString(16),g.length>1){if(g.length>P+2&&g.charCodeAt(P+2)>=56){var K=g.charCodeAt(0)==102;g=(u+8*Math.pow(16,-P-1)).toString(16),K&&g.charCodeAt(0)==49&&(G+=4)}P>0?(g=g.substr(0,P+2),g.length<P+2&&(g.charCodeAt(0)<48?g=g.charAt(0)+(P+2-g.length>=0?"0".repeat(P+2-g.length):"")+g.substr(1):g+=P+2-g.length>=0?"0".repeat(P+2-g.length):"")):P===0&&(g=g.charAt(0)+(B?".":""))}else P>0?g=g+"."+(P>=0?"0".repeat(P):""):B&&(g=g+".");g="0x"+g+"p"+(G>=0?"+"+G:G);break}j===""&&(T.indexOf("+")>-1?j="+":T.indexOf(" ")>-1&&(j=" ")),g=j+g}L>g.length&&(T.indexOf("-")>-1?g=g+(L-g.length>=0?" ".repeat(L-g.length):""):T.indexOf("0")>-1&&g.length>0&&z?(f=L-g.length>=0?"0".repeat(L-g.length):"",g.charCodeAt(0)<48?g.charAt(2).toLowerCase()=="x"?g=g.substr(0,3)+f+g.substring(3):g=g.substr(0,1)+f+g.substring(1):g.charAt(1).toLowerCase()=="x"?g=g.substr(0,2)+f+g.substring(2):g=f+g):g=(L-g.length>=0?" ".repeat(L-g.length):"")+g),p<96&&(g=g.toUpperCase())}r+=g}return r}function AQt(){for(var t=new Array(arguments.length-1),e=0;e<t.length;++e)t[e]=arguments[e+1];return Uyt(Fyt(arguments[0]),t)}/**
* filesize
*
* @copyright 2025 Jason Mulligan <[email protected]>
* @license BSD-3-Clause
* @version 11.0.2
*/const Hyt="Invalid number",Qyt="Invalid rounding method",Lye="iec",s9="jedec",Vyt="si",zyt="bit",Mye="bits",Gyt="byte",Dye="bytes",jyt="kbit",qyt="kB",Wyt="array",$yt="function",Kyt="object",Yyt="string",Xyt="exponent",Zyt="round",t_="",Rye=".",Jyt="s",e0t=" ",t0t="0",l9={symbol:{iec:{bits:["bit","Kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["bit","Kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},fullform:{iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]}};function vQt(t,{bits:e=!1,pad:r=!1,base:n=-1,round:o=2,locale:u=t_,localeOptions:f={},separator:h=t_,spacer:A=e0t,symbols:p={},standard:g=t_,output:y=Yyt,fullform:_=!1,fullforms:b=[],exponent:C=-1,roundingMethod:T=Zyt,precision:B=0}={}){let L=C,P=Number(t),I=[],O=0,U=t_;g===Vyt?(n=10,g=s9):g===Lye||g===s9?n=2:n===2?g=Lye:(n=10,g=s9);const N=n===10?1e3:1024,H=_===!0,z=P<0,G=Math[T];if(typeof t!="bigint"&&isNaN(t))throw new TypeError(Hyt);if(typeof G!==$yt)throw new TypeError(Qyt);if(z&&(P=-P),(L===-1||isNaN(L))&&(L=Math.floor(Math.log(P)/Math.log(N)),L<0&&(L=0)),L>8&&(B>0&&(B+=8-L),L=8),y===Xyt)return L;if(P===0)I[0]=0,U=I[1]=l9.symbol[g][e?Mye:Dye][L];else{O=P/(n===2?Math.pow(2,L*10):Math.pow(1e3,L)),e&&(O=O*8,O>=N&&L<8&&(O=O/N,L++));const j=Math.pow(10,L>0?o:0);I[0]=G(O*j)/j,I[0]===N&&L<8&&C===-1&&(I[0]=1,L++),U=I[1]=n===10&&L===1?e?jyt:qyt:l9.symbol[g][e?Mye:Dye][L]}if(z&&(I[0]=-I[0]),B>0&&(I[0]=I[0].toPrecision(B)),I[1]=p[I[1]]||I[1],u===!0?I[0]=I[0].toLocaleString():u.length>0?I[0]=I[0].toLocaleString(u,f):h.length>0&&(I[0]=I[0].toString().replace(Rye,h)),r&&o>0){const j=I[0].toString(),q=h||(j.match(/(\D)/g)||[]).pop()||Rye,X=j.toString().split(q),Y=X[1]||t_,te=Y.length,K=o-te;I[0]=`${X[0]}${q}${Y.padEnd(te+K,t0t)}`}return H&&(I[1]=b[L]?b[L]:l9.fullform[g][L]+(e?zyt:Gyt)+(I[0]===1?t_:Jyt)),y===Wyt?I:y===Kyt?{value:I[0],symbol:I[1],exponent:L,unit:U}:I.join(A)}var u9={exports:{}},Pye;function r0t(){return Pye||(Pye=1,function(t){(function(){var e=Object.assign||function(I){for(var O,U=1;U<arguments.length;U++){O=arguments[U];for(var N in O)_(O,N)&&(I[N]=O[N])}return I},r=Array.isArray||function(I){return Object.prototype.toString.call(I)==="[object Array]"},n=u(function(I){return I===1?"χρόνος":"χρόνια"},function(I){return I===1?"μήνας":"μήνες"},function(I){return I===1?"εβδομάδα":"εβδομάδες"},function(I){return I===1?"μέρα":"μέρες"},function(I){return I===1?"ώρα":"ώρες"},function(I){return I===1?"λεπτό":"λεπτά"},function(I){return I===1?"δευτερόλεπτο":"δευτερόλεπτα"},function(I){return(I===1?"χιλιοστό":"χιλιοστά")+" του δευτερολέπτου"},","),o={af:u("jaar",function(I){return"maand"+(I===1?"":"e")},function(I){return I===1?"week":"weke"},function(I){return I===1?"dag":"dae"},function(I){return I===1?"uur":"ure"},function(I){return I===1?"minuut":"minute"},function(I){return"sekonde"+(I===1?"":"s")},function(I){return"millisekonde"+(I===1?"":"s")},","),am:u("ዓመት","ወር","ሳምንት","ቀን","ሰዓት","ደቂቃ","ሰከንድ","ሚሊሰከንድ"),ar:e(u(function(I){return["سنة","سنتان","سنوات"][f(I)]},function(I){return["شهر","شهران","أشهر"][f(I)]},function(I){return["أسبوع","أسبوعين","أسابيع"][f(I)]},function(I){return["يوم","يومين","أيام"][f(I)]},function(I){return["ساعة","ساعتين","ساعات"][f(I)]},function(I){return["دقيقة","دقيقتان","دقائق"][f(I)]},function(I){return["ثانية","ثانيتان","ثواني"][f(I)]},function(I){return["جزء من الثانية","جزآن من الثانية","أجزاء من الثانية"][f(I)]},","),{delimiter:" ﻭ ",_hideCountIf2:!0,_digitReplacements:["۰","١","٢","٣","٤","٥","٦","٧","٨","٩"]}),bg:u(function(I){return["години","година","години"][A(I)]},function(I){return["месеца","месец","месеца"][A(I)]},function(I){return["седмици","седмица","седмици"][A(I)]},function(I){return["дни","ден","дни"][A(I)]},function(I){return["часа","час","часа"][A(I)]},function(I){return["минути","минута","минути"][A(I)]},function(I){return["секунди","секунда","секунди"][A(I)]},function(I){return["милисекунди","милисекунда","милисекунди"][A(I)]},","),bn:u("বছর","মাস","সপ্তাহ","দিন","ঘন্টা","মিনিট","সেকেন্ড","মিলিসেকেন্ড"),ca:u(function(I){return"any"+(I===1?"":"s")},function(I){return"mes"+(I===1?"":"os")},function(I){return"setman"+(I===1?"a":"es")},function(I){return"di"+(I===1?"a":"es")},function(I){return"hor"+(I===1?"a":"es")},function(I){return"minut"+(I===1?"":"s")},function(I){return"segon"+(I===1?"":"s")},function(I){return"milisegon"+(I===1?"":"s")},","),ckb:u("ساڵ","مانگ","هەفتە","ڕۆژ","کاژێر","خولەک","چرکە","میلی چرکە","."),cs:u(function(I){return["rok","roku","roky","let"][p(I)]},function(I){return["měsíc","měsíce","měsíce","měsíců"][p(I)]},function(I){return["týden","týdne","týdny","týdnů"][p(I)]},function(I){return["den","dne","dny","dní"][p(I)]},function(I){return["hodina","hodiny","hodiny","hodin"][p(I)]},function(I){return["minuta","minuty","minuty","minut"][p(I)]},function(I){return["sekunda","sekundy","sekundy","sekund"][p(I)]},function(I){return["milisekunda","milisekundy","milisekundy","milisekund"][p(I)]},","),cy:u("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:u("år",function(I){return"måned"+(I===1?"":"er")},function(I){return"uge"+(I===1?"":"r")},function(I){return"dag"+(I===1?"":"e")},function(I){return"time"+(I===1?"":"r")},function(I){return"minut"+(I===1?"":"ter")},function(I){return"sekund"+(I===1?"":"er")},function(I){return"millisekund"+(I===1?"":"er")},","),de:u(function(I){return"Jahr"+(I===1?"":"e")},function(I){return"Monat"+(I===1?"":"e")},function(I){return"Woche"+(I===1?"":"n")},function(I){return"Tag"+(I===1?"":"e")},function(I){return"Stunde"+(I===1?"":"n")},function(I){return"Minute"+(I===1?"":"n")},function(I){return"Sekunde"+(I===1?"":"n")},function(I){return"Millisekunde"+(I===1?"":"n")},","),el:n,en:u(function(I){return"year"+(I===1?"":"s")},function(I){return"month"+(I===1?"":"s")},function(I){return"week"+(I===1?"":"s")},function(I){return"day"+(I===1?"":"s")},function(I){return"hour"+(I===1?"":"s")},function(I){return"minute"+(I===1?"":"s")},function(I){return"second"+(I===1?"":"s")},function(I){return"millisecond"+(I===1?"":"s")}),eo:u(function(I){return"jaro"+(I===1?"":"j")},function(I){return"monato"+(I===1?"":"j")},function(I){return"semajno"+(I===1?"":"j")},function(I){return"tago"+(I===1?"":"j")},function(I){return"horo"+(I===1?"":"j")},function(I){return"minuto"+(I===1?"":"j")},function(I){return"sekundo"+(I===1?"":"j")},function(I){return"milisekundo"+(I===1?"":"j")},","),es:u(function(I){return"año"+(I===1?"":"s")},function(I){return"mes"+(I===1?"":"es")},function(I){return"semana"+(I===1?"":"s")},function(I){return"día"+(I===1?"":"s")},function(I){return"hora"+(I===1?"":"s")},function(I){return"minuto"+(I===1?"":"s")},function(I){return"segundo"+(I===1?"":"s")},function(I){return"milisegundo"+(I===1?"":"s")},","),et:u(function(I){return"aasta"+(I===1?"":"t")},function(I){return"kuu"+(I===1?"":"d")},function(I){return"nädal"+(I===1?"":"at")},function(I){return"päev"+(I===1?"":"a")},function(I){return"tund"+(I===1?"":"i")},function(I){return"minut"+(I===1?"":"it")},function(I){return"sekund"+(I===1?"":"it")},function(I){return"millisekund"+(I===1?"":"it")},","),eu:u("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:u("سال","ماه","هفته","روز","ساعت","دقیقه","ثانیه","میلی ثانیه"),fi:u(function(I){return I===1?"vuosi":"vuotta"},function(I){return I===1?"kuukausi":"kuukautta"},function(I){return"viikko"+(I===1?"":"a")},function(I){return"päivä"+(I===1?"":"ä")},function(I){return"tunti"+(I===1?"":"a")},function(I){return"minuutti"+(I===1?"":"a")},function(I){return"sekunti"+(I===1?"":"a")},function(I){return"millisekunti"+(I===1?"":"a")},","),fo:u("ár",function(I){return I===1?"mánaður":"mánaðir"},function(I){return I===1?"vika":"vikur"},function(I){return I===1?"dagur":"dagar"},function(I){return I===1?"tími":"tímar"},function(I){return I===1?"minuttur":"minuttir"},"sekund","millisekund",","),fr:u(function(I){return"an"+(I>=2?"s":"")},"mois",function(I){return"semaine"+(I>=2?"s":"")},function(I){return"jour"+(I>=2?"s":"")},function(I){return"heure"+(I>=2?"s":"")},function(I){return"minute"+(I>=2?"s":"")},function(I){return"seconde"+(I>=2?"s":"")},function(I){return"milliseconde"+(I>=2?"s":"")},","),gr:n,he:u(function(I){return I===1?"שנה":"שנים"},function(I){return I===1?"חודש":"חודשים"},function(I){return I===1?"שבוע":"שבועות"},function(I){return I===1?"יום":"ימים"},function(I){return I===1?"שעה":"שעות"},function(I){return I===1?"דקה":"דקות"},function(I){return I===1?"שניה":"שניות"},function(I){return I===1?"מילישנייה":"מילישניות"}),hr:u(function(I){return I%10===2||I%10===3||I%10===4?"godine":"godina"},function(I){return I===1?"mjesec":I===2||I===3||I===4?"mjeseca":"mjeseci"},function(I){return I%10===1&&I!==11?"tjedan":"tjedna"},function(I){return I===1?"dan":"dana"},function(I){return I===1?"sat":I===2||I===3||I===4?"sata":"sati"},function(I){var O=I%10;return(O===2||O===3||O===4)&&(I<10||I>14)?"minute":"minuta"},function(I){var O=I%10;return O===5||Math.floor(I)===I&&I>=10&&I<=19?"sekundi":O===1?"sekunda":O===2||O===3||O===4?"sekunde":"sekundi"},function(I){return I===1?"milisekunda":I%10===2||I%10===3||I%10===4?"milisekunde":"milisekundi"},","),hi:u("साल",function(I){return I===1?"महीना":"महीने"},function(I){return I===1?"हफ़्ता":"हफ्ते"},"दिन",function(I){return I===1?"घंटा":"घंटे"},"मिनट","सेकंड","मिलीसेकंड"),hu:u("év","hónap","hét","nap","óra","perc","másodperc","ezredmásodperc",","),id:u("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:u("ár",function(I){return"mánuð"+(I===1?"ur":"ir")},function(I){return"vik"+(I===1?"a":"ur")},function(I){return"dag"+(I===1?"ur":"ar")},function(I){return"klukkutím"+(I===1?"i":"ar")},function(I){return"mínút"+(I===1?"a":"ur")},function(I){return"sekúnd"+(I===1?"a":"ur")},function(I){return"millisekúnd"+(I===1?"a":"ur")}),it:u(function(I){return"ann"+(I===1?"o":"i")},function(I){return"mes"+(I===1?"e":"i")},function(I){return"settiman"+(I===1?"a":"e")},function(I){return"giorn"+(I===1?"o":"i")},function(I){return"or"+(I===1?"a":"e")},function(I){return"minut"+(I===1?"o":"i")},function(I){return"second"+(I===1?"o":"i")},function(I){return"millisecond"+(I===1?"o":"i")},","),ja:u("年","ヶ月","週間","日","時間","分","秒","ミリ秒"),km:u("ឆ្នាំ","ខែ","សប្តាហ៍","ថ្ងៃ","ម៉ោង","នាទី","វិនាទី","មិល្លីវិនាទី"),kn:u(function(I){return I===1?"ವರ್ಷ":"ವರ್ಷಗಳು"},function(I){return I===1?"ತಿಂಗಳು":"ತಿಂಗಳುಗಳು"},function(I){return I===1?"ವಾರ":"ವಾರಗಳು"},function(I){return I===1?"ದಿನ":"ದಿನಗಳು"},function(I){return I===1?"ಗಂಟೆ":"ಗಂಟೆಗಳು"},function(I){return I===1?"ನಿಮಿಷ":"ನಿಮಿಷಗಳು"},function(I){return I===1?"ಸೆಕೆಂಡ್":"ಸೆಕೆಂಡುಗಳು"},function(I){return I===1?"ಮಿಲಿಸೆಕೆಂಡ್":"ಮಿಲಿಸೆಕೆಂಡುಗಳು"}),ko:u("년","개월","주일","일","시간","분","초","밀리 초"),ku:u("sal","meh","hefte","roj","seet","deqe","saniye","mîlîçirk",","),lo:u("ປີ","ເດືອນ","ອາທິດ","ມື້","ຊົ່ວໂມງ","ນາທີ","ວິນາທີ","ມິນລິວິນາທີ",","),lt:u(function(I){return I%10===0||I%100>=10&&I%100<=20?"metų":"metai"},function(I){return["mėnuo","mėnesiai","mėnesių"][g(I)]},function(I){return["savaitė","savaitės","savaičių"][g(I)]},function(I){return["diena","dienos","dienų"][g(I)]},function(I){return["valanda","valandos","valandų"][g(I)]},function(I){return["minutė","minutės","minučių"][g(I)]},function(I){return["sekundė","sekundės","sekundžių"][g(I)]},function(I){return["milisekundė","milisekundės","milisekundžių"][g(I)]},","),lv:u(function(I){return y(I)?"gads":"gadi"},function(I){return y(I)?"mēnesis":"mēneši"},function(I){return y(I)?"nedēļa":"nedēļas"},function(I){return y(I)?"diena":"dienas"},function(I){return y(I)?"stunda":"stundas"},function(I){return y(I)?"minūte":"minūtes"},function(I){return y(I)?"sekunde":"sekundes"},function(I){return y(I)?"milisekunde":"milisekundes"},","),mk:u(function(I){return I===1?"година":"години"},function(I){return I===1?"месец":"месеци"},function(I){return I===1?"недела":"недели"},function(I){return I===1?"ден":"дена"},function(I){return I===1?"час":"часа"},function(I){return I===1?"минута":"минути"},function(I){return I===1?"секунда":"секунди"},function(I){return I===1?"милисекунда":"милисекунди"},","),mn:u("жил","сар","долоо хоног","өдөр","цаг","минут","секунд","миллисекунд"),mr:u(function(I){return I===1?"वर्ष":"वर्षे"},function(I){return I===1?"महिना":"महिने"},function(I){return I===1?"आठवडा":"आठवडे"},"दिवस","तास",function(I){return I===1?"मिनिट":"मिनिटे"},"सेकंद","मिलिसेकंद"),ms:u("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:u("jaar",function(I){return I===1?"maand":"maanden"},function(I){return I===1?"week":"weken"},function(I){return I===1?"dag":"dagen"},"uur",function(I){return I===1?"minuut":"minuten"},function(I){return I===1?"seconde":"seconden"},function(I){return I===1?"milliseconde":"milliseconden"},","),no:u("år",function(I){return"måned"+(I===1?"":"er")},function(I){return"uke"+(I===1?"":"r")},function(I){return"dag"+(I===1?"":"er")},function(I){return"time"+(I===1?"":"r")},function(I){return"minutt"+(I===1?"":"er")},function(I){return"sekund"+(I===1?"":"er")},function(I){return"millisekund"+(I===1?"":"er")},","),pl:u(function(I){return["rok","roku","lata","lat"][h(I)]},function(I){return["miesiąc","miesiąca","miesiące","miesięcy"][h(I)]},function(I){return["tydzień","tygodnia","tygodnie","tygodni"][h(I)]},function(I){return["dzień","dnia","dni","dni"][h(I)]},function(I){return["godzina","godziny","godziny","godzin"][h(I)]},function(I){return["minuta","minuty","minuty","minut"][h(I)]},function(I){return["sekunda","sekundy","sekundy","sekund"][h(I)]},function(I){return["milisekunda","milisekundy","milisekundy","milisekund"][h(I)]},","),pt:u(function(I){return"ano"+(I===1?"":"s")},function(I){return I===1?"mês":"meses"},function(I){return"semana"+(I===1?"":"s")},function(I){return"dia"+(I===1?"":"s")},function(I){return"hora"+(I===1?"":"s")},function(I){return"minuto"+(I===1?"":"s")},function(I){return"segundo"+(I===1?"":"s")},function(I){return"milissegundo"+(I===1?"":"s")},","),ro:u(function(I){return I===1?"an":"ani"},function(I){return I===1?"lună":"luni"},function(I){return I===1?"săptămână":"săptămâni"},function(I){return I===1?"zi":"zile"},function(I){return I===1?"oră":"ore"},function(I){return I===1?"minut":"minute"},function(I){return I===1?"secundă":"secunde"},function(I){return I===1?"milisecundă":"milisecunde"},","),ru:u(function(I){return["лет","год","года"][A(I)]},function(I){return["месяцев","месяц","месяца"][A(I)]},function(I){return["недель","неделя","недели"][A(I)]},function(I){return["дней","день","дня"][A(I)]},function(I){return["часов","час","часа"][A(I)]},function(I){return["минут","минута","минуты"][A(I)]},function(I){return["секунд","секунда","секунды"][A(I)]},function(I){return["миллисекунд","миллисекунда","миллисекунды"][A(I)]},","),sq:u(function(I){return I===1?"vit":"vjet"},"muaj","javë","ditë","orë",function(I){return"minut"+(I===1?"ë":"a")},function(I){return"sekond"+(I===1?"ë":"a")},function(I){return"milisekond"+(I===1?"ë":"a")},","),sr:u(function(I){return["години","година","године"][A(I)]},function(I){return["месеци","месец","месеца"][A(I)]},function(I){return["недељи","недеља","недеље"][A(I)]},function(I){return["дани","дан","дана"][A(I)]},function(I){return["сати","сат","сата"][A(I)]},function(I){return["минута","минут","минута"][A(I)]},function(I){return["секунди","секунда","секунде"][A(I)]},function(I){return["милисекунди","милисекунда","милисекунде"][A(I)]},","),sr_Latn:u(function(I){return["godini","godina","godine"][A(I)]},function(I){return["meseci","mesec","meseca"][A(I)]},function(I){return["nedelji","nedelja","nedelje"][A(I)]},function(I){return["dani","dan","dana"][A(I)]},function(I){return["sati","sat","sata"][A(I)]},function(I){return["minuta","minut","minuta"][A(I)]},function(I){return["sekundi","sekunda","sekunde"][A(I)]},function(I){return["milisekundi","milisekunda","milisekunde"][A(I)]},","),ta:u(function(I){return I===1?"வருடம்":"ஆண்டுகள்"},function(I){return I===1?"மாதம்":"மாதங்கள்"},function(I){return I===1?"வாரம்":"வாரங்கள்"},function(I){return I===1?"நாள்":"நாட்கள்"},function(I){return I===1?"மணி":"மணிநேரம்"},function(I){return"நிமிட"+(I===1?"ம்":"ங்கள்")},function(I){return"வினாடி"+(I===1?"":"கள்")},function(I){return"மில்லி விநாடி"+(I===1?"":"கள்")}),te:u(function(I){return"సంవత్స"+(I===1?"రం":"రాల")},function(I){return"నెల"+(I===1?"":"ల")},function(I){return I===1?"వారం":"వారాలు"},function(I){return"రోజు"+(I===1?"":"లు")},function(I){return"గంట"+(I===1?"":"లు")},function(I){return I===1?"నిమిషం":"నిమిషాలు"},function(I){return I===1?"సెకను":"సెకన్లు"},function(I){return I===1?"మిల్లీసెకన్":"మిల్లీసెకన్లు"}),uk:u(function(I){return["років","рік","роки"][A(I)]},function(I){return["місяців","місяць","місяці"][A(I)]},function(I){return["тижнів","тиждень","тижні"][A(I)]},function(I){return["днів","день","дні"][A(I)]},function(I){return["годин","година","години"][A(I)]},function(I){return["хвилин","хвилина","хвилини"][A(I)]},function(I){return["секунд","секунда","секунди"][A(I)]},function(I){return["мілісекунд","мілісекунда","мілісекунди"][A(I)]},","),ur:u("سال",function(I){return I===1?"مہینہ":"مہینے"},function(I){return I===1?"ہفتہ":"ہفتے"},"دن",function(I){return I===1?"گھنٹہ":"گھنٹے"},"منٹ","سیکنڈ","ملی سیکنڈ"),sk:u(function(I){return["rok","roky","roky","rokov"][p(I)]},function(I){return["mesiac","mesiace","mesiace","mesiacov"][p(I)]},function(I){return["týždeň","týždne","týždne","týždňov"][p(I)]},function(I){return["deň","dni","dni","dní"][p(I)]},function(I){return["hodina","hodiny","hodiny","hodín"][p(I)]},function(I){return["minúta","minúty","minúty","minút"][p(I)]},function(I){return["sekunda","sekundy","sekundy","sekúnd"][p(I)]},function(I){return["milisekunda","milisekundy","milisekundy","milisekúnd"][p(I)]},","),sl:u(function(I){return I%10===1?"leto":I%100===2?"leti":I%100===3||I%100===4||Math.floor(I)!==I&&I%100<=5?"leta":"let"},function(I){return I%10===1?"mesec":I%100===2||Math.floor(I)!==I&&I%100<=5?"meseca":I%10===3||I%10===4?"mesece":"mesecev"},function(I){return I%10===1?"teden":I%10===2||Math.floor(I)!==I&&I%100<=4?"tedna":I%10===3||I%10===4?"tedne":"tednov"},function(I){return I%100===1?"dan":"dni"},function(I){return I%10===1?"ura":I%100===2?"uri":I%10===3||I%10===4||Math.floor(I)!==I?"ure":"ur"},function(I){return I%10===1?"minuta":I%10===2?"minuti":I%10===3||I%10===4||Math.floor(I)!==I&&I%100<=4?"minute":"minut"},function(I){return I%10===1?"sekunda":I%100===2?"sekundi":I%100===3||I%100===4||Math.floor(I)!==I?"sekunde":"sekund"},function(I){return I%10===1?"milisekunda":I%100===2?"milisekundi":I%100===3||I%100===4||Math.floor(I)!==I?"milisekunde":"milisekund"},","),sv:u("år",function(I){return"månad"+(I===1?"":"er")},function(I){return"veck"+(I===1?"a":"or")},function(I){return"dag"+(I===1?"":"ar")},function(I){return"timm"+(I===1?"e":"ar")},function(I){return"minut"+(I===1?"":"er")},function(I){return"sekund"+(I===1?"":"er")},function(I){return"millisekund"+(I===1?"":"er")},","),sw:e(u(function(I){return I===1?"mwaka":"miaka"},function(I){return I===1?"mwezi":"miezi"},"wiki",function(I){return I===1?"siku":"masiku"},function(I){return I===1?"saa":"masaa"},"dakika","sekunde","milisekunde"),{_numberFirst:!0}),tr:u("yıl","ay","hafta","gün","saat","dakika","saniye","milisaniye",","),th:u("ปี","เดือน","สัปดาห์","วัน","ชั่วโมง","นาที","วินาที","มิลลิวินาที"),uz:u("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:u("йил","ой","ҳафта","кун","соат","минут","секунд","миллисекунд"),vi:u("năm","tháng","tuần","ngày","giờ","phút","giây","mili giây",","),zh_CN:u("年","个月","周","天","小时","分钟","秒","毫秒"),zh_TW:u("年","個月","周","天","小時","分鐘","秒","毫秒")};function u(I,O,U,N,H,z,G,j,q){var X={y:I,mo:O,w:U,d:N,h:H,m:z,s:G,ms:j};return typeof q<"u"&&(X.decimal=q),X}function f(I){return I===2?1:I>2&&I<11?2:0}function h(I){return I===1?0:Math.floor(I)!==I?1:I%10>=2&&I%10<=4&&!(I%100>10&&I%100<20)?2:3}function A(I){return Math.floor(I)!==I?2:I%100>=5&&I%100<=20||I%10>=5&&I%10<=9||I%10===0?0:I%10===1?1:I>1?2:0}function p(I){return I===1?0:Math.floor(I)!==I?1:I%10>=2&&I%10<=4&&I%100<10?2:3}function g(I){return I===1||I%10===1&&I%100>20?0:Math.floor(I)!==I||I%10>=2&&I%100>20||I%10>=2&&I%100<10?1:2}function y(I){return I%10===1&&I%100!==11}function _(I,O){return Object.prototype.hasOwnProperty.call(I,O)}function b(I){var O=[I.language];if(_(I,"fallbacks"))if(r(I.fallbacks)&&I.fallbacks.length)O=O.concat(I.fallbacks);else throw new Error("fallbacks must be an array with at least one element");for(var U=0;U<O.length;U++){var N=O[U];if(_(I.languages,N))return I.languages[N];if(_(o,N))return o[N]}throw new Error("No language found.")}function C(I,O,U){var N=I.unitName,H=I.unitCount,z=U.spacer,G=U.maxDecimalPoints,j;_(U,"decimal")?j=U.decimal:_(O,"decimal")?j=O.decimal:j=".";var q;"digitReplacements"in U?q=U.digitReplacements:"_digitReplacements"in O&&(q=O._digitReplacements);var X,Y=G===void 0?H:Math.floor(H*Math.pow(10,G))/Math.pow(10,G),te=Y.toString();if(O._hideCountIf2&&H===2)X="",z="";else if(q){X="";for(var K=0;K<te.length;K++){var ce=te[K];ce==="."?X+=j:X+=q[ce]}}else X=te.replace(".",j);var ae=O[N],le;return typeof ae=="function"?le=ae(H):le=ae,O._numberFirst?le+z+X:X+z+le}function T(I,O){var U,N,H,z,G=O.units,j=O.unitMeasures,q="largest"in O?O.largest:1/0;if(!G.length)return[];var X={};for(z=I,N=0;N<G.length;N++){U=G[N];var Y=j[U],te=N===G.length-1;H=te?z/Y:Math.floor(z/Y),X[U]=H,z-=H*Y}if(O.round){var K=q;for(N=0;N<G.length;N++)if(U=G[N],H=X[U],H!==0&&(K--,K===0)){for(var ce=N+1;ce<G.length;ce++){var ae=G[ce],le=X[ae];X[U]+=le*j[ae]/j[U],X[ae]=0}break}for(N=G.length-1;N>=0;N--)if(U=G[N],H=X[U],H!==0){var pe=Math.round(H);if(X[U]=pe,N===0)break;var ie=G[N-1],he=j[ie],re=Math.floor(pe*j[U]/he);if(re)X[ie]+=re,X[U]=0;else break}}var oe=[];for(N=0;N<G.length&&oe.length<q;N++)U=G[N],H=X[U],H&&oe.push({unitName:U,unitCount:H});return oe}function B(I,O){var U=b(O);if(!I.length){var N=O.units,H=N[N.length-1];return C({unitName:H,unitCount:0},U,O)}var z=O.conjunction,G=O.serialComma,j;_(O,"delimiter")?j=O.delimiter:_(U,"delimiter")?j=U.delimiter:j=", ";for(var q=[],X=0;X<I.length;X++)q.push(C(I[X],U,O));return!z||I.length===1?q.join(j):I.length===2?q.join(z):q.slice(0,-1).join(j)+(G?",":"")+z+q.slice(-1)}function L(I){var O=function(N,H){N=Math.abs(N);var z=e({},O,H||{}),G=T(N,z);return B(G,z)};return e(O,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},I)}var P=e(L({}),{getSupportedLanguages:function(){var O=[];for(var U in o)_(o,U)&&U!=="gr"&&O.push(U);return O},humanizer:L});t.exports?t.exports=P:this.humanizeDuration=P})()}(u9)),u9.exports}var n0t=r0t();const pQt=Dn(n0t);class pw extends Error{}class i0t extends pw{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class a0t extends pw{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class o0t extends pw{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class z_ extends pw{}class EDe extends pw{constructor(e){super(`Invalid unit ${e}`)}}class Ic extends pw{}class Tm extends pw{constructor(){super("Zone is an abstract class")}}const un="numeric",jA="short",Eh="long",pP={year:un,month:un,day:un},BDe={year:un,month:jA,day:un},s0t={year:un,month:jA,day:un,weekday:jA},IDe={year:un,month:Eh,day:un},LDe={year:un,month:Eh,day:un,weekday:Eh},MDe={hour:un,minute:un},DDe={hour:un,minute:un,second:un},RDe={hour:un,minute:un,second:un,timeZoneName:jA},PDe={hour:un,minute:un,second:un,timeZoneName:Eh},ODe={hour:un,minute:un,hourCycle:"h23"},kDe={hour:un,minute:un,second:un,hourCycle:"h23"},FDe={hour:un,minute:un,second:un,hourCycle:"h23",timeZoneName:jA},NDe={hour:un,minute:un,second:un,hourCycle:"h23",timeZoneName:Eh},UDe={year:un,month:un,day:un,hour:un,minute:un},HDe={year:un,month:un,day:un,hour:un,minute:un,second:un},QDe={year:un,month:jA,day:un,hour:un,minute:un},VDe={year:un,month:jA,day:un,hour:un,minute:un,second:un},l0t={year:un,month:jA,day:un,weekday:jA,hour:un,minute:un},zDe={year:un,month:Eh,day:un,hour:un,minute:un,timeZoneName:jA},GDe={year:un,month:Eh,day:un,hour:un,minute:un,second:un,timeZoneName:jA},jDe={year:un,month:Eh,day:un,weekday:Eh,hour:un,minute:un,timeZoneName:Eh},qDe={year:un,month:Eh,day:un,weekday:Eh,hour:un,minute:un,second:un,timeZoneName:Eh};class dB{get type(){throw new Tm}get name(){throw new Tm}get ianaName(){return this.name}get isUniversal(){throw new Tm}offsetName(e,r){throw new Tm}formatOffset(e,r){throw new Tm}offset(e){throw new Tm}equals(e){throw new Tm}get isValid(){throw new Tm}}let c9=null;class sk extends dB{static get instance(){return c9===null&&(c9=new sk),c9}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return n5e(e,r,n)}formatOffset(e,r){return PE(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const c$=new Map;function u0t(t){let e=c$.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),c$.set(t,e)),e}const c0t={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function f0t(t,e){const r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,o,u,f,h,A,p,g]=n;return[f,o,u,h,A,p,g]}function h0t(t,e){const r=t.formatToParts(e),n=[];for(let o=0;o<r.length;o++){const{type:u,value:f}=r[o],h=c0t[u];u==="era"?n[h]=f:xi(h)||(n[h]=parseInt(f,10))}return n}const f9=new Map;class bg extends dB{static create(e){let r=f9.get(e);return r===void 0&&f9.set(e,r=new bg(e)),r}static resetCache(){f9.clear(),c$.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=bg.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return n5e(e,r,n,this.name)}formatOffset(e,r){return PE(this.offset(e),r)}offset(e){if(!this.valid)return NaN;const r=new Date(e);if(isNaN(r))return NaN;const n=u0t(this.name);let[o,u,f,h,A,p,g]=n.formatToParts?h0t(n,r):f0t(n,r);h==="BC"&&(o=-Math.abs(o)+1);const _=uk({year:o,month:u,day:f,hour:A===24?0:A,minute:p,second:g,millisecond:0});let b=+r;const C=b%1e3;return b-=C>=0?C:1e3+C,(_-b)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let Oye={};function d0t(t,e={}){const r=JSON.stringify([t,e]);let n=Oye[r];return n||(n=new Intl.ListFormat(t,e),Oye[r]=n),n}const f$=new Map;function h$(t,e={}){const r=JSON.stringify([t,e]);let n=f$.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(t,e),f$.set(r,n)),n}const d$=new Map;function A0t(t,e={}){const r=JSON.stringify([t,e]);let n=d$.get(r);return n===void 0&&(n=new Intl.NumberFormat(t,e),d$.set(r,n)),n}const A$=new Map;function v0t(t,e={}){const{base:r,...n}=e,o=JSON.stringify([t,n]);let u=A$.get(o);return u===void 0&&(u=new Intl.RelativeTimeFormat(t,e),A$.set(o,u)),u}let oE=null;function p0t(){return oE||(oE=new Intl.DateTimeFormat().resolvedOptions().locale,oE)}const v$=new Map;function WDe(t){let e=v$.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),v$.set(t,e)),e}const p$=new Map;function g0t(t){let e=p$.get(t);if(!e){const r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...$De,...e}),p$.set(t,e)}return e}function m0t(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const r=t.indexOf("-u-");if(r===-1)return[t];{let n,o;try{n=h$(t).resolvedOptions(),o=t}catch{const A=t.substring(0,r);n=h$(A).resolvedOptions(),o=A}const{numberingSystem:u,calendar:f}=n;return[o,u,f]}}function y0t(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function w0t(t){const e=[];for(let r=1;r<=12;r++){const n=Pi.utc(2009,r,1);e.push(t(n))}return e}function b0t(t){const e=[];for(let r=1;r<=7;r++){const n=Pi.utc(2016,11,13+r);e.push(t(n))}return e}function GM(t,e,r,n){const o=t.listingMode();return o==="error"?null:o==="en"?r(e):n(e)}function _0t(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||WDe(t.locale).numberingSystem==="latn"}class S0t{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:o,floor:u,...f}=n;if(!r||Object.keys(f).length>0){const h={useGrouping:!1,...n};n.padTo>0&&(h.minimumIntegerDigits=n.padTo),this.inf=A0t(e,h)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):GX(e,3);return Pl(r,this.padTo)}}}class x0t{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const f=-1*(e.offset/60),h=f>=0?`Etc/GMT+${f}`:`Etc/GMT${f}`;e.offset!==0&&bg.create(h).valid?(o=h,this.dt=e):(o="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,o=e.zone.name):(o="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const u={...this.opts};u.timeZone=u.timeZone||o,this.dtf=h$(r,u)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class C0t{constructor(e,r,n){this.opts={style:"long",...n},!r&&t5e()&&(this.rtf=v0t(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):W0t(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}const $De={firstDay:1,minimalDays:4,weekend:[6,7]};class no{static fromOpts(e){return no.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,o,u=!1){const f=e||Hs.defaultLocale,h=f||(u?"en-US":p0t()),A=r||Hs.defaultNumberingSystem,p=n||Hs.defaultOutputCalendar,g=m$(o)||Hs.defaultWeekSettings;return new no(h,A,p,g,f)}static resetCache(){oE=null,f$.clear(),d$.clear(),A$.clear(),v$.clear(),p$.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:o}={}){return no.create(e,r,n,o)}constructor(e,r,n,o,u){const[f,h,A]=m0t(e);this.locale=f,this.numberingSystem=r||h||null,this.outputCalendar=n||A||null,this.weekSettings=o,this.intl=y0t(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=u,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=_0t(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:no.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,m$(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return GM(this,e,o5e,()=>{const n=this.intl==="ja"||this.intl.startsWith("ja-");r&=!n;const o=r?{month:e,day:"numeric"}:{month:e},u=r?"format":"standalone";if(!this.monthsCache[u][e]){const f=n?h=>this.dtFormatter(h,o).format():h=>this.extract(h,o,"month");this.monthsCache[u][e]=w0t(f)}return this.monthsCache[u][e]})}weekdays(e,r=!1){return GM(this,e,u5e,()=>{const n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=r?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=b0t(u=>this.extract(u,n,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return GM(this,void 0,()=>c5e,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Pi.utc(2016,11,13,9),Pi.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return GM(this,e,f5e,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[Pi.utc(-40,1,1),Pi.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){const o=this.dtFormatter(e,r),u=o.formatToParts(),f=u.find(h=>h.type.toLowerCase()===n);return f?f.value:null}numberFormatter(e={}){return new S0t(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new x0t(e,this.intl,r)}relFormatter(e={}){return new C0t(this.intl,this.isEnglish(),e)}listFormatter(e={}){return d0t(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||WDe(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:r5e()?g0t(this.locale):$De}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let h9=null;class uf extends dB{static get utcInstance(){return h9===null&&(h9=new uf(0)),h9}static instance(e){return e===0?uf.utcInstance:new uf(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new uf(ck(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${PE(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${PE(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return PE(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class T0t extends dB{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Ym(t,e){if(xi(t)||t===null)return e;if(t instanceof dB)return t;if(D0t(t)){const r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?sk.instance:r==="utc"||r==="gmt"?uf.utcInstance:uf.parseSpecifier(r)||bg.create(t)}else return cy(t)?uf.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new T0t(t)}const HX={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},kye={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},E0t=HX.hanidec.replace(/[\[|\]]/g,"").split("");function B0t(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);if(t[r].search(HX.hanidec)!==-1)e+=E0t.indexOf(t[r]);else for(const o in kye){const[u,f]=kye[o];n>=u&&n<=f&&(e+=n-u)}}return parseInt(e,10)}else return e}const g$=new Map;function I0t(){g$.clear()}function wA({numberingSystem:t},e=""){const r=t||"latn";let n=g$.get(r);n===void 0&&(n=new Map,g$.set(r,n));let o=n.get(e);return o===void 0&&(o=new RegExp(`${HX[r]}${e}`),n.set(e,o)),o}let Fye=()=>Date.now(),Nye="system",Uye=null,Hye=null,Qye=null,Vye=60,zye,Gye=null;class Hs{static get now(){return Fye}static set now(e){Fye=e}static set defaultZone(e){Nye=e}static get defaultZone(){return Ym(Nye,sk.instance)}static get defaultLocale(){return Uye}static set defaultLocale(e){Uye=e}static get defaultNumberingSystem(){return Hye}static set defaultNumberingSystem(e){Hye=e}static get defaultOutputCalendar(){return Qye}static set defaultOutputCalendar(e){Qye=e}static get defaultWeekSettings(){return Gye}static set defaultWeekSettings(e){Gye=m$(e)}static get twoDigitCutoffYear(){return Vye}static set twoDigitCutoffYear(e){Vye=e%100}static get throwOnInvalid(){return zye}static set throwOnInvalid(e){zye=e}static resetCaches(){no.resetCache(),bg.resetCache(),Pi.resetCache(),I0t()}}class kA{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const KDe=[0,31,59,90,120,151,181,212,243,273,304,334],YDe=[0,31,60,91,121,152,182,213,244,274,305,335];function Ld(t,e){return new kA("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function QX(t,e,r){const n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const o=n.getUTCDay();return o===0?7:o}function XDe(t,e,r){return r+(AB(t)?YDe:KDe)[e-1]}function ZDe(t,e){const r=AB(t)?YDe:KDe,n=r.findIndex(u=>u<e),o=e-r[n];return{month:n+1,day:o}}function VX(t,e){return(t-e+7)%7+1}function gP(t,e=4,r=1){const{year:n,month:o,day:u}=t,f=XDe(n,o,u),h=VX(QX(n,o,u),r);let A=Math.floor((f-h+14-e)/7),p;return A<1?(p=n-1,A=m2(p,e,r)):A>m2(n,e,r)?(p=n+1,A=1):p=n,{weekYear:p,weekNumber:A,weekday:h,...fk(t)}}function jye(t,e=4,r=1){const{weekYear:n,weekNumber:o,weekday:u}=t,f=VX(QX(n,1,e),r),h=lS(n);let A=o*7+u-f-7+e,p;A<1?(p=n-1,A+=lS(p)):A>h?(p=n+1,A-=lS(n)):p=n;const{month:g,day:y}=ZDe(p,A);return{year:p,month:g,day:y,...fk(t)}}function d9(t){const{year:e,month:r,day:n}=t,o=XDe(e,r,n);return{year:e,ordinal:o,...fk(t)}}function qye(t){const{year:e,ordinal:r}=t,{month:n,day:o}=ZDe(e,r);return{year:e,month:n,day:o,...fk(t)}}function Wye(t,e){if(!xi(t.localWeekday)||!xi(t.localWeekNumber)||!xi(t.localWeekYear)){if(!xi(t.weekday)||!xi(t.weekNumber)||!xi(t.weekYear))throw new z_("Cannot mix locale-based week fields with ISO-based week fields");return xi(t.localWeekday)||(t.weekday=t.localWeekday),xi(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),xi(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function L0t(t,e=4,r=1){const n=lk(t.weekYear),o=Md(t.weekNumber,1,m2(t.weekYear,e,r)),u=Md(t.weekday,1,7);return n?o?u?!1:Ld("weekday",t.weekday):Ld("week",t.weekNumber):Ld("weekYear",t.weekYear)}function M0t(t){const e=lk(t.year),r=Md(t.ordinal,1,lS(t.year));return e?r?!1:Ld("ordinal",t.ordinal):Ld("year",t.year)}function JDe(t){const e=lk(t.year),r=Md(t.month,1,12),n=Md(t.day,1,mP(t.year,t.month));return e?r?n?!1:Ld("day",t.day):Ld("month",t.month):Ld("year",t.year)}function e5e(t){const{hour:e,minute:r,second:n,millisecond:o}=t,u=Md(e,0,23)||e===24&&r===0&&n===0&&o===0,f=Md(r,0,59),h=Md(n,0,59),A=Md(o,0,999);return u?f?h?A?!1:Ld("millisecond",o):Ld("second",n):Ld("minute",r):Ld("hour",e)}function xi(t){return typeof t>"u"}function cy(t){return typeof t=="number"}function lk(t){return typeof t=="number"&&t%1===0}function D0t(t){return typeof t=="string"}function R0t(t){return Object.prototype.toString.call(t)==="[object Date]"}function t5e(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function r5e(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function P0t(t){return Array.isArray(t)?t:[t]}function $ye(t,e,r){if(t.length!==0)return t.reduce((n,o)=>{const u=[e(o),o];return n&&r(n[0],u[0])===n[0]?n:u},null)[1]}function O0t(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function PS(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function m$(t){if(t==null)return null;if(typeof t!="object")throw new Ic("Week settings must be an object");if(!Md(t.firstDay,1,7)||!Md(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Md(e,1,7)))throw new Ic("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Md(t,e,r){return lk(t)&&t>=e&&t<=r}function k0t(t,e){return t-e*Math.floor(t/e)}function Pl(t,e=2){const r=t<0;let n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function qm(t){if(!(xi(t)||t===null||t===""))return parseInt(t,10)}function Q0(t){if(!(xi(t)||t===null||t===""))return parseFloat(t)}function zX(t){if(!(xi(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function GX(t,e,r="round"){const n=10**e;switch(r){case"expand":return t>0?Math.ceil(t*n)/n:Math.floor(t*n)/n;case"trunc":return Math.trunc(t*n)/n;case"round":return Math.round(t*n)/n;case"floor":return Math.floor(t*n)/n;case"ceil":return Math.ceil(t*n)/n;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function AB(t){return t%4===0&&(t%100!==0||t%400===0)}function lS(t){return AB(t)?366:365}function mP(t,e){const r=k0t(e-1,12)+1,n=t+(e-r)/12;return r===2?AB(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function uk(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Kye(t,e,r){return-VX(QX(t,1,e),r)+e-1}function m2(t,e=4,r=1){const n=Kye(t,e,r),o=Kye(t+1,e,r);return(lS(t)-n+o)/7}function y$(t){return t>99?t:t>Hs.twoDigitCutoffYear?1900+t:2e3+t}function n5e(t,e,r,n=null){const o=new Date(t),u={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(u.timeZone=n);const f={timeZoneName:e,...u},h=new Intl.DateTimeFormat(r,f).formatToParts(o).find(A=>A.type.toLowerCase()==="timezonename");return h?h.value:null}function ck(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0,o=r<0||Object.is(r,-0)?-n:n;return r*60+o}function i5e(t){const e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new Ic(`Invalid unit value ${t}`);return e}function yP(t,e){const r={};for(const n in t)if(PS(t,n)){const o=t[n];if(o==null)continue;r[e(n)]=i5e(o)}return r}function PE(t,e){const r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${Pl(r,2)}:${Pl(n,2)}`;case"narrow":return`${o}${r}${n>0?`:${n}`:""}`;case"techie":return`${o}${Pl(r,2)}${Pl(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function fk(t){return O0t(t,["hour","minute","second","millisecond"])}const F0t=["January","February","March","April","May","June","July","August","September","October","November","December"],a5e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],N0t=["J","F","M","A","M","J","J","A","S","O","N","D"];function o5e(t){switch(t){case"narrow":return[...N0t];case"short":return[...a5e];case"long":return[...F0t];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const s5e=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],l5e=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],U0t=["M","T","W","T","F","S","S"];function u5e(t){switch(t){case"narrow":return[...U0t];case"short":return[...l5e];case"long":return[...s5e];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const c5e=["AM","PM"],H0t=["Before Christ","Anno Domini"],Q0t=["BC","AD"],V0t=["B","A"];function f5e(t){switch(t){case"narrow":return[...V0t];case"short":return[...Q0t];case"long":return[...H0t];default:return null}}function z0t(t){return c5e[t.hour<12?0:1]}function G0t(t,e){return u5e(e)[t.weekday-1]}function j0t(t,e){return o5e(e)[t.month-1]}function q0t(t,e){return f5e(e)[t.year<0?0:1]}function W0t(t,e,r="always",n=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},u=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&u){const y=t==="days";switch(e){case 1:return y?"tomorrow":`next ${o[t][0]}`;case-1:return y?"yesterday":`last ${o[t][0]}`;case 0:return y?"today":`this ${o[t][0]}`}}const f=Object.is(e,-0)||e<0,h=Math.abs(e),A=h===1,p=o[t],g=n?A?p[1]:p[2]||p[1]:A?o[t][0]:t;return f?`${h} ${g} ago`:`in ${h} ${g}`}function Yye(t,e){let r="";for(const n of t)n.literal?r+=n.val:r+=e(n.val);return r}const $0t={D:pP,DD:BDe,DDD:IDe,DDDD:LDe,t:MDe,tt:DDe,ttt:RDe,tttt:PDe,T:ODe,TT:kDe,TTT:FDe,TTTT:NDe,f:UDe,ff:QDe,fff:zDe,ffff:jDe,F:HDe,FF:VDe,FFF:GDe,FFFF:qDe};let PA=class sE{static create(e,r={}){return new sE(e,r)}static parseFormat(e){let r=null,n="",o=!1;const u=[];for(let f=0;f<e.length;f++){const h=e.charAt(f);h==="'"?((n.length>0||o)&&u.push({literal:o||/^\s+$/.test(n),val:n===""?"'":n}),r=null,n="",o=!o):o||h===r?n+=h:(n.length>0&&u.push({literal:/^\s+$/.test(n),val:n}),n=h,r=h)}return n.length>0&&u.push({literal:o||/^\s+$/.test(n),val:n}),u}static macroTokenToFormatOpts(e){return $0t[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0,n=void 0){if(this.opts.forceSimple)return Pl(e,r);const o={...this.opts};return r>0&&(o.padTo=r),n&&(o.signDisplay=n),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,r){const n=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",u=(b,C)=>this.loc.extract(e,b,C),f=b=>e.isOffsetFixed&&e.offset===0&&b.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,b.format):"",h=()=>n?z0t(e):u({hour:"numeric",hourCycle:"h12"},"dayperiod"),A=(b,C)=>n?j0t(e,b):u(C?{month:b}:{month:b,day:"numeric"},"month"),p=(b,C)=>n?G0t(e,b):u(C?{weekday:b}:{weekday:b,month:"long",day:"numeric"},"weekday"),g=b=>{const C=sE.macroTokenToFormatOpts(b);return C?this.formatWithSystemDefault(e,C):b},y=b=>n?q0t(e,b):u({era:b},"era"),_=b=>{switch(b){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return f({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return f({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return f({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return h();case"d":return o?u({day:"numeric"},"day"):this.num(e.day);case"dd":return o?u({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return p("short",!0);case"cccc":return p("long",!0);case"ccccc":return p("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return p("short",!1);case"EEEE":return p("long",!1);case"EEEEE":return p("narrow",!1);case"L":return o?u({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return o?u({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return A("short",!0);case"LLLL":return A("long",!0);case"LLLLL":return A("narrow",!0);case"M":return o?u({month:"numeric"},"month"):this.num(e.month);case"MM":return o?u({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return A("short",!1);case"MMMM":return A("long",!1);case"MMMMM":return A("narrow",!1);case"y":return o?u({year:"numeric"},"year"):this.num(e.year);case"yy":return o?u({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return o?u({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return o?u({year:"numeric"},"year"):this.num(e.year,6);case"G":return y("short");case"GG":return y("long");case"GGGGG":return y("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return g(b)}};return Yye(sE.parseFormat(r),_)}formatDurationFromString(e,r){const n=this.opts.signMode==="negativeLargestOnly"?-1:1,o=g=>{switch(g[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},u=(g,y)=>_=>{const b=o(_);if(b){const C=y.isNegativeDuration&&b!==y.largestUnit?n:1;let T;return this.opts.signMode==="negativeLargestOnly"&&b!==y.largestUnit?T="never":this.opts.signMode==="all"?T="always":T="auto",this.num(g.get(b)*C,_.length,T)}else return _},f=sE.parseFormat(r),h=f.reduce((g,{literal:y,val:_})=>y?g:g.concat(_),[]),A=e.shiftTo(...h.map(o).filter(g=>g)),p={isNegativeDuration:A<0,largestUnit:Object.keys(A.values)[0]};return Yye(f,u(A,p))}};const h5e=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function rx(...t){const e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function nx(...t){return e=>t.reduce(([r,n,o],u)=>{const[f,h,A]=u(e,o);return[{...r,...f},h||n,A]},[{},null,1]).slice(0,2)}function ix(t,...e){if(t==null)return[null,null];for(const[r,n]of e){const o=r.exec(t);if(o)return n(o)}return[null,null]}function d5e(...t){return(e,r)=>{const n={};let o;for(o=0;o<t.length;o++)n[t[o]]=qm(e[r+o]);return[n,null,r+o]}}const A5e=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,K0t=`(?:${A5e.source}?(?:\\[(${h5e.source})\\])?)?`,jX=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,v5e=RegExp(`${jX.source}${K0t}`),qX=RegExp(`(?:[Tt]${v5e.source})?`),Y0t=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,X0t=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Z0t=/(\d{4})-?(\d{3})/,J0t=d5e("weekYear","weekNumber","weekDay"),e1t=d5e("year","ordinal"),t1t=/(\d{4})-(\d\d)-(\d\d)/,p5e=RegExp(`${jX.source} ?(?:${A5e.source}|(${h5e.source}))?`),r1t=RegExp(`(?: ${p5e.source})?`);function uS(t,e,r){const n=t[e];return xi(n)?r:qm(n)}function n1t(t,e){return[{year:uS(t,e),month:uS(t,e+1,1),day:uS(t,e+2,1)},null,e+3]}function ax(t,e){return[{hours:uS(t,e,0),minutes:uS(t,e+1,0),seconds:uS(t,e+2,0),milliseconds:zX(t[e+3])},null,e+4]}function vB(t,e){const r=!t[e]&&!t[e+1],n=ck(t[e+1],t[e+2]),o=r?null:uf.instance(n);return[{},o,e+3]}function pB(t,e){const r=t[e]?bg.create(t[e]):null;return[{},r,e+1]}const i1t=RegExp(`^T?${jX.source}$`),a1t=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function o1t(t){const[e,r,n,o,u,f,h,A,p]=t,g=e[0]==="-",y=A&&A[0]==="-",_=(b,C=!1)=>b!==void 0&&(C||b&&g)?-b:b;return[{years:_(Q0(r)),months:_(Q0(n)),weeks:_(Q0(o)),days:_(Q0(u)),hours:_(Q0(f)),minutes:_(Q0(h)),seconds:_(Q0(A),A==="-0"),milliseconds:_(zX(p),y)}]}const s1t={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function WX(t,e,r,n,o,u,f){const h={year:e.length===2?y$(qm(e)):qm(e),month:a5e.indexOf(r)+1,day:qm(n),hour:qm(o),minute:qm(u)};return f&&(h.second=qm(f)),t&&(h.weekday=t.length>3?s5e.indexOf(t)+1:l5e.indexOf(t)+1),h}const l1t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function u1t(t){const[,e,r,n,o,u,f,h,A,p,g,y]=t,_=WX(e,o,n,r,u,f,h);let b;return A?b=s1t[A]:p?b=0:b=ck(g,y),[_,new uf(b)]}function c1t(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const f1t=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,h1t=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,d1t=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Xye(t){const[,e,r,n,o,u,f,h]=t;return[WX(e,o,n,r,u,f,h),uf.utcInstance]}function A1t(t){const[,e,r,n,o,u,f,h]=t;return[WX(e,h,r,n,o,u,f),uf.utcInstance]}const v1t=rx(Y0t,qX),p1t=rx(X0t,qX),g1t=rx(Z0t,qX),m1t=rx(v5e),g5e=nx(n1t,ax,vB,pB),y1t=nx(J0t,ax,vB,pB),w1t=nx(e1t,ax,vB,pB),b1t=nx(ax,vB,pB);function _1t(t){return ix(t,[v1t,g5e],[p1t,y1t],[g1t,w1t],[m1t,b1t])}function S1t(t){return ix(c1t(t),[l1t,u1t])}function x1t(t){return ix(t,[f1t,Xye],[h1t,Xye],[d1t,A1t])}function C1t(t){return ix(t,[a1t,o1t])}const T1t=nx(ax);function E1t(t){return ix(t,[i1t,T1t])}const B1t=rx(t1t,r1t),I1t=rx(p5e),L1t=nx(ax,vB,pB);function M1t(t){return ix(t,[B1t,g5e],[I1t,L1t])}const Zye="Invalid Duration",m5e={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},D1t={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...m5e},dd=146097/400,r_=146097/4800,R1t={years:{quarters:4,months:12,weeks:dd/7,days:dd,hours:dd*24,minutes:dd*24*60,seconds:dd*24*60*60,milliseconds:dd*24*60*60*1e3},quarters:{months:3,weeks:dd/28,days:dd/4,hours:dd*24/4,minutes:dd*24*60/4,seconds:dd*24*60*60/4,milliseconds:dd*24*60*60*1e3/4},months:{weeks:r_/7,days:r_,hours:r_*24,minutes:r_*24*60,seconds:r_*24*60*60,milliseconds:r_*24*60*60*1e3},...m5e},E1=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],P1t=E1.slice(0).reverse();function Kp(t,e,r=!1){const n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new La(n)}function y5e(t,e){let r=e.milliseconds??0;for(const n of P1t.slice(1))e[n]&&(r+=e[n]*t[n].milliseconds);return r}function Jye(t,e){const r=y5e(t,e)<0?-1:1;E1.reduceRight((n,o)=>{if(xi(e[o]))return n;if(n){const u=e[n]*r,f=t[o][n],h=Math.floor(u/f);e[o]+=h*r,e[n]-=h*f*r}return o},null),E1.reduce((n,o)=>{if(xi(e[o]))return n;if(n){const u=e[n]%1;e[n]-=u,e[o]+=u*t[n][o]}return o},null)}function e0e(t){const e={};for(const[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}class La{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;let n=r?R1t:D1t;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||no.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return La.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Ic(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new La({values:yP(e,La.normalizeUnit),loc:no.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(cy(e))return La.fromMillis(e);if(La.isDuration(e))return e;if(typeof e=="object")return La.fromObject(e);throw new Ic(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[n]=C1t(e);return n?La.fromObject(n,r):La.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[n]=E1t(e);return n?La.fromObject(n,r):La.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Ic("need to specify a reason the Duration is invalid");const n=e instanceof kA?e:new kA(e,r);if(Hs.throwOnInvalid)throw new o0t(n);return new La({invalid:n})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new EDe(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?PA.create(this.loc,n).formatDurationFromString(this,e):Zye}toHuman(e={}){if(!this.isValid)return Zye;const r=e.showZeros!==!1,n=E1.map(o=>{const u=this.values[o];return xi(u)||u===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:o.slice(0,-1)}).format(u)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=GX(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Pi.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?y5e(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=La.fromDurationLike(e),n={};for(const o of E1)(PS(r.values,o)||PS(this.values,o))&&(n[o]=r.get(o)+this.get(o));return Kp(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const r=La.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=i5e(e(this.values[n],n));return Kp(this,{values:r},!0)}get(e){return this[La.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...yP(e,La.normalizeUnit)};return Kp(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:o}={}){const f={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:o,conversionAccuracy:n};return Kp(this,f)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Jye(this.matrix,e),Kp(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=e0e(this.normalize().shiftToAll().toObject());return Kp(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(f=>La.normalizeUnit(f));const r={},n={},o=this.toObject();let u;for(const f of E1)if(e.indexOf(f)>=0){u=f;let h=0;for(const p in n)h+=this.matrix[p][f]*n[p],n[p]=0;cy(o[f])&&(h+=o[f]);const A=Math.trunc(h);r[f]=A,n[f]=(h*1e3-A*1e3)/1e3}else cy(o[f])&&(n[f]=o[f]);for(const f in n)n[f]!==0&&(r[u]+=f===u?n[f]:n[f]/this.matrix[u][f]);return Jye(this.matrix,r),Kp(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return Kp(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=e0e(this.values);return Kp(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,o){return n===void 0||n===0?o===void 0||o===0:n===o}for(const n of E1)if(!r(this.values[n],e.values[n]))return!1;return!0}}const n_="Invalid Interval";function O1t(t,e){return!t||!t.isValid?Fs.invalid("missing or invalid start"):!e||!e.isValid?Fs.invalid("missing or invalid end"):e<t?Fs.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Fs{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new Ic("need to specify a reason the Interval is invalid");const n=e instanceof kA?e:new kA(e,r);if(Hs.throwOnInvalid)throw new a0t(n);return new Fs({invalid:n})}static fromDateTimes(e,r){const n=AT(e),o=AT(r),u=O1t(n,o);return u??new Fs({start:n,end:o})}static after(e,r){const n=La.fromDurationLike(r),o=AT(e);return Fs.fromDateTimes(o,o.plus(n))}static before(e,r){const n=La.fromDurationLike(r),o=AT(e);return Fs.fromDateTimes(o.minus(n),o)}static fromISO(e,r){const[n,o]=(e||"").split("/",2);if(n&&o){let u,f;try{u=Pi.fromISO(n,r),f=u.isValid}catch{f=!1}let h,A;try{h=Pi.fromISO(o,r),A=h.isValid}catch{A=!1}if(f&&A)return Fs.fromDateTimes(u,h);if(f){const p=La.fromISO(o,r);if(p.isValid)return Fs.after(u,p)}else if(A){const p=La.fromISO(n,r);if(p.isValid)return Fs.before(h,p)}}return Fs.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;const n=this.start.startOf(e,r);let o;return r?.useLocaleWeeks?o=this.end.reconfigure({locale:n.locale}):o=this.end,o=o.startOf(e,r),Math.floor(o.diff(n,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?Fs.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(AT).filter(f=>this.contains(f)).sort((f,h)=>f.toMillis()-h.toMillis()),n=[];let{s:o}=this,u=0;for(;o<this.e;){const f=r[u]||this.e,h=+f>+this.e?this.e:f;n.push(Fs.fromDateTimes(o,h)),o=h,u+=1}return n}splitBy(e){const r=La.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,o=1,u;const f=[];for(;n<this.e;){const h=this.start.plus(r.mapUnits(A=>A*o));u=+h>+this.e?this.e:h,f.push(Fs.fromDateTimes(n,u)),n=u,o+=1}return f}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:Fs.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;const r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return Fs.fromDateTimes(r,n)}static merge(e){const[r,n]=e.sort((o,u)=>o.s-u.s).reduce(([o,u],f)=>u?u.overlaps(f)||u.abutsStart(f)?[o,u.union(f)]:[o.concat([u]),f]:[o,f],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0;const o=[],u=e.map(A=>[{time:A.s,type:"s"},{time:A.e,type:"e"}]),f=Array.prototype.concat(...u),h=f.sort((A,p)=>A.time-p.time);for(const A of h)n+=A.type==="s"?1:-1,n===1?r=A.time:(r&&+r!=+A.time&&o.push(Fs.fromDateTimes(r,A.time)),r=null);return Fs.merge(o)}difference(...e){return Fs.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:n_}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=pP,r={}){return this.isValid?PA.create(this.s.loc.clone(r),e).formatInterval(this):n_}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:n_}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:n_}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:n_}toFormat(e,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:n_}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):La.invalid(this.invalidReason)}mapEndpoints(e){return Fs.fromDateTimes(e(this.s),e(this.e))}}class jM{static hasDST(e=Hs.defaultZone){const r=Pi.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return bg.isValidZone(e)}static normalizeZone(e){return Ym(e,Hs.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||no.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||no.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||no.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null,outputCalendar:u="gregory"}={}){return(o||no.create(r,n,u)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null,outputCalendar:u="gregory"}={}){return(o||no.create(r,n,u)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null}={}){return(o||no.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null}={}){return(o||no.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return no.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return no.create(r,null,"gregory").eras(e)}static features(){return{relative:t5e(),localeWeek:r5e()}}}function t0e(t,e){const r=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(La.fromMillis(n).as("days"))}function k1t(t,e,r){const n=[["years",(A,p)=>p.year-A.year],["quarters",(A,p)=>p.quarter-A.quarter+(p.year-A.year)*4],["months",(A,p)=>p.month-A.month+(p.year-A.year)*12],["weeks",(A,p)=>{const g=t0e(A,p);return(g-g%7)/7}],["days",t0e]],o={},u=t;let f,h;for(const[A,p]of n)r.indexOf(A)>=0&&(f=A,o[A]=p(t,e),h=u.plus(o),h>e?(o[A]--,t=u.plus(o),t>e&&(h=t,o[A]--,t=u.plus(o))):t=h);return[t,o,h,f]}function F1t(t,e,r,n){let[o,u,f,h]=k1t(t,e,r);const A=e-o,p=r.filter(y=>["hours","minutes","seconds","milliseconds"].indexOf(y)>=0);p.length===0&&(f<e&&(f=o.plus({[h]:1})),f!==o&&(u[h]=(u[h]||0)+A/(f-o)));const g=La.fromObject(u,n);return p.length>0?La.fromMillis(A,n).shiftTo(...p).plus(g):g}const N1t="missing Intl.DateTimeFormat.formatToParts support";function ja(t,e=r=>r){return{regex:t,deser:([r])=>e(B0t(r))}}const U1t=" ",w5e=`[ ${U1t}]`,b5e=new RegExp(w5e,"g");function H1t(t){return t.replace(/\./g,"\\.?").replace(b5e,w5e)}function r0e(t){return t.replace(/\./g,"").replace(b5e," ").toLowerCase()}function bA(t,e){return t===null?null:{regex:RegExp(t.map(H1t).join("|")),deser:([r])=>t.findIndex(n=>r0e(r)===r0e(n))+e}}function n0e(t,e){return{regex:t,deser:([,r,n])=>ck(r,n),groups:e}}function qM(t){return{regex:t,deser:([e])=>e}}function Q1t(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function V1t(t,e){const r=wA(e),n=wA(e,"{2}"),o=wA(e,"{3}"),u=wA(e,"{4}"),f=wA(e,"{6}"),h=wA(e,"{1,2}"),A=wA(e,"{1,3}"),p=wA(e,"{1,6}"),g=wA(e,"{1,9}"),y=wA(e,"{2,4}"),_=wA(e,"{4,6}"),b=B=>({regex:RegExp(Q1t(B.val)),deser:([L])=>L,literal:!0}),T=(B=>{if(t.literal)return b(B);switch(B.val){case"G":return bA(e.eras("short"),0);case"GG":return bA(e.eras("long"),0);case"y":return ja(p);case"yy":return ja(y,y$);case"yyyy":return ja(u);case"yyyyy":return ja(_);case"yyyyyy":return ja(f);case"M":return ja(h);case"MM":return ja(n);case"MMM":return bA(e.months("short",!0),1);case"MMMM":return bA(e.months("long",!0),1);case"L":return ja(h);case"LL":return ja(n);case"LLL":return bA(e.months("short",!1),1);case"LLLL":return bA(e.months("long",!1),1);case"d":return ja(h);case"dd":return ja(n);case"o":return ja(A);case"ooo":return ja(o);case"HH":return ja(n);case"H":return ja(h);case"hh":return ja(n);case"h":return ja(h);case"mm":return ja(n);case"m":return ja(h);case"q":return ja(h);case"qq":return ja(n);case"s":return ja(h);case"ss":return ja(n);case"S":return ja(A);case"SSS":return ja(o);case"u":return qM(g);case"uu":return qM(h);case"uuu":return ja(r);case"a":return bA(e.meridiems(),0);case"kkkk":return ja(u);case"kk":return ja(y,y$);case"W":return ja(h);case"WW":return ja(n);case"E":case"c":return ja(r);case"EEE":return bA(e.weekdays("short",!1),1);case"EEEE":return bA(e.weekdays("long",!1),1);case"ccc":return bA(e.weekdays("short",!0),1);case"cccc":return bA(e.weekdays("long",!0),1);case"Z":case"ZZ":return n0e(new RegExp(`([+-]${h.source})(?::(${n.source}))?`),2);case"ZZZ":return n0e(new RegExp(`([+-]${h.source})(${n.source})?`),2);case"z":return qM(/[a-z_+-/]{1,256}?/i);case" ":return qM(/[^\S\n\r]/);default:return b(B)}})(t)||{invalidReason:N1t};return T.token=t,T}const z1t={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function G1t(t,e,r){const{type:n,value:o}=t;if(n==="literal"){const A=/^\s+$/.test(o);return{literal:!A,val:A?" ":o}}const u=e[n];let f=n;n==="hour"&&(e.hour12!=null?f=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?f="hour12":f="hour24":f=r.hour12?"hour12":"hour24");let h=z1t[f];if(typeof h=="object"&&(h=h[u]),h)return{literal:!1,val:h}}function j1t(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function q1t(t,e,r){const n=t.match(e);if(n){const o={};let u=1;for(const f in r)if(PS(r,f)){const h=r[f],A=h.groups?h.groups+1:1;!h.literal&&h.token&&(o[h.token.val[0]]=h.deser(n.slice(u,u+A))),u+=A}return[n,o]}else return[n,{}]}function W1t(t){const e=u=>{switch(u){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return xi(t.z)||(r=bg.create(t.z)),xi(t.Z)||(r||(r=new uf(t.Z)),n=t.Z),xi(t.q)||(t.M=(t.q-1)*3+1),xi(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),xi(t.u)||(t.S=zX(t.u)),[Object.keys(t).reduce((u,f)=>{const h=e(f);return h&&(u[h]=t[f]),u},{}),r,n]}let A9=null;function $1t(){return A9||(A9=Pi.fromMillis(1555555555555)),A9}function K1t(t,e){if(t.literal)return t;const r=PA.macroTokenToFormatOpts(t.val),n=C5e(r,e);return n==null||n.includes(void 0)?t:n}function _5e(t,e){return Array.prototype.concat(...t.map(r=>K1t(r,e)))}class S5e{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=_5e(PA.parseFormat(r),e),this.units=this.tokens.map(n=>V1t(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,o]=j1t(this.units);this.regex=RegExp(n,"i"),this.handlers=o}}explainFromTokens(e){if(this.isValid){const[r,n]=q1t(e,this.regex,this.handlers),[o,u,f]=n?W1t(n):[null,null,void 0];if(PS(n,"a")&&PS(n,"H"))throw new z_("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:o,zone:u,specificOffset:f}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function x5e(t,e,r){return new S5e(t,r).explainFromTokens(e)}function Y1t(t,e,r){const{result:n,zone:o,specificOffset:u,invalidReason:f}=x5e(t,e,r);return[n,o,u,f]}function C5e(t,e){if(!t)return null;const n=PA.create(e,t).dtFormatter($1t()),o=n.formatToParts(),u=n.resolvedOptions();return o.map(f=>G1t(f,t,u))}const v9="Invalid DateTime",i0e=864e13;function lE(t){return new kA("unsupported zone",`the zone "${t.name}" is not supported`)}function p9(t){return t.weekData===null&&(t.weekData=gP(t.c)),t.weekData}function g9(t){return t.localWeekData===null&&(t.localWeekData=gP(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function V0(t,e){const r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Pi({...r,...e,old:r})}function T5e(t,e,r){let n=t-e*60*1e3;const o=r.offset(n);if(e===o)return[n,e];n-=(o-e)*60*1e3;const u=r.offset(n);return o===u?[n,o]:[t-Math.min(o,u)*60*1e3,Math.max(o,u)]}function WM(t,e){t+=e*60*1e3;const r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function F5(t,e,r){return T5e(uk(t),e,r)}function a0e(t,e){const r=t.o,n=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,u={...t.c,year:n,month:o,day:Math.min(t.c.day,mP(n,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},f=La.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),h=uk(u);let[A,p]=T5e(h,r,t.zone);return f!==0&&(A+=f,p=t.zone.offset(A)),{ts:A,o:p}}function i_(t,e,r,n,o,u){const{setZone:f,zone:h}=r;if(t&&Object.keys(t).length!==0||e){const A=e||h,p=Pi.fromObject(t,{...r,zone:A,specificOffset:u});return f?p:p.setZone(h)}else return Pi.invalid(new kA("unparsable",`the input "${o}" can't be parsed as ${n}`))}function $M(t,e,r=!0){return t.isValid?PA.create(no.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function m9(t,e,r){const n=t.c.year>9999||t.c.year<0;let o="";if(n&&t.c.year>=0&&(o+="+"),o+=Pl(t.c.year,n?6:4),r==="year")return o;if(e){if(o+="-",o+=Pl(t.c.month),r==="month")return o;o+="-"}else if(o+=Pl(t.c.month),r==="month")return o;return o+=Pl(t.c.day),o}function o0e(t,e,r,n,o,u,f){let h=!r||t.c.millisecond!==0||t.c.second!==0,A="";switch(f){case"day":case"month":case"year":break;default:if(A+=Pl(t.c.hour),f==="hour")break;if(e){if(A+=":",A+=Pl(t.c.minute),f==="minute")break;h&&(A+=":",A+=Pl(t.c.second))}else{if(A+=Pl(t.c.minute),f==="minute")break;h&&(A+=Pl(t.c.second))}if(f==="second")break;h&&(!n||t.c.millisecond!==0)&&(A+=".",A+=Pl(t.c.millisecond,3))}return o&&(t.isOffsetFixed&&t.offset===0&&!u?A+="Z":t.o<0?(A+="-",A+=Pl(Math.trunc(-t.o/60)),A+=":",A+=Pl(Math.trunc(-t.o%60))):(A+="+",A+=Pl(Math.trunc(t.o/60)),A+=":",A+=Pl(Math.trunc(t.o%60)))),u&&(A+="["+t.zone.ianaName+"]"),A}const E5e={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},X1t={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Z1t={ordinal:1,hour:0,minute:0,second:0,millisecond:0},N5=["year","month","day","hour","minute","second","millisecond"],J1t=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ewt=["year","ordinal","hour","minute","second","millisecond"];function U5(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new EDe(t);return e}function s0e(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return U5(t)}}function twt(t){if(uE===void 0&&(uE=Hs.now()),t.type!=="iana")return t.offset(uE);const e=t.name;let r=w$.get(e);return r===void 0&&(r=t.offset(uE),w$.set(e,r)),r}function l0e(t,e){const r=Ym(e.zone,Hs.defaultZone);if(!r.isValid)return Pi.invalid(lE(r));const n=no.fromObject(e);let o,u;if(xi(t.year))o=Hs.now();else{for(const A of N5)xi(t[A])&&(t[A]=E5e[A]);const f=JDe(t)||e5e(t);if(f)return Pi.invalid(f);const h=twt(r);[o,u]=F5(t,h,r)}return new Pi({ts:o,zone:r,loc:n,o:u})}function u0e(t,e,r){const n=xi(r.round)?!0:r.round,o=xi(r.rounding)?"trunc":r.rounding,u=(h,A)=>(h=GX(h,n||r.calendary?0:2,r.calendary?"round":o),e.loc.clone(r).relFormatter(r).format(h,A)),f=h=>r.calendary?e.hasSame(t,h)?0:e.startOf(h).diff(t.startOf(h),h).get(h):e.diff(t,h).get(h);if(r.unit)return u(f(r.unit),r.unit);for(const h of r.units){const A=f(h);if(Math.abs(A)>=1)return u(A,h)}return u(t>e?-0:0,r.units[r.units.length-1])}function c0e(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}let uE;const w$=new Map;class Pi{constructor(e){const r=e.zone||Hs.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new kA("invalid input"):null)||(r.isValid?null:lE(r));this.ts=xi(e.ts)?Hs.now():e.ts;let o=null,u=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[o,u]=[e.old.c,e.old.o];else{const h=cy(e.o)&&!e.old?e.o:r.offset(this.ts);o=WM(this.ts,h),n=Number.isNaN(o.year)?new kA("invalid input"):null,o=n?null:o,u=n?null:h}this._zone=r,this.loc=e.loc||no.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=o,this.o=u,this.isLuxonDateTime=!0}static now(){return new Pi({})}static local(){const[e,r]=c0e(arguments),[n,o,u,f,h,A,p]=r;return l0e({year:n,month:o,day:u,hour:f,minute:h,second:A,millisecond:p},e)}static utc(){const[e,r]=c0e(arguments),[n,o,u,f,h,A,p]=r;return e.zone=uf.utcInstance,l0e({year:n,month:o,day:u,hour:f,minute:h,second:A,millisecond:p},e)}static fromJSDate(e,r={}){const n=R0t(e)?e.valueOf():NaN;if(Number.isNaN(n))return Pi.invalid("invalid input");const o=Ym(r.zone,Hs.defaultZone);return o.isValid?new Pi({ts:n,zone:o,loc:no.fromObject(r)}):Pi.invalid(lE(o))}static fromMillis(e,r={}){if(cy(e))return e<-i0e||e>i0e?Pi.invalid("Timestamp out of range"):new Pi({ts:e,zone:Ym(r.zone,Hs.defaultZone),loc:no.fromObject(r)});throw new Ic(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(cy(e))return new Pi({ts:e*1e3,zone:Ym(r.zone,Hs.defaultZone),loc:no.fromObject(r)});throw new Ic("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const n=Ym(r.zone,Hs.defaultZone);if(!n.isValid)return Pi.invalid(lE(n));const o=no.fromObject(r),u=yP(e,s0e),{minDaysInFirstWeek:f,startOfWeek:h}=Wye(u,o),A=Hs.now(),p=xi(r.specificOffset)?n.offset(A):r.specificOffset,g=!xi(u.ordinal),y=!xi(u.year),_=!xi(u.month)||!xi(u.day),b=y||_,C=u.weekYear||u.weekNumber;if((b||g)&&C)throw new z_("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(_&&g)throw new z_("Can't mix ordinal dates with month/day");const T=C||u.weekday&&!b;let B,L,P=WM(A,p);T?(B=J1t,L=X1t,P=gP(P,f,h)):g?(B=ewt,L=Z1t,P=d9(P)):(B=N5,L=E5e);let I=!1;for(const j of B){const q=u[j];xi(q)?I?u[j]=L[j]:u[j]=P[j]:I=!0}const O=T?L0t(u,f,h):g?M0t(u):JDe(u),U=O||e5e(u);if(U)return Pi.invalid(U);const N=T?jye(u,f,h):g?qye(u):u,[H,z]=F5(N,p,n),G=new Pi({ts:H,zone:n,o:z,loc:o});return u.weekday&&b&&e.weekday!==G.weekday?Pi.invalid("mismatched weekday",`you can't specify both a weekday of ${u.weekday} and a date of ${G.toISO()}`):G.isValid?G:Pi.invalid(G.invalid)}static fromISO(e,r={}){const[n,o]=_1t(e);return i_(n,o,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[n,o]=S1t(e);return i_(n,o,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[n,o]=x1t(e);return i_(n,o,r,"HTTP",r)}static fromFormat(e,r,n={}){if(xi(e)||xi(r))throw new Ic("fromFormat requires an input string and a format");const{locale:o=null,numberingSystem:u=null}=n,f=no.fromOpts({locale:o,numberingSystem:u,defaultToEN:!0}),[h,A,p,g]=Y1t(f,e,r);return g?Pi.invalid(g):i_(h,A,n,`format ${r}`,e,p)}static fromString(e,r,n={}){return Pi.fromFormat(e,r,n)}static fromSQL(e,r={}){const[n,o]=M1t(e);return i_(n,o,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Ic("need to specify a reason the DateTime is invalid");const n=e instanceof kA?e:new kA(e,r);if(Hs.throwOnInvalid)throw new i0t(n);return new Pi({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){const n=C5e(e,no.fromObject(r));return n?n.map(o=>o?o.val:null).join(""):null}static expandFormat(e,r={}){return _5e(PA.parseFormat(e),no.fromObject(r)).map(o=>o.val).join("")}static resetCache(){uE=void 0,w$.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?p9(this).weekYear:NaN}get weekNumber(){return this.isValid?p9(this).weekNumber:NaN}get weekday(){return this.isValid?p9(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?g9(this).weekday:NaN}get localWeekNumber(){return this.isValid?g9(this).weekNumber:NaN}get localWeekYear(){return this.isValid?g9(this).weekYear:NaN}get ordinal(){return this.isValid?d9(this.c).ordinal:NaN}get monthShort(){return this.isValid?jM.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?jM.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?jM.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?jM.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,r=6e4,n=uk(this.c),o=this.zone.offset(n-e),u=this.zone.offset(n+e),f=this.zone.offset(n-o*r),h=this.zone.offset(n-u*r);if(f===h)return[this];const A=n-f*r,p=n-h*r,g=WM(A,f),y=WM(p,h);return g.hour===y.hour&&g.minute===y.minute&&g.second===y.second&&g.millisecond===y.millisecond?[V0(this,{ts:A}),V0(this,{ts:p})]:[this]}get isInLeapYear(){return AB(this.year)}get daysInMonth(){return mP(this.year,this.month)}get daysInYear(){return this.isValid?lS(this.year):NaN}get weeksInWeekYear(){return this.isValid?m2(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?m2(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:n,calendar:o}=PA.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:o}}toUTC(e=0,r={}){return this.setZone(uf.instance(e),r)}toLocal(){return this.setZone(Hs.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=Ym(e,Hs.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(r||n){const u=e.offset(this.ts),f=this.toObject();[o]=F5(f,u,e)}return V0(this,{ts:o,zone:e})}else return Pi.invalid(lE(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){const o=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return V0(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=yP(e,s0e),{minDaysInFirstWeek:n,startOfWeek:o}=Wye(r,this.loc),u=!xi(r.weekYear)||!xi(r.weekNumber)||!xi(r.weekday),f=!xi(r.ordinal),h=!xi(r.year),A=!xi(r.month)||!xi(r.day),p=h||A,g=r.weekYear||r.weekNumber;if((p||f)&&g)throw new z_("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(A&&f)throw new z_("Can't mix ordinal dates with month/day");let y;u?y=jye({...gP(this.c,n,o),...r},n,o):xi(r.ordinal)?(y={...this.toObject(),...r},xi(r.day)&&(y.day=Math.min(mP(y.year,y.month),y.day))):y=qye({...d9(this.c),...r});const[_,b]=F5(y,this.o,this.zone);return V0(this,{ts:_,o:b})}plus(e){if(!this.isValid)return this;const r=La.fromDurationLike(e);return V0(this,a0e(this,r))}minus(e){if(!this.isValid)return this;const r=La.fromDurationLike(e).negate();return V0(this,a0e(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},o=La.normalizeUnit(e);switch(o){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(o==="weeks")if(r){const u=this.loc.getStartOfWeek(),{weekday:f}=this;f<u&&(n.weekNumber=this.weekNumber-1),n.weekday=u}else n.weekday=1;if(o==="quarters"){const u=Math.ceil(this.month/3);n.month=(u-1)*3+1}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?PA.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):v9}toLocaleString(e=pP,r={}){return this.isValid?PA.create(this.loc.clone(r),e).formatDateTime(this):v9}toLocaleParts(e={}){return this.isValid?PA.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:o=!0,extendedZone:u=!1,precision:f="milliseconds"}={}){if(!this.isValid)return null;f=U5(f);const h=e==="extended";let A=m9(this,h,f);return N5.indexOf(f)>=3&&(A+="T"),A+=o0e(this,h,r,n,o,u,f),A}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?m9(this,e==="extended",U5(r)):null}toISOWeekDate(){return $M(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:o=!1,extendedZone:u=!1,format:f="extended",precision:h="milliseconds"}={}){return this.isValid?(h=U5(h),(o&&N5.indexOf(h)>=3?"T":"")+o0e(this,f==="extended",r,e,n,u,h)):null}toRFC2822(){return $M(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return $M(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?m9(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let o="HH:mm:ss.SSS";return(r||e)&&(n&&(o+=" "),r?o+="z":e&&(o+="ZZ")),$M(this,o,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():v9}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return La.invalid("created by diffing an invalid DateTime");const o={locale:this.locale,numberingSystem:this.numberingSystem,...n},u=P0t(r).map(La.normalizeUnit),f=e.valueOf()>this.valueOf(),h=f?this:e,A=f?e:this,p=F1t(h,A,u,o);return f?p.negate():p}diffNow(e="milliseconds",r={}){return this.diff(Pi.now(),e,r)}until(e){return this.isValid?Fs.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;const o=e.valueOf(),u=this.setZone(e.zone,{keepLocalTime:!0});return u.startOf(r,n)<=o&&o<=u.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||Pi.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0;let o=["years","months","days","hours","minutes","seconds"],u=e.unit;return Array.isArray(e.unit)&&(o=e.unit,u=void 0),u0e(r,this.plus(n),{...e,numeric:"always",units:o,unit:u})}toRelativeCalendar(e={}){return this.isValid?u0e(e.base||Pi.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Pi.isDateTime))throw new Ic("min requires all arguments be DateTimes");return $ye(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(Pi.isDateTime))throw new Ic("max requires all arguments be DateTimes");return $ye(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){const{locale:o=null,numberingSystem:u=null}=n,f=no.fromOpts({locale:o,numberingSystem:u,defaultToEN:!0});return x5e(f,e,r)}static fromStringExplain(e,r,n={}){return Pi.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){const{locale:n=null,numberingSystem:o=null}=r,u=no.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0});return new S5e(u,e)}static fromFormatParser(e,r,n={}){if(xi(e)||xi(r))throw new Ic("fromFormatParser requires an input string and a format parser");const{locale:o=null,numberingSystem:u=null}=n,f=no.fromOpts({locale:o,numberingSystem:u,defaultToEN:!0});if(!f.equals(r.locale))throw new Ic(`fromFormatParser called with a locale of ${f}, but the format parser was created for ${r.locale}`);const{result:h,zone:A,specificOffset:p,invalidReason:g}=r.explainFromTokens(e);return g?Pi.invalid(g):i_(h,A,n,`format ${r.format}`,e,p)}static get DATE_SHORT(){return pP}static get DATE_MED(){return BDe}static get DATE_MED_WITH_WEEKDAY(){return s0t}static get DATE_FULL(){return IDe}static get DATE_HUGE(){return LDe}static get TIME_SIMPLE(){return MDe}static get TIME_WITH_SECONDS(){return DDe}static get TIME_WITH_SHORT_OFFSET(){return RDe}static get TIME_WITH_LONG_OFFSET(){return PDe}static get TIME_24_SIMPLE(){return ODe}static get TIME_24_WITH_SECONDS(){return kDe}static get TIME_24_WITH_SHORT_OFFSET(){return FDe}static get TIME_24_WITH_LONG_OFFSET(){return NDe}static get DATETIME_SHORT(){return UDe}static get DATETIME_SHORT_WITH_SECONDS(){return HDe}static get DATETIME_MED(){return QDe}static get DATETIME_MED_WITH_SECONDS(){return VDe}static get DATETIME_MED_WITH_WEEKDAY(){return l0t}static get DATETIME_FULL(){return zDe}static get DATETIME_FULL_WITH_SECONDS(){return GDe}static get DATETIME_HUGE(){return jDe}static get DATETIME_HUGE_WITH_SECONDS(){return qDe}}function AT(t){if(Pi.isDateTime(t))return t;if(t&&t.valueOf&&cy(t.valueOf()))return Pi.fromJSDate(t);if(t&&typeof t=="object")return Pi.fromObject(t);throw new Ic(`Unknown datetime argument: ${t}, of type ${typeof t}`)}/**
* @license
* Copyright 2009 The Closure Library Authors
* Copyright 2020 Daniel Wirtz / The long.js Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/var Dd=null;try{Dd=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function Bo(t,e,r){this.low=t|0,this.high=e|0,this.unsigned=!!r}Bo.prototype.__isLong__;Object.defineProperty(Bo.prototype,"__isLong__",{value:!0});function Pc(t){return(t&&t.__isLong__)===!0}function f0e(t){var e=Math.clz32(t&-t);return t?31-e:e}Bo.isLong=Pc;var h0e={},d0e={};function gw(t,e){var r,n,o;return e?(t>>>=0,(o=0<=t&&t<256)&&(n=d0e[t],n)?n:(r=Ma(t,0,!0),o&&(d0e[t]=r),r)):(t|=0,(o=-128<=t&&t<128)&&(n=h0e[t],n)?n:(r=Ma(t,t<0?-1:0,!1),o&&(h0e[t]=r),r))}Bo.fromInt=gw;function Rd(t,e){if(isNaN(t))return e?lg:FA;if(e){if(t<0)return lg;if(t>=B5e)return M5e}else{if(t<=-v0e)return qf;if(t+1>=v0e)return L5e}return t<0?Rd(-t,e).neg():Ma(t%OS|0,t/OS|0,e)}Bo.fromNumber=Rd;function Ma(t,e,r){return new Bo(t,e,r)}Bo.fromBits=Ma;var wP=Math.pow;function $X(t,e,r){if(t.length===0)throw Error("empty string");if(typeof e=="number"?(r=e,e=!1):e=!!e,t==="NaN"||t==="Infinity"||t==="+Infinity"||t==="-Infinity")return e?lg:FA;if(r=r||10,r<2||36<r)throw RangeError("radix");var n;if((n=t.indexOf("-"))>0)throw Error("interior hyphen");if(n===0)return $X(t.substring(1),e,r).neg();for(var o=Rd(wP(r,8)),u=FA,f=0;f<t.length;f+=8){var h=Math.min(8,t.length-f),A=parseInt(t.substring(f,f+h),r);if(h<8){var p=Rd(wP(r,h));u=u.mul(p).add(Rd(A))}else u=u.mul(o),u=u.add(Rd(A))}return u.unsigned=e,u}Bo.fromString=$X;function qd(t,e){return typeof t=="number"?Rd(t,e):typeof t=="string"?$X(t,e):Ma(t.low,t.high,typeof e=="boolean"?e:t.unsigned)}Bo.fromValue=qd;var A0e=65536,rwt=1<<24,OS=A0e*A0e,B5e=OS*OS,v0e=B5e/2,p0e=gw(rwt),FA=gw(0);Bo.ZERO=FA;var lg=gw(0,!0);Bo.UZERO=lg;var G_=gw(1);Bo.ONE=G_;var I5e=gw(1,!0);Bo.UONE=I5e;var b$=gw(-1);Bo.NEG_ONE=b$;var L5e=Ma(-1,2147483647,!1);Bo.MAX_VALUE=L5e;var M5e=Ma(-1,-1,!0);Bo.MAX_UNSIGNED_VALUE=M5e;var qf=Ma(0,-2147483648,!1);Bo.MIN_VALUE=qf;var kr=Bo.prototype;kr.toInt=function(){return this.unsigned?this.low>>>0:this.low};kr.toNumber=function(){return this.unsigned?(this.high>>>0)*OS+(this.low>>>0):this.high*OS+(this.low>>>0)};kr.toString=function(e){if(e=e||10,e<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(qf)){var r=Rd(e),n=this.div(r),o=n.mul(r).sub(this);return n.toString(e)+o.toInt().toString(e)}else return"-"+this.neg().toString(e);for(var u=Rd(wP(e,6),this.unsigned),f=this,h="";;){var A=f.div(u),p=f.sub(A.mul(u)).toInt()>>>0,g=p.toString(e);if(f=A,f.isZero())return g+h;for(;g.length<6;)g="0"+g;h=""+g+h}};kr.getHighBits=function(){return this.high};kr.getHighBitsUnsigned=function(){return this.high>>>0};kr.getLowBits=function(){return this.low};kr.getLowBitsUnsigned=function(){return this.low>>>0};kr.getNumBitsAbs=function(){if(this.isNegative())return this.eq(qf)?64:this.neg().getNumBitsAbs();for(var e=this.high!=0?this.high:this.low,r=31;r>0&&(e&1<<r)==0;r--);return this.high!=0?r+33:r+1};kr.isSafeInteger=function(){var e=this.high>>21;return e?this.unsigned?!1:e===-1&&!(this.low===0&&this.high===-2097152):!0};kr.isZero=function(){return this.high===0&&this.low===0};kr.eqz=kr.isZero;kr.isNegative=function(){return!this.unsigned&&this.high<0};kr.isPositive=function(){return this.unsigned||this.high>=0};kr.isOdd=function(){return(this.low&1)===1};kr.isEven=function(){return(this.low&1)===0};kr.equals=function(e){return Pc(e)||(e=qd(e)),this.unsigned!==e.unsigned&&this.high>>>31===1&&e.high>>>31===1?!1:this.high===e.high&&this.low===e.low};kr.eq=kr.equals;kr.notEquals=function(e){return!this.eq(e)};kr.neq=kr.notEquals;kr.ne=kr.notEquals;kr.lessThan=function(e){return this.comp(e)<0};kr.lt=kr.lessThan;kr.lessThanOrEqual=function(e){return this.comp(e)<=0};kr.lte=kr.lessThanOrEqual;kr.le=kr.lessThanOrEqual;kr.greaterThan=function(e){return this.comp(e)>0};kr.gt=kr.greaterThan;kr.greaterThanOrEqual=function(e){return this.comp(e)>=0};kr.gte=kr.greaterThanOrEqual;kr.ge=kr.greaterThanOrEqual;kr.compare=function(e){if(Pc(e)||(e=qd(e)),this.eq(e))return 0;var r=this.isNegative(),n=e.isNegative();return r&&!n?-1:!r&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1};kr.comp=kr.compare;kr.negate=function(){return!this.unsigned&&this.eq(qf)?qf:this.not().add(G_)};kr.neg=kr.negate;kr.add=function(e){Pc(e)||(e=qd(e));var r=this.high>>>16,n=this.high&65535,o=this.low>>>16,u=this.low&65535,f=e.high>>>16,h=e.high&65535,A=e.low>>>16,p=e.low&65535,g=0,y=0,_=0,b=0;return b+=u+p,_+=b>>>16,b&=65535,_+=o+A,y+=_>>>16,_&=65535,y+=n+h,g+=y>>>16,y&=65535,g+=r+f,g&=65535,Ma(_<<16|b,g<<16|y,this.unsigned)};kr.subtract=function(e){return Pc(e)||(e=qd(e)),this.add(e.neg())};kr.sub=kr.subtract;kr.multiply=function(e){if(this.isZero())return this;if(Pc(e)||(e=qd(e)),Dd){var r=Dd.mul(this.low,this.high,e.low,e.high);return Ma(r,Dd.get_high(),this.unsigned)}if(e.isZero())return this.unsigned?lg:FA;if(this.eq(qf))return e.isOdd()?qf:FA;if(e.eq(qf))return this.isOdd()?qf:FA;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(p0e)&&e.lt(p0e))return Rd(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,o=this.high&65535,u=this.low>>>16,f=this.low&65535,h=e.high>>>16,A=e.high&65535,p=e.low>>>16,g=e.low&65535,y=0,_=0,b=0,C=0;return C+=f*g,b+=C>>>16,C&=65535,b+=u*g,_+=b>>>16,b&=65535,b+=f*p,_+=b>>>16,b&=65535,_+=o*g,y+=_>>>16,_&=65535,_+=u*p,y+=_>>>16,_&=65535,_+=f*A,y+=_>>>16,_&=65535,y+=n*g+o*p+u*A+f*h,y&=65535,Ma(b<<16|C,y<<16|_,this.unsigned)};kr.mul=kr.multiply;kr.divide=function(e){if(Pc(e)||(e=qd(e)),e.isZero())throw Error("division by zero");if(Dd){if(!this.unsigned&&this.high===-2147483648&&e.low===-1&&e.high===-1)return this;var r=(this.unsigned?Dd.div_u:Dd.div_s)(this.low,this.high,e.low,e.high);return Ma(r,Dd.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?lg:FA;var n,o,u;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return lg;if(e.gt(this.shru(1)))return I5e;u=lg}else{if(this.eq(qf)){if(e.eq(G_)||e.eq(b$))return qf;if(e.eq(qf))return G_;var f=this.shr(1);return n=f.div(e).shl(1),n.eq(FA)?e.isNegative()?G_:b$:(o=this.sub(e.mul(n)),u=n.add(o.div(e)),u)}else if(e.eq(qf))return this.unsigned?lg:FA;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();u=FA}for(o=this;o.gte(e);){n=Math.max(1,Math.floor(o.toNumber()/e.toNumber()));for(var h=Math.ceil(Math.log(n)/Math.LN2),A=h<=48?1:wP(2,h-48),p=Rd(n),g=p.mul(e);g.isNegative()||g.gt(o);)n-=A,p=Rd(n,this.unsigned),g=p.mul(e);p.isZero()&&(p=G_),u=u.add(p),o=o.sub(g)}return u};kr.div=kr.divide;kr.modulo=function(e){if(Pc(e)||(e=qd(e)),Dd){var r=(this.unsigned?Dd.rem_u:Dd.rem_s)(this.low,this.high,e.low,e.high);return Ma(r,Dd.get_high(),this.unsigned)}return this.sub(this.div(e).mul(e))};kr.mod=kr.modulo;kr.rem=kr.modulo;kr.not=function(){return Ma(~this.low,~this.high,this.unsigned)};kr.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32};kr.clz=kr.countLeadingZeros;kr.countTrailingZeros=function(){return this.low?f0e(this.low):f0e(this.high)+32};kr.ctz=kr.countTrailingZeros;kr.and=function(e){return Pc(e)||(e=qd(e)),Ma(this.low&e.low,this.high&e.high,this.unsigned)};kr.or=function(e){return Pc(e)||(e=qd(e)),Ma(this.low|e.low,this.high|e.high,this.unsigned)};kr.xor=function(e){return Pc(e)||(e=qd(e)),Ma(this.low^e.low,this.high^e.high,this.unsigned)};kr.shiftLeft=function(e){return Pc(e)&&(e=e.toInt()),(e&=63)===0?this:e<32?Ma(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):Ma(0,this.low<<e-32,this.unsigned)};kr.shl=kr.shiftLeft;kr.shiftRight=function(e){return Pc(e)&&(e=e.toInt()),(e&=63)===0?this:e<32?Ma(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):Ma(this.high>>e-32,this.high>=0?0:-1,this.unsigned)};kr.shr=kr.shiftRight;kr.shiftRightUnsigned=function(e){return Pc(e)&&(e=e.toInt()),(e&=63)===0?this:e<32?Ma(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):e===32?Ma(this.high,0,this.unsigned):Ma(this.high>>>e-32,0,this.unsigned)};kr.shru=kr.shiftRightUnsigned;kr.shr_u=kr.shiftRightUnsigned;kr.rotateLeft=function(e){var r;return Pc(e)&&(e=e.toInt()),(e&=63)===0?this:e===32?Ma(this.high,this.low,this.unsigned):e<32?(r=32-e,Ma(this.low<<e|this.high>>>r,this.high<<e|this.low>>>r,this.unsigned)):(e-=32,r=32-e,Ma(this.high<<e|this.low>>>r,this.low<<e|this.high>>>r,this.unsigned))};kr.rotl=kr.rotateLeft;kr.rotateRight=function(e){var r;return Pc(e)&&(e=e.toInt()),(e&=63)===0?this:e===32?Ma(this.high,this.low,this.unsigned):e<32?(r=32-e,Ma(this.high<<r|this.low>>>e,this.low<<r|this.high>>>e,this.unsigned)):(e-=32,r=32-e,Ma(this.low<<r|this.high>>>e,this.high<<r|this.low>>>e,this.unsigned))};kr.rotr=kr.rotateRight;kr.toSigned=function(){return this.unsigned?Ma(this.low,this.high,!1):this};kr.toUnsigned=function(){return this.unsigned?this:Ma(this.low,this.high,!0)};kr.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()};kr.toBytesLE=function(){var e=this.high,r=this.low;return[r&255,r>>>8&255,r>>>16&255,r>>>24,e&255,e>>>8&255,e>>>16&255,e>>>24]};kr.toBytesBE=function(){var e=this.high,r=this.low;return[e>>>24,e>>>16&255,e>>>8&255,e&255,r>>>24,r>>>16&255,r>>>8&255,r&255]};Bo.fromBytes=function(e,r,n){return n?Bo.fromBytesLE(e,r):Bo.fromBytesBE(e,r)};Bo.fromBytesLE=function(e,r){return new Bo(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,r)};Bo.fromBytesBE=function(e,r){return new Bo(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],r)};typeof BigInt=="function"&&(Bo.fromBigInt=function(e,r){var n=Number(BigInt.asIntN(32,e)),o=Number(BigInt.asIntN(32,e>>BigInt(32)));return Ma(n,o,r)},Bo.fromValue=function(e,r){return typeof e=="bigint"?Bo.fromBigInt(e,r):qd(e,r)},kr.toBigInt=function(){var e=BigInt(this.low>>>0),r=BigInt(this.unsigned?this.high>>>0:this.high);return r<<BigInt(32)|e});function KM(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var y9={exports:{}},g0e;function nwt(){return g0e||(g0e=1,function(t,e){var r={env:{NODE_ENV:"production"}};/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(n){t.exports=n()})(function(){return function n(o,u,f){function h(g,y){if(!u[g]){if(!o[g]){var _=typeof KM=="function"&&KM;if(!y&&_)return _(g,!0);if(A)return A(g,!0);var b=new Error("Cannot find module '"+g+"'");throw b.code="MODULE_NOT_FOUND",b}var C=u[g]={exports:{}};o[g][0].call(C.exports,function(T){var B=o[g][1][T];return h(B||T)},C,C.exports,n,o,u,f)}return u[g].exports}for(var A=typeof KM=="function"&&KM,p=0;p<f.length;p++)h(f[p]);return h}({1:[function(n,o,u){var f=n("./utils"),h=n("./support"),A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";u.encode=function(p){for(var g,y,_,b,C,T,B,L=[],P=0,I=p.length,O=I,U=f.getTypeOf(p)!=="string";P<p.length;)O=I-P,_=U?(g=p[P++],y=P<I?p[P++]:0,P<I?p[P++]:0):(g=p.charCodeAt(P++),y=P<I?p.charCodeAt(P++):0,P<I?p.charCodeAt(P++):0),b=g>>2,C=(3&g)<<4|y>>4,T=1<O?(15&y)<<2|_>>6:64,B=2<O?63&_:64,L.push(A.charAt(b)+A.charAt(C)+A.charAt(T)+A.charAt(B));return L.join("")},u.decode=function(p){var g,y,_,b,C,T,B=0,L=0,P="data:";if(p.substr(0,P.length)===P)throw new Error("Invalid base64 input, it looks like a data url.");var I,O=3*(p=p.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(p.charAt(p.length-1)===A.charAt(64)&&O--,p.charAt(p.length-2)===A.charAt(64)&&O--,O%1!=0)throw new Error("Invalid base64 input, bad content length.");for(I=h.uint8array?new Uint8Array(0|O):new Array(0|O);B<p.length;)g=A.indexOf(p.charAt(B++))<<2|(b=A.indexOf(p.charAt(B++)))>>4,y=(15&b)<<4|(C=A.indexOf(p.charAt(B++)))>>2,_=(3&C)<<6|(T=A.indexOf(p.charAt(B++))),I[L++]=g,C!==64&&(I[L++]=y),T!==64&&(I[L++]=_);return I}},{"./support":30,"./utils":32}],2:[function(n,o,u){var f=n("./external"),h=n("./stream/DataWorker"),A=n("./stream/Crc32Probe"),p=n("./stream/DataLengthProbe");function g(y,_,b,C,T){this.compressedSize=y,this.uncompressedSize=_,this.crc32=b,this.compression=C,this.compressedContent=T}g.prototype={getContentWorker:function(){var y=new h(f.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new p("data_length")),_=this;return y.on("end",function(){if(this.streamInfo.data_length!==_.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new h(f.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},g.createWorkerFrom=function(y,_,b){return y.pipe(new A).pipe(new p("uncompressedSize")).pipe(_.compressWorker(b)).pipe(new p("compressedSize")).withStreamInfo("compression",_)},o.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,o,u){var f=n("./stream/GenericWorker");u.STORE={magic:"\0\0",compressWorker:function(){return new f("STORE compression")},uncompressWorker:function(){return new f("STORE decompression")}},u.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,o,u){var f=n("./utils"),h=function(){for(var A,p=[],g=0;g<256;g++){A=g;for(var y=0;y<8;y++)A=1&A?3988292384^A>>>1:A>>>1;p[g]=A}return p}();o.exports=function(A,p){return A!==void 0&&A.length?f.getTypeOf(A)!=="string"?function(g,y,_,b){var C=h,T=b+_;g^=-1;for(var B=b;B<T;B++)g=g>>>8^C[255&(g^y[B])];return-1^g}(0|p,A,A.length,0):function(g,y,_,b){var C=h,T=b+_;g^=-1;for(var B=b;B<T;B++)g=g>>>8^C[255&(g^y.charCodeAt(B))];return-1^g}(0|p,A,A.length,0):0}},{"./utils":32}],5:[function(n,o,u){u.base64=!1,u.binary=!1,u.dir=!1,u.createFolders=!0,u.date=null,u.compression=null,u.compressionOptions=null,u.comment=null,u.unixPermissions=null,u.dosPermissions=null},{}],6:[function(n,o,u){var f=null;f=typeof Promise<"u"?Promise:n("lie"),o.exports={Promise:f}},{lie:37}],7:[function(n,o,u){var f=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",h=n("pako"),A=n("./utils"),p=n("./stream/GenericWorker"),g=f?"uint8array":"array";function y(_,b){p.call(this,"FlateWorker/"+_),this._pako=null,this._pakoAction=_,this._pakoOptions=b,this.meta={}}u.magic="\b\0",A.inherits(y,p),y.prototype.processChunk=function(_){this.meta=_.meta,this._pako===null&&this._createPako(),this._pako.push(A.transformTo(g,_.data),!1)},y.prototype.flush=function(){p.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){p.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new h[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var _=this;this._pako.onData=function(b){_.push({data:b,meta:_.meta})}},u.compressWorker=function(_){return new y("Deflate",_)},u.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,o,u){function f(C,T){var B,L="";for(B=0;B<T;B++)L+=String.fromCharCode(255&C),C>>>=8;return L}function h(C,T,B,L,P,I){var O,U,N=C.file,H=C.compression,z=I!==g.utf8encode,G=A.transformTo("string",I(N.name)),j=A.transformTo("string",g.utf8encode(N.name)),q=N.comment,X=A.transformTo("string",I(q)),Y=A.transformTo("string",g.utf8encode(q)),te=j.length!==N.name.length,K=Y.length!==q.length,ce="",ae="",le="",pe=N.dir,ie=N.date,he={crc32:0,compressedSize:0,uncompressedSize:0};T&&!B||(he.crc32=C.crc32,he.compressedSize=C.compressedSize,he.uncompressedSize=C.uncompressedSize);var re=0;T&&(re|=8),z||!te&&!K||(re|=2048);var oe=0,ye=0;pe&&(oe|=16),P==="UNIX"?(ye=798,oe|=function(Ce,ne){var xe=Ce;return Ce||(xe=ne?16893:33204),(65535&xe)<<16}(N.unixPermissions,pe)):(ye=20,oe|=function(Ce){return 63&(Ce||0)}(N.dosPermissions)),O=ie.getUTCHours(),O<<=6,O|=ie.getUTCMinutes(),O<<=5,O|=ie.getUTCSeconds()/2,U=ie.getUTCFullYear()-1980,U<<=4,U|=ie.getUTCMonth()+1,U<<=5,U|=ie.getUTCDate(),te&&(ae=f(1,1)+f(y(G),4)+j,ce+="up"+f(ae.length,2)+ae),K&&(le=f(1,1)+f(y(X),4)+Y,ce+="uc"+f(le.length,2)+le);var _e="";return _e+=`
\0`,_e+=f(re,2),_e+=H.magic,_e+=f(O,2),_e+=f(U,2),_e+=f(he.crc32,4),_e+=f(he.compressedSize,4),_e+=f(he.uncompressedSize,4),_e+=f(G.length,2),_e+=f(ce.length,2),{fileRecord:_.LOCAL_FILE_HEADER+_e+G+ce,dirRecord:_.CENTRAL_FILE_HEADER+f(ye,2)+_e+f(X.length,2)+"\0\0\0\0"+f(oe,4)+f(L,4)+G+ce+X}}var A=n("../utils"),p=n("../stream/GenericWorker"),g=n("../utf8"),y=n("../crc32"),_=n("../signature");function b(C,T,B,L){p.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=T,this.zipPlatform=B,this.encodeFileName=L,this.streamFiles=C,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}A.inherits(b,p),b.prototype.push=function(C){var T=C.meta.percent||0,B=this.entriesCount,L=this._sources.length;this.accumulate?this.contentBuffer.push(C):(this.bytesWritten+=C.data.length,p.prototype.push.call(this,{data:C.data,meta:{currentFile:this.currentFile,percent:B?(T+100*(B-L-1))/B:100}}))},b.prototype.openedSource=function(C){this.currentSourceOffset=this.bytesWritten,this.currentFile=C.file.name;var T=this.streamFiles&&!C.file.dir;if(T){var B=h(C,T,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:B.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(C){this.accumulate=!1;var T=this.streamFiles&&!C.file.dir,B=h(C,T,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(B.dirRecord),T)this.push({data:function(L){return _.DATA_DESCRIPTOR+f(L.crc32,4)+f(L.compressedSize,4)+f(L.uncompressedSize,4)}(C),meta:{percent:100}});else for(this.push({data:B.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var C=this.bytesWritten,T=0;T<this.dirRecords.length;T++)this.push({data:this.dirRecords[T],meta:{percent:100}});var B=this.bytesWritten-C,L=function(P,I,O,U,N){var H=A.transformTo("string",N(U));return _.CENTRAL_DIRECTORY_END+"\0\0\0\0"+f(P,2)+f(P,2)+f(I,4)+f(O,4)+f(H.length,2)+H}(this.dirRecords.length,B,C,this.zipComment,this.encodeFileName);this.push({data:L,meta:{percent:100}})},b.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},b.prototype.registerPrevious=function(C){this._sources.push(C);var T=this;return C.on("data",function(B){T.processChunk(B)}),C.on("end",function(){T.closedSource(T.previous.streamInfo),T._sources.length?T.prepareNextSource():T.end()}),C.on("error",function(B){T.error(B)}),this},b.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},b.prototype.error=function(C){var T=this._sources;if(!p.prototype.error.call(this,C))return!1;for(var B=0;B<T.length;B++)try{T[B].error(C)}catch{}return!0},b.prototype.lock=function(){p.prototype.lock.call(this);for(var C=this._sources,T=0;T<C.length;T++)C[T].lock()},o.exports=b},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,o,u){var f=n("../compressions"),h=n("./ZipFileWorker");u.generateWorker=function(A,p,g){var y=new h(p.streamFiles,g,p.platform,p.encodeFileName),_=0;try{A.forEach(function(b,C){_++;var T=function(I,O){var U=I||O,N=f[U];if(!N)throw new Error(U+" is not a valid compression method !");return N}(C.options.compression,p.compression),B=C.options.compressionOptions||p.compressionOptions||{},L=C.dir,P=C.date;C._compressWorker(T,B).withStreamInfo("file",{name:b,dir:L,date:P,comment:C.comment||"",unixPermissions:C.unixPermissions,dosPermissions:C.dosPermissions}).pipe(y)}),y.entriesCount=_}catch(b){y.error(b)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,o,u){function f(){if(!(this instanceof f))return new f;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var h=new f;for(var A in this)typeof this[A]!="function"&&(h[A]=this[A]);return h}}(f.prototype=n("./object")).loadAsync=n("./load"),f.support=n("./support"),f.defaults=n("./defaults"),f.version="3.10.1",f.loadAsync=function(h,A){return new f().loadAsync(h,A)},f.external=n("./external"),o.exports=f},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,o,u){var f=n("./utils"),h=n("./external"),A=n("./utf8"),p=n("./zipEntries"),g=n("./stream/Crc32Probe"),y=n("./nodejsUtils");function _(b){return new h.Promise(function(C,T){var B=b.decompressed.getContentWorker().pipe(new g);B.on("error",function(L){T(L)}).on("end",function(){B.streamInfo.crc32!==b.decompressed.crc32?T(new Error("Corrupted zip : CRC32 mismatch")):C()}).resume()})}o.exports=function(b,C){var T=this;return C=f.extend(C||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:A.utf8decode}),y.isNode&&y.isStream(b)?h.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):f.prepareContent("the loaded zip file",b,!0,C.optimizedBinaryString,C.base64).then(function(B){var L=new p(C);return L.load(B),L}).then(function(B){var L=[h.Promise.resolve(B)],P=B.files;if(C.checkCRC32)for(var I=0;I<P.length;I++)L.push(_(P[I]));return h.Promise.all(L)}).then(function(B){for(var L=B.shift(),P=L.files,I=0;I<P.length;I++){var O=P[I],U=O.fileNameStr,N=f.resolve(O.fileNameStr);T.file(N,O.decompressed,{binary:!0,optimizedBinaryString:!0,date:O.date,dir:O.dir,comment:O.fileCommentStr.length?O.fileCommentStr:null,unixPermissions:O.unixPermissions,dosPermissions:O.dosPermissions,createFolders:C.createFolders}),O.dir||(T.file(N).unsafeOriginalName=U)}return L.zipComment.length&&(T.comment=L.zipComment),T})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,o,u){var f=n("../utils"),h=n("../stream/GenericWorker");function A(p,g){h.call(this,"Nodejs stream input adapter for "+p),this._upstreamEnded=!1,this._bindStream(g)}f.inherits(A,h),A.prototype._bindStream=function(p){var g=this;(this._stream=p).pause(),p.on("data",function(y){g.push({data:y,meta:{percent:0}})}).on("error",function(y){g.isPaused?this.generatedError=y:g.error(y)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.end()})},A.prototype.pause=function(){return!!h.prototype.pause.call(this)&&(this._stream.pause(),!0)},A.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},o.exports=A},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,o,u){var f=n("readable-stream").Readable;function h(A,p,g){f.call(this,p),this._helper=A;var y=this;A.on("data",function(_,b){y.push(_)||y._helper.pause(),g&&g(b)}).on("error",function(_){y.emit("error",_)}).on("end",function(){y.push(null)})}n("../utils").inherits(h,f),h.prototype._read=function(){this._helper.resume()},o.exports=h},{"../utils":32,"readable-stream":16}],14:[function(n,o,u){o.exports={isNode:typeof Buffer<"u",newBufferFrom:function(f,h){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(f,h);if(typeof f=="number")throw new Error('The "data" argument must not be a number');return new Buffer(f,h)},allocBuffer:function(f){if(Buffer.alloc)return Buffer.alloc(f);var h=new Buffer(f);return h.fill(0),h},isBuffer:function(f){return Buffer.isBuffer(f)},isStream:function(f){return f&&typeof f.on=="function"&&typeof f.pause=="function"&&typeof f.resume=="function"}}},{}],15:[function(n,o,u){function f(N,H,z){var G,j=A.getTypeOf(H),q=A.extend(z||{},y);q.date=q.date||new Date,q.compression!==null&&(q.compression=q.compression.toUpperCase()),typeof q.unixPermissions=="string"&&(q.unixPermissions=parseInt(q.unixPermissions,8)),q.unixPermissions&&16384&q.unixPermissions&&(q.dir=!0),q.dosPermissions&&16&q.dosPermissions&&(q.dir=!0),q.dir&&(N=P(N)),q.createFolders&&(G=L(N))&&I.call(this,G,!0);var X=j==="string"&&q.binary===!1&&q.base64===!1;z&&z.binary!==void 0||(q.binary=!X),(H instanceof _&&H.uncompressedSize===0||q.dir||!H||H.length===0)&&(q.base64=!1,q.binary=!0,H="",q.compression="STORE",j="string");var Y=null;Y=H instanceof _||H instanceof p?H:T.isNode&&T.isStream(H)?new B(N,H):A.prepareContent(N,H,q.binary,q.optimizedBinaryString,q.base64);var te=new b(N,Y,q);this.files[N]=te}var h=n("./utf8"),A=n("./utils"),p=n("./stream/GenericWorker"),g=n("./stream/StreamHelper"),y=n("./defaults"),_=n("./compressedObject"),b=n("./zipObject"),C=n("./generate"),T=n("./nodejsUtils"),B=n("./nodejs/NodejsStreamInputAdapter"),L=function(N){N.slice(-1)==="/"&&(N=N.substring(0,N.length-1));var H=N.lastIndexOf("/");return 0<H?N.substring(0,H):""},P=function(N){return N.slice(-1)!=="/"&&(N+="/"),N},I=function(N,H){return H=H!==void 0?H:y.createFolders,N=P(N),this.files[N]||f.call(this,N,null,{dir:!0,createFolders:H}),this.files[N]};function O(N){return Object.prototype.toString.call(N)==="[object RegExp]"}var U={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(N){var H,z,G;for(H in this.files)G=this.files[H],(z=H.slice(this.root.length,H.length))&&H.slice(0,this.root.length)===this.root&&N(z,G)},filter:function(N){var H=[];return this.forEach(function(z,G){N(z,G)&&H.push(G)}),H},file:function(N,H,z){if(arguments.length!==1)return N=this.root+N,f.call(this,N,H,z),this;if(O(N)){var G=N;return this.filter(function(q,X){return!X.dir&&G.test(q)})}var j=this.files[this.root+N];return j&&!j.dir?j:null},folder:function(N){if(!N)return this;if(O(N))return this.filter(function(j,q){return q.dir&&N.test(j)});var H=this.root+N,z=I.call(this,H),G=this.clone();return G.root=z.name,G},remove:function(N){N=this.root+N;var H=this.files[N];if(H||(N.slice(-1)!=="/"&&(N+="/"),H=this.files[N]),H&&!H.dir)delete this.files[N];else for(var z=this.filter(function(j,q){return q.name.slice(0,N.length)===N}),G=0;G<z.length;G++)delete this.files[z[G].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(N){var H,z={};try{if((z=A.extend(N||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:h.utf8encode})).type=z.type.toLowerCase(),z.compression=z.compression.toUpperCase(),z.type==="binarystring"&&(z.type="string"),!z.type)throw new Error("No output type specified.");A.checkSupport(z.type),z.platform!=="darwin"&&z.platform!=="freebsd"&&z.platform!=="linux"&&z.platform!=="sunos"||(z.platform="UNIX"),z.platform==="win32"&&(z.platform="DOS");var G=z.comment||this.comment||"";H=C.generateWorker(this,z,G)}catch(j){(H=new p("error")).error(j)}return new g(H,z.type||"string",z.mimeType)},generateAsync:function(N,H){return this.generateInternalStream(N).accumulate(H)},generateNodeStream:function(N,H){return(N=N||{}).type||(N.type="nodebuffer"),this.generateInternalStream(N).toNodejsStream(H)}};o.exports=U},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,o,u){o.exports=n("stream")},{stream:void 0}],17:[function(n,o,u){var f=n("./DataReader");function h(A){f.call(this,A);for(var p=0;p<this.data.length;p++)A[p]=255&A[p]}n("../utils").inherits(h,f),h.prototype.byteAt=function(A){return this.data[this.zero+A]},h.prototype.lastIndexOfSignature=function(A){for(var p=A.charCodeAt(0),g=A.charCodeAt(1),y=A.charCodeAt(2),_=A.charCodeAt(3),b=this.length-4;0<=b;--b)if(this.data[b]===p&&this.data[b+1]===g&&this.data[b+2]===y&&this.data[b+3]===_)return b-this.zero;return-1},h.prototype.readAndCheckSignature=function(A){var p=A.charCodeAt(0),g=A.charCodeAt(1),y=A.charCodeAt(2),_=A.charCodeAt(3),b=this.readData(4);return p===b[0]&&g===b[1]&&y===b[2]&&_===b[3]},h.prototype.readData=function(A){if(this.checkOffset(A),A===0)return[];var p=this.data.slice(this.zero+this.index,this.zero+this.index+A);return this.index+=A,p},o.exports=h},{"../utils":32,"./DataReader":18}],18:[function(n,o,u){var f=n("../utils");function h(A){this.data=A,this.length=A.length,this.index=0,this.zero=0}h.prototype={checkOffset:function(A){this.checkIndex(this.index+A)},checkIndex:function(A){if(this.length<this.zero+A||A<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+A+"). Corrupted zip ?")},setIndex:function(A){this.checkIndex(A),this.index=A},skip:function(A){this.setIndex(this.index+A)},byteAt:function(){},readInt:function(A){var p,g=0;for(this.checkOffset(A),p=this.index+A-1;p>=this.index;p--)g=(g<<8)+this.byteAt(p);return this.index+=A,g},readString:function(A){return f.transformTo("string",this.readData(A))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var A=this.readInt(4);return new Date(Date.UTC(1980+(A>>25&127),(A>>21&15)-1,A>>16&31,A>>11&31,A>>5&63,(31&A)<<1))}},o.exports=h},{"../utils":32}],19:[function(n,o,u){var f=n("./Uint8ArrayReader");function h(A){f.call(this,A)}n("../utils").inherits(h,f),h.prototype.readData=function(A){this.checkOffset(A);var p=this.data.slice(this.zero+this.index,this.zero+this.index+A);return this.index+=A,p},o.exports=h},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,o,u){var f=n("./DataReader");function h(A){f.call(this,A)}n("../utils").inherits(h,f),h.prototype.byteAt=function(A){return this.data.charCodeAt(this.zero+A)},h.prototype.lastIndexOfSignature=function(A){return this.data.lastIndexOf(A)-this.zero},h.prototype.readAndCheckSignature=function(A){return A===this.readData(4)},h.prototype.readData=function(A){this.checkOffset(A);var p=this.data.slice(this.zero+this.index,this.zero+this.index+A);return this.index+=A,p},o.exports=h},{"../utils":32,"./DataReader":18}],21:[function(n,o,u){var f=n("./ArrayReader");function h(A){f.call(this,A)}n("../utils").inherits(h,f),h.prototype.readData=function(A){if(this.checkOffset(A),A===0)return new Uint8Array(0);var p=this.data.subarray(this.zero+this.index,this.zero+this.index+A);return this.index+=A,p},o.exports=h},{"../utils":32,"./ArrayReader":17}],22:[function(n,o,u){var f=n("../utils"),h=n("../support"),A=n("./ArrayReader"),p=n("./StringReader"),g=n("./NodeBufferReader"),y=n("./Uint8ArrayReader");o.exports=function(_){var b=f.getTypeOf(_);return f.checkSupport(b),b!=="string"||h.uint8array?b==="nodebuffer"?new g(_):h.uint8array?new y(f.transformTo("uint8array",_)):new A(f.transformTo("array",_)):new p(_)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,o,u){u.LOCAL_FILE_HEADER="PK",u.CENTRAL_FILE_HEADER="PK",u.CENTRAL_DIRECTORY_END="PK",u.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",u.ZIP64_CENTRAL_DIRECTORY_END="PK",u.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,o,u){var f=n("./GenericWorker"),h=n("../utils");function A(p){f.call(this,"ConvertWorker to "+p),this.destType=p}h.inherits(A,f),A.prototype.processChunk=function(p){this.push({data:h.transformTo(this.destType,p.data),meta:p.meta})},o.exports=A},{"../utils":32,"./GenericWorker":28}],25:[function(n,o,u){var f=n("./GenericWorker"),h=n("../crc32");function A(){f.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(A,f),A.prototype.processChunk=function(p){this.streamInfo.crc32=h(p.data,this.streamInfo.crc32||0),this.push(p)},o.exports=A},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,o,u){var f=n("../utils"),h=n("./GenericWorker");function A(p){h.call(this,"DataLengthProbe for "+p),this.propName=p,this.withStreamInfo(p,0)}f.inherits(A,h),A.prototype.processChunk=function(p){if(p){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+p.data.length}h.prototype.processChunk.call(this,p)},o.exports=A},{"../utils":32,"./GenericWorker":28}],27:[function(n,o,u){var f=n("../utils"),h=n("./GenericWorker");function A(p){h.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,p.then(function(y){g.dataIsReady=!0,g.data=y,g.max=y&&y.length||0,g.type=f.getTypeOf(y),g.isPaused||g._tickAndRepeat()},function(y){g.error(y)})}f.inherits(A,h),A.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this.data=null},A.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,f.delay(this._tickAndRepeat,[],this)),!0)},A.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(f.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},A.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var p=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":p=this.data.substring(this.index,g);break;case"uint8array":p=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":p=this.data.slice(this.index,g)}return this.index=g,this.push({data:p,meta:{percent:this.max?this.index/this.max*100:0}})},o.exports=A},{"../utils":32,"./GenericWorker":28}],28:[function(n,o,u){function f(h){this.name=h||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}f.prototype={push:function(h){this.emit("data",h)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(h){this.emit("error",h)}return!0},error:function(h){return!this.isFinished&&(this.isPaused?this.generatedError=h:(this.isFinished=!0,this.emit("error",h),this.previous&&this.previous.error(h),this.cleanUp()),!0)},on:function(h,A){return this._listeners[h].push(A),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(h,A){if(this._listeners[h])for(var p=0;p<this._listeners[h].length;p++)this._listeners[h][p].call(this,A)},pipe:function(h){return h.registerPrevious(this)},registerPrevious:function(h){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=h.streamInfo,this.mergeStreamInfo(),this.previous=h;var A=this;return h.on("data",function(p){A.processChunk(p)}),h.on("end",function(){A.end()}),h.on("error",function(p){A.error(p)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var h=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),h=!0),this.previous&&this.previous.resume(),!h},flush:function(){},processChunk:function(h){this.push(h)},withStreamInfo:function(h,A){return this.extraStreamInfo[h]=A,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var h in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,h)&&(this.streamInfo[h]=this.extraStreamInfo[h])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var h="Worker "+this.name;return this.previous?this.previous+" -> "+h:h}},o.exports=f},{}],29:[function(n,o,u){var f=n("../utils"),h=n("./ConvertWorker"),A=n("./GenericWorker"),p=n("../base64"),g=n("../support"),y=n("../external"),_=null;if(g.nodestream)try{_=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(T,B){return new y.Promise(function(L,P){var I=[],O=T._internalType,U=T._outputType,N=T._mimeType;T.on("data",function(H,z){I.push(H),B&&B(z)}).on("error",function(H){I=[],P(H)}).on("end",function(){try{var H=function(z,G,j){switch(z){case"blob":return f.newBlob(f.transformTo("arraybuffer",G),j);case"base64":return p.encode(G);default:return f.transformTo(z,G)}}(U,function(z,G){var j,q=0,X=null,Y=0;for(j=0;j<G.length;j++)Y+=G[j].length;switch(z){case"string":return G.join("");case"array":return Array.prototype.concat.apply([],G);case"uint8array":for(X=new Uint8Array(Y),j=0;j<G.length;j++)X.set(G[j],q),q+=G[j].length;return X;case"nodebuffer":return Buffer.concat(G);default:throw new Error("concat : unsupported type '"+z+"'")}}(O,I),N);L(H)}catch(z){P(z)}I=[]}).resume()})}function C(T,B,L){var P=B;switch(B){case"blob":case"arraybuffer":P="uint8array";break;case"base64":P="string"}try{this._internalType=P,this._outputType=B,this._mimeType=L,f.checkSupport(P),this._worker=T.pipe(new h(P)),T.lock()}catch(I){this._worker=new A("error"),this._worker.error(I)}}C.prototype={accumulate:function(T){return b(this,T)},on:function(T,B){var L=this;return T==="data"?this._worker.on(T,function(P){B.call(L,P.data,P.meta)}):this._worker.on(T,function(){f.delay(B,arguments,L)}),this},resume:function(){return f.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(T){if(f.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new _(this,{objectMode:this._outputType!=="nodebuffer"},T)}},o.exports=C},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,o,u){if(u.base64=!0,u.array=!0,u.string=!0,u.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",u.nodebuffer=typeof Buffer<"u",u.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")u.blob=!1;else{var f=new ArrayBuffer(0);try{u.blob=new Blob([f],{type:"application/zip"}).size===0}catch{try{var h=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);h.append(f),u.blob=h.getBlob("application/zip").size===0}catch{u.blob=!1}}}try{u.nodestream=!!n("readable-stream").Readable}catch{u.nodestream=!1}},{"readable-stream":16}],31:[function(n,o,u){for(var f=n("./utils"),h=n("./support"),A=n("./nodejsUtils"),p=n("./stream/GenericWorker"),g=new Array(256),y=0;y<256;y++)g[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;g[254]=g[254]=1;function _(){p.call(this,"utf-8 decode"),this.leftOver=null}function b(){p.call(this,"utf-8 encode")}u.utf8encode=function(C){return h.nodebuffer?A.newBufferFrom(C,"utf-8"):function(T){var B,L,P,I,O,U=T.length,N=0;for(I=0;I<U;I++)(64512&(L=T.charCodeAt(I)))==55296&&I+1<U&&(64512&(P=T.charCodeAt(I+1)))==56320&&(L=65536+(L-55296<<10)+(P-56320),I++),N+=L<128?1:L<2048?2:L<65536?3:4;for(B=h.uint8array?new Uint8Array(N):new Array(N),I=O=0;O<N;I++)(64512&(L=T.charCodeAt(I)))==55296&&I+1<U&&(64512&(P=T.charCodeAt(I+1)))==56320&&(L=65536+(L-55296<<10)+(P-56320),I++),L<128?B[O++]=L:(L<2048?B[O++]=192|L>>>6:(L<65536?B[O++]=224|L>>>12:(B[O++]=240|L>>>18,B[O++]=128|L>>>12&63),B[O++]=128|L>>>6&63),B[O++]=128|63&L);return B}(C)},u.utf8decode=function(C){return h.nodebuffer?f.transformTo("nodebuffer",C).toString("utf-8"):function(T){var B,L,P,I,O=T.length,U=new Array(2*O);for(B=L=0;B<O;)if((P=T[B++])<128)U[L++]=P;else if(4<(I=g[P]))U[L++]=65533,B+=I-1;else{for(P&=I===2?31:I===3?15:7;1<I&&B<O;)P=P<<6|63&T[B++],I--;1<I?U[L++]=65533:P<65536?U[L++]=P:(P-=65536,U[L++]=55296|P>>10&1023,U[L++]=56320|1023&P)}return U.length!==L&&(U.subarray?U=U.subarray(0,L):U.length=L),f.applyFromCharCode(U)}(C=f.transformTo(h.uint8array?"uint8array":"array",C))},f.inherits(_,p),_.prototype.processChunk=function(C){var T=f.transformTo(h.uint8array?"uint8array":"array",C.data);if(this.leftOver&&this.leftOver.length){if(h.uint8array){var B=T;(T=new Uint8Array(B.length+this.leftOver.length)).set(this.leftOver,0),T.set(B,this.leftOver.length)}else T=this.leftOver.concat(T);this.leftOver=null}var L=function(I,O){var U;for((O=O||I.length)>I.length&&(O=I.length),U=O-1;0<=U&&(192&I[U])==128;)U--;return U<0||U===0?O:U+g[I[U]]>O?U:O}(T),P=T;L!==T.length&&(h.uint8array?(P=T.subarray(0,L),this.leftOver=T.subarray(L,T.length)):(P=T.slice(0,L),this.leftOver=T.slice(L,T.length))),this.push({data:u.utf8decode(P),meta:C.meta})},_.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:u.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},u.Utf8DecodeWorker=_,f.inherits(b,p),b.prototype.processChunk=function(C){this.push({data:u.utf8encode(C.data),meta:C.meta})},u.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,o,u){var f=n("./support"),h=n("./base64"),A=n("./nodejsUtils"),p=n("./external");function g(B){return B}function y(B,L){for(var P=0;P<B.length;++P)L[P]=255&B.charCodeAt(P);return L}n("setimmediate"),u.newBlob=function(B,L){u.checkSupport("blob");try{return new Blob([B],{type:L})}catch{try{var P=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return P.append(B),P.getBlob(L)}catch{throw new Error("Bug : can't construct the Blob.")}}};var _={stringifyByChunk:function(B,L,P){var I=[],O=0,U=B.length;if(U<=P)return String.fromCharCode.apply(null,B);for(;O<U;)L==="array"||L==="nodebuffer"?I.push(String.fromCharCode.apply(null,B.slice(O,Math.min(O+P,U)))):I.push(String.fromCharCode.apply(null,B.subarray(O,Math.min(O+P,U)))),O+=P;return I.join("")},stringifyByChar:function(B){for(var L="",P=0;P<B.length;P++)L+=String.fromCharCode(B[P]);return L},applyCanBeUsed:{uint8array:function(){try{return f.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return f.nodebuffer&&String.fromCharCode.apply(null,A.allocBuffer(1)).length===1}catch{return!1}}()}};function b(B){var L=65536,P=u.getTypeOf(B),I=!0;if(P==="uint8array"?I=_.applyCanBeUsed.uint8array:P==="nodebuffer"&&(I=_.applyCanBeUsed.nodebuffer),I)for(;1<L;)try{return _.stringifyByChunk(B,P,L)}catch{L=Math.floor(L/2)}return _.stringifyByChar(B)}function C(B,L){for(var P=0;P<B.length;P++)L[P]=B[P];return L}u.applyFromCharCode=b;var T={};T.string={string:g,array:function(B){return y(B,new Array(B.length))},arraybuffer:function(B){return T.string.uint8array(B).buffer},uint8array:function(B){return y(B,new Uint8Array(B.length))},nodebuffer:function(B){return y(B,A.allocBuffer(B.length))}},T.array={string:b,array:g,arraybuffer:function(B){return new Uint8Array(B).buffer},uint8array:function(B){return new Uint8Array(B)},nodebuffer:function(B){return A.newBufferFrom(B)}},T.arraybuffer={string:function(B){return b(new Uint8Array(B))},array:function(B){return C(new Uint8Array(B),new Array(B.byteLength))},arraybuffer:g,uint8array:function(B){return new Uint8Array(B)},nodebuffer:function(B){return A.newBufferFrom(new Uint8Array(B))}},T.uint8array={string:b,array:function(B){return C(B,new Array(B.length))},arraybuffer:function(B){return B.buffer},uint8array:g,nodebuffer:function(B){return A.newBufferFrom(B)}},T.nodebuffer={string:b,array:function(B){return C(B,new Array(B.length))},arraybuffer:function(B){return T.nodebuffer.uint8array(B).buffer},uint8array:function(B){return C(B,new Uint8Array(B.length))},nodebuffer:g},u.transformTo=function(B,L){if(L=L||"",!B)return L;u.checkSupport(B);var P=u.getTypeOf(L);return T[P][B](L)},u.resolve=function(B){for(var L=B.split("/"),P=[],I=0;I<L.length;I++){var O=L[I];O==="."||O===""&&I!==0&&I!==L.length-1||(O===".."?P.pop():P.push(O))}return P.join("/")},u.getTypeOf=function(B){return typeof B=="string"?"string":Object.prototype.toString.call(B)==="[object Array]"?"array":f.nodebuffer&&A.isBuffer(B)?"nodebuffer":f.uint8array&&B instanceof Uint8Array?"uint8array":f.arraybuffer&&B instanceof ArrayBuffer?"arraybuffer":void 0},u.checkSupport=function(B){if(!f[B.toLowerCase()])throw new Error(B+" is not supported by this platform")},u.MAX_VALUE_16BITS=65535,u.MAX_VALUE_32BITS=-1,u.pretty=function(B){var L,P,I="";for(P=0;P<(B||"").length;P++)I+="\\x"+((L=B.charCodeAt(P))<16?"0":"")+L.toString(16).toUpperCase();return I},u.delay=function(B,L,P){setImmediate(function(){B.apply(P||null,L||[])})},u.inherits=function(B,L){function P(){}P.prototype=L.prototype,B.prototype=new P},u.extend=function(){var B,L,P={};for(B=0;B<arguments.length;B++)for(L in arguments[B])Object.prototype.hasOwnProperty.call(arguments[B],L)&&P[L]===void 0&&(P[L]=arguments[B][L]);return P},u.prepareContent=function(B,L,P,I,O){return p.Promise.resolve(L).then(function(U){return f.blob&&(U instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(U))!==-1)&&typeof FileReader<"u"?new p.Promise(function(N,H){var z=new FileReader;z.onload=function(G){N(G.target.result)},z.onerror=function(G){H(G.target.error)},z.readAsArrayBuffer(U)}):U}).then(function(U){var N=u.getTypeOf(U);return N?(N==="arraybuffer"?U=u.transformTo("uint8array",U):N==="string"&&(O?U=h.decode(U):P&&I!==!0&&(U=function(H){return y(H,f.uint8array?new Uint8Array(H.length):new Array(H.length))}(U))),U):p.Promise.reject(new Error("Can't read the data of '"+B+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,o,u){var f=n("./reader/readerFor"),h=n("./utils"),A=n("./signature"),p=n("./zipEntry"),g=n("./support");function y(_){this.files=[],this.loadOptions=_}y.prototype={checkSignature:function(_){if(!this.reader.readAndCheckSignature(_)){this.reader.index-=4;var b=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+h.pretty(b)+", expected "+h.pretty(_)+")")}},isSignature:function(_,b){var C=this.reader.index;this.reader.setIndex(_);var T=this.reader.readString(4)===b;return this.reader.setIndex(C),T},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var _=this.reader.readData(this.zipCommentLength),b=g.uint8array?"uint8array":"array",C=h.transformTo(b,_);this.zipComment=this.loadOptions.decodeFileName(C)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var _,b,C,T=this.zip64EndOfCentralSize-44;0<T;)_=this.reader.readInt(2),b=this.reader.readInt(4),C=this.reader.readData(b),this.zip64ExtensibleData[_]={id:_,length:b,value:C}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var _,b;for(_=0;_<this.files.length;_++)b=this.files[_],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(A.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var _;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(A.CENTRAL_FILE_HEADER);)(_=new p({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(_);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var _=this.reader.lastIndexOfSignature(A.CENTRAL_DIRECTORY_END);if(_<0)throw this.isSignature(0,A.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(_);var b=_;if(this.checkSignature(A.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===h.MAX_VALUE_16BITS||this.diskWithCentralDirStart===h.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===h.MAX_VALUE_16BITS||this.centralDirRecords===h.MAX_VALUE_16BITS||this.centralDirSize===h.MAX_VALUE_32BITS||this.centralDirOffset===h.MAX_VALUE_32BITS){if(this.zip64=!0,(_=this.reader.lastIndexOfSignature(A.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(_),this.checkSignature(A.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,A.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(A.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(A.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var C=this.centralDirOffset+this.centralDirSize;this.zip64&&(C+=20,C+=12+this.zip64EndOfCentralSize);var T=b-C;if(0<T)this.isSignature(b,A.CENTRAL_FILE_HEADER)||(this.reader.zero=T);else if(T<0)throw new Error("Corrupted zip: missing "+Math.abs(T)+" bytes.")},prepareReader:function(_){this.reader=f(_)},load:function(_){this.prepareReader(_),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},o.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,o,u){var f=n("./reader/readerFor"),h=n("./utils"),A=n("./compressedObject"),p=n("./crc32"),g=n("./utf8"),y=n("./compressions"),_=n("./support");function b(C,T){this.options=C,this.loadOptions=T}b.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(C){var T,B;if(C.skip(22),this.fileNameLength=C.readInt(2),B=C.readInt(2),this.fileName=C.readData(this.fileNameLength),C.skip(B),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((T=function(L){for(var P in y)if(Object.prototype.hasOwnProperty.call(y,P)&&y[P].magic===L)return y[P];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+h.pretty(this.compressionMethod)+" unknown (inner file : "+h.transformTo("string",this.fileName)+")");this.decompressed=new A(this.compressedSize,this.uncompressedSize,this.crc32,T,C.readData(this.compressedSize))},readCentralPart:function(C){this.versionMadeBy=C.readInt(2),C.skip(2),this.bitFlag=C.readInt(2),this.compressionMethod=C.readString(2),this.date=C.readDate(),this.crc32=C.readInt(4),this.compressedSize=C.readInt(4),this.uncompressedSize=C.readInt(4);var T=C.readInt(2);if(this.extraFieldsLength=C.readInt(2),this.fileCommentLength=C.readInt(2),this.diskNumberStart=C.readInt(2),this.internalFileAttributes=C.readInt(2),this.externalFileAttributes=C.readInt(4),this.localHeaderOffset=C.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");C.skip(T),this.readExtraFields(C),this.parseZIP64ExtraField(C),this.fileComment=C.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var C=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),C==0&&(this.dosPermissions=63&this.externalFileAttributes),C==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var C=f(this.extraFields[1].value);this.uncompressedSize===h.MAX_VALUE_32BITS&&(this.uncompressedSize=C.readInt(8)),this.compressedSize===h.MAX_VALUE_32BITS&&(this.compressedSize=C.readInt(8)),this.localHeaderOffset===h.MAX_VALUE_32BITS&&(this.localHeaderOffset=C.readInt(8)),this.diskNumberStart===h.MAX_VALUE_32BITS&&(this.diskNumberStart=C.readInt(4))}},readExtraFields:function(C){var T,B,L,P=C.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});C.index+4<P;)T=C.readInt(2),B=C.readInt(2),L=C.readData(B),this.extraFields[T]={id:T,length:B,value:L};C.setIndex(P)},handleUTF8:function(){var C=_.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var T=this.findExtraFieldUnicodePath();if(T!==null)this.fileNameStr=T;else{var B=h.transformTo(C,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(B)}var L=this.findExtraFieldUnicodeComment();if(L!==null)this.fileCommentStr=L;else{var P=h.transformTo(C,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(P)}}},findExtraFieldUnicodePath:function(){var C=this.extraFields[28789];if(C){var T=f(C.value);return T.readInt(1)!==1||p(this.fileName)!==T.readInt(4)?null:g.utf8decode(T.readData(C.length-5))}return null},findExtraFieldUnicodeComment:function(){var C=this.extraFields[25461];if(C){var T=f(C.value);return T.readInt(1)!==1||p(this.fileComment)!==T.readInt(4)?null:g.utf8decode(T.readData(C.length-5))}return null}},o.exports=b},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,o,u){function f(T,B,L){this.name=T,this.dir=L.dir,this.date=L.date,this.comment=L.comment,this.unixPermissions=L.unixPermissions,this.dosPermissions=L.dosPermissions,this._data=B,this._dataBinary=L.binary,this.options={compression:L.compression,compressionOptions:L.compressionOptions}}var h=n("./stream/StreamHelper"),A=n("./stream/DataWorker"),p=n("./utf8"),g=n("./compressedObject"),y=n("./stream/GenericWorker");f.prototype={internalStream:function(T){var B=null,L="string";try{if(!T)throw new Error("No output type specified.");var P=(L=T.toLowerCase())==="string"||L==="text";L!=="binarystring"&&L!=="text"||(L="string"),B=this._decompressWorker();var I=!this._dataBinary;I&&!P&&(B=B.pipe(new p.Utf8EncodeWorker)),!I&&P&&(B=B.pipe(new p.Utf8DecodeWorker))}catch(O){(B=new y("error")).error(O)}return new h(B,L,"")},async:function(T,B){return this.internalStream(T).accumulate(B)},nodeStream:function(T,B){return this.internalStream(T||"nodebuffer").toNodejsStream(B)},_compressWorker:function(T,B){if(this._data instanceof g&&this._data.compression.magic===T.magic)return this._data.getCompressedWorker();var L=this._decompressWorker();return this._dataBinary||(L=L.pipe(new p.Utf8EncodeWorker)),g.createWorkerFrom(L,T,B)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof y?this._data:new A(this._data)}};for(var _=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],b=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},C=0;C<_.length;C++)f.prototype[_[C]]=b;o.exports=f},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,o,u){(function(f){var h,A,p=f.MutationObserver||f.WebKitMutationObserver;if(p){var g=0,y=new p(T),_=f.document.createTextNode("");y.observe(_,{characterData:!0}),h=function(){_.data=g=++g%2}}else if(f.setImmediate||f.MessageChannel===void 0)h="document"in f&&"onreadystatechange"in f.document.createElement("script")?function(){var B=f.document.createElement("script");B.onreadystatechange=function(){T(),B.onreadystatechange=null,B.parentNode.removeChild(B),B=null},f.document.documentElement.appendChild(B)}:function(){setTimeout(T,0)};else{var b=new f.MessageChannel;b.port1.onmessage=T,h=function(){b.port2.postMessage(0)}}var C=[];function T(){var B,L;A=!0;for(var P=C.length;P;){for(L=C,C=[],B=-1;++B<P;)L[B]();P=C.length}A=!1}o.exports=function(B){C.push(B)!==1||A||h()}}).call(this,typeof Gf<"u"?Gf:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,o,u){var f=n("immediate");function h(){}var A={},p=["REJECTED"],g=["FULFILLED"],y=["PENDING"];function _(P){if(typeof P!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,P!==h&&B(this,P)}function b(P,I,O){this.promise=P,typeof I=="function"&&(this.onFulfilled=I,this.callFulfilled=this.otherCallFulfilled),typeof O=="function"&&(this.onRejected=O,this.callRejected=this.otherCallRejected)}function C(P,I,O){f(function(){var U;try{U=I(O)}catch(N){return A.reject(P,N)}U===P?A.reject(P,new TypeError("Cannot resolve promise with itself")):A.resolve(P,U)})}function T(P){var I=P&&P.then;if(P&&(typeof P=="object"||typeof P=="function")&&typeof I=="function")return function(){I.apply(P,arguments)}}function B(P,I){var O=!1;function U(z){O||(O=!0,A.reject(P,z))}function N(z){O||(O=!0,A.resolve(P,z))}var H=L(function(){I(N,U)});H.status==="error"&&U(H.value)}function L(P,I){var O={};try{O.value=P(I),O.status="success"}catch(U){O.status="error",O.value=U}return O}(o.exports=_).prototype.finally=function(P){if(typeof P!="function")return this;var I=this.constructor;return this.then(function(O){return I.resolve(P()).then(function(){return O})},function(O){return I.resolve(P()).then(function(){throw O})})},_.prototype.catch=function(P){return this.then(null,P)},_.prototype.then=function(P,I){if(typeof P!="function"&&this.state===g||typeof I!="function"&&this.state===p)return this;var O=new this.constructor(h);return this.state!==y?C(O,this.state===g?P:I,this.outcome):this.queue.push(new b(O,P,I)),O},b.prototype.callFulfilled=function(P){A.resolve(this.promise,P)},b.prototype.otherCallFulfilled=function(P){C(this.promise,this.onFulfilled,P)},b.prototype.callRejected=function(P){A.reject(this.promise,P)},b.prototype.otherCallRejected=function(P){C(this.promise,this.onRejected,P)},A.resolve=function(P,I){var O=L(T,I);if(O.status==="error")return A.reject(P,O.value);var U=O.value;if(U)B(P,U);else{P.state=g,P.outcome=I;for(var N=-1,H=P.queue.length;++N<H;)P.queue[N].callFulfilled(I)}return P},A.reject=function(P,I){P.state=p,P.outcome=I;for(var O=-1,U=P.queue.length;++O<U;)P.queue[O].callRejected(I);return P},_.resolve=function(P){return P instanceof this?P:A.resolve(new this(h),P)},_.reject=function(P){var I=new this(h);return A.reject(I,P)},_.all=function(P){var I=this;if(Object.prototype.toString.call(P)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=P.length,U=!1;if(!O)return this.resolve([]);for(var N=new Array(O),H=0,z=-1,G=new this(h);++z<O;)j(P[z],z);return G;function j(q,X){I.resolve(q).then(function(Y){N[X]=Y,++H!==O||U||(U=!0,A.resolve(G,N))},function(Y){U||(U=!0,A.reject(G,Y))})}},_.race=function(P){var I=this;if(Object.prototype.toString.call(P)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=P.length,U=!1;if(!O)return this.resolve([]);for(var N=-1,H=new this(h);++N<O;)z=P[N],I.resolve(z).then(function(G){U||(U=!0,A.resolve(H,G))},function(G){U||(U=!0,A.reject(H,G))});var z;return H}},{immediate:36}],38:[function(n,o,u){var f={};(0,n("./lib/utils/common").assign)(f,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),o.exports=f},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,o,u){var f=n("./zlib/deflate"),h=n("./utils/common"),A=n("./utils/strings"),p=n("./zlib/messages"),g=n("./zlib/zstream"),y=Object.prototype.toString,_=0,b=-1,C=0,T=8;function B(P){if(!(this instanceof B))return new B(P);this.options=h.assign({level:b,method:T,chunkSize:16384,windowBits:15,memLevel:8,strategy:C,to:""},P||{});var I=this.options;I.raw&&0<I.windowBits?I.windowBits=-I.windowBits:I.gzip&&0<I.windowBits&&I.windowBits<16&&(I.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var O=f.deflateInit2(this.strm,I.level,I.method,I.windowBits,I.memLevel,I.strategy);if(O!==_)throw new Error(p[O]);if(I.header&&f.deflateSetHeader(this.strm,I.header),I.dictionary){var U;if(U=typeof I.dictionary=="string"?A.string2buf(I.dictionary):y.call(I.dictionary)==="[object ArrayBuffer]"?new Uint8Array(I.dictionary):I.dictionary,(O=f.deflateSetDictionary(this.strm,U))!==_)throw new Error(p[O]);this._dict_set=!0}}function L(P,I){var O=new B(I);if(O.push(P,!0),O.err)throw O.msg||p[O.err];return O.result}B.prototype.push=function(P,I){var O,U,N=this.strm,H=this.options.chunkSize;if(this.ended)return!1;U=I===~~I?I:I===!0?4:0,typeof P=="string"?N.input=A.string2buf(P):y.call(P)==="[object ArrayBuffer]"?N.input=new Uint8Array(P):N.input=P,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new h.Buf8(H),N.next_out=0,N.avail_out=H),(O=f.deflate(N,U))!==1&&O!==_)return this.onEnd(O),!(this.ended=!0);N.avail_out!==0&&(N.avail_in!==0||U!==4&&U!==2)||(this.options.to==="string"?this.onData(A.buf2binstring(h.shrinkBuf(N.output,N.next_out))):this.onData(h.shrinkBuf(N.output,N.next_out)))}while((0<N.avail_in||N.avail_out===0)&&O!==1);return U===4?(O=f.deflateEnd(this.strm),this.onEnd(O),this.ended=!0,O===_):U!==2||(this.onEnd(_),!(N.avail_out=0))},B.prototype.onData=function(P){this.chunks.push(P)},B.prototype.onEnd=function(P){P===_&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=h.flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg},u.Deflate=B,u.deflate=L,u.deflateRaw=function(P,I){return(I=I||{}).raw=!0,L(P,I)},u.gzip=function(P,I){return(I=I||{}).gzip=!0,L(P,I)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,o,u){var f=n("./zlib/inflate"),h=n("./utils/common"),A=n("./utils/strings"),p=n("./zlib/constants"),g=n("./zlib/messages"),y=n("./zlib/zstream"),_=n("./zlib/gzheader"),b=Object.prototype.toString;function C(B){if(!(this instanceof C))return new C(B);this.options=h.assign({chunkSize:16384,windowBits:0,to:""},B||{});var L=this.options;L.raw&&0<=L.windowBits&&L.windowBits<16&&(L.windowBits=-L.windowBits,L.windowBits===0&&(L.windowBits=-15)),!(0<=L.windowBits&&L.windowBits<16)||B&&B.windowBits||(L.windowBits+=32),15<L.windowBits&&L.windowBits<48&&(15&L.windowBits)==0&&(L.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var P=f.inflateInit2(this.strm,L.windowBits);if(P!==p.Z_OK)throw new Error(g[P]);this.header=new _,f.inflateGetHeader(this.strm,this.header)}function T(B,L){var P=new C(L);if(P.push(B,!0),P.err)throw P.msg||g[P.err];return P.result}C.prototype.push=function(B,L){var P,I,O,U,N,H,z=this.strm,G=this.options.chunkSize,j=this.options.dictionary,q=!1;if(this.ended)return!1;I=L===~~L?L:L===!0?p.Z_FINISH:p.Z_NO_FLUSH,typeof B=="string"?z.input=A.binstring2buf(B):b.call(B)==="[object ArrayBuffer]"?z.input=new Uint8Array(B):z.input=B,z.next_in=0,z.avail_in=z.input.length;do{if(z.avail_out===0&&(z.output=new h.Buf8(G),z.next_out=0,z.avail_out=G),(P=f.inflate(z,p.Z_NO_FLUSH))===p.Z_NEED_DICT&&j&&(H=typeof j=="string"?A.string2buf(j):b.call(j)==="[object ArrayBuffer]"?new Uint8Array(j):j,P=f.inflateSetDictionary(this.strm,H)),P===p.Z_BUF_ERROR&&q===!0&&(P=p.Z_OK,q=!1),P!==p.Z_STREAM_END&&P!==p.Z_OK)return this.onEnd(P),!(this.ended=!0);z.next_out&&(z.avail_out!==0&&P!==p.Z_STREAM_END&&(z.avail_in!==0||I!==p.Z_FINISH&&I!==p.Z_SYNC_FLUSH)||(this.options.to==="string"?(O=A.utf8border(z.output,z.next_out),U=z.next_out-O,N=A.buf2string(z.output,O),z.next_out=U,z.avail_out=G-U,U&&h.arraySet(z.output,z.output,O,U,0),this.onData(N)):this.onData(h.shrinkBuf(z.output,z.next_out)))),z.avail_in===0&&z.avail_out===0&&(q=!0)}while((0<z.avail_in||z.avail_out===0)&&P!==p.Z_STREAM_END);return P===p.Z_STREAM_END&&(I=p.Z_FINISH),I===p.Z_FINISH?(P=f.inflateEnd(this.strm),this.onEnd(P),this.ended=!0,P===p.Z_OK):I!==p.Z_SYNC_FLUSH||(this.onEnd(p.Z_OK),!(z.avail_out=0))},C.prototype.onData=function(B){this.chunks.push(B)},C.prototype.onEnd=function(B){B===p.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=h.flattenChunks(this.chunks)),this.chunks=[],this.err=B,this.msg=this.strm.msg},u.Inflate=C,u.inflate=T,u.inflateRaw=function(B,L){return(L=L||{}).raw=!0,T(B,L)},u.ungzip=T},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,o,u){var f=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";u.assign=function(p){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var y=g.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var _ in y)y.hasOwnProperty(_)&&(p[_]=y[_])}}return p},u.shrinkBuf=function(p,g){return p.length===g?p:p.subarray?p.subarray(0,g):(p.length=g,p)};var h={arraySet:function(p,g,y,_,b){if(g.subarray&&p.subarray)p.set(g.subarray(y,y+_),b);else for(var C=0;C<_;C++)p[b+C]=g[y+C]},flattenChunks:function(p){var g,y,_,b,C,T;for(g=_=0,y=p.length;g<y;g++)_+=p[g].length;for(T=new Uint8Array(_),g=b=0,y=p.length;g<y;g++)C=p[g],T.set(C,b),b+=C.length;return T}},A={arraySet:function(p,g,y,_,b){for(var C=0;C<_;C++)p[b+C]=g[y+C]},flattenChunks:function(p){return[].concat.apply([],p)}};u.setTyped=function(p){p?(u.Buf8=Uint8Array,u.Buf16=Uint16Array,u.Buf32=Int32Array,u.assign(u,h)):(u.Buf8=Array,u.Buf16=Array,u.Buf32=Array,u.assign(u,A))},u.setTyped(f)},{}],42:[function(n,o,u){var f=n("./common"),h=!0,A=!0;try{String.fromCharCode.apply(null,[0])}catch{h=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{A=!1}for(var p=new f.Buf8(256),g=0;g<256;g++)p[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function y(_,b){if(b<65537&&(_.subarray&&A||!_.subarray&&h))return String.fromCharCode.apply(null,f.shrinkBuf(_,b));for(var C="",T=0;T<b;T++)C+=String.fromCharCode(_[T]);return C}p[254]=p[254]=1,u.string2buf=function(_){var b,C,T,B,L,P=_.length,I=0;for(B=0;B<P;B++)(64512&(C=_.charCodeAt(B)))==55296&&B+1<P&&(64512&(T=_.charCodeAt(B+1)))==56320&&(C=65536+(C-55296<<10)+(T-56320),B++),I+=C<128?1:C<2048?2:C<65536?3:4;for(b=new f.Buf8(I),B=L=0;L<I;B++)(64512&(C=_.charCodeAt(B)))==55296&&B+1<P&&(64512&(T=_.charCodeAt(B+1)))==56320&&(C=65536+(C-55296<<10)+(T-56320),B++),C<128?b[L++]=C:(C<2048?b[L++]=192|C>>>6:(C<65536?b[L++]=224|C>>>12:(b[L++]=240|C>>>18,b[L++]=128|C>>>12&63),b[L++]=128|C>>>6&63),b[L++]=128|63&C);return b},u.buf2binstring=function(_){return y(_,_.length)},u.binstring2buf=function(_){for(var b=new f.Buf8(_.length),C=0,T=b.length;C<T;C++)b[C]=_.charCodeAt(C);return b},u.buf2string=function(_,b){var C,T,B,L,P=b||_.length,I=new Array(2*P);for(C=T=0;C<P;)if((B=_[C++])<128)I[T++]=B;else if(4<(L=p[B]))I[T++]=65533,C+=L-1;else{for(B&=L===2?31:L===3?15:7;1<L&&C<P;)B=B<<6|63&_[C++],L--;1<L?I[T++]=65533:B<65536?I[T++]=B:(B-=65536,I[T++]=55296|B>>10&1023,I[T++]=56320|1023&B)}return y(I,T)},u.utf8border=function(_,b){var C;for((b=b||_.length)>_.length&&(b=_.length),C=b-1;0<=C&&(192&_[C])==128;)C--;return C<0||C===0?b:C+p[_[C]]>b?C:b}},{"./common":41}],43:[function(n,o,u){o.exports=function(f,h,A,p){for(var g=65535&f|0,y=f>>>16&65535|0,_=0;A!==0;){for(A-=_=2e3<A?2e3:A;y=y+(g=g+h[p++]|0)|0,--_;);g%=65521,y%=65521}return g|y<<16|0}},{}],44:[function(n,o,u){o.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,o,u){var f=function(){for(var h,A=[],p=0;p<256;p++){h=p;for(var g=0;g<8;g++)h=1&h?3988292384^h>>>1:h>>>1;A[p]=h}return A}();o.exports=function(h,A,p,g){var y=f,_=g+p;h^=-1;for(var b=g;b<_;b++)h=h>>>8^y[255&(h^A[b])];return-1^h}},{}],46:[function(n,o,u){var f,h=n("../utils/common"),A=n("./trees"),p=n("./adler32"),g=n("./crc32"),y=n("./messages"),_=0,b=4,C=0,T=-2,B=-1,L=4,P=2,I=8,O=9,U=286,N=30,H=19,z=2*U+1,G=15,j=3,q=258,X=q+j+1,Y=42,te=113,K=1,ce=2,ae=3,le=4;function pe(ue,Qe){return ue.msg=y[Qe],Qe}function ie(ue){return(ue<<1)-(4<ue?9:0)}function he(ue){for(var Qe=ue.length;0<=--Qe;)ue[Qe]=0}function re(ue){var Qe=ue.state,qe=Qe.pending;qe>ue.avail_out&&(qe=ue.avail_out),qe!==0&&(h.arraySet(ue.output,Qe.pending_buf,Qe.pending_out,qe,ue.next_out),ue.next_out+=qe,Qe.pending_out+=qe,ue.total_out+=qe,ue.avail_out-=qe,Qe.pending-=qe,Qe.pending===0&&(Qe.pending_out=0))}function oe(ue,Qe){A._tr_flush_block(ue,0<=ue.block_start?ue.block_start:-1,ue.strstart-ue.block_start,Qe),ue.block_start=ue.strstart,re(ue.strm)}function ye(ue,Qe){ue.pending_buf[ue.pending++]=Qe}function _e(ue,Qe){ue.pending_buf[ue.pending++]=Qe>>>8&255,ue.pending_buf[ue.pending++]=255&Qe}function Ce(ue,Qe){var qe,Re,Me=ue.max_chain_length,Ge=ue.strstart,Pe=ue.prev_length,ke=ue.nice_match,Be=ue.strstart>ue.w_size-X?ue.strstart-(ue.w_size-X):0,$e=ue.window,nt=ue.w_mask,ft=ue.prev,Mt=ue.strstart+q,Rt=$e[Ge+Pe-1],Bt=$e[Ge+Pe];ue.prev_length>=ue.good_match&&(Me>>=2),ke>ue.lookahead&&(ke=ue.lookahead);do if($e[(qe=Qe)+Pe]===Bt&&$e[qe+Pe-1]===Rt&&$e[qe]===$e[Ge]&&$e[++qe]===$e[Ge+1]){Ge+=2,qe++;do;while($e[++Ge]===$e[++qe]&&$e[++Ge]===$e[++qe]&&$e[++Ge]===$e[++qe]&&$e[++Ge]===$e[++qe]&&$e[++Ge]===$e[++qe]&&$e[++Ge]===$e[++qe]&&$e[++Ge]===$e[++qe]&&$e[++Ge]===$e[++qe]&&Ge<Mt);if(Re=q-(Mt-Ge),Ge=Mt-q,Pe<Re){if(ue.match_start=Qe,ke<=(Pe=Re))break;Rt=$e[Ge+Pe-1],Bt=$e[Ge+Pe]}}while((Qe=ft[Qe&nt])>Be&&--Me!=0);return Pe<=ue.lookahead?Pe:ue.lookahead}function ne(ue){var Qe,qe,Re,Me,Ge,Pe,ke,Be,$e,nt,ft=ue.w_size;do{if(Me=ue.window_size-ue.lookahead-ue.strstart,ue.strstart>=ft+(ft-X)){for(h.arraySet(ue.window,ue.window,ft,ft,0),ue.match_start-=ft,ue.strstart-=ft,ue.block_start-=ft,Qe=qe=ue.hash_size;Re=ue.head[--Qe],ue.head[Qe]=ft<=Re?Re-ft:0,--qe;);for(Qe=qe=ft;Re=ue.prev[--Qe],ue.prev[Qe]=ft<=Re?Re-ft:0,--qe;);Me+=ft}if(ue.strm.avail_in===0)break;if(Pe=ue.strm,ke=ue.window,Be=ue.strstart+ue.lookahead,$e=Me,nt=void 0,nt=Pe.avail_in,$e<nt&&(nt=$e),qe=nt===0?0:(Pe.avail_in-=nt,h.arraySet(ke,Pe.input,Pe.next_in,nt,Be),Pe.state.wrap===1?Pe.adler=p(Pe.adler,ke,nt,Be):Pe.state.wrap===2&&(Pe.adler=g(Pe.adler,ke,nt,Be)),Pe.next_in+=nt,Pe.total_in+=nt,nt),ue.lookahead+=qe,ue.lookahead+ue.insert>=j)for(Ge=ue.strstart-ue.insert,ue.ins_h=ue.window[Ge],ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[Ge+1])&ue.hash_mask;ue.insert&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[Ge+j-1])&ue.hash_mask,ue.prev[Ge&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=Ge,Ge++,ue.insert--,!(ue.lookahead+ue.insert<j)););}while(ue.lookahead<X&&ue.strm.avail_in!==0)}function xe(ue,Qe){for(var qe,Re;;){if(ue.lookahead<X){if(ne(ue),ue.lookahead<X&&Qe===_)return K;if(ue.lookahead===0)break}if(qe=0,ue.lookahead>=j&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+j-1])&ue.hash_mask,qe=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),qe!==0&&ue.strstart-qe<=ue.w_size-X&&(ue.match_length=Ce(ue,qe)),ue.match_length>=j)if(Re=A._tr_tally(ue,ue.strstart-ue.match_start,ue.match_length-j),ue.lookahead-=ue.match_length,ue.match_length<=ue.max_lazy_match&&ue.lookahead>=j){for(ue.match_length--;ue.strstart++,ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+j-1])&ue.hash_mask,qe=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart,--ue.match_length!=0;);ue.strstart++}else ue.strstart+=ue.match_length,ue.match_length=0,ue.ins_h=ue.window[ue.strstart],ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+1])&ue.hash_mask;else Re=A._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++;if(Re&&(oe(ue,!1),ue.strm.avail_out===0))return K}return ue.insert=ue.strstart<j-1?ue.strstart:j-1,Qe===b?(oe(ue,!0),ue.strm.avail_out===0?ae:le):ue.last_lit&&(oe(ue,!1),ue.strm.avail_out===0)?K:ce}function De(ue,Qe){for(var qe,Re,Me;;){if(ue.lookahead<X){if(ne(ue),ue.lookahead<X&&Qe===_)return K;if(ue.lookahead===0)break}if(qe=0,ue.lookahead>=j&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+j-1])&ue.hash_mask,qe=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),ue.prev_length=ue.match_length,ue.prev_match=ue.match_start,ue.match_length=j-1,qe!==0&&ue.prev_length<ue.max_lazy_match&&ue.strstart-qe<=ue.w_size-X&&(ue.match_length=Ce(ue,qe),ue.match_length<=5&&(ue.strategy===1||ue.match_length===j&&4096<ue.strstart-ue.match_start)&&(ue.match_length=j-1)),ue.prev_length>=j&&ue.match_length<=ue.prev_length){for(Me=ue.strstart+ue.lookahead-j,Re=A._tr_tally(ue,ue.strstart-1-ue.prev_match,ue.prev_length-j),ue.lookahead-=ue.prev_length-1,ue.prev_length-=2;++ue.strstart<=Me&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+j-1])&ue.hash_mask,qe=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),--ue.prev_length!=0;);if(ue.match_available=0,ue.match_length=j-1,ue.strstart++,Re&&(oe(ue,!1),ue.strm.avail_out===0))return K}else if(ue.match_available){if((Re=A._tr_tally(ue,0,ue.window[ue.strstart-1]))&&oe(ue,!1),ue.strstart++,ue.lookahead--,ue.strm.avail_out===0)return K}else ue.match_available=1,ue.strstart++,ue.lookahead--}return ue.match_available&&(Re=A._tr_tally(ue,0,ue.window[ue.strstart-1]),ue.match_available=0),ue.insert=ue.strstart<j-1?ue.strstart:j-1,Qe===b?(oe(ue,!0),ue.strm.avail_out===0?ae:le):ue.last_lit&&(oe(ue,!1),ue.strm.avail_out===0)?K:ce}function ze(ue,Qe,qe,Re,Me){this.good_length=ue,this.max_lazy=Qe,this.nice_length=qe,this.max_chain=Re,this.func=Me}function Ye(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=I,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new h.Buf16(2*z),this.dyn_dtree=new h.Buf16(2*(2*N+1)),this.bl_tree=new h.Buf16(2*(2*H+1)),he(this.dyn_ltree),he(this.dyn_dtree),he(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new h.Buf16(G+1),this.heap=new h.Buf16(2*U+1),he(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new h.Buf16(2*U+1),he(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ne(ue){var Qe;return ue&&ue.state?(ue.total_in=ue.total_out=0,ue.data_type=P,(Qe=ue.state).pending=0,Qe.pending_out=0,Qe.wrap<0&&(Qe.wrap=-Qe.wrap),Qe.status=Qe.wrap?Y:te,ue.adler=Qe.wrap===2?0:1,Qe.last_flush=_,A._tr_init(Qe),C):pe(ue,T)}function yt(ue){var Qe=Ne(ue);return Qe===C&&function(qe){qe.window_size=2*qe.w_size,he(qe.head),qe.max_lazy_match=f[qe.level].max_lazy,qe.good_match=f[qe.level].good_length,qe.nice_match=f[qe.level].nice_length,qe.max_chain_length=f[qe.level].max_chain,qe.strstart=0,qe.block_start=0,qe.lookahead=0,qe.insert=0,qe.match_length=qe.prev_length=j-1,qe.match_available=0,qe.ins_h=0}(ue.state),Qe}function Ue(ue,Qe,qe,Re,Me,Ge){if(!ue)return T;var Pe=1;if(Qe===B&&(Qe=6),Re<0?(Pe=0,Re=-Re):15<Re&&(Pe=2,Re-=16),Me<1||O<Me||qe!==I||Re<8||15<Re||Qe<0||9<Qe||Ge<0||L<Ge)return pe(ue,T);Re===8&&(Re=9);var ke=new Ye;return(ue.state=ke).strm=ue,ke.wrap=Pe,ke.gzhead=null,ke.w_bits=Re,ke.w_size=1<<ke.w_bits,ke.w_mask=ke.w_size-1,ke.hash_bits=Me+7,ke.hash_size=1<<ke.hash_bits,ke.hash_mask=ke.hash_size-1,ke.hash_shift=~~((ke.hash_bits+j-1)/j),ke.window=new h.Buf8(2*ke.w_size),ke.head=new h.Buf16(ke.hash_size),ke.prev=new h.Buf16(ke.w_size),ke.lit_bufsize=1<<Me+6,ke.pending_buf_size=4*ke.lit_bufsize,ke.pending_buf=new h.Buf8(ke.pending_buf_size),ke.d_buf=1*ke.lit_bufsize,ke.l_buf=3*ke.lit_bufsize,ke.level=Qe,ke.strategy=Ge,ke.method=qe,yt(ue)}f=[new ze(0,0,0,0,function(ue,Qe){var qe=65535;for(qe>ue.pending_buf_size-5&&(qe=ue.pending_buf_size-5);;){if(ue.lookahead<=1){if(ne(ue),ue.lookahead===0&&Qe===_)return K;if(ue.lookahead===0)break}ue.strstart+=ue.lookahead,ue.lookahead=0;var Re=ue.block_start+qe;if((ue.strstart===0||ue.strstart>=Re)&&(ue.lookahead=ue.strstart-Re,ue.strstart=Re,oe(ue,!1),ue.strm.avail_out===0)||ue.strstart-ue.block_start>=ue.w_size-X&&(oe(ue,!1),ue.strm.avail_out===0))return K}return ue.insert=0,Qe===b?(oe(ue,!0),ue.strm.avail_out===0?ae:le):(ue.strstart>ue.block_start&&(oe(ue,!1),ue.strm.avail_out),K)}),new ze(4,4,8,4,xe),new ze(4,5,16,8,xe),new ze(4,6,32,32,xe),new ze(4,4,16,16,De),new ze(8,16,32,32,De),new ze(8,16,128,128,De),new ze(8,32,128,256,De),new ze(32,128,258,1024,De),new ze(32,258,258,4096,De)],u.deflateInit=function(ue,Qe){return Ue(ue,Qe,I,15,8,0)},u.deflateInit2=Ue,u.deflateReset=yt,u.deflateResetKeep=Ne,u.deflateSetHeader=function(ue,Qe){return ue&&ue.state?ue.state.wrap!==2?T:(ue.state.gzhead=Qe,C):T},u.deflate=function(ue,Qe){var qe,Re,Me,Ge;if(!ue||!ue.state||5<Qe||Qe<0)return ue?pe(ue,T):T;if(Re=ue.state,!ue.output||!ue.input&&ue.avail_in!==0||Re.status===666&&Qe!==b)return pe(ue,ue.avail_out===0?-5:T);if(Re.strm=ue,qe=Re.last_flush,Re.last_flush=Qe,Re.status===Y)if(Re.wrap===2)ue.adler=0,ye(Re,31),ye(Re,139),ye(Re,8),Re.gzhead?(ye(Re,(Re.gzhead.text?1:0)+(Re.gzhead.hcrc?2:0)+(Re.gzhead.extra?4:0)+(Re.gzhead.name?8:0)+(Re.gzhead.comment?16:0)),ye(Re,255&Re.gzhead.time),ye(Re,Re.gzhead.time>>8&255),ye(Re,Re.gzhead.time>>16&255),ye(Re,Re.gzhead.time>>24&255),ye(Re,Re.level===9?2:2<=Re.strategy||Re.level<2?4:0),ye(Re,255&Re.gzhead.os),Re.gzhead.extra&&Re.gzhead.extra.length&&(ye(Re,255&Re.gzhead.extra.length),ye(Re,Re.gzhead.extra.length>>8&255)),Re.gzhead.hcrc&&(ue.adler=g(ue.adler,Re.pending_buf,Re.pending,0)),Re.gzindex=0,Re.status=69):(ye(Re,0),ye(Re,0),ye(Re,0),ye(Re,0),ye(Re,0),ye(Re,Re.level===9?2:2<=Re.strategy||Re.level<2?4:0),ye(Re,3),Re.status=te);else{var Pe=I+(Re.w_bits-8<<4)<<8;Pe|=(2<=Re.strategy||Re.level<2?0:Re.level<6?1:Re.level===6?2:3)<<6,Re.strstart!==0&&(Pe|=32),Pe+=31-Pe%31,Re.status=te,_e(Re,Pe),Re.strstart!==0&&(_e(Re,ue.adler>>>16),_e(Re,65535&ue.adler)),ue.adler=1}if(Re.status===69)if(Re.gzhead.extra){for(Me=Re.pending;Re.gzindex<(65535&Re.gzhead.extra.length)&&(Re.pending!==Re.pending_buf_size||(Re.gzhead.hcrc&&Re.pending>Me&&(ue.adler=g(ue.adler,Re.pending_buf,Re.pending-Me,Me)),re(ue),Me=Re.pending,Re.pending!==Re.pending_buf_size));)ye(Re,255&Re.gzhead.extra[Re.gzindex]),Re.gzindex++;Re.gzhead.hcrc&&Re.pending>Me&&(ue.adler=g(ue.adler,Re.pending_buf,Re.pending-Me,Me)),Re.gzindex===Re.gzhead.extra.length&&(Re.gzindex=0,Re.status=73)}else Re.status=73;if(Re.status===73)if(Re.gzhead.name){Me=Re.pending;do{if(Re.pending===Re.pending_buf_size&&(Re.gzhead.hcrc&&Re.pending>Me&&(ue.adler=g(ue.adler,Re.pending_buf,Re.pending-Me,Me)),re(ue),Me=Re.pending,Re.pending===Re.pending_buf_size)){Ge=1;break}Ge=Re.gzindex<Re.gzhead.name.length?255&Re.gzhead.name.charCodeAt(Re.gzindex++):0,ye(Re,Ge)}while(Ge!==0);Re.gzhead.hcrc&&Re.pending>Me&&(ue.adler=g(ue.adler,Re.pending_buf,Re.pending-Me,Me)),Ge===0&&(Re.gzindex=0,Re.status=91)}else Re.status=91;if(Re.status===91)if(Re.gzhead.comment){Me=Re.pending;do{if(Re.pending===Re.pending_buf_size&&(Re.gzhead.hcrc&&Re.pending>Me&&(ue.adler=g(ue.adler,Re.pending_buf,Re.pending-Me,Me)),re(ue),Me=Re.pending,Re.pending===Re.pending_buf_size)){Ge=1;break}Ge=Re.gzindex<Re.gzhead.comment.length?255&Re.gzhead.comment.charCodeAt(Re.gzindex++):0,ye(Re,Ge)}while(Ge!==0);Re.gzhead.hcrc&&Re.pending>Me&&(ue.adler=g(ue.adler,Re.pending_buf,Re.pending-Me,Me)),Ge===0&&(Re.status=103)}else Re.status=103;if(Re.status===103&&(Re.gzhead.hcrc?(Re.pending+2>Re.pending_buf_size&&re(ue),Re.pending+2<=Re.pending_buf_size&&(ye(Re,255&ue.adler),ye(Re,ue.adler>>8&255),ue.adler=0,Re.status=te)):Re.status=te),Re.pending!==0){if(re(ue),ue.avail_out===0)return Re.last_flush=-1,C}else if(ue.avail_in===0&&ie(Qe)<=ie(qe)&&Qe!==b)return pe(ue,-5);if(Re.status===666&&ue.avail_in!==0)return pe(ue,-5);if(ue.avail_in!==0||Re.lookahead!==0||Qe!==_&&Re.status!==666){var ke=Re.strategy===2?function(Be,$e){for(var nt;;){if(Be.lookahead===0&&(ne(Be),Be.lookahead===0)){if($e===_)return K;break}if(Be.match_length=0,nt=A._tr_tally(Be,0,Be.window[Be.strstart]),Be.lookahead--,Be.strstart++,nt&&(oe(Be,!1),Be.strm.avail_out===0))return K}return Be.insert=0,$e===b?(oe(Be,!0),Be.strm.avail_out===0?ae:le):Be.last_lit&&(oe(Be,!1),Be.strm.avail_out===0)?K:ce}(Re,Qe):Re.strategy===3?function(Be,$e){for(var nt,ft,Mt,Rt,Bt=Be.window;;){if(Be.lookahead<=q){if(ne(Be),Be.lookahead<=q&&$e===_)return K;if(Be.lookahead===0)break}if(Be.match_length=0,Be.lookahead>=j&&0<Be.strstart&&(ft=Bt[Mt=Be.strstart-1])===Bt[++Mt]&&ft===Bt[++Mt]&&ft===Bt[++Mt]){Rt=Be.strstart+q;do;while(ft===Bt[++Mt]&&ft===Bt[++Mt]&&ft===Bt[++Mt]&&ft===Bt[++Mt]&&ft===Bt[++Mt]&&ft===Bt[++Mt]&&ft===Bt[++Mt]&&ft===Bt[++Mt]&&Mt<Rt);Be.match_length=q-(Rt-Mt),Be.match_length>Be.lookahead&&(Be.match_length=Be.lookahead)}if(Be.match_length>=j?(nt=A._tr_tally(Be,1,Be.match_length-j),Be.lookahead-=Be.match_length,Be.strstart+=Be.match_length,Be.match_length=0):(nt=A._tr_tally(Be,0,Be.window[Be.strstart]),Be.lookahead--,Be.strstart++),nt&&(oe(Be,!1),Be.strm.avail_out===0))return K}return Be.insert=0,$e===b?(oe(Be,!0),Be.strm.avail_out===0?ae:le):Be.last_lit&&(oe(Be,!1),Be.strm.avail_out===0)?K:ce}(Re,Qe):f[Re.level].func(Re,Qe);if(ke!==ae&&ke!==le||(Re.status=666),ke===K||ke===ae)return ue.avail_out===0&&(Re.last_flush=-1),C;if(ke===ce&&(Qe===1?A._tr_align(Re):Qe!==5&&(A._tr_stored_block(Re,0,0,!1),Qe===3&&(he(Re.head),Re.lookahead===0&&(Re.strstart=0,Re.block_start=0,Re.insert=0))),re(ue),ue.avail_out===0))return Re.last_flush=-1,C}return Qe!==b?C:Re.wrap<=0?1:(Re.wrap===2?(ye(Re,255&ue.adler),ye(Re,ue.adler>>8&255),ye(Re,ue.adler>>16&255),ye(Re,ue.adler>>24&255),ye(Re,255&ue.total_in),ye(Re,ue.total_in>>8&255),ye(Re,ue.total_in>>16&255),ye(Re,ue.total_in>>24&255)):(_e(Re,ue.adler>>>16),_e(Re,65535&ue.adler)),re(ue),0<Re.wrap&&(Re.wrap=-Re.wrap),Re.pending!==0?C:1)},u.deflateEnd=function(ue){var Qe;return ue&&ue.state?(Qe=ue.state.status)!==Y&&Qe!==69&&Qe!==73&&Qe!==91&&Qe!==103&&Qe!==te&&Qe!==666?pe(ue,T):(ue.state=null,Qe===te?pe(ue,-3):C):T},u.deflateSetDictionary=function(ue,Qe){var qe,Re,Me,Ge,Pe,ke,Be,$e,nt=Qe.length;if(!ue||!ue.state||(Ge=(qe=ue.state).wrap)===2||Ge===1&&qe.status!==Y||qe.lookahead)return T;for(Ge===1&&(ue.adler=p(ue.adler,Qe,nt,0)),qe.wrap=0,nt>=qe.w_size&&(Ge===0&&(he(qe.head),qe.strstart=0,qe.block_start=0,qe.insert=0),$e=new h.Buf8(qe.w_size),h.arraySet($e,Qe,nt-qe.w_size,qe.w_size,0),Qe=$e,nt=qe.w_size),Pe=ue.avail_in,ke=ue.next_in,Be=ue.input,ue.avail_in=nt,ue.next_in=0,ue.input=Qe,ne(qe);qe.lookahead>=j;){for(Re=qe.strstart,Me=qe.lookahead-(j-1);qe.ins_h=(qe.ins_h<<qe.hash_shift^qe.window[Re+j-1])&qe.hash_mask,qe.prev[Re&qe.w_mask]=qe.head[qe.ins_h],qe.head[qe.ins_h]=Re,Re++,--Me;);qe.strstart=Re,qe.lookahead=j-1,ne(qe)}return qe.strstart+=qe.lookahead,qe.block_start=qe.strstart,qe.insert=qe.lookahead,qe.lookahead=0,qe.match_length=qe.prev_length=j-1,qe.match_available=0,ue.next_in=ke,ue.input=Be,ue.avail_in=Pe,qe.wrap=Ge,C},u.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,o,u){o.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,o,u){o.exports=function(f,h){var A,p,g,y,_,b,C,T,B,L,P,I,O,U,N,H,z,G,j,q,X,Y,te,K,ce;A=f.state,p=f.next_in,K=f.input,g=p+(f.avail_in-5),y=f.next_out,ce=f.output,_=y-(h-f.avail_out),b=y+(f.avail_out-257),C=A.dmax,T=A.wsize,B=A.whave,L=A.wnext,P=A.window,I=A.hold,O=A.bits,U=A.lencode,N=A.distcode,H=(1<<A.lenbits)-1,z=(1<<A.distbits)-1;e:do{O<15&&(I+=K[p++]<<O,O+=8,I+=K[p++]<<O,O+=8),G=U[I&H];t:for(;;){if(I>>>=j=G>>>24,O-=j,(j=G>>>16&255)===0)ce[y++]=65535&G;else{if(!(16&j)){if((64&j)==0){G=U[(65535&G)+(I&(1<<j)-1)];continue t}if(32&j){A.mode=12;break e}f.msg="invalid literal/length code",A.mode=30;break e}q=65535&G,(j&=15)&&(O<j&&(I+=K[p++]<<O,O+=8),q+=I&(1<<j)-1,I>>>=j,O-=j),O<15&&(I+=K[p++]<<O,O+=8,I+=K[p++]<<O,O+=8),G=N[I&z];r:for(;;){if(I>>>=j=G>>>24,O-=j,!(16&(j=G>>>16&255))){if((64&j)==0){G=N[(65535&G)+(I&(1<<j)-1)];continue r}f.msg="invalid distance code",A.mode=30;break e}if(X=65535&G,O<(j&=15)&&(I+=K[p++]<<O,(O+=8)<j&&(I+=K[p++]<<O,O+=8)),C<(X+=I&(1<<j)-1)){f.msg="invalid distance too far back",A.mode=30;break e}if(I>>>=j,O-=j,(j=y-_)<X){if(B<(j=X-j)&&A.sane){f.msg="invalid distance too far back",A.mode=30;break e}if(te=P,(Y=0)===L){if(Y+=T-j,j<q){for(q-=j;ce[y++]=P[Y++],--j;);Y=y-X,te=ce}}else if(L<j){if(Y+=T+L-j,(j-=L)<q){for(q-=j;ce[y++]=P[Y++],--j;);if(Y=0,L<q){for(q-=j=L;ce[y++]=P[Y++],--j;);Y=y-X,te=ce}}}else if(Y+=L-j,j<q){for(q-=j;ce[y++]=P[Y++],--j;);Y=y-X,te=ce}for(;2<q;)ce[y++]=te[Y++],ce[y++]=te[Y++],ce[y++]=te[Y++],q-=3;q&&(ce[y++]=te[Y++],1<q&&(ce[y++]=te[Y++]))}else{for(Y=y-X;ce[y++]=ce[Y++],ce[y++]=ce[Y++],ce[y++]=ce[Y++],2<(q-=3););q&&(ce[y++]=ce[Y++],1<q&&(ce[y++]=ce[Y++]))}break}}break}}while(p<g&&y<b);p-=q=O>>3,I&=(1<<(O-=q<<3))-1,f.next_in=p,f.next_out=y,f.avail_in=p<g?g-p+5:5-(p-g),f.avail_out=y<b?b-y+257:257-(y-b),A.hold=I,A.bits=O}},{}],49:[function(n,o,u){var f=n("../utils/common"),h=n("./adler32"),A=n("./crc32"),p=n("./inffast"),g=n("./inftrees"),y=1,_=2,b=0,C=-2,T=1,B=852,L=592;function P(Y){return(Y>>>24&255)+(Y>>>8&65280)+((65280&Y)<<8)+((255&Y)<<24)}function I(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new f.Buf16(320),this.work=new f.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function O(Y){var te;return Y&&Y.state?(te=Y.state,Y.total_in=Y.total_out=te.total=0,Y.msg="",te.wrap&&(Y.adler=1&te.wrap),te.mode=T,te.last=0,te.havedict=0,te.dmax=32768,te.head=null,te.hold=0,te.bits=0,te.lencode=te.lendyn=new f.Buf32(B),te.distcode=te.distdyn=new f.Buf32(L),te.sane=1,te.back=-1,b):C}function U(Y){var te;return Y&&Y.state?((te=Y.state).wsize=0,te.whave=0,te.wnext=0,O(Y)):C}function N(Y,te){var K,ce;return Y&&Y.state?(ce=Y.state,te<0?(K=0,te=-te):(K=1+(te>>4),te<48&&(te&=15)),te&&(te<8||15<te)?C:(ce.window!==null&&ce.wbits!==te&&(ce.window=null),ce.wrap=K,ce.wbits=te,U(Y))):C}function H(Y,te){var K,ce;return Y?(ce=new I,(Y.state=ce).window=null,(K=N(Y,te))!==b&&(Y.state=null),K):C}var z,G,j=!0;function q(Y){if(j){var te;for(z=new f.Buf32(512),G=new f.Buf32(32),te=0;te<144;)Y.lens[te++]=8;for(;te<256;)Y.lens[te++]=9;for(;te<280;)Y.lens[te++]=7;for(;te<288;)Y.lens[te++]=8;for(g(y,Y.lens,0,288,z,0,Y.work,{bits:9}),te=0;te<32;)Y.lens[te++]=5;g(_,Y.lens,0,32,G,0,Y.work,{bits:5}),j=!1}Y.lencode=z,Y.lenbits=9,Y.distcode=G,Y.distbits=5}function X(Y,te,K,ce){var ae,le=Y.state;return le.window===null&&(le.wsize=1<<le.wbits,le.wnext=0,le.whave=0,le.window=new f.Buf8(le.wsize)),ce>=le.wsize?(f.arraySet(le.window,te,K-le.wsize,le.wsize,0),le.wnext=0,le.whave=le.wsize):(ce<(ae=le.wsize-le.wnext)&&(ae=ce),f.arraySet(le.window,te,K-ce,ae,le.wnext),(ce-=ae)?(f.arraySet(le.window,te,K-ce,ce,0),le.wnext=ce,le.whave=le.wsize):(le.wnext+=ae,le.wnext===le.wsize&&(le.wnext=0),le.whave<le.wsize&&(le.whave+=ae))),0}u.inflateReset=U,u.inflateReset2=N,u.inflateResetKeep=O,u.inflateInit=function(Y){return H(Y,15)},u.inflateInit2=H,u.inflate=function(Y,te){var K,ce,ae,le,pe,ie,he,re,oe,ye,_e,Ce,ne,xe,De,ze,Ye,Ne,yt,Ue,ue,Qe,qe,Re,Me=0,Ge=new f.Buf8(4),Pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Y||!Y.state||!Y.output||!Y.input&&Y.avail_in!==0)return C;(K=Y.state).mode===12&&(K.mode=13),pe=Y.next_out,ae=Y.output,he=Y.avail_out,le=Y.next_in,ce=Y.input,ie=Y.avail_in,re=K.hold,oe=K.bits,ye=ie,_e=he,Qe=b;e:for(;;)switch(K.mode){case T:if(K.wrap===0){K.mode=13;break}for(;oe<16;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}if(2&K.wrap&&re===35615){Ge[K.check=0]=255&re,Ge[1]=re>>>8&255,K.check=A(K.check,Ge,2,0),oe=re=0,K.mode=2;break}if(K.flags=0,K.head&&(K.head.done=!1),!(1&K.wrap)||(((255&re)<<8)+(re>>8))%31){Y.msg="incorrect header check",K.mode=30;break}if((15&re)!=8){Y.msg="unknown compression method",K.mode=30;break}if(oe-=4,ue=8+(15&(re>>>=4)),K.wbits===0)K.wbits=ue;else if(ue>K.wbits){Y.msg="invalid window size",K.mode=30;break}K.dmax=1<<ue,Y.adler=K.check=1,K.mode=512&re?10:12,oe=re=0;break;case 2:for(;oe<16;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}if(K.flags=re,(255&K.flags)!=8){Y.msg="unknown compression method",K.mode=30;break}if(57344&K.flags){Y.msg="unknown header flags set",K.mode=30;break}K.head&&(K.head.text=re>>8&1),512&K.flags&&(Ge[0]=255&re,Ge[1]=re>>>8&255,K.check=A(K.check,Ge,2,0)),oe=re=0,K.mode=3;case 3:for(;oe<32;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}K.head&&(K.head.time=re),512&K.flags&&(Ge[0]=255&re,Ge[1]=re>>>8&255,Ge[2]=re>>>16&255,Ge[3]=re>>>24&255,K.check=A(K.check,Ge,4,0)),oe=re=0,K.mode=4;case 4:for(;oe<16;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}K.head&&(K.head.xflags=255&re,K.head.os=re>>8),512&K.flags&&(Ge[0]=255&re,Ge[1]=re>>>8&255,K.check=A(K.check,Ge,2,0)),oe=re=0,K.mode=5;case 5:if(1024&K.flags){for(;oe<16;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}K.length=re,K.head&&(K.head.extra_len=re),512&K.flags&&(Ge[0]=255&re,Ge[1]=re>>>8&255,K.check=A(K.check,Ge,2,0)),oe=re=0}else K.head&&(K.head.extra=null);K.mode=6;case 6:if(1024&K.flags&&(ie<(Ce=K.length)&&(Ce=ie),Ce&&(K.head&&(ue=K.head.extra_len-K.length,K.head.extra||(K.head.extra=new Array(K.head.extra_len)),f.arraySet(K.head.extra,ce,le,Ce,ue)),512&K.flags&&(K.check=A(K.check,ce,Ce,le)),ie-=Ce,le+=Ce,K.length-=Ce),K.length))break e;K.length=0,K.mode=7;case 7:if(2048&K.flags){if(ie===0)break e;for(Ce=0;ue=ce[le+Ce++],K.head&&ue&&K.length<65536&&(K.head.name+=String.fromCharCode(ue)),ue&&Ce<ie;);if(512&K.flags&&(K.check=A(K.check,ce,Ce,le)),ie-=Ce,le+=Ce,ue)break e}else K.head&&(K.head.name=null);K.length=0,K.mode=8;case 8:if(4096&K.flags){if(ie===0)break e;for(Ce=0;ue=ce[le+Ce++],K.head&&ue&&K.length<65536&&(K.head.comment+=String.fromCharCode(ue)),ue&&Ce<ie;);if(512&K.flags&&(K.check=A(K.check,ce,Ce,le)),ie-=Ce,le+=Ce,ue)break e}else K.head&&(K.head.comment=null);K.mode=9;case 9:if(512&K.flags){for(;oe<16;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}if(re!==(65535&K.check)){Y.msg="header crc mismatch",K.mode=30;break}oe=re=0}K.head&&(K.head.hcrc=K.flags>>9&1,K.head.done=!0),Y.adler=K.check=0,K.mode=12;break;case 10:for(;oe<32;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}Y.adler=K.check=P(re),oe=re=0,K.mode=11;case 11:if(K.havedict===0)return Y.next_out=pe,Y.avail_out=he,Y.next_in=le,Y.avail_in=ie,K.hold=re,K.bits=oe,2;Y.adler=K.check=1,K.mode=12;case 12:if(te===5||te===6)break e;case 13:if(K.last){re>>>=7&oe,oe-=7&oe,K.mode=27;break}for(;oe<3;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}switch(K.last=1&re,oe-=1,3&(re>>>=1)){case 0:K.mode=14;break;case 1:if(q(K),K.mode=20,te!==6)break;re>>>=2,oe-=2;break e;case 2:K.mode=17;break;case 3:Y.msg="invalid block type",K.mode=30}re>>>=2,oe-=2;break;case 14:for(re>>>=7&oe,oe-=7&oe;oe<32;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}if((65535&re)!=(re>>>16^65535)){Y.msg="invalid stored block lengths",K.mode=30;break}if(K.length=65535&re,oe=re=0,K.mode=15,te===6)break e;case 15:K.mode=16;case 16:if(Ce=K.length){if(ie<Ce&&(Ce=ie),he<Ce&&(Ce=he),Ce===0)break e;f.arraySet(ae,ce,le,Ce,pe),ie-=Ce,le+=Ce,he-=Ce,pe+=Ce,K.length-=Ce;break}K.mode=12;break;case 17:for(;oe<14;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}if(K.nlen=257+(31&re),re>>>=5,oe-=5,K.ndist=1+(31&re),re>>>=5,oe-=5,K.ncode=4+(15&re),re>>>=4,oe-=4,286<K.nlen||30<K.ndist){Y.msg="too many length or distance symbols",K.mode=30;break}K.have=0,K.mode=18;case 18:for(;K.have<K.ncode;){for(;oe<3;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}K.lens[Pe[K.have++]]=7&re,re>>>=3,oe-=3}for(;K.have<19;)K.lens[Pe[K.have++]]=0;if(K.lencode=K.lendyn,K.lenbits=7,qe={bits:K.lenbits},Qe=g(0,K.lens,0,19,K.lencode,0,K.work,qe),K.lenbits=qe.bits,Qe){Y.msg="invalid code lengths set",K.mode=30;break}K.have=0,K.mode=19;case 19:for(;K.have<K.nlen+K.ndist;){for(;ze=(Me=K.lencode[re&(1<<K.lenbits)-1])>>>16&255,Ye=65535&Me,!((De=Me>>>24)<=oe);){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}if(Ye<16)re>>>=De,oe-=De,K.lens[K.have++]=Ye;else{if(Ye===16){for(Re=De+2;oe<Re;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}if(re>>>=De,oe-=De,K.have===0){Y.msg="invalid bit length repeat",K.mode=30;break}ue=K.lens[K.have-1],Ce=3+(3&re),re>>>=2,oe-=2}else if(Ye===17){for(Re=De+3;oe<Re;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}oe-=De,ue=0,Ce=3+(7&(re>>>=De)),re>>>=3,oe-=3}else{for(Re=De+7;oe<Re;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}oe-=De,ue=0,Ce=11+(127&(re>>>=De)),re>>>=7,oe-=7}if(K.have+Ce>K.nlen+K.ndist){Y.msg="invalid bit length repeat",K.mode=30;break}for(;Ce--;)K.lens[K.have++]=ue}}if(K.mode===30)break;if(K.lens[256]===0){Y.msg="invalid code -- missing end-of-block",K.mode=30;break}if(K.lenbits=9,qe={bits:K.lenbits},Qe=g(y,K.lens,0,K.nlen,K.lencode,0,K.work,qe),K.lenbits=qe.bits,Qe){Y.msg="invalid literal/lengths set",K.mode=30;break}if(K.distbits=6,K.distcode=K.distdyn,qe={bits:K.distbits},Qe=g(_,K.lens,K.nlen,K.ndist,K.distcode,0,K.work,qe),K.distbits=qe.bits,Qe){Y.msg="invalid distances set",K.mode=30;break}if(K.mode=20,te===6)break e;case 20:K.mode=21;case 21:if(6<=ie&&258<=he){Y.next_out=pe,Y.avail_out=he,Y.next_in=le,Y.avail_in=ie,K.hold=re,K.bits=oe,p(Y,_e),pe=Y.next_out,ae=Y.output,he=Y.avail_out,le=Y.next_in,ce=Y.input,ie=Y.avail_in,re=K.hold,oe=K.bits,K.mode===12&&(K.back=-1);break}for(K.back=0;ze=(Me=K.lencode[re&(1<<K.lenbits)-1])>>>16&255,Ye=65535&Me,!((De=Me>>>24)<=oe);){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}if(ze&&(240&ze)==0){for(Ne=De,yt=ze,Ue=Ye;ze=(Me=K.lencode[Ue+((re&(1<<Ne+yt)-1)>>Ne)])>>>16&255,Ye=65535&Me,!(Ne+(De=Me>>>24)<=oe);){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}re>>>=Ne,oe-=Ne,K.back+=Ne}if(re>>>=De,oe-=De,K.back+=De,K.length=Ye,ze===0){K.mode=26;break}if(32&ze){K.back=-1,K.mode=12;break}if(64&ze){Y.msg="invalid literal/length code",K.mode=30;break}K.extra=15&ze,K.mode=22;case 22:if(K.extra){for(Re=K.extra;oe<Re;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}K.length+=re&(1<<K.extra)-1,re>>>=K.extra,oe-=K.extra,K.back+=K.extra}K.was=K.length,K.mode=23;case 23:for(;ze=(Me=K.distcode[re&(1<<K.distbits)-1])>>>16&255,Ye=65535&Me,!((De=Me>>>24)<=oe);){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}if((240&ze)==0){for(Ne=De,yt=ze,Ue=Ye;ze=(Me=K.distcode[Ue+((re&(1<<Ne+yt)-1)>>Ne)])>>>16&255,Ye=65535&Me,!(Ne+(De=Me>>>24)<=oe);){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}re>>>=Ne,oe-=Ne,K.back+=Ne}if(re>>>=De,oe-=De,K.back+=De,64&ze){Y.msg="invalid distance code",K.mode=30;break}K.offset=Ye,K.extra=15&ze,K.mode=24;case 24:if(K.extra){for(Re=K.extra;oe<Re;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}K.offset+=re&(1<<K.extra)-1,re>>>=K.extra,oe-=K.extra,K.back+=K.extra}if(K.offset>K.dmax){Y.msg="invalid distance too far back",K.mode=30;break}K.mode=25;case 25:if(he===0)break e;if(Ce=_e-he,K.offset>Ce){if((Ce=K.offset-Ce)>K.whave&&K.sane){Y.msg="invalid distance too far back",K.mode=30;break}ne=Ce>K.wnext?(Ce-=K.wnext,K.wsize-Ce):K.wnext-Ce,Ce>K.length&&(Ce=K.length),xe=K.window}else xe=ae,ne=pe-K.offset,Ce=K.length;for(he<Ce&&(Ce=he),he-=Ce,K.length-=Ce;ae[pe++]=xe[ne++],--Ce;);K.length===0&&(K.mode=21);break;case 26:if(he===0)break e;ae[pe++]=K.length,he--,K.mode=21;break;case 27:if(K.wrap){for(;oe<32;){if(ie===0)break e;ie--,re|=ce[le++]<<oe,oe+=8}if(_e-=he,Y.total_out+=_e,K.total+=_e,_e&&(Y.adler=K.check=K.flags?A(K.check,ae,_e,pe-_e):h(K.check,ae,_e,pe-_e)),_e=he,(K.flags?re:P(re))!==K.check){Y.msg="incorrect data check",K.mode=30;break}oe=re=0}K.mode=28;case 28:if(K.wrap&&K.flags){for(;oe<32;){if(ie===0)break e;ie--,re+=ce[le++]<<oe,oe+=8}if(re!==(4294967295&K.total)){Y.msg="incorrect length check",K.mode=30;break}oe=re=0}K.mode=29;case 29:Qe=1;break e;case 30:Qe=-3;break e;case 31:return-4;case 32:default:return C}return Y.next_out=pe,Y.avail_out=he,Y.next_in=le,Y.avail_in=ie,K.hold=re,K.bits=oe,(K.wsize||_e!==Y.avail_out&&K.mode<30&&(K.mode<27||te!==4))&&X(Y,Y.output,Y.next_out,_e-Y.avail_out)?(K.mode=31,-4):(ye-=Y.avail_in,_e-=Y.avail_out,Y.total_in+=ye,Y.total_out+=_e,K.total+=_e,K.wrap&&_e&&(Y.adler=K.check=K.flags?A(K.check,ae,_e,Y.next_out-_e):h(K.check,ae,_e,Y.next_out-_e)),Y.data_type=K.bits+(K.last?64:0)+(K.mode===12?128:0)+(K.mode===20||K.mode===15?256:0),(ye==0&&_e===0||te===4)&&Qe===b&&(Qe=-5),Qe)},u.inflateEnd=function(Y){if(!Y||!Y.state)return C;var te=Y.state;return te.window&&(te.window=null),Y.state=null,b},u.inflateGetHeader=function(Y,te){var K;return Y&&Y.state?(2&(K=Y.state).wrap)==0?C:((K.head=te).done=!1,b):C},u.inflateSetDictionary=function(Y,te){var K,ce=te.length;return Y&&Y.state?(K=Y.state).wrap!==0&&K.mode!==11?C:K.mode===11&&h(1,te,ce,0)!==K.check?-3:X(Y,te,ce,ce)?(K.mode=31,-4):(K.havedict=1,b):C},u.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,o,u){var f=n("../utils/common"),h=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],A=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],p=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],g=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];o.exports=function(y,_,b,C,T,B,L,P){var I,O,U,N,H,z,G,j,q,X=P.bits,Y=0,te=0,K=0,ce=0,ae=0,le=0,pe=0,ie=0,he=0,re=0,oe=null,ye=0,_e=new f.Buf16(16),Ce=new f.Buf16(16),ne=null,xe=0;for(Y=0;Y<=15;Y++)_e[Y]=0;for(te=0;te<C;te++)_e[_[b+te]]++;for(ae=X,ce=15;1<=ce&&_e[ce]===0;ce--);if(ce<ae&&(ae=ce),ce===0)return T[B++]=20971520,T[B++]=20971520,P.bits=1,0;for(K=1;K<ce&&_e[K]===0;K++);for(ae<K&&(ae=K),Y=ie=1;Y<=15;Y++)if(ie<<=1,(ie-=_e[Y])<0)return-1;if(0<ie&&(y===0||ce!==1))return-1;for(Ce[1]=0,Y=1;Y<15;Y++)Ce[Y+1]=Ce[Y]+_e[Y];for(te=0;te<C;te++)_[b+te]!==0&&(L[Ce[_[b+te]]++]=te);if(z=y===0?(oe=ne=L,19):y===1?(oe=h,ye-=257,ne=A,xe-=257,256):(oe=p,ne=g,-1),Y=K,H=B,pe=te=re=0,U=-1,N=(he=1<<(le=ae))-1,y===1&&852<he||y===2&&592<he)return 1;for(;;){for(G=Y-pe,q=L[te]<z?(j=0,L[te]):L[te]>z?(j=ne[xe+L[te]],oe[ye+L[te]]):(j=96,0),I=1<<Y-pe,K=O=1<<le;T[H+(re>>pe)+(O-=I)]=G<<24|j<<16|q|0,O!==0;);for(I=1<<Y-1;re&I;)I>>=1;if(I!==0?(re&=I-1,re+=I):re=0,te++,--_e[Y]==0){if(Y===ce)break;Y=_[b+L[te]]}if(ae<Y&&(re&N)!==U){for(pe===0&&(pe=ae),H+=K,ie=1<<(le=Y-pe);le+pe<ce&&!((ie-=_e[le+pe])<=0);)le++,ie<<=1;if(he+=1<<le,y===1&&852<he||y===2&&592<he)return 1;T[U=re&N]=ae<<24|le<<16|H-B|0}}return re!==0&&(T[H+re]=Y-pe<<24|64<<16|0),P.bits=ae,0}},{"../utils/common":41}],51:[function(n,o,u){o.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,o,u){var f=n("../utils/common"),h=0,A=1;function p(Me){for(var Ge=Me.length;0<=--Ge;)Me[Ge]=0}var g=0,y=29,_=256,b=_+1+y,C=30,T=19,B=2*b+1,L=15,P=16,I=7,O=256,U=16,N=17,H=18,z=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],G=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],j=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],X=new Array(2*(b+2));p(X);var Y=new Array(2*C);p(Y);var te=new Array(512);p(te);var K=new Array(256);p(K);var ce=new Array(y);p(ce);var ae,le,pe,ie=new Array(C);function he(Me,Ge,Pe,ke,Be){this.static_tree=Me,this.extra_bits=Ge,this.extra_base=Pe,this.elems=ke,this.max_length=Be,this.has_stree=Me&&Me.length}function re(Me,Ge){this.dyn_tree=Me,this.max_code=0,this.stat_desc=Ge}function oe(Me){return Me<256?te[Me]:te[256+(Me>>>7)]}function ye(Me,Ge){Me.pending_buf[Me.pending++]=255&Ge,Me.pending_buf[Me.pending++]=Ge>>>8&255}function _e(Me,Ge,Pe){Me.bi_valid>P-Pe?(Me.bi_buf|=Ge<<Me.bi_valid&65535,ye(Me,Me.bi_buf),Me.bi_buf=Ge>>P-Me.bi_valid,Me.bi_valid+=Pe-P):(Me.bi_buf|=Ge<<Me.bi_valid&65535,Me.bi_valid+=Pe)}function Ce(Me,Ge,Pe){_e(Me,Pe[2*Ge],Pe[2*Ge+1])}function ne(Me,Ge){for(var Pe=0;Pe|=1&Me,Me>>>=1,Pe<<=1,0<--Ge;);return Pe>>>1}function xe(Me,Ge,Pe){var ke,Be,$e=new Array(L+1),nt=0;for(ke=1;ke<=L;ke++)$e[ke]=nt=nt+Pe[ke-1]<<1;for(Be=0;Be<=Ge;Be++){var ft=Me[2*Be+1];ft!==0&&(Me[2*Be]=ne($e[ft]++,ft))}}function De(Me){var Ge;for(Ge=0;Ge<b;Ge++)Me.dyn_ltree[2*Ge]=0;for(Ge=0;Ge<C;Ge++)Me.dyn_dtree[2*Ge]=0;for(Ge=0;Ge<T;Ge++)Me.bl_tree[2*Ge]=0;Me.dyn_ltree[2*O]=1,Me.opt_len=Me.static_len=0,Me.last_lit=Me.matches=0}function ze(Me){8<Me.bi_valid?ye(Me,Me.bi_buf):0<Me.bi_valid&&(Me.pending_buf[Me.pending++]=Me.bi_buf),Me.bi_buf=0,Me.bi_valid=0}function Ye(Me,Ge,Pe,ke){var Be=2*Ge,$e=2*Pe;return Me[Be]<Me[$e]||Me[Be]===Me[$e]&&ke[Ge]<=ke[Pe]}function Ne(Me,Ge,Pe){for(var ke=Me.heap[Pe],Be=Pe<<1;Be<=Me.heap_len&&(Be<Me.heap_len&&Ye(Ge,Me.heap[Be+1],Me.heap[Be],Me.depth)&&Be++,!Ye(Ge,ke,Me.heap[Be],Me.depth));)Me.heap[Pe]=Me.heap[Be],Pe=Be,Be<<=1;Me.heap[Pe]=ke}function yt(Me,Ge,Pe){var ke,Be,$e,nt,ft=0;if(Me.last_lit!==0)for(;ke=Me.pending_buf[Me.d_buf+2*ft]<<8|Me.pending_buf[Me.d_buf+2*ft+1],Be=Me.pending_buf[Me.l_buf+ft],ft++,ke===0?Ce(Me,Be,Ge):(Ce(Me,($e=K[Be])+_+1,Ge),(nt=z[$e])!==0&&_e(Me,Be-=ce[$e],nt),Ce(Me,$e=oe(--ke),Pe),(nt=G[$e])!==0&&_e(Me,ke-=ie[$e],nt)),ft<Me.last_lit;);Ce(Me,O,Ge)}function Ue(Me,Ge){var Pe,ke,Be,$e=Ge.dyn_tree,nt=Ge.stat_desc.static_tree,ft=Ge.stat_desc.has_stree,Mt=Ge.stat_desc.elems,Rt=-1;for(Me.heap_len=0,Me.heap_max=B,Pe=0;Pe<Mt;Pe++)$e[2*Pe]!==0?(Me.heap[++Me.heap_len]=Rt=Pe,Me.depth[Pe]=0):$e[2*Pe+1]=0;for(;Me.heap_len<2;)$e[2*(Be=Me.heap[++Me.heap_len]=Rt<2?++Rt:0)]=1,Me.depth[Be]=0,Me.opt_len--,ft&&(Me.static_len-=nt[2*Be+1]);for(Ge.max_code=Rt,Pe=Me.heap_len>>1;1<=Pe;Pe--)Ne(Me,$e,Pe);for(Be=Mt;Pe=Me.heap[1],Me.heap[1]=Me.heap[Me.heap_len--],Ne(Me,$e,1),ke=Me.heap[1],Me.heap[--Me.heap_max]=Pe,Me.heap[--Me.heap_max]=ke,$e[2*Be]=$e[2*Pe]+$e[2*ke],Me.depth[Be]=(Me.depth[Pe]>=Me.depth[ke]?Me.depth[Pe]:Me.depth[ke])+1,$e[2*Pe+1]=$e[2*ke+1]=Be,Me.heap[1]=Be++,Ne(Me,$e,1),2<=Me.heap_len;);Me.heap[--Me.heap_max]=Me.heap[1],function(Bt,It){var qt,fr,lr,_t,br,on,Br=It.dyn_tree,rn=It.max_code,Yr=It.stat_desc.static_tree,cn=It.stat_desc.has_stree,Vn=It.stat_desc.extra_bits,Nr=It.stat_desc.extra_base,Ht=It.stat_desc.max_length,zr=0;for(_t=0;_t<=L;_t++)Bt.bl_count[_t]=0;for(Br[2*Bt.heap[Bt.heap_max]+1]=0,qt=Bt.heap_max+1;qt<B;qt++)Ht<(_t=Br[2*Br[2*(fr=Bt.heap[qt])+1]+1]+1)&&(_t=Ht,zr++),Br[2*fr+1]=_t,rn<fr||(Bt.bl_count[_t]++,br=0,Nr<=fr&&(br=Vn[fr-Nr]),on=Br[2*fr],Bt.opt_len+=on*(_t+br),cn&&(Bt.static_len+=on*(Yr[2*fr+1]+br)));if(zr!==0){do{for(_t=Ht-1;Bt.bl_count[_t]===0;)_t--;Bt.bl_count[_t]--,Bt.bl_count[_t+1]+=2,Bt.bl_count[Ht]--,zr-=2}while(0<zr);for(_t=Ht;_t!==0;_t--)for(fr=Bt.bl_count[_t];fr!==0;)rn<(lr=Bt.heap[--qt])||(Br[2*lr+1]!==_t&&(Bt.opt_len+=(_t-Br[2*lr+1])*Br[2*lr],Br[2*lr+1]=_t),fr--)}}(Me,Ge),xe($e,Rt,Me.bl_count)}function ue(Me,Ge,Pe){var ke,Be,$e=-1,nt=Ge[1],ft=0,Mt=7,Rt=4;for(nt===0&&(Mt=138,Rt=3),Ge[2*(Pe+1)+1]=65535,ke=0;ke<=Pe;ke++)Be=nt,nt=Ge[2*(ke+1)+1],++ft<Mt&&Be===nt||(ft<Rt?Me.bl_tree[2*Be]+=ft:Be!==0?(Be!==$e&&Me.bl_tree[2*Be]++,Me.bl_tree[2*U]++):ft<=10?Me.bl_tree[2*N]++:Me.bl_tree[2*H]++,$e=Be,Rt=(ft=0)===nt?(Mt=138,3):Be===nt?(Mt=6,3):(Mt=7,4))}function Qe(Me,Ge,Pe){var ke,Be,$e=-1,nt=Ge[1],ft=0,Mt=7,Rt=4;for(nt===0&&(Mt=138,Rt=3),ke=0;ke<=Pe;ke++)if(Be=nt,nt=Ge[2*(ke+1)+1],!(++ft<Mt&&Be===nt)){if(ft<Rt)for(;Ce(Me,Be,Me.bl_tree),--ft!=0;);else Be!==0?(Be!==$e&&(Ce(Me,Be,Me.bl_tree),ft--),Ce(Me,U,Me.bl_tree),_e(Me,ft-3,2)):ft<=10?(Ce(Me,N,Me.bl_tree),_e(Me,ft-3,3)):(Ce(Me,H,Me.bl_tree),_e(Me,ft-11,7));$e=Be,Rt=(ft=0)===nt?(Mt=138,3):Be===nt?(Mt=6,3):(Mt=7,4)}}p(ie);var qe=!1;function Re(Me,Ge,Pe,ke){_e(Me,(g<<1)+(ke?1:0),3),function(Be,$e,nt,ft){ze(Be),ye(Be,nt),ye(Be,~nt),f.arraySet(Be.pending_buf,Be.window,$e,nt,Be.pending),Be.pending+=nt}(Me,Ge,Pe)}u._tr_init=function(Me){qe||(function(){var Ge,Pe,ke,Be,$e,nt=new Array(L+1);for(Be=ke=0;Be<y-1;Be++)for(ce[Be]=ke,Ge=0;Ge<1<<z[Be];Ge++)K[ke++]=Be;for(K[ke-1]=Be,Be=$e=0;Be<16;Be++)for(ie[Be]=$e,Ge=0;Ge<1<<G[Be];Ge++)te[$e++]=Be;for($e>>=7;Be<C;Be++)for(ie[Be]=$e<<7,Ge=0;Ge<1<<G[Be]-7;Ge++)te[256+$e++]=Be;for(Pe=0;Pe<=L;Pe++)nt[Pe]=0;for(Ge=0;Ge<=143;)X[2*Ge+1]=8,Ge++,nt[8]++;for(;Ge<=255;)X[2*Ge+1]=9,Ge++,nt[9]++;for(;Ge<=279;)X[2*Ge+1]=7,Ge++,nt[7]++;for(;Ge<=287;)X[2*Ge+1]=8,Ge++,nt[8]++;for(xe(X,b+1,nt),Ge=0;Ge<C;Ge++)Y[2*Ge+1]=5,Y[2*Ge]=ne(Ge,5);ae=new he(X,z,_+1,b,L),le=new he(Y,G,0,C,L),pe=new he(new Array(0),j,0,T,I)}(),qe=!0),Me.l_desc=new re(Me.dyn_ltree,ae),Me.d_desc=new re(Me.dyn_dtree,le),Me.bl_desc=new re(Me.bl_tree,pe),Me.bi_buf=0,Me.bi_valid=0,De(Me)},u._tr_stored_block=Re,u._tr_flush_block=function(Me,Ge,Pe,ke){var Be,$e,nt=0;0<Me.level?(Me.strm.data_type===2&&(Me.strm.data_type=function(ft){var Mt,Rt=4093624447;for(Mt=0;Mt<=31;Mt++,Rt>>>=1)if(1&Rt&&ft.dyn_ltree[2*Mt]!==0)return h;if(ft.dyn_ltree[18]!==0||ft.dyn_ltree[20]!==0||ft.dyn_ltree[26]!==0)return A;for(Mt=32;Mt<_;Mt++)if(ft.dyn_ltree[2*Mt]!==0)return A;return h}(Me)),Ue(Me,Me.l_desc),Ue(Me,Me.d_desc),nt=function(ft){var Mt;for(ue(ft,ft.dyn_ltree,ft.l_desc.max_code),ue(ft,ft.dyn_dtree,ft.d_desc.max_code),Ue(ft,ft.bl_desc),Mt=T-1;3<=Mt&&ft.bl_tree[2*q[Mt]+1]===0;Mt--);return ft.opt_len+=3*(Mt+1)+5+5+4,Mt}(Me),Be=Me.opt_len+3+7>>>3,($e=Me.static_len+3+7>>>3)<=Be&&(Be=$e)):Be=$e=Pe+5,Pe+4<=Be&&Ge!==-1?Re(Me,Ge,Pe,ke):Me.strategy===4||$e===Be?(_e(Me,2+(ke?1:0),3),yt(Me,X,Y)):(_e(Me,4+(ke?1:0),3),function(ft,Mt,Rt,Bt){var It;for(_e(ft,Mt-257,5),_e(ft,Rt-1,5),_e(ft,Bt-4,4),It=0;It<Bt;It++)_e(ft,ft.bl_tree[2*q[It]+1],3);Qe(ft,ft.dyn_ltree,Mt-1),Qe(ft,ft.dyn_dtree,Rt-1)}(Me,Me.l_desc.max_code+1,Me.d_desc.max_code+1,nt+1),yt(Me,Me.dyn_ltree,Me.dyn_dtree)),De(Me),ke&&ze(Me)},u._tr_tally=function(Me,Ge,Pe){return Me.pending_buf[Me.d_buf+2*Me.last_lit]=Ge>>>8&255,Me.pending_buf[Me.d_buf+2*Me.last_lit+1]=255&Ge,Me.pending_buf[Me.l_buf+Me.last_lit]=255&Pe,Me.last_lit++,Ge===0?Me.dyn_ltree[2*Pe]++:(Me.matches++,Ge--,Me.dyn_ltree[2*(K[Pe]+_+1)]++,Me.dyn_dtree[2*oe(Ge)]++),Me.last_lit===Me.lit_bufsize-1},u._tr_align=function(Me){_e(Me,2,3),Ce(Me,O,X),function(Ge){Ge.bi_valid===16?(ye(Ge,Ge.bi_buf),Ge.bi_buf=0,Ge.bi_valid=0):8<=Ge.bi_valid&&(Ge.pending_buf[Ge.pending++]=255&Ge.bi_buf,Ge.bi_buf>>=8,Ge.bi_valid-=8)}(Me)}},{"../utils/common":41}],53:[function(n,o,u){o.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,o,u){(function(f){(function(h,A){if(!h.setImmediate){var p,g,y,_,b=1,C={},T=!1,B=h.document,L=Object.getPrototypeOf&&Object.getPrototypeOf(h);L=L&&L.setTimeout?L:h,p={}.toString.call(h.process)==="[object process]"?function(U){r.nextTick(function(){I(U)})}:function(){if(h.postMessage&&!h.importScripts){var U=!0,N=h.onmessage;return h.onmessage=function(){U=!1},h.postMessage("","*"),h.onmessage=N,U}}()?(_="setImmediate$"+Math.random()+"$",h.addEventListener?h.addEventListener("message",O,!1):h.attachEvent("onmessage",O),function(U){h.postMessage(_+U,"*")}):h.MessageChannel?((y=new MessageChannel).port1.onmessage=function(U){I(U.data)},function(U){y.port2.postMessage(U)}):B&&"onreadystatechange"in B.createElement("script")?(g=B.documentElement,function(U){var N=B.createElement("script");N.onreadystatechange=function(){I(U),N.onreadystatechange=null,g.removeChild(N),N=null},g.appendChild(N)}):function(U){setTimeout(I,0,U)},L.setImmediate=function(U){typeof U!="function"&&(U=new Function(""+U));for(var N=new Array(arguments.length-1),H=0;H<N.length;H++)N[H]=arguments[H+1];var z={callback:U,args:N};return C[b]=z,p(b),b++},L.clearImmediate=P}function P(U){delete C[U]}function I(U){if(T)setTimeout(I,0,U);else{var N=C[U];if(N){T=!0;try{(function(H){var z=H.callback,G=H.args;switch(G.length){case 0:z();break;case 1:z(G[0]);break;case 2:z(G[0],G[1]);break;case 3:z(G[0],G[1],G[2]);break;default:z.apply(A,G)}})(N)}finally{P(U),T=!1}}}}function O(U){U.source===h&&typeof U.data=="string"&&U.data.indexOf(_)===0&&I(+U.data.slice(_.length))}})(typeof self>"u"?f===void 0?this:f:self)}).call(this,typeof Gf<"u"?Gf:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(y9)),y9.exports}var iwt=nwt();const gQt=Dn(iwt);var qA=Uint8Array,xh=Uint16Array,KX=Int32Array,YX=new qA([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),XX=new qA([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),m0e=new qA([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),D5e=function(t,e){for(var r=new xh(31),n=0;n<31;++n)r[n]=e+=1<<t[n-1];for(var o=new KX(r[30]),n=1;n<30;++n)for(var u=r[n];u<r[n+1];++u)o[u]=u-r[n]<<5|n;return{b:r,r:o}},R5e=D5e(YX,2),awt=R5e.b,_$=R5e.r;awt[28]=258,_$[258]=28;var owt=D5e(XX,0),y0e=owt.r,S$=new xh(32768);for(var os=0;os<32768;++os){var Em=(os&43690)>>1|(os&21845)<<1;Em=(Em&52428)>>2|(Em&13107)<<2,Em=(Em&61680)>>4|(Em&3855)<<4,S$[os]=((Em&65280)>>8|(Em&255)<<8)>>1}var OE=function(t,e,r){for(var n=t.length,o=0,u=new xh(e);o<n;++o)t[o]&&++u[t[o]-1];var f=new xh(e);for(o=1;o<e;++o)f[o]=f[o-1]+u[o-1]<<1;var h;if(r){h=new xh(1<<e);var A=15-e;for(o=0;o<n;++o)if(t[o])for(var p=o<<4|t[o],g=e-t[o],y=f[t[o]-1]++<<g,_=y|(1<<g)-1;y<=_;++y)h[S$[y]>>A]=p}else for(h=new xh(n),o=0;o<n;++o)t[o]&&(h[o]=S$[f[t[o]-1]++]>>15-t[o]);return h},rw=new qA(288);for(var os=0;os<144;++os)rw[os]=8;for(var os=144;os<256;++os)rw[os]=9;for(var os=256;os<280;++os)rw[os]=7;for(var os=280;os<288;++os)rw[os]=8;var bP=new qA(32);for(var os=0;os<32;++os)bP[os]=5;var swt=OE(rw,9,0),lwt=OE(bP,5,0),P5e=function(t){return(t+7)/8|0},uwt=function(t,e,r){return(r==null||r>t.length)&&(r=t.length),new qA(t.subarray(e,r))},Yp=function(t,e,r){r<<=e&7;var n=e/8|0;t[n]|=r,t[n+1]|=r>>8},vT=function(t,e,r){r<<=e&7;var n=e/8|0;t[n]|=r,t[n+1]|=r>>8,t[n+2]|=r>>16},w9=function(t,e){for(var r=[],n=0;n<t.length;++n)t[n]&&r.push({s:n,f:t[n]});var o=r.length,u=r.slice();if(!o)return{t:k5e,l:0};if(o==1){var f=new qA(r[0].s+1);return f[r[0].s]=1,{t:f,l:1}}r.sort(function(U,N){return U.f-N.f}),r.push({s:-1,f:25001});var h=r[0],A=r[1],p=0,g=1,y=2;for(r[0]={s:-1,f:h.f+A.f,l:h,r:A};g!=o-1;)h=r[r[p].f<r[y].f?p++:y++],A=r[p!=g&&r[p].f<r[y].f?p++:y++],r[g++]={s:-1,f:h.f+A.f,l:h,r:A};for(var _=u[0].s,n=1;n<o;++n)u[n].s>_&&(_=u[n].s);var b=new xh(_+1),C=x$(r[g-1],b,0);if(C>e){var n=0,T=0,B=C-e,L=1<<B;for(u.sort(function(N,H){return b[H.s]-b[N.s]||N.f-H.f});n<o;++n){var P=u[n].s;if(b[P]>e)T+=L-(1<<C-b[P]),b[P]=e;else break}for(T>>=B;T>0;){var I=u[n].s;b[I]<e?T-=1<<e-b[I]++-1:++n}for(;n>=0&&T;--n){var O=u[n].s;b[O]==e&&(--b[O],++T)}C=e}return{t:new qA(b),l:C}},x$=function(t,e,r){return t.s==-1?Math.max(x$(t.l,e,r+1),x$(t.r,e,r+1)):e[t.s]=r},w0e=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new xh(++e),n=0,o=t[0],u=1,f=function(A){r[n++]=A},h=1;h<=e;++h)if(t[h]==o&&h!=e)++u;else{if(!o&&u>2){for(;u>138;u-=138)f(32754);u>2&&(f(u>10?u-11<<5|28690:u-3<<5|12305),u=0)}else if(u>3){for(f(o),--u;u>6;u-=6)f(8304);u>2&&(f(u-3<<5|8208),u=0)}for(;u--;)f(o);u=1,o=t[h]}return{c:r.subarray(0,n),n:e}},pT=function(t,e){for(var r=0,n=0;n<e.length;++n)r+=t[n]*e[n];return r},O5e=function(t,e,r){var n=r.length,o=P5e(e+2);t[o]=n&255,t[o+1]=n>>8,t[o+2]=t[o]^255,t[o+3]=t[o+1]^255;for(var u=0;u<n;++u)t[o+u+4]=r[u];return(o+4+n)*8},b0e=function(t,e,r,n,o,u,f,h,A,p,g){Yp(e,g++,r),++o[256];for(var y=w9(o,15),_=y.t,b=y.l,C=w9(u,15),T=C.t,B=C.l,L=w0e(_),P=L.c,I=L.n,O=w0e(T),U=O.c,N=O.n,H=new xh(19),z=0;z<P.length;++z)++H[P[z]&31];for(var z=0;z<U.length;++z)++H[U[z]&31];for(var G=w9(H,7),j=G.t,q=G.l,X=19;X>4&&!j[m0e[X-1]];--X);var Y=p+5<<3,te=pT(o,rw)+pT(u,bP)+f,K=pT(o,_)+pT(u,T)+f+14+3*X+pT(H,j)+2*H[16]+3*H[17]+7*H[18];if(A>=0&&Y<=te&&Y<=K)return O5e(e,g,t.subarray(A,A+p));var ce,ae,le,pe;if(Yp(e,g,1+(K<te)),g+=2,K<te){ce=OE(_,b,0),ae=_,le=OE(T,B,0),pe=T;var ie=OE(j,q,0);Yp(e,g,I-257),Yp(e,g+5,N-1),Yp(e,g+10,X-4),g+=14;for(var z=0;z<X;++z)Yp(e,g+3*z,j[m0e[z]]);g+=3*X;for(var he=[P,U],re=0;re<2;++re)for(var oe=he[re],z=0;z<oe.length;++z){var ye=oe[z]&31;Yp(e,g,ie[ye]),g+=j[ye],ye>15&&(Yp(e,g,oe[z]>>5&127),g+=oe[z]>>12)}}else ce=swt,ae=rw,le=lwt,pe=bP;for(var z=0;z<h;++z){var _e=n[z];if(_e>255){var ye=_e>>18&31;vT(e,g,ce[ye+257]),g+=ae[ye+257],ye>7&&(Yp(e,g,_e>>23&31),g+=YX[ye]);var Ce=_e&31;vT(e,g,le[Ce]),g+=pe[Ce],Ce>3&&(vT(e,g,_e>>5&8191),g+=XX[Ce])}else vT(e,g,ce[_e]),g+=ae[_e]}return vT(e,g,ce[256]),g+ae[256]},cwt=new KX([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),k5e=new qA(0),fwt=function(t,e,r,n,o,u){var f=u.z||t.length,h=new qA(n+f+5*(1+Math.ceil(f/7e3))+o),A=h.subarray(n,h.length-o),p=u.l,g=(u.r||0)&7;if(e){g&&(A[0]=u.r>>3);for(var y=cwt[e-1],_=y>>13,b=y&8191,C=(1<<r)-1,T=u.p||new xh(32768),B=u.h||new xh(C+1),L=Math.ceil(r/3),P=2*L,I=function(Ue){return(t[Ue]^t[Ue+1]<<L^t[Ue+2]<<P)&C},O=new KX(25e3),U=new xh(288),N=new xh(32),H=0,z=0,G=u.i||0,j=0,q=u.w||0,X=0;G+2<f;++G){var Y=I(G),te=G&32767,K=B[Y];if(T[te]=K,B[Y]=te,q<=G){var ce=f-G;if((H>7e3||j>24576)&&(ce>423||!p)){g=b0e(t,A,0,O,U,N,z,j,X,G-X,g),j=H=z=0,X=G;for(var ae=0;ae<286;++ae)U[ae]=0;for(var ae=0;ae<30;++ae)N[ae]=0}var le=2,pe=0,ie=b,he=te-K&32767;if(ce>2&&Y==I(G-he))for(var re=Math.min(_,ce)-1,oe=Math.min(32767,G),ye=Math.min(258,ce);he<=oe&&--ie&&te!=K;){if(t[G+le]==t[G+le-he]){for(var _e=0;_e<ye&&t[G+_e]==t[G+_e-he];++_e);if(_e>le){if(le=_e,pe=he,_e>re)break;for(var Ce=Math.min(he,_e-2),ne=0,ae=0;ae<Ce;++ae){var xe=G-he+ae&32767,De=T[xe],ze=xe-De&32767;ze>ne&&(ne=ze,K=xe)}}}te=K,K=T[te],he+=te-K&32767}if(pe){O[j++]=268435456|_$[le]<<18|y0e[pe];var Ye=_$[le]&31,Ne=y0e[pe]&31;z+=YX[Ye]+XX[Ne],++U[257+Ye],++N[Ne],q=G+le,++H}else O[j++]=t[G],++U[t[G]]}}for(G=Math.max(G,q);G<f;++G)O[j++]=t[G],++U[t[G]];g=b0e(t,A,p,O,U,N,z,j,X,G-X,g),p||(u.r=g&7|A[g/8|0]<<3,g-=7,u.h=B,u.p=T,u.i=G,u.w=q)}else{for(var G=u.w||0;G<f+p;G+=65535){var yt=G+65535;yt>=f&&(A[g/8|0]=p,yt=f),g=O5e(A,g+1,t.subarray(G,yt))}u.i=f}return uwt(h,0,n+P5e(g)+o)},F5e=function(){var t=1,e=0;return{p:function(r){for(var n=t,o=e,u=r.length|0,f=0;f!=u;){for(var h=Math.min(f+2655,u);f<h;++f)o+=n+=r[f];n=(n&65535)+15*(n>>16),o=(o&65535)+15*(o>>16)}t=n,e=o},d:function(){return t%=65521,e%=65521,(t&255)<<24|(t&65280)<<8|(e&255)<<8|e>>8}}},hwt=function(t,e,r,n,o){if(!o&&(o={l:1},e.dictionary)){var u=e.dictionary.subarray(-32768),f=new qA(u.length+t.length);f.set(u),f.set(t,u.length),t=f,o.w=u.length}return fwt(t,e.level==null?6:e.level,e.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+e.mem,r,n,o)},N5e=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},dwt=function(t,e){var r=e.level,n=r==0?0:r<6?1:r==9?3:2;if(t[0]=120,t[1]=n<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var o=F5e();o.p(e.dictionary),N5e(t,2,o.d())}};function C$(t,e){e||(e={});var r=F5e();r.p(t);var n=hwt(t,e,e.dictionary?6:2,4);return dwt(n,e),N5e(n,n.length-4,r.d()),n}var Awt=typeof TextDecoder<"u"&&new TextDecoder,vwt=0;try{Awt.decode(k5e,{stream:!0}),vwt=1}catch{}function _0e(t,e="utf8"){return new TextDecoder(e).decode(t)}const pwt=new TextEncoder;function gwt(t){return pwt.encode(t)}const mwt=1024*8,ywt=(()=>{const t=new Uint8Array(4),e=new Uint32Array(t.buffer);return!((e[0]=1)&t[0])})(),b9={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class ZX{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(e=mwt,r={}){let n=!1;typeof e=="number"?e=new ArrayBuffer(e):(n=!0,this.lastWrittenByte=e.byteLength);const o=r.offset?r.offset>>>0:0,u=e.byteLength-o;let f=o;(ArrayBuffer.isView(e)||e instanceof ZX)&&(e.byteLength!==e.buffer.byteLength&&(f=e.byteOffset+o),e=e.buffer),n?this.lastWrittenByte=u:this.lastWrittenByte=0,this.buffer=e,this.length=u,this.byteLength=u,this.byteOffset=f,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,f,u),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(e===void 0)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const n=(this.offset+e)*2,o=new Uint8Array(n);o.set(new Uint8Array(this.buffer)),this.buffer=o.buffer,this.length=n,this.byteLength=n,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,r){const n=b9[r].BYTES_PER_ELEMENT*e,o=this.byteOffset+this.offset,u=this.buffer.slice(o,o+n);if(this.littleEndian===ywt&&r!=="uint8"&&r!=="int8"){const h=new Uint8Array(this.buffer.slice(o,o+n));h.reverse();const A=new b9[r](h.buffer);return this.offset+=n,A.reverse(),A}const f=new b9[r](u);return this.offset+=n,f}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let r="";for(let n=0;n<e;n++)r+=this.readChar();return r}readUtf8(e=1){return _0e(this.readBytes(e))}decodeText(e=1,r="utf8"){return _0e(this.readBytes(e),r)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let r=0;r<e.length;r++)this._data.setUint8(this.offset++,e[r]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let r=0;r<e.length;r++)this.writeUint8(e.charCodeAt(r));return this}writeUtf8(e){return this.writeBytes(gwt(e))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */function ox(t){let e=t.length;for(;--e>=0;)t[e]=0}const wwt=3,bwt=258,U5e=29,_wt=256,Swt=_wt+1+U5e,H5e=30,xwt=512,Cwt=new Array((Swt+2)*2);ox(Cwt);const Twt=new Array(H5e*2);ox(Twt);const Ewt=new Array(xwt);ox(Ewt);const Bwt=new Array(bwt-wwt+1);ox(Bwt);const Iwt=new Array(U5e);ox(Iwt);const Lwt=new Array(H5e);ox(Lwt);const Mwt=(t,e,r,n)=>{let o=t&65535|0,u=t>>>16&65535|0,f=0;for(;r!==0;){f=r>2e3?2e3:r,r-=f;do o=o+e[n++]|0,u=u+o|0;while(--f);o%=65521,u%=65521}return o|u<<16|0};var T$=Mwt;const Dwt=()=>{let t,e=[];for(var r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=t&1?3988292384^t>>>1:t>>>1;e[r]=t}return e},Rwt=new Uint32Array(Dwt()),Pwt=(t,e,r,n)=>{const o=Rwt,u=n+r;t^=-1;for(let f=n;f<u;f++)t=t>>>8^o[(t^e[f])&255];return t^-1};var Rv=Pwt,E$={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Q5e={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const Owt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var kwt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const r=e.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)Owt(r,n)&&(t[n]=r[n])}}return t},Fwt=t=>{let e=0;for(let n=0,o=t.length;n<o;n++)e+=t[n].length;const r=new Uint8Array(e);for(let n=0,o=0,u=t.length;n<u;n++){let f=t[n];r.set(f,o),o+=f.length}return r},V5e={assign:kwt,flattenChunks:Fwt};let z5e=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{z5e=!1}const y2=new Uint8Array(256);for(let t=0;t<256;t++)y2[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;y2[254]=y2[254]=1;var Nwt=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,r,n,o,u,f=t.length,h=0;for(o=0;o<f;o++)r=t.charCodeAt(o),(r&64512)===55296&&o+1<f&&(n=t.charCodeAt(o+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),o++)),h+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(h),u=0,o=0;u<h;o++)r=t.charCodeAt(o),(r&64512)===55296&&o+1<f&&(n=t.charCodeAt(o+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),o++)),r<128?e[u++]=r:r<2048?(e[u++]=192|r>>>6,e[u++]=128|r&63):r<65536?(e[u++]=224|r>>>12,e[u++]=128|r>>>6&63,e[u++]=128|r&63):(e[u++]=240|r>>>18,e[u++]=128|r>>>12&63,e[u++]=128|r>>>6&63,e[u++]=128|r&63);return e};const Uwt=(t,e)=>{if(e<65534&&t.subarray&&z5e)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let r="";for(let n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r};var Hwt=(t,e)=>{const r=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let n,o;const u=new Array(r*2);for(o=0,n=0;n<r;){let f=t[n++];if(f<128){u[o++]=f;continue}let h=y2[f];if(h>4){u[o++]=65533,n+=h-1;continue}for(f&=h===2?31:h===3?15:7;h>1&&n<r;)f=f<<6|t[n++]&63,h--;if(h>1){u[o++]=65533;continue}f<65536?u[o++]=f:(f-=65536,u[o++]=55296|f>>10&1023,u[o++]=56320|f&1023)}return Uwt(u,o)},Qwt=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let r=e-1;for(;r>=0&&(t[r]&192)===128;)r--;return r<0||r===0?e:r+y2[t[r]]>e?r:e},B$={string2buf:Nwt,buf2string:Hwt,utf8border:Qwt};function Vwt(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var zwt=Vwt;const YM=16209,Gwt=16191;var jwt=function(e,r){let n,o,u,f,h,A,p,g,y,_,b,C,T,B,L,P,I,O,U,N,H,z,G,j;const q=e.state;n=e.next_in,G=e.input,o=n+(e.avail_in-5),u=e.next_out,j=e.output,f=u-(r-e.avail_out),h=u+(e.avail_out-257),A=q.dmax,p=q.wsize,g=q.whave,y=q.wnext,_=q.window,b=q.hold,C=q.bits,T=q.lencode,B=q.distcode,L=(1<<q.lenbits)-1,P=(1<<q.distbits)-1;e:do{C<15&&(b+=G[n++]<<C,C+=8,b+=G[n++]<<C,C+=8),I=T[b&L];t:for(;;){if(O=I>>>24,b>>>=O,C-=O,O=I>>>16&255,O===0)j[u++]=I&65535;else if(O&16){U=I&65535,O&=15,O&&(C<O&&(b+=G[n++]<<C,C+=8),U+=b&(1<<O)-1,b>>>=O,C-=O),C<15&&(b+=G[n++]<<C,C+=8,b+=G[n++]<<C,C+=8),I=B[b&P];r:for(;;){if(O=I>>>24,b>>>=O,C-=O,O=I>>>16&255,O&16){if(N=I&65535,O&=15,C<O&&(b+=G[n++]<<C,C+=8,C<O&&(b+=G[n++]<<C,C+=8)),N+=b&(1<<O)-1,N>A){e.msg="invalid distance too far back",q.mode=YM;break e}if(b>>>=O,C-=O,O=u-f,N>O){if(O=N-O,O>g&&q.sane){e.msg="invalid distance too far back",q.mode=YM;break e}if(H=0,z=_,y===0){if(H+=p-O,O<U){U-=O;do j[u++]=_[H++];while(--O);H=u-N,z=j}}else if(y<O){if(H+=p+y-O,O-=y,O<U){U-=O;do j[u++]=_[H++];while(--O);if(H=0,y<U){O=y,U-=O;do j[u++]=_[H++];while(--O);H=u-N,z=j}}}else if(H+=y-O,O<U){U-=O;do j[u++]=_[H++];while(--O);H=u-N,z=j}for(;U>2;)j[u++]=z[H++],j[u++]=z[H++],j[u++]=z[H++],U-=3;U&&(j[u++]=z[H++],U>1&&(j[u++]=z[H++]))}else{H=u-N;do j[u++]=j[H++],j[u++]=j[H++],j[u++]=j[H++],U-=3;while(U>2);U&&(j[u++]=j[H++],U>1&&(j[u++]=j[H++]))}}else if((O&64)===0){I=B[(I&65535)+(b&(1<<O)-1)];continue r}else{e.msg="invalid distance code",q.mode=YM;break e}break}}else if((O&64)===0){I=T[(I&65535)+(b&(1<<O)-1)];continue t}else if(O&32){q.mode=Gwt;break e}else{e.msg="invalid literal/length code",q.mode=YM;break e}break}}while(n<o&&u<h);U=C>>3,n-=U,C-=U<<3,b&=(1<<C)-1,e.next_in=n,e.next_out=u,e.avail_in=n<o?5+(o-n):5-(n-o),e.avail_out=u<h?257+(h-u):257-(u-h),q.hold=b,q.bits=C};const a_=15,S0e=852,x0e=592,C0e=0,_9=1,T0e=2,qwt=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Wwt=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),$wt=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Kwt=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Ywt=(t,e,r,n,o,u,f,h)=>{const A=h.bits;let p=0,g=0,y=0,_=0,b=0,C=0,T=0,B=0,L=0,P=0,I,O,U,N,H,z=null,G;const j=new Uint16Array(a_+1),q=new Uint16Array(a_+1);let X=null,Y,te,K;for(p=0;p<=a_;p++)j[p]=0;for(g=0;g<n;g++)j[e[r+g]]++;for(b=A,_=a_;_>=1&&j[_]===0;_--);if(b>_&&(b=_),_===0)return o[u++]=1<<24|64<<16|0,o[u++]=1<<24|64<<16|0,h.bits=1,0;for(y=1;y<_&&j[y]===0;y++);for(b<y&&(b=y),B=1,p=1;p<=a_;p++)if(B<<=1,B-=j[p],B<0)return-1;if(B>0&&(t===C0e||_!==1))return-1;for(q[1]=0,p=1;p<a_;p++)q[p+1]=q[p]+j[p];for(g=0;g<n;g++)e[r+g]!==0&&(f[q[e[r+g]]++]=g);if(t===C0e?(z=X=f,G=20):t===_9?(z=qwt,X=Wwt,G=257):(z=$wt,X=Kwt,G=0),P=0,g=0,p=y,H=u,C=b,T=0,U=-1,L=1<<b,N=L-1,t===_9&&L>S0e||t===T0e&&L>x0e)return 1;for(;;){Y=p-T,f[g]+1<G?(te=0,K=f[g]):f[g]>=G?(te=X[f[g]-G],K=z[f[g]-G]):(te=96,K=0),I=1<<p-T,O=1<<C,y=O;do O-=I,o[H+(P>>T)+O]=Y<<24|te<<16|K|0;while(O!==0);for(I=1<<p-1;P&I;)I>>=1;if(I!==0?(P&=I-1,P+=I):P=0,g++,--j[p]===0){if(p===_)break;p=e[r+f[g]]}if(p>b&&(P&N)!==U){for(T===0&&(T=b),H+=y,C=p-T,B=1<<C;C+T<_&&(B-=j[C+T],!(B<=0));)C++,B<<=1;if(L+=1<<C,t===_9&&L>S0e||t===T0e&&L>x0e)return 1;U=P&N,o[U]=b<<24|C<<16|H-u|0}}return P!==0&&(o[H+P]=p-T<<24|64<<16|0),h.bits=b,0};var kE=Ywt;const Xwt=0,G5e=1,j5e=2,{Z_FINISH:E0e,Z_BLOCK:Zwt,Z_TREES:XM,Z_OK:nw,Z_STREAM_END:Jwt,Z_NEED_DICT:ebt,Z_STREAM_ERROR:Qd,Z_DATA_ERROR:q5e,Z_MEM_ERROR:W5e,Z_BUF_ERROR:tbt,Z_DEFLATED:B0e}=Q5e,hk=16180,I0e=16181,L0e=16182,M0e=16183,D0e=16184,R0e=16185,P0e=16186,O0e=16187,k0e=16188,F0e=16189,_P=16190,Xp=16191,S9=16192,N0e=16193,x9=16194,U0e=16195,H0e=16196,Q0e=16197,V0e=16198,ZM=16199,JM=16200,z0e=16201,G0e=16202,j0e=16203,q0e=16204,W0e=16205,C9=16206,$0e=16207,K0e=16208,gs=16209,$5e=16210,K5e=16211,rbt=852,nbt=592,ibt=15,abt=ibt,Y0e=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function obt(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const mw=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<hk||e.mode>K5e?1:0},Y5e=t=>{if(mw(t))return Qd;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=hk,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(rbt),e.distcode=e.distdyn=new Int32Array(nbt),e.sane=1,e.back=-1,nw},X5e=t=>{if(mw(t))return Qd;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,Y5e(t)},Z5e=(t,e)=>{let r;if(mw(t))return Qd;const n=t.state;return e<0?(r=0,e=-e):(r=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Qd:(n.window!==null&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,X5e(t))},J5e=(t,e)=>{if(!t)return Qd;const r=new obt;t.state=r,r.strm=t,r.window=null,r.mode=hk;const n=Z5e(t,e);return n!==nw&&(t.state=null),n},sbt=t=>J5e(t,abt);let X0e=!0,T9,E9;const lbt=t=>{if(X0e){T9=new Int32Array(512),E9=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(kE(G5e,t.lens,0,288,T9,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;kE(j5e,t.lens,0,32,E9,0,t.work,{bits:5}),X0e=!1}t.lencode=T9,t.lenbits=9,t.distcode=E9,t.distbits=5},eRe=(t,e,r,n)=>{let o;const u=t.state;return u.window===null&&(u.wsize=1<<u.wbits,u.wnext=0,u.whave=0,u.window=new Uint8Array(u.wsize)),n>=u.wsize?(u.window.set(e.subarray(r-u.wsize,r),0),u.wnext=0,u.whave=u.wsize):(o=u.wsize-u.wnext,o>n&&(o=n),u.window.set(e.subarray(r-n,r-n+o),u.wnext),n-=o,n?(u.window.set(e.subarray(r-n,r),0),u.wnext=n,u.whave=u.wsize):(u.wnext+=o,u.wnext===u.wsize&&(u.wnext=0),u.whave<u.wsize&&(u.whave+=o))),0},ubt=(t,e)=>{let r,n,o,u,f,h,A,p,g,y,_,b,C,T,B=0,L,P,I,O,U,N,H,z;const G=new Uint8Array(4);let j,q;const X=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(mw(t)||!t.output||!t.input&&t.avail_in!==0)return Qd;r=t.state,r.mode===Xp&&(r.mode=S9),f=t.next_out,o=t.output,A=t.avail_out,u=t.next_in,n=t.input,h=t.avail_in,p=r.hold,g=r.bits,y=h,_=A,z=nw;e:for(;;)switch(r.mode){case hk:if(r.wrap===0){r.mode=S9;break}for(;g<16;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}if(r.wrap&2&&p===35615){r.wbits===0&&(r.wbits=15),r.check=0,G[0]=p&255,G[1]=p>>>8&255,r.check=Rv(r.check,G,2,0),p=0,g=0,r.mode=I0e;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((p&255)<<8)+(p>>8))%31){t.msg="incorrect header check",r.mode=gs;break}if((p&15)!==B0e){t.msg="unknown compression method",r.mode=gs;break}if(p>>>=4,g-=4,H=(p&15)+8,r.wbits===0&&(r.wbits=H),H>15||H>r.wbits){t.msg="invalid window size",r.mode=gs;break}r.dmax=1<<r.wbits,r.flags=0,t.adler=r.check=1,r.mode=p&512?F0e:Xp,p=0,g=0;break;case I0e:for(;g<16;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}if(r.flags=p,(r.flags&255)!==B0e){t.msg="unknown compression method",r.mode=gs;break}if(r.flags&57344){t.msg="unknown header flags set",r.mode=gs;break}r.head&&(r.head.text=p>>8&1),r.flags&512&&r.wrap&4&&(G[0]=p&255,G[1]=p>>>8&255,r.check=Rv(r.check,G,2,0)),p=0,g=0,r.mode=L0e;case L0e:for(;g<32;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}r.head&&(r.head.time=p),r.flags&512&&r.wrap&4&&(G[0]=p&255,G[1]=p>>>8&255,G[2]=p>>>16&255,G[3]=p>>>24&255,r.check=Rv(r.check,G,4,0)),p=0,g=0,r.mode=M0e;case M0e:for(;g<16;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}r.head&&(r.head.xflags=p&255,r.head.os=p>>8),r.flags&512&&r.wrap&4&&(G[0]=p&255,G[1]=p>>>8&255,r.check=Rv(r.check,G,2,0)),p=0,g=0,r.mode=D0e;case D0e:if(r.flags&1024){for(;g<16;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}r.length=p,r.head&&(r.head.extra_len=p),r.flags&512&&r.wrap&4&&(G[0]=p&255,G[1]=p>>>8&255,r.check=Rv(r.check,G,2,0)),p=0,g=0}else r.head&&(r.head.extra=null);r.mode=R0e;case R0e:if(r.flags&1024&&(b=r.length,b>h&&(b=h),b&&(r.head&&(H=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(u,u+b),H)),r.flags&512&&r.wrap&4&&(r.check=Rv(r.check,n,b,u)),h-=b,u+=b,r.length-=b),r.length))break e;r.length=0,r.mode=P0e;case P0e:if(r.flags&2048){if(h===0)break e;b=0;do H=n[u+b++],r.head&&H&&r.length<65536&&(r.head.name+=String.fromCharCode(H));while(H&&b<h);if(r.flags&512&&r.wrap&4&&(r.check=Rv(r.check,n,b,u)),h-=b,u+=b,H)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=O0e;case O0e:if(r.flags&4096){if(h===0)break e;b=0;do H=n[u+b++],r.head&&H&&r.length<65536&&(r.head.comment+=String.fromCharCode(H));while(H&&b<h);if(r.flags&512&&r.wrap&4&&(r.check=Rv(r.check,n,b,u)),h-=b,u+=b,H)break e}else r.head&&(r.head.comment=null);r.mode=k0e;case k0e:if(r.flags&512){for(;g<16;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}if(r.wrap&4&&p!==(r.check&65535)){t.msg="header crc mismatch",r.mode=gs;break}p=0,g=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Xp;break;case F0e:for(;g<32;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}t.adler=r.check=Y0e(p),p=0,g=0,r.mode=_P;case _P:if(r.havedict===0)return t.next_out=f,t.avail_out=A,t.next_in=u,t.avail_in=h,r.hold=p,r.bits=g,ebt;t.adler=r.check=1,r.mode=Xp;case Xp:if(e===Zwt||e===XM)break e;case S9:if(r.last){p>>>=g&7,g-=g&7,r.mode=C9;break}for(;g<3;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}switch(r.last=p&1,p>>>=1,g-=1,p&3){case 0:r.mode=N0e;break;case 1:if(lbt(r),r.mode=ZM,e===XM){p>>>=2,g-=2;break e}break;case 2:r.mode=H0e;break;case 3:t.msg="invalid block type",r.mode=gs}p>>>=2,g-=2;break;case N0e:for(p>>>=g&7,g-=g&7;g<32;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}if((p&65535)!==(p>>>16^65535)){t.msg="invalid stored block lengths",r.mode=gs;break}if(r.length=p&65535,p=0,g=0,r.mode=x9,e===XM)break e;case x9:r.mode=U0e;case U0e:if(b=r.length,b){if(b>h&&(b=h),b>A&&(b=A),b===0)break e;o.set(n.subarray(u,u+b),f),h-=b,u+=b,A-=b,f+=b,r.length-=b;break}r.mode=Xp;break;case H0e:for(;g<14;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}if(r.nlen=(p&31)+257,p>>>=5,g-=5,r.ndist=(p&31)+1,p>>>=5,g-=5,r.ncode=(p&15)+4,p>>>=4,g-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=gs;break}r.have=0,r.mode=Q0e;case Q0e:for(;r.have<r.ncode;){for(;g<3;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}r.lens[X[r.have++]]=p&7,p>>>=3,g-=3}for(;r.have<19;)r.lens[X[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,j={bits:r.lenbits},z=kE(Xwt,r.lens,0,19,r.lencode,0,r.work,j),r.lenbits=j.bits,z){t.msg="invalid code lengths set",r.mode=gs;break}r.have=0,r.mode=V0e;case V0e:for(;r.have<r.nlen+r.ndist;){for(;B=r.lencode[p&(1<<r.lenbits)-1],L=B>>>24,P=B>>>16&255,I=B&65535,!(L<=g);){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}if(I<16)p>>>=L,g-=L,r.lens[r.have++]=I;else{if(I===16){for(q=L+2;g<q;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}if(p>>>=L,g-=L,r.have===0){t.msg="invalid bit length repeat",r.mode=gs;break}H=r.lens[r.have-1],b=3+(p&3),p>>>=2,g-=2}else if(I===17){for(q=L+3;g<q;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}p>>>=L,g-=L,H=0,b=3+(p&7),p>>>=3,g-=3}else{for(q=L+7;g<q;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}p>>>=L,g-=L,H=0,b=11+(p&127),p>>>=7,g-=7}if(r.have+b>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=gs;break}for(;b--;)r.lens[r.have++]=H}}if(r.mode===gs)break;if(r.lens[256]===0){t.msg="invalid code -- missing end-of-block",r.mode=gs;break}if(r.lenbits=9,j={bits:r.lenbits},z=kE(G5e,r.lens,0,r.nlen,r.lencode,0,r.work,j),r.lenbits=j.bits,z){t.msg="invalid literal/lengths set",r.mode=gs;break}if(r.distbits=6,r.distcode=r.distdyn,j={bits:r.distbits},z=kE(j5e,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,j),r.distbits=j.bits,z){t.msg="invalid distances set",r.mode=gs;break}if(r.mode=ZM,e===XM)break e;case ZM:r.mode=JM;case JM:if(h>=6&&A>=258){t.next_out=f,t.avail_out=A,t.next_in=u,t.avail_in=h,r.hold=p,r.bits=g,jwt(t,_),f=t.next_out,o=t.output,A=t.avail_out,u=t.next_in,n=t.input,h=t.avail_in,p=r.hold,g=r.bits,r.mode===Xp&&(r.back=-1);break}for(r.back=0;B=r.lencode[p&(1<<r.lenbits)-1],L=B>>>24,P=B>>>16&255,I=B&65535,!(L<=g);){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}if(P&&(P&240)===0){for(O=L,U=P,N=I;B=r.lencode[N+((p&(1<<O+U)-1)>>O)],L=B>>>24,P=B>>>16&255,I=B&65535,!(O+L<=g);){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}p>>>=O,g-=O,r.back+=O}if(p>>>=L,g-=L,r.back+=L,r.length=I,P===0){r.mode=W0e;break}if(P&32){r.back=-1,r.mode=Xp;break}if(P&64){t.msg="invalid literal/length code",r.mode=gs;break}r.extra=P&15,r.mode=z0e;case z0e:if(r.extra){for(q=r.extra;g<q;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}r.length+=p&(1<<r.extra)-1,p>>>=r.extra,g-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=G0e;case G0e:for(;B=r.distcode[p&(1<<r.distbits)-1],L=B>>>24,P=B>>>16&255,I=B&65535,!(L<=g);){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}if((P&240)===0){for(O=L,U=P,N=I;B=r.distcode[N+((p&(1<<O+U)-1)>>O)],L=B>>>24,P=B>>>16&255,I=B&65535,!(O+L<=g);){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}p>>>=O,g-=O,r.back+=O}if(p>>>=L,g-=L,r.back+=L,P&64){t.msg="invalid distance code",r.mode=gs;break}r.offset=I,r.extra=P&15,r.mode=j0e;case j0e:if(r.extra){for(q=r.extra;g<q;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}r.offset+=p&(1<<r.extra)-1,p>>>=r.extra,g-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=gs;break}r.mode=q0e;case q0e:if(A===0)break e;if(b=_-A,r.offset>b){if(b=r.offset-b,b>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=gs;break}b>r.wnext?(b-=r.wnext,C=r.wsize-b):C=r.wnext-b,b>r.length&&(b=r.length),T=r.window}else T=o,C=f-r.offset,b=r.length;b>A&&(b=A),A-=b,r.length-=b;do o[f++]=T[C++];while(--b);r.length===0&&(r.mode=JM);break;case W0e:if(A===0)break e;o[f++]=r.length,A--,r.mode=JM;break;case C9:if(r.wrap){for(;g<32;){if(h===0)break e;h--,p|=n[u++]<<g,g+=8}if(_-=A,t.total_out+=_,r.total+=_,r.wrap&4&&_&&(t.adler=r.check=r.flags?Rv(r.check,o,_,f-_):T$(r.check,o,_,f-_)),_=A,r.wrap&4&&(r.flags?p:Y0e(p))!==r.check){t.msg="incorrect data check",r.mode=gs;break}p=0,g=0}r.mode=$0e;case $0e:if(r.wrap&&r.flags){for(;g<32;){if(h===0)break e;h--,p+=n[u++]<<g,g+=8}if(r.wrap&4&&p!==(r.total&4294967295)){t.msg="incorrect length check",r.mode=gs;break}p=0,g=0}r.mode=K0e;case K0e:z=Jwt;break e;case gs:z=q5e;break e;case $5e:return W5e;case K5e:default:return Qd}return t.next_out=f,t.avail_out=A,t.next_in=u,t.avail_in=h,r.hold=p,r.bits=g,(r.wsize||_!==t.avail_out&&r.mode<gs&&(r.mode<C9||e!==E0e))&&eRe(t,t.output,t.next_out,_-t.avail_out),y-=t.avail_in,_-=t.avail_out,t.total_in+=y,t.total_out+=_,r.total+=_,r.wrap&4&&_&&(t.adler=r.check=r.flags?Rv(r.check,o,_,t.next_out-_):T$(r.check,o,_,t.next_out-_)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Xp?128:0)+(r.mode===ZM||r.mode===x9?256:0),(y===0&&_===0||e===E0e)&&z===nw&&(z=tbt),z},cbt=t=>{if(mw(t))return Qd;let e=t.state;return e.window&&(e.window=null),t.state=null,nw},fbt=(t,e)=>{if(mw(t))return Qd;const r=t.state;return(r.wrap&2)===0?Qd:(r.head=e,e.done=!1,nw)},hbt=(t,e)=>{const r=e.length;let n,o,u;return mw(t)||(n=t.state,n.wrap!==0&&n.mode!==_P)?Qd:n.mode===_P&&(o=1,o=T$(o,e,r,0),o!==n.check)?q5e:(u=eRe(t,e,r,r),u?(n.mode=$5e,W5e):(n.havedict=1,nw))};var dbt=X5e,Abt=Z5e,vbt=Y5e,pbt=sbt,gbt=J5e,mbt=ubt,ybt=cbt,wbt=fbt,bbt=hbt,_bt="pako inflate (from Nodeca project)",sg={inflateReset:dbt,inflateReset2:Abt,inflateResetKeep:vbt,inflateInit:pbt,inflateInit2:gbt,inflate:mbt,inflateEnd:ybt,inflateGetHeader:wbt,inflateSetDictionary:bbt,inflateInfo:_bt};function Sbt(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var xbt=Sbt;const tRe=Object.prototype.toString,{Z_NO_FLUSH:Cbt,Z_FINISH:Tbt,Z_OK:w2,Z_STREAM_END:B9,Z_NEED_DICT:I9,Z_STREAM_ERROR:Ebt,Z_DATA_ERROR:Z0e,Z_MEM_ERROR:Bbt}=Q5e;function gB(t){this.options=V5e.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15)===0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new zwt,this.strm.avail_out=0;let r=sg.inflateInit2(this.strm,e.windowBits);if(r!==w2)throw new Error(E$[r]);if(this.header=new xbt,sg.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=B$.string2buf(e.dictionary):tRe.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=sg.inflateSetDictionary(this.strm,e.dictionary),r!==w2)))throw new Error(E$[r])}gB.prototype.push=function(t,e){const r=this.strm,n=this.options.chunkSize,o=this.options.dictionary;let u,f,h;if(this.ended)return!1;for(e===~~e?f=e:f=e===!0?Tbt:Cbt,tRe.call(t)==="[object ArrayBuffer]"?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),u=sg.inflate(r,f),u===I9&&o&&(u=sg.inflateSetDictionary(r,o),u===w2?u=sg.inflate(r,f):u===Z0e&&(u=I9));r.avail_in>0&&u===B9&&r.state.wrap>0&&t[r.next_in]!==0;)sg.inflateReset(r),u=sg.inflate(r,f);switch(u){case Ebt:case Z0e:case I9:case Bbt:return this.onEnd(u),this.ended=!0,!1}if(h=r.avail_out,r.next_out&&(r.avail_out===0||u===B9))if(this.options.to==="string"){let A=B$.utf8border(r.output,r.next_out),p=r.next_out-A,g=B$.buf2string(r.output,A);r.next_out=p,r.avail_out=n-p,p&&r.output.set(r.output.subarray(A,A+p),0),this.onData(g)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(u===w2&&h===0)){if(u===B9)return u=sg.inflateEnd(this.strm),this.onEnd(u),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};gB.prototype.onData=function(t){this.chunks.push(t)};gB.prototype.onEnd=function(t){t===w2&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=V5e.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Ibt(t,e){const r=new gB(e);if(r.push(t),r.err)throw r.msg||E$[r.err];return r.result}var Lbt=gB,Mbt=Ibt,Dbt={Inflate:Lbt,inflate:Mbt};const{Inflate:Rbt,inflate:Pbt}=Dbt;var J0e=Rbt,Obt=Pbt;const rRe=[];for(let t=0;t<256;t++){let e=t;for(let r=0;r<8;r++)e&1?e=3988292384^e>>>1:e=e>>>1;rRe[t]=e}const e1e=4294967295;function kbt(t,e,r){let n=t;for(let o=0;o<r;o++)n=rRe[(n^e[o])&255]^n>>>8;return n}function Fbt(t,e){return(kbt(e1e,t,e)^e1e)>>>0}function t1e(t,e,r){const n=t.readUint32(),o=Fbt(new Uint8Array(t.buffer,t.byteOffset+t.offset-e-4,e),e);if(o!==n)throw new Error(`CRC mismatch for chunk ${r}. Expected ${n}, found ${o}`)}function nRe(t,e,r){for(let n=0;n<r;n++)e[n]=t[n]}function iRe(t,e,r,n){let o=0;for(;o<n;o++)e[o]=t[o];for(;o<r;o++)e[o]=t[o]+e[o-n]&255}function aRe(t,e,r,n){let o=0;if(r.length===0)for(;o<n;o++)e[o]=t[o];else for(;o<n;o++)e[o]=t[o]+r[o]&255}function oRe(t,e,r,n,o){let u=0;if(r.length===0){for(;u<o;u++)e[u]=t[u];for(;u<n;u++)e[u]=t[u]+(e[u-o]>>1)&255}else{for(;u<o;u++)e[u]=t[u]+(r[u]>>1)&255;for(;u<n;u++)e[u]=t[u]+(e[u-o]+r[u]>>1)&255}}function sRe(t,e,r,n,o){let u=0;if(r.length===0){for(;u<o;u++)e[u]=t[u];for(;u<n;u++)e[u]=t[u]+e[u-o]&255}else{for(;u<o;u++)e[u]=t[u]+r[u]&255;for(;u<n;u++)e[u]=t[u]+Nbt(e[u-o],r[u],r[u-o])&255}}function Nbt(t,e,r){const n=t+e-r,o=Math.abs(n-t),u=Math.abs(n-e),f=Math.abs(n-r);return o<=u&&o<=f?t:u<=f?e:r}function Ubt(t,e,r,n,o,u){switch(t){case 0:nRe(e,r,o);break;case 1:iRe(e,r,o,u);break;case 2:aRe(e,r,n,o);break;case 3:oRe(e,r,n,o,u);break;case 4:sRe(e,r,n,o,u);break;default:throw new Error(`Unsupported filter: ${t}`)}}const Hbt=new Uint16Array([255]),Qbt=new Uint8Array(Hbt.buffer),Vbt=Qbt[0]===255;function zbt(t){const{data:e,width:r,height:n,channels:o,depth:u}=t,f=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],h=Math.ceil(u/8)*o,A=new Uint8Array(n*r*h);let p=0;for(let g=0;g<7;g++){const y=f[g],_=Math.ceil((r-y.x)/y.xStep),b=Math.ceil((n-y.y)/y.yStep);if(_<=0||b<=0)continue;const C=_*h,T=new Uint8Array(C);for(let B=0;B<b;B++){const L=e[p++],P=e.subarray(p,p+C);p+=C;const I=new Uint8Array(C);Ubt(L,P,I,T,C,h),T.set(I);for(let O=0;O<_;O++){const U=y.x+O*y.xStep,N=y.y+B*y.yStep;if(!(U>=r||N>=n))for(let H=0;H<h;H++)A[(N*r+U)*h+H]=I[O*h+H]}}}if(u===16){const g=new Uint16Array(A.buffer);if(Vbt)for(let y=0;y<g.length;y++)g[y]=Gbt(g[y]);return g}else return A}function Gbt(t){return(t&255)<<8|t>>8&255}const jbt=new Uint16Array([255]),qbt=new Uint8Array(jbt.buffer),Wbt=qbt[0]===255,$bt=new Uint8Array(0);function r1e(t){const{data:e,width:r,height:n,channels:o,depth:u}=t,f=Math.ceil(u/8)*o,h=Math.ceil(u/8*o*r),A=new Uint8Array(n*h);let p=$bt,g=0,y,_;for(let b=0;b<n;b++){switch(y=e.subarray(g+1,g+1+h),_=A.subarray(b*h,(b+1)*h),e[g]){case 0:nRe(y,_,h);break;case 1:iRe(y,_,h,f);break;case 2:aRe(y,_,p,h);break;case 3:oRe(y,_,p,h,f);break;case 4:sRe(y,_,p,h,f);break;default:throw new Error(`Unsupported filter: ${e[g]}`)}p=_,g+=h+1}if(u===16){const b=new Uint16Array(A.buffer);if(Wbt)for(let C=0;C<b.length;C++)b[C]=Kbt(b[C]);return b}else return A}function Kbt(t){return(t&255)<<8|t>>8&255}const H5=Uint8Array.of(137,80,78,71,13,10,26,10);function n1e(t){if(!Ybt(t.readBytes(H5.length)))throw new Error("wrong PNG signature")}function Ybt(t){if(t.length<H5.length)return!1;for(let e=0;e<H5.length;e++)if(t[e]!==H5[e])return!1;return!0}const Xbt="tEXt",Zbt=0,lRe=new TextDecoder("latin1");function Jbt(t){if(t_t(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}const e_t=/^[\u0000-\u00FF]*$/;function t_t(t){if(!e_t.test(t))throw new Error("invalid latin1 text")}function r_t(t,e,r){const n=uRe(e);t[n]=n_t(e,r-n.length-1)}function uRe(t){for(t.mark();t.readByte()!==Zbt;);const e=t.offset;t.reset();const r=lRe.decode(t.readBytes(e-t.offset-1));return t.skip(1),Jbt(r),r}function n_t(t,e){return lRe.decode(t.readBytes(e))}const wh={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},L9={UNKNOWN:-1,DEFLATE:0},i1e={UNKNOWN:-1,ADAPTIVE:0},M9={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},eD={NONE:0,BACKGROUND:1,PREVIOUS:2},D9={SOURCE:0,OVER:1};class i_t extends ZX{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(e,r={}){super(e);const{checkCrc:n=!1}=r;this._checkCrc=n,this._inflator=new J0e,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=L9.UNKNOWN,this._filterMethod=i1e.UNKNOWN,this._interlaceMethod=M9.UNKNOWN,this._colorType=wh.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(n1e(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeChunk(e,r)}return this.decodeImage(),this._png}decodeApng(){for(n1e(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(e,r)}return this.decodeApngImage(),this._apng}decodeChunk(e,r){const n=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case Xbt:r_t(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e);break}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?t1e(this,e+4,r):this.skip(4)}decodeApngChunk(e,r){const n=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,r),this.offset=n+e;break}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?t1e(this,e+4,r):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=a_t(this.readUint8());const r=this.readUint8();this._colorType=r;let n;switch(r){case wh.GREYSCALE:n=1;break;case wh.TRUECOLOUR:n=3;break;case wh.INDEXED_COLOUR:n=1;break;case wh.GREYSCALE_ALPHA:n=2;break;case wh.TRUECOLOUR_ALPHA:n=4;break;case wh.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==L9.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const r=e/3;this._hasPalette=!0;const n=[];this._palette=n;for(let o=0;o<r;o++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const r=e,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let r=e,n=this.offset+this.byteOffset;if(n+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case wh.GREYSCALE:case wh.TRUECOLOUR:{if(e%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let r=0;r<e/2;r++)this._transparency[r]=this.readUint16();break}case wh.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let r=0;for(;r<e;r++){const n=this.readByte();this._palette[r].push(n)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case wh.UNKNOWN:case wh.GREYSCALE_ALPHA:case wh.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const r=uRe(this),n=this.readUint8();if(n!==L9.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${n}`);const o=this.readBytes(e-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:Obt(o)}}decodepHYs(){const e=this.readUint32(),r=this.readUint32(),n=this.readByte();this._png.resolution={x:e,y:r,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){const r={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(e);if(n){if(n.data=r1e({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||n.xOffset===0&&n.yOffset===0&&n.width===this._png.width&&n.height===this._png.height)r.data=n.data;else{const o=this._apng.frames.at(e-1);this.disposeFrame(n,o,r),this.addFrameDataToCanvas(r,n)}this._apng.frames.push(r)}}return this._apng}disposeFrame(e,r,n){switch(e.disposeOp){case eD.NONE:break;case eD.BACKGROUND:for(let o=0;o<this._png.height;o++)for(let u=0;u<this._png.width;u++){const f=(o*e.width+u)*this._png.channels;for(let h=0;h<this._png.channels;h++)n.data[f+h]=0}break;case eD.PREVIOUS:n.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,r){const n=1<<this._png.depth,o=(u,f)=>{const h=((u+r.yOffset)*this._png.width+r.xOffset+f)*this._png.channels,A=(u*r.width+f)*this._png.channels;return{index:h,frameIndex:A}};switch(r.blendOp){case D9.SOURCE:for(let u=0;u<r.height;u++)for(let f=0;f<r.width;f++){const{index:h,frameIndex:A}=o(u,f);for(let p=0;p<this._png.channels;p++)e.data[h+p]=r.data[A+p]}break;case D9.OVER:for(let u=0;u<r.height;u++)for(let f=0;f<r.width;f++){const{index:h,frameIndex:A}=o(u,f);for(let p=0;p<this._png.channels;p++){const g=r.data[A+this._png.channels-1]/n,y=p%(this._png.channels-1)===0?1:r.data[A+p],_=Math.floor(g*y+(1-g)*e.data[h+p]);e.data[h+p]+=_}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const e=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==i1e.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===M9.NO_INTERLACE)this._png.data=r1e({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===M9.ADAM7)this._png.data=zbt({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const e=this._inflator.result,r=this._frames.at(-1);r?r.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:eD.NONE,blendOp:D9.SOURCE,data:e}),this._inflator=new J0e,this._writingDataChunks=!1}}function a_t(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var a1e;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(a1e||(a1e={}));function o_t(t,e){return new i_t(t,e).decode()}var Ci=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function R9(){Ci.console&&typeof Ci.console.log=="function"&&Ci.console.log.apply(Ci.console,arguments)}var Po={log:R9,warn:function(t){Ci.console&&(typeof Ci.console.warn=="function"?Ci.console.warn.apply(Ci.console,arguments):R9.call(null,arguments))},error:function(t){Ci.console&&(typeof Ci.console.error=="function"?Ci.console.error.apply(Ci.console,arguments):R9(t))}};function P9(t,e,r){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){m1(n.response,e,r)},n.onerror=function(){Po.error("could not download file")},n.send()}function o1e(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function tD(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var m1=Ci.saveAs||((typeof window>"u"?"undefined":Ea(window))!=="object"||window!==Ci?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,e,r){var n=Ci.URL||Ci.webkitURL,o=document.createElement("a");e=e||t.name||"download",o.download=e,o.rel="noopener",typeof t=="string"?(o.href=t,o.origin!==location.origin?o1e(o.href)?P9(t,e,r):tD(o,o.target="_blank"):tD(o)):(o.href=n.createObjectURL(t),setTimeout(function(){n.revokeObjectURL(o.href)},4e4),setTimeout(function(){tD(o)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,r){if(e=e||t.name||"download",typeof t=="string")if(o1e(t))P9(t,e,r);else{var n=document.createElement("a");n.href=t,n.target="_blank",setTimeout(function(){tD(n)})}else navigator.msSaveOrOpenBlob(function(o,u){return u===void 0?u={autoBom:!1}:Ea(u)!=="object"&&(Po.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}(t,r),e)}:function(t,e,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof t=="string")return P9(t,e,r);var o=t.type==="application/octet-stream",u=/constructor/i.test(Ci.HTMLElement)||Ci.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||o&&u)&&(typeof FileReader>"u"?"undefined":Ea(FileReader))==="object"){var h=new FileReader;h.onloadend=function(){var g=h.result;g=f?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=g:location=g,n=null},h.readAsDataURL(t)}else{var A=Ci.URL||Ci.webkitURL,p=A.createObjectURL(t);n?n.location=p:location.href=p,n=null,setTimeout(function(){A.revokeObjectURL(p)},4e4)}});/**
* A class to parse color values
* @author Stoyan Stefanov <[email protected]>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
*/function cRe(t){var e;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],n=0;n<r.length;n++){var o=r[n].re,u=r[n].process,f=o.exec(t);f&&(e=u(f),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var h=this.r.toString(16),A=this.g.toString(16),p=this.b.toString(16);return h.length==1&&(h="0"+h),A.length==1&&(A="0"+A),p.length==1&&(p="0"+p),"#"+h+A+p}}var Q5=Ci.atob.bind(Ci),s1e=Ci.btoa.bind(Ci);/**
* @license
* Joseph Myers does not specify a particular license for his work.
*
* Author: Joseph Myers
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
*
* Modified by: Owen Leong
*/function O9(t,e){var r=t[0],n=t[1],o=t[2],u=t[3];r=wc(r,n,o,u,e[0],7,-680876936),u=wc(u,r,n,o,e[1],12,-389564586),o=wc(o,u,r,n,e[2],17,606105819),n=wc(n,o,u,r,e[3],22,-1044525330),r=wc(r,n,o,u,e[4],7,-176418897),u=wc(u,r,n,o,e[5],12,1200080426),o=wc(o,u,r,n,e[6],17,-1473231341),n=wc(n,o,u,r,e[7],22,-45705983),r=wc(r,n,o,u,e[8],7,1770035416),u=wc(u,r,n,o,e[9],12,-1958414417),o=wc(o,u,r,n,e[10],17,-42063),n=wc(n,o,u,r,e[11],22,-1990404162),r=wc(r,n,o,u,e[12],7,1804603682),u=wc(u,r,n,o,e[13],12,-40341101),o=wc(o,u,r,n,e[14],17,-1502002290),r=bc(r,n=wc(n,o,u,r,e[15],22,1236535329),o,u,e[1],5,-165796510),u=bc(u,r,n,o,e[6],9,-1069501632),o=bc(o,u,r,n,e[11],14,643717713),n=bc(n,o,u,r,e[0],20,-373897302),r=bc(r,n,o,u,e[5],5,-701558691),u=bc(u,r,n,o,e[10],9,38016083),o=bc(o,u,r,n,e[15],14,-660478335),n=bc(n,o,u,r,e[4],20,-405537848),r=bc(r,n,o,u,e[9],5,568446438),u=bc(u,r,n,o,e[14],9,-1019803690),o=bc(o,u,r,n,e[3],14,-187363961),n=bc(n,o,u,r,e[8],20,1163531501),r=bc(r,n,o,u,e[13],5,-1444681467),u=bc(u,r,n,o,e[2],9,-51403784),o=bc(o,u,r,n,e[7],14,1735328473),r=_c(r,n=bc(n,o,u,r,e[12],20,-1926607734),o,u,e[5],4,-378558),u=_c(u,r,n,o,e[8],11,-2022574463),o=_c(o,u,r,n,e[11],16,1839030562),n=_c(n,o,u,r,e[14],23,-35309556),r=_c(r,n,o,u,e[1],4,-1530992060),u=_c(u,r,n,o,e[4],11,1272893353),o=_c(o,u,r,n,e[7],16,-155497632),n=_c(n,o,u,r,e[10],23,-1094730640),r=_c(r,n,o,u,e[13],4,681279174),u=_c(u,r,n,o,e[0],11,-358537222),o=_c(o,u,r,n,e[3],16,-722521979),n=_c(n,o,u,r,e[6],23,76029189),r=_c(r,n,o,u,e[9],4,-640364487),u=_c(u,r,n,o,e[12],11,-421815835),o=_c(o,u,r,n,e[15],16,530742520),r=Sc(r,n=_c(n,o,u,r,e[2],23,-995338651),o,u,e[0],6,-198630844),u=Sc(u,r,n,o,e[7],10,1126891415),o=Sc(o,u,r,n,e[14],15,-1416354905),n=Sc(n,o,u,r,e[5],21,-57434055),r=Sc(r,n,o,u,e[12],6,1700485571),u=Sc(u,r,n,o,e[3],10,-1894986606),o=Sc(o,u,r,n,e[10],15,-1051523),n=Sc(n,o,u,r,e[1],21,-2054922799),r=Sc(r,n,o,u,e[8],6,1873313359),u=Sc(u,r,n,o,e[15],10,-30611744),o=Sc(o,u,r,n,e[6],15,-1560198380),n=Sc(n,o,u,r,e[13],21,1309151649),r=Sc(r,n,o,u,e[4],6,-145523070),u=Sc(u,r,n,o,e[11],10,-1120210379),o=Sc(o,u,r,n,e[2],15,718787259),n=Sc(n,o,u,r,e[9],21,-343485551),t[0]=Jm(r,t[0]),t[1]=Jm(n,t[1]),t[2]=Jm(o,t[2]),t[3]=Jm(u,t[3])}function dk(t,e,r,n,o,u){return e=Jm(Jm(e,t),Jm(n,u)),Jm(e<<o|e>>>32-o,r)}function wc(t,e,r,n,o,u,f){return dk(e&r|~e&n,t,e,o,u,f)}function bc(t,e,r,n,o,u,f){return dk(e&n|r&~n,t,e,o,u,f)}function _c(t,e,r,n,o,u,f){return dk(e^r^n,t,e,o,u,f)}function Sc(t,e,r,n,o,u,f){return dk(r^(e|~n),t,e,o,u,f)}function fRe(t){var e,r=t.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)O9(n,s_t(t.substring(e-64,e)));t=t.substring(e-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(O9(n,o),e=0;e<16;e++)o[e]=0;return o[14]=8*r,O9(n,o),n}function s_t(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}var l1e="0123456789abcdef".split("");function l_t(t){for(var e="",r=0;r<4;r++)e+=l1e[t>>8*r+4&15]+l1e[t>>8*r&15];return e}function u_t(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function I$(t){return fRe(t).map(u_t).join("")}var c_t=function(t){for(var e=0;e<t.length;e++)t[e]=l_t(t[e]);return t.join("")}(fRe("hello"))!="5d41402abc4b2a76b9719d911017c592";function Jm(t,e){if(c_t){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e&4294967295}/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function L$(t,e){var r,n,o,u;if(t!==r){for(var f=(o=t,u=1+(256/t.length|0),new Array(u+1).join(o)),h=[],A=0;A<256;A++)h[A]=A;var p=0;for(A=0;A<256;A++){var g=h[A];p=(p+g+f.charCodeAt(A))%256,h[A]=h[p],h[p]=g}r=t,n=h}else h=n;var y=e.length,_=0,b=0,C="";for(A=0;A<y;A++)b=(b+(g=h[_=(_+1)%256]))%256,h[_]=h[b],h[b]=g,f=h[(h[_]+h[b])%256],C+=String.fromCharCode(e.charCodeAt(A)^f);return C}/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/var u1e={print:4,modify:8,copy:16,"annot-forms":32};function P_(t,e,r,n){this.v=1,this.r=2;var o=192;t.forEach(function(h){if(u1e.perm!==void 0)throw new Error("Invalid permission: "+h);o+=u1e[h]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var u=(e+this.padding).substr(0,32),f=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(u,f),this.P=-(1+(255^o)),this.encryptionKey=I$(u+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=L$(this.encryptionKey,this.padding)}function O_(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n<r;n++){var o=t.charCodeAt(n);e+=o<33||o===35||o===37||o===40||o===41||o===47||o===60||o===62||o===91||o===93||o===123||o===125||o>126?"#"+("0"+o.toString(16)).slice(-2):t[n]}return e}function c1e(t){if(Ea(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(r,n,o){if(o=o||!1,typeof r!="string"||typeof n!="function"||typeof o!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(r)||(e[r]={});var u=Math.random().toString(35);return e[r][u]=[n,!!o],u},this.unsubscribe=function(r){for(var n in e)if(e[n][r])return delete e[n][r],Object.keys(e[n]).length===0&&delete e[n],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),o=[];for(var u in e[r]){var f=e[r][u];try{f[0].apply(t,n)}catch(h){Ci.console&&Po.error("jsPDF PubSub Error",h.message,h)}f[1]&&o.push(u)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function SP(t){if(!(this instanceof SP))return new SP(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function hRe(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function S1(t,e,r,n,o){if(!(this instanceof S1))return new S1(t,e,r,n,o);this.type=t==="axial"?2:3,this.coords=e,this.colors=r,hRe.call(this,n,o)}function j_(t,e,r,n,o){if(!(this instanceof j_))return new j_(t,e,r,n,o);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,hRe.call(this,n,o)}function zn(t){var e,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],o=arguments[2],u=arguments[3],f=[],h=1,A=16,p="S",g=null;Ea(t=t||{})==="object"&&(r=t.orientation,n=t.unit||n,o=t.format||o,u=t.compress||t.compressPdf||u,(g=t.encryption||null)!==null&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),h=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(e=t.precision),t.floatPrecision!==void 0&&(A=t.floatPrecision),p=t.defaultPathOperation||"S"),f=t.filters||(u===!0?["FlateEncode"]:f),n=n||"mm",r=(""+(r||"P")).toLowerCase();var y=t.putOnlyUsedFonts||!1,_={},b={internal:{},__private__:{}};b.__private__.PubSub=c1e;var C="1.3",T=b.__private__.getPdfVersion=function(){return C};b.__private__.setPdfVersion=function(me){C=me};var B={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};b.__private__.getPageFormats=function(){return B};var L=b.__private__.getPageFormat=function(me){return B[me]};o=o||"a4";var P="compat",I="advanced",O=P;function U(){this.saveGraphicsState(),ue(new Tt(It,0,0,-It,0,Lo()*It).toString()+" cm"),this.setFontSize(this.getFontSize()/It),p="n",O=I}function N(){this.restoreGraphicsState(),p="S",O=P}var H=b.__private__.combineFontStyleAndFontWeight=function(me,Ve){if(me=="bold"&&Ve=="normal"||me=="bold"&&Ve==400||me=="normal"&&Ve=="italic"||me=="bold"&&Ve=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Ve&&(me=Ve==400||Ve==="normal"?me==="italic"?"italic":"normal":Ve!=700&&Ve!=="bold"||me!=="normal"?(Ve==700?"bold":Ve)+""+me:"bold"),me};b.advancedAPI=function(me){var Ve=O===P;return Ve&&U.call(this),typeof me!="function"||(me(this),Ve&&N.call(this)),this},b.compatAPI=function(me){var Ve=O===I;return Ve&&N.call(this),typeof me!="function"||(me(this),Ve&&U.call(this)),this},b.isAdvancedAPI=function(){return O===I};var z,G=function(me){if(O!==I)throw new Error(me+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},j=b.roundToPrecision=b.__private__.roundToPrecision=function(me,Ve){var lt=e||Ve;if(isNaN(me)||isNaN(lt))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return me.toFixed(lt).replace(/0+$/,"")};z=b.hpf=b.__private__.hpf=typeof A=="number"?function(me){if(isNaN(me))throw new Error("Invalid argument passed to jsPDF.hpf");return j(me,A)}:A==="smart"?function(me){if(isNaN(me))throw new Error("Invalid argument passed to jsPDF.hpf");return j(me,me>-1&&me<1?16:5)}:function(me){if(isNaN(me))throw new Error("Invalid argument passed to jsPDF.hpf");return j(me,16)};var q=b.f2=b.__private__.f2=function(me){if(isNaN(me))throw new Error("Invalid argument passed to jsPDF.f2");return j(me,2)},X=b.__private__.f3=function(me){if(isNaN(me))throw new Error("Invalid argument passed to jsPDF.f3");return j(me,3)},Y=b.scale=b.__private__.scale=function(me){if(isNaN(me))throw new Error("Invalid argument passed to jsPDF.scale");return O===P?me*It:O===I?me:void 0},te=function(me){return Y(function(Ve){return O===P?Lo()-Ve:O===I?Ve:void 0}(me))};b.__private__.setPrecision=b.setPrecision=function(me){typeof parseInt(me,10)=="number"&&(e=parseInt(me,10))};var K,ce="00000000000000000000000000000000",ae=b.__private__.getFileId=function(){return ce},le=b.__private__.setFileId=function(me){return ce=me!==void 0&&/^[a-fA-F0-9]{32}$/.test(me)?me.toUpperCase():ce.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),g!==null&&(mo=new P_(g.userPermissions,g.userPassword,g.ownerPassword,ce)),ce};b.setFileId=function(me){return le(me),this},b.getFileId=function(){return ae()};var pe=b.__private__.convertDateToPDFDate=function(me){var Ve=me.getTimezoneOffset(),lt=Ve<0?"+":"-",St=Math.floor(Math.abs(Ve/60)),Qt=Math.abs(Ve%60),Zt=[lt,ye(St),"'",ye(Qt),"'"].join("");return["D:",me.getFullYear(),ye(me.getMonth()+1),ye(me.getDate()),ye(me.getHours()),ye(me.getMinutes()),ye(me.getSeconds()),Zt].join("")},ie=b.__private__.convertPDFDateToDate=function(me){var Ve=parseInt(me.substr(2,4),10),lt=parseInt(me.substr(6,2),10)-1,St=parseInt(me.substr(8,2),10),Qt=parseInt(me.substr(10,2),10),Zt=parseInt(me.substr(12,2),10),hr=parseInt(me.substr(14,2),10);return new Date(Ve,lt,St,Qt,Zt,hr,0)},he=b.__private__.setCreationDate=function(me){var Ve;if(me===void 0&&(me=new Date),me instanceof Date)Ve=pe(me);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(me))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Ve=me}return K=Ve},re=b.__private__.getCreationDate=function(me){var Ve=K;return me==="jsDate"&&(Ve=ie(K)),Ve};b.setCreationDate=function(me){return he(me),this},b.getCreationDate=function(me){return re(me)};var oe,ye=b.__private__.padd2=function(me){return("0"+parseInt(me)).slice(-2)},_e=b.__private__.padd2Hex=function(me){return("00"+(me=me.toString())).substr(me.length)},Ce=0,ne=[],xe=[],De=0,ze=[],Ye=[],Ne=!1,yt=xe;b.__private__.setCustomOutputDestination=function(me){Ne=!0,yt=me};var Ue=function(me){Ne||(yt=me)};b.__private__.resetCustomOutputDestination=function(){Ne=!1,yt=xe};var ue=b.__private__.out=function(me){return me=me.toString(),De+=me.length+1,yt.push(me),yt},Qe=b.__private__.write=function(me){return ue(arguments.length===1?me.toString():Array.prototype.join.call(arguments," "))},qe=b.__private__.getArrayBuffer=function(me){for(var Ve=me.length,lt=new ArrayBuffer(Ve),St=new Uint8Array(lt);Ve--;)St[Ve]=me.charCodeAt(Ve);return lt},Re=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];b.__private__.getStandardFonts=function(){return Re};var Me=t.fontSize||16;b.__private__.setFontSize=b.setFontSize=function(me){return Me=O===I?me/It:me,this};var Ge,Pe=b.__private__.getFontSize=b.getFontSize=function(){return O===P?Me:Me*It},ke=t.R2L||!1;b.__private__.setR2L=b.setR2L=function(me){return ke=me,this},b.__private__.getR2L=b.getR2L=function(){return ke};var Be,$e=b.__private__.setZoomMode=function(me){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(me))Ge=me;else if(isNaN(me)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(me)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+me+'" is not recognized.');Ge=me}else Ge=parseInt(me,10)};b.__private__.getZoomMode=function(){return Ge};var nt,ft=b.__private__.setPageMode=function(me){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(me)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+me+'" is not recognized.');Be=me};b.__private__.getPageMode=function(){return Be};var Mt=b.__private__.setLayoutMode=function(me){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(me)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+me+'" is not recognized.');nt=me};b.__private__.getLayoutMode=function(){return nt},b.__private__.setDisplayMode=b.setDisplayMode=function(me,Ve,lt){return $e(me),Mt(Ve),ft(lt),this};var Rt={title:"",subject:"",author:"",keywords:"",creator:""};b.__private__.getDocumentProperty=function(me){if(Object.keys(Rt).indexOf(me)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Rt[me]},b.__private__.getDocumentProperties=function(){return Rt},b.__private__.setDocumentProperties=b.setProperties=b.setDocumentProperties=function(me){for(var Ve in Rt)Rt.hasOwnProperty(Ve)&&me[Ve]&&(Rt[Ve]=me[Ve]);return this},b.__private__.setDocumentProperty=function(me,Ve){if(Object.keys(Rt).indexOf(me)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Rt[me]=Ve};var Bt,It,qt,fr,lr,_t={},br={},on=[],Br={},rn={},Yr={},cn={},Vn=null,Nr=0,Ht=[],zr=new c1e(b),kn=t.hotfixes||[],vt={},At={},Ct=[],Tt=function me(Ve,lt,St,Qt,Zt,hr){if(!(this instanceof me))return new me(Ve,lt,St,Qt,Zt,hr);isNaN(Ve)&&(Ve=1),isNaN(lt)&&(lt=0),isNaN(St)&&(St=0),isNaN(Qt)&&(Qt=1),isNaN(Zt)&&(Zt=0),isNaN(hr)&&(hr=0),this._matrix=[Ve,lt,St,Qt,Zt,hr]};Object.defineProperty(Tt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(me){this._matrix[0]=me}}),Object.defineProperty(Tt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(me){this._matrix[1]=me}}),Object.defineProperty(Tt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(me){this._matrix[2]=me}}),Object.defineProperty(Tt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(me){this._matrix[3]=me}}),Object.defineProperty(Tt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(me){this._matrix[4]=me}}),Object.defineProperty(Tt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(me){this._matrix[5]=me}}),Object.defineProperty(Tt.prototype,"a",{get:function(){return this._matrix[0]},set:function(me){this._matrix[0]=me}}),Object.defineProperty(Tt.prototype,"b",{get:function(){return this._matrix[1]},set:function(me){this._matrix[1]=me}}),Object.defineProperty(Tt.prototype,"c",{get:function(){return this._matrix[2]},set:function(me){this._matrix[2]=me}}),Object.defineProperty(Tt.prototype,"d",{get:function(){return this._matrix[3]},set:function(me){this._matrix[3]=me}}),Object.defineProperty(Tt.prototype,"e",{get:function(){return this._matrix[4]},set:function(me){this._matrix[4]=me}}),Object.defineProperty(Tt.prototype,"f",{get:function(){return this._matrix[5]},set:function(me){this._matrix[5]=me}}),Object.defineProperty(Tt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Tt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Tt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Tt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Tt.prototype.join=function(me){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(z).join(me)},Tt.prototype.multiply=function(me){var Ve=me.sx*this.sx+me.shy*this.shx,lt=me.sx*this.shy+me.shy*this.sy,St=me.shx*this.sx+me.sy*this.shx,Qt=me.shx*this.shy+me.sy*this.sy,Zt=me.tx*this.sx+me.ty*this.shx+this.tx,hr=me.tx*this.shy+me.ty*this.sy+this.ty;return new Tt(Ve,lt,St,Qt,Zt,hr)},Tt.prototype.decompose=function(){var me=this.sx,Ve=this.shy,lt=this.shx,St=this.sy,Qt=this.tx,Zt=this.ty,hr=Math.sqrt(me*me+Ve*Ve),Jr=(me/=hr)*lt+(Ve/=hr)*St;lt-=me*Jr,St-=Ve*Jr;var hn=Math.sqrt(lt*lt+St*St);return Jr/=hn,me*(St/=hn)<Ve*(lt/=hn)&&(me=-me,Ve=-Ve,Jr=-Jr,hr=-hr),{scale:new Tt(hr,0,0,hn,0,0),translate:new Tt(1,0,0,1,Qt,Zt),rotate:new Tt(me,Ve,-Ve,me,0,0),skew:new Tt(1,0,Jr,1,0,0)}},Tt.prototype.toString=function(me){return this.join(" ")},Tt.prototype.inversed=function(){var me=this.sx,Ve=this.shy,lt=this.shx,St=this.sy,Qt=this.tx,Zt=this.ty,hr=1/(me*St-Ve*lt),Jr=St*hr,hn=-Ve*hr,Wn=-lt*hr,Xn=me*hr;return new Tt(Jr,hn,Wn,Xn,-Jr*Qt-Wn*Zt,-hn*Qt-Xn*Zt)},Tt.prototype.applyToPoint=function(me){var Ve=me.x*this.sx+me.y*this.shx+this.tx,lt=me.x*this.shy+me.y*this.sy+this.ty;return new Gl(Ve,lt)},Tt.prototype.applyToRectangle=function(me){var Ve=this.applyToPoint(me),lt=this.applyToPoint(new Gl(me.x+me.w,me.y+me.h));return new Bn(Ve.x,Ve.y,lt.x-Ve.x,lt.y-Ve.y)},Tt.prototype.clone=function(){var me=this.sx,Ve=this.shy,lt=this.shx,St=this.sy,Qt=this.tx,Zt=this.ty;return new Tt(me,Ve,lt,St,Qt,Zt)},b.Matrix=Tt;var ir=b.matrixMult=function(me,Ve){return Ve.multiply(me)},et=new Tt(1,0,0,1,0,0);b.unitMatrix=b.identityMatrix=et;var ot=function(me,Ve){if(!rn[me]){var lt=(Ve instanceof S1?"Sh":"P")+(Object.keys(Br).length+1).toString(10);Ve.id=lt,rn[me]=lt,Br[lt]=Ve,zr.publish("addPattern",Ve)}};b.ShadingPattern=S1,b.TilingPattern=j_,b.addShadingPattern=function(me,Ve){return G("addShadingPattern()"),ot(me,Ve),this},b.beginTilingPattern=function(me){G("beginTilingPattern()"),Sf(me.boundingBox[0],me.boundingBox[1],me.boundingBox[2]-me.boundingBox[0],me.boundingBox[3]-me.boundingBox[1],me.matrix)},b.endTilingPattern=function(me,Ve){G("endTilingPattern()"),Ve.stream=Ye[oe].join(`
`),ot(me,Ve),zr.publish("endTilingPattern",Ve),Ct.pop().restore()};var mt,xt=b.__private__.newObject=function(){var me=nr();return yr(me,!0),me},nr=b.__private__.newObjectDeferred=function(){return Ce++,ne[Ce]=function(){return De},Ce},yr=function(me,Ve){return Ve=typeof Ve=="boolean"&&Ve,ne[me]=De,Ve&&ue(me+" 0 obj"),me},Pr=b.__private__.newAdditionalObject=function(){var me={objId:nr(),content:""};return ze.push(me),me},pr=nr(),Ar=nr(),Tr=b.__private__.decodeColorString=function(me){var Ve=me.split(" ");if(Ve.length!==2||Ve[1]!=="g"&&Ve[1]!=="G")Ve.length!==5||Ve[4]!=="k"&&Ve[4]!=="K"||(Ve=[(1-Ve[0])*(1-Ve[3]),(1-Ve[1])*(1-Ve[3]),(1-Ve[2])*(1-Ve[3]),"r"]);else{var lt=parseFloat(Ve[0]);Ve=[lt,lt,lt,"r"]}for(var St="#",Qt=0;Qt<3;Qt++)St+=("0"+Math.floor(255*parseFloat(Ve[Qt])).toString(16)).slice(-2);return St},Fr=b.__private__.encodeColorString=function(me){var Ve;typeof me=="string"&&(me={ch1:me});var lt=me.ch1,St=me.ch2,Qt=me.ch3,Zt=me.ch4,hr=me.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof lt=="string"&<.charAt(0)!=="#"){var Jr=new cRe(lt);if(Jr.ok)lt=Jr.toHex();else if(!/^\d*\.?\d*$/.test(lt))throw new Error('Invalid color "'+lt+'" passed to jsPDF.encodeColorString.')}if(typeof lt=="string"&&/^#[0-9A-Fa-f]{3}$/.test(lt)&&(lt="#"+lt[1]+lt[1]+lt[2]+lt[2]+lt[3]+lt[3]),typeof lt=="string"&&/^#[0-9A-Fa-f]{6}$/.test(lt)){var hn=parseInt(lt.substr(1),16);lt=hn>>16&255,St=hn>>8&255,Qt=255&hn}if(St===void 0||Zt===void 0&<===St&&St===Qt)Ve=typeof lt=="string"?lt+" "+hr[0]:me.precision===2?q(lt/255)+" "+hr[0]:X(lt/255)+" "+hr[0];else if(Zt===void 0||Ea(Zt)==="object"){if(Zt&&!isNaN(Zt.a)&&Zt.a===0)return["1.","1.","1.",hr[1]].join(" ");Ve=typeof lt=="string"?[lt,St,Qt,hr[1]].join(" "):me.precision===2?[q(lt/255),q(St/255),q(Qt/255),hr[1]].join(" "):[X(lt/255),X(St/255),X(Qt/255),hr[1]].join(" ")}else Ve=typeof lt=="string"?[lt,St,Qt,Zt,hr[2]].join(" "):me.precision===2?[q(lt),q(St),q(Qt),q(Zt),hr[2]].join(" "):[X(lt),X(St),X(Qt),X(Zt),hr[2]].join(" ");return Ve},nn=b.__private__.getFilters=function(){return f},fn=b.__private__.putStream=function(me){var Ve=(me=me||{}).data||"",lt=me.filters||nn(),St=me.alreadyAppliedFilters||[],Qt=me.addLength1||!1,Zt=Ve.length,hr=me.objectId,Jr=function(lo){return lo};if(g!==null&&hr===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");g!==null&&(Jr=mo.encryptor(hr,0));var hn={};lt===!0&&(lt=["FlateEncode"]);var Wn=me.additionalKeyValues||[],Xn=(hn=zn.API.processDataByFilters!==void 0?zn.API.processDataByFilters(Ve,lt):{data:Ve,reverseChain:[]}).reverseChain+(Array.isArray(St)?St.join(" "):St.toString());if(hn.data.length!==0&&(Wn.push({key:"Length",value:hn.data.length}),Qt===!0&&Wn.push({key:"Length1",value:Zt})),Xn.length!=0)if(Xn.split("/").length-1==1)Wn.push({key:"Filter",value:Xn});else{Wn.push({key:"Filter",value:"["+Xn+"]"});for(var ji=0;ji<Wn.length;ji+=1)if(Wn[ji].key==="DecodeParms"){for(var Ia=[],Ra=0;Ra<hn.reverseChain.split("/").length-1;Ra+=1)Ia.push("null");Ia.push(Wn[ji].value),Wn[ji].value="["+Ia.join(" ")+"]"}}ue("<<");for(var bi=0;bi<Wn.length;bi++)ue("/"+Wn[bi].key+" "+Wn[bi].value);ue(">>"),hn.data.length!==0&&(ue("stream"),ue(Jr(hn.data)),ue("endstream"))},ci=b.__private__.putPage=function(me){var Ve=me.number,lt=me.data,St=me.objId,Qt=me.contentsObjId;yr(St,!0),ue("<</Type /Page"),ue("/Parent "+me.rootDictionaryObjId+" 0 R"),ue("/Resources "+me.resourceDictionaryObjId+" 0 R"),ue("/MediaBox ["+parseFloat(z(me.mediaBox.bottomLeftX))+" "+parseFloat(z(me.mediaBox.bottomLeftY))+" "+z(me.mediaBox.topRightX)+" "+z(me.mediaBox.topRightY)+"]"),me.cropBox!==null&&ue("/CropBox ["+z(me.cropBox.bottomLeftX)+" "+z(me.cropBox.bottomLeftY)+" "+z(me.cropBox.topRightX)+" "+z(me.cropBox.topRightY)+"]"),me.bleedBox!==null&&ue("/BleedBox ["+z(me.bleedBox.bottomLeftX)+" "+z(me.bleedBox.bottomLeftY)+" "+z(me.bleedBox.topRightX)+" "+z(me.bleedBox.topRightY)+"]"),me.trimBox!==null&&ue("/TrimBox ["+z(me.trimBox.bottomLeftX)+" "+z(me.trimBox.bottomLeftY)+" "+z(me.trimBox.topRightX)+" "+z(me.trimBox.topRightY)+"]"),me.artBox!==null&&ue("/ArtBox ["+z(me.artBox.bottomLeftX)+" "+z(me.artBox.bottomLeftY)+" "+z(me.artBox.topRightX)+" "+z(me.artBox.topRightY)+"]"),typeof me.userUnit=="number"&&me.userUnit!==1&&ue("/UserUnit "+me.userUnit),zr.publish("putPage",{objId:St,pageContext:Ht[Ve],pageNumber:Ve,page:lt}),ue("/Contents "+Qt+" 0 R"),ue(">>"),ue("endobj");var Zt=lt.join(`
`);return O===I&&(Zt+=`
Q`),yr(Qt,!0),fn({data:Zt,filters:nn(),objectId:Qt}),ue("endobj"),St},_r=b.__private__.putPages=function(){var me,Ve,lt=[];for(me=1;me<=Nr;me++)Ht[me].objId=nr(),Ht[me].contentsObjId=nr();for(me=1;me<=Nr;me++)lt.push(ci({number:me,data:Ye[me],objId:Ht[me].objId,contentsObjId:Ht[me].contentsObjId,mediaBox:Ht[me].mediaBox,cropBox:Ht[me].cropBox,bleedBox:Ht[me].bleedBox,trimBox:Ht[me].trimBox,artBox:Ht[me].artBox,userUnit:Ht[me].userUnit,rootDictionaryObjId:pr,resourceDictionaryObjId:Ar}));yr(pr,!0),ue("<</Type /Pages");var St="/Kids [";for(Ve=0;Ve<Nr;Ve++)St+=lt[Ve]+" 0 R ";ue(St+"]"),ue("/Count "+Nr),ue(">>"),ue("endobj"),zr.publish("postPutPages")},pt=function(me){zr.publish("putFont",{font:me,out:ue,newObject:xt,putStream:fn}),me.isAlreadyPutted!==!0&&(me.objectNumber=xt(),ue("<<"),ue("/Type /Font"),ue("/BaseFont /"+O_(me.postScriptName)),ue("/Subtype /Type1"),typeof me.encoding=="string"&&ue("/Encoding /"+me.encoding),ue("/FirstChar 32"),ue("/LastChar 255"),ue(">>"),ue("endobj"))},or=function(me){me.objectNumber=xt();var Ve=[];Ve.push({key:"Type",value:"/XObject"}),Ve.push({key:"Subtype",value:"/Form"}),Ve.push({key:"BBox",value:"["+[z(me.x),z(me.y),z(me.x+me.width),z(me.y+me.height)].join(" ")+"]"}),Ve.push({key:"Matrix",value:"["+me.matrix.toString()+"]"});var lt=me.pages[1].join(`
`);fn({data:lt,additionalKeyValues:Ve,objectId:me.objectNumber}),ue("endobj")},Ur=function(me,Ve){Ve||(Ve=21);var lt=xt(),St=function(hr,Jr){var hn,Wn=[],Xn=1/(Jr-1);for(hn=0;hn<1;hn+=Xn)Wn.push(hn);if(Wn.push(1),hr[0].offset!=0){var ji={offset:0,color:hr[0].color};hr.unshift(ji)}if(hr[hr.length-1].offset!=1){var Ia={offset:1,color:hr[hr.length-1].color};hr.push(Ia)}for(var Ra="",bi=0,lo=0;lo<Wn.length;lo++){for(hn=Wn[lo];hn>hr[bi+1].offset;)bi++;var Pa=hr[bi].offset,Ko=(hn-Pa)/(hr[bi+1].offset-Pa),Ho=hr[bi].color,Hc=hr[bi+1].color;Ra+=_e(Math.round((1-Ko)*Ho[0]+Ko*Hc[0]).toString(16))+_e(Math.round((1-Ko)*Ho[1]+Ko*Hc[1]).toString(16))+_e(Math.round((1-Ko)*Ho[2]+Ko*Hc[2]).toString(16))}return Ra.trim()}(me.colors,Ve),Qt=[];Qt.push({key:"FunctionType",value:"0"}),Qt.push({key:"Domain",value:"[0.0 1.0]"}),Qt.push({key:"Size",value:"["+Ve+"]"}),Qt.push({key:"BitsPerSample",value:"8"}),Qt.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Qt.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),fn({data:St,additionalKeyValues:Qt,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:lt}),ue("endobj"),me.objectNumber=xt(),ue("<< /ShadingType "+me.type),ue("/ColorSpace /DeviceRGB");var Zt="/Coords ["+z(parseFloat(me.coords[0]))+" "+z(parseFloat(me.coords[1]))+" ";me.type===2?Zt+=z(parseFloat(me.coords[2]))+" "+z(parseFloat(me.coords[3])):Zt+=z(parseFloat(me.coords[2]))+" "+z(parseFloat(me.coords[3]))+" "+z(parseFloat(me.coords[4]))+" "+z(parseFloat(me.coords[5])),ue(Zt+="]"),me.matrix&&ue("/Matrix ["+me.matrix.toString()+"]"),ue("/Function "+lt+" 0 R"),ue("/Extend [true true]"),ue(">>"),ue("endobj")},Ti=function(me,Ve){var lt=nr(),St=xt();Ve.push({resourcesOid:lt,objectOid:St}),me.objectNumber=St;var Qt=[];Qt.push({key:"Type",value:"/Pattern"}),Qt.push({key:"PatternType",value:"1"}),Qt.push({key:"PaintType",value:"1"}),Qt.push({key:"TilingType",value:"1"}),Qt.push({key:"BBox",value:"["+me.boundingBox.map(z).join(" ")+"]"}),Qt.push({key:"XStep",value:z(me.xStep)}),Qt.push({key:"YStep",value:z(me.yStep)}),Qt.push({key:"Resources",value:lt+" 0 R"}),me.matrix&&Qt.push({key:"Matrix",value:"["+me.matrix.toString()+"]"}),fn({data:me.stream,additionalKeyValues:Qt,objectId:me.objectNumber}),ue("endobj")},ni=function(me){for(var Ve in me.objectNumber=xt(),ue("<<"),me)switch(Ve){case"opacity":ue("/ca "+q(me[Ve]));break;case"stroke-opacity":ue("/CA "+q(me[Ve]))}ue(">>"),ue("endobj")},Li=function(me){yr(me.resourcesOid,!0),ue("<<"),ue("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var Ve in ue("/Font <<"),_t)_t.hasOwnProperty(Ve)&&(y===!1||y===!0&&_.hasOwnProperty(Ve))&&ue("/"+Ve+" "+_t[Ve].objectNumber+" 0 R");ue(">>")}(),function(){if(Object.keys(Br).length>0){for(var Ve in ue("/Shading <<"),Br)Br.hasOwnProperty(Ve)&&Br[Ve]instanceof S1&&Br[Ve].objectNumber>=0&&ue("/"+Ve+" "+Br[Ve].objectNumber+" 0 R");zr.publish("putShadingPatternDict"),ue(">>")}}(),function(Ve){if(Object.keys(Br).length>0){for(var lt in ue("/Pattern <<"),Br)Br.hasOwnProperty(lt)&&Br[lt]instanceof b.TilingPattern&&Br[lt].objectNumber>=0&&Br[lt].objectNumber<Ve&&ue("/"+lt+" "+Br[lt].objectNumber+" 0 R");zr.publish("putTilingPatternDict"),ue(">>")}}(me.objectOid),function(){if(Object.keys(Yr).length>0){var Ve;for(Ve in ue("/ExtGState <<"),Yr)Yr.hasOwnProperty(Ve)&&Yr[Ve].objectNumber>=0&&ue("/"+Ve+" "+Yr[Ve].objectNumber+" 0 R");zr.publish("putGStateDict"),ue(">>")}}(),function(){for(var Ve in ue("/XObject <<"),vt)vt.hasOwnProperty(Ve)&&vt[Ve].objectNumber>=0&&ue("/"+Ve+" "+vt[Ve].objectNumber+" 0 R");zr.publish("putXobjectDict"),ue(">>")}(),ue(">>"),ue("endobj")},ea=function(me){br[me.fontName]=br[me.fontName]||{},br[me.fontName][me.fontStyle]=me.id},Tn=function(me,Ve,lt,St,Qt){var Zt={id:"F"+(Object.keys(_t).length+1).toString(10),postScriptName:me,fontName:Ve,fontStyle:lt,encoding:St,isStandardFont:Qt||!1,metadata:{}};return zr.publish("addFont",{font:Zt,instance:this}),_t[Zt.id]=Zt,ea(Zt),Zt.id},Mi=b.__private__.pdfEscape=b.pdfEscape=function(me,Ve){return function(lt,St){var Qt,Zt,hr,Jr,hn,Wn,Xn,ji,Ia;if(hr=(St=St||{}).sourceEncoding||"Unicode",hn=St.outputEncoding,(St.autoencode||hn)&&_t[Bt].metadata&&_t[Bt].metadata[hr]&&_t[Bt].metadata[hr].encoding&&(Jr=_t[Bt].metadata[hr].encoding,!hn&&_t[Bt].encoding&&(hn=_t[Bt].encoding),!hn&&Jr.codePages&&(hn=Jr.codePages[0]),typeof hn=="string"&&(hn=Jr[hn]),hn)){for(Xn=!1,Wn=[],Qt=0,Zt=lt.length;Qt<Zt;Qt++)(ji=hn[lt.charCodeAt(Qt)])?Wn.push(String.fromCharCode(ji)):Wn.push(lt[Qt]),Wn[Qt].charCodeAt(0)>>8&&(Xn=!0);lt=Wn.join("")}for(Qt=lt.length;Xn===void 0&&Qt!==0;)lt.charCodeAt(Qt-1)>>8&&(Xn=!0),Qt--;if(!Xn)return lt;for(Wn=St.noBOM?[]:[254,255],Qt=0,Zt=lt.length;Qt<Zt;Qt++){if((Ia=(ji=lt.charCodeAt(Qt))>>8)>>8)throw new Error("Character at position "+Qt+" of string '"+lt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Wn.push(Ia),Wn.push(ji-(Ia<<8))}return String.fromCharCode.apply(void 0,Wn)}(me,Ve).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ka=b.__private__.beginPage=function(me){Ye[++Nr]=[],Ht[Nr]={objId:0,contentsObjId:0,userUnit:Number(h),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(me[0]),topRightY:Number(me[1])}},$i(Nr),Ue(Ye[oe])},ga=function(me,Ve){var lt,St,Qt;switch(r=Ve||r,typeof me=="string"&&(lt=L(me.toLowerCase()),Array.isArray(lt)&&(St=lt[0],Qt=lt[1])),Array.isArray(me)&&(St=me[0]*It,Qt=me[1]*It),isNaN(St)&&(St=o[0],Qt=o[1]),(St>14400||Qt>14400)&&(Po.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),St=Math.min(14400,St),Qt=Math.min(14400,Qt)),o=[St,Qt],r.substr(0,1)){case"l":Qt>St&&(o=[Qt,St]);break;case"p":St>Qt&&(o=[Qt,St])}Ka(o),ec(Ju),ue(_f),Au!==0&&ue(Au+" J"),vu!==0&&ue(vu+" j"),zr.publish("addPage",{pageNumber:Nr})},qn=function(me){me>0&&me<=Nr&&(Ye.splice(me,1),Ht.splice(me,1),Nr--,oe>Nr&&(oe=Nr),this.setPage(oe))},$i=function(me){me>0&&me<=Nr&&(oe=me)},Da=b.__private__.getNumberOfPages=b.getNumberOfPages=function(){return Ye.length-1},qs=function(me,Ve,lt){var St,Qt=void 0;return lt=lt||{},me=me!==void 0?me:_t[Bt].fontName,Ve=Ve!==void 0?Ve:_t[Bt].fontStyle,St=me.toLowerCase(),br[St]!==void 0&&br[St][Ve]!==void 0?Qt=br[St][Ve]:br[me]!==void 0&&br[me][Ve]!==void 0?Qt=br[me][Ve]:lt.disableWarning===!1&&Po.warn("Unable to look up font label for font '"+me+"', '"+Ve+"'. Refer to getFontList() for available fonts."),Qt||lt.noFallback||(Qt=br.times[Ve])==null&&(Qt=br.times.normal),Qt},Di=b.__private__.putInfo=function(){var me=xt(),Ve=function(St){return St};for(var lt in g!==null&&(Ve=mo.encryptor(me,0)),ue("<<"),ue("/Producer ("+Mi(Ve("jsPDF "+zn.version))+")"),Rt)Rt.hasOwnProperty(lt)&&Rt[lt]&&ue("/"+lt.substr(0,1).toUpperCase()+lt.substr(1)+" ("+Mi(Ve(Rt[lt]))+")");ue("/CreationDate ("+Mi(Ve(K))+")"),ue(">>"),ue("endobj")},Wo=b.__private__.putCatalog=function(me){var Ve=(me=me||{}).rootDictionaryObjId||pr;switch(xt(),ue("<<"),ue("/Type /Catalog"),ue("/Pages "+Ve+" 0 R"),Ge||(Ge="fullwidth"),Ge){case"fullwidth":ue("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ue("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ue("/OpenAction [3 0 R /Fit]");break;case"original":ue("/OpenAction [3 0 R /XYZ null null 1]");break;default:var lt=""+Ge;lt.substr(lt.length-1)==="%"&&(Ge=parseInt(Ge)/100),typeof Ge=="number"&&ue("/OpenAction [3 0 R /XYZ null null "+q(Ge)+"]")}switch(nt||(nt="continuous"),nt){case"continuous":ue("/PageLayout /OneColumn");break;case"single":ue("/PageLayout /SinglePage");break;case"two":case"twoleft":ue("/PageLayout /TwoColumnLeft");break;case"tworight":ue("/PageLayout /TwoColumnRight")}Be&&ue("/PageMode /"+Be),zr.publish("putCatalog"),ue(">>"),ue("endobj")},na=b.__private__.putTrailer=function(){ue("trailer"),ue("<<"),ue("/Size "+(Ce+1)),ue("/Root "+Ce+" 0 R"),ue("/Info "+(Ce-1)+" 0 R"),g!==null&&ue("/Encrypt "+mo.oid+" 0 R"),ue("/ID [ <"+ce+"> <"+ce+"> ]"),ue(">>")},bs=b.__private__.putHeader=function(){ue("%PDF-"+C),ue("%ºß¬à")},Hl=b.__private__.putXRef=function(){var me="0000000000";ue("xref"),ue("0 "+(Ce+1)),ue("0000000000 65535 f ");for(var Ve=1;Ve<=Ce;Ve++)typeof ne[Ve]=="function"?ue((me+ne[Ve]()).slice(-10)+" 00000 n "):ne[Ve]!==void 0?ue((me+ne[Ve]).slice(-10)+" 00000 n "):ue("0000000000 00000 n ")},_s=b.__private__.buildDocument=function(){var me;Ce=0,De=0,xe=[],ne=[],ze=[],pr=nr(),Ar=nr(),Ue(xe),zr.publish("buildDocument"),bs(),_r(),function(){zr.publish("putAdditionalObjects");for(var lt=0;lt<ze.length;lt++){var St=ze[lt];yr(St.objId,!0),ue(St.content),ue("endobj")}zr.publish("postPutAdditionalObjects")}(),me=[],function(){for(var lt in _t)_t.hasOwnProperty(lt)&&(y===!1||y===!0&&_.hasOwnProperty(lt))&&pt(_t[lt])}(),function(){var lt;for(lt in Yr)Yr.hasOwnProperty(lt)&&ni(Yr[lt])}(),function(){for(var lt in vt)vt.hasOwnProperty(lt)&&or(vt[lt])}(),function(lt){var St;for(St in Br)Br.hasOwnProperty(St)&&(Br[St]instanceof S1?Ur(Br[St]):Br[St]instanceof j_&&Ti(Br[St],lt))}(me),zr.publish("putResources"),me.forEach(Li),Li({resourcesOid:Ar,objectOid:Number.MAX_SAFE_INTEGER}),zr.publish("postPutResources"),g!==null&&(mo.oid=xt(),ue("<<"),ue("/Filter /Standard"),ue("/V "+mo.v),ue("/R "+mo.r),ue("/U <"+mo.toHexString(mo.U)+">"),ue("/O <"+mo.toHexString(mo.O)+">"),ue("/P "+mo.P),ue(">>"),ue("endobj")),Di(),Wo();var Ve=De;return Hl(),na(),ue("startxref"),ue(""+Ve),ue("%%EOF"),Ue(Ye[oe]),xe.join(`
`)},du=b.__private__.getBlob=function(me){return new Blob([qe(me)],{type:"application/pdf"})},No=b.output=b.__private__.output=(mt=function(me,Ve){switch(typeof(Ve=Ve||{})=="string"?Ve={filename:Ve}:Ve.filename=Ve.filename||"generated.pdf",me){case void 0:return _s();case"save":b.save(Ve.filename);break;case"arraybuffer":return qe(_s());case"blob":return du(_s());case"bloburi":case"bloburl":if(Ci.URL!==void 0&&typeof Ci.URL.createObjectURL=="function")return Ci.URL&&Ci.URL.createObjectURL(du(_s()))||void 0;Po.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var lt="",St=_s();try{lt=s1e(St)}catch{lt=s1e(unescape(encodeURIComponent(St)))}return"data:application/pdf;filename="+Ve.filename+";base64,"+lt;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ci)==="[object Window]"){var Qt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Zt=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Ve.pdfObjectUrl&&(Qt=Ve.pdfObjectUrl,Zt="");var hr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Qt+'"'+Zt+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Ve)+");<\/script></body></html>",Jr=Ci.open();return Jr!==null&&Jr.document.write(hr),Jr}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ci)==="[object Window]"){var hn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Ve.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Ve.filename+'" width="500px" height="400px" /></body></html>',Wn=Ci.open();if(Wn!==null){Wn.document.write(hn);var Xn=this;Wn.document.documentElement.querySelector("#pdfViewer").onload=function(){Wn.document.title=Ve.filename,Wn.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Xn.output("bloburl"))}}return Wn}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ci)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var ji='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Ve)+'"></iframe></body></html>',Ia=Ci.open();if(Ia!==null&&(Ia.document.write(ji),Ia.document.title=Ve.filename),Ia||typeof safari>"u")return Ia;break;case"datauri":case"dataurl":return Ci.document.location.href=this.output("datauristring",Ve);default:return null}},mt.foo=function(){try{return mt.apply(this,arguments)}catch(lt){var me=lt.stack||"";~me.indexOf(" at ")&&(me=me.split(" at ")[1]);var Ve="Error in function "+me.split(`
`)[0].split("<")[0]+": "+lt.message;if(!Ci.console)throw new Error(Ve);Ci.console.error(Ve,lt),Ci.alert&&alert(Ve)}},mt.foo.bar=mt,mt.foo),Ws=function(me){return Array.isArray(kn)===!0&&kn.indexOf(me)>-1};switch(n){case"pt":It=1;break;case"mm":It=72/25.4;break;case"cm":It=72/2.54;break;case"in":It=72;break;case"px":It=Ws("px_scaling")==1?.75:96/72;break;case"pc":case"em":It=12;break;case"ex":It=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);It=n}var mo=null;he(),le();var $o=b.__private__.getPageInfo=b.getPageInfo=function(me){if(isNaN(me)||me%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ht[me].objId,pageNumber:me,pageContext:Ht[me]}},yo=b.__private__.getPageInfoByObjId=function(me){if(isNaN(me)||me%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Ve in Ht)if(Ht[Ve].objId===me)break;return $o(Ve)},rv=b.__private__.getCurrentPageInfo=b.getCurrentPageInfo=function(){return{objId:Ht[oe].objId,pageNumber:oe,pageContext:Ht[oe]}};b.addPage=function(){return ga.apply(this,arguments),this},b.setPage=function(){return $i.apply(this,arguments),Ue.call(this,Ye[oe]),this},b.insertPage=function(me){return this.addPage(),this.movePage(oe,me),this},b.movePage=function(me,Ve){var lt,St;if(me>Ve){lt=Ye[me],St=Ht[me];for(var Qt=me;Qt>Ve;Qt--)Ye[Qt]=Ye[Qt-1],Ht[Qt]=Ht[Qt-1];Ye[Ve]=lt,Ht[Ve]=St,this.setPage(Ve)}else if(me<Ve){lt=Ye[me],St=Ht[me];for(var Zt=me;Zt<Ve;Zt++)Ye[Zt]=Ye[Zt+1],Ht[Zt]=Ht[Zt+1];Ye[Ve]=lt,Ht[Ve]=St,this.setPage(Ve)}return this},b.deletePage=function(){return qn.apply(this,arguments),this},b.__private__.text=b.text=function(me,Ve,lt,St,Qt){var Zt,hr,Jr,hn,Wn,Xn,ji,Ia,Ra,bi=(St=St||{}).scope||this;if(typeof me=="number"&&typeof Ve=="number"&&(typeof lt=="string"||Array.isArray(lt))){var lo=lt;lt=Ve,Ve=me,me=lo}if(arguments[3]instanceof Tt==0?(Jr=arguments[4],hn=arguments[5],Ea(ji=arguments[3])==="object"&&ji!==null||(typeof Jr=="string"&&(hn=Jr,Jr=null),typeof ji=="string"&&(hn=ji,ji=null),typeof ji=="number"&&(Jr=ji,ji=null),St={flags:ji,angle:Jr,align:hn})):(G("The transform parameter of text() with a Matrix value"),Ra=Qt),isNaN(Ve)||isNaN(lt)||me==null)throw new Error("Invalid arguments passed to jsPDF.text");if(me.length===0)return bi;var Pa,Ko="",Ho=typeof St.lineHeightFactor=="number"?St.lineHeightFactor:Tu,Hc=bi.internal.scaleFactor;function Ap(Ft){return Ft=Ft.split(" ").join(Array(St.TabLen||9).join(" ")),Mi(Ft,ji)}function Yd(Ft){for(var Wt,er=Ft.concat(),Xt=[],Rr=er.length;Rr--;)typeof(Wt=er.shift())=="string"?Xt.push(Wt):Array.isArray(Ft)&&(Wt.length===1||Wt[1]===void 0&&Wt[2]===void 0)?Xt.push(Wt[0]):Xt.push([Wt[0],Wt[1],Wt[2]]);return Xt}function Qc(Ft,Wt){var er;if(typeof Ft=="string")er=Wt(Ft)[0];else if(Array.isArray(Ft)){for(var Xt,Rr,ar=Ft.concat(),Ir=[],gr=ar.length;gr--;)typeof(Xt=ar.shift())=="string"?Ir.push(Wt(Xt)[0]):Array.isArray(Xt)&&typeof Xt[0]=="string"&&(Rr=Wt(Xt[0],Xt[1],Xt[2]),Ir.push([Rr[0],Rr[1],Rr[2]]));er=Ir}return er}var Ys=!1,Vc=!0;if(typeof me=="string")Ys=!0;else if(Array.isArray(me)){var ql=me.concat();hr=[];for(var Bu,Yo=ql.length;Yo--;)(typeof(Bu=ql.shift())!="string"||Array.isArray(Bu)&&typeof Bu[0]!="string")&&(Vc=!1);Ys=Vc}if(Ys===!1)throw new Error('Type of text must be string or Array. "'+me+'" is not recognized.');typeof me=="string"&&(me=me.match(/[\r?\n]/)?me.split(/\r\n|\r|\n/g):[me]);var rc=Me/bi.internal.scaleFactor,Xo=rc*(Ho-1);switch(St.baseline){case"bottom":lt-=Xo;break;case"top":lt+=rc-Xo;break;case"hanging":lt+=rc-2*Xo;break;case"middle":lt+=rc/2-Xo}if((Xn=St.maxWidth||0)>0&&(typeof me=="string"?me=bi.splitTextToSize(me,Xn):Object.prototype.toString.call(me)==="[object Array]"&&(me=me.reduce(function(Ft,Wt){return Ft.concat(bi.splitTextToSize(Wt,Xn))},[]))),Zt={text:me,x:Ve,y:lt,options:St,mutex:{pdfEscape:Mi,activeFontKey:Bt,fonts:_t,activeFontSize:Me}},zr.publish("preProcessText",Zt),me=Zt.text,Jr=(St=Zt.options).angle,Ra instanceof Tt==0&&Jr&&typeof Jr=="number"){Jr*=Math.PI/180,St.rotationDirection===0&&(Jr=-Jr),O===I&&(Jr=-Jr);var Xs=Math.cos(Jr),Ms=Math.sin(Jr);Ra=new Tt(Xs,Ms,-Ms,Xs,0,0)}else Jr&&Jr instanceof Tt&&(Ra=Jr);O!==I||Ra||(Ra=et),(Wn=St.charSpace||Ks)!==void 0&&(Ko+=z(Y(Wn))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Ia=St.horizontalScale)!==void 0&&(Ko+=z(100*Ia)+` Tz
`),St.lang;var bo=-1,Wl=St.renderingMode!==void 0?St.renderingMode:St.stroke,ih=bi.internal.getCurrentPageInfo().pageContext;switch(Wl){case 0:case!1:case"fill":bo=0;break;case 1:case!0:case"stroke":bo=1;break;case 2:case"fillThenStroke":bo=2;break;case 3:case"invisible":bo=3;break;case 4:case"fillAndAddForClipping":bo=4;break;case 5:case"strokeAndAddPathForClipping":bo=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":bo=6;break;case 7:case"addToPathForClipping":bo=7}var Oa=ih.usedRenderingMode!==void 0?ih.usedRenderingMode:-1;bo!==-1?Ko+=bo+` Tr
`:Oa!==-1&&(Ko+=`0 Tr
`),bo!==-1&&(ih.usedRenderingMode=bo),hn=St.align||"left";var uo,Zs=Me*Ho,kh=bi.internal.pageSize.getWidth(),gu=_t[Bt];Wn=St.charSpace||Ks,Xn=St.maxWidth||0,ji=Object.assign({autoencode:!0,noBOM:!0},St.flags);var zc=[],xf=function(Ft){return bi.getStringUnitWidth(Ft,{font:gu,charSpace:Wn,fontSize:Me,doKerning:!1})*Me/Hc};if(Object.prototype.toString.call(me)==="[object Array]"){var qi;hr=Yd(me),hn!=="left"&&(uo=hr.map(xf));var Ds,Cf=0;if(hn==="right"){Ve-=uo[0],me=[],Yo=hr.length;for(var mu=0;mu<Yo;mu++)mu===0?(Ds=so(Ve),qi=_l(lt)):(Ds=Y(Cf-uo[mu]),qi=-Zs),me.push([hr[mu],Ds,qi]),Cf=uo[mu]}else if(hn==="center"){Ve-=uo[0]/2,me=[],Yo=hr.length;for(var $l=0;$l<Yo;$l++)$l===0?(Ds=so(Ve),qi=_l(lt)):(Ds=Y((Cf-uo[$l])/2),qi=-Zs),me.push([hr[$l],Ds,qi]),Cf=uo[$l]}else if(hn==="left"){me=[],Yo=hr.length;for(var nc=0;nc<Yo;nc++)me.push(hr[nc])}else if(hn==="justify"&&gu.encoding==="Identity-H"){me=[],Yo=hr.length,Xn=Xn!==0?Xn:kh;for(var Gc=0,ka=0;ka<Yo;ka++)if(qi=ka===0?_l(lt):-Zs,Ds=ka===0?so(Ve):Gc,ka<Yo-1){var Xd=Y((Xn-uo[ka])/(hr[ka].split(" ").length-1)),Kl=hr[ka].split(" ");me.push([Kl[0]+" ",Ds,qi]),Gc=0;for(var Iu=1;Iu<Kl.length;Iu++){var ah=(xf(Kl[Iu-1]+" "+Kl[Iu])-xf(Kl[Iu]))*Hc+Xd;Iu==Kl.length-1?me.push([Kl[Iu],ah,0]):me.push([Kl[Iu]+" ",ah,0]),Gc-=ah}}else me.push([hr[ka],Ds,qi]);me.push(["",Gc,0])}else{if(hn!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(me=[],Yo=hr.length,Xn=Xn!==0?Xn:kh,ka=0;ka<Yo;ka++)qi=ka===0?_l(lt):-Zs,Ds=ka===0?so(Ve):0,ka<Yo-1?zc.push(z(Y((Xn-uo[ka])/(hr[ka].split(" ").length-1)))):zc.push(0),me.push([hr[ka],Ds,qi])}}(typeof St.R2L=="boolean"?St.R2L:ke)===!0&&(me=Qc(me,function(Ft,Wt,er){return[Ft.split("").reverse().join(""),Wt,er]})),Zt={text:me,x:Ve,y:lt,options:St,mutex:{pdfEscape:Mi,activeFontKey:Bt,fonts:_t,activeFontSize:Me}},zr.publish("postProcessText",Zt),me=Zt.text,Pa=Zt.mutex.isHex||!1;var ic=_t[Bt].encoding;ic!=="WinAnsiEncoding"&&ic!=="StandardEncoding"||(me=Qc(me,function(Ft,Wt,er){return[Ap(Ft),Wt,er]})),hr=Yd(me),me=[];for(var Lu,it,gt,st=Array.isArray(hr[0])?1:0,Ze="",Et=function(Ft,Wt,er){var Xt="";return er instanceof Tt?(er=typeof St.angle=="number"?ir(er,new Tt(1,0,0,1,Ft,Wt)):ir(new Tt(1,0,0,1,Ft,Wt),er),O===I&&(er=ir(new Tt(1,0,0,-1,0,0),er)),Xt=er.join(" ")+` Tm
`):Xt=z(Ft)+" "+z(Wt)+` Td
`,Xt},Nt=0;Nt<hr.length;Nt++){switch(Ze="",st){case 1:gt=(Pa?"<":"(")+hr[Nt][0]+(Pa?">":")"),Lu=parseFloat(hr[Nt][1]),it=parseFloat(hr[Nt][2]);break;case 0:gt=(Pa?"<":"(")+hr[Nt]+(Pa?">":")"),Lu=so(Ve),it=_l(lt)}zc!==void 0&&zc[Nt]!==void 0&&(Ze=zc[Nt]+` Tw
`),Nt===0?me.push(Ze+Et(Lu,it,Ra)+gt):st===0?me.push(Ze+gt):st===1&&me.push(Ze+Et(Lu,it,Ra)+gt)}me=st===0?me.join(` Tj
T* `):me.join(` Tj
`),me+=` Tj
`;var Pt=`BT
/`;return Pt+=Bt+" "+Me+` Tf
`,Pt+=z(Me*Ho)+` TL
`,Pt+=fs+`
`,Pt+=Ko,Pt+=me,ue(Pt+="ET"),_[Bt]=!0,bi};var Oc=b.__private__.clip=b.clip=function(me){return ue(me==="evenodd"?"W*":"W"),this};b.clipEvenOdd=function(){return Oc("evenodd")},b.__private__.discardPath=b.discardPath=function(){return ue("n"),this};var wo=b.__private__.isValidStyle=function(me){var Ve=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(me)!==-1&&(Ve=!0),Ve};b.__private__.setDefaultPathOperation=b.setDefaultPathOperation=function(me){return wo(me)&&(p=me),this};var wf=b.__private__.getStyle=b.getStyle=function(me){var Ve=p;switch(me){case"D":case"S":Ve="S";break;case"F":Ve="f";break;case"FD":case"DF":Ve="B";break;case"f":case"f*":case"B":case"B*":Ve=me}return Ve},Zu=b.close=function(){return ue("h"),this};b.stroke=function(){return ue("S"),this},b.fill=function(me){return Ql("f",me),this},b.fillEvenOdd=function(me){return Ql("f*",me),this},b.fillStroke=function(me){return Ql("B",me),this},b.fillStrokeEvenOdd=function(me){return Ql("B*",me),this};var Ql=function(me,Ve){Ea(Ve)==="object"?bf(Ve,me):ue(me)},oo=function(me){me===null||O===I&&me===void 0||(me=wf(me),ue(me))};function kc(me,Ve,lt,St,Qt){var Zt=new j_(Ve||this.boundingBox,lt||this.xStep,St||this.yStep,this.gState,Qt||this.matrix);Zt.stream=this.stream;var hr=me+"$$"+this.cloneIndex+++"$$";return ot(hr,Zt),Zt}var bf=function(me,Ve){var lt=rn[me.key],St=Br[lt];if(St instanceof S1)ue("q"),ue(Kd(Ve)),St.gState&&b.setGState(St.gState),ue(me.matrix.toString()+" cm"),ue("/"+lt+" sh"),ue("Q");else if(St instanceof j_){var Qt=new Tt(1,0,0,-1,0,Lo());me.matrix&&(Qt=Qt.multiply(me.matrix||et),lt=kc.call(St,me.key,me.boundingBox,me.xStep,me.yStep,Qt).id),ue("q"),ue("/Pattern cs"),ue("/"+lt+" scn"),St.gState&&b.setGState(St.gState),ue(Ve),ue("Q")}},Kd=function(me){switch(me){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},us=b.moveTo=function(me,Ve){return ue(z(Y(me))+" "+z(te(Ve))+" m"),this},cs=b.lineTo=function(me,Ve){return ue(z(Y(me))+" "+z(te(Ve))+" l"),this},Ls=b.curveTo=function(me,Ve,lt,St,Qt,Zt){return ue([z(Y(me)),z(te(Ve)),z(Y(lt)),z(te(St)),z(Y(Qt)),z(te(Zt)),"c"].join(" ")),this};b.__private__.line=b.line=function(me,Ve,lt,St,Qt){if(isNaN(me)||isNaN(Ve)||isNaN(lt)||isNaN(St)||!wo(Qt))throw new Error("Invalid arguments passed to jsPDF.line");return O===P?this.lines([[lt-me,St-Ve]],me,Ve,[1,1],Qt||"S"):this.lines([[lt-me,St-Ve]],me,Ve,[1,1]).stroke()},b.__private__.lines=b.lines=function(me,Ve,lt,St,Qt,Zt){var hr,Jr,hn,Wn,Xn,ji,Ia,Ra,bi,lo,Pa,Ko;if(typeof me=="number"&&(Ko=lt,lt=Ve,Ve=me,me=Ko),St=St||[1,1],Zt=Zt||!1,isNaN(Ve)||isNaN(lt)||!Array.isArray(me)||!Array.isArray(St)||!wo(Qt)||typeof Zt!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(us(Ve,lt),hr=St[0],Jr=St[1],Wn=me.length,lo=Ve,Pa=lt,hn=0;hn<Wn;hn++)(Xn=me[hn]).length===2?(lo=Xn[0]*hr+lo,Pa=Xn[1]*Jr+Pa,cs(lo,Pa)):(ji=Xn[0]*hr+lo,Ia=Xn[1]*Jr+Pa,Ra=Xn[2]*hr+lo,bi=Xn[3]*Jr+Pa,lo=Xn[4]*hr+lo,Pa=Xn[5]*Jr+Pa,Ls(ji,Ia,Ra,bi,lo,Pa));return Zt&&Zu(),oo(Qt),this},b.path=function(me){for(var Ve=0;Ve<me.length;Ve++){var lt=me[Ve],St=lt.c;switch(lt.op){case"m":us(St[0],St[1]);break;case"l":cs(St[0],St[1]);break;case"c":Ls.apply(this,St);break;case"h":Zu()}}return this},b.__private__.rect=b.rect=function(me,Ve,lt,St,Qt){if(isNaN(me)||isNaN(Ve)||isNaN(lt)||isNaN(St)||!wo(Qt))throw new Error("Invalid arguments passed to jsPDF.rect");return O===P&&(St=-St),ue([z(Y(me)),z(te(Ve)),z(Y(lt)),z(Y(St)),"re"].join(" ")),oo(Qt),this},b.__private__.triangle=b.triangle=function(me,Ve,lt,St,Qt,Zt,hr){if(isNaN(me)||isNaN(Ve)||isNaN(lt)||isNaN(St)||isNaN(Qt)||isNaN(Zt)||!wo(hr))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[lt-me,St-Ve],[Qt-lt,Zt-St],[me-Qt,Ve-Zt]],me,Ve,[1,1],hr,!0),this},b.__private__.roundedRect=b.roundedRect=function(me,Ve,lt,St,Qt,Zt,hr){if(isNaN(me)||isNaN(Ve)||isNaN(lt)||isNaN(St)||isNaN(Qt)||isNaN(Zt)||!wo(hr))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Jr=4/3*(Math.SQRT2-1);return Qt=Math.min(Qt,.5*lt),Zt=Math.min(Zt,.5*St),this.lines([[lt-2*Qt,0],[Qt*Jr,0,Qt,Zt-Zt*Jr,Qt,Zt],[0,St-2*Zt],[0,Zt*Jr,-Qt*Jr,Zt,-Qt,Zt],[2*Qt-lt,0],[-Qt*Jr,0,-Qt,-Zt*Jr,-Qt,-Zt],[0,2*Zt-St],[0,-Zt*Jr,Qt*Jr,-Zt,Qt,-Zt]],me+Qt,Ve,[1,1],hr,!0),this},b.__private__.ellipse=b.ellipse=function(me,Ve,lt,St,Qt){if(isNaN(me)||isNaN(Ve)||isNaN(lt)||isNaN(St)||!wo(Qt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Zt=4/3*(Math.SQRT2-1)*lt,hr=4/3*(Math.SQRT2-1)*St;return us(me+lt,Ve),Ls(me+lt,Ve-hr,me+Zt,Ve-St,me,Ve-St),Ls(me-Zt,Ve-St,me-lt,Ve-hr,me-lt,Ve),Ls(me-lt,Ve+hr,me-Zt,Ve+St,me,Ve+St),Ls(me+Zt,Ve+St,me+lt,Ve+hr,me+lt,Ve),oo(Qt),this},b.__private__.circle=b.circle=function(me,Ve,lt,St){if(isNaN(me)||isNaN(Ve)||isNaN(lt)||!wo(St))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(me,Ve,lt,lt,St)},b.setFont=function(me,Ve,lt){return lt&&(Ve=H(Ve,lt)),Bt=qs(me,Ve,{disableWarning:!1}),this};var Vl=b.__private__.getFont=b.getFont=function(){return _t[qs.apply(b,arguments)]};b.__private__.getFontList=b.getFontList=function(){var me,Ve,lt={};for(me in br)if(br.hasOwnProperty(me))for(Ve in lt[me]=[],br[me])br[me].hasOwnProperty(Ve)&<[me].push(Ve);return lt},b.addFont=function(me,Ve,lt,St,Qt){var Zt=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Zt.indexOf(arguments[3])!==-1?Qt=arguments[3]:arguments[3]&&Zt.indexOf(arguments[3])==-1&&(lt=H(lt,St)),Tn.call(this,me,Ve,lt,Qt=Qt||"Identity-H")};var Tu,Ju=t.lineWidth||.200025,gn=b.__private__.getLineWidth=b.getLineWidth=function(){return Ju},ec=b.__private__.setLineWidth=b.setLineWidth=function(me){return Ju=me,ue(z(Y(me))+" w"),this};b.__private__.setLineDash=zn.API.setLineDash=zn.API.setLineDashPattern=function(me,Ve){if(me=me||[],Ve=Ve||0,isNaN(Ve)||!Array.isArray(me))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return me=me.map(function(lt){return z(Y(lt))}).join(" "),Ve=z(Y(Ve)),ue("["+me+"] "+Ve+" d"),this};var Fc=b.__private__.getLineHeight=b.getLineHeight=function(){return Me*Tu};b.__private__.getLineHeight=b.getLineHeight=function(){return Me*Tu};var $s=b.__private__.setLineHeightFactor=b.setLineHeightFactor=function(me){return typeof(me=me||1.15)=="number"&&(Tu=me),this},Ai=b.__private__.getLineHeightFactor=b.getLineHeightFactor=function(){return Tu};$s(t.lineHeight);var so=b.__private__.getHorizontalCoordinate=function(me){return Y(me)},_l=b.__private__.getVerticalCoordinate=function(me){return O===I?me:Ht[oe].mediaBox.topRightY-Ht[oe].mediaBox.bottomLeftY-Y(me)},zl=b.__private__.getHorizontalCoordinateString=b.getHorizontalCoordinateString=function(me){return z(so(me))},tc=b.__private__.getVerticalCoordinateString=b.getVerticalCoordinateString=function(me){return z(_l(me))},_f=t.strokeColor||"0 G";b.__private__.getStrokeColor=b.getDrawColor=function(){return Tr(_f)},b.__private__.setStrokeColor=b.setDrawColor=function(me,Ve,lt,St){return _f=Fr({ch1:me,ch2:Ve,ch3:lt,ch4:St,pdfColorType:"draw",precision:2}),ue(_f),this};var xn=t.fillColor||"0 g";b.__private__.getFillColor=b.getFillColor=function(){return Tr(xn)},b.__private__.setFillColor=b.setFillColor=function(me,Ve,lt,St){return xn=Fr({ch1:me,ch2:Ve,ch3:lt,ch4:St,pdfColorType:"fill",precision:2}),ue(xn),this};var fs=t.textColor||"0 g",Eu=b.__private__.getTextColor=b.getTextColor=function(){return Tr(fs)};b.__private__.setTextColor=b.setTextColor=function(me,Ve,lt,St){return fs=Fr({ch1:me,ch2:Ve,ch3:lt,ch4:St,pdfColorType:"text",precision:3}),this};var Ks=t.charSpace,Ss=b.__private__.getCharSpace=b.getCharSpace=function(){return parseFloat(Ks||0)};b.__private__.setCharSpace=b.setCharSpace=function(me){if(isNaN(me))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ks=me,this};var Au=0;b.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},b.__private__.setLineCap=b.setLineCap=function(me){var Ve=b.CapJoinStyles[me];if(Ve===void 0)throw new Error("Line cap style of '"+me+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Au=Ve,ue(Ve+" J"),this};var vu=0;b.__private__.setLineJoin=b.setLineJoin=function(me){var Ve=b.CapJoinStyles[me];if(Ve===void 0)throw new Error("Line join style of '"+me+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return vu=Ve,ue(Ve+" j"),this},b.__private__.setLineMiterLimit=b.__private__.setMiterLimit=b.setLineMiterLimit=b.setMiterLimit=function(me){if(me=me||0,isNaN(me))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ue(z(Y(me))+" M"),this},b.GState=SP,b.setGState=function(me){(me=typeof me=="string"?Yr[cn[me]]:Uo(null,me)).equals(Vn)||(ue("/"+me.id+" gs"),Vn=me)};var Uo=function(me,Ve){if(!me||!cn[me]){var lt=!1;for(var St in Yr)if(Yr.hasOwnProperty(St)&&Yr[St].equals(Ve)){lt=!0;break}if(lt)Ve=Yr[St];else{var Qt="GS"+(Object.keys(Yr).length+1).toString(10);Yr[Qt]=Ve,Ve.id=Qt}return me&&(cn[me]=Ve.id),zr.publish("addGState",Ve),Ve}};b.addGState=function(me,Ve){return Uo(me,Ve),this},b.saveGraphicsState=function(){return ue("q"),on.push({key:Bt,size:Me,color:fs}),this},b.restoreGraphicsState=function(){ue("Q");var me=on.pop();return Bt=me.key,Me=me.size,fs=me.color,Vn=null,this},b.setCurrentTransformationMatrix=function(me){return ue(me.toString()+" cm"),this},b.comment=function(me){return ue("#"+me),this};var Gl=function(me,Ve){var lt=me||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return lt},set:function(Zt){isNaN(Zt)||(lt=parseFloat(Zt))}});var St=Ve||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return St},set:function(Zt){isNaN(Zt)||(St=parseFloat(Zt))}});var Qt="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Qt},set:function(Zt){Qt=Zt.toString()}}),this},Bn=function(me,Ve,lt,St){Gl.call(this,me,Ve),this.type="rect";var Qt=lt||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Qt},set:function(hr){isNaN(hr)||(Qt=parseFloat(hr))}});var Zt=St||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Zt},set:function(hr){isNaN(hr)||(Zt=parseFloat(hr))}}),this},jl=function(){this.page=Nr,this.currentPage=oe,this.pages=Ye.slice(0),this.pagesContext=Ht.slice(0),this.x=qt,this.y=fr,this.matrix=lr,this.width=Uc(oe),this.height=Lo(oe),this.outputDestination=yt,this.id="",this.objectNumber=-1};jl.prototype.restore=function(){Nr=this.page,oe=this.currentPage,Ht=this.pagesContext,Ye=this.pages,qt=this.x,fr=this.y,lr=this.matrix,pu(oe,this.width),Sl(oe,this.height),yt=this.outputDestination};var Sf=function(me,Ve,lt,St,Qt){Ct.push(new jl),Nr=oe=0,Ye=[],qt=me,fr=Ve,lr=Qt,Ka([lt,St])};for(var Nc in b.beginFormObject=function(me,Ve,lt,St,Qt){return Sf(me,Ve,lt,St,Qt),this},b.endFormObject=function(me){return function(Ve){if(At[Ve])Ct.pop().restore();else{var lt=new jl,St="Xo"+(Object.keys(vt).length+1).toString(10);lt.id=St,At[Ve]=St,vt[St]=lt,zr.publish("addFormObject",lt),Ct.pop().restore()}}(me),this},b.doFormObject=function(me,Ve){var lt=vt[At[me]];return ue("q"),ue(Ve.toString()+" cm"),ue("/"+lt.id+" Do"),ue("Q"),this},b.getFormObject=function(me){var Ve=vt[At[me]];return{x:Ve.x,y:Ve.y,width:Ve.width,height:Ve.height,matrix:Ve.matrix}},b.save=function(me,Ve){return me=me||"generated.pdf",(Ve=Ve||{}).returnPromise=Ve.returnPromise||!1,Ve.returnPromise===!1?(m1(du(_s()),me),typeof m1.unload=="function"&&Ci.setTimeout&&setTimeout(m1.unload,911),this):new Promise(function(lt,St){try{var Qt=m1(du(_s()),me);typeof m1.unload=="function"&&Ci.setTimeout&&setTimeout(m1.unload,911),lt(Qt)}catch(Zt){St(Zt.message)}})},zn.API)zn.API.hasOwnProperty(Nc)&&(Nc==="events"&&zn.API.events.length?function(me,Ve){var lt,St,Qt;for(Qt=Ve.length-1;Qt!==-1;Qt--)lt=Ve[Qt][0],St=Ve[Qt][1],me.subscribe.apply(me,[lt].concat(typeof St=="function"?[St]:St))}(zr,zn.API.events):b[Nc]=zn.API[Nc]);var Uc=b.getPageWidth=function(me){return(Ht[me=me||oe].mediaBox.topRightX-Ht[me].mediaBox.bottomLeftX)/It},pu=b.setPageWidth=function(me,Ve){Ht[me].mediaBox.topRightX=Ve*It+Ht[me].mediaBox.bottomLeftX},Lo=b.getPageHeight=function(me){return(Ht[me=me||oe].mediaBox.topRightY-Ht[me].mediaBox.bottomLeftY)/It},Sl=b.setPageHeight=function(me,Ve){Ht[me].mediaBox.topRightY=Ve*It+Ht[me].mediaBox.bottomLeftY};return b.internal={pdfEscape:Mi,getStyle:wf,getFont:Vl,getFontSize:Pe,getCharSpace:Ss,getTextColor:Eu,getLineHeight:Fc,getLineHeightFactor:Ai,getLineWidth:gn,write:Qe,getHorizontalCoordinate:so,getVerticalCoordinate:_l,getCoordinateString:zl,getVerticalCoordinateString:tc,collections:{},newObject:xt,newAdditionalObject:Pr,newObjectDeferred:nr,newObjectDeferredBegin:yr,getFilters:nn,putStream:fn,events:zr,scaleFactor:It,pageSize:{getWidth:function(){return Uc(oe)},setWidth:function(me){pu(oe,me)},getHeight:function(){return Lo(oe)},setHeight:function(me){Sl(oe,me)}},encryptionOptions:g,encryption:mo,getEncryptor:function(me){return g!==null?mo.encryptor(me,0):function(Ve){return Ve}},output:No,getNumberOfPages:Da,pages:Ye,out:ue,f2:q,f3:X,getPageInfo:$o,getPageInfoByObjId:yo,getCurrentPageInfo:rv,getPDFVersion:T,Point:Gl,Rectangle:Bn,Matrix:Tt,hasHotfix:Ws},Object.defineProperty(b.internal.pageSize,"width",{get:function(){return Uc(oe)},set:function(me){pu(oe,me)},enumerable:!0,configurable:!0}),Object.defineProperty(b.internal.pageSize,"height",{get:function(){return Lo(oe)},set:function(me){Sl(oe,me)},enumerable:!0,configurable:!0}),(function(me){for(var Ve=0,lt=Re.length;Ve<lt;Ve++){var St=Tn.call(this,me[Ve][0],me[Ve][1],me[Ve][2],Re[Ve][3],!0);y===!1&&(_[St]=!0);var Qt=me[Ve][0].split("-");ea({id:St,fontName:Qt[0],fontStyle:Qt[1]||""})}zr.publish("addFonts",{fonts:_t,dictionary:br})}).call(b,Re),Bt="F1",ga(o,r),zr.publish("initialized"),b}P_.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},P_.prototype.toHexString=function(t){return t.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},P_.prototype.hexToBytes=function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(String.fromCharCode(parseInt(t.substr(r,2),16)));return e.join("")},P_.prototype.processOwnerPassword=function(t,e){return L$(I$(e).substr(0,5),t)},P_.prototype.encryptor=function(t,e){var r=I$(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(n){return L$(r,n)}},SP.prototype.equals=function(t){var e,r="id,objectNumber,equals";if(!t||Ea(t)!==Ea(this))return!1;var n=0;for(e in this)if(!(r.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e)||this[e]!==t[e])return!1;n++}for(e in t)t.hasOwnProperty(e)&&r.indexOf(e)<0&&n--;return n===0},zn.API={events:[]},zn.version="3.0.2";var Ns=zn.API,JX=1,yw=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},o_=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ui=function(t){return t.toFixed(2)},Bm=function(t){return t.toFixed(5)};Ns.__acroform__={};var rh=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},f1e=function(t){return t*JX},Uv=function(t){var e=new ARe,r=Rn.internal.getHeight(t)||0,n=Rn.internal.getWidth(t)||0;return e.BBox=[0,0,Number(Ui(n)),Number(Ui(r))],e},f_t=Ns.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},h_t=Ns.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},d_t=Ns.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},Al=Ns.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return d_t(t,e-1)},vl=Ns.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return f_t(t,e-1)},pl=Ns.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return h_t(t,e-1)},A_t=Ns.__acroform__.calculateCoordinates=function(t,e){var r=e.internal.getHorizontalCoordinate,n=e.internal.getVerticalCoordinate,o=t[0],u=t[1],f=t[2],h=t[3],A={};return A.lowerLeft_X=r(o)||0,A.lowerLeft_Y=n(u+h)||0,A.upperRight_X=r(o+f)||0,A.upperRight_Y=n(u)||0,[Number(Ui(A.lowerLeft_X)),Number(Ui(A.lowerLeft_Y)),Number(Ui(A.upperRight_X)),Number(Ui(A.upperRight_Y))]},v_t=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],r=t._V||t.DV,n=M$(t,r),o=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+o+" "+Ui(n.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC");var u=Uv(t);return u.scope=t.scope,u.stream=e.join(`
`),u}},M$=function(t,e){var r=t.fontSize===0?t.maxFontSize:t.fontSize,n={text:"",fontSize:""},o=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");o=t.multiline?o.map(function(q){return q.split(`
`)}):o.map(function(q){return[q]});var u=r,f=Rn.internal.getHeight(t)||0;f=f<0?-f:f;var h=Rn.internal.getWidth(t)||0;h=h<0?-h:h;var A=function(q,X,Y){if(q+1<o.length){var te=X+" "+o[q+1][0];return rD(te,t,Y).width<=h-4}return!1};u++;e:for(;u>0;){e="",u--;var p,g,y=rD("3",t,u).height,_=t.multiline?f-u:(f-y)/2,b=_+=2,C=0,T=0,B=0;if(u<=0){e=`(...) Tj
`,e+="% Width of Text: "+rD(e,t,u=12).width+", FieldWidth:"+h+`
`;break}for(var L="",P=0,I=0;I<o.length;I++)if(o.hasOwnProperty(I)){var O=!1;if(o[I].length!==1&&B!==o[I].length-1){if((y+2)*(P+2)+2>f)continue e;L+=o[I][B],O=!0,T=I,I--}else{L=(L+=o[I][B]+" ").substr(L.length-1)==" "?L.substr(0,L.length-1):L;var U=parseInt(I),N=A(U,L,u),H=I>=o.length-1;if(N&&!H){L+=" ",B=0;continue}if(N||H){if(H)T=U;else if(t.multiline&&(y+2)*(P+2)+2>f)continue e}else{if(!t.multiline||(y+2)*(P+2)+2>f)continue e;T=U}}for(var z="",G=C;G<=T;G++){var j=o[G];if(t.multiline){if(G===T){z+=j[B]+" ",B=(B+1)%j.length;continue}if(G===C){z+=j[j.length-1]+" ";continue}}z+=j[0]+" "}switch(z=z.substr(z.length-1)==" "?z.substr(0,z.length-1):z,g=rD(z,t,u).width,t.textAlign){case"right":p=h-g-2;break;case"center":p=(h-g)/2;break;default:p=2}e+=Ui(p)+" "+Ui(b)+` Td
`,e+="("+yw(z)+`) Tj
`,e+=-Ui(p)+` 0 Td
`,b=-(u+2),g=0,C=O?T:T+1,P++,L=""}break}return n.text=e,n.fontSize=u,n},rD=function(t,e,r){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),o=e.scope.getStringUnitWidth(t,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:o}},p_t={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},g_t=function(t,e){var r={type:"reference",object:t};e.internal.getPageInfo(t.page).pageContext.annotations.find(function(n){return n.type===r.type&&n.object===r.object})===void 0&&e.internal.getPageInfo(t.page).pageContext.annotations.push(r)},m_t=function(t,e){if(e.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if($A.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(p_t)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");JX=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new vRe,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var o in n)if(n.hasOwnProperty(o)){var u=n[o];u.objId=void 0,u.hasAnnotation&&g_t(u,r)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(r){(function(n,o){var u=!n;for(var f in n||(o.internal.newObjectDeferredBegin(o.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),o.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||o.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(f)){var h=n[f],A=[],p=h.Rect;if(h.Rect&&(h.Rect=A_t(h.Rect,o)),o.internal.newObjectDeferredBegin(h.objId,!0),h.DA=Rn.createDefaultAppearanceStream(h),Ea(h)==="object"&&typeof h.getKeyValueListForStream=="function"&&(A=h.getKeyValueListForStream()),h.Rect=p,h.hasAppearanceStream&&!h.appearanceStreamContent){var g=v_t(h);A.push({key:"AP",value:"<</N "+g+">>"}),o.internal.acroformPlugin.xForms.push(g)}if(h.appearanceStreamContent){var y="";for(var _ in h.appearanceStreamContent)if(h.appearanceStreamContent.hasOwnProperty(_)){var b=h.appearanceStreamContent[_];if(y+="/"+_+" ",y+="<<",Object.keys(b).length>=1||Array.isArray(b)){for(var f in b)if(b.hasOwnProperty(f)){var C=b[f];typeof C=="function"&&(C=C.call(o,h)),y+="/"+f+" "+C+" ",o.internal.acroformPlugin.xForms.indexOf(C)>=0||o.internal.acroformPlugin.xForms.push(C)}}else typeof(C=b)=="function"&&(C=C.call(o,h)),y+="/"+f+" "+C,o.internal.acroformPlugin.xForms.indexOf(C)>=0||o.internal.acroformPlugin.xForms.push(C);y+=">>"}A.push({key:"AP",value:`<<
`+y+">>"})}o.internal.putStream({additionalKeyValues:A,objectId:h.objId}),o.internal.out("endobj")}u&&function(T,B){for(var L in T)if(T.hasOwnProperty(L)){var P=L,I=T[L];B.internal.newObjectDeferredBegin(I.objId,!0),Ea(I)==="object"&&typeof I.putStream=="function"&&I.putStream(),delete T[P]}}(o.internal.acroformPlugin.xForms,o)})(r,t)}),t.internal.acroformPlugin.isInitialized=!0}},dRe=Ns.__acroform__.arrayToPdfArray=function(t,e,r){var n=function(f){return f};if(Array.isArray(t)){for(var o="[",u=0;u<t.length;u++)switch(u!==0&&(o+=" "),Ea(t[u])){case"boolean":case"number":case"object":o+=t[u].toString();break;case"string":t[u].substr(0,1)!=="/"?(e!==void 0&&r&&(n=r.internal.getEncryptor(e)),o+="("+yw(n(t[u].toString()))+")"):o+=t[u].toString()}return o+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},k9=function(t,e,r){var n=function(o){return o};return e!==void 0&&r&&(n=r.internal.getEncryptor(e)),(t=t||"").toString(),"("+yw(n(t))+")"},Wv=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Wv.prototype.toString=function(){return this.objId+" 0 R"},Wv.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Wv.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(u){return u!="content"&&u!="appearanceStreamContent"&&u!="scope"&&u!="objId"&&u.substring(0,1)!="_"});for(var r in e)if(Object.getOwnPropertyDescriptor(this,e[r]).configurable===!1){var n=e[r],o=this[n];o&&(Array.isArray(o)?t.push({key:n,value:dRe(o,this.objId,this.scope)}):o instanceof Wv?(o.scope=this.scope,t.push({key:n,value:o.objId+" 0 R"})):typeof o!="function"&&t.push({key:n,value:o}))}return t};var ARe=function(){Wv.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){t=r.trim()},get:function(){return t||null}})};rh(ARe,Wv);var vRe=function(){Wv.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+yw(r(t))+")"}},set:function(r){t=r}})};rh(vRe,Wv);var $A=function t(){Wv.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(L){if(isNaN(L))throw new Error('Invalid value "'+L+'" for attribute F supplied.');e=L}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Al(e,3)},set:function(L){L?this.F=vl(e,3):this.F=pl(e,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(L){if(isNaN(L))throw new Error('Invalid value "'+L+'" for attribute Ff supplied.');r=L}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(L){n=L!==void 0?L:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(L){n[0]=L}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(L){n[1]=L}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(L){n[2]=L}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(L){n[3]=L}});var o="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return o},set:function(L){switch(L){case"/Btn":case"/Tx":case"/Ch":case"/Sig":o=L;break;default:throw new Error('Invalid value "'+L+'" for attribute FT supplied.')}}});var u=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!u||u.length<1){if(this instanceof xP)return;u="FieldObject"+t.FieldNum++}var L=function(P){return P};return this.scope&&(L=this.scope.internal.getEncryptor(this.objId)),"("+yw(L(u))+")"},set:function(L){u=L.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return u},set:function(L){u=L}});var f="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return f},set:function(L){f=L}});var h="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return h},set:function(L){h=L}});var A=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return A},set:function(L){A=L}});var p=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return p===void 0?50/JX:p},set:function(L){p=L}});var g="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return g},set:function(L){g=L}});var y="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!y||this instanceof xP||this instanceof N1))return k9(y,this.objId,this.scope)},set:function(L){L=L.toString(),y=L}});var _=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(_)return this instanceof xu==0?k9(_,this.objId,this.scope):_},set:function(L){L=L.toString(),_=this instanceof xu==0?L.substr(0,1)==="("?o_(L.substr(1,L.length-2)):o_(L):L}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof xu==1?o_(_.substr(1,_.length-1)):_},set:function(L){L=L.toString(),_=this instanceof xu==1?"/"+L:L}});var b=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(b)return b},set:function(L){this.V=L}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(b)return this instanceof xu==0?k9(b,this.objId,this.scope):b},set:function(L){L=L.toString(),b=this instanceof xu==0?L.substr(0,1)==="("?o_(L.substr(1,L.length-2)):o_(L):L}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof xu==1?o_(b.substr(1,b.length-1)):b},set:function(L){L=L.toString(),b=this instanceof xu==1?"/"+L:L}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var C,T=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return T},set:function(L){L=!!L,T=L}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(C)return C},set:function(L){C=L}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,1)},set:function(L){L?this.Ff=vl(this.Ff,1):this.Ff=pl(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,2)},set:function(L){L?this.Ff=vl(this.Ff,2):this.Ff=pl(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,3)},set:function(L){L?this.Ff=vl(this.Ff,3):this.Ff=pl(this.Ff,3)}});var B=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(B!==null)return B},set:function(L){if([0,1,2].indexOf(L)===-1)throw new Error('Invalid value "'+L+'" for attribute Q supplied.');B=L}}),Object.defineProperty(this,"textAlign",{get:function(){var L;switch(B){case 0:default:L="left";break;case 1:L="center";break;case 2:L="right"}return L},configurable:!0,enumerable:!0,set:function(L){switch(L){case"right":case 2:B=2;break;case"center":case 1:B=1;break;default:B=0}}})};rh($A,Wv);var cS=function(){$A.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(r){t=r}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return dRe(e,this.objId,this.scope)},set:function(r){var n,o;o=[],typeof(n=r)=="string"&&(o=function(u,f,h){h||(h=1);for(var A,p=[];A=f.exec(u);)p.push(A[h]);return p}(n,/\((.*?)\)/g)),e=o}}),this.getOptions=function(){return e},this.setOptions=function(r){e=r,this.sort&&e.sort()},this.addOption=function(r){r=(r=r||"").toString(),e.push(r),this.sort&&e.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();e.indexOf(r)!==-1&&(e.splice(e.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,18)},set:function(r){r?this.Ff=vl(this.Ff,18):this.Ff=pl(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=vl(this.Ff,19):this.Ff=pl(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,20)},set:function(r){r?(this.Ff=vl(this.Ff,20),e.sort()):this.Ff=pl(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,22)},set:function(r){r?this.Ff=vl(this.Ff,22):this.Ff=pl(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,23)},set:function(r){r?this.Ff=vl(this.Ff,23):this.Ff=pl(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,27)},set:function(r){r?this.Ff=vl(this.Ff,27):this.Ff=pl(this.Ff,27)}}),this.hasAppearanceStream=!1};rh(cS,$A);var fS=function(){cS.call(this),this.fontName="helvetica",this.combo=!1};rh(fS,cS);var hS=function(){fS.call(this),this.combo=!0};rh(hS,fS);var V5=function(){hS.call(this),this.edit=!0};rh(V5,hS);var xu=function(){$A.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,15)},set:function(r){r?this.Ff=vl(this.Ff,15):this.Ff=pl(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,16)},set:function(r){r?this.Ff=vl(this.Ff,16):this.Ff=pl(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,17)},set:function(r){r?this.Ff=vl(this.Ff,17):this.Ff=pl(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,26)},set:function(r){r?this.Ff=vl(this.Ff,26):this.Ff=pl(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(u){return u};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var n,o=[];for(n in o.push("<<"),e)o.push("/"+n+" ("+yw(r(e[n]))+")");return o.push(">>"),o.join(`
`)}},set:function(r){Ea(r)==="object"&&(e=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(r){typeof r=="string"&&(e.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(r){t="/"+r}})};rh(xu,$A);var z5=function(){xu.call(this),this.pushButton=!0};rh(z5,xu);var dS=function(){xu.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e!==void 0?e:[]}})};rh(dS,xu);var xP=function(){var t,e;$A.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(o){t=o}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(o){e=o}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var o=function(h){return h};this.scope&&(o=this.scope.internal.getEncryptor(this.objId));var u,f=[];for(u in f.push("<<"),n)f.push("/"+u+" ("+yw(o(n[u]))+")");return f.push(">>"),f.join(`
`)},set:function(o){Ea(o)==="object"&&(n=o)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(o){typeof o=="string"&&(n.CA=o)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(o){r=o}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(o){r="/"+o}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Rn.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};rh(xP,$A),dS.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var r=this.Kids[e];r.appearanceStreamContent=t.createAppearanceStream(r.optionName),r.caption=t.getCA()}},dS.prototype.createOption=function(t){var e=new xP;return e.Parent=this,e.optionName=t,this.Kids.push(e),y_t.call(this.scope,e),e};var G5=function(){xu.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Rn.CheckBox.createAppearanceStream()};rh(G5,xu);var N1=function(){$A.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,13)},set:function(e){e?this.Ff=vl(this.Ff,13):this.Ff=pl(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,21)},set:function(e){e?this.Ff=vl(this.Ff,21):this.Ff=pl(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,23)},set:function(e){e?this.Ff=vl(this.Ff,23):this.Ff=pl(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,24)},set:function(e){e?this.Ff=vl(this.Ff,24):this.Ff=pl(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,25)},set:function(e){e?this.Ff=vl(this.Ff,25):this.Ff=pl(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,26)},set:function(e){e?this.Ff=vl(this.Ff,26):this.Ff=pl(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};rh(N1,$A);var j5=function(){N1.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Al(this.Ff,14)},set:function(t){t?this.Ff=vl(this.Ff,14):this.Ff=pl(this.Ff,14)}}),this.password=!0};rh(j5,N1);var Rn={CheckBox:{createAppearanceStream:function(){return{N:{On:Rn.CheckBox.YesNormal},D:{On:Rn.CheckBox.YesPushDown,Off:Rn.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=Uv(t);e.scope=t.scope;var r=[],n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,o=t.scope.__private__.encodeColorString(t.color),u=M$(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+Ui(Rn.internal.getWidth(t))+" "+Ui(Rn.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+Ui(u.fontSize)+" Tf "+o),r.push("BT"),r.push(u.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join(`
`),e},YesNormal:function(t){var e=Uv(t);e.scope=t.scope;var r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),o=[],u=Rn.internal.getHeight(t),f=Rn.internal.getWidth(t),h=M$(t,t.caption);return o.push("1 g"),o.push("0 0 "+Ui(f)+" "+Ui(u)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+Ui(f-1)+" "+Ui(u-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+r+" "+Ui(h.fontSize)+" Tf "+n),o.push(h.text),o.push("ET"),o.push("Q"),e.stream=o.join(`
`),e},OffPushDown:function(t){var e=Uv(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Ui(Rn.internal.getWidth(t))+" "+Ui(Rn.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join(`
`),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Rn.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Rn.RadioButton.Circle.YesNormal,e.D[t]=Rn.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=Uv(t);e.scope=t.scope;var r=[],n=Rn.internal.getWidth(t)<=Rn.internal.getHeight(t)?Rn.internal.getWidth(t)/4:Rn.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var o=Rn.internal.Bezier_C,u=Number((n*o).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Bm(Rn.internal.getWidth(t)/2)+" "+Bm(Rn.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+u+" "+u+" "+n+" 0 "+n+" c"),r.push("-"+u+" "+n+" -"+n+" "+u+" -"+n+" 0 c"),r.push("-"+n+" -"+u+" -"+u+" -"+n+" 0 -"+n+" c"),r.push(u+" -"+n+" "+n+" -"+u+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
`),e},YesPushDown:function(t){var e=Uv(t);e.scope=t.scope;var r=[],n=Rn.internal.getWidth(t)<=Rn.internal.getHeight(t)?Rn.internal.getWidth(t)/4:Rn.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var o=Number((2*n).toFixed(5)),u=Number((o*Rn.internal.Bezier_C).toFixed(5)),f=Number((n*Rn.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Bm(Rn.internal.getWidth(t)/2)+" "+Bm(Rn.internal.getHeight(t)/2)+" cm"),r.push(o+" 0 m"),r.push(o+" "+u+" "+u+" "+o+" 0 "+o+" c"),r.push("-"+u+" "+o+" -"+o+" "+u+" -"+o+" 0 c"),r.push("-"+o+" -"+u+" -"+u+" -"+o+" 0 -"+o+" c"),r.push(u+" -"+o+" "+o+" -"+u+" "+o+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Bm(Rn.internal.getWidth(t)/2)+" "+Bm(Rn.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+f+" "+f+" "+n+" 0 "+n+" c"),r.push("-"+f+" "+n+" -"+n+" "+f+" -"+n+" 0 c"),r.push("-"+n+" -"+f+" -"+f+" -"+n+" 0 -"+n+" c"),r.push(f+" -"+n+" "+n+" -"+f+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
`),e},OffPushDown:function(t){var e=Uv(t);e.scope=t.scope;var r=[],n=Rn.internal.getWidth(t)<=Rn.internal.getHeight(t)?Rn.internal.getWidth(t)/4:Rn.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var o=Number((2*n).toFixed(5)),u=Number((o*Rn.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Bm(Rn.internal.getWidth(t)/2)+" "+Bm(Rn.internal.getHeight(t)/2)+" cm"),r.push(o+" 0 m"),r.push(o+" "+u+" "+u+" "+o+" 0 "+o+" c"),r.push("-"+u+" "+o+" -"+o+" "+u+" -"+o+" 0 c"),r.push("-"+o+" -"+u+" -"+u+" -"+o+" 0 -"+o+" c"),r.push(u+" -"+o+" "+o+" -"+u+" "+o+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join(`
`),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Rn.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Rn.RadioButton.Cross.YesNormal,e.D[t]=Rn.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=Uv(t);e.scope=t.scope;var r=[],n=Rn.internal.calculateCross(t);return r.push("q"),r.push("1 1 "+Ui(Rn.internal.getWidth(t)-2)+" "+Ui(Rn.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(Ui(n.x1.x)+" "+Ui(n.x1.y)+" m"),r.push(Ui(n.x2.x)+" "+Ui(n.x2.y)+" l"),r.push(Ui(n.x4.x)+" "+Ui(n.x4.y)+" m"),r.push(Ui(n.x3.x)+" "+Ui(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
`),e},YesPushDown:function(t){var e=Uv(t);e.scope=t.scope;var r=Rn.internal.calculateCross(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+Ui(Rn.internal.getWidth(t))+" "+Ui(Rn.internal.getHeight(t))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+Ui(Rn.internal.getWidth(t)-2)+" "+Ui(Rn.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(Ui(r.x1.x)+" "+Ui(r.x1.y)+" m"),n.push(Ui(r.x2.x)+" "+Ui(r.x2.y)+" l"),n.push(Ui(r.x4.x)+" "+Ui(r.x4.y)+" m"),n.push(Ui(r.x3.x)+" "+Ui(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join(`
`),e},OffPushDown:function(t){var e=Uv(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Ui(Rn.internal.getWidth(t))+" "+Ui(Rn.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join(`
`),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};Rn.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Rn.internal.getWidth(t),r=Rn.internal.getHeight(t),n=Math.min(e,r);return{x1:{x:(e-n)/2,y:(r-n)/2+n},x2:{x:(e-n)/2+n,y:(r-n)/2},x3:{x:(e-n)/2,y:(r-n)/2},x4:{x:(e-n)/2+n,y:(r-n)/2+n}}}},Rn.internal.getWidth=function(t){var e=0;return Ea(t)==="object"&&(e=f1e(t.Rect[2])),e},Rn.internal.getHeight=function(t){var e=0;return Ea(t)==="object"&&(e=f1e(t.Rect[3])),e};var y_t=Ns.addField=function(t){if(m_t(this,t),!(t instanceof $A))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};Ns.AcroFormChoiceField=cS,Ns.AcroFormListBox=fS,Ns.AcroFormComboBox=hS,Ns.AcroFormEditBox=V5,Ns.AcroFormButton=xu,Ns.AcroFormPushButton=z5,Ns.AcroFormRadioButton=dS,Ns.AcroFormCheckBox=G5,Ns.AcroFormTextField=N1,Ns.AcroFormPasswordField=j5,Ns.AcroFormAppearance=Rn,Ns.AcroForm={ChoiceField:cS,ListBox:fS,ComboBox:hS,EditBox:V5,Button:xu,PushButton:z5,RadioButton:dS,CheckBox:G5,TextField:N1,PasswordField:j5,Appearance:Rn},zn.AcroForm={ChoiceField:cS,ListBox:fS,ComboBox:hS,EditBox:V5,Button:xu,PushButton:z5,RadioButton:dS,CheckBox:G5,TextField:N1,PasswordField:j5,Appearance:Rn};zn.AcroForm;function pRe(t){return t.reduce(function(e,r,n){return e[r]=n,e},{})}(function(t){var e="addImage_";t.__addimage__={};var r="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},o=t.__addimage__.getImageFileTypeByImageData=function(q,X){var Y,te,K,ce,ae,le=r;if((X=X||r)==="RGBA"||q.data!==void 0&&q.data instanceof Uint8ClampedArray&&"height"in q&&"width"in q)return"RGBA";if(N(q))for(ae in n)for(K=n[ae],Y=0;Y<K.length;Y+=1){for(ce=!0,te=0;te<K[Y].length;te+=1)if(K[Y][te]!==void 0&&K[Y][te]!==q[te]){ce=!1;break}if(ce===!0){le=ae;break}}else for(ae in n)for(K=n[ae],Y=0;Y<K.length;Y+=1){for(ce=!0,te=0;te<K[Y].length;te+=1)if(K[Y][te]!==void 0&&K[Y][te]!==q.charCodeAt(te)){ce=!1;break}if(ce===!0){le=ae;break}}return le===r&&X!==r&&(le=X),le},u=function q(X){for(var Y=this.internal.write,te=this.internal.putStream,K=(0,this.internal.getFilters)();K.indexOf("FlateEncode")!==-1;)K.splice(K.indexOf("FlateEncode"),1);X.objectId=this.internal.newObject();var ce=[];if(ce.push({key:"Type",value:"/XObject"}),ce.push({key:"Subtype",value:"/Image"}),ce.push({key:"Width",value:X.width}),ce.push({key:"Height",value:X.height}),X.colorSpace===L.INDEXED?ce.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(X.palette.length/3-1)+" "+("sMask"in X&&X.sMask!==void 0?X.objectId+2:X.objectId+1)+" 0 R]"}):(ce.push({key:"ColorSpace",value:"/"+X.colorSpace}),X.colorSpace===L.DEVICE_CMYK&&ce.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ce.push({key:"BitsPerComponent",value:X.bitsPerComponent}),"decodeParameters"in X&&X.decodeParameters!==void 0&&ce.push({key:"DecodeParms",value:"<<"+X.decodeParameters+">>"}),"transparency"in X&&Array.isArray(X.transparency)){for(var ae="",le=0,pe=X.transparency.length;le<pe;le++)ae+=X.transparency[le]+" "+X.transparency[le]+" ";ce.push({key:"Mask",value:"["+ae+"]"})}X.sMask!==void 0&&ce.push({key:"SMask",value:X.objectId+1+" 0 R"});var ie=X.filter!==void 0?["/"+X.filter]:void 0;if(te({data:X.data,additionalKeyValues:ce,alreadyAppliedFilters:ie,objectId:X.objectId}),Y("endobj"),"sMask"in X&&X.sMask!==void 0){var he=(X.predictor!=null?"/Predictor "+X.predictor:"")+" /Colors 1 /BitsPerComponent 8 /Columns "+X.width,re={width:X.width,height:X.height,colorSpace:"DeviceGray",bitsPerComponent:X.bitsPerComponent,decodeParameters:he,data:X.sMask};"filter"in X&&(re.filter=X.filter),q.call(this,re)}if(X.colorSpace===L.INDEXED){var oe=this.internal.newObject();te({data:z(new Uint8Array(X.palette)),objectId:oe}),Y("endobj")}},f=function(){var q=this.internal.collections[e+"images"];for(var X in q)u.call(this,q[X])},h=function(){var q,X=this.internal.collections[e+"images"],Y=this.internal.write;for(var te in X)Y("/I"+(q=X[te]).index,q.objectId,"0","R")},A=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",f),this.internal.events.subscribe("putXobjectDict",h))},p=function(){var q=this.internal.collections[e+"images"];return A.call(this),q},g=function(){return Object.keys(this.internal.collections[e+"images"]).length},y=function(q){return typeof t["process"+q.toUpperCase()]=="function"},_=function(q){return Ea(q)==="object"&&q.nodeType===1},b=function(q,X){if(q.nodeName==="IMG"&&q.hasAttribute("src")){var Y=""+q.getAttribute("src");if(Y.indexOf("data:image/")===0)return Q5(unescape(Y).split("base64,").pop());var te=t.loadFile(Y,!0);if(te!==void 0)return te}if(q.nodeName==="CANVAS"){if(q.width===0||q.height===0)throw new Error("Given canvas must have data. Canvas width: "+q.width+", height: "+q.height);var K;switch(X){case"PNG":K="image/png";break;case"WEBP":K="image/webp";break;default:K="image/jpeg"}return Q5(q.toDataURL(K,1).split("base64,").pop())}},C=function(q){var X=this.internal.collections[e+"images"];if(X){for(var Y in X)if(q===X[Y].alias)return X[Y]}},T=function(q,X,Y){return q||X||(q=-96,X=-96),q<0&&(q=-1*Y.width*72/q/this.internal.scaleFactor),X<0&&(X=-1*Y.height*72/X/this.internal.scaleFactor),q===0&&(q=X*Y.width/Y.height),X===0&&(X=q*Y.height/Y.width),[q,X]},B=function(q,X,Y,te,K,ce){var ae=T.call(this,Y,te,K),le=this.internal.getCoordinateString,pe=this.internal.getVerticalCoordinateString,ie=p.call(this);if(Y=ae[0],te=ae[1],ie[K.index]=K,ce){ce*=Math.PI/180;var he=Math.cos(ce),re=Math.sin(ce),oe=function(_e){return _e.toFixed(4)},ye=[oe(he),oe(re),oe(-1*re),oe(he),0,0,"cm"]}this.internal.write("q"),ce?(this.internal.write([1,"0","0",1,le(q),pe(X+te),"cm"].join(" ")),this.internal.write(ye.join(" ")),this.internal.write([le(Y),"0","0",le(te),"0","0","cm"].join(" "))):this.internal.write([le(Y),"0","0",le(te),le(q),pe(X+te),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+K.index+" Do"),this.internal.write("Q")},L=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var P=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},I=t.__addimage__.sHashCode=function(q){var X,Y,te=0;if(typeof q=="string")for(Y=q.length,X=0;X<Y;X++)te=(te<<5)-te+q.charCodeAt(X),te|=0;else if(N(q))for(Y=q.byteLength/2,X=0;X<Y;X++)te=(te<<5)-te+q[X],te|=0;return te},O=t.__addimage__.validateStringAsBase64=function(q){(q=q||"").toString().trim();var X=!0;return q.length===0&&(X=!1),q.length%4!=0&&(X=!1),/^[A-Za-z0-9+/]+$/.test(q.substr(0,q.length-2))===!1&&(X=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(q.substr(-2))===!1&&(X=!1),X},U=t.__addimage__.extractImageFromDataUrl=function(q){if(q==null||!(q=q.trim()).startsWith("data:"))return null;var X=q.indexOf(",");return X<0?null:q.substring(0,X).trim().endsWith("base64")?q.substring(X+1):null};t.__addimage__.isArrayBuffer=function(q){return q instanceof ArrayBuffer};var N=t.__addimage__.isArrayBufferView=function(q){return q instanceof Int8Array||q instanceof Uint8Array||q instanceof Uint8ClampedArray||q instanceof Int16Array||q instanceof Uint16Array||q instanceof Int32Array||q instanceof Uint32Array||q instanceof Float32Array||q instanceof Float64Array},H=t.__addimage__.binaryStringToUint8Array=function(q){for(var X=q.length,Y=new Uint8Array(X),te=0;te<X;te++)Y[te]=q.charCodeAt(te);return Y},z=t.__addimage__.arrayBufferToBinaryString=function(q){for(var X="",Y=N(q)?q:new Uint8Array(q),te=0;te<Y.length;te+=8192)X+=String.fromCharCode.apply(null,Y.subarray(te,te+8192));return X};t.addImage=function(){var q,X,Y,te,K,ce,ae,le,pe;if(typeof arguments[1]=="number"?(X=r,Y=arguments[1],te=arguments[2],K=arguments[3],ce=arguments[4],ae=arguments[5],le=arguments[6],pe=arguments[7]):(X=arguments[1],Y=arguments[2],te=arguments[3],K=arguments[4],ce=arguments[5],ae=arguments[6],le=arguments[7],pe=arguments[8]),Ea(q=arguments[0])==="object"&&!_(q)&&"imageData"in q){var ie=q;q=ie.imageData,X=ie.format||X||r,Y=ie.x||Y||0,te=ie.y||te||0,K=ie.w||ie.width||K,ce=ie.h||ie.height||ce,ae=ie.alias||ae,le=ie.compression||le,pe=ie.rotation||ie.angle||pe}var he=this.internal.getFilters();if(le===void 0&&he.indexOf("FlateEncode")!==-1&&(le="SLOW"),isNaN(Y)||isNaN(te))throw new Error("Invalid coordinates passed to jsPDF.addImage");A.call(this);var re=G.call(this,q,X,ae,le);return B.call(this,Y,te,K,ce,re,pe),this};var G=function(q,X,Y,te){var K,ce,ae;if(typeof q=="string"&&o(q)===r){q=unescape(q);var le=j(q,!1);(le!==""||(le=t.loadFile(q,!0))!==void 0)&&(q=le)}if(_(q)&&(q=b(q,X)),X=o(q,X),!y(X))throw new Error("addImage does not support files of type '"+X+"', please ensure that a plugin for '"+X+"' support is added.");if(((ae=Y)==null||ae.length===0)&&(Y=function(pe){return typeof pe=="string"||N(pe)?I(pe):N(pe.data)?I(pe.data):null}(q)),(K=C.call(this,Y))||(q instanceof Uint8Array||X==="RGBA"||(ce=q,q=H(q)),K=this["process"+X.toUpperCase()](q,g.call(this),Y,function(pe){return pe&&typeof pe=="string"&&(pe=pe.toUpperCase()),pe in t.image_compression?pe:P.NONE}(te),ce)),!K)throw new Error("An unknown error occurred whilst processing the image.");return K},j=t.__addimage__.convertBase64ToBinaryString=function(q,X){X=typeof X!="boolean"||X;var Y,te="";if(typeof q=="string"){var K;Y=(K=U(q))!==null&&K!==void 0?K:q;try{te=Q5(Y)}catch(ce){if(X)throw O(Y)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ce.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return te};t.getImageProperties=function(q){var X,Y,te="";if(_(q)&&(q=b(q)),typeof q=="string"&&o(q)===r&&((te=j(q,!1))===""&&(te=t.loadFile(q)||""),q=te),Y=o(q),!y(Y))throw new Error("addImage does not support files of type '"+Y+"', please ensure that a plugin for '"+Y+"' support is added.");if(q instanceof Uint8Array||(q=H(q)),!(X=this["process"+Y.toUpperCase()](q)))throw new Error("An unknown error occurred whilst processing the image");return X.fileType=Y,X}})(zn.API),function(t){var e=function(r){if(r!==void 0&&r!="")return!0};zn.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(r){for(var n,o,u,f=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString,A=this.internal.getPageInfoByObjId(r.objId),p=r.pageContext.annotations,g=!1,y=0;y<p.length&&!g;y++)switch((n=p[y]).type){case"link":(e(n.options.url)||e(n.options.pageNumber))&&(g=!0);break;case"reference":case"text":case"freetext":g=!0}if(g!=0){this.internal.write("/Annots [");for(var _=0;_<p.length;_++){n=p[_];var b=this.internal.pdfEscape,C=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var T=this.internal.newAdditionalObject(),B=this.internal.newAdditionalObject(),L=this.internal.getEncryptor(T.objId),P=n.title||"Note";u="<</Type /Annot /Subtype /Text "+(o="/Rect ["+f(n.bounds.x)+" "+h(n.bounds.y+n.bounds.h)+" "+f(n.bounds.x+n.bounds.w)+" "+h(n.bounds.y)+"] ")+"/Contents ("+b(L(n.contents))+")",u+=" /Popup "+B.objId+" 0 R",u+=" /P "+A.objId+" 0 R",u+=" /T ("+b(L(P))+") >>",T.content=u;var I=T.objId+" 0 R";u="<</Type /Annot /Subtype /Popup "+(o="/Rect ["+f(n.bounds.x+30)+" "+h(n.bounds.y+n.bounds.h)+" "+f(n.bounds.x+n.bounds.w+30)+" "+h(n.bounds.y)+"] ")+" /Parent "+I,n.open&&(u+=" /Open true"),u+=" >>",B.content=u,this.internal.write(T.objId,"0 R",B.objId,"0 R");break;case"freetext":o="/Rect ["+f(n.bounds.x)+" "+h(n.bounds.y)+" "+f(n.bounds.x+n.bounds.w)+" "+h(n.bounds.y+n.bounds.h)+"] ";var O=n.color||"#000000";u="<</Type /Annot /Subtype /FreeText "+o+"/Contents ("+b(C(n.contents))+")",u+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+O+")",u+=" /Border [0 0 0]",u+=" >>",this.internal.write(u);break;case"link":if(n.options.name){var U=this.annotations._nameMap[n.options.name];n.options.pageNumber=U.page,n.options.top=U.y}else n.options.top||(n.options.top=0);if(o="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",u="",n.options.url)u="<</Type /Annot /Subtype /Link "+o+"/Border [0 0 0] /A <</S /URI /URI ("+b(C(n.options.url))+") >>";else if(n.options.pageNumber)switch(u="<</Type /Annot /Subtype /Link "+o+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":u+=" /Fit]";break;case"FitH":u+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,u+=" /FitV "+n.options.left+"]";break;default:var N=h(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),u+=" /XYZ "+n.options.left+" "+N+" "+n.options.zoom+"]"}u!=""&&(u+=" >>",this.internal.write(u))}}this.internal.write("]")}}]),t.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},t.link=function(r,n,o,u,f){var h=this.internal.getCurrentPageInfo(),A=this.internal.getCoordinateString,p=this.internal.getVerticalCoordinateString;h.pageContext.annotations.push({finalBounds:{x:A(r),y:p(n),w:A(r+o),h:p(n+u)},options:f,type:"link"})},t.textWithLink=function(r,n,o,u){var f,h,A=this.getTextWidth(r),p=this.internal.getLineHeight()/this.internal.scaleFactor;if(u.maxWidth!==void 0){h=u.maxWidth;var g=this.splitTextToSize(r,h).length;f=Math.ceil(p*g)}else h=A,f=p;return this.text(r,n,o,u),o+=.2*p,u.align==="center"&&(n-=A/2),u.align==="right"&&(n-=A),this.link(n,o-p,h,f,u),A},t.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}}(zn.API),function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];t.__arabicParser__={};var u=t.__arabicParser__.isInArabicSubstitutionA=function(T){return e[T.charCodeAt(0)]!==void 0},f=t.__arabicParser__.isArabicLetter=function(T){return typeof T=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(T)},h=t.__arabicParser__.isArabicEndLetter=function(T){return f(T)&&u(T)&&e[T.charCodeAt(0)].length<=2},A=t.__arabicParser__.isArabicAlfLetter=function(T){return f(T)&&o.indexOf(T.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(T){return f(T)&&u(T)&&e[T.charCodeAt(0)].length>=1};var p=t.__arabicParser__.arabicLetterHasFinalForm=function(T){return f(T)&&u(T)&&e[T.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(T){return f(T)&&u(T)&&e[T.charCodeAt(0)].length>=3};var g=t.__arabicParser__.arabicLetterHasMedialForm=function(T){return f(T)&&u(T)&&e[T.charCodeAt(0)].length==4},y=t.__arabicParser__.resolveLigatures=function(T){var B=0,L=r,P="",I=0;for(B=0;B<T.length;B+=1)L[T.charCodeAt(B)]!==void 0?(I++,typeof(L=L[T.charCodeAt(B)])=="number"&&(P+=String.fromCharCode(L),L=r,I=0),B===T.length-1&&(L=r,P+=T.charAt(B-(I-1)),B-=I-1,I=0)):(L=r,P+=T.charAt(B-I),B-=I,I=0);return P};t.__arabicParser__.isArabicDiacritic=function(T){return T!==void 0&&n[T.charCodeAt(0)]!==void 0};var _=t.__arabicParser__.getCorrectForm=function(T,B,L){return f(T)?u(T)===!1?-1:!p(T)||!f(B)&&!f(L)||!f(L)&&h(B)||h(T)&&!f(B)||h(T)&&A(B)||h(T)&&h(B)?0:g(T)&&f(B)&&!h(B)&&f(L)&&p(L)?3:h(T)||!f(L)?1:2:-1},b=function(T){var B=0,L=0,P=0,I="",O="",U="",N=(T=T||"").split("\\s+"),H=[];for(B=0;B<N.length;B+=1){for(H.push(""),L=0;L<N[B].length;L+=1)I=N[B][L],O=N[B][L-1],U=N[B][L+1],f(I)?(P=_(I,O,U),H[B]+=P!==-1?String.fromCharCode(e[I.charCodeAt(0)][P]):I):H[B]+=I;H[B]=y(H[B])}return H.join(" ")},C=t.__arabicParser__.processArabic=t.processArabic=function(){var T,B=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,L=[];if(Array.isArray(B)){var P=0;for(L=[],P=0;P<B.length;P+=1)Array.isArray(B[P])?L.push([b(B[P][0]),B[P][1],B[P][2]]):L.push([b(B[P])]);T=L}else T=b(B);return typeof arguments[0]=="string"?T:(arguments[0].text=T,arguments[0])};t.events.push(["preProcessText",C])}(zn.API),zn.API.autoPrint=function(t){var e;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})),this},function(t){var e=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(h){r=h}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(h){n=isNaN(h)||Number.isInteger(h)===!1||h<0?150:h,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var o=300;Object.defineProperty(this,"height",{get:function(){return o},set:function(h){o=isNaN(h)||Number.isInteger(h)===!1||h<0?300:h,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=o+1)}});var u=[];Object.defineProperty(this,"childNodes",{get:function(){return u},set:function(h){u=h}});var f={};Object.defineProperty(this,"style",{get:function(){return f},set:function(h){f=h}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(r,n){var o;if((r=r||"2d")!=="2d")return null;for(o in n)this.pdf.context2d.hasOwnProperty(o)&&(this.pdf.context2d[o]=n[o]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(zn.API),function(t){var e={left:0,top:0,bottom:0,right:0},r=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new u,this.internal.__cell__.pages=1},u=function(){var A=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return A},set:function(T){A=T}});var p=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return p},set:function(T){p=T}});var g=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return g},set:function(T){g=T}});var y=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return y},set:function(T){y=T}});var _=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return _},set:function(T){_=T}});var b=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return b},set:function(T){b=T}});var C=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return C},set:function(T){C=T}}),this};u.prototype.clone=function(){return new u(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},u.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(A){return n.call(this),this.internal.__cell__.headerFunction=typeof A=="function"?A:void 0,this},t.getTextDimensions=function(A,p){n.call(this);var g=(p=p||{}).fontSize||this.getFontSize(),y=p.font||this.getFont(),_=p.scaleFactor||this.internal.scaleFactor,b=0,C=0,T=0,B=this;if(!Array.isArray(A)&&typeof A!="string"){if(typeof A!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");A=String(A)}var L=p.maxWidth;L>0?typeof A=="string"?A=this.splitTextToSize(A,L):Object.prototype.toString.call(A)==="[object Array]"&&(A=A.reduce(function(I,O){return I.concat(B.splitTextToSize(O,L))},[])):A=Array.isArray(A)?A:[A];for(var P=0;P<A.length;P++)b<(T=this.getStringUnitWidth(A[P],{font:y})*g)&&(b=T);return b!==0&&(C=A.length),{w:b/=_,h:Math.max((C*g*this.getLineHeightFactor()-g*(this.getLineHeightFactor()-1))/_,0)}},t.cellAddPage=function(){n.call(this),this.addPage();var A=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new u(A.left,A.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var f=t.cell=function(){var A;A=arguments[0]instanceof u?arguments[0]:new u(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var p=this.internal.__cell__.lastCell,g=this.internal.__cell__.padding,y=this.internal.__cell__.margins||e,_=this.internal.__cell__.tableHeaderRow,b=this.internal.__cell__.printHeaders;return p.lineNumber!==void 0&&(p.lineNumber===A.lineNumber?(A.x=(p.x||0)+(p.width||0),A.y=p.y||0):p.y+p.height+A.height+y.bottom>this.getPageHeight()?(this.cellAddPage(),A.y=y.top,b&&_&&(this.printHeaderRow(A.lineNumber,!0),A.y+=_[0].height)):A.y=p.y+p.height||A.y),A.text[0]!==void 0&&(this.rect(A.x,A.y,A.width,A.height,r===!0?"FD":void 0),A.align==="right"?this.text(A.text,A.x+A.width-g,A.y+g,{align:"right",baseline:"top"}):A.align==="center"?this.text(A.text,A.x+A.width/2,A.y+g,{align:"center",baseline:"top",maxWidth:A.width-g-g}):this.text(A.text,A.x+g,A.y+g,{align:"left",baseline:"top",maxWidth:A.width-g-g})),this.internal.__cell__.lastCell=A,this};t.table=function(A,p,g,y,_){if(n.call(this),!g)throw new Error("No data for PDF table.");var b,C,T,B,L=[],P=[],I=[],O={},U={},N=[],H=[],z=(_=_||{}).autoSize||!1,G=_.printHeaders!==!1,j=_.css&&_.css["font-size"]!==void 0?16*_.css["font-size"]:_.fontSize||12,q=_.margins||Object.assign({width:this.getPageWidth()},e),X=typeof _.padding=="number"?_.padding:3,Y=_.headerBackgroundColor||"#c8c8c8",te=_.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=G,this.internal.__cell__.margins=q,this.internal.__cell__.table_font_size=j,this.internal.__cell__.padding=X,this.internal.__cell__.headerBackgroundColor=Y,this.internal.__cell__.headerTextColor=te,this.setFontSize(j),y==null)P=L=Object.keys(g[0]),I=L.map(function(){return"left"});else if(Array.isArray(y)&&Ea(y[0])==="object")for(L=y.map(function(ie){return ie.name}),P=y.map(function(ie){return ie.prompt||ie.name||""}),I=y.map(function(ie){return ie.align||"left"}),b=0;b<y.length;b+=1)U[y[b].name]=.7499990551181103*y[b].width;else Array.isArray(y)&&typeof y[0]=="string"&&(P=L=y,I=L.map(function(){return"left"}));if(z||Array.isArray(y)&&typeof y[0]=="string")for(b=0;b<L.length;b+=1){for(O[B=L[b]]=g.map(function(ie){return ie[B]}),this.setFont(void 0,"bold"),N.push(this.getTextDimensions(P[b],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),C=O[B],this.setFont(void 0,"normal"),T=0;T<C.length;T+=1)N.push(this.getTextDimensions(C[T],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);U[B]=Math.max.apply(null,N)+X+X,N=[]}if(G){var K={};for(b=0;b<L.length;b+=1)K[L[b]]={},K[L[b]].text=P[b],K[L[b]].align=I[b];var ce=h.call(this,K,U);H=L.map(function(ie){return new u(A,p,U[ie],ce,K[ie].text,void 0,K[ie].align)}),this.setTableHeaderRow(H),this.printHeaderRow(1,!1)}var ae=y.reduce(function(ie,he){return ie[he.name]=he.align,ie},{});for(b=0;b<g.length;b+=1){"rowStart"in _&&_.rowStart instanceof Function&&_.rowStart({row:b,data:g[b]},this);var le=h.call(this,g[b],U);for(T=0;T<L.length;T+=1){var pe=g[b][L[T]];"cellStart"in _&&_.cellStart instanceof Function&&_.cellStart({row:b,col:T,data:pe},this),f.call(this,new u(A,p,U[L[T]],le,pe,b+2,ae[L[T]]))}}return this.internal.__cell__.table_x=A,this.internal.__cell__.table_y=p,this};var h=function(A,p){var g=this.internal.__cell__.padding,y=this.internal.__cell__.table_font_size,_=this.internal.scaleFactor;return Object.keys(A).map(function(b){var C=A[b];return this.splitTextToSize(C.hasOwnProperty("text")?C.text:C,p[b]-g-g)},this).map(function(b){return this.getLineHeightFactor()*b.length*y/_+g+g},this).reduce(function(b,C){return Math.max(b,C)},0)};t.setTableHeaderRow=function(A){n.call(this),this.internal.__cell__.tableHeaderRow=A},t.printHeaderRow=function(A,p){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var g;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var y=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new u(y[0],y[1],y[2],y[3],void 0,-1)}this.setFont(void 0,"bold");for(var _=[],b=0;b<this.internal.__cell__.tableHeaderRow.length;b+=1){g=this.internal.__cell__.tableHeaderRow[b].clone(),p&&(g.y=this.internal.__cell__.margins.top||0,_.push(g)),g.lineNumber=A;var C=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),f.call(this,g),this.setTextColor(C)}_.length>0&&this.setTableHeaderRow(_),this.setFont(void 0,"normal"),r=!1}}(zn.API);var gRe={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},mRe=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],D$=pRe(mRe),yRe=[100,200,300,400,500,600,700,800,900],w_t=pRe(yRe);function F9(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),r=function(u){return gRe[u=u||"normal"]?u:"normal"}(t.style),n=function(u){return u?typeof u=="number"?u>=100&&u<=900&&u%100==0?u:400:/^\d00$/.test(u)?parseInt(u):u==="bold"?700:400:400}(t.weight),o=function(u){return typeof D$[u=u||"normal"]=="number"?u:"normal"}(t.stretch);return{family:e,style:r,weight:n,stretch:o,src:t.src||[],ref:t.ref||{name:e,style:[o,r,n].join(" ")}}}function h1e(t,e,r,n){var o;for(o=r;o>=0&&o<e.length;o+=n)if(t[e[o]])return t[e[o]];for(o=r;o>=0&&o<e.length;o-=n)if(t[e[o]])return t[e[o]]}var b_t={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},d1e={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function A1e(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function v1e(t){return t.trimLeft()}function __t(t,e){for(var r=0;r<t.length;){if(t.charAt(r)===e)return[t.substring(0,r),t.substring(r+1)];r+=1}return null}function S_t(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],t.substring(e[0].length)]}var nD,p1e,g1e,s_,iD,m1e,y1e,w1e,N9=["times"];function b1e(t,e,r,n){var o=4,u=S1e;switch(n){case zn.API.image_compression.FAST:o=1,u=_1e;break;case zn.API.image_compression.MEDIUM:o=6,u=x1e;break;case zn.API.image_compression.SLOW:o=9,u=C1e}t=function(h,A,p,g){for(var y,_=h.length/A,b=new Uint8Array(h.length+_),C=[x_t,_1e,S1e,x1e,C1e],T=0;T<_;T+=1){var B=T*A,L=h.subarray(B,B+A);if(g)b.set(g(L,p,y),B+T);else{for(var P=C.length,I=[],O=0;O<P;O+=1)I[O]=C[O](L,p,y);var U=T_t(I.concat());b.set(I[U],B+T)}y=L}return b}(t,e,r,u);var f=C$(t,{level:o});return zn.API.__addimage__.arrayBufferToBinaryString(f)}function x_t(t){var e=Array.apply([],t);return e.unshift(0),e}function _1e(t,e){var r=t.length,n=[];n[0]=1;for(var o=0;o<r;o+=1){var u=t[o-e]||0;n[o+1]=t[o]-u+256&255}return n}function S1e(t,e,r){var n=t.length,o=[];o[0]=2;for(var u=0;u<n;u+=1){var f=r&&r[u]||0;o[u+1]=t[u]-f+256&255}return o}function x1e(t,e,r){var n=t.length,o=[];o[0]=3;for(var u=0;u<n;u+=1){var f=t[u-e]||0,h=r&&r[u]||0;o[u+1]=t[u]+256-(f+h>>>1)&255}return o}function C1e(t,e,r){var n=t.length,o=[];o[0]=4;for(var u=0;u<n;u+=1){var f=C_t(t[u-e]||0,r&&r[u]||0,r&&r[u-e]||0);o[u+1]=t[u]-f+256&255}return o}function C_t(t,e,r){if(t===e&&e===r)return t;var n=Math.abs(e-r),o=Math.abs(t-r),u=Math.abs(t+e-r-r);return n<=o&&n<=u?t:o<=u?e:r}function T_t(t){var e=t.map(function(r){return r.reduce(function(n,o){return n+Math.abs(o)},0)});return e.indexOf(Math.min.apply(null,e))}function U9(t,e,r){var n=e*r,o=Math.floor(n/8),u=16-(n-8*o+r),f=(1<<r)-1;return wRe(t,o)>>u&f}function T1e(t,e,r,n){var o=r*n,u=Math.floor(o/8),f=16-(o-8*u+n),h=(1<<n)-1,A=(e&h)<<f;(function(p,g,y){if(g+1<p.byteLength)p.setUint16(g,y,!1);else{var _=y>>8&255;p.setUint8(g,_)}})(t,u,wRe(t,u)&~(h<<f)&65535|A)}function wRe(t,e){return e+1<t.byteLength?t.getUint16(e,!1):t.getUint8(e)<<8}function E_t(t){var e=0;if(t[e++]!==71||t[e++]!==73||t[e++]!==70||t[e++]!==56||(t[e++]+1&253)!=56||t[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=t[e++]|t[e++]<<8,n=t[e++]|t[e++]<<8,o=t[e++],u=o>>7,f=1<<1+(7&o);t[e++],t[e++];var h=null,A=null;u&&(h=e,A=f,e+=3*f);var p=!0,g=[],y=0,_=null,b=0,C=null;for(this.width=r,this.height=n;p&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(t[e]!==11||t[e+1]==78&&t[e+2]==69&&t[e+3]==84&&t[e+4]==83&&t[e+5]==67&&t[e+6]==65&&t[e+7]==80&&t[e+8]==69&&t[e+9]==50&&t[e+10]==46&&t[e+11]==48&&t[e+12]==3&&t[e+13]==1&&t[e+16]==0)e+=14,C=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((q=t[e++])>=0))throw Error("Invalid block size");if(q===0)break;e+=q}break;case 249:if(t[e++]!==4||t[e+4]!==0)throw new Error("Invalid graphics extension block.");var T=t[e++];y=t[e++]|t[e++]<<8,_=t[e++],1&T||(_=null),b=T>>2&7,e++;break;case 254:for(;;){if(!((q=t[e++])>=0))throw Error("Invalid block size");if(q===0)break;e+=q}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var B=t[e++]|t[e++]<<8,L=t[e++]|t[e++]<<8,P=t[e++]|t[e++]<<8,I=t[e++]|t[e++]<<8,O=t[e++],U=O>>6&1,N=1<<1+(7&O),H=h,z=A,G=!1;O>>7&&(G=!0,H=e,z=N,e+=3*N);var j=e;for(e++;;){var q;if(!((q=t[e++])>=0))throw Error("Invalid block size");if(q===0)break;e+=q}g.push({x:B,y:L,width:P,height:I,has_local_palette:G,palette_offset:H,palette_size:z,data_offset:j,data_length:e-j,transparent_index:_,interlaced:!!U,delay:y,disposal:b});break;case 59:p=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return g.length},this.loopCount=function(){return C},this.frameInfo=function(X){if(X<0||X>=g.length)throw new Error("Frame index out of range.");return g[X]},this.decodeAndBlitFrameBGRA=function(X,Y){var te=this.frameInfo(X),K=te.width*te.height,ce=new Uint8Array(K);E1e(t,te.data_offset,ce,K);var ae=te.palette_offset,le=te.transparent_index;le===null&&(le=256);var pe=te.width,ie=r-pe,he=pe,re=4*(te.y*r+te.x),oe=4*((te.y+te.height)*r+te.x),ye=re,_e=4*ie;te.interlaced===!0&&(_e+=4*r*7);for(var Ce=8,ne=0,xe=ce.length;ne<xe;++ne){var De=ce[ne];if(he===0&&(he=pe,(ye+=_e)>=oe&&(_e=4*ie+4*r*(Ce-1),ye=re+(pe+ie)*(Ce<<1),Ce>>=1)),De===le)ye+=4;else{var ze=t[ae+3*De],Ye=t[ae+3*De+1],Ne=t[ae+3*De+2];Y[ye++]=Ne,Y[ye++]=Ye,Y[ye++]=ze,Y[ye++]=255}--he}},this.decodeAndBlitFrameRGBA=function(X,Y){var te=this.frameInfo(X),K=te.width*te.height,ce=new Uint8Array(K);E1e(t,te.data_offset,ce,K);var ae=te.palette_offset,le=te.transparent_index;le===null&&(le=256);var pe=te.width,ie=r-pe,he=pe,re=4*(te.y*r+te.x),oe=4*((te.y+te.height)*r+te.x),ye=re,_e=4*ie;te.interlaced===!0&&(_e+=4*r*7);for(var Ce=8,ne=0,xe=ce.length;ne<xe;++ne){var De=ce[ne];if(he===0&&(he=pe,(ye+=_e)>=oe&&(_e=4*ie+4*r*(Ce-1),ye=re+(pe+ie)*(Ce<<1),Ce>>=1)),De===le)ye+=4;else{var ze=t[ae+3*De],Ye=t[ae+3*De+1],Ne=t[ae+3*De+2];Y[ye++]=ze,Y[ye++]=Ye,Y[ye++]=Ne,Y[ye++]=255}--he}}}function E1e(t,e,r,n){for(var o=t[e++],u=1<<o,f=u+1,h=f+1,A=o+1,p=(1<<A)-1,g=0,y=0,_=0,b=t[e++],C=new Int32Array(4096),T=null;;){for(;g<16&&b!==0;)y|=t[e++]<<g,g+=8,b===1?b=t[e++]:--b;if(g<A)break;var B=y&p;if(y>>=A,g-=A,B!==u){if(B===f)break;for(var L=B<h?B:T,P=0,I=L;I>u;)I=C[I]>>8,++P;var O=I;if(_+P+(L!==B?1:0)>n)return void Po.log("Warning, gif stream longer than expected.");r[_++]=O;var U=_+=P;for(L!==B&&(r[_++]=O),I=L;P--;)I=C[I],r[--U]=255&I,I>>=8;T!==null&&h<4096&&(C[h++]=T<<8|O,h>=p+1&&A<12&&(++A,p=p<<1|1)),T=B}else h=f+1,p=(1<<(A=o+1))-1,T=null}return _!==n&&Po.log("Warning, gif stream shorter than expected."),r}/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function H9(t){var e,r,n,o,u,f=Math.floor,h=new Array(64),A=new Array(64),p=new Array(64),g=new Array(64),y=new Array(65535),_=new Array(65535),b=new Array(64),C=new Array(64),T=[],B=0,L=7,P=new Array(64),I=new Array(64),O=new Array(64),U=new Array(256),N=new Array(2048),H=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],z=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],G=[0,1,2,3,4,5,6,7,8,9,10,11],j=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],q=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],X=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Y=[0,1,2,3,4,5,6,7,8,9,10,11],te=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],K=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ce(re,oe){for(var ye=0,_e=0,Ce=new Array,ne=1;ne<=16;ne++){for(var xe=1;xe<=re[ne];xe++)Ce[oe[_e]]=[],Ce[oe[_e]][0]=ye,Ce[oe[_e]][1]=ne,_e++,ye++;ye*=2}return Ce}function ae(re){for(var oe=re[0],ye=re[1]-1;ye>=0;)oe&1<<ye&&(B|=1<<L),ye--,--L<0&&(B==255?(le(255),le(0)):le(B),L=7,B=0)}function le(re){T.push(re)}function pe(re){le(re>>8&255),le(255&re)}function ie(re,oe,ye,_e,Ce){for(var ne,xe=Ce[0],De=Ce[240],ze=function(Me,Ge){var Pe,ke,Be,$e,nt,ft,Mt,Rt,Bt,It,qt=0;for(Bt=0;Bt<8;++Bt){Pe=Me[qt],ke=Me[qt+1],Be=Me[qt+2],$e=Me[qt+3],nt=Me[qt+4],ft=Me[qt+5],Mt=Me[qt+6];var fr=Pe+(Rt=Me[qt+7]),lr=Pe-Rt,_t=ke+Mt,br=ke-Mt,on=Be+ft,Br=Be-ft,rn=$e+nt,Yr=$e-nt,cn=fr+rn,Vn=fr-rn,Nr=_t+on,Ht=_t-on;Me[qt]=cn+Nr,Me[qt+4]=cn-Nr;var zr=.707106781*(Ht+Vn);Me[qt+2]=Vn+zr,Me[qt+6]=Vn-zr;var kn=.382683433*((cn=Yr+Br)-(Ht=br+lr)),vt=.5411961*cn+kn,At=1.306562965*Ht+kn,Ct=.707106781*(Nr=Br+br),Tt=lr+Ct,ir=lr-Ct;Me[qt+5]=ir+vt,Me[qt+3]=ir-vt,Me[qt+1]=Tt+At,Me[qt+7]=Tt-At,qt+=8}for(qt=0,Bt=0;Bt<8;++Bt){Pe=Me[qt],ke=Me[qt+8],Be=Me[qt+16],$e=Me[qt+24],nt=Me[qt+32],ft=Me[qt+40],Mt=Me[qt+48];var et=Pe+(Rt=Me[qt+56]),ot=Pe-Rt,mt=ke+Mt,xt=ke-Mt,nr=Be+ft,yr=Be-ft,Pr=$e+nt,pr=$e-nt,Ar=et+Pr,Tr=et-Pr,Fr=mt+nr,nn=mt-nr;Me[qt]=Ar+Fr,Me[qt+32]=Ar-Fr;var fn=.707106781*(nn+Tr);Me[qt+16]=Tr+fn,Me[qt+48]=Tr-fn;var ci=.382683433*((Ar=pr+yr)-(nn=xt+ot)),_r=.5411961*Ar+ci,pt=1.306562965*nn+ci,or=.707106781*(Fr=yr+xt),Ur=ot+or,Ti=ot-or;Me[qt+40]=Ti+_r,Me[qt+24]=Ti-_r,Me[qt+8]=Ur+pt,Me[qt+56]=Ur-pt,qt++}for(Bt=0;Bt<64;++Bt)It=Me[Bt]*Ge[Bt],b[Bt]=It>0?It+.5|0:It-.5|0;return b}(re,oe),Ye=0;Ye<64;++Ye)C[H[Ye]]=ze[Ye];var Ne=C[0]-ye;ye=C[0],Ne==0?ae(_e[0]):(ae(_e[_[ne=32767+Ne]]),ae(y[ne]));for(var yt=63;yt>0&&C[yt]==0;)yt--;if(yt==0)return ae(xe),ye;for(var Ue,ue=1;ue<=yt;){for(var Qe=ue;C[ue]==0&&ue<=yt;)++ue;var qe=ue-Qe;if(qe>=16){Ue=qe>>4;for(var Re=1;Re<=Ue;++Re)ae(De);qe&=15}ne=32767+C[ue],ae(Ce[(qe<<4)+_[ne]]),ae(y[ne]),ue++}return yt!=63&&ae(xe),ye}function he(re){re=Math.min(Math.max(re,1),100),u!=re&&(function(oe){for(var ye=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],_e=0;_e<64;_e++){var Ce=f((ye[_e]*oe+50)/100);Ce=Math.min(Math.max(Ce,1),255),h[H[_e]]=Ce}for(var ne=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],xe=0;xe<64;xe++){var De=f((ne[xe]*oe+50)/100);De=Math.min(Math.max(De,1),255),A[H[xe]]=De}for(var ze=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ye=0,Ne=0;Ne<8;Ne++)for(var yt=0;yt<8;yt++)p[Ye]=1/(h[H[Ye]]*ze[Ne]*ze[yt]*8),g[Ye]=1/(A[H[Ye]]*ze[Ne]*ze[yt]*8),Ye++}(re<50?Math.floor(5e3/re):Math.floor(200-2*re)),u=re)}this.encode=function(re,oe){oe&&he(oe),T=new Array,B=0,L=7,pe(65496),pe(65504),pe(16),le(74),le(70),le(73),le(70),le(0),le(1),le(1),le(0),pe(1),pe(1),le(0),le(0),function(){pe(65499),pe(132),le(0);for(var ke=0;ke<64;ke++)le(h[ke]);le(1);for(var Be=0;Be<64;Be++)le(A[Be])}(),function(ke,Be){pe(65472),pe(17),le(8),pe(Be),pe(ke),le(3),le(1),le(17),le(0),le(2),le(17),le(1),le(3),le(17),le(1)}(re.width,re.height),function(){pe(65476),pe(418),le(0);for(var ke=0;ke<16;ke++)le(z[ke+1]);for(var Be=0;Be<=11;Be++)le(G[Be]);le(16);for(var $e=0;$e<16;$e++)le(j[$e+1]);for(var nt=0;nt<=161;nt++)le(q[nt]);le(1);for(var ft=0;ft<16;ft++)le(X[ft+1]);for(var Mt=0;Mt<=11;Mt++)le(Y[Mt]);le(17);for(var Rt=0;Rt<16;Rt++)le(te[Rt+1]);for(var Bt=0;Bt<=161;Bt++)le(K[Bt])}(),pe(65498),pe(12),le(3),le(1),le(0),le(2),le(17),le(3),le(17),le(0),le(63),le(0);var ye=0,_e=0,Ce=0;B=0,L=7,this.encode.displayName="_encode_";for(var ne,xe,De,ze,Ye,Ne,yt,Ue,ue,Qe=re.data,qe=re.width,Re=re.height,Me=4*qe,Ge=0;Ge<Re;){for(ne=0;ne<Me;){for(Ye=Me*Ge+ne,yt=-1,Ue=0,ue=0;ue<64;ue++)Ne=Ye+(Ue=ue>>3)*Me+(yt=4*(7&ue)),Ge+Ue>=Re&&(Ne-=Me*(Ge+1+Ue-Re)),ne+yt>=Me&&(Ne-=ne+yt-Me+4),xe=Qe[Ne++],De=Qe[Ne++],ze=Qe[Ne++],P[ue]=(N[xe]+N[De+256|0]+N[ze+512|0]>>16)-128,I[ue]=(N[xe+768|0]+N[De+1024|0]+N[ze+1280|0]>>16)-128,O[ue]=(N[xe+1280|0]+N[De+1536|0]+N[ze+1792|0]>>16)-128;ye=ie(P,p,ye,e,n),_e=ie(I,g,_e,r,o),Ce=ie(O,g,Ce,r,o),ne+=32}Ge+=8}if(L>=0){var Pe=[];Pe[1]=L+1,Pe[0]=(1<<L+1)-1,ae(Pe)}return pe(65497),new Uint8Array(T)},t=t||50,function(){for(var re=String.fromCharCode,oe=0;oe<256;oe++)U[oe]=re(oe)}(),e=ce(z,G),r=ce(X,Y),n=ce(j,q),o=ce(te,K),function(){for(var re=1,oe=2,ye=1;ye<=15;ye++){for(var _e=re;_e<oe;_e++)_[32767+_e]=ye,y[32767+_e]=[],y[32767+_e][1]=ye,y[32767+_e][0]=_e;for(var Ce=-(oe-1);Ce<=-re;Ce++)_[32767+Ce]=ye,y[32767+Ce]=[],y[32767+Ce][1]=ye,y[32767+Ce][0]=oe-1+Ce;re<<=1,oe<<=1}}(),function(){for(var re=0;re<256;re++)N[re]=19595*re,N[re+256|0]=38470*re,N[re+512|0]=7471*re+32768,N[re+768|0]=-11059*re,N[re+1024|0]=-21709*re,N[re+1280|0]=32768*re+8421375,N[re+1536|0]=-27439*re,N[re+1792|0]=-5329*re}(),he(t)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function _A(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function B1e(t){function e(G){if(!G)throw Error("assert :P")}function r(G,j,q){for(var X=0;4>X;X++)if(G[j+X]!=q.charCodeAt(X))return!0;return!1}function n(G,j,q,X,Y){for(var te=0;te<Y;te++)G[j+te]=q[X+te]}function o(G,j,q,X){for(var Y=0;Y<X;Y++)G[j+Y]=q}function u(G){return new Int32Array(G)}function f(G,j){for(var q=[],X=0;X<G;X++)q.push(new j);return q}function h(G,j){var q=[];return function X(Y,te,K){for(var ce=K[te],ae=0;ae<ce&&(Y.push(K.length>te+1?[]:new j),!(K.length<te+1));ae++)X(Y[ae],te+1,K)}(q,0,G),q}var A=function(){var G=this;function j(J,se){for(var we=1<<se-1>>>0;J&we;)we>>>=1;return we?(J&we-1)+we:J}function q(J,se,we,Te,He){e(!(Te%we));do J[se+(Te-=we)]=He;while(0<Te)}function X(J,se,we,Te,He){if(e(2328>=He),512>=He)var je=u(512);else if((je=u(He))==null)return 0;return function(We,Xe,tt,ht,Dt,Vt){var ut,Ot,Gt=Xe,rr=1<<tt,$t=u(16),tr=u(16);for(e(Dt!=0),e(ht!=null),e(We!=null),e(0<tt),Ot=0;Ot<Dt;++Ot){if(15<ht[Ot])return 0;++$t[ht[Ot]]}if($t[0]==Dt)return 0;for(tr[1]=0,ut=1;15>ut;++ut){if($t[ut]>1<<ut)return 0;tr[ut+1]=tr[ut]+$t[ut]}for(Ot=0;Ot<Dt;++Ot)ut=ht[Ot],0<ht[Ot]&&(Vt[tr[ut]++]=Ot);if(tr[15]==1)return(ht=new Y).g=0,ht.value=Vt[0],q(We,Gt,1,rr,ht),rr;var sr,xr=-1,dr=rr-1,bn=0,an=1,Bi=1,sn=1<<tt;for(Ot=0,ut=1,Dt=2;ut<=tt;++ut,Dt<<=1){if(an+=Bi<<=1,0>(Bi-=$t[ut]))return 0;for(;0<$t[ut];--$t[ut])(ht=new Y).g=ut,ht.value=Vt[Ot++],q(We,Gt+bn,Dt,sn,ht),bn=j(bn,ut)}for(ut=tt+1,Dt=2;15>=ut;++ut,Dt<<=1){if(an+=Bi<<=1,0>(Bi-=$t[ut]))return 0;for(;0<$t[ut];--$t[ut]){if(ht=new Y,(bn&dr)!=xr){for(Gt+=sn,sr=1<<(xr=ut)-tt;15>xr&&!(0>=(sr-=$t[xr]));)++xr,sr<<=1;rr+=sn=1<<(sr=xr-tt),We[Xe+(xr=bn&dr)].g=sr+tt,We[Xe+xr].value=Gt-Xe-xr}ht.g=ut-tt,ht.value=Vt[Ot++],q(We,Gt+(bn>>tt),Dt,sn,ht),bn=j(bn,ut)}}return an!=2*tr[15]-1?0:rr}(J,se,we,Te,He,je)}function Y(){this.value=this.g=0}function te(){this.value=this.g=0}function K(){this.G=f(5,Y),this.H=u(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=f(mu,te)}function ce(J,se,we,Te){e(J!=null),e(se!=null),e(2147483648>Te),J.Ca=254,J.I=0,J.b=-8,J.Ka=0,J.oa=se,J.pa=we,J.Jd=se,J.Yc=we+Te,J.Zc=4<=Te?we+Te-4+1:we,xe(J)}function ae(J,se){for(var we=0;0<se--;)we|=ze(J,128)<<se;return we}function le(J,se){var we=ae(J,se);return De(J)?-we:we}function pe(J,se,we,Te){var He,je=0;for(e(J!=null),e(se!=null),e(4294967288>Te),J.Sb=Te,J.Ra=0,J.u=0,J.h=0,4<Te&&(Te=4),He=0;He<Te;++He)je+=se[we+He]<<8*He;J.Ra=je,J.bb=Te,J.oa=se,J.pa=we}function ie(J){for(;8<=J.u&&J.bb<J.Sb;)J.Ra>>>=8,J.Ra+=J.oa[J.pa+J.bb]<<Gc-8>>>0,++J.bb,J.u-=8;_e(J)&&(J.h=1,J.u=0)}function he(J,se){if(e(0<=se),!J.h&&se<=nc){var we=ye(J)&$l[se];return J.u+=se,ie(J),we}return J.h=1,J.u=0}function re(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function oe(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function ye(J){return J.Ra>>>(J.u&Gc-1)>>>0}function _e(J){return e(J.bb<=J.Sb),J.h||J.bb==J.Sb&&J.u>Gc}function Ce(J,se){J.u=se,J.h=_e(J)}function ne(J){J.u>=ka&&(e(J.u>=ka),ie(J))}function xe(J){e(J!=null&&J.oa!=null),J.pa<J.Zc?(J.I=(J.oa[J.pa++]|J.I<<8)>>>0,J.b+=8):(e(J!=null&&J.oa!=null),J.pa<J.Yc?(J.b+=8,J.I=J.oa[J.pa++]|J.I<<8):J.Ka?J.b=0:(J.I<<=8,J.b+=8,J.Ka=1))}function De(J){return ae(J,1)}function ze(J,se){var we=J.Ca;0>J.b&&xe(J);var Te=J.b,He=we*se>>>8,je=(J.I>>>Te>He)+0;for(je?(we-=He,J.I-=He+1<<Te>>>0):we=He+1,Te=we,He=0;256<=Te;)He+=8,Te>>=8;return Te=7^He+Xd[Te],J.b-=Te,J.Ca=(we<<Te)-1,je}function Ye(J,se,we){J[se+0]=we>>24&255,J[se+1]=we>>16&255,J[se+2]=we>>8&255,J[se+3]=255&we}function Ne(J,se){return J[se+0]|J[se+1]<<8}function yt(J,se){return Ne(J,se)|J[se+2]<<16}function Ue(J,se){return Ne(J,se)|Ne(J,se+2)<<16}function ue(J,se){var we=1<<se;return e(J!=null),e(0<se),J.X=u(we),J.X==null?0:(J.Mb=32-se,J.Xa=se,1)}function Qe(J,se){e(J!=null),e(se!=null),e(J.Xa==se.Xa),n(se.X,0,J.X,0,1<<se.Xa)}function qe(){this.X=[],this.Xa=this.Mb=0}function Re(J,se,we,Te){e(we!=null),e(Te!=null);var He=we[0],je=Te[0];return He==0&&(He=(J*je+se/2)/se),je==0&&(je=(se*He+J/2)/J),0>=He||0>=je?0:(we[0]=He,Te[0]=je,1)}function Me(J,se){return J+(1<<se)-1>>>se}function Ge(J,se){return((4278255360&J)+(4278255360&se)>>>0&4278255360)+((16711935&J)+(16711935&se)>>>0&16711935)>>>0}function Pe(J,se){G[se]=function(we,Te,He,je,We,Xe,tt){var ht;for(ht=0;ht<We;++ht){var Dt=G[J](Xe[tt+ht-1],He,je+ht);Xe[tt+ht]=Ge(we[Te+ht],Dt)}}}function ke(){this.ud=this.hd=this.jd=0}function Be(J,se){return((4278124286&(J^se))>>>1)+(J&se)>>>0}function $e(J){return 0<=J&&256>J?J:0>J?0:255<J?255:void 0}function nt(J,se){return $e(J+(J-se+.5>>1))}function ft(J,se,we){return Math.abs(se-we)-Math.abs(J-we)}function Mt(J,se,we,Te,He,je,We){for(Te=je[We-1],we=0;we<He;++we)je[We+we]=Te=Ge(J[se+we],Te)}function Rt(J,se,we,Te,He){var je;for(je=0;je<we;++je){var We=J[se+je],Xe=We>>8&255,tt=16711935&(tt=(tt=16711935&We)+((Xe<<16)+Xe));Te[He+je]=(4278255360&We)+tt>>>0}}function Bt(J,se){se.jd=255&J,se.hd=J>>8&255,se.ud=J>>16&255}function It(J,se,we,Te,He,je){var We;for(We=0;We<Te;++We){var Xe=se[we+We],tt=Xe>>>8,ht=Xe,Dt=255&(Dt=(Dt=Xe>>>16)+((J.jd<<24>>24)*(tt<<24>>24)>>>5));ht=255&(ht=(ht+=(J.hd<<24>>24)*(tt<<24>>24)>>>5)+((J.ud<<24>>24)*(Dt<<24>>24)>>>5)),He[je+We]=(4278255360&Xe)+(Dt<<16)+ht}}function qt(J,se,we,Te,He){G[se]=function(je,We,Xe,tt,ht,Dt,Vt,ut,Ot){for(tt=Vt;tt<ut;++tt)for(Vt=0;Vt<Ot;++Vt)ht[Dt++]=He(Xe[Te(je[We++])])},G[J]=function(je,We,Xe,tt,ht,Dt,Vt){var ut=8>>je.b,Ot=je.Ea,Gt=je.K[0],rr=je.w;if(8>ut)for(je=(1<<je.b)-1,rr=(1<<ut)-1;We<Xe;++We){var $t,tr=0;for($t=0;$t<Ot;++$t)$t&je||(tr=Te(tt[ht++])),Dt[Vt++]=He(Gt[tr&rr]),tr>>=ut}else G["VP8LMapColor"+we](tt,ht,Gt,rr,Dt,Vt,We,Xe,Ot)}}function fr(J,se,we,Te,He){for(we=se+we;se<we;){var je=J[se++];Te[He++]=je>>16&255,Te[He++]=je>>8&255,Te[He++]=255&je}}function lr(J,se,we,Te,He){for(we=se+we;se<we;){var je=J[se++];Te[He++]=je>>16&255,Te[He++]=je>>8&255,Te[He++]=255&je,Te[He++]=je>>24&255}}function _t(J,se,we,Te,He){for(we=se+we;se<we;){var je=(We=J[se++])>>16&240|We>>12&15,We=240&We|We>>28&15;Te[He++]=je,Te[He++]=We}}function br(J,se,we,Te,He){for(we=se+we;se<we;){var je=(We=J[se++])>>16&248|We>>13&7,We=We>>5&224|We>>3&31;Te[He++]=je,Te[He++]=We}}function on(J,se,we,Te,He){for(we=se+we;se<we;){var je=J[se++];Te[He++]=255&je,Te[He++]=je>>8&255,Te[He++]=je>>16&255}}function Br(J,se,we,Te,He,je){if(je==0)for(we=se+we;se<we;)Ye(Te,((je=J[se++])[0]>>24|je[1]>>8&65280|je[2]<<8&16711680|je[3]<<24)>>>0),He+=32;else n(Te,He,J,se,we)}function rn(J,se){G[se][0]=G[J+"0"],G[se][1]=G[J+"1"],G[se][2]=G[J+"2"],G[se][3]=G[J+"3"],G[se][4]=G[J+"4"],G[se][5]=G[J+"5"],G[se][6]=G[J+"6"],G[se][7]=G[J+"7"],G[se][8]=G[J+"8"],G[se][9]=G[J+"9"],G[se][10]=G[J+"10"],G[se][11]=G[J+"11"],G[se][12]=G[J+"12"],G[se][13]=G[J+"13"],G[se][14]=G[J+"0"],G[se][15]=G[J+"0"]}function Yr(J){return J==Fh||J==Nh||J==yn||J==Aa}function cn(){this.eb=[],this.size=this.A=this.fb=0}function Vn(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Nr(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new cn,this.f.kb=new Vn,this.sd=null}function Ht(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function zr(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function kn(J){return alert("todo:WebPSamplerProcessPlane"),J.T}function vt(J,se){var we=J.T,Te=se.ba.f.RGBA,He=Te.eb,je=Te.fb+J.ka*Te.A,We=Ps[se.ba.S],Xe=J.y,tt=J.O,ht=J.f,Dt=J.N,Vt=J.ea,ut=J.W,Ot=se.cc,Gt=se.dc,rr=se.Mc,$t=se.Nc,tr=J.ka,sr=J.ka+J.T,xr=J.U,dr=xr+1>>1;for(tr==0?We(Xe,tt,null,null,ht,Dt,Vt,ut,ht,Dt,Vt,ut,He,je,null,null,xr):(We(se.ec,se.fc,Xe,tt,Ot,Gt,rr,$t,ht,Dt,Vt,ut,He,je-Te.A,He,je,xr),++we);tr+2<sr;tr+=2)Ot=ht,Gt=Dt,rr=Vt,$t=ut,Dt+=J.Rc,ut+=J.Rc,je+=2*Te.A,We(Xe,(tt+=2*J.fa)-J.fa,Xe,tt,Ot,Gt,rr,$t,ht,Dt,Vt,ut,He,je-Te.A,He,je,xr);return tt+=J.fa,J.j+sr<J.o?(n(se.ec,se.fc,Xe,tt,xr),n(se.cc,se.dc,ht,Dt,dr),n(se.Mc,se.Nc,Vt,ut,dr),we--):1&sr||We(Xe,tt,null,null,ht,Dt,Vt,ut,ht,Dt,Vt,ut,He,je+Te.A,null,null,xr),we}function At(J,se,we){var Te=J.F,He=[J.J];if(Te!=null){var je=J.U,We=se.ba.S,Xe=We==Zo||We==yn;se=se.ba.f.RGBA;var tt=[0],ht=J.ka;tt[0]=J.T,J.Kb&&(ht==0?--tt[0]:(--ht,He[0]-=J.width),J.j+J.ka+J.T==J.o&&(tt[0]=J.o-J.j-ht));var Dt=se.eb;ht=se.fb+ht*se.A,J=mn(Te,He[0],J.width,je,tt,Dt,ht+(Xe?0:3),se.A),e(we==tt),J&&Yr(We)&&$r(Dt,ht,Xe,je,tt,se.A)}return 0}function Ct(J){var se=J.ma,we=se.ba.S,Te=11>we,He=we==Js||we==Wi||we==Zo||we==Fa||we==12||Yr(we);if(se.memory=null,se.Ib=null,se.Jb=null,se.Nd=null,!qi(se.Oa,J,He?11:12))return 0;if(He&&Yr(we)&&Vc(),J.da)alert("todo:use_scaling");else{if(Te){if(se.Ib=kn,J.Kb){if(we=J.U+1>>1,se.memory=u(J.U+2*we),se.memory==null)return 0;se.ec=se.memory,se.fc=0,se.cc=se.ec,se.dc=se.fc+J.U,se.Mc=se.cc,se.Nc=se.dc+we,se.Ib=vt,Vc()}}else alert("todo:EmitYUV");He&&(se.Jb=At,Te&&Qc())}if(Te&&!Cw){for(J=0;256>J;++J)Tw[J]=89858*(J-128)+Wc>>ov,wp[J]=-22014*(J-128)+Wc,Ry[J]=-45773*(J-128),sv[J]=113618*(J-128)+Wc>>ov;for(J=mp;J<Yl;++J)se=76283*(J-16)+Wc>>ov,Ew[J-mp]=uo(se,255),Py[J-mp]=uo(se+8>>4,15);Cw=1}return 1}function Tt(J){var se=J.ma,we=J.U,Te=J.T;return e(!(1&J.ka)),0>=we||0>=Te?0:(we=se.Ib(J,se),se.Jb!=null&&se.Jb(J,se,we),se.Dc+=we,1)}function ir(J){J.ma.memory=null}function et(J,se,we,Te){return he(J,8)!=47?0:(se[0]=he(J,14)+1,we[0]=he(J,14)+1,Te[0]=he(J,1),he(J,3)!=0?0:!J.h)}function ot(J,se){if(4>J)return J+1;var we=J-2>>1;return(2+(1&J)<<we)+he(se,we)+1}function mt(J,se){return 120<se?se-120:1<=(we=((we=gx[se-1])>>4)*J+(8-(15&we)))?we:1;var we}function xt(J,se,we){var Te=ye(we),He=J[se+=255&Te].g-8;return 0<He&&(Ce(we,we.u+8),Te=ye(we),se+=J[se].value,se+=Te&(1<<He)-1),Ce(we,we.u+J[se].g),J[se].value}function nr(J,se,we){return we.g+=J.g,we.value+=J.value<<se>>>0,e(8>=we.g),J.g}function yr(J,se,we){var Te=J.xc;return e((se=Te==0?0:J.vc[J.md*(we>>Te)+(se>>Te)])<J.Wb),J.Ya[se]}function Pr(J,se,we,Te){var He=J.ab,je=J.c*se,We=J.C;se=We+se;var Xe=we,tt=Te;for(Te=J.Ta,we=J.Ua;0<He--;){var ht=J.gc[He],Dt=We,Vt=se,ut=Xe,Ot=tt,Gt=(tt=Te,Xe=we,ht.Ea);switch(e(Dt<Vt),e(Vt<=ht.nc),ht.hc){case 2:ah(ut,Ot,(Vt-Dt)*Gt,tt,Xe);break;case 0:var rr=Dt,$t=Vt,tr=tt,sr=Xe,xr=(sn=ht).Ea;rr==0&&(Kl(ut,Ot,null,null,1,tr,sr),Mt(ut,Ot+1,0,0,xr-1,tr,sr+1),Ot+=xr,sr+=xr,++rr);for(var dr=1<<sn.b,bn=dr-1,an=Me(xr,sn.b),Bi=sn.K,sn=sn.w+(rr>>sn.b)*an;rr<$t;){var vi=Bi,Vo=sn,fi=1;for(Iu(ut,Ot,tr,sr-xr,1,tr,sr);fi<xr;){var Ln=(fi&~bn)+dr;Ln>xr&&(Ln=xr),(0,st[vi[Vo++]>>8&15])(ut,Ot+ +fi,tr,sr+fi-xr,Ln-fi,tr,sr+fi),fi=Ln}Ot+=xr,sr+=xr,++rr&bn||(sn+=an)}Vt!=ht.nc&&n(tt,Xe-Gt,tt,Xe+(Vt-Dt-1)*Gt,Gt);break;case 1:for(Gt=ut,$t=Ot,xr=(ut=ht.Ea)-(sr=ut&~(tr=(Ot=1<<ht.b)-1)),rr=Me(ut,ht.b),dr=ht.K,ht=ht.w+(Dt>>ht.b)*rr;Dt<Vt;){for(bn=dr,an=ht,Bi=new ke,sn=$t+sr,vi=$t+ut;$t<sn;)Bt(bn[an++],Bi),Ze(Bi,Gt,$t,Ot,tt,Xe),$t+=Ot,Xe+=Ot;$t<vi&&(Bt(bn[an++],Bi),Ze(Bi,Gt,$t,xr,tt,Xe),$t+=xr,Xe+=xr),++Dt&tr||(ht+=rr)}break;case 3:if(ut==tt&&Ot==Xe&&0<ht.b){for($t=tt,ut=Gt=Xe+(Vt-Dt)*Gt-(sr=(Vt-Dt)*Me(ht.Ea,ht.b)),Ot=tt,tr=Xe,rr=[],sr=(xr=sr)-1;0<=sr;--sr)rr[sr]=Ot[tr+sr];for(sr=xr-1;0<=sr;--sr)$t[ut+sr]=rr[sr];ic(ht,Dt,Vt,tt,Gt,tt,Xe)}else ic(ht,Dt,Vt,ut,Ot,tt,Xe)}Xe=Te,tt=we}tt!=we&&n(Te,we,Xe,tt,je)}function pr(J,se){var we=J.V,Te=J.Ba+J.c*J.C,He=se-J.C;if(e(se<=J.l.o),e(16>=He),0<He){var je=J.l,We=J.Ta,Xe=J.Ua,tt=je.width;if(Pr(J,He,we,Te),He=Xe=[Xe],e((we=J.C)<(Te=se)),e(je.v<je.va),Te>je.o&&(Te=je.o),we<je.j){var ht=je.j-we;we=je.j,He[0]+=ht*tt}if(we>=Te?we=0:(He[0]+=4*je.v,je.ka=we-je.j,je.U=je.va-je.v,je.T=Te-we,we=1),we){if(Xe=Xe[0],11>(we=J.ca).S){var Dt=we.f.RGBA,Vt=(Te=we.S,He=je.U,je=je.T,ht=Dt.eb,Dt.A),ut=je;for(Dt=Dt.fb+J.Ma*Dt.A;0<ut--;){var Ot=We,Gt=Xe,rr=He,$t=ht,tr=Dt;switch(Te){case _o:Et(Ot,Gt,rr,$t,tr);break;case Js:Nt(Ot,Gt,rr,$t,tr);break;case Fh:Nt(Ot,Gt,rr,$t,tr),$r($t,tr,0,rr,1,0);break;case jr:Wt(Ot,Gt,rr,$t,tr);break;case Wi:Br(Ot,Gt,rr,$t,tr,1);break;case Nh:Br(Ot,Gt,rr,$t,tr,1),$r($t,tr,0,rr,1,0);break;case Zo:Br(Ot,Gt,rr,$t,tr,0);break;case yn:Br(Ot,Gt,rr,$t,tr,0),$r($t,tr,1,rr,1,0);break;case Fa:Pt(Ot,Gt,rr,$t,tr);break;case Aa:Pt(Ot,Gt,rr,$t,tr),An($t,tr,rr,1,0);break;case Mo:Ft(Ot,Gt,rr,$t,tr);break;default:e(0)}Xe+=tt,Dt+=Vt}J.Ma+=je}else alert("todo:EmitRescaledRowsYUVA");e(J.Ma<=we.height)}}J.C=se,e(J.C<=J.i)}function Ar(J){var se;if(0<J.ua)return 0;for(se=0;se<J.Wb;++se){var we=J.Ya[se].G,Te=J.Ya[se].H;if(0<we[1][Te[1]+0].g||0<we[2][Te[2]+0].g||0<we[3][Te[3]+0].g)return 0}return 1}function Tr(J,se,we,Te,He,je){if(J.Z!=0){var We=J.qd,Xe=J.rd;for(e(Jo[J.Z]!=null);se<we;++se)Jo[J.Z](We,Xe,Te,He,Te,He,je),We=Te,Xe=He,He+=je;J.qd=We,J.rd=Xe}}function Fr(J,se){var we=J.l.ma,Te=we.Z==0||we.Z==1?J.l.j:J.C;if(Te=J.C<Te?Te:J.C,e(se<=J.l.o),se>Te){var He=J.l.width,je=we.ca,We=we.tb+He*Te,Xe=J.V,tt=J.Ba+J.c*Te,ht=J.gc;e(J.ab==1),e(ht[0].hc==3),it(ht[0],Te,se,Xe,tt,je,We),Tr(we,Te,se,je,We,He)}J.C=J.Ma=se}function nn(J,se,we,Te,He,je,We){var Xe=J.$/Te,tt=J.$%Te,ht=J.m,Dt=J.s,Vt=we+J.$,ut=Vt;He=we+Te*He;var Ot=we+Te*je,Gt=280+Dt.ua,rr=J.Pb?Xe:16777216,$t=0<Dt.ua?Dt.Wa:null,tr=Dt.wc,sr=Vt<Ot?yr(Dt,tt,Xe):null;e(J.C<je),e(Ot<=He);var xr=!1;e:for(;;){for(;xr||Vt<Ot;){var dr=0;if(Xe>=rr){var bn=Vt-we;e((rr=J).Pb),rr.wd=rr.m,rr.xd=bn,0<rr.s.ua&&Qe(rr.s.Wa,rr.s.vb),rr=Xe+ac}if(tt&tr||(sr=yr(Dt,tt,Xe)),e(sr!=null),sr.Qb&&(se[Vt]=sr.qb,xr=!0),!xr)if(ne(ht),sr.jc){dr=ht,bn=se;var an=Vt,Bi=sr.pd[ye(dr)&mu-1];e(sr.jc),256>Bi.g?(Ce(dr,dr.u+Bi.g),bn[an]=Bi.value,dr=0):(Ce(dr,dr.u+Bi.g-256),e(256<=Bi.value),dr=Bi.value),dr==0&&(xr=!0)}else dr=xt(sr.G[0],sr.H[0],ht);if(ht.h)break;if(xr||256>dr){if(!xr)if(sr.nd)se[Vt]=(sr.qb|dr<<8)>>>0;else{if(ne(ht),xr=xt(sr.G[1],sr.H[1],ht),ne(ht),bn=xt(sr.G[2],sr.H[2],ht),an=xt(sr.G[3],sr.H[3],ht),ht.h)break;se[Vt]=(an<<24|xr<<16|dr<<8|bn)>>>0}if(xr=!1,++Vt,++tt>=Te&&(tt=0,++Xe,We!=null&&Xe<=je&&!(Xe%16)&&We(J,Xe),$t!=null))for(;ut<Vt;)dr=se[ut++],$t.X[(506832829*dr&4294967295)>>>$t.Mb]=dr}else if(280>dr){if(dr=ot(dr-256,ht),bn=xt(sr.G[4],sr.H[4],ht),ne(ht),bn=mt(Te,bn=ot(bn,ht)),ht.h)break;if(Vt-we<bn||He-Vt<dr)break e;for(an=0;an<dr;++an)se[Vt+an]=se[Vt+an-bn];for(Vt+=dr,tt+=dr;tt>=Te;)tt-=Te,++Xe,We!=null&&Xe<=je&&!(Xe%16)&&We(J,Xe);if(e(Vt<=He),tt&tr&&(sr=yr(Dt,tt,Xe)),$t!=null)for(;ut<Vt;)dr=se[ut++],$t.X[(506832829*dr&4294967295)>>>$t.Mb]=dr}else{if(!(dr<Gt))break e;for(xr=dr-280,e($t!=null);ut<Vt;)dr=se[ut++],$t.X[(506832829*dr&4294967295)>>>$t.Mb]=dr;dr=Vt,e(!(xr>>>(bn=$t).Xa)),se[dr]=bn.X[xr],xr=!0}xr||e(ht.h==_e(ht))}if(J.Pb&&ht.h&&Vt<He)e(J.m.h),J.a=5,J.m=J.wd,J.$=J.xd,0<J.s.ua&&Qe(J.s.vb,J.s.Wa);else{if(ht.h)break e;We?.(J,Xe>je?je:Xe),J.a=0,J.$=Vt-we}return 1}return J.a=3,0}function fn(J){e(J!=null),J.vc=null,J.yc=null,J.Ya=null;var se=J.Wa;se!=null&&(se.X=null),J.vb=null,e(J!=null)}function ci(){var J=new Ia;return J==null?null:(J.a=0,J.xb=Qo,rn("Predictor","VP8LPredictors"),rn("Predictor","VP8LPredictors_C"),rn("PredictorAdd","VP8LPredictorsAdd"),rn("PredictorAdd","VP8LPredictorsAdd_C"),ah=Rt,Ze=It,Et=fr,Nt=lr,Pt=_t,Ft=br,Wt=on,G.VP8LMapColor32b=Lu,G.VP8LMapColor8b=gt,J)}function _r(J,se,we,Te,He){var je=1,We=[J],Xe=[se],tt=Te.m,ht=Te.s,Dt=null,Vt=0;e:for(;;){if(we)for(;je&&he(tt,1);){var ut=We,Ot=Xe,Gt=Te,rr=1,$t=Gt.m,tr=Gt.gc[Gt.ab],sr=he($t,2);if(Gt.Oc&1<<sr)je=0;else{switch(Gt.Oc|=1<<sr,tr.hc=sr,tr.Ea=ut[0],tr.nc=Ot[0],tr.K=[null],++Gt.ab,e(4>=Gt.ab),sr){case 0:case 1:tr.b=he($t,3)+2,rr=_r(Me(tr.Ea,tr.b),Me(tr.nc,tr.b),0,Gt,tr.K),tr.K=tr.K[0];break;case 3:var xr,dr=he($t,8)+1,bn=16<dr?0:4<dr?1:2<dr?2:3;if(ut[0]=Me(tr.Ea,bn),tr.b=bn,xr=rr=_r(dr,1,0,Gt,tr.K)){var an,Bi=dr,sn=tr,vi=1<<(8>>sn.b),Vo=u(vi);if(Vo==null)xr=0;else{var fi=sn.K[0],Ln=sn.w;for(Vo[0]=sn.K[0][0],an=1;an<1*Bi;++an)Vo[an]=Ge(fi[Ln+an],Vo[an-1]);for(;an<4*vi;++an)Vo[an]=0;sn.K[0]=null,sn.K[0]=Vo,xr=1}}rr=xr;break;case 2:break;default:e(0)}je=rr}}if(We=We[0],Xe=Xe[0],je&&he(tt,1)&&!(je=1<=(Vt=he(tt,4))&&11>=Vt)){Te.a=3;break e}var qr;if(qr=je)t:{var So,ai,Lr,ba=Te,xo=We,tl=Xe,co=Vt,hs=we,ds=ba.m,As=ba.s,Ki=[null],_a=1,Qa=0,ki=Og[co];r:for(;;){if(hs&&he(ds,1)){var zo=he(ds,3)+2,Cl=Me(xo,zo),Va=Me(tl,zo),Tl=Cl*Va;if(!_r(Cl,Va,0,ba,Ki))break r;for(Ki=Ki[0],As.xc=zo,So=0;So<Tl;++So){var ia=Ki[So]>>8&65535;Ki[So]=ia,ia>=_a&&(_a=ia+1)}}if(ds.h)break r;for(ai=0;5>ai;++ai){var es=oh[ai];!ai&&0<co&&(es+=1<<co),Qa<es&&(Qa=es)}var Xl=f(_a*ki,Y),ln=_a,vr=f(ln,K);if(vr==null)var pi=null;else e(65536>=ln),pi=vr;var aa=u(Qa);if(pi==null||aa==null||Xl==null){ba.a=1;break r}var ua=Xl;for(So=Lr=0;So<_a;++So){var Sa=pi[So],El=Sa.G,Mu=Sa.H,uh=0,oc=1,ts=0;for(ai=0;5>ai;++ai){es=oh[ai],El[ai]=ua,Mu[ai]=Lr,!ai&&0<co&&(es+=1<<co);i:{var $c,If=es,Qh=ba,Na=aa,uv=ua,fo=Lr,vs=0,za=Qh.m,cv=he(za,1);if(o(Na,0,0,If),cv){var yu=he(za,1)+1,rl=he(za,1),_p=he(za,rl==0?1:8);Na[_p]=1,yu==2&&(Na[_p=he(za,8)]=1);var eA=1}else{var ch=u(19),Vh=he(za,4)+4;if(19<Vh){Qh.a=3;var wu=0;break i}for($c=0;$c<Vh;++$c)ch[Pg[$c]]=he(za,3);var tA=void 0,sc=void 0,ky=Qh,Ya=ch,rs=If,nl=Na,Ga=0,Do=ky.m,Fi=8,Sp=f(128,Y);n:for(;X(Sp,0,7,Ya,19);){if(he(Do,1)){var Hg=2+2*he(Do,3);if((tA=2+he(Do,Hg))>rs)break n}else tA=rs;for(sc=0;sc<rs&&tA--;){ne(Do);var Qg=Sp[0+(127&ye(Do))];Ce(Do,Do.u+Qg.g);var Ni=Qg.value;if(16>Ni)nl[sc++]=Ni,Ni!=0&&(Fi=Ni);else{var zh=Ni==16,Vg=Ni-16,rA=jc[Vg],zg=he(Do,el[Vg])+rA;if(sc+zg>rs)break n;for(var Fy=zh?Fi:0;0<zg--;)nl[sc++]=Fy}}Ga=1;break n}Ga||(ky.a=3),eA=Ga}(eA=eA&&!za.h)&&(vs=X(uv,fo,8,Na,If)),eA&&vs!=0?wu=vs:(Qh.a=3,wu=0)}if(wu==0)break r;if(oc&&vp[ai]==1&&(oc=ua[Lr].g==0),uh+=ua[Lr].g,Lr+=wu,3>=ai){var fv,Ny=aa[0];for(fv=1;fv<es;++fv)aa[fv]>Ny&&(Ny=aa[fv]);ts+=Ny}}if(Sa.nd=oc,Sa.Qb=0,oc&&(Sa.qb=(El[3][Mu[3]+0].value<<24|El[1][Mu[1]+0].value<<16|El[2][Mu[2]+0].value)>>>0,uh==0&&256>El[0][Mu[0]+0].value&&(Sa.Qb=1,Sa.qb+=El[0][Mu[0]+0].value<<8)),Sa.jc=!Sa.Qb&&6>ts,Sa.jc){var hv,lc=Sa;for(hv=0;hv<mu;++hv){var Gh=hv,jh=lc.pd[Gh],xp=lc.G[0][lc.H[0]+Gh];256<=xp.value?(jh.g=xp.g+256,jh.value=xp.value):(jh.g=0,jh.value=0,Gh>>=nr(xp,8,jh),Gh>>=nr(lc.G[1][lc.H[1]+Gh],16,jh),Gh>>=nr(lc.G[2][lc.H[2]+Gh],0,jh),nr(lc.G[3][lc.H[3]+Gh],24,jh))}}}As.vc=Ki,As.Wb=_a,As.Ya=pi,As.yc=Xl,qr=1;break t}qr=0}if(!(je=qr)){Te.a=3;break e}if(0<Vt){if(ht.ua=1<<Vt,!ue(ht.Wa,Vt)){Te.a=1,je=0;break e}}else ht.ua=0;var nA=Te,va=We,Zl=Xe,Cp=nA.s,dv=Cp.xc;if(nA.c=va,nA.i=Zl,Cp.md=Me(va,dv),Cp.wc=dv==0?-1:(1<<dv)-1,we){Te.xb=Ef;break e}if((Dt=u(We*Xe))==null){Te.a=1,je=0;break e}je=(je=nn(Te,Dt,0,We,Xe,Xe,null))&&!tt.h;break e}return je?(He!=null?He[0]=Dt:(e(Dt==null),e(we)),Te.$=0,we||fn(ht)):fn(ht),je}function pt(J,se){var we=J.c*J.i,Te=we+se+16*se;return e(J.c<=se),J.V=u(Te),J.V==null?(J.Ta=null,J.Ua=0,J.a=1,0):(J.Ta=J.V,J.Ua=J.Ba+we+se,1)}function or(J,se){var we=J.C,Te=se-we,He=J.V,je=J.Ba+J.c*we;for(e(se<=J.l.o);0<Te;){var We=16<Te?16:Te,Xe=J.l.ma,tt=J.l.width,ht=tt*We,Dt=Xe.ca,Vt=Xe.tb+tt*we,ut=J.Ta,Ot=J.Ua;Pr(J,We,He,je),Kn(ut,Ot,Dt,Vt,ht),Tr(Xe,we,we+We,Dt,Vt,tt),Te-=We,He+=We*J.c,we+=We}e(we==se),J.C=J.Ma=se}function Ur(){this.ub=this.yd=this.td=this.Rb=0}function Ti(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ni(){this.Fb=this.Bb=this.Cb=0,this.Zb=u(4),this.Lb=u(4)}function Li(){this.Yb=function(){var J=[];return function se(we,Te,He){for(var je=He[Te],We=0;We<je&&(we.push(He.length>Te+1?[]:0),!(He.length<Te+1));We++)se(we[We],Te+1,He)}(J,0,[3,11]),J}()}function ea(){this.jb=u(3),this.Wc=h([4,8],Li),this.Xc=h([4,17],Li)}function Tn(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new u(4),this.od=new u(4)}function Mi(){this.ld=this.La=this.dd=this.tc=0}function Ka(){this.Na=this.la=0}function ga(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function qn(){this.ad=u(384),this.Za=0,this.Ob=u(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function $i(){this.uc=this.M=this.Nb=0,this.wa=Array(new Mi),this.Y=0,this.ya=Array(new qn),this.aa=0,this.l=new Di}function Da(){this.y=u(16),this.f=u(8),this.ea=u(8)}function qs(){this.cb=this.a=0,this.sc="",this.m=new re,this.Od=new Ur,this.Kc=new Ti,this.ed=new Tn,this.Qa=new ni,this.Ic=this.$c=this.Aa=0,this.D=new $i,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=f(8,re),this.ia=0,this.pb=f(4,ga),this.Pa=new ea,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Da),this.Hd=0,this.rb=Array(new Ka),this.sb=0,this.wa=Array(new Mi),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new qn),this.L=this.aa=0,this.gd=h([4,2],Mi),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Di(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Wo(){var J=new qs;return J!=null&&(J.a=0,J.sc="OK",J.cb=0,J.Xb=0,lh||(lh=_s)),J}function na(J,se,we){return J.a==0&&(J.a=se,J.sc=we,J.cb=0),0}function bs(J,se,we){return 3<=we&&J[se+0]==157&&J[se+1]==1&&J[se+2]==42}function Hl(J,se){if(J==null)return 0;if(J.a=0,J.sc="OK",se==null)return na(J,2,"null VP8Io passed to VP8GetHeaders()");var we=se.data,Te=se.w,He=se.ha;if(4>He)return na(J,7,"Truncated header.");var je=we[Te+0]|we[Te+1]<<8|we[Te+2]<<16,We=J.Od;if(We.Rb=!(1&je),We.td=je>>1&7,We.yd=je>>4&1,We.ub=je>>5,3<We.td)return na(J,3,"Incorrect keyframe parameters.");if(!We.yd)return na(J,4,"Frame not displayable.");Te+=3,He-=3;var Xe=J.Kc;if(We.Rb){if(7>He)return na(J,7,"cannot parse picture header");if(!bs(we,Te,He))return na(J,3,"Bad code word");Xe.c=16383&(we[Te+4]<<8|we[Te+3]),Xe.Td=we[Te+4]>>6,Xe.i=16383&(we[Te+6]<<8|we[Te+5]),Xe.Ud=we[Te+6]>>6,Te+=7,He-=7,J.za=Xe.c+15>>4,J.Ub=Xe.i+15>>4,se.width=Xe.c,se.height=Xe.i,se.Da=0,se.j=0,se.v=0,se.va=se.width,se.o=se.height,se.da=0,se.ib=se.width,se.hb=se.height,se.U=se.width,se.T=se.height,o((je=J.Pa).jb,0,255,je.jb.length),e((je=J.Qa)!=null),je.Cb=0,je.Bb=0,je.Fb=1,o(je.Zb,0,0,je.Zb.length),o(je.Lb,0,0,je.Lb)}if(We.ub>He)return na(J,7,"bad partition length");ce(je=J.m,we,Te,We.ub),Te+=We.ub,He-=We.ub,We.Rb&&(Xe.Ld=De(je),Xe.Kd=De(je)),Xe=J.Qa;var tt,ht=J.Pa;if(e(je!=null),e(Xe!=null),Xe.Cb=De(je),Xe.Cb){if(Xe.Bb=De(je),De(je)){for(Xe.Fb=De(je),tt=0;4>tt;++tt)Xe.Zb[tt]=De(je)?le(je,7):0;for(tt=0;4>tt;++tt)Xe.Lb[tt]=De(je)?le(je,6):0}if(Xe.Bb)for(tt=0;3>tt;++tt)ht.jb[tt]=De(je)?ae(je,8):255}else Xe.Bb=0;if(je.Ka)return na(J,3,"cannot parse segment header");if((Xe=J.ed).zd=De(je),Xe.Tb=ae(je,6),Xe.wb=ae(je,3),Xe.Pc=De(je),Xe.Pc&&De(je)){for(ht=0;4>ht;++ht)De(je)&&(Xe.vd[ht]=le(je,6));for(ht=0;4>ht;++ht)De(je)&&(Xe.od[ht]=le(je,6))}if(J.L=Xe.Tb==0?0:Xe.zd?1:2,je.Ka)return na(J,3,"cannot parse filter header");var Dt=He;if(He=tt=Te,Te=tt+Dt,Xe=Dt,J.Xb=(1<<ae(J.m,2))-1,Dt<3*(ht=J.Xb))we=7;else{for(tt+=3*ht,Xe-=3*ht,Dt=0;Dt<ht;++Dt){var Vt=we[He+0]|we[He+1]<<8|we[He+2]<<16;Vt>Xe&&(Vt=Xe),ce(J.Jc[+Dt],we,tt,Vt),tt+=Vt,Xe-=Vt,He+=3}ce(J.Jc[+ht],we,tt,Xe),we=tt<Te?0:5}if(we!=0)return na(J,we,"cannot parse partitions");for(we=ae(tt=J.m,7),He=De(tt)?le(tt,4):0,Te=De(tt)?le(tt,4):0,Xe=De(tt)?le(tt,4):0,ht=De(tt)?le(tt,4):0,tt=De(tt)?le(tt,4):0,Dt=J.Qa,Vt=0;4>Vt;++Vt){if(Dt.Cb){var ut=Dt.Zb[Vt];Dt.Fb||(ut+=we)}else{if(0<Vt){J.pb[Vt]=J.pb[0];continue}ut=we}var Ot=J.pb[Vt];Ot.Sc[0]=sh[uo(ut+He,127)],Ot.Sc[1]=Uh[uo(ut+0,127)],Ot.Eb[0]=2*sh[uo(ut+Te,127)],Ot.Eb[1]=101581*Uh[uo(ut+Xe,127)]>>16,8>Ot.Eb[1]&&(Ot.Eb[1]=8),Ot.Qc[0]=sh[uo(ut+ht,117)],Ot.Qc[1]=Uh[uo(ut+tt,127)],Ot.lc=ut+tt}if(!We.Rb)return na(J,4,"Not a key frame.");for(De(je),We=J.Pa,we=0;4>we;++we){for(He=0;8>He;++He)for(Te=0;3>Te;++Te)for(Xe=0;11>Xe;++Xe)ht=ze(je,Fg[we][He][Te][Xe])?ae(je,8):iv[we][He][Te][Xe],We.Wc[we][He].Yb[Te][Xe]=ht;for(He=0;17>He;++He)We.Xc[we][He]=We.Wc[we][Zd[He]]}return J.kc=De(je),J.kc&&(J.Bd=ae(je,8)),J.cb=1}function _s(J,se,we,Te,He,je,We){var Xe=se[He].Yb[we];for(we=0;16>He;++He){if(!ze(J,Xe[we+0]))return He;for(;!ze(J,Xe[we+1]);)if(Xe=se[++He].Yb[0],we=0,He==16)return 16;var tt=se[He+1].Yb;if(ze(J,Xe[we+2])){var ht=J,Dt=0;if(ze(ht,(ut=Xe)[(Vt=we)+3]))if(ze(ht,ut[Vt+6])){for(Xe=0,Vt=2*(Dt=ze(ht,ut[Vt+8]))+(ut=ze(ht,ut[Vt+9+Dt])),Dt=0,ut=Tf[Vt];ut[Xe];++Xe)Dt+=Dt+ze(ht,ut[Xe]);Dt+=3+(8<<Vt)}else ze(ht,ut[Vt+7])?(Dt=7+2*ze(ht,165),Dt+=ze(ht,145)):Dt=5+ze(ht,159);else Dt=ze(ht,ut[Vt+4])?3+ze(ht,ut[Vt+5]):2;Xe=tt[2]}else Dt=1,Xe=tt[1];tt=We+nv[He],0>(ht=J).b&&xe(ht);var Vt,ut=ht.b,Ot=(Vt=ht.Ca>>1)-(ht.I>>ut)>>31;--ht.b,ht.Ca+=Ot,ht.Ca|=1,ht.I-=(Vt+1&Ot)<<ut,je[tt]=((Dt^Ot)-Ot)*Te[(0<He)+0]}return 16}function du(J){var se=J.rb[J.sb-1];se.la=0,se.Na=0,o(J.zc,0,0,J.zc.length),J.ja=0}function No(J,se,we,Te,He){He=J[se+we+32*Te]+(He>>3),J[se+we+32*Te]=-256&He?0>He?0:255:He}function Ws(J,se,we,Te,He,je){No(J,se,0,we,Te+He),No(J,se,1,we,Te+je),No(J,se,2,we,Te-je),No(J,se,3,we,Te-He)}function mo(J){return(20091*J>>16)+J}function $o(J,se,we,Te){var He,je=0,We=u(16);for(He=0;4>He;++He){var Xe=J[se+0]+J[se+8],tt=J[se+0]-J[se+8],ht=(35468*J[se+4]>>16)-mo(J[se+12]),Dt=mo(J[se+4])+(35468*J[se+12]>>16);We[je+0]=Xe+Dt,We[je+1]=tt+ht,We[je+2]=tt-ht,We[je+3]=Xe-Dt,je+=4,se++}for(He=je=0;4>He;++He)Xe=(J=We[je+0]+4)+We[je+8],tt=J-We[je+8],ht=(35468*We[je+4]>>16)-mo(We[je+12]),No(we,Te,0,0,Xe+(Dt=mo(We[je+4])+(35468*We[je+12]>>16))),No(we,Te,1,0,tt+ht),No(we,Te,2,0,tt-ht),No(we,Te,3,0,Xe-Dt),je++,Te+=32}function yo(J,se,we,Te){var He=J[se+0]+4,je=35468*J[se+4]>>16,We=mo(J[se+4]),Xe=35468*J[se+1]>>16;Ws(we,Te,0,He+We,J=mo(J[se+1]),Xe),Ws(we,Te,1,He+je,J,Xe),Ws(we,Te,2,He-je,J,Xe),Ws(we,Te,3,He-We,J,Xe)}function rv(J,se,we,Te,He){$o(J,se,we,Te),He&&$o(J,se+16,we,Te+4)}function Oc(J,se,we,Te){Xt(J,se+0,we,Te,1),Xt(J,se+32,we,Te+128,1)}function wo(J,se,we,Te){var He;for(J=J[se+0]+4,He=0;4>He;++He)for(se=0;4>se;++se)No(we,Te,se,He,J)}function wf(J,se,we,Te){J[se+0]&&Ir(J,se+0,we,Te),J[se+16]&&Ir(J,se+16,we,Te+4),J[se+32]&&Ir(J,se+32,we,Te+128),J[se+48]&&Ir(J,se+48,we,Te+128+4)}function Zu(J,se,we,Te){var He,je=u(16);for(He=0;4>He;++He){var We=J[se+0+He]+J[se+12+He],Xe=J[se+4+He]+J[se+8+He],tt=J[se+4+He]-J[se+8+He],ht=J[se+0+He]-J[se+12+He];je[0+He]=We+Xe,je[8+He]=We-Xe,je[4+He]=ht+tt,je[12+He]=ht-tt}for(He=0;4>He;++He)We=(J=je[0+4*He]+3)+je[3+4*He],Xe=je[1+4*He]+je[2+4*He],tt=je[1+4*He]-je[2+4*He],ht=J-je[3+4*He],we[Te+0]=We+Xe>>3,we[Te+16]=ht+tt>>3,we[Te+32]=We-Xe>>3,we[Te+48]=ht-tt>>3,Te+=64}function Ql(J,se,we){var Te,He=se-32,je=si,We=255-J[He-1];for(Te=0;Te<we;++Te){var Xe,tt=je,ht=We+J[se-1];for(Xe=0;Xe<we;++Xe)J[se+Xe]=tt[ht+J[He+Xe]];se+=32}}function oo(J,se){Ql(J,se,4)}function kc(J,se){Ql(J,se,8)}function bf(J,se){Ql(J,se,16)}function Kd(J,se){var we;for(we=0;16>we;++we)n(J,se+32*we,J,se-32,16)}function us(J,se){var we;for(we=16;0<we;--we)o(J,se,J[se-1],16),se+=32}function cs(J,se,we){var Te;for(Te=0;16>Te;++Te)o(se,we+32*Te,J,16)}function Ls(J,se){var we,Te=16;for(we=0;16>we;++we)Te+=J[se-1+32*we]+J[se+we-32];cs(Te>>5,J,se)}function Vl(J,se){var we,Te=8;for(we=0;16>we;++we)Te+=J[se-1+32*we];cs(Te>>4,J,se)}function Tu(J,se){var we,Te=8;for(we=0;16>we;++we)Te+=J[se+we-32];cs(Te>>4,J,se)}function Ju(J,se){cs(128,J,se)}function gn(J,se,we){return J+2*se+we+2>>2}function ec(J,se){var we,Te=se-32;for(Te=new Uint8Array([gn(J[Te-1],J[Te+0],J[Te+1]),gn(J[Te+0],J[Te+1],J[Te+2]),gn(J[Te+1],J[Te+2],J[Te+3]),gn(J[Te+2],J[Te+3],J[Te+4])]),we=0;4>we;++we)n(J,se+32*we,Te,0,Te.length)}function Fc(J,se){var we=J[se-1],Te=J[se-1+32],He=J[se-1+64],je=J[se-1+96];Ye(J,se+0,16843009*gn(J[se-1-32],we,Te)),Ye(J,se+32,16843009*gn(we,Te,He)),Ye(J,se+64,16843009*gn(Te,He,je)),Ye(J,se+96,16843009*gn(He,je,je))}function $s(J,se){var we,Te=4;for(we=0;4>we;++we)Te+=J[se+we-32]+J[se-1+32*we];for(Te>>=3,we=0;4>we;++we)o(J,se+32*we,Te,4)}function Ai(J,se){var we=J[se-1+0],Te=J[se-1+32],He=J[se-1+64],je=J[se-1-32],We=J[se+0-32],Xe=J[se+1-32],tt=J[se+2-32],ht=J[se+3-32];J[se+0+96]=gn(Te,He,J[se-1+96]),J[se+1+96]=J[se+0+64]=gn(we,Te,He),J[se+2+96]=J[se+1+64]=J[se+0+32]=gn(je,we,Te),J[se+3+96]=J[se+2+64]=J[se+1+32]=J[se+0+0]=gn(We,je,we),J[se+3+64]=J[se+2+32]=J[se+1+0]=gn(Xe,We,je),J[se+3+32]=J[se+2+0]=gn(tt,Xe,We),J[se+3+0]=gn(ht,tt,Xe)}function so(J,se){var we=J[se+1-32],Te=J[se+2-32],He=J[se+3-32],je=J[se+4-32],We=J[se+5-32],Xe=J[se+6-32],tt=J[se+7-32];J[se+0+0]=gn(J[se+0-32],we,Te),J[se+1+0]=J[se+0+32]=gn(we,Te,He),J[se+2+0]=J[se+1+32]=J[se+0+64]=gn(Te,He,je),J[se+3+0]=J[se+2+32]=J[se+1+64]=J[se+0+96]=gn(He,je,We),J[se+3+32]=J[se+2+64]=J[se+1+96]=gn(je,We,Xe),J[se+3+64]=J[se+2+96]=gn(We,Xe,tt),J[se+3+96]=gn(Xe,tt,tt)}function _l(J,se){var we=J[se-1+0],Te=J[se-1+32],He=J[se-1+64],je=J[se-1-32],We=J[se+0-32],Xe=J[se+1-32],tt=J[se+2-32],ht=J[se+3-32];J[se+0+0]=J[se+1+64]=je+We+1>>1,J[se+1+0]=J[se+2+64]=We+Xe+1>>1,J[se+2+0]=J[se+3+64]=Xe+tt+1>>1,J[se+3+0]=tt+ht+1>>1,J[se+0+96]=gn(He,Te,we),J[se+0+64]=gn(Te,we,je),J[se+0+32]=J[se+1+96]=gn(we,je,We),J[se+1+32]=J[se+2+96]=gn(je,We,Xe),J[se+2+32]=J[se+3+96]=gn(We,Xe,tt),J[se+3+32]=gn(Xe,tt,ht)}function zl(J,se){var we=J[se+0-32],Te=J[se+1-32],He=J[se+2-32],je=J[se+3-32],We=J[se+4-32],Xe=J[se+5-32],tt=J[se+6-32],ht=J[se+7-32];J[se+0+0]=we+Te+1>>1,J[se+1+0]=J[se+0+64]=Te+He+1>>1,J[se+2+0]=J[se+1+64]=He+je+1>>1,J[se+3+0]=J[se+2+64]=je+We+1>>1,J[se+0+32]=gn(we,Te,He),J[se+1+32]=J[se+0+96]=gn(Te,He,je),J[se+2+32]=J[se+1+96]=gn(He,je,We),J[se+3+32]=J[se+2+96]=gn(je,We,Xe),J[se+3+64]=gn(We,Xe,tt),J[se+3+96]=gn(Xe,tt,ht)}function tc(J,se){var we=J[se-1+0],Te=J[se-1+32],He=J[se-1+64],je=J[se-1+96];J[se+0+0]=we+Te+1>>1,J[se+2+0]=J[se+0+32]=Te+He+1>>1,J[se+2+32]=J[se+0+64]=He+je+1>>1,J[se+1+0]=gn(we,Te,He),J[se+3+0]=J[se+1+32]=gn(Te,He,je),J[se+3+32]=J[se+1+64]=gn(He,je,je),J[se+3+64]=J[se+2+64]=J[se+0+96]=J[se+1+96]=J[se+2+96]=J[se+3+96]=je}function _f(J,se){var we=J[se-1+0],Te=J[se-1+32],He=J[se-1+64],je=J[se-1+96],We=J[se-1-32],Xe=J[se+0-32],tt=J[se+1-32],ht=J[se+2-32];J[se+0+0]=J[se+2+32]=we+We+1>>1,J[se+0+32]=J[se+2+64]=Te+we+1>>1,J[se+0+64]=J[se+2+96]=He+Te+1>>1,J[se+0+96]=je+He+1>>1,J[se+3+0]=gn(Xe,tt,ht),J[se+2+0]=gn(We,Xe,tt),J[se+1+0]=J[se+3+32]=gn(we,We,Xe),J[se+1+32]=J[se+3+64]=gn(Te,we,We),J[se+1+64]=J[se+3+96]=gn(He,Te,we),J[se+1+96]=gn(je,He,Te)}function xn(J,se){var we;for(we=0;8>we;++we)n(J,se+32*we,J,se-32,8)}function fs(J,se){var we;for(we=0;8>we;++we)o(J,se,J[se-1],8),se+=32}function Eu(J,se,we){var Te;for(Te=0;8>Te;++Te)o(se,we+32*Te,J,8)}function Ks(J,se){var we,Te=8;for(we=0;8>we;++we)Te+=J[se+we-32]+J[se-1+32*we];Eu(Te>>4,J,se)}function Ss(J,se){var we,Te=4;for(we=0;8>we;++we)Te+=J[se+we-32];Eu(Te>>3,J,se)}function Au(J,se){var we,Te=4;for(we=0;8>we;++we)Te+=J[se-1+32*we];Eu(Te>>3,J,se)}function vu(J,se){Eu(128,J,se)}function Uo(J,se,we){var Te=J[se-we],He=J[se+0],je=3*(He-Te)+Xr[1020+J[se-2*we]-J[se+we]],We=Fn[112+(je+4>>3)];J[se-we]=si[255+Te+Fn[112+(je+3>>3)]],J[se+0]=si[255+He-We]}function Gl(J,se,we,Te){var He=J[se+0],je=J[se+we];return ya[255+J[se-2*we]-J[se-we]]>Te||ya[255+je-He]>Te}function Bn(J,se,we,Te){return 4*ya[255+J[se-we]-J[se+0]]+ya[255+J[se-2*we]-J[se+we]]<=Te}function jl(J,se,we,Te,He){var je=J[se-3*we],We=J[se-2*we],Xe=J[se-we],tt=J[se+0],ht=J[se+we],Dt=J[se+2*we],Vt=J[se+3*we];return 4*ya[255+Xe-tt]+ya[255+We-ht]>Te?0:ya[255+J[se-4*we]-je]<=He&&ya[255+je-We]<=He&&ya[255+We-Xe]<=He&&ya[255+Vt-Dt]<=He&&ya[255+Dt-ht]<=He&&ya[255+ht-tt]<=He}function Sf(J,se,we,Te){var He=2*Te+1;for(Te=0;16>Te;++Te)Bn(J,se+Te,we,He)&&Uo(J,se+Te,we)}function Nc(J,se,we,Te){var He=2*Te+1;for(Te=0;16>Te;++Te)Bn(J,se+Te*we,1,He)&&Uo(J,se+Te*we,1)}function Uc(J,se,we,Te){var He;for(He=3;0<He;--He)Sf(J,se+=4*we,we,Te)}function pu(J,se,we,Te){var He;for(He=3;0<He;--He)Nc(J,se+=4,we,Te)}function Lo(J,se,we,Te,He,je,We,Xe){for(je=2*je+1;0<He--;){if(jl(J,se,we,je,We))if(Gl(J,se,we,Xe))Uo(J,se,we);else{var tt=J,ht=se,Dt=we,Vt=tt[ht-2*Dt],ut=tt[ht-Dt],Ot=tt[ht+0],Gt=tt[ht+Dt],rr=tt[ht+2*Dt],$t=27*(sr=Xr[1020+3*(Ot-ut)+Xr[1020+Vt-Gt]])+63>>7,tr=18*sr+63>>7,sr=9*sr+63>>7;tt[ht-3*Dt]=si[255+tt[ht-3*Dt]+sr],tt[ht-2*Dt]=si[255+Vt+tr],tt[ht-Dt]=si[255+ut+$t],tt[ht+0]=si[255+Ot-$t],tt[ht+Dt]=si[255+Gt-tr],tt[ht+2*Dt]=si[255+rr-sr]}se+=Te}}function Sl(J,se,we,Te,He,je,We,Xe){for(je=2*je+1;0<He--;){if(jl(J,se,we,je,We))if(Gl(J,se,we,Xe))Uo(J,se,we);else{var tt=J,ht=se,Dt=we,Vt=tt[ht-Dt],ut=tt[ht+0],Ot=tt[ht+Dt],Gt=Fn[112+(4+(rr=3*(ut-Vt))>>3)],rr=Fn[112+(rr+3>>3)],$t=Gt+1>>1;tt[ht-2*Dt]=si[255+tt[ht-2*Dt]+$t],tt[ht-Dt]=si[255+Vt+rr],tt[ht+0]=si[255+ut-Gt],tt[ht+Dt]=si[255+Ot-$t]}se+=Te}}function me(J,se,we,Te,He,je){Lo(J,se,we,1,16,Te,He,je)}function Ve(J,se,we,Te,He,je){Lo(J,se,1,we,16,Te,He,je)}function lt(J,se,we,Te,He,je){var We;for(We=3;0<We;--We)Sl(J,se+=4*we,we,1,16,Te,He,je)}function St(J,se,we,Te,He,je){var We;for(We=3;0<We;--We)Sl(J,se+=4,1,we,16,Te,He,je)}function Qt(J,se,we,Te,He,je,We,Xe){Lo(J,se,He,1,8,je,We,Xe),Lo(we,Te,He,1,8,je,We,Xe)}function Zt(J,se,we,Te,He,je,We,Xe){Lo(J,se,1,He,8,je,We,Xe),Lo(we,Te,1,He,8,je,We,Xe)}function hr(J,se,we,Te,He,je,We,Xe){Sl(J,se+4*He,He,1,8,je,We,Xe),Sl(we,Te+4*He,He,1,8,je,We,Xe)}function Jr(J,se,we,Te,He,je,We,Xe){Sl(J,se+4,1,He,8,je,We,Xe),Sl(we,Te+4,1,He,8,je,We,Xe)}function hn(){this.ba=new Nr,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new zr,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Wn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Xn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ji(){this.ua=0,this.Wa=new qe,this.vb=new qe,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new K,this.yc=new Y}function Ia(){this.xb=this.a=0,this.l=new Di,this.ca=new Nr,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new oe,this.Pb=0,this.wd=new oe,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ji,this.ab=0,this.gc=f(4,Xn),this.Oc=0}function Ra(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Di,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function bi(J,se,we,Te,He,je,We){for(J=J==null?0:J[se+0],se=0;se<We;++se)He[je+se]=J+we[Te+se]&255,J=He[je+se]}function lo(J,se,we,Te,He,je,We){var Xe;if(J==null)bi(null,null,we,Te,He,je,We);else for(Xe=0;Xe<We;++Xe)He[je+Xe]=J[se+Xe]+we[Te+Xe]&255}function Pa(J,se,we,Te,He,je,We){if(J==null)bi(null,null,we,Te,He,je,We);else{var Xe,tt=J[se+0],ht=tt,Dt=tt;for(Xe=0;Xe<We;++Xe)ht=Dt+(tt=J[se+Xe])-ht,Dt=we[Te+Xe]+(-256&ht?0>ht?0:255:ht)&255,ht=tt,He[je+Xe]=Dt}}function Ko(J,se,we,Te){var He=se.width,je=se.o;if(e(J!=null&&se!=null),0>we||0>=Te||we+Te>je)return null;if(!J.Cc){if(J.ga==null){var We;if(J.ga=new Ra,(We=J.ga==null)||(We=se.width*se.o,e(J.Gb.length==0),J.Gb=u(We),J.Uc=0,J.Gb==null?We=0:(J.mb=J.Gb,J.nb=J.Uc,J.rc=null,We=1),We=!We),!We){We=J.ga;var Xe=J.Fa,tt=J.P,ht=J.qc,Dt=J.mb,Vt=J.nb,ut=tt+1,Ot=ht-1,Gt=We.l;if(e(Xe!=null&&Dt!=null&&se!=null),Jo[0]=null,Jo[1]=bi,Jo[2]=lo,Jo[3]=Pa,We.ca=Dt,We.tb=Vt,We.c=se.width,We.i=se.height,e(0<We.c&&0<We.i),1>=ht)se=0;else if(We.$a=3&Xe[tt+0],We.Z=Xe[tt+0]>>2&3,We.Lc=Xe[tt+0]>>4&3,tt=Xe[tt+0]>>6&3,0>We.$a||1<We.$a||4<=We.Z||1<We.Lc||tt)se=0;else if(Gt.put=Tt,Gt.ac=Ct,Gt.bc=ir,Gt.ma=We,Gt.width=se.width,Gt.height=se.height,Gt.Da=se.Da,Gt.v=se.v,Gt.va=se.va,Gt.j=se.j,Gt.o=se.o,We.$a)e:{e(We.$a==1),se=ci();t:for(;;){if(se==null){se=0;break e}if(e(We!=null),We.mc=se,se.c=We.c,se.i=We.i,se.l=We.l,se.l.ma=We,se.l.width=We.c,se.l.height=We.i,se.a=0,pe(se.m,Xe,ut,Ot),!_r(We.c,We.i,1,se,null)||(se.ab==1&&se.gc[0].hc==3&&Ar(se.s)?(We.ic=1,Xe=se.c*se.i,se.Ta=null,se.Ua=0,se.V=u(Xe),se.Ba=0,se.V==null?(se.a=1,se=0):se=1):(We.ic=0,se=pt(se,We.c)),!se))break t;se=1;break e}We.mc=null,se=0}else se=Ot>=We.c*We.i;We=!se}if(We)return null;J.ga.Lc!=1?J.Ga=0:Te=je-we}e(J.ga!=null),e(we+Te<=je);e:{if(se=(Xe=J.ga).c,je=Xe.l.o,Xe.$a==0){if(ut=J.rc,Ot=J.Vc,Gt=J.Fa,tt=J.P+1+we*se,ht=J.mb,Dt=J.nb+we*se,e(tt<=J.P+J.qc),Xe.Z!=0)for(e(Jo[Xe.Z]!=null),We=0;We<Te;++We)Jo[Xe.Z](ut,Ot,Gt,tt,ht,Dt,se),ut=ht,Ot=Dt,Dt+=se,tt+=se;else for(We=0;We<Te;++We)n(ht,Dt,Gt,tt,se),ut=ht,Ot=Dt,Dt+=se,tt+=se;J.rc=ut,J.Vc=Ot}else{if(e(Xe.mc!=null),se=we+Te,e((We=Xe.mc)!=null),e(se<=We.i),We.C>=se)se=1;else if(Xe.ic||Qc(),Xe.ic){Xe=We.V,ut=We.Ba,Ot=We.c;var rr=We.i,$t=(Gt=1,tt=We.$/Ot,ht=We.$%Ot,Dt=We.m,Vt=We.s,We.$),tr=Ot*rr,sr=Ot*se,xr=Vt.wc,dr=$t<sr?yr(Vt,ht,tt):null;e($t<=tr),e(se<=rr),e(Ar(Vt));t:for(;;){for(;!Dt.h&&$t<sr;){if(ht&xr||(dr=yr(Vt,ht,tt)),e(dr!=null),ne(Dt),256>(rr=xt(dr.G[0],dr.H[0],Dt)))Xe[ut+$t]=rr,++$t,++ht>=Ot&&(ht=0,++tt<=se&&!(tt%16)&&Fr(We,tt));else{if(!(280>rr)){Gt=0;break t}rr=ot(rr-256,Dt);var bn,an=xt(dr.G[4],dr.H[4],Dt);if(ne(Dt),!($t>=(an=mt(Ot,an=ot(an,Dt)))&&tr-$t>=rr)){Gt=0;break t}for(bn=0;bn<rr;++bn)Xe[ut+$t+bn]=Xe[ut+$t+bn-an];for($t+=rr,ht+=rr;ht>=Ot;)ht-=Ot,++tt<=se&&!(tt%16)&&Fr(We,tt);$t<sr&&ht&xr&&(dr=yr(Vt,ht,tt))}e(Dt.h==_e(Dt))}Fr(We,tt>se?se:tt);break t}!Gt||Dt.h&&$t<tr?(Gt=0,We.a=Dt.h?5:3):We.$=$t,se=Gt}else se=nn(We,We.V,We.Ba,We.c,We.i,se,or);if(!se){Te=0;break e}}we+Te>=je&&(J.Cc=1),Te=1}if(!Te)return null;if(J.Cc&&((Te=J.ga)!=null&&(Te.mc=null),J.ga=null,0<J.Ga))return alert("todo:WebPDequantizeLevels"),null}return J.nb+we*He}function Ho(J,se,we,Te,He,je){for(;0<He--;){var We,Xe=J,tt=se+(we?1:0),ht=J,Dt=se+(we?0:3);for(We=0;We<Te;++We){var Vt=ht[Dt+4*We];Vt!=255&&(Vt*=32897,Xe[tt+4*We+0]=Xe[tt+4*We+0]*Vt>>23,Xe[tt+4*We+1]=Xe[tt+4*We+1]*Vt>>23,Xe[tt+4*We+2]=Xe[tt+4*We+2]*Vt>>23)}se+=je}}function Hc(J,se,we,Te,He){for(;0<Te--;){var je;for(je=0;je<we;++je){var We=J[se+2*je+0],Xe=15&(ht=J[se+2*je+1]),tt=4369*Xe,ht=(240&ht|ht>>4)*tt>>16;J[se+2*je+0]=(240&We|We>>4)*tt>>16&240|(15&We|We<<4)*tt>>16>>4&15,J[se+2*je+1]=240&ht|Xe}se+=He}}function Ap(J,se,we,Te,He,je,We,Xe){var tt,ht,Dt=255;for(ht=0;ht<He;++ht){for(tt=0;tt<Te;++tt){var Vt=J[se+tt];je[We+4*tt]=Vt,Dt&=Vt}se+=we,We+=Xe}return Dt!=255}function Yd(J,se,we,Te,He){var je;for(je=0;je<He;++je)we[Te+je]=J[se+je]>>8}function Qc(){$r=Ho,An=Hc,mn=Ap,Kn=Yd}function Ys(J,se,we){G[J]=function(Te,He,je,We,Xe,tt,ht,Dt,Vt,ut,Ot,Gt,rr,$t,tr,sr,xr){var dr,bn=xr-1>>1,an=Xe[tt+0]|ht[Dt+0]<<16,Bi=Vt[ut+0]|Ot[Gt+0]<<16;e(Te!=null);var sn=3*an+Bi+131074>>2;for(se(Te[He+0],255&sn,sn>>16,rr,$t),je!=null&&(sn=3*Bi+an+131074>>2,se(je[We+0],255&sn,sn>>16,tr,sr)),dr=1;dr<=bn;++dr){var vi=Xe[tt+dr]|ht[Dt+dr]<<16,Vo=Vt[ut+dr]|Ot[Gt+dr]<<16,fi=an+vi+Bi+Vo+524296,Ln=fi+2*(vi+Bi)>>3;sn=Ln+an>>1,an=(fi=fi+2*(an+Vo)>>3)+vi>>1,se(Te[He+2*dr-1],255&sn,sn>>16,rr,$t+(2*dr-1)*we),se(Te[He+2*dr-0],255&an,an>>16,rr,$t+(2*dr-0)*we),je!=null&&(sn=fi+Bi>>1,an=Ln+Vo>>1,se(je[We+2*dr-1],255&sn,sn>>16,tr,sr+(2*dr-1)*we),se(je[We+2*dr+0],255&an,an>>16,tr,sr+(2*dr+0)*we)),an=vi,Bi=Vo}1&xr||(sn=3*an+Bi+131074>>2,se(Te[He+xr-1],255&sn,sn>>16,rr,$t+(xr-1)*we),je!=null&&(sn=3*Bi+an+131074>>2,se(je[We+xr-1],255&sn,sn>>16,tr,sr+(xr-1)*we)))}}function Vc(){Ps[_o]=Hh,Ps[Js]=av,Ps[jr]=xl,Ps[Wi]=Ng,Ps[Zo]=pp,Ps[Fa]=gp,Ps[Mo]=Ug,Ps[Fh]=av,Ps[Nh]=Ng,Ps[yn]=pp,Ps[Aa]=gp}function ql(J){return J&-16384?0>J?0:255:J>>yp}function Bu(J,se){return ql((19077*J>>8)+(26149*se>>8)-14234)}function Yo(J,se,we){return ql((19077*J>>8)-(6419*se>>8)-(13320*we>>8)+8708)}function rc(J,se){return ql((19077*J>>8)+(33050*se>>8)-17685)}function Xo(J,se,we,Te,He){Te[He+0]=Bu(J,we),Te[He+1]=Yo(J,se,we),Te[He+2]=rc(J,se)}function Xs(J,se,we,Te,He){Te[He+0]=rc(J,se),Te[He+1]=Yo(J,se,we),Te[He+2]=Bu(J,we)}function Ms(J,se,we,Te,He){var je=Yo(J,se,we);se=je<<3&224|rc(J,se)>>3,Te[He+0]=248&Bu(J,we)|je>>5,Te[He+1]=se}function bo(J,se,we,Te,He){var je=240&rc(J,se)|15;Te[He+0]=240&Bu(J,we)|Yo(J,se,we)>>4,Te[He+1]=je}function Wl(J,se,we,Te,He){Te[He+0]=255,Xo(J,se,we,Te,He+1)}function ih(J,se,we,Te,He){Xs(J,se,we,Te,He),Te[He+3]=255}function Oa(J,se,we,Te,He){Xo(J,se,we,Te,He),Te[He+3]=255}function uo(J,se){return 0>J?0:J>se?se:J}function Zs(J,se,we){G[J]=function(Te,He,je,We,Xe,tt,ht,Dt,Vt){for(var ut=Dt+(-2&Vt)*we;Dt!=ut;)se(Te[He+0],je[We+0],Xe[tt+0],ht,Dt),se(Te[He+1],je[We+0],Xe[tt+0],ht,Dt+we),He+=2,++We,++tt,Dt+=2*we;1&Vt&&se(Te[He+0],je[We+0],Xe[tt+0],ht,Dt)}}function kh(J,se,we){return we==0?J==0?se==0?6:5:se==0?4:0:we}function gu(J,se,we,Te,He){switch(J>>>30){case 3:Xt(se,we,Te,He,0);break;case 2:Rr(se,we,Te,He);break;case 1:Ir(se,we,Te,He)}}function zc(J,se){var we,Te,He=se.M,je=se.Nb,We=J.oc,Xe=J.pc+40,tt=J.oc,ht=J.pc+584,Dt=J.oc,Vt=J.pc+600;for(we=0;16>we;++we)We[Xe+32*we-1]=129;for(we=0;8>we;++we)tt[ht+32*we-1]=129,Dt[Vt+32*we-1]=129;for(0<He?We[Xe-1-32]=tt[ht-1-32]=Dt[Vt-1-32]=129:(o(We,Xe-32-1,127,21),o(tt,ht-32-1,127,9),o(Dt,Vt-32-1,127,9)),Te=0;Te<J.za;++Te){var ut=se.ya[se.aa+Te];if(0<Te){for(we=-1;16>we;++we)n(We,Xe+32*we-4,We,Xe+32*we+12,4);for(we=-1;8>we;++we)n(tt,ht+32*we-4,tt,ht+32*we+4,4),n(Dt,Vt+32*we-4,Dt,Vt+32*we+4,4)}var Ot=J.Gd,Gt=J.Hd+Te,rr=ut.ad,$t=ut.Hc;if(0<He&&(n(We,Xe-32,Ot[Gt].y,0,16),n(tt,ht-32,Ot[Gt].f,0,8),n(Dt,Vt-32,Ot[Gt].ea,0,8)),ut.Za){var tr=We,sr=Xe-32+16;for(0<He&&(Te>=J.za-1?o(tr,sr,Ot[Gt].y[15],4):n(tr,sr,Ot[Gt+1].y,0,4)),we=0;4>we;we++)tr[sr+128+we]=tr[sr+256+we]=tr[sr+384+we]=tr[sr+0+we];for(we=0;16>we;++we,$t<<=2)tr=We,sr=Xe+lv[we],Qi[ut.Ob[we]](tr,sr),gu($t,rr,16*+we,tr,sr)}else if(tr=kh(Te,He,ut.Ob[0]),Rs[tr](We,Xe),$t!=0)for(we=0;16>we;++we,$t<<=2)gu($t,rr,16*+we,We,Xe+lv[we]);for(we=ut.Gc,tr=kh(Te,He,ut.Dd),wa[tr](tt,ht),wa[tr](Dt,Vt),$t=rr,tr=tt,sr=ht,255&(ut=0|we)&&(170&ut?ar($t,256,tr,sr):gr($t,256,tr,sr)),ut=Dt,$t=Vt,255&(we>>=8)&&(170&we?ar(rr,320,ut,$t):gr(rr,320,ut,$t)),He<J.Ub-1&&(n(Ot[Gt].y,0,We,Xe+480,16),n(Ot[Gt].f,0,tt,ht+224,8),n(Ot[Gt].ea,0,Dt,Vt+224,8)),we=8*je*J.B,Ot=J.sa,Gt=J.ta+16*Te+16*je*J.R,rr=J.qa,ut=J.ra+8*Te+we,$t=J.Ha,tr=J.Ia+8*Te+we,we=0;16>we;++we)n(Ot,Gt+we*J.R,We,Xe+32*we,16);for(we=0;8>we;++we)n(rr,ut+we*J.B,tt,ht+32*we,8),n($t,tr+we*J.B,Dt,Vt+32*we,8)}}function xf(J,se,we,Te,He,je,We,Xe,tt){var ht=[0],Dt=[0],Vt=0,ut=tt!=null?tt.kd:0,Ot=tt??new Wn;if(J==null||12>we)return 7;Ot.data=J,Ot.w=se,Ot.ha=we,se=[se],we=[we],Ot.gb=[Ot.gb];e:{var Gt=se,rr=we,$t=Ot.gb;if(e(J!=null),e(rr!=null),e($t!=null),$t[0]=0,12<=rr[0]&&!r(J,Gt[0],"RIFF")){if(r(J,Gt[0]+8,"WEBP")){$t=3;break e}var tr=Ue(J,Gt[0]+4);if(12>tr||4294967286<tr){$t=3;break e}if(ut&&tr>rr[0]-8){$t=7;break e}$t[0]=tr,Gt[0]+=12,rr[0]-=12}$t=0}if($t!=0)return $t;for(tr=0<Ot.gb[0],we=we[0];;){e:{var sr=J;rr=se,$t=we;var xr=ht,dr=Dt,bn=Gt=[0];if((sn=Vt=[Vt])[0]=0,8>$t[0])$t=7;else{if(!r(sr,rr[0],"VP8X")){if(Ue(sr,rr[0]+4)!=10){$t=3;break e}if(18>$t[0]){$t=7;break e}var an=Ue(sr,rr[0]+8),Bi=1+yt(sr,rr[0]+12);if(2147483648<=Bi*(sr=1+yt(sr,rr[0]+15))){$t=3;break e}bn!=null&&(bn[0]=an),xr!=null&&(xr[0]=Bi),dr!=null&&(dr[0]=sr),rr[0]+=18,$t[0]-=18,sn[0]=1}$t=0}}if(Vt=Vt[0],Gt=Gt[0],$t!=0)return $t;if(rr=!!(2&Gt),!tr&&Vt)return 3;if(je!=null&&(je[0]=!!(16&Gt)),We!=null&&(We[0]=rr),Xe!=null&&(Xe[0]=0),We=ht[0],Gt=Dt[0],Vt&&rr&&tt==null){$t=0;break}if(4>we){$t=7;break}if(tr&&Vt||!tr&&!Vt&&!r(J,se[0],"ALPH")){we=[we],Ot.na=[Ot.na],Ot.P=[Ot.P],Ot.Sa=[Ot.Sa];e:{an=J,$t=se,tr=we;var sn=Ot.gb;xr=Ot.na,dr=Ot.P,bn=Ot.Sa,Bi=22,e(an!=null),e(tr!=null),sr=$t[0];var vi=tr[0];for(e(xr!=null),e(bn!=null),xr[0]=null,dr[0]=null,bn[0]=0;;){if($t[0]=sr,tr[0]=vi,8>vi){$t=7;break e}var Vo=Ue(an,sr+4);if(4294967286<Vo){$t=3;break e}var fi=8+Vo+1&-2;if(Bi+=fi,0<sn&&Bi>sn){$t=3;break e}if(!r(an,sr,"VP8 ")||!r(an,sr,"VP8L")){$t=0;break e}if(vi[0]<fi){$t=7;break e}r(an,sr,"ALPH")||(xr[0]=an,dr[0]=sr+8,bn[0]=Vo),sr+=fi,vi-=fi}}if(we=we[0],Ot.na=Ot.na[0],Ot.P=Ot.P[0],Ot.Sa=Ot.Sa[0],$t!=0)break}we=[we],Ot.Ja=[Ot.Ja],Ot.xa=[Ot.xa];e:if(sn=J,$t=se,tr=we,xr=Ot.gb[0],dr=Ot.Ja,bn=Ot.xa,an=$t[0],sr=!r(sn,an,"VP8 "),Bi=!r(sn,an,"VP8L"),e(sn!=null),e(tr!=null),e(dr!=null),e(bn!=null),8>tr[0])$t=7;else{if(sr||Bi){if(sn=Ue(sn,an+4),12<=xr&&sn>xr-12){$t=3;break e}if(ut&&sn>tr[0]-8){$t=7;break e}dr[0]=sn,$t[0]+=8,tr[0]-=8,bn[0]=Bi}else bn[0]=5<=tr[0]&&sn[an+0]==47&&!(sn[an+4]>>5),dr[0]=tr[0];$t=0}if(we=we[0],Ot.Ja=Ot.Ja[0],Ot.xa=Ot.xa[0],se=se[0],$t!=0)break;if(4294967286<Ot.Ja)return 3;if(Xe==null||rr||(Xe[0]=Ot.xa?2:1),We=[We],Gt=[Gt],Ot.xa){if(5>we){$t=7;break}Xe=We,ut=Gt,rr=je,J==null||5>we?J=0:5<=we&&J[se+0]==47&&!(J[se+4]>>5)?(tr=[0],sn=[0],xr=[0],pe(dr=new oe,J,se,we),et(dr,tr,sn,xr)?(Xe!=null&&(Xe[0]=tr[0]),ut!=null&&(ut[0]=sn[0]),rr!=null&&(rr[0]=xr[0]),J=1):J=0):J=0}else{if(10>we){$t=7;break}Xe=Gt,J==null||10>we||!bs(J,se+3,we-3)?J=0:(ut=J[se+0]|J[se+1]<<8|J[se+2]<<16,rr=16383&(J[se+7]<<8|J[se+6]),J=16383&(J[se+9]<<8|J[se+8]),1&ut||3<(ut>>1&7)||!(ut>>4&1)||ut>>5>=Ot.Ja||!rr||!J?J=0:(We&&(We[0]=rr),Xe&&(Xe[0]=J),J=1))}if(!J||(We=We[0],Gt=Gt[0],Vt&&(ht[0]!=We||Dt[0]!=Gt)))return 3;tt!=null&&(tt[0]=Ot,tt.offset=se-tt.w,e(4294967286>se-tt.w),e(tt.offset==tt.ha-we));break}return $t==0||$t==7&&Vt&&tt==null?(je!=null&&(je[0]|=Ot.na!=null&&0<Ot.na.length),Te!=null&&(Te[0]=We),He!=null&&(He[0]=Gt),0):$t}function qi(J,se,we){var Te=se.width,He=se.height,je=0,We=0,Xe=Te,tt=He;if(se.Da=J!=null&&0<J.Da,se.Da&&(Xe=J.cd,tt=J.bd,je=J.v,We=J.j,11>we||(je&=-2,We&=-2),0>je||0>We||0>=Xe||0>=tt||je+Xe>Te||We+tt>He))return 0;if(se.v=je,se.j=We,se.va=je+Xe,se.o=We+tt,se.U=Xe,se.T=tt,se.da=J!=null&&0<J.da,se.da){if(!Re(Xe,tt,we=[J.ib],je=[J.hb]))return 0;se.ib=we[0],se.hb=je[0]}return se.ob=J!=null&&J.ob,se.Kb=J==null||!J.Sd,se.da&&(se.ob=se.ib<3*Te/4&&se.hb<3*He/4,se.Kb=0),1}function Ds(J){if(J==null)return 2;if(11>J.S){var se=J.f.RGBA;se.fb+=(J.height-1)*se.A,se.A=-se.A}else se=J.f.kb,J=J.height,se.O+=(J-1)*se.fa,se.fa=-se.fa,se.N+=(J-1>>1)*se.Ab,se.Ab=-se.Ab,se.W+=(J-1>>1)*se.Db,se.Db=-se.Db,se.F!=null&&(se.J+=(J-1)*se.lb,se.lb=-se.lb);return 0}function Cf(J,se,we,Te){if(Te==null||0>=J||0>=se)return 2;if(we!=null){if(we.Da){var He=we.cd,je=we.bd,We=-2&we.v,Xe=-2&we.j;if(0>We||0>Xe||0>=He||0>=je||We+He>J||Xe+je>se)return 2;J=He,se=je}if(we.da){if(!Re(J,se,He=[we.ib],je=[we.hb]))return 2;J=He[0],se=je[0]}}Te.width=J,Te.height=se;e:{var tt=Te.width,ht=Te.height;if(J=Te.S,0>=tt||0>=ht||!(J>=_o&&13>J))J=2;else{if(0>=Te.Rd&&Te.sd==null){We=je=He=se=0;var Dt=(Xe=tt*Bf[J])*ht;if(11>J||(je=(ht+1)/2*(se=(tt+1)/2),J==12&&(We=(He=tt)*ht)),(ht=u(Dt+2*je+We))==null){J=1;break e}Te.sd=ht,11>J?((tt=Te.f.RGBA).eb=ht,tt.fb=0,tt.A=Xe,tt.size=Dt):((tt=Te.f.kb).y=ht,tt.O=0,tt.fa=Xe,tt.Fd=Dt,tt.f=ht,tt.N=0+Dt,tt.Ab=se,tt.Cd=je,tt.ea=ht,tt.W=0+Dt+je,tt.Db=se,tt.Ed=je,J==12&&(tt.F=ht,tt.J=0+Dt+2*je),tt.Tc=We,tt.lb=He)}if(se=1,He=Te.S,je=Te.width,We=Te.height,He>=_o&&13>He)if(11>He)J=Te.f.RGBA,se&=(Xe=Math.abs(J.A))*(We-1)+je<=J.size,se&=Xe>=je*Bf[He],se&=J.eb!=null;else{J=Te.f.kb,Xe=(je+1)/2,Dt=(We+1)/2,tt=Math.abs(J.fa),ht=Math.abs(J.Ab);var Vt=Math.abs(J.Db),ut=Math.abs(J.lb),Ot=ut*(We-1)+je;se&=tt*(We-1)+je<=J.Fd,se&=ht*(Dt-1)+Xe<=J.Cd,se=(se&=Vt*(Dt-1)+Xe<=J.Ed)&tt>=je&ht>=Xe&Vt>=Xe,se&=J.y!=null,se&=J.f!=null,se&=J.ea!=null,He==12&&(se&=ut>=je,se&=Ot<=J.Tc,se&=J.F!=null)}else se=0;J=se?0:2}}return J!=0||we!=null&&we.fd&&(J=Ds(Te)),J}var mu=64,$l=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],nc=24,Gc=32,ka=8,Xd=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Pe("Predictor0","PredictorAdd0"),G.Predictor0=function(){return 4278190080},G.Predictor1=function(J){return J},G.Predictor2=function(J,se,we){return se[we+0]},G.Predictor3=function(J,se,we){return se[we+1]},G.Predictor4=function(J,se,we){return se[we-1]},G.Predictor5=function(J,se,we){return Be(Be(J,se[we+1]),se[we+0])},G.Predictor6=function(J,se,we){return Be(J,se[we-1])},G.Predictor7=function(J,se,we){return Be(J,se[we+0])},G.Predictor8=function(J,se,we){return Be(se[we-1],se[we+0])},G.Predictor9=function(J,se,we){return Be(se[we+0],se[we+1])},G.Predictor10=function(J,se,we){return Be(Be(J,se[we-1]),Be(se[we+0],se[we+1]))},G.Predictor11=function(J,se,we){var Te=se[we+0];return 0>=ft(Te>>24&255,J>>24&255,(se=se[we-1])>>24&255)+ft(Te>>16&255,J>>16&255,se>>16&255)+ft(Te>>8&255,J>>8&255,se>>8&255)+ft(255&Te,255&J,255&se)?Te:J},G.Predictor12=function(J,se,we){var Te=se[we+0];return($e((J>>24&255)+(Te>>24&255)-((se=se[we-1])>>24&255))<<24|$e((J>>16&255)+(Te>>16&255)-(se>>16&255))<<16|$e((J>>8&255)+(Te>>8&255)-(se>>8&255))<<8|$e((255&J)+(255&Te)-(255&se)))>>>0},G.Predictor13=function(J,se,we){var Te=se[we-1];return(nt((J=Be(J,se[we+0]))>>24&255,Te>>24&255)<<24|nt(J>>16&255,Te>>16&255)<<16|nt(J>>8&255,Te>>8&255)<<8|nt(255&J,255&Te))>>>0};var Kl=G.PredictorAdd0;G.PredictorAdd1=Mt,Pe("Predictor2","PredictorAdd2"),Pe("Predictor3","PredictorAdd3"),Pe("Predictor4","PredictorAdd4"),Pe("Predictor5","PredictorAdd5"),Pe("Predictor6","PredictorAdd6"),Pe("Predictor7","PredictorAdd7"),Pe("Predictor8","PredictorAdd8"),Pe("Predictor9","PredictorAdd9"),Pe("Predictor10","PredictorAdd10"),Pe("Predictor11","PredictorAdd11"),Pe("Predictor12","PredictorAdd12"),Pe("Predictor13","PredictorAdd13");var Iu=G.PredictorAdd2;qt("ColorIndexInverseTransform","MapARGB","32b",function(J){return J>>8&255},function(J){return J}),qt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(J){return J},function(J){return J>>8&255});var ah,ic=G.ColorIndexInverseTransform,Lu=G.MapARGB,it=G.VP8LColorIndexInverseTransformAlpha,gt=G.MapAlpha,st=G.VP8LPredictorsAdd=[];st.length=16,(G.VP8LPredictors=[]).length=16,(G.VP8LPredictorsAdd_C=[]).length=16,(G.VP8LPredictors_C=[]).length=16;var Ze,Et,Nt,Pt,Ft,Wt,er,Xt,Rr,ar,Ir,gr,cr,Kr,Hr,Gr,Vr,oi,In,$n,Qr,En,Ei,Qn,$r,An,mn,Kn,ii=u(511),da=u(2041),ma=u(225),Zn=u(767),Zr=0,Xr=da,Fn=ma,si=Zn,ya=ii,_o=0,Js=1,jr=2,Wi=3,Zo=4,Fa=5,Mo=6,Fh=7,Nh=8,yn=9,Aa=10,el=[2,3,7],jc=[3,3,11],oh=[280,256,256,256,40],vp=[0,1,1,1,0],Pg=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],gx=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Og=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ac=8,sh=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Uh=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],lh=null,Tf=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],nv=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],qc=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],iv=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],kg=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Fg=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Zd=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Rs=[],Qi=[],wa=[],Ef=1,Qo=2,Jo=[],Ps=[];Ys("UpsampleRgbLinePair",Xo,3),Ys("UpsampleBgrLinePair",Xs,3),Ys("UpsampleRgbaLinePair",Oa,4),Ys("UpsampleBgraLinePair",ih,4),Ys("UpsampleArgbLinePair",Wl,4),Ys("UpsampleRgba4444LinePair",bo,2),Ys("UpsampleRgb565LinePair",Ms,2);var Hh=G.UpsampleRgbLinePair,xl=G.UpsampleBgrLinePair,av=G.UpsampleRgbaLinePair,Ng=G.UpsampleBgraLinePair,pp=G.UpsampleArgbLinePair,gp=G.UpsampleRgba4444LinePair,Ug=G.UpsampleRgb565LinePair,ov=16,Wc=1<<ov-1,mp=-227,Yl=482,yp=6,Cw=0,Tw=u(256),sv=u(256),Ry=u(256),wp=u(256),Ew=u(Yl-mp),Py=u(Yl-mp);Zs("YuvToRgbRow",Xo,3),Zs("YuvToBgrRow",Xs,3),Zs("YuvToRgbaRow",Oa,4),Zs("YuvToBgraRow",ih,4),Zs("YuvToArgbRow",Wl,4),Zs("YuvToRgba4444Row",bo,2),Zs("YuvToRgb565Row",Ms,2);var lv=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Jd=[0,2,8],bp=[8,7,6,4,4,2,2,2,1,1,1,1],Oy=1;this.WebPDecodeRGBA=function(J,se,we,Te,He){var je=Js,We=new hn,Xe=new Nr;We.ba=Xe,Xe.S=je,Xe.width=[Xe.width],Xe.height=[Xe.height];var tt=Xe.width,ht=Xe.height,Dt=new Ht;if(Dt==null||J==null)var Vt=2;else e(Dt!=null),Vt=xf(J,se,we,Dt.width,Dt.height,Dt.Pd,Dt.Qd,Dt.format,null);if(Vt!=0?tt=0:(tt!=null&&(tt[0]=Dt.width[0]),ht!=null&&(ht[0]=Dt.height[0]),tt=1),tt){Xe.width=Xe.width[0],Xe.height=Xe.height[0],Te!=null&&(Te[0]=Xe.width),He!=null&&(He[0]=Xe.height);e:{if(Te=new Di,(He=new Wn).data=J,He.w=se,He.ha=we,He.kd=1,se=[0],e(He!=null),((J=xf(He.data,He.w,He.ha,null,null,null,se,null,He))==0||J==7)&&se[0]&&(J=4),(se=J)==0){if(e(We!=null),Te.data=He.data,Te.w=He.w+He.offset,Te.ha=He.ha-He.offset,Te.put=Tt,Te.ac=Ct,Te.bc=ir,Te.ma=We,He.xa){if((J=ci())==null){We=1;break e}if(function(ut,Ot){var Gt=[0],rr=[0],$t=[0];t:for(;;){if(ut==null)return 0;if(Ot==null)return ut.a=2,0;if(ut.l=Ot,ut.a=0,pe(ut.m,Ot.data,Ot.w,Ot.ha),!et(ut.m,Gt,rr,$t)){ut.a=3;break t}if(ut.xb=Qo,Ot.width=Gt[0],Ot.height=rr[0],!_r(Gt[0],rr[0],1,ut,null))break t;return 1}return e(ut.a!=0),0}(J,Te)){if(Te=(se=Cf(Te.width,Te.height,We.Oa,We.ba))==0){t:{Te=J;r:for(;;){if(Te==null){Te=0;break t}if(e(Te.s.yc!=null),e(Te.s.Ya!=null),e(0<Te.s.Wb),e((we=Te.l)!=null),e((He=we.ma)!=null),Te.xb!=0){if(Te.ca=He.ba,Te.tb=He.tb,e(Te.ca!=null),!qi(He.Oa,we,Wi)){Te.a=2;break r}if(!pt(Te,we.width)||we.da)break r;if((we.da||Yr(Te.ca.S))&&Qc(),11>Te.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Te.ca.f.kb.F!=null&&Qc()),Te.Pb&&0<Te.s.ua&&Te.s.vb.X==null&&!ue(Te.s.vb,Te.s.Wa.Xa)){Te.a=1;break r}Te.xb=0}if(!nn(Te,Te.V,Te.Ba,Te.c,Te.i,we.o,pr))break r;He.Dc=Te.Ma,Te=1;break t}e(Te.a!=0),Te=0}Te=!Te}Te&&(se=J.a)}else se=J.a}else{if((J=new Wo)==null){We=1;break e}if(J.Fa=He.na,J.P=He.P,J.qc=He.Sa,Hl(J,Te)){if((se=Cf(Te.width,Te.height,We.Oa,We.ba))==0){if(J.Aa=0,we=We.Oa,e((He=J)!=null),we!=null){if(0<(tt=0>(tt=we.Md)?0:100<tt?255:255*tt/100)){for(ht=Dt=0;4>ht;++ht)12>(Vt=He.pb[ht]).lc&&(Vt.ia=tt*bp[0>Vt.lc?0:Vt.lc]>>3),Dt|=Vt.ia;Dt&&(alert("todo:VP8InitRandom"),He.ia=1)}He.Ga=we.Id,100<He.Ga?He.Ga=100:0>He.Ga&&(He.Ga=0)}(function(ut,Ot){if(ut==null)return 0;if(Ot==null)return na(ut,2,"NULL VP8Io parameter in VP8Decode().");if(!ut.cb&&!Hl(ut,Ot))return 0;if(e(ut.cb),Ot.ac==null||Ot.ac(Ot)){Ot.ob&&(ut.L=0);var Gt=Jd[ut.L];if(ut.L==2?(ut.yb=0,ut.zb=0):(ut.yb=Ot.v-Gt>>4,ut.zb=Ot.j-Gt>>4,0>ut.yb&&(ut.yb=0),0>ut.zb&&(ut.zb=0)),ut.Va=Ot.o+15+Gt>>4,ut.Hb=Ot.va+15+Gt>>4,ut.Hb>ut.za&&(ut.Hb=ut.za),ut.Va>ut.Ub&&(ut.Va=ut.Ub),0<ut.L){var rr=ut.ed;for(Gt=0;4>Gt;++Gt){var $t;if(ut.Qa.Cb){var tr=ut.Qa.Lb[Gt];ut.Qa.Fb||(tr+=rr.Tb)}else tr=rr.Tb;for($t=0;1>=$t;++$t){var sr=ut.gd[Gt][$t],xr=tr;if(rr.Pc&&(xr+=rr.vd[0],$t&&(xr+=rr.od[0])),0<(xr=0>xr?0:63<xr?63:xr)){var dr=xr;0<rr.wb&&(dr=4<rr.wb?dr>>2:dr>>1)>9-rr.wb&&(dr=9-rr.wb),1>dr&&(dr=1),sr.dd=dr,sr.tc=2*xr+dr,sr.ld=40<=xr?2:15<=xr?1:0}else sr.tc=0;sr.La=$t}}}Gt=0}else na(ut,6,"Frame setup failed"),Gt=ut.a;if(Gt=Gt==0){if(Gt){ut.$c=0,0<ut.Aa||(ut.Ic=Oy);t:{Gt=ut.Ic,rr=4*(dr=ut.za);var bn=32*dr,an=dr+1,Bi=0<ut.L?dr*(0<ut.Aa?2:1):0,sn=(ut.Aa==2?2:1)*dr;if((sr=rr+832+($t=3*(16*Gt+Jd[ut.L])/2*bn)+(tr=ut.Fa!=null&&0<ut.Fa.length?ut.Kc.c*ut.Kc.i:0))!=sr)Gt=0;else{if(sr>ut.Vb){if(ut.Vb=0,ut.Ec=u(sr),ut.Fc=0,ut.Ec==null){Gt=na(ut,1,"no memory during frame initialization.");break t}ut.Vb=sr}sr=ut.Ec,xr=ut.Fc,ut.Ac=sr,ut.Bc=xr,xr+=rr,ut.Gd=f(bn,Da),ut.Hd=0,ut.rb=f(an+1,Ka),ut.sb=1,ut.wa=Bi?f(Bi,Mi):null,ut.Y=0,ut.D.Nb=0,ut.D.wa=ut.wa,ut.D.Y=ut.Y,0<ut.Aa&&(ut.D.Y+=dr),e(!0),ut.oc=sr,ut.pc=xr,xr+=832,ut.ya=f(sn,qn),ut.aa=0,ut.D.ya=ut.ya,ut.D.aa=ut.aa,ut.Aa==2&&(ut.D.aa+=dr),ut.R=16*dr,ut.B=8*dr,dr=(bn=Jd[ut.L])*ut.R,bn=bn/2*ut.B,ut.sa=sr,ut.ta=xr+dr,ut.qa=ut.sa,ut.ra=ut.ta+16*Gt*ut.R+bn,ut.Ha=ut.qa,ut.Ia=ut.ra+8*Gt*ut.B+bn,ut.$c=0,xr+=$t,ut.mb=tr?sr:null,ut.nb=tr?xr:null,e(xr+tr<=ut.Fc+ut.Vb),du(ut),o(ut.Ac,ut.Bc,0,rr),Gt=1}}if(Gt){if(Ot.ka=0,Ot.y=ut.sa,Ot.O=ut.ta,Ot.f=ut.qa,Ot.N=ut.ra,Ot.ea=ut.Ha,Ot.Vd=ut.Ia,Ot.fa=ut.R,Ot.Rc=ut.B,Ot.F=null,Ot.J=0,!Zr){for(Gt=-255;255>=Gt;++Gt)ii[255+Gt]=0>Gt?-Gt:Gt;for(Gt=-1020;1020>=Gt;++Gt)da[1020+Gt]=-128>Gt?-128:127<Gt?127:Gt;for(Gt=-112;112>=Gt;++Gt)ma[112+Gt]=-16>Gt?-16:15<Gt?15:Gt;for(Gt=-255;510>=Gt;++Gt)Zn[255+Gt]=0>Gt?0:255<Gt?255:Gt;Zr=1}er=Zu,Xt=rv,ar=Oc,Ir=wo,gr=wf,Rr=yo,cr=me,Kr=Ve,Hr=Qt,Gr=Zt,Vr=lt,oi=St,In=hr,$n=Jr,Qr=Sf,En=Nc,Ei=Uc,Qn=pu,Qi[0]=$s,Qi[1]=oo,Qi[2]=ec,Qi[3]=Fc,Qi[4]=Ai,Qi[5]=_l,Qi[6]=so,Qi[7]=zl,Qi[8]=_f,Qi[9]=tc,Rs[0]=Ls,Rs[1]=bf,Rs[2]=Kd,Rs[3]=us,Rs[4]=Vl,Rs[5]=Tu,Rs[6]=Ju,wa[0]=Ks,wa[1]=kc,wa[2]=xn,wa[3]=fs,wa[4]=Au,wa[5]=Ss,wa[6]=vu,Gt=1}else Gt=0}Gt&&(Gt=function(vi,Vo){for(vi.M=0;vi.M<vi.Va;++vi.M){var fi,Ln=vi.Jc[vi.M&vi.Xb],qr=vi.m,So=vi;for(fi=0;fi<So.za;++fi){var ai=qr,Lr=So,ba=Lr.Ac,xo=Lr.Bc+4*fi,tl=Lr.zc,co=Lr.ya[Lr.aa+fi];if(Lr.Qa.Bb?co.$b=ze(ai,Lr.Pa.jb[0])?2+ze(ai,Lr.Pa.jb[2]):ze(ai,Lr.Pa.jb[1]):co.$b=0,Lr.kc&&(co.Ad=ze(ai,Lr.Bd)),co.Za=!ze(ai,145)+0,co.Za){var hs=co.Ob,ds=0;for(Lr=0;4>Lr;++Lr){var As,Ki=tl[0+Lr];for(As=0;4>As;++As){Ki=kg[ba[xo+As]][Ki];for(var _a=qc[ze(ai,Ki[0])];0<_a;)_a=qc[2*_a+ze(ai,Ki[_a])];Ki=-_a,ba[xo+As]=Ki}n(hs,ds,ba,xo,4),ds+=4,tl[0+Lr]=Ki}}else Ki=ze(ai,156)?ze(ai,128)?1:3:ze(ai,163)?2:0,co.Ob[0]=Ki,o(ba,xo,Ki,4),o(tl,0,Ki,4);co.Dd=ze(ai,142)?ze(ai,114)?ze(ai,183)?1:3:2:0}if(So.m.Ka)return na(vi,7,"Premature end-of-partition0 encountered.");for(;vi.ja<vi.za;++vi.ja){if(So=Ln,ai=(qr=vi).rb[qr.sb-1],ba=qr.rb[qr.sb+qr.ja],fi=qr.ya[qr.aa+qr.ja],xo=qr.kc?fi.Ad:0)ai.la=ba.la=0,fi.Za||(ai.Na=ba.Na=0),fi.Hc=0,fi.Gc=0,fi.ia=0;else{var Qa,ki;if(ai=ba,ba=So,xo=qr.Pa.Xc,tl=qr.ya[qr.aa+qr.ja],co=qr.pb[tl.$b],Lr=tl.ad,hs=0,ds=qr.rb[qr.sb-1],Ki=As=0,o(Lr,hs,0,384),tl.Za)var zo=0,Cl=xo[3];else{_a=u(16);var Va=ai.Na+ds.Na;if(Va=lh(ba,xo[1],Va,co.Eb,0,_a,0),ai.Na=ds.Na=(0<Va)+0,1<Va)er(_a,0,Lr,hs);else{var Tl=_a[0]+3>>3;for(_a=0;256>_a;_a+=16)Lr[hs+_a]=Tl}zo=1,Cl=xo[0]}var ia=15&ai.la,es=15&ds.la;for(_a=0;4>_a;++_a){var Xl=1&es;for(Tl=ki=0;4>Tl;++Tl)ia=ia>>1|(Xl=(Va=lh(ba,Cl,Va=Xl+(1&ia),co.Sc,zo,Lr,hs))>zo)<<7,ki=ki<<2|(3<Va?3:1<Va?2:Lr[hs+0]!=0),hs+=16;ia>>=4,es=es>>1|Xl<<7,As=(As<<8|ki)>>>0}for(Cl=ia,zo=es>>4,Qa=0;4>Qa;Qa+=2){for(ki=0,ia=ai.la>>4+Qa,es=ds.la>>4+Qa,_a=0;2>_a;++_a){for(Xl=1&es,Tl=0;2>Tl;++Tl)Va=Xl+(1&ia),ia=ia>>1|(Xl=0<(Va=lh(ba,xo[2],Va,co.Qc,0,Lr,hs)))<<3,ki=ki<<2|(3<Va?3:1<Va?2:Lr[hs+0]!=0),hs+=16;ia>>=2,es=es>>1|Xl<<5}Ki|=ki<<4*Qa,Cl|=ia<<4<<Qa,zo|=(240&es)<<Qa}ai.la=Cl,ds.la=zo,tl.Hc=As,tl.Gc=Ki,tl.ia=43690&Ki?0:co.ia,xo=!(As|Ki)}if(0<qr.L&&(qr.wa[qr.Y+qr.ja]=qr.gd[fi.$b][fi.Za],qr.wa[qr.Y+qr.ja].La|=!xo),So.Ka)return na(vi,7,"Premature end-of-file encountered.")}if(du(vi),qr=Vo,So=1,fi=(Ln=vi).D,ai=0<Ln.L&&Ln.M>=Ln.zb&&Ln.M<=Ln.Va,Ln.Aa==0)t:{if(fi.M=Ln.M,fi.uc=ai,zc(Ln,fi),So=1,fi=(ki=Ln.D).Nb,ai=(Ki=Jd[Ln.L])*Ln.R,ba=Ki/2*Ln.B,_a=16*fi*Ln.R,Tl=8*fi*Ln.B,xo=Ln.sa,tl=Ln.ta-ai+_a,co=Ln.qa,Lr=Ln.ra-ba+Tl,hs=Ln.Ha,ds=Ln.Ia-ba+Tl,es=(ia=ki.M)==0,As=ia>=Ln.Va-1,Ln.Aa==2&&zc(Ln,ki),ki.uc)for(Xl=(Va=Ln).D.M,e(Va.D.uc),ki=Va.yb;ki<Va.Hb;++ki){zo=ki,Cl=Xl;var ln=(vr=(ts=Va).D).Nb;Qa=ts.R;var vr=vr.wa[vr.Y+zo],pi=ts.sa,aa=ts.ta+16*ln*Qa+16*zo,ua=vr.dd,Sa=vr.tc;if(Sa!=0)if(e(3<=Sa),ts.L==1)0<zo&&En(pi,aa,Qa,Sa+4),vr.La&&Qn(pi,aa,Qa,Sa),0<Cl&&Qr(pi,aa,Qa,Sa+4),vr.La&&Ei(pi,aa,Qa,Sa);else{var El=ts.B,Mu=ts.qa,uh=ts.ra+8*ln*El+8*zo,oc=ts.Ha,ts=ts.Ia+8*ln*El+8*zo;ln=vr.ld,0<zo&&(Kr(pi,aa,Qa,Sa+4,ua,ln),Gr(Mu,uh,oc,ts,El,Sa+4,ua,ln)),vr.La&&(oi(pi,aa,Qa,Sa,ua,ln),$n(Mu,uh,oc,ts,El,Sa,ua,ln)),0<Cl&&(cr(pi,aa,Qa,Sa+4,ua,ln),Hr(Mu,uh,oc,ts,El,Sa+4,ua,ln)),vr.La&&(Vr(pi,aa,Qa,Sa,ua,ln),In(Mu,uh,oc,ts,El,Sa,ua,ln))}}if(Ln.ia&&alert("todo:DitherRow"),qr.put!=null){if(ki=16*ia,ia=16*(ia+1),es?(qr.y=Ln.sa,qr.O=Ln.ta+_a,qr.f=Ln.qa,qr.N=Ln.ra+Tl,qr.ea=Ln.Ha,qr.W=Ln.Ia+Tl):(ki-=Ki,qr.y=xo,qr.O=tl,qr.f=co,qr.N=Lr,qr.ea=hs,qr.W=ds),As||(ia-=Ki),ia>qr.o&&(ia=qr.o),qr.F=null,qr.J=null,Ln.Fa!=null&&0<Ln.Fa.length&&ki<ia&&(qr.J=Ko(Ln,qr,ki,ia-ki),qr.F=Ln.mb,qr.F==null&&qr.F.length==0)){So=na(Ln,3,"Could not decode alpha data.");break t}ki<qr.j&&(Ki=qr.j-ki,ki=qr.j,e(!(1&Ki)),qr.O+=Ln.R*Ki,qr.N+=Ln.B*(Ki>>1),qr.W+=Ln.B*(Ki>>1),qr.F!=null&&(qr.J+=qr.width*Ki)),ki<ia&&(qr.O+=qr.v,qr.N+=qr.v>>1,qr.W+=qr.v>>1,qr.F!=null&&(qr.J+=qr.v),qr.ka=ki-qr.j,qr.U=qr.va-qr.v,qr.T=ia-ki,So=qr.put(qr))}fi+1!=Ln.Ic||As||(n(Ln.sa,Ln.ta-ai,xo,tl+16*Ln.R,ai),n(Ln.qa,Ln.ra-ba,co,Lr+8*Ln.B,ba),n(Ln.Ha,Ln.Ia-ba,hs,ds+8*Ln.B,ba))}if(!So)return na(vi,6,"Output aborted.")}return 1}(ut,Ot)),Ot.bc!=null&&Ot.bc(Ot),Gt&=1}return Gt?(ut.cb=0,Gt):0})(J,Te)||(se=J.a)}}else se=J.a}se==0&&We.Oa!=null&&We.Oa.fd&&(se=Ds(We.ba))}We=se}je=We!=0?null:11>je?Xe.f.RGBA.eb:Xe.f.kb.y}else je=null;return je};var Bf=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function p(G,j){for(var q="",X=0;X<4;X++)q+=String.fromCharCode(G[j++]);return q}function g(G,j){return G[j+0]|G[j+1]<<8}function y(G,j){return(G[j+0]|G[j+1]<<8|G[j+2]<<16)>>>0}function _(G,j){return(G[j+0]|G[j+1]<<8|G[j+2]<<16|G[j+3]<<24)>>>0}new A;var b=[0],C=[0],T=[],B=new A,L=t,P=function(G,j){var q={},X=0,Y=!1,te=0,K=0;if(q.frames=[],!function(re,oe){for(var ye=0;ye<4;ye++)if(re[oe+ye]!="RIFF".charCodeAt(ye))return!0;return!1}(G,j)){for(_(G,j+=4),j+=8;j<G.length;){var ce=p(G,j),ae=_(G,j+=4);j+=4;var le=ae+(1&ae);switch(ce){case"VP8 ":case"VP8L":q.frames[X]===void 0&&(q.frames[X]={}),(he=q.frames[X]).src_off=Y?K:j-8,he.src_size=te+ae+8,X++,Y&&(Y=!1,te=0,K=0);break;case"VP8X":(he=q.header={}).feature_flags=G[j];var pe=j+4;he.canvas_width=1+y(G,pe),pe+=3,he.canvas_height=1+y(G,pe),pe+=3;break;case"ALPH":Y=!0,te=le+8,K=j-8;break;case"ANIM":(he=q.header).bgcolor=_(G,j),pe=j+4,he.loop_count=g(G,pe),pe+=2;break;case"ANMF":var ie,he;(he=q.frames[X]={}).offset_x=2*y(G,j),j+=3,he.offset_y=2*y(G,j),j+=3,he.width=1+y(G,j),j+=3,he.height=1+y(G,j),j+=3,he.duration=y(G,j),j+=3,ie=G[j++],he.dispose=1&ie,he.blend=ie>>1&1}ce!="ANMF"&&(j+=le)}return q}}(L,0);P.response=L,P.rgbaoutput=!0,P.dataurl=!1;var I=P.header?P.header:null,O=P.frames?P.frames:null;if(I){I.loop_counter=I.loop_count,b=[I.canvas_height],C=[I.canvas_width];for(var U=0;U<O.length&&O[U].blend!=0;U++);}var N=O[0],H=B.WebPDecodeRGBA(L,N.src_off,N.src_size,C,b);N.rgba=H,N.imgwidth=C[0],N.imgheight=b[0];for(var z=0;z<C[0]*b[0]*4;z++)T[z]=H[z];return this.width=C,this.height=b,this.data=T,this}(function(t){var e,r,n,o,u,f,h,A,p,g=function(re){return re=re||{},this.isStrokeTransparent=re.isStrokeTransparent||!1,this.strokeOpacity=re.strokeOpacity||1,this.strokeStyle=re.strokeStyle||"#000000",this.fillStyle=re.fillStyle||"#000000",this.isFillTransparent=re.isFillTransparent||!1,this.fillOpacity=re.fillOpacity||1,this.font=re.font||"10px sans-serif",this.textBaseline=re.textBaseline||"alphabetic",this.textAlign=re.textAlign||"left",this.lineWidth=re.lineWidth||1,this.lineJoin=re.lineJoin||"miter",this.lineCap=re.lineCap||"butt",this.path=re.path||[],this.transform=re.transform!==void 0?re.transform.clone():new A,this.globalCompositeOperation=re.globalCompositeOperation||"normal",this.globalAlpha=re.globalAlpha||1,this.clip_path=re.clip_path||[],this.currentPoint=re.currentPoint||new f,this.miterLimit=re.miterLimit||10,this.lastPoint=re.lastPoint||new f,this.lineDashOffset=re.lineDashOffset||0,this.lineDash=re.lineDash||[],this.margin=re.margin||[0,0,0,0],this.prevPageLastElemOffset=re.prevPageLastElemOffset||0,this.ignoreClearRect=typeof re.ignoreClearRect!="boolean"||re.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new y(this),e=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,u=this.internal.getVerticalCoordinate,f=this.internal.Point,h=this.internal.Rectangle,A=this.internal.Matrix,p=new g}]);var y=function(re){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var oe=re;Object.defineProperty(this,"pdf",{get:function(){return oe}});var ye=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return ye},set:function(Ue){ye=!!Ue}});var _e=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return _e},set:function(Ue){_e=!!Ue}});var Ce=0;Object.defineProperty(this,"posX",{get:function(){return Ce},set:function(Ue){isNaN(Ue)||(Ce=Ue)}});var ne=0;Object.defineProperty(this,"posY",{get:function(){return ne},set:function(Ue){isNaN(Ue)||(ne=Ue)}}),Object.defineProperty(this,"margin",{get:function(){return p.margin},set:function(Ue){var ue;typeof Ue=="number"?ue=[Ue,Ue,Ue,Ue]:((ue=new Array(4))[0]=Ue[0],ue[1]=Ue.length>=2?Ue[1]:ue[0],ue[2]=Ue.length>=3?Ue[2]:ue[0],ue[3]=Ue.length>=4?Ue[3]:ue[1]),p.margin=ue}});var xe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return xe},set:function(Ue){xe=Ue}});var De=0;Object.defineProperty(this,"lastBreak",{get:function(){return De},set:function(Ue){De=Ue}});var ze=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ze},set:function(Ue){ze=Ue}}),Object.defineProperty(this,"ctx",{get:function(){return p},set:function(Ue){Ue instanceof g&&(p=Ue)}}),Object.defineProperty(this,"path",{get:function(){return p.path},set:function(Ue){p.path=Ue}});var Ye=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ye},set:function(Ue){Ye=Ue}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ue){var ue;ue=_(Ue),this.ctx.fillStyle=ue.style,this.ctx.isFillTransparent=ue.a===0,this.ctx.fillOpacity=ue.a,this.pdf.setFillColor(ue.r,ue.g,ue.b,{a:ue.a}),this.pdf.setTextColor(ue.r,ue.g,ue.b,{a:ue.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ue){var ue=_(Ue);this.ctx.strokeStyle=ue.style,this.ctx.isStrokeTransparent=ue.a===0,this.ctx.strokeOpacity=ue.a,ue.a===0?this.pdf.setDrawColor(255,255,255):(ue.a,this.pdf.setDrawColor(ue.r,ue.g,ue.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ue){["butt","round","square"].indexOf(Ue)!==-1&&(this.ctx.lineCap=Ue,this.pdf.setLineCap(Ue))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ue){isNaN(Ue)||(this.ctx.lineWidth=Ue,this.pdf.setLineWidth(Ue))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ue){["bevel","round","miter"].indexOf(Ue)!==-1&&(this.ctx.lineJoin=Ue,this.pdf.setLineJoin(Ue))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ue){isNaN(Ue)||(this.ctx.miterLimit=Ue,this.pdf.setMiterLimit(Ue))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ue){this.ctx.textBaseline=Ue}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ue){["right","end","center","left","start"].indexOf(Ue)!==-1&&(this.ctx.textAlign=Ue)}});var Ne=null,yt=null;Object.defineProperty(this,"fontFaces",{get:function(){return yt},set:function(Ue){Ne=null,yt=Ue}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ue){var ue;if(this.ctx.font=Ue,(ue=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Ue))!==null){var Qe=ue[1];ue[2];var qe=ue[3],Re=ue[4];ue[5];var Me=ue[6],Ge=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Re)[2];Re=Math.floor(Ge==="px"?parseFloat(Re)*this.pdf.internal.scaleFactor:Ge==="em"?parseFloat(Re)*this.pdf.getFontSize():parseFloat(Re)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Re);var Pe=function(It){var qt,fr,lr=[],_t=It.trim();if(_t==="")return N9;if(_t in d1e)return[d1e[_t]];for(;_t!=="";){switch(fr=null,qt=(_t=v1e(_t)).charAt(0)){case'"':case"'":fr=__t(_t.substring(1),qt);break;default:fr=S_t(_t)}if(fr===null||(lr.push(fr[0]),(_t=v1e(fr[1]))!==""&&_t.charAt(0)!==","))return N9;_t=_t.replace(/^,/,"")}return lr}(Me);if(this.fontFaces){var ke=function(It,qt){if(Ne===null){var fr=function(lr){var _t=[];return Object.keys(lr).forEach(function(br){lr[br].forEach(function(on){var Br=null;switch(on){case"bold":Br={family:br,weight:"bold"};break;case"italic":Br={family:br,style:"italic"};break;case"bolditalic":Br={family:br,weight:"bold",style:"italic"};break;case"":case"normal":Br={family:br}}Br!==null&&(Br.ref={name:br,style:on},_t.push(Br))})}),_t}(It.getFontList());Ne=function(lr){for(var _t={},br=0;br<lr.length;++br){var on=F9(lr[br]),Br=on.family,rn=on.stretch,Yr=on.style,cn=on.weight;_t[Br]=_t[Br]||{},_t[Br][rn]=_t[Br][rn]||{},_t[Br][rn][Yr]=_t[Br][rn][Yr]||{},_t[Br][rn][Yr][cn]=on}return _t}(fr.concat(qt))}return Ne}(this.pdf,this.fontFaces),Be=Pe.map(function(It){return{family:It,stretch:"normal",weight:qe,style:Qe}}),$e=function(It,qt,fr){for(var lr=(fr=fr||{}).defaultFontFamily||"times",_t=Object.assign({},b_t,fr.genericFontFamilies||{}),br=null,on=null,Br=0;Br<qt.length;++Br)if(_t[(br=F9(qt[Br])).family]&&(br.family=_t[br.family]),It.hasOwnProperty(br.family)){on=It[br.family];break}if(!(on=on||It[lr]))throw new Error("Could not find a font-family for the rule '"+A1e(br)+"' and default family '"+lr+"'.");if(on=function(rn,Yr){if(Yr[rn])return Yr[rn];var cn=D$[rn],Vn=cn<=D$.normal?-1:1,Nr=h1e(Yr,mRe,cn,Vn);if(!Nr)throw new Error("Could not find a matching font-stretch value for "+rn);return Nr}(br.stretch,on),on=function(rn,Yr){if(Yr[rn])return Yr[rn];for(var cn=gRe[rn],Vn=0;Vn<cn.length;++Vn)if(Yr[cn[Vn]])return Yr[cn[Vn]];throw new Error("Could not find a matching font-style for "+rn)}(br.style,on),!(on=function(rn,Yr){if(Yr[rn])return Yr[rn];if(rn===400&&Yr[500])return Yr[500];if(rn===500&&Yr[400])return Yr[400];var cn=w_t[rn],Vn=h1e(Yr,yRe,cn,rn<400?-1:1);if(!Vn)throw new Error("Could not find a matching font-weight for value "+rn);return Vn}(br.weight,on)))throw new Error("Failed to resolve a font for the rule '"+A1e(br)+"'.");return on}(ke,Be);this.pdf.setFont($e.ref.name,$e.ref.style)}else{var nt="";(qe==="bold"||parseInt(qe,10)>=700||Qe==="bold")&&(nt="bold"),Qe==="italic"&&(nt+="italic"),nt.length===0&&(nt="normal");for(var ft="",Mt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Rt=0;Rt<Pe.length;Rt++){if(this.pdf.internal.getFont(Pe[Rt],nt,{noFallback:!0,disableWarning:!0})!==void 0){ft=Pe[Rt];break}if(nt==="bolditalic"&&this.pdf.internal.getFont(Pe[Rt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ft=Pe[Rt],nt="bold";else if(this.pdf.internal.getFont(Pe[Rt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ft=Pe[Rt],nt="normal";break}}if(ft===""){for(var Bt=0;Bt<Pe.length;Bt++)if(Mt[Pe[Bt]]){ft=Mt[Pe[Bt]];break}}ft=ft===""?"Times":ft,this.pdf.setFont(ft,nt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ue){this.ctx.globalCompositeOperation=Ue}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ue){this.ctx.globalAlpha=Ue}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ue){this.ctx.lineDashOffset=Ue,he.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ue){this.ctx.lineDash=Ue,he.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ue){this.ctx.ignoreClearRect=!!Ue}})};y.prototype.setLineDash=function(re){this.lineDash=re},y.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},y.prototype.fill=function(){O.call(this,"fill",!1)},y.prototype.stroke=function(){O.call(this,"stroke",!1)},y.prototype.beginPath=function(){this.path=[{type:"begin"}]},y.prototype.moveTo=function(re,oe){if(isNaN(re)||isNaN(oe))throw Po.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var ye=this.ctx.transform.applyToPoint(new f(re,oe));this.path.push({type:"mt",x:ye.x,y:ye.y}),this.ctx.lastPoint=new f(re,oe)},y.prototype.closePath=function(){var re=new f(0,0),oe=0;for(oe=this.path.length-1;oe!==-1;oe--)if(this.path[oe].type==="begin"&&Ea(this.path[oe+1])==="object"&&typeof this.path[oe+1].x=="number"){re=new f(this.path[oe+1].x,this.path[oe+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new f(re.x,re.y)},y.prototype.lineTo=function(re,oe){if(isNaN(re)||isNaN(oe))throw Po.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var ye=this.ctx.transform.applyToPoint(new f(re,oe));this.path.push({type:"lt",x:ye.x,y:ye.y}),this.ctx.lastPoint=new f(ye.x,ye.y)},y.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),O.call(this,null,!0)},y.prototype.quadraticCurveTo=function(re,oe,ye,_e){if(isNaN(ye)||isNaN(_e)||isNaN(re)||isNaN(oe))throw Po.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Ce=this.ctx.transform.applyToPoint(new f(ye,_e)),ne=this.ctx.transform.applyToPoint(new f(re,oe));this.path.push({type:"qct",x1:ne.x,y1:ne.y,x:Ce.x,y:Ce.y}),this.ctx.lastPoint=new f(Ce.x,Ce.y)},y.prototype.bezierCurveTo=function(re,oe,ye,_e,Ce,ne){if(isNaN(Ce)||isNaN(ne)||isNaN(re)||isNaN(oe)||isNaN(ye)||isNaN(_e))throw Po.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var xe=this.ctx.transform.applyToPoint(new f(Ce,ne)),De=this.ctx.transform.applyToPoint(new f(re,oe)),ze=this.ctx.transform.applyToPoint(new f(ye,_e));this.path.push({type:"bct",x1:De.x,y1:De.y,x2:ze.x,y2:ze.y,x:xe.x,y:xe.y}),this.ctx.lastPoint=new f(xe.x,xe.y)},y.prototype.arc=function(re,oe,ye,_e,Ce,ne){if(isNaN(re)||isNaN(oe)||isNaN(ye)||isNaN(_e)||isNaN(Ce))throw Po.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ne=!!ne,!this.ctx.transform.isIdentity){var xe=this.ctx.transform.applyToPoint(new f(re,oe));re=xe.x,oe=xe.y;var De=this.ctx.transform.applyToPoint(new f(0,ye)),ze=this.ctx.transform.applyToPoint(new f(0,0));ye=Math.sqrt(Math.pow(De.x-ze.x,2)+Math.pow(De.y-ze.y,2))}Math.abs(Ce-_e)>=2*Math.PI&&(_e=0,Ce=2*Math.PI),this.path.push({type:"arc",x:re,y:oe,radius:ye,startAngle:_e,endAngle:Ce,counterclockwise:ne})},y.prototype.arcTo=function(re,oe,ye,_e,Ce){throw new Error("arcTo not implemented.")},y.prototype.rect=function(re,oe,ye,_e){if(isNaN(re)||isNaN(oe)||isNaN(ye)||isNaN(_e))throw Po.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(re,oe),this.lineTo(re+ye,oe),this.lineTo(re+ye,oe+_e),this.lineTo(re,oe+_e),this.lineTo(re,oe),this.lineTo(re+ye,oe),this.lineTo(re,oe)},y.prototype.fillRect=function(re,oe,ye,_e){if(isNaN(re)||isNaN(oe)||isNaN(ye)||isNaN(_e))throw Po.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!b.call(this)){var Ce={};this.lineCap!=="butt"&&(Ce.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Ce.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(re,oe,ye,_e),this.fill(),Ce.hasOwnProperty("lineCap")&&(this.lineCap=Ce.lineCap),Ce.hasOwnProperty("lineJoin")&&(this.lineJoin=Ce.lineJoin)}},y.prototype.strokeRect=function(re,oe,ye,_e){if(isNaN(re)||isNaN(oe)||isNaN(ye)||isNaN(_e))throw Po.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");C.call(this)||(this.beginPath(),this.rect(re,oe,ye,_e),this.stroke())},y.prototype.clearRect=function(re,oe,ye,_e){if(isNaN(re)||isNaN(oe)||isNaN(ye)||isNaN(_e))throw Po.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(re,oe,ye,_e))},y.prototype.save=function(re){re=typeof re!="boolean"||re;for(var oe=this.pdf.internal.getCurrentPageInfo().pageNumber,ye=0;ye<this.pdf.internal.getNumberOfPages();ye++)this.pdf.setPage(ye+1),this.pdf.internal.out("q");if(this.pdf.setPage(oe),re){this.ctx.fontSize=this.pdf.internal.getFontSize();var _e=new g(this.ctx);this.ctxStack.push(this.ctx),this.ctx=_e}},y.prototype.restore=function(re){re=typeof re!="boolean"||re;for(var oe=this.pdf.internal.getCurrentPageInfo().pageNumber,ye=0;ye<this.pdf.internal.getNumberOfPages();ye++)this.pdf.setPage(ye+1),this.pdf.internal.out("Q");this.pdf.setPage(oe),re&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},y.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var _=function(re){var oe,ye,_e,Ce;if(re.isCanvasGradient===!0&&(re=re.getColor()),!re)return{r:0,g:0,b:0,a:0,style:re};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(re))oe=0,ye=0,_e=0,Ce=0;else{var ne=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(re);if(ne!==null)oe=parseInt(ne[1]),ye=parseInt(ne[2]),_e=parseInt(ne[3]),Ce=1;else if((ne=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(re))!==null)oe=parseInt(ne[1]),ye=parseInt(ne[2]),_e=parseInt(ne[3]),Ce=parseFloat(ne[4]);else{if(Ce=1,typeof re=="string"&&re.charAt(0)!=="#"){var xe=new cRe(re);re=xe.ok?xe.toHex():"#000000"}re.length===4?(oe=re.substring(1,2),oe+=oe,ye=re.substring(2,3),ye+=ye,_e=re.substring(3,4),_e+=_e):(oe=re.substring(1,3),ye=re.substring(3,5),_e=re.substring(5,7)),oe=parseInt(oe,16),ye=parseInt(ye,16),_e=parseInt(_e,16)}}return{r:oe,g:ye,b:_e,a:Ce,style:re}},b=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},C=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};y.prototype.fillText=function(re,oe,ye,_e){if(isNaN(oe)||isNaN(ye)||typeof re!="string")throw Po.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(_e=isNaN(_e)?void 0:_e,!b.call(this)){var Ce=le(this.ctx.transform.rotation),ne=this.ctx.transform.scaleX;X.call(this,{text:re,x:oe,y:ye,scale:ne,angle:Ce,align:this.textAlign,maxWidth:_e})}},y.prototype.strokeText=function(re,oe,ye,_e){if(isNaN(oe)||isNaN(ye)||typeof re!="string")throw Po.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!C.call(this)){_e=isNaN(_e)?void 0:_e;var Ce=le(this.ctx.transform.rotation),ne=this.ctx.transform.scaleX;X.call(this,{text:re,x:oe,y:ye,scale:ne,renderingMode:"stroke",angle:Ce,align:this.textAlign,maxWidth:_e})}},y.prototype.measureText=function(re){if(typeof re!="string")throw Po.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var oe=this.pdf,ye=this.pdf.internal.scaleFactor,_e=oe.internal.getFontSize(),Ce=oe.getStringUnitWidth(re)*_e/oe.internal.scaleFactor;return new function(ne){var xe=(ne=ne||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return xe}}),this}({width:Ce*=Math.round(96*ye/72*1e4)/1e4})},y.prototype.scale=function(re,oe){if(isNaN(re)||isNaN(oe))throw Po.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var ye=new A(re,0,0,oe,0,0);this.ctx.transform=this.ctx.transform.multiply(ye)},y.prototype.rotate=function(re){if(isNaN(re))throw Po.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var oe=new A(Math.cos(re),Math.sin(re),-Math.sin(re),Math.cos(re),0,0);this.ctx.transform=this.ctx.transform.multiply(oe)},y.prototype.translate=function(re,oe){if(isNaN(re)||isNaN(oe))throw Po.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var ye=new A(1,0,0,1,re,oe);this.ctx.transform=this.ctx.transform.multiply(ye)},y.prototype.transform=function(re,oe,ye,_e,Ce,ne){if(isNaN(re)||isNaN(oe)||isNaN(ye)||isNaN(_e)||isNaN(Ce)||isNaN(ne))throw Po.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var xe=new A(re,oe,ye,_e,Ce,ne);this.ctx.transform=this.ctx.transform.multiply(xe)},y.prototype.setTransform=function(re,oe,ye,_e,Ce,ne){re=isNaN(re)?1:re,oe=isNaN(oe)?0:oe,ye=isNaN(ye)?0:ye,_e=isNaN(_e)?1:_e,Ce=isNaN(Ce)?0:Ce,ne=isNaN(ne)?0:ne,this.ctx.transform=new A(re,oe,ye,_e,Ce,ne)};var T=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};y.prototype.drawImage=function(re,oe,ye,_e,Ce,ne,xe,De,ze){var Ye=this.pdf.getImageProperties(re),Ne=1,yt=1,Ue=1,ue=1;_e!==void 0&&De!==void 0&&(Ue=De/_e,ue=ze/Ce,Ne=Ye.width/_e*De/_e,yt=Ye.height/Ce*ze/Ce),ne===void 0&&(ne=oe,xe=ye,oe=0,ye=0),_e!==void 0&&De===void 0&&(De=_e,ze=Ce),_e===void 0&&De===void 0&&(De=Ye.width,ze=Ye.height);for(var Qe,qe=this.ctx.transform.decompose(),Re=le(qe.rotate.shx),Me=new A,Ge=(Me=(Me=(Me=Me.multiply(qe.translate)).multiply(qe.skew)).multiply(qe.scale)).applyToRectangle(new h(ne-oe*Ue,xe-ye*ue,_e*Ne,Ce*yt)),Pe=B.call(this,Ge),ke=[],Be=0;Be<Pe.length;Be+=1)ke.indexOf(Pe[Be])===-1&&ke.push(Pe[Be]);if(I(ke),this.autoPaging)for(var $e=ke[0],nt=ke[ke.length-1],ft=$e;ft<nt+1;ft++){this.pdf.setPage(ft);var Mt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Rt=ft===1?this.posY+this.margin[0]:this.margin[0],Bt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],It=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],qt=ft===1?0:Bt+(ft-2)*It;if(this.ctx.clip_path.length!==0){var fr=this.path;Qe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(Qe,this.posX+this.margin[3],-qt+Rt+this.ctx.prevPageLastElemOffset),U.call(this,"fill",!0),this.path=fr}var lr=JSON.parse(JSON.stringify(Ge));lr=P([lr],this.posX+this.margin[3],-qt+Rt+this.ctx.prevPageLastElemOffset)[0];var _t=(ft>$e||ft<nt)&&T.call(this);_t&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Mt,It,null).clip().discardPath()),this.pdf.addImage(re,"JPEG",lr.x,lr.y,lr.w,lr.h,null,null,Re),_t&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(re,"JPEG",Ge.x,Ge.y,Ge.w,Ge.h,null,null,Re)};var B=function(re,oe,ye){var _e=[];oe=oe||this.pdf.internal.pageSize.width,ye=ye||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Ce=this.posY+this.ctx.prevPageLastElemOffset;switch(re.type){default:case"mt":case"lt":_e.push(Math.floor((re.y+Ce)/ye)+1);break;case"arc":_e.push(Math.floor((re.y+Ce-re.radius)/ye)+1),_e.push(Math.floor((re.y+Ce+re.radius)/ye)+1);break;case"qct":var ne=pe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,re.x1,re.y1,re.x,re.y);_e.push(Math.floor((ne.y+Ce)/ye)+1),_e.push(Math.floor((ne.y+ne.h+Ce)/ye)+1);break;case"bct":var xe=ie(this.ctx.lastPoint.x,this.ctx.lastPoint.y,re.x1,re.y1,re.x2,re.y2,re.x,re.y);_e.push(Math.floor((xe.y+Ce)/ye)+1),_e.push(Math.floor((xe.y+xe.h+Ce)/ye)+1);break;case"rect":_e.push(Math.floor((re.y+Ce)/ye)+1),_e.push(Math.floor((re.y+re.h+Ce)/ye)+1)}for(var De=0;De<_e.length;De+=1)for(;this.pdf.internal.getNumberOfPages()<_e[De];)L.call(this);return _e},L=function(){var re=this.fillStyle,oe=this.strokeStyle,ye=this.font,_e=this.lineCap,Ce=this.lineWidth,ne=this.lineJoin;this.pdf.addPage(),this.fillStyle=re,this.strokeStyle=oe,this.font=ye,this.lineCap=_e,this.lineWidth=Ce,this.lineJoin=ne},P=function(re,oe,ye){for(var _e=0;_e<re.length;_e++)switch(re[_e].type){case"bct":re[_e].x2+=oe,re[_e].y2+=ye;case"qct":re[_e].x1+=oe,re[_e].y1+=ye;default:re[_e].x+=oe,re[_e].y+=ye}return re},I=function(re){return re.sort(function(oe,ye){return oe-ye})},O=function(re,oe){for(var ye,_e,Ce=this.fillStyle,ne=this.strokeStyle,xe=this.lineCap,De=this.lineWidth,ze=Math.abs(De*this.ctx.transform.scaleX),Ye=this.lineJoin,Ne=JSON.parse(JSON.stringify(this.path)),yt=JSON.parse(JSON.stringify(this.path)),Ue=[],ue=0;ue<yt.length;ue++)if(yt[ue].x!==void 0)for(var Qe=B.call(this,yt[ue]),qe=0;qe<Qe.length;qe+=1)Ue.indexOf(Qe[qe])===-1&&Ue.push(Qe[qe]);for(var Re=0;Re<Ue.length;Re++)for(;this.pdf.internal.getNumberOfPages()<Ue[Re];)L.call(this);if(I(Ue),this.autoPaging)for(var Me=Ue[0],Ge=Ue[Ue.length-1],Pe=Me;Pe<Ge+1;Pe++){this.pdf.setPage(Pe),this.fillStyle=Ce,this.strokeStyle=ne,this.lineCap=xe,this.lineWidth=ze,this.lineJoin=Ye;var ke=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Be=Pe===1?this.posY+this.margin[0]:this.margin[0],$e=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],nt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ft=Pe===1?0:$e+(Pe-2)*nt;if(this.ctx.clip_path.length!==0){var Mt=this.path;ye=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(ye,this.posX+this.margin[3],-ft+Be+this.ctx.prevPageLastElemOffset),U.call(this,re,!0),this.path=Mt}if(_e=JSON.parse(JSON.stringify(Ne)),this.path=P(_e,this.posX+this.margin[3],-ft+Be+this.ctx.prevPageLastElemOffset),oe===!1||Pe===0){var Rt=(Pe>Me||Pe<Ge)&&T.call(this);Rt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ke,nt,null).clip().discardPath()),U.call(this,re,oe),Rt&&this.pdf.restoreGraphicsState()}this.lineWidth=De}else this.lineWidth=ze,U.call(this,re,oe),this.lineWidth=De;this.path=Ne},U=function(re,oe){if((re!=="stroke"||oe||!C.call(this))&&(re==="stroke"||oe||!b.call(this))){for(var ye,_e,Ce=[],ne=this.path,xe=0;xe<ne.length;xe++){var De=ne[xe];switch(De.type){case"begin":Ce.push({begin:!0});break;case"close":Ce.push({close:!0});break;case"mt":Ce.push({start:De,deltas:[],abs:[]});break;case"lt":var ze=Ce.length;if(ne[xe-1]&&!isNaN(ne[xe-1].x)&&(ye=[De.x-ne[xe-1].x,De.y-ne[xe-1].y],ze>0)){for(;ze>=0;ze--)if(Ce[ze-1].close!==!0&&Ce[ze-1].begin!==!0){Ce[ze-1].deltas.push(ye),Ce[ze-1].abs.push(De);break}}break;case"bct":ye=[De.x1-ne[xe-1].x,De.y1-ne[xe-1].y,De.x2-ne[xe-1].x,De.y2-ne[xe-1].y,De.x-ne[xe-1].x,De.y-ne[xe-1].y],Ce[Ce.length-1].deltas.push(ye);break;case"qct":var Ye=ne[xe-1].x+2/3*(De.x1-ne[xe-1].x),Ne=ne[xe-1].y+2/3*(De.y1-ne[xe-1].y),yt=De.x+2/3*(De.x1-De.x),Ue=De.y+2/3*(De.y1-De.y),ue=De.x,Qe=De.y;ye=[Ye-ne[xe-1].x,Ne-ne[xe-1].y,yt-ne[xe-1].x,Ue-ne[xe-1].y,ue-ne[xe-1].x,Qe-ne[xe-1].y],Ce[Ce.length-1].deltas.push(ye);break;case"arc":Ce.push({deltas:[],abs:[],arc:!0}),Array.isArray(Ce[Ce.length-1].abs)&&Ce[Ce.length-1].abs.push(De)}}_e=oe?null:re==="stroke"?"stroke":"fill";for(var qe=!1,Re=0;Re<Ce.length;Re++)if(Ce[Re].arc)for(var Me=Ce[Re].abs,Ge=0;Ge<Me.length;Ge++){var Pe=Me[Ge];Pe.type==="arc"?z.call(this,Pe.x,Pe.y,Pe.radius,Pe.startAngle,Pe.endAngle,Pe.counterclockwise,void 0,oe,!qe):Y.call(this,Pe.x,Pe.y),qe=!0}else if(Ce[Re].close===!0)this.pdf.internal.out("h"),qe=!1;else if(Ce[Re].begin!==!0){var ke=Ce[Re].start.x,Be=Ce[Re].start.y;te.call(this,Ce[Re].deltas,ke,Be),qe=!0}_e&&G.call(this,_e),oe&&j.call(this)}},N=function(re){var oe=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,ye=oe*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return re-ye;case"top":return re+oe-ye;case"hanging":return re+oe-2*ye;case"middle":return re+oe/2-ye;default:return re}},H=function(re){return re+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};y.prototype.createLinearGradient=function(){var re=function(){};return re.colorStops=[],re.addColorStop=function(oe,ye){this.colorStops.push([oe,ye])},re.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},re.isCanvasGradient=!0,re},y.prototype.createPattern=function(){return this.createLinearGradient()},y.prototype.createRadialGradient=function(){return this.createLinearGradient()};var z=function(re,oe,ye,_e,Ce,ne,xe,De,ze){for(var Ye=ce.call(this,ye,_e,Ce,ne),Ne=0;Ne<Ye.length;Ne++){var yt=Ye[Ne];Ne===0&&(ze?q.call(this,yt.x1+re,yt.y1+oe):Y.call(this,yt.x1+re,yt.y1+oe)),K.call(this,re,oe,yt.x2,yt.y2,yt.x3,yt.y3,yt.x4,yt.y4)}De?j.call(this):G.call(this,xe)},G=function(re){switch(re){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},j=function(){this.pdf.clip(),this.pdf.discardPath()},q=function(re,oe){this.pdf.internal.out(r(re)+" "+n(oe)+" m")},X=function(re){var oe;switch(re.align){case"right":case"end":oe="right";break;case"center":oe="center";break;default:oe="left"}var ye=this.pdf.getTextDimensions(re.text),_e=N.call(this,re.y),Ce=H.call(this,_e)-ye.h,ne=this.ctx.transform.applyToPoint(new f(re.x,_e)),xe=this.ctx.transform.decompose(),De=new A;De=(De=(De=De.multiply(xe.translate)).multiply(xe.skew)).multiply(xe.scale);for(var ze,Ye,Ne,yt=this.ctx.transform.applyToRectangle(new h(re.x,_e,ye.w,ye.h)),Ue=De.applyToRectangle(new h(re.x,Ce,ye.w,ye.h)),ue=B.call(this,Ue),Qe=[],qe=0;qe<ue.length;qe+=1)Qe.indexOf(ue[qe])===-1&&Qe.push(ue[qe]);if(I(Qe),this.autoPaging)for(var Re=Qe[0],Me=Qe[Qe.length-1],Ge=Re;Ge<Me+1;Ge++){this.pdf.setPage(Ge);var Pe=Ge===1?this.posY+this.margin[0]:this.margin[0],ke=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Be=this.pdf.internal.pageSize.height-this.margin[2],$e=Be-this.margin[0],nt=this.pdf.internal.pageSize.width-this.margin[1],ft=nt-this.margin[3],Mt=Ge===1?0:ke+(Ge-2)*$e;if(this.ctx.clip_path.length!==0){var Rt=this.path;ze=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(ze,this.posX+this.margin[3],-1*Mt+Pe),U.call(this,"fill",!0),this.path=Rt}var Bt=P([JSON.parse(JSON.stringify(Ue))],this.posX+this.margin[3],-Mt+Pe+this.ctx.prevPageLastElemOffset)[0];re.scale>=.01&&(Ye=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ye*re.scale),Ne=this.lineWidth,this.lineWidth=Ne*re.scale);var It=this.autoPaging!=="text";if(It||Bt.y+Bt.h<=Be){if(It||Bt.y>=Pe&&Bt.x<=nt){var qt=It?re.text:this.pdf.splitTextToSize(re.text,re.maxWidth||nt-Bt.x)[0],fr=P([JSON.parse(JSON.stringify(yt))],this.posX+this.margin[3],-Mt+Pe+this.ctx.prevPageLastElemOffset)[0],lr=It&&(Ge>Re||Ge<Me)&&T.call(this);lr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ft,$e,null).clip().discardPath()),this.pdf.text(qt,fr.x,fr.y,{angle:re.angle,align:oe,renderingMode:re.renderingMode}),lr&&this.pdf.restoreGraphicsState()}}else Bt.y<Be&&(this.ctx.prevPageLastElemOffset+=Be-Bt.y);re.scale>=.01&&(this.pdf.setFontSize(Ye),this.lineWidth=Ne)}else re.scale>=.01&&(Ye=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Ye*re.scale),Ne=this.lineWidth,this.lineWidth=Ne*re.scale),this.pdf.text(re.text,ne.x+this.posX,ne.y+this.posY,{angle:re.angle,align:oe,renderingMode:re.renderingMode,maxWidth:re.maxWidth}),re.scale>=.01&&(this.pdf.setFontSize(Ye),this.lineWidth=Ne)},Y=function(re,oe,ye,_e){ye=ye||0,_e=_e||0,this.pdf.internal.out(r(re+ye)+" "+n(oe+_e)+" l")},te=function(re,oe,ye){return this.pdf.lines(re,oe,ye,null,null)},K=function(re,oe,ye,_e,Ce,ne,xe,De){this.pdf.internal.out([e(o(ye+re)),e(u(_e+oe)),e(o(Ce+re)),e(u(ne+oe)),e(o(xe+re)),e(u(De+oe)),"c"].join(" "))},ce=function(re,oe,ye,_e){for(var Ce=2*Math.PI,ne=Math.PI/2;oe>ye;)oe-=Ce;var xe=Math.abs(ye-oe);xe<Ce&&_e&&(xe=Ce-xe);for(var De=[],ze=_e?-1:1,Ye=oe;xe>1e-5;){var Ne=Ye+ze*Math.min(xe,ne);De.push(ae.call(this,re,Ye,Ne)),xe-=Math.abs(Ne-Ye),Ye=Ne}return De},ae=function(re,oe,ye){var _e=(ye-oe)/2,Ce=re*Math.cos(_e),ne=re*Math.sin(_e),xe=Ce,De=-ne,ze=xe*xe+De*De,Ye=ze+xe*Ce+De*ne,Ne=4/3*(Math.sqrt(2*ze*Ye)-Ye)/(xe*ne-De*Ce),yt=xe-Ne*De,Ue=De+Ne*xe,ue=yt,Qe=-Ue,qe=_e+oe,Re=Math.cos(qe),Me=Math.sin(qe);return{x1:re*Math.cos(oe),y1:re*Math.sin(oe),x2:yt*Re-Ue*Me,y2:yt*Me+Ue*Re,x3:ue*Re-Qe*Me,y3:ue*Me+Qe*Re,x4:re*Math.cos(ye),y4:re*Math.sin(ye)}},le=function(re){return 180*re/Math.PI},pe=function(re,oe,ye,_e,Ce,ne){var xe=re+.5*(ye-re),De=oe+.5*(_e-oe),ze=Ce+.5*(ye-Ce),Ye=ne+.5*(_e-ne),Ne=Math.min(re,Ce,xe,ze),yt=Math.max(re,Ce,xe,ze),Ue=Math.min(oe,ne,De,Ye),ue=Math.max(oe,ne,De,Ye);return new h(Ne,Ue,yt-Ne,ue-Ue)},ie=function(re,oe,ye,_e,Ce,ne,xe,De){var ze,Ye,Ne,yt,Ue,ue,Qe,qe,Re,Me,Ge,Pe,ke,Be,$e=ye-re,nt=_e-oe,ft=Ce-ye,Mt=ne-_e,Rt=xe-Ce,Bt=De-ne;for(Ye=0;Ye<41;Ye++)Re=(Qe=(Ne=re+(ze=Ye/40)*$e)+ze*((Ue=ye+ze*ft)-Ne))+ze*(Ue+ze*(Ce+ze*Rt-Ue)-Qe),Me=(qe=(yt=oe+ze*nt)+ze*((ue=_e+ze*Mt)-yt))+ze*(ue+ze*(ne+ze*Bt-ue)-qe),Ye==0?(Ge=Re,Pe=Me,ke=Re,Be=Me):(Ge=Math.min(Ge,Re),Pe=Math.min(Pe,Me),ke=Math.max(ke,Re),Be=Math.max(Be,Me));return new h(Math.round(Ge),Math.round(Pe),Math.round(ke-Ge),Math.round(Be-Pe))},he=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var re,oe,ye=(re=this.ctx.lineDash,oe=this.ctx.lineDashOffset,JSON.stringify({lineDash:re,lineDashOffset:oe}));this.prevLineDash!==ye&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=ye)}}})(zn.API),function(t){var e=function(f){var h,A,p,g,y,_,b,C,T,B;for(A=[],p=0,g=(f+=h="\0\0\0\0".slice(f.length%4||4)).length;g>p;p+=4)(y=(f.charCodeAt(p)<<24)+(f.charCodeAt(p+1)<<16)+(f.charCodeAt(p+2)<<8)+f.charCodeAt(p+3))!==0?(_=(y=((y=((y=((y=(y-(B=y%85))/85)-(T=y%85))/85)-(C=y%85))/85)-(b=y%85))/85)%85,A.push(_+33,b+33,C+33,T+33,B+33)):A.push(122);return function(L,P){for(var I=P;I>0;I--)L.pop()}(A,h.length),String.fromCharCode.apply(String,A)+"~>"},r=function(f){var h,A,p,g,y,_=String,b="length",C=255,T="charCodeAt",B="slice",L="replace";for(f[B](-2),f=f[B](0,-2)[L](/\s/g,"")[L]("z","!!!!!"),p=[],g=0,y=(f+=h="uuuuu"[B](f[b]%5||5))[b];y>g;g+=5)A=52200625*(f[T](g)-33)+614125*(f[T](g+1)-33)+7225*(f[T](g+2)-33)+85*(f[T](g+3)-33)+(f[T](g+4)-33),p.push(C&A>>24,C&A>>16,C&A>>8,C&A);return function(P,I){for(var O=I;O>0;O--)P.pop()}(p,h[b]),_.fromCharCode.apply(_,p)},n=function(f){return f.split("").map(function(h){return("0"+h.charCodeAt().toString(16)).slice(-2)}).join("")+">"},o=function(f){var h=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((f=f.replace(/\s/g,"")).indexOf(">")!==-1&&(f=f.substr(0,f.indexOf(">"))),f.length%2&&(f+="0"),h.test(f)===!1)return"";for(var A="",p=0;p<f.length;p+=2)A+=String.fromCharCode("0x"+(f[p]+f[p+1]));return A},u=function(f){for(var h=new Uint8Array(f.length),A=f.length;A--;)h[A]=f.charCodeAt(A);return(h=C$(h)).reduce(function(p,g){return p+String.fromCharCode(g)},"")};t.processDataByFilters=function(f,h){var A=0,p=f||"",g=[];for(typeof(h=h||[])=="string"&&(h=[h]),A=0;A<h.length;A+=1)switch(h[A]){case"ASCII85Decode":case"/ASCII85Decode":p=r(p),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":p=e(p),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":p=o(p),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":p=n(p),g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":p=u(p),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+h[A]+'" is not implemented')}return{data:p,reverseChain:g.reverse().join(" ")}}}(zn.API),function(t){t.loadFile=function(e,r,n){return function(o,u,f){u=u!==!1,f=typeof f=="function"?f:function(){};var h=void 0;try{h=function(A,p,g){var y=new XMLHttpRequest,_=0,b=function(C){var T=C.length,B=[],L=String.fromCharCode;for(_=0;_<T;_+=1)B.push(L(255&C.charCodeAt(_)));return B.join("")};if(y.open("GET",A,!p),y.overrideMimeType("text/plain; charset=x-user-defined"),p===!1&&(y.onload=function(){y.status===200?g(b(this.responseText)):g(void 0)}),y.send(null),p&&y.status===200)return b(y.responseText)}(o,u,f)}catch{}return h}(e,r,n)},t.loadImageFile=t.loadFile}(zn.API),function(t){function e(){return(Ci.html2canvas?Promise.resolve(Ci.html2canvas):M5(()=>Promise.resolve().then(()=>A2t),void 0)).catch(function(h){return Promise.reject(new Error("Could not load html2canvas: "+h))}).then(function(h){return h.default?h.default:h})}function r(){return(Ci.DOMPurify?Promise.resolve(Ci.DOMPurify):M5(()=>Promise.resolve().then(()=>O4t),void 0)).catch(function(h){return Promise.reject(new Error("Could not load dompurify: "+h))}).then(function(h){return h.default?h.default:h})}var n=function(h){var A=Ea(h);return A==="undefined"?"undefined":A==="string"||h instanceof String?"string":A==="number"||h instanceof Number?"number":A==="function"||h instanceof Function?"function":h&&h.constructor===Array?"array":h&&h.nodeType===1?"element":A==="object"?"object":"unknown"},o=function(h,A){var p=document.createElement(h);for(var g in A.className&&(p.className=A.className),A.innerHTML&&A.dompurify&&(p.innerHTML=A.dompurify.sanitize(A.innerHTML)),A.style)p.style[g]=A.style[g];return p},u=function h(A,p){for(var g=A.nodeType===3?document.createTextNode(A.nodeValue):A.cloneNode(!1),y=A.firstChild;y;y=y.nextSibling)p!==!0&&y.nodeType===1&&y.nodeName==="SCRIPT"||g.appendChild(h(y,p));return A.nodeType===1&&(A.nodeName==="CANVAS"?(g.width=A.width,g.height=A.height,g.getContext("2d").drawImage(A,0,0)):A.nodeName!=="TEXTAREA"&&A.nodeName!=="SELECT"||(g.value=A.value),g.addEventListener("load",function(){g.scrollTop=A.scrollTop,g.scrollLeft=A.scrollLeft},!0)),g},f=function h(A){var p=Object.assign(h.convert(Promise.resolve()),JSON.parse(JSON.stringify(h.template))),g=h.convert(Promise.resolve(),p);return(g=g.setProgress(1,h,1,[h])).set(A)};(f.prototype=Object.create(Promise.prototype)).constructor=f,f.convert=function(h,A){return h.__proto__=A||f.prototype,h},f.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},f.prototype.from=function(h,A){return this.then(function(){switch(A=A||function(p){switch(n(p)){case"string":return"string";case"element":return p.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(h),A){case"string":return this.then(r).then(function(p){return this.set({src:o("div",{innerHTML:h,dompurify:p})})});case"element":return this.set({src:h});case"canvas":return this.set({canvas:h});case"img":return this.set({img:h});default:return this.error("Unknown source type.")}})},f.prototype.to=function(h){switch(h){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},f.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var h={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},A=u(this.prop.src,this.opt.html2canvas.javascriptEnabled);A.tagName==="BODY"&&(h.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:h}),this.prop.container.appendChild(A),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},f.prototype.toCanvas=function(){var h=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(h).then(e).then(function(A){var p=Object.assign({},this.opt.html2canvas);return delete p.onrendered,A(this.prop.container,p)}).then(function(A){(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)})},f.prototype.toContext2d=function(){var h=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(h).then(e).then(function(A){var p=this.opt.jsPDF,g=this.opt.fontFaces,y=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,_=Object.assign({async:!0,allowTaint:!0,scale:y,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete _.onrendered,p.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,p.context2d.posX=this.opt.x,p.context2d.posY=this.opt.y,p.context2d.margin=this.opt.margin,p.context2d.fontFaces=g,g)for(var b=0;b<g.length;++b){var C=g[b],T=C.src.find(function(B){return B.format==="truetype"});T&&p.addFont(T.url,C.ref.name,C.ref.style)}return _.windowHeight=_.windowHeight||0,_.windowHeight=_.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):_.windowHeight,p.context2d.save(!0),A(this.prop.container,_)}).then(function(A){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(A),this.prop.canvas=A,document.body.removeChild(this.prop.overlay)})},f.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var h=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=h})},f.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},f.prototype.output=function(h,A,p){return(p=p||"pdf").toLowerCase()==="img"||p.toLowerCase()==="image"?this.outputImg(h,A):this.outputPdf(h,A)},f.prototype.outputPdf=function(h,A){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(h,A)})},f.prototype.outputImg=function(h){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(h){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+h+'" is not supported.'}})},f.prototype.save=function(h){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(h?{filename:h}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},f.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},f.prototype.set=function(h){if(n(h)!=="object")return this;var A=Object.keys(h||{}).map(function(p){if(p in f.template.prop)return function(){this.prop[p]=h[p]};switch(p){case"margin":return this.setMargin.bind(this,h.margin);case"jsPDF":return function(){return this.opt.jsPDF=h.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,h.pageSize);default:return function(){this.opt[p]=h[p]}}},this);return this.then(function(){return this.thenList(A)})},f.prototype.get=function(h,A){return this.then(function(){var p=h in f.template.prop?this.prop[h]:this.opt[h];return A?A(p):p})},f.prototype.setMargin=function(h){return this.then(function(){switch(n(h)){case"number":h=[h,h,h,h];case"array":if(h.length===2&&(h=[h[0],h[1],h[0],h[1]]),h.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=h}).then(this.setPageSize)},f.prototype.setPageSize=function(h){function A(p,g){return Math.floor(p*g/72*96)}return this.then(function(){(h=h||zn.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(h.inner={width:h.width-this.opt.margin[1]-this.opt.margin[3],height:h.height-this.opt.margin[0]-this.opt.margin[2]},h.inner.px={width:A(h.inner.width,h.k),height:A(h.inner.height,h.k)},h.inner.ratio=h.inner.height/h.inner.width),this.prop.pageSize=h})},f.prototype.setProgress=function(h,A,p,g){return h!=null&&(this.progress.val=h),A!=null&&(this.progress.state=A),p!=null&&(this.progress.n=p),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},f.prototype.updateProgress=function(h,A,p,g){return this.setProgress(h?this.progress.val+h:null,A||null,p?this.progress.n+p:null,g?this.progress.stack.concat(g):null)},f.prototype.then=function(h,A){var p=this;return this.thenCore(h,A,function(g,y){return p.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,function(_){return p.updateProgress(null,g),_}).then(g,y).then(function(_){return p.updateProgress(1),_})})},f.prototype.thenCore=function(h,A,p){p=p||Promise.prototype.then;var g=this;h&&(h=h.bind(g)),A&&(A=A.bind(g));var y=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?g:f.convert(Object.assign({},g),Promise.prototype),_=p.call(y,h,A);return f.convert(_,g.__proto__)},f.prototype.thenExternal=function(h,A){return Promise.prototype.then.call(this,h,A)},f.prototype.thenList=function(h){var A=this;return h.forEach(function(p){A=A.thenCore(p)}),A},f.prototype.catch=function(h){h&&(h=h.bind(this));var A=Promise.prototype.catch.call(this,h);return f.convert(A,this)},f.prototype.catchExternal=function(h){return Promise.prototype.catch.call(this,h)},f.prototype.error=function(h){return this.then(function(){throw new Error(h)})},f.prototype.using=f.prototype.set,f.prototype.saveAs=f.prototype.save,f.prototype.export=f.prototype.output,f.prototype.run=f.prototype.then,zn.getPageSize=function(h,A,p){if(Ea(h)==="object"){var g=h;h=g.orientation,A=g.unit||A,p=g.format||p}A=A||"mm",p=p||"a4",h=(""+(h||"P")).toLowerCase();var y,_=(""+p).toLowerCase(),b={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(A){case"pt":y=1;break;case"mm":y=72/25.4;break;case"cm":y=72/2.54;break;case"in":y=72;break;case"px":y=.75;break;case"pc":case"em":y=12;break;case"ex":y=6;break;default:throw"Invalid unit: "+A}var C,T=0,B=0;if(b.hasOwnProperty(_))T=b[_][1]/y,B=b[_][0]/y;else try{T=p[1],B=p[0]}catch{throw new Error("Invalid format: "+p)}if(h==="p"||h==="portrait")h="p",B>T&&(C=B,B=T,T=C);else{if(h!=="l"&&h!=="landscape")throw"Invalid orientation: "+h;h="l",T>B&&(C=B,B=T,T=C)}return{width:B,height:T,unit:A,k:y,orientation:h}},t.html=function(h,A){(A=A||{}).callback=A.callback||function(){},A.html2canvas=A.html2canvas||{},A.html2canvas.canvas=A.html2canvas.canvas||this.canvas,A.jsPDF=A.jsPDF||this,A.fontFaces=A.fontFaces?A.fontFaces.map(F9):null;var p=new f(A);return A.worker?p:p.from(h).doCallback()}}(zn.API),zn.API.addJS=function(t){return g1e=t,this.internal.events.subscribe("postPutResources",function(){nD=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(nD+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),p1e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+g1e+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){nD!==void 0&&p1e!==void 0&&this.internal.out("/Names <</JavaScript "+nD+" 0 R>>")}),this},function(t){var e;t.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var o=r.outline.render().split(/\r\n/),u=0;u<o.length;u++){var f=o[u],h=n.exec(f);if(h!=null){var A=h[1];r.internal.newObjectDeferredBegin(A,!1)}r.internal.write(f)}if(this.outline.createNamedDestinations){var p=this.internal.pages.length,g=[];for(u=0;u<p;u++){var y=r.internal.newObject();g.push(y);var _=r.internal.getPageInfo(u+1);r.internal.write("<< /D["+_.objId+" 0 R /XYZ null null null]>> endobj")}var b=r.internal.newObject();for(r.internal.write("<< /Names [ "),u=0;u<g.length;u++)r.internal.write("(page_"+(u+1)+")"+g[u]+" 0 R");r.internal.write(" ] >>","endobj"),e=r.internal.newObject(),r.internal.write("<< /Dests "+b+" 0 R"),r.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var r=this;r.outline.root.children.length>0&&(r.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&r.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,o,u){var f={title:o,options:u,children:[]};return n==null&&(n=this.root),n.children.push(f),f},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var o=0;o<n.children.length;o++)this.genIds_r(n.children[o])},r.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},r.outline.renderItems=function(n){for(var o=this.ctx.pdf.internal.getVerticalCoordinateString,u=0;u<n.children.length;u++){var f=n.children[u];this.objStart(f),this.line("/Title "+this.makeString(f.title)),this.line("/Parent "+this.makeRef(n)),u>0&&this.line("/Prev "+this.makeRef(n.children[u-1])),u<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[u+1])),f.children.length>0&&(this.line("/First "+this.makeRef(f.children[0])),this.line("/Last "+this.makeRef(f.children[f.children.length-1])));var h=this.count=this.count_r({count:0},f);if(h>0&&this.line("/Count "+h),f.options&&f.options.pageNumber){var A=r.internal.getPageInfo(f.options.pageNumber);this.line("/Dest ["+A.objId+" 0 R /XYZ 0 "+o(0)+" 0]")}this.objEnd()}for(var p=0;p<n.children.length;p++)this.renderItems(n.children[p])},r.outline.line=function(n){this.ctx.val+=n+`\r
`},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r
`+n.id+` 0 obj\r
<<\r
`},r.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},r.outline.count_r=function(n,o){for(var u=0;u<o.children.length;u++)n.count++,this.count_r(n,o.children[u]);return n.count}}])}(zn.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(r,n,o,u,f,h){var A,p=this.decode.DCT_DECODE,g=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=f||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,A=function(y){for(var _,b=256*y.charCodeAt(4)+y.charCodeAt(5),C=y.length,T={width:0,height:0,numcomponents:1},B=4;B<C;B+=2){if(B+=b,e.indexOf(y.charCodeAt(B+1))!==-1){_=256*y.charCodeAt(B+5)+y.charCodeAt(B+6),T={width:256*y.charCodeAt(B+7)+y.charCodeAt(B+8),height:_,numcomponents:y.charCodeAt(B+9)};break}b=256*y.charCodeAt(B+2)+y.charCodeAt(B+3)}return T}(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r),A.numcomponents){case 1:h=this.color_spaces.DEVICE_GRAY;break;case 4:h=this.color_spaces.DEVICE_CMYK;break;case 3:h=this.color_spaces.DEVICE_RGB}g={data:r,width:A.width,height:A.height,colorSpace:h,bitsPerComponent:8,filter:p,index:n,alias:o}}return g}}(zn.API),zn.API.processPNG=function(t,e,r,n){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var o,u=o_t(t,{checkCrc:!0}),f=u.width,h=u.height,A=u.channels,p=u.palette,g=u.depth;o=p&&A===1?function(H){for(var z=H.width,G=H.height,j=H.data,q=H.palette,X=H.depth,Y=!1,te=[],K=[],ce=void 0,ae=!1,le=0,pe=0;pe<q.length;pe++){var ie=Th(q[pe],4),he=ie[0],re=ie[1],oe=ie[2],ye=ie[3];te.push(he,re,oe),ye!=null&&(ye===0?(le++,K.length<1&&K.push(pe)):ye<255&&(ae=!0))}if(ae||le>1){Y=!0,K=void 0;var _e=z*G;ce=new Uint8Array(_e);for(var Ce=new DataView(j.buffer),ne=0;ne<_e;ne++){var xe=U9(Ce,ne,X),De=Th(q[xe],4)[3];ce[ne]=De}}return{colorSpace:"Indexed",colorsPerPixel:1,colorBytes:j,alphaBytes:ce,needSMask:Y,palette:te,mask:K}}(u):A===2||A===4?function(H){for(var z=H.data,G=H.width,j=H.height,q=H.channels,X=H.depth,Y=q===2?"DeviceGray":"DeviceRGB",te=q-1,K=G*j,ce=te,ae=K*ce,le=1*K,pe=Math.ceil(ae*X/8),ie=Math.ceil(le*X/8),he=new Uint8Array(pe),re=new Uint8Array(ie),oe=new DataView(z.buffer),ye=new DataView(he.buffer),_e=new DataView(re.buffer),Ce=!1,ne=0;ne<K;ne++){for(var xe=ne*q,De=0;De<ce;De++)T1e(ye,U9(oe,xe+De,X),ne*ce+De,X);var ze=U9(oe,xe+ce,X);ze<(1<<X)-1&&(Ce=!0),T1e(_e,ze,1*ne,X)}return{colorSpace:Y,colorsPerPixel:te,colorBytes:he,alphaBytes:re,needSMask:Ce}}(u):function(H){var z=H.data,G=H.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:G,colorsPerPixel:G==="DeviceGray"?1:3,colorBytes:z instanceof Uint8Array?z:new Uint8Array(z.buffer),needSMask:!1}}(u);var y,_,b,C=o,T=C.colorSpace,B=C.colorsPerPixel,L=C.colorBytes,P=C.alphaBytes,I=C.needSMask,O=C.palette,U=C.mask,N=null;return n!==zn.API.image_compression.NONE&&typeof C$=="function"?(N=function(H){var z;switch(H){case zn.API.image_compression.FAST:z=11;break;case zn.API.image_compression.MEDIUM:z=13;break;case zn.API.image_compression.SLOW:z=14;break;default:z=12}return z}(n),y=this.decode.FLATE_DECODE,_="/Predictor ".concat(N," "),t=b1e(L,f*B,B,n),I&&(b=b1e(P,f,1,n))):(y=void 0,_="",t=L,I&&(b=P)),_+="/Colors ".concat(B," /BitsPerComponent ").concat(g," /Columns ").concat(f),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(b&&this.__addimage__.isArrayBuffer(b)||this.__addimage__.isArrayBufferView(b))&&(b=this.__addimage__.arrayBufferToBinaryString(b)),{alias:r,data:t,index:e,filter:y,decodeParameters:_,transparency:U,palette:O,sMask:b,predictor:N,width:f,height:h,bitsPerComponent:g,colorSpace:T}}},function(t){t.processGIF89A=function(e,r,n,o){var u=new E_t(e),f=u.width,h=u.height,A=[];u.decodeAndBlitFrameRGBA(0,A);var p={data:A,width:f,height:h},g=new H9(100).encode(p,100);return t.processJPEG.call(this,g,r,n,o)},t.processGIF87A=t.processGIF89A}(zn.API),_A.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:o,green:n,blue:r,quad:u}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},_A.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(r){Po.log("bit decode error:"+r)}},_A.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),r=e%4;for(t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,o=0;o<e;o++)for(var u=this.datav.getUint8(this.pos++,!0),f=n*this.width*4+8*o*4,h=0;h<8&&8*o+h<this.width;h++){var A=this.palette[u>>7-h&1];this.data[f+4*h]=A.blue,this.data[f+4*h+1]=A.green,this.data[f+4*h+2]=A.red,this.data[f+4*h+3]=255}r!==0&&(this.pos+=4-r)}},_A.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,o=0;o<t;o++){var u=this.datav.getUint8(this.pos++,!0),f=n*this.width*4+2*o*4,h=u>>4,A=15&u,p=this.palette[h];if(this.data[f]=p.blue,this.data[f+1]=p.green,this.data[f+2]=p.red,this.data[f+3]=255,2*o+1>=this.width)break;p=this.palette[A],this.data[f+4]=p.blue,this.data[f+4+1]=p.green,this.data[f+4+2]=p.red,this.data[f+4+3]=255}e!==0&&(this.pos+=4-e)}},_A.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var o=this.datav.getUint8(this.pos++,!0),u=r*this.width*4+4*n;if(o<this.palette.length){var f=this.palette[o];this.data[u]=f.red,this.data[u+1]=f.green,this.data[u+2]=f.blue,this.data[u+3]=255}else this.data[u]=255,this.data[u+1]=255,this.data[u+2]=255,this.data[u+3]=255}t!==0&&(this.pos+=4-t)}},_A.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var u=this.datav.getUint16(this.pos,!0);this.pos+=2;var f=(u&e)/e*255|0,h=(u>>5&e)/e*255|0,A=(u>>10&e)/e*255|0,p=u>>15?255:0,g=n*this.width*4+4*o;this.data[g]=A,this.data[g+1]=h,this.data[g+2]=f,this.data[g+3]=p}this.pos+=t}},_A.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var o=this.bottom_up?n:this.height-1-n,u=0;u<this.width;u++){var f=this.datav.getUint16(this.pos,!0);this.pos+=2;var h=(f&e)/e*255|0,A=(f>>5&r)/r*255|0,p=(f>>11)/e*255|0,g=o*this.width*4+4*u;this.data[g]=p,this.data[g+1]=A,this.data[g+2]=h,this.data[g+3]=255}this.pos+=t}},_A.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),f=e*this.width*4+4*r;this.data[f]=u,this.data[f+1]=o,this.data[f+2]=n,this.data[f+3]=255}this.pos+=this.width%4}},_A.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),u=this.datav.getUint8(this.pos++,!0),f=this.datav.getUint8(this.pos++,!0),h=e*this.width*4+4*r;this.data[h]=u,this.data[h+1]=o,this.data[h+2]=n,this.data[h+3]=f}},_A.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,r,n,o){var u=new _A(e,!1),f=u.width,h=u.height,A={data:u.getData(),width:f,height:h},p=new H9(100).encode(A,100);return t.processJPEG.call(this,p,r,n,o)}}(zn.API),B1e.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,r,n,o){var u=new B1e(e),f=u.width,h=u.height,A={data:u.getData(),width:f,height:h},p=new H9(100).encode(A,100);return t.processJPEG.call(this,p,r,n,o)}}(zn.API),zn.API.processRGBA=function(t,e,r){for(var n=t.data,o=n.length,u=new Uint8Array(o/4*3),f=new Uint8Array(o/4),h=0,A=0,p=0;p<o;p+=4){var g=n[p],y=n[p+1],_=n[p+2],b=n[p+3];u[h++]=g,u[h++]=y,u[h++]=_,f[A++]=b}var C=this.__addimage__.arrayBufferToBinaryString(u);return{alpha:this.__addimage__.arrayBufferToBinaryString(f),data:C,index:e,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},zn.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},s_=zn.API,iD=s_.getCharWidthsArray=function(t,e){var r,n,o=(e=e||{}).font||this.internal.getFont(),u=e.fontSize||this.internal.getFontSize(),f=e.charSpace||this.internal.getCharSpace(),h=e.widths?e.widths:o.metadata.Unicode.widths,A=h.fof?h.fof:1,p=e.kerning?e.kerning:o.metadata.Unicode.kerning,g=p.fof?p.fof:1,y=e.doKerning!==!1,_=0,b=t.length,C=0,T=h[0]||A,B=[];for(r=0;r<b;r++)n=t.charCodeAt(r),typeof o.metadata.widthOfString=="function"?B.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(n))+f*(1e3/u)||0)/1e3):(_=y&&Ea(p[n])==="object"&&!isNaN(parseInt(p[n][C],10))?p[n][C]/g:0,B.push((h[n]||T)/A+_)),C=n;return B},m1e=s_.getStringUnitWidth=function(t,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),n=e.font||this.internal.getFont(),o=e.charSpace||this.internal.getCharSpace();return s_.processArabic&&(t=s_.processArabic(t)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(t,r,o)/r:iD.apply(this,arguments).reduce(function(u,f){return u+f},0)},y1e=function(t,e,r,n){for(var o=[],u=0,f=t.length,h=0;u!==f&&h+e[u]<r;)h+=e[u],u++;o.push(t.slice(0,u));var A=u;for(h=0;u!==f;)h+e[u]>n&&(o.push(t.slice(A,u)),h=0,A=u),h+=e[u],u++;return A!==u&&o.push(t.slice(A,u)),o},w1e=function(t,e,r){r||(r={});var n,o,u,f,h,A,p,g=[],y=[g],_=r.textIndent||0,b=0,C=0,T=t.split(" "),B=iD.apply(this,[" ",r])[0];if(A=r.lineIndent===-1?T[0].length+2:r.lineIndent||0){var L=Array(A).join(" "),P=[];T.map(function(O){(O=O.split(/\s*\n/)).length>1?P=P.concat(O.map(function(U,N){return(N&&U.length?`
`:"")+U})):P.push(O[0])}),T=P,A=m1e.apply(this,[L,r])}for(u=0,f=T.length;u<f;u++){var I=0;if(n=T[u],A&&n[0]==`
`&&(n=n.substr(1),I=1),_+b+(C=(o=iD.apply(this,[n,r])).reduce(function(O,U){return O+U},0))>e||I){if(C>e){for(h=y1e.apply(this,[n,o,e-(_+b),e]),g.push(h.shift()),g=[h.pop()];h.length;)y.push([h.shift()]);C=o.slice(n.length-(g[0]?g[0].length:0)).reduce(function(O,U){return O+U},0)}else g=[n];y.push(g),_=C+A,b=B}else g.push(n),_+=b+C,b=B}return p=A?function(O,U){return(U?L:"")+O.join(" ")}:function(O){return O.join(" ")},y.map(p)},s_.splitTextToSize=function(t,e,r){var n,o=(r=r||{}).fontSize||this.internal.getFontSize(),u=(function(g){if(g.widths&&g.kerning)return{widths:g.widths,kerning:g.kerning};var y=this.internal.getFont(g.fontName,g.fontStyle),_="Unicode";return y.metadata[_]?{widths:y.metadata[_].widths||{0:1},kerning:y.metadata[_].kerning||{}}:{font:y.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);n=Array.isArray(t)?t:String(t).split(/\r?\n/);var f=1*this.internal.scaleFactor*e/o;u.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/o:0,u.lineIndent=r.lineIndent;var h,A,p=[];for(h=0,A=n.length;h<A;h++)p=p.concat(w1e.apply(this,[n[h],f,u]));return p},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="0123456789abcdef",r="klmnopqrstuvwxyz",n={},o={},u=0;u<16;u++)n[r[u]]=e[u],o[e[u]]=r[u];var f=function(_){return"0x"+parseInt(_,10).toString(16)},h=t.__fontmetrics__.compress=function(_){var b,C,T,B,L=["{"];for(var P in _){if(b=_[P],isNaN(parseInt(P,10))?C="'"+P+"'":(P=parseInt(P,10),C=(C=f(P).slice(2)).slice(0,-1)+o[C.slice(-1)]),typeof b=="number")b<0?(T=f(b).slice(3),B="-"):(T=f(b).slice(2),B=""),T=B+T.slice(0,-1)+o[T.slice(-1)];else{if(Ea(b)!=="object")throw new Error("Don't know what to do with value type "+Ea(b)+".");T=h(b)}L.push(C+T)}return L.push("}"),L.join("")},A=t.__fontmetrics__.uncompress=function(_){if(typeof _!="string")throw new Error("Invalid argument passed to uncompress.");for(var b,C,T,B,L={},P=1,I=L,O=[],U="",N="",H=_.length-1,z=1;z<H;z+=1)(B=_[z])=="'"?b?(T=b.join(""),b=void 0):b=[]:b?b.push(B):B=="{"?(O.push([I,T]),I={},T=void 0):B=="}"?((C=O.pop())[0][C[1]]=I,T=void 0,I=C[0]):B=="-"?P=-1:T===void 0?n.hasOwnProperty(B)?(U+=n[B],T=parseInt(U,16)*P,P=1,U=""):U+=B:n.hasOwnProperty(B)?(N+=n[B],I[T]=parseInt(N,16)*P,P=1,T=void 0,N=""):N+=B;return L},p={codePages:["WinAnsiEncoding"],WinAnsiEncoding:A("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:p,"Courier-Bold":p,"Courier-BoldOblique":p,"Courier-Oblique":p,Helvetica:p,"Helvetica-Bold":p,"Helvetica-BoldOblique":p,"Helvetica-Oblique":p,"Times-Roman":p,"Times-Bold":p,"Times-BoldItalic":p,"Times-Italic":p}},y={Unicode:{"Courier-Oblique":A("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":A("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":A("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:A("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":A("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":A("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:A("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:A("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":A("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:A("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":A("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":A("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":A("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":A("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(_){var b=_.font,C=y.Unicode[b.postScriptName];C&&(b.metadata.Unicode={},b.metadata.Unicode.widths=C.widths,b.metadata.Unicode.kerning=C.kerning);var T=g.Unicode[b.postScriptName];T&&(b.metadata.Unicode.encoding=T,b.encoding=T.codePages[0])}])}(zn.API),function(t){var e=function(r){for(var n=r.length,o=new Uint8Array(n),u=0;u<n;u++)o[u]=r.charCodeAt(u);return o};t.API.events.push(["addFont",function(r){var n=void 0,o=r.font,u=r.instance;if(!o.isStandardFont){if(u===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");if(typeof(n=u.existsFileInVFS(o.postScriptName)===!1?u.loadFile(o.postScriptName):u.getFileFromVFS(o.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");(function(f,h){h=/^\x00\x01\x00\x00/.test(h)?e(h):e(Q5(h)),f.metadata=t.API.TTFFont.open(h),f.metadata.Unicode=f.metadata.Unicode||{encoding:{},kerning:{},widths:[]},f.metadata.glyIdsUsed=[0]})(o,n)}}])}(zn),zn.API.addSvgAsImage=function(t,e,r,n,o,u,f,h){if(isNaN(e)||isNaN(r))throw Po.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(o))throw Po.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var A=document.createElement("canvas");A.width=n,A.height=o;var p=A.getContext("2d");p.fillStyle="#fff",p.fillRect(0,0,A.width,A.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},y=this;return(Ci.canvg?Promise.resolve(Ci.canvg):M5(()=>Promise.resolve().then(()=>HHt),void 0)).catch(function(_){return Promise.reject(new Error("Could not load canvg: "+_))}).then(function(_){return _.default?_.default:_}).then(function(_){return _.fromString(p,t,g)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(_){return _.render(g)}).then(function(){y.addImage(A.toDataURL("image/jpeg",1),e,r,n,o,f,h)})},zn.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var o=0;o<this.internal.pages[n].length;o++)this.internal.pages[n][o]=this.internal.pages[n][o].replace(e,r);return this},zn.API.viewerPreferences=function(t,e){var r;t=t||{},e=e||!1;var n,o,u,f={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},h=Object.keys(f),A=[],p=0,g=0,y=0;function _(C,T){var B,L=!1;for(B=0;B<C.length;B+=1)C[B]===T&&(L=!0);return L}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(f)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,t==="reset"||e===!0){var b=h.length;for(y=0;y<b;y+=1)r[h[y]].value=r[h[y]].defaultValue,r[h[y]].explicitSet=!1}if(Ea(t)==="object"){for(o in t)if(u=t[o],_(h,o)&&u!==void 0){if(r[o].type==="boolean"&&typeof u=="boolean")r[o].value=u;else if(r[o].type==="name"&&_(r[o].valueSet,u))r[o].value=u;else if(r[o].type==="integer"&&Number.isInteger(u))r[o].value=u;else if(r[o].type==="array"){for(p=0;p<u.length;p+=1)if(n=!0,u[p].length===1&&typeof u[p][0]=="number")A.push(String(u[p]-1));else if(u[p].length>1){for(g=0;g<u[p].length;g+=1)typeof u[p][g]!="number"&&(n=!1);n===!0&&A.push([u[p][0]-1,u[p][1]-1].join(" "))}r[o].value="["+A.join(" ")+"]"}else r[o].value=r[o].defaultValue;r[o].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var C,T=[];for(C in r)r[C].explicitSet===!0&&(r[C].type==="name"?T.push("/"+C+" /"+r[C].value):T.push("/"+C+" "+r[C].value));T.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+T.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},function(t){var e=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',o=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),u=unescape(encodeURIComponent(n)),f=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),h=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),A=unescape(encodeURIComponent("</x:xmpmeta>")),p=u.length+f.length+h.length+o.length+A.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+p+" >>"),this.internal.write("stream"),this.internal.write(o+u+f+h+A),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(n,o){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:o||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",e)),this}}(zn.API),function(t){var e=t.API,r=e.pdfEscape16=function(u,f){for(var h,A=f.metadata.Unicode.widths,p=["","0","00","000","0000"],g=[""],y=0,_=u.length;y<_;++y){if(h=f.metadata.characterToGlyph(u.charCodeAt(y)),f.metadata.glyIdsUsed.push(h),f.metadata.toUnicode[h]=u.charCodeAt(y),A.indexOf(h)==-1&&(A.push(h),A.push([parseInt(f.metadata.widthOfGlyph(h),10)])),h=="0")return g.join("");h=h.toString(16),g.push(p[4-h.length],h)}return g.join("")},n=function(u){var f,h,A,p,g,y,_;for(g=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,A=[],y=0,_=(h=Object.keys(u).sort(function(b,C){return b-C})).length;y<_;y++)f=h[y],A.length>=100&&(g+=`
`+A.length+` beginbfchar
`+A.join(`
`)+`
endbfchar`,A=[]),u[f]!==void 0&&u[f]!==null&&typeof u[f].toString=="function"&&(p=("0000"+u[f].toString(16)).slice(-4),f=("0000"+(+f).toString(16)).slice(-4),A.push("<"+f+"><"+p+">"));return A.length&&(g+=`
`+A.length+` beginbfchar
`+A.join(`
`)+`
endbfchar
`),g+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};e.events.push(["putFont",function(u){(function(f){var h=f.font,A=f.out,p=f.newObject,g=f.putStream;if(h.metadata instanceof t.API.TTFFont&&h.encoding==="Identity-H"){for(var y=h.metadata.Unicode.widths,_=h.metadata.subset.encode(h.metadata.glyIdsUsed,1),b="",C=0;C<_.length;C++)b+=String.fromCharCode(_[C]);var T=p();g({data:b,addLength1:!0,objectId:T}),A("endobj");var B=p();g({data:n(h.metadata.toUnicode),addLength1:!0,objectId:B}),A("endobj");var L=p();A("<<"),A("/Type /FontDescriptor"),A("/FontName /"+O_(h.fontName)),A("/FontFile2 "+T+" 0 R"),A("/FontBBox "+t.API.PDFObject.convert(h.metadata.bbox)),A("/Flags "+h.metadata.flags),A("/StemV "+h.metadata.stemV),A("/ItalicAngle "+h.metadata.italicAngle),A("/Ascent "+h.metadata.ascender),A("/Descent "+h.metadata.decender),A("/CapHeight "+h.metadata.capHeight),A(">>"),A("endobj");var P=p();A("<<"),A("/Type /Font"),A("/BaseFont /"+O_(h.fontName)),A("/FontDescriptor "+L+" 0 R"),A("/W "+t.API.PDFObject.convert(y)),A("/CIDToGIDMap /Identity"),A("/DW 1000"),A("/Subtype /CIDFontType2"),A("/CIDSystemInfo"),A("<<"),A("/Supplement 0"),A("/Registry (Adobe)"),A("/Ordering ("+h.encoding+")"),A(">>"),A(">>"),A("endobj"),h.objectNumber=p(),A("<<"),A("/Type /Font"),A("/Subtype /Type0"),A("/ToUnicode "+B+" 0 R"),A("/BaseFont /"+O_(h.fontName)),A("/Encoding /"+h.encoding),A("/DescendantFonts ["+P+" 0 R]"),A(">>"),A("endobj"),h.isAlreadyPutted=!0}})(u)}]),e.events.push(["putFont",function(u){(function(f){var h=f.font,A=f.out,p=f.newObject,g=f.putStream;if(h.metadata instanceof t.API.TTFFont&&h.encoding==="WinAnsiEncoding"){for(var y=h.metadata.rawData,_="",b=0;b<y.length;b++)_+=String.fromCharCode(y[b]);var C=p();g({data:_,addLength1:!0,objectId:C}),A("endobj");var T=p();g({data:n(h.metadata.toUnicode),addLength1:!0,objectId:T}),A("endobj");var B=p();A("<<"),A("/Descent "+h.metadata.decender),A("/CapHeight "+h.metadata.capHeight),A("/StemV "+h.metadata.stemV),A("/Type /FontDescriptor"),A("/FontFile2 "+C+" 0 R"),A("/Flags 96"),A("/FontBBox "+t.API.PDFObject.convert(h.metadata.bbox)),A("/FontName /"+O_(h.fontName)),A("/ItalicAngle "+h.metadata.italicAngle),A("/Ascent "+h.metadata.ascender),A(">>"),A("endobj"),h.objectNumber=p();for(var L=0;L<h.metadata.hmtx.widths.length;L++)h.metadata.hmtx.widths[L]=parseInt(h.metadata.hmtx.widths[L]*(1e3/h.metadata.head.unitsPerEm));A("<</Subtype/TrueType/Type/Font/ToUnicode "+T+" 0 R/BaseFont/"+O_(h.fontName)+"/FontDescriptor "+B+" 0 R/Encoding/"+h.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(h.metadata.hmtx.widths)+">>"),A("endobj"),h.isAlreadyPutted=!0}})(u)}]);var o=function(u){var f,h=u.text||"",A=u.x,p=u.y,g=u.options||{},y=u.mutex||{},_=y.pdfEscape,b=y.activeFontKey,C=y.fonts,T=b,B="",L=0,P="",I=C[T].encoding;if(C[T].encoding!=="Identity-H")return{text:h,x:A,y:p,options:g,mutex:y};for(P=h,T=b,Array.isArray(h)&&(P=h[0]),L=0;L<P.length;L+=1)C[T].metadata.hasOwnProperty("cmap")&&(f=C[T].metadata.cmap.unicode.codeMap[P[L].charCodeAt(0)]),f||P[L].charCodeAt(0)<256&&C[T].metadata.hasOwnProperty("Unicode")?B+=P[L]:B+="";var O="";return parseInt(T.slice(1))<14||I==="WinAnsiEncoding"?O=_(B,T).split("").map(function(U){return U.charCodeAt(0).toString(16)}).join(""):I==="Identity-H"&&(O=r(B,C[T])),y.isHex=!0,{text:O,x:A,y:p,options:g,mutex:y}};e.events.push(["postProcessText",function(u){var f=u.text||"",h=[],A={text:f,x:u.x,y:u.y,options:u.options,mutex:u.mutex};if(Array.isArray(f)){var p=0;for(p=0;p<f.length;p+=1)Array.isArray(f[p])&&f[p].length===3?h.push([o(Object.assign({},A,{text:f[p][0]})).text,f[p][1],f[p][2]]):h.push(o(Object.assign({},A,{text:f[p]})).text);u.text=h}else u.text=o(Object.assign({},A,{text:f})).text}])}(zn),function(t){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(r){return e.call(this),this.internal.vFS[r]!==void 0},t.addFileToVFS=function(r,n){return e.call(this),this.internal.vFS[r]=n,this},t.getFileFromVFS=function(r){return e.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}}(zn.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(n){var o,u,f,h,A,p,g,y=e,_=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],b=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],C={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},T={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},B=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],L=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),P=!1,I=0;this.__bidiEngine__={};var O=function(q){var X=q.charCodeAt(),Y=X>>8,te=T[Y];return te!==void 0?y[256*te+(255&X)]:Y===252||Y===253?"AL":L.test(Y)?"L":Y===8?"R":"N"},U=function(q){for(var X,Y=0;Y<q.length;Y++){if((X=O(q.charAt(Y)))==="L")return!1;if(X==="R")return!0}return!1},N=function(q,X,Y,te){var K,ce,ae,le,pe=X[te];switch(pe){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":P=!1;break;case"N":case"AN":break;case"EN":P&&(pe="AN");break;case"AL":P=!0,pe="R";break;case"WS":case"BN":pe="N";break;case"CS":te<1||te+1>=X.length||(K=Y[te-1])!=="EN"&&K!=="AN"||(ce=X[te+1])!=="EN"&&ce!=="AN"?pe="N":P&&(ce="AN"),pe=ce===K?ce:"N";break;case"ES":pe=(K=te>0?Y[te-1]:"B")==="EN"&&te+1<X.length&&X[te+1]==="EN"?"EN":"N";break;case"ET":if(te>0&&Y[te-1]==="EN"){pe="EN";break}if(P){pe="N";break}for(ae=te+1,le=X.length;ae<le&&X[ae]==="ET";)ae++;pe=ae<le&&X[ae]==="EN"?"EN":"N";break;case"NSM":if(f&&!h){for(le=X.length,ae=te+1;ae<le&&X[ae]==="NSM";)ae++;if(ae<le){var ie=q[te],he=ie>=1425&&ie<=2303||ie===64286;if(K=X[ae],he&&(K==="R"||K==="AL")){pe="R";break}}}pe=te<1||(K=X[te-1])==="B"?"N":Y[te-1];break;case"B":P=!1,o=!0,pe=I;break;case"S":u=!0,pe="N"}return pe},H=function(q,X,Y){var te=q.split("");return Y&&z(te,Y,{hiLevel:I}),te.reverse(),X&&X.reverse(),te.join("")},z=function(q,X,Y){var te,K,ce,ae,le,pe=-1,ie=q.length,he=0,re=[],oe=I?b:_,ye=[];for(P=!1,o=!1,u=!1,K=0;K<ie;K++)ye[K]=O(q[K]);for(ce=0;ce<ie;ce++){if(le=he,re[ce]=N(q,ye,re,ce),te=240&(he=oe[le][C[re[ce]]]),he&=15,X[ce]=ae=oe[he][5],te>0)if(te===16){for(K=pe;K<ce;K++)X[K]=1;pe=-1}else pe=-1;if(oe[he][6])pe===-1&&(pe=ce);else if(pe>-1){for(K=pe;K<ce;K++)X[K]=ae;pe=-1}ye[ce]==="B"&&(X[ce]=0),Y.hiLevel|=ae}u&&function(_e,Ce,ne){for(var xe=0;xe<ne;xe++)if(_e[xe]==="S"){Ce[xe]=I;for(var De=xe-1;De>=0&&_e[De]==="WS";De--)Ce[De]=I}}(ye,X,ie)},G=function(q,X,Y,te,K){if(!(K.hiLevel<q)){if(q===1&&I===1&&!o)return X.reverse(),void(Y&&Y.reverse());for(var ce,ae,le,pe,ie=X.length,he=0;he<ie;){if(te[he]>=q){for(le=he+1;le<ie&&te[le]>=q;)le++;for(pe=he,ae=le-1;pe<ae;pe++,ae--)ce=X[pe],X[pe]=X[ae],X[ae]=ce,Y&&(ce=Y[pe],Y[pe]=Y[ae],Y[ae]=ce);he=le}he++}}},j=function(q,X,Y){var te=q.split(""),K={hiLevel:I};return Y||(Y=[]),z(te,Y,K),function(ce,ae,le){if(le.hiLevel!==0&&g)for(var pe,ie=0;ie<ce.length;ie++)ae[ie]===1&&(pe=B.indexOf(ce[ie]))>=0&&(ce[ie]=B[pe+1])}(te,Y,K),G(2,te,X,Y,K),G(1,te,X,Y,K),te.join("")};return this.__bidiEngine__.doBidiReorder=function(q,X,Y){if(function(K,ce){if(ce)for(var ae=0;ae<K.length;ae++)ce[ae]=ae;h===void 0&&(h=U(K)),p===void 0&&(p=U(K))}(q,X),f||!A||p)if(f&&A&&h^p)I=h?1:0,q=H(q,X,Y);else if(!f&&A&&p)I=h?1:0,q=j(q,X,Y),q=H(q,X);else if(!f||h||A||p){if(f&&!A&&h^p)q=H(q,X),h?(I=0,q=j(q,X,Y)):(I=1,q=j(q,X,Y),q=H(q,X));else if(f&&h&&!A&&p)I=1,q=j(q,X,Y),q=H(q,X);else if(!f&&!A&&h^p){var te=g;h?(I=1,q=j(q,X,Y),I=0,g=!1,q=j(q,X,Y),g=te):(I=0,q=j(q,X,Y),q=H(q,X),I=1,g=!1,q=j(q,X,Y),g=te,q=H(q,X))}}else I=0,q=j(q,X,Y);else I=h?1:0,q=j(q,X,Y);return q},this.__bidiEngine__.setOptions=function(q){q&&(f=q.isInputVisual,A=q.isOutputVisual,h=q.isInputRtl,p=q.isOutputRtl,g=q.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(n){var o=n.text;n.x,n.y;var u=n.options||{};n.mutex,u.lang;var f=[];if(u.isInputVisual=typeof u.isInputVisual!="boolean"||u.isInputVisual,r.setOptions(u),Object.prototype.toString.call(o)==="[object Array]"){var h=0;for(f=[],h=0;h<o.length;h+=1)Object.prototype.toString.call(o[h])==="[object Array]"?f.push([r.doBidiReorder(o[h][0]),o[h][1],o[h][2]]):f.push([r.doBidiReorder(o[h])]);n.text=f}else n.text=r.doBidiReorder(o);r.setOptions({isInputVisual:!0})}])}(zn),zn.API.TTFFont=function(){function t(e){var r;if(this.rawData=e,r=this.contents=new wy(e),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new V_t(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new B_t(this.contents),this.head=new L_t(this),this.name=new O_t(this),this.cmap=new bRe(this),this.toUnicode={},this.hhea=new M_t(this),this.maxp=new k_t(this),this.hmtx=new F_t(this),this.post=new R_t(this),this.os2=new D_t(this),this.loca=new Q_t(this),this.glyf=new N_t(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var e,r,n,o,u;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var f,h,A,p;for(p=[],f=0,h=(A=this.bbox).length;f<h;f++)e=A[f],p.push(Math.round(e*this.scaleFactor));return p}).call(this),this.stemV=0,this.post.exists?(n=255&(o=this.post.italic_angle),32768&(r=o>>16)&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(u=this.familyClass)===1||u===2||u===3||u===4||u===5||u===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(e){var r;return((r=this.cmap.unicode)!=null?r.codeMap[e]:void 0)||0},t.prototype.widthOfGlyph=function(e){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*r},t.prototype.widthOfString=function(e,r,n){var o,u,f,h;for(f=0,u=0,h=(e=""+e).length;0<=h?u<h:u>h;u=0<=h?++u:--u)o=e.charCodeAt(u),f+=this.widthOfGlyph(this.characterToGlyph(o))+n*(1e3/r)||0;return f*(r/1e3)},t.prototype.lineHeight=function(e,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},t}();var KA,wy=function(){function t(e){this.data=e??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(e){return this.data[this.pos++]=e},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},t.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},t.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},t.prototype.readString=function(e){var r,n;for(n=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(e){var r,n,o;for(o=[],r=0,n=e.length;0<=n?r<n:r>n;r=0<=n?++r:--r)o.push(this.writeByte(e.charCodeAt(r)));return o},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(e){return this.writeInt16(e)},t.prototype.readLongLong=function(){var e,r,n,o,u,f,h,A;return e=this.readByte(),r=this.readByte(),n=this.readByte(),o=this.readByte(),u=this.readByte(),f=this.readByte(),h=this.readByte(),A=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^o)+16777216*(255^u)+65536*(255^f)+256*(255^h)+(255^A)+1):72057594037927940*e+281474976710656*r+1099511627776*n+4294967296*o+16777216*u+65536*f+256*h+A},t.prototype.writeLongLong=function(e){var r,n;return r=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(e){return this.writeInt32(e)},t.prototype.read=function(e){var r,n;for(r=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)r.push(this.readByte());return r},t.prototype.write=function(e){var r,n,o,u;for(u=[],n=0,o=e.length;n<o;n++)r=e[n],u.push(this.writeByte(r));return u},t}(),B_t=function(){var t;function e(r){var n,o,u;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},o=0,u=this.tableCount;0<=u?o<u:o>u;o=0<=u?++o:--o)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return e.prototype.encode=function(r){var n,o,u,f,h,A,p,g,y,_,b,C,T;for(T in b=Object.keys(r).length,A=Math.log(2),y=16*Math.floor(Math.log(b)/A),f=Math.floor(y/A),g=16*b-y,(o=new wy).writeInt(this.scalarType),o.writeShort(b),o.writeShort(y),o.writeShort(f),o.writeShort(g),u=16*b,p=o.pos+u,h=null,C=[],r)for(_=r[T],o.writeString(T),o.writeInt(t(_)),o.writeInt(p),o.writeInt(_.length),C=C.concat(_),T==="head"&&(h=p),p+=_.length;p%4;)C.push(0),p++;return o.write(C),n=2981146554-t(o.data),o.pos=h+8,o.writeUInt32(n),o.data},t=function(r){var n,o,u,f;for(r=_Re.call(r);r.length%4;)r.push(0);for(u=new wy(r),o=0,n=0,f=r.length;n<f;n=n+=4)o+=u.readUInt32();return 4294967295&o},e}(),I_t={}.hasOwnProperty,sp=function(t,e){for(var r in e)I_t.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};KA=function(){function t(e){var r;this.file=e,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var L_t=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return sp(t,KA),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var r;return(r=new wy).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(e),r.writeShort(this.glyphDataFormat),r.data},t}(),I1e=function(){function t(e,r){var n,o,u,f,h,A,p,g,y,_,b,C,T,B,L,P,I;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=r+e.readInt(),y=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(A=0;A<256;++A)this.codeMap[A]=e.readByte();break;case 4:for(b=e.readUInt16(),_=b/2,e.pos+=6,u=function(){var O,U;for(U=[],A=O=0;0<=_?O<_:O>_;A=0<=_?++O:--O)U.push(e.readUInt16());return U}(),e.pos+=2,T=function(){var O,U;for(U=[],A=O=0;0<=_?O<_:O>_;A=0<=_?++O:--O)U.push(e.readUInt16());return U}(),p=function(){var O,U;for(U=[],A=O=0;0<=_?O<_:O>_;A=0<=_?++O:--O)U.push(e.readUInt16());return U}(),g=function(){var O,U;for(U=[],A=O=0;0<=_?O<_:O>_;A=0<=_?++O:--O)U.push(e.readUInt16());return U}(),o=(this.length-e.pos+this.offset)/2,h=function(){var O,U;for(U=[],A=O=0;0<=o?O<o:O>o;A=0<=o?++O:--O)U.push(e.readUInt16());return U}(),A=L=0,I=u.length;L<I;A=++L)for(B=u[A],n=P=C=T[A];C<=B?P<=B:P>=B;n=C<=B?++P:--P)g[A]===0?f=n+p[A]:(f=h[g[A]/2+(n-C)-(_-A)]||0)!==0&&(f+=p[A]),this.codeMap[n]=65535&f}e.pos=y}return t.encode=function(e,r){var n,o,u,f,h,A,p,g,y,_,b,C,T,B,L,P,I,O,U,N,H,z,G,j,q,X,Y,te,K,ce,ae,le,pe,ie,he,re,oe,ye,_e,Ce,ne,xe,De,ze,Ye,Ne;switch(te=new wy,f=Object.keys(e).sort(function(yt,Ue){return yt-Ue}),r){case"macroman":for(T=0,B=function(){var yt=[];for(C=0;C<256;++C)yt.push(0);return yt}(),P={0:0},u={},K=0,pe=f.length;K<pe;K++)P[De=e[o=f[K]]]==null&&(P[De]=++T),u[o]={old:e[o],new:P[e[o]]},B[o]=P[e[o]];return te.writeUInt16(1),te.writeUInt16(0),te.writeUInt32(12),te.writeUInt16(0),te.writeUInt16(262),te.writeUInt16(0),te.write(B),{charMap:u,subtable:te.data,maxGlyphID:T+1};case"unicode":for(X=[],y=[],I=0,P={},n={},L=p=null,ce=0,ie=f.length;ce<ie;ce++)P[U=e[o=f[ce]]]==null&&(P[U]=++I),n[o]={old:U,new:P[U]},h=P[U]-o,L!=null&&h===p||(L&&y.push(L),X.push(o),p=h),L=o;for(L&&y.push(L),y.push(65535),X.push(65535),j=2*(G=X.length),z=2*Math.pow(Math.log(G)/Math.LN2,2),_=Math.log(z/2)/Math.LN2,H=2*G-z,A=[],N=[],b=[],C=ae=0,he=X.length;ae<he;C=++ae){if(q=X[C],g=y[C],q===65535){A.push(0),N.push(0);break}if(q-(Y=n[q].new)>=32768)for(A.push(0),N.push(2*(b.length+G-C)),o=le=q;q<=g?le<=g:le>=g;o=q<=g?++le:--le)b.push(n[o].new);else A.push(Y-q),N.push(0)}for(te.writeUInt16(3),te.writeUInt16(1),te.writeUInt32(12),te.writeUInt16(4),te.writeUInt16(16+8*G+2*b.length),te.writeUInt16(0),te.writeUInt16(j),te.writeUInt16(z),te.writeUInt16(_),te.writeUInt16(H),ne=0,re=y.length;ne<re;ne++)o=y[ne],te.writeUInt16(o);for(te.writeUInt16(0),xe=0,oe=X.length;xe<oe;xe++)o=X[xe],te.writeUInt16(o);for(ze=0,ye=A.length;ze<ye;ze++)h=A[ze],te.writeUInt16(h);for(Ye=0,_e=N.length;Ye<_e;Ye++)O=N[Ye],te.writeUInt16(O);for(Ne=0,Ce=b.length;Ne<Ce;Ne++)T=b[Ne],te.writeUInt16(T);return{charMap:n,subtable:te.data,maxGlyphID:I+1}}},t}(),bRe=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return sp(t,KA),t.prototype.tag="cmap",t.prototype.parse=function(e){var r,n,o;for(e.pos=this.offset,this.version=e.readUInt16(),o=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=o?n<o:n>o;n=0<=o?++n:--n)r=new I1e(e,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},t.encode=function(e,r){var n,o;return r==null&&(r="macroman"),n=I1e.encode(e,r),(o=new wy).writeUInt16(0),o.writeUInt16(1),n.table=o.data.concat(n.subtable),n},t}(),M_t=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return sp(t,KA),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t}(),D_t=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return sp(t,KA),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var r,n;for(n=[],r=0;r<10;++r)n.push(e.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t}(),R_t=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return sp(t,KA),t.prototype.tag="post",t.prototype.parse=function(e){var r,n,o;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var u;for(n=e.readUInt16(),this.glyphNameIndex=[],u=0;0<=n?u<n:u>n;u=0<=n?++u:--u)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],o=[];e.pos<this.offset+this.length;)r=e.readByte(),o.push(this.names.push(e.readString(r)));return o;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=(function(){var f,h,A;for(A=[],u=f=0,h=this.file.maxp.numGlyphs;0<=h?f<h:f>h;u=0<=h?++f:--f)A.push(e.readUInt32());return A}).call(this)}},t}(),P_t=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},O_t=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return sp(t,KA),t.prototype.tag="name",t.prototype.parse=function(e){var r,n,o,u,f,h,A,p,g,y,_;for(e.pos=this.offset,e.readShort(),r=e.readShort(),h=e.readShort(),n=[],u=0;0<=r?u<r:u>r;u=0<=r?++u:--u)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+h+e.readShort()});for(A={},u=g=0,y=n.length;g<y;u=++g)o=n[u],e.pos=o.offset,p=e.readString(o.length),f=new P_t(p,o),A[_=o.nameID]==null&&(A[_]=[]),A[o.nameID].push(f);this.strings=A,this.copyright=A[0],this.fontFamily=A[1],this.fontSubfamily=A[2],this.uniqueSubfamily=A[3],this.fontName=A[4],this.version=A[5];try{this.postscriptName=A[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=A[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=A[7],this.manufacturer=A[8],this.designer=A[9],this.description=A[10],this.vendorUrl=A[11],this.designerUrl=A[12],this.license=A[13],this.licenseUrl=A[14],this.preferredFamily=A[15],this.preferredSubfamily=A[17],this.compatibleFull=A[18],this.sampleText=A[19]},t}(),k_t=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return sp(t,KA),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t}(),F_t=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return sp(t,KA),t.prototype.tag="hmtx",t.prototype.parse=function(e){var r,n,o,u,f,h,A;for(e.pos=this.offset,this.metrics=[],r=0,h=this.file.hhea.numberOfMetrics;0<=h?r<h:r>h;r=0<=h?++r:--r)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(o=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var p,g;for(g=[],r=p=0;0<=o?p<o:p>o;r=0<=o?++p:--p)g.push(e.readInt16());return g}(),this.widths=(function(){var p,g,y,_;for(_=[],p=0,g=(y=this.metrics).length;p<g;p++)u=y[p],_.push(u.advance);return _}).call(this),n=this.widths[this.widths.length-1],A=[],r=f=0;0<=o?f<o:f>o;r=0<=o?++f:--f)A.push(this.widths.push(n));return A},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t}(),_Re=[].slice,N_t=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return sp(t,KA),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var r,n,o,u,f,h,A,p,g,y;return e in this.cache?this.cache[e]:(u=this.file.loca,r=this.file.contents,n=u.indexOf(e),(o=u.lengthOf(e))===0?this.cache[e]=null:(r.pos=this.offset+n,f=(h=new wy(r.read(o))).readShort(),p=h.readShort(),y=h.readShort(),A=h.readShort(),g=h.readShort(),this.cache[e]=f===-1?new H_t(h,p,y,A,g):new U_t(h,f,p,y,A,g),this.cache[e]))},t.prototype.encode=function(e,r,n){var o,u,f,h,A;for(f=[],u=[],h=0,A=r.length;h<A;h++)o=e[r[h]],u.push(f.length),o&&(f=f.concat(o.encode(n)));return u.push(f.length),{table:f,offsets:u}},t}(),U_t=function(){function t(e,r,n,o,u,f){this.raw=e,this.numberOfContours=r,this.xMin=n,this.yMin=o,this.xMax=u,this.yMax=f,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),H_t=function(){function t(e,r,n,o,u){var f,h;for(this.raw=e,this.xMin=r,this.yMin=n,this.xMax=o,this.yMax=u,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],f=this.raw;h=f.readShort(),this.glyphOffsets.push(f.pos),this.glyphIDs.push(f.readUInt16()),32&h;)f.pos+=1&h?4:2,128&h?f.pos+=8:64&h?f.pos+=4:8&h&&(f.pos+=2)}return t.prototype.encode=function(){var e,r,n;for(r=new wy(_Re.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)r.pos=this.glyphOffsets[e];return r.data},t}(),Q_t=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return sp(t,KA),t.prototype.tag="loca",t.prototype.parse=function(e){var r,n;return e.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var o,u;for(u=[],n=0,o=this.length;n<o;n+=2)u.push(2*e.readUInt16());return u}).call(this):(function(){var o,u;for(u=[],n=0,o=this.length;n<o;n+=4)u.push(e.readUInt32());return u}).call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,r){for(var n=new Uint32Array(this.offsets.length),o=0,u=0,f=0;f<n.length;++f)if(n[f]=o,u<r.length&&r[u]==f){++u,n[f]=o;var h=this.offsets[f],A=this.offsets[f+1]-h;A>0&&(o+=A)}for(var p=new Array(4*n.length),g=0;g<n.length;++g)p[4*g+3]=255&n[g],p[4*g+2]=(65280&n[g])>>8,p[4*g+1]=(16711680&n[g])>>16,p[4*g]=(4278190080&n[g])>>24;return p},t}(),V_t=function(){function t(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var e,r,n,o,u;for(r in o=this.font.cmap.tables[0].codeMap,e={},u=this.subset)n=u[r],e[r]=o[n];return e},t.prototype.glyphsFor=function(e){var r,n,o,u,f,h,A;for(o={},f=0,h=e.length;f<h;f++)o[u=e[f]]=this.font.glyf.glyphFor(u);for(u in r=[],o)(n=o[u])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(u in A=this.glyphsFor(r))n=A[u],o[u]=n;return o},t.prototype.encode=function(e,r){var n,o,u,f,h,A,p,g,y,_,b,C,T,B,L;for(o in n=bRe.encode(this.generateCmap(),"unicode"),f=this.glyphsFor(e),b={0:0},L=n.charMap)b[(A=L[o]).old]=A.new;for(C in _=n.maxGlyphID,f)C in b||(b[C]=_++);return g=function(P){var I,O;for(I in O={},P)O[P[I]]=I;return O}(b),y=Object.keys(g).sort(function(P,I){return P-I}),T=function(){var P,I,O;for(O=[],P=0,I=y.length;P<I;P++)h=y[P],O.push(g[h]);return O}(),u=this.font.glyf.encode(f,T,b),p=this.font.loca.encode(u.offsets,T),B={cmap:this.font.cmap.raw(),glyf:u.table,loca:p,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(B["OS/2"]=this.font.os2.raw()),this.font.directory.encode(B)},t}();zn.API.PDFObject=function(){var t;function e(){}return t=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},e.convert=function(r){var n,o,u,f;if(Array.isArray(r))return"["+function(){var h,A,p;for(p=[],h=0,A=r.length;h<A;h++)n=r[h],p.push(e.convert(n));return p}().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r?.isString)return"("+r+")";if(r instanceof Date)return"(D:"+t(r.getUTCFullYear(),4)+t(r.getUTCMonth(),2)+t(r.getUTCDate(),2)+t(r.getUTCHours(),2)+t(r.getUTCMinutes(),2)+t(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(o in u=["<<"],r)f=r[o],u.push("/"+o+" "+e.convert(f));return u.push(">>"),u.join(`
`)}return""+r},e}();/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var R$=function(t,e){return R$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},R$(t,e)};function YA(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");R$(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var P$=function(){return P$=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(e[u]=r[u])}return e},P$.apply(this,arguments)};function af(t,e,r,n){function o(u){return u instanceof r?u:new r(function(f){f(u)})}return new(r||(r=Promise))(function(u,f){function h(g){try{p(n.next(g))}catch(y){f(y)}}function A(g){try{p(n.throw(g))}catch(y){f(y)}}function p(g){g.done?u(g.value):o(g.value).then(h,A)}p((n=n.apply(t,[])).next())})}function Bc(t,e){var r={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,o,u,f;return f={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function h(p){return function(g){return A([p,g])}}function A(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(u=p[0]&2?o.return:p[0]?o.throw||((u=o.return)&&u.call(o),0):o.next)&&!(u=u.call(o,p[1])).done)return u;switch(o=0,u&&(p=[p[0]&2,u.value]),p[0]){case 0:case 1:u=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,o=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(u=r.trys,!(u=u.length>0&&u[u.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!u||p[1]>u[0]&&p[1]<u[3])){r.label=p[1];break}if(p[0]===6&&r.label<u[1]){r.label=u[1],u=p;break}if(u&&r.label<u[2]){r.label=u[2],r.ops.push(p);break}u[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(g){p=[6,g],o=0}finally{n=u=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}function aD(t,e,r){if(arguments.length===2)for(var n=0,o=e.length,u;n<o;n++)(u||!(n in e))&&(u||(u=Array.prototype.slice.call(e,0,n)),u[n]=e[n]);return t.concat(u||e)}var _g=function(){function t(e,r,n,o){this.left=e,this.top=r,this.width=n,this.height=o}return t.prototype.add=function(e,r,n,o){return new t(this.left+e,this.top+r,this.width+n,this.height+o)},t.fromClientRect=function(e,r){return new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height)},t.fromDOMRectList=function(e,r){var n=Array.from(r).find(function(o){return o.width!==0});return n?new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),Ak=function(t,e){return _g.fromClientRect(t,e.getBoundingClientRect())},z_t=function(t){var e=t.body,r=t.documentElement;if(!e||!r)throw new Error("Unable to get document size");var n=Math.max(Math.max(e.scrollWidth,r.scrollWidth),Math.max(e.offsetWidth,r.offsetWidth),Math.max(e.clientWidth,r.clientWidth)),o=Math.max(Math.max(e.scrollHeight,r.scrollHeight),Math.max(e.offsetHeight,r.offsetHeight),Math.max(e.clientHeight,r.clientHeight));return new _g(0,0,n,o)},vk=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var u=t.charCodeAt(r++);(u&64512)===56320?e.push(((o&1023)<<10)+(u&1023)+65536):(e.push(o),r--)}else e.push(o)}return e},fl=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";for(var n=[],o=-1,u="";++o<r;){var f=t[o];f<=65535?n.push(f):(f-=65536,n.push((f>>10)+55296,f%1024+56320)),(o+1===r||n.length>16384)&&(u+=String.fromCharCode.apply(String,n),n.length=0)}return u},L1e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G_t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var oD=0;oD<L1e.length;oD++)G_t[L1e.charCodeAt(oD)]=oD;var M1e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cE=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var sD=0;sD<M1e.length;sD++)cE[M1e.charCodeAt(sD)]=sD;var j_t=function(t){var e=t.length*.75,r=t.length,n,o=0,u,f,h,A;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var p=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),g=Array.isArray(p)?p:new Uint8Array(p);for(n=0;n<r;n+=4)u=cE[t.charCodeAt(n)],f=cE[t.charCodeAt(n+1)],h=cE[t.charCodeAt(n+2)],A=cE[t.charCodeAt(n+3)],g[o++]=u<<2|f>>4,g[o++]=(f&15)<<4|h>>2,g[o++]=(h&3)<<6|A&63;return p},q_t=function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r.push(t[n+1]<<8|t[n]);return r},W_t=function(t){for(var e=t.length,r=[],n=0;n<e;n+=4)r.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return r},U1=5,eZ=11,Q9=2,$_t=eZ-U1,SRe=65536>>U1,K_t=1<<U1,V9=K_t-1,Y_t=1024>>U1,X_t=SRe+Y_t,Z_t=X_t,J_t=32,eSt=Z_t+J_t,tSt=65536>>eZ,rSt=1<<$_t,nSt=rSt-1,D1e=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},iSt=function(t,e,r){return t.slice?t.slice(e,r):new Uint32Array(Array.prototype.slice.call(t,e,r))},aSt=function(t,e){var r=j_t(t),n=Array.isArray(r)?W_t(r):new Uint32Array(r),o=Array.isArray(r)?q_t(r):new Uint16Array(r),u=24,f=D1e(o,u/2,n[4]/2),h=n[5]===2?D1e(o,(u+n[4])/2):iSt(n,Math.ceil((u+n[4])/4));return new oSt(n[0],n[1],n[2],n[3],f,h)},oSt=function(){function t(e,r,n,o,u,f){this.initialValue=e,this.errorValue=r,this.highStart=n,this.highValueIndex=o,this.index=u,this.data=f}return t.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>U1],r=(r<<Q9)+(e&V9),this.data[r];if(e<=65535)return r=this.index[SRe+(e-55296>>U1)],r=(r<<Q9)+(e&V9),this.data[r];if(e<this.highStart)return r=eSt-tSt+(e>>eZ),r=this.index[r],r+=e>>U1&nSt,r=this.index[r],r=(r<<Q9)+(e&V9),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),R1e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sSt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var lD=0;lD<R1e.length;lD++)sSt[R1e.charCodeAt(lD)]=lD;var lSt="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",P1e=50,uSt=1,xRe=2,CRe=3,cSt=4,fSt=5,O1e=7,TRe=8,k1e=9,ey=10,O$=11,F1e=12,k$=13,hSt=14,fE=15,F$=16,uD=17,gT=18,dSt=19,N1e=20,N$=21,mT=22,z9=23,l_=24,bh=25,hE=26,dE=27,u_=28,ASt=29,x1=30,vSt=31,cD=32,fD=33,U$=34,H$=35,Q$=36,b2=37,V$=38,q5=39,W5=40,G9=41,ERe=42,pSt=43,gSt=[9001,65288],BRe="!",ca="×",hD="÷",z$=aSt(lSt),Zp=[x1,Q$],G$=[uSt,xRe,CRe,fSt],IRe=[ey,TRe],U1e=[dE,hE],mSt=G$.concat(IRe),H1e=[V$,q5,W5,U$,H$],ySt=[fE,k$],wSt=function(t,e){e===void 0&&(e="strict");var r=[],n=[],o=[];return t.forEach(function(u,f){var h=z$.get(u);if(h>P1e?(o.push(!0),h-=P1e):o.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(u)!==-1)return n.push(f),r.push(F$);if(h===cSt||h===O$){if(f===0)return n.push(f),r.push(x1);var A=r[f-1];return mSt.indexOf(A)===-1?(n.push(n[f-1]),r.push(A)):(n.push(f),r.push(x1))}if(n.push(f),h===vSt)return r.push(e==="strict"?N$:b2);if(h===ERe||h===ASt)return r.push(x1);if(h===pSt)return u>=131072&&u<=196605||u>=196608&&u<=262141?r.push(b2):r.push(x1);r.push(h)}),[n,r,o]},j9=function(t,e,r,n){var o=n[r];if(Array.isArray(t)?t.indexOf(o)!==-1:t===o)for(var u=r;u<=n.length;){u++;var f=n[u];if(f===e)return!0;if(f!==ey)break}if(o===ey)for(var u=r;u>0;){u--;var h=n[u];if(Array.isArray(t)?t.indexOf(h)!==-1:t===h)for(var A=r;A<=n.length;){A++;var f=n[A];if(f===e)return!0;if(f!==ey)break}if(h!==ey)break}return!1},Q1e=function(t,e){for(var r=t;r>=0;){var n=e[r];if(n===ey)r--;else return n}return 0},bSt=function(t,e,r,n,o){if(r[n]===0)return ca;var u=n-1;if(Array.isArray(o)&&o[u]===!0)return ca;var f=u-1,h=u+1,A=e[u],p=f>=0?e[f]:0,g=e[h];if(A===xRe&&g===CRe)return ca;if(G$.indexOf(A)!==-1)return BRe;if(G$.indexOf(g)!==-1||IRe.indexOf(g)!==-1)return ca;if(Q1e(u,e)===TRe)return hD;if(z$.get(t[u])===O$||(A===cD||A===fD)&&z$.get(t[h])===O$||A===O1e||g===O1e||A===k1e||[ey,k$,fE].indexOf(A)===-1&&g===k1e||[uD,gT,dSt,l_,u_].indexOf(g)!==-1||Q1e(u,e)===mT||j9(z9,mT,u,e)||j9([uD,gT],N$,u,e)||j9(F1e,F1e,u,e))return ca;if(A===ey)return hD;if(A===z9||g===z9)return ca;if(g===F$||A===F$)return hD;if([k$,fE,N$].indexOf(g)!==-1||A===hSt||p===Q$&&ySt.indexOf(A)!==-1||A===u_&&g===Q$||g===N1e||Zp.indexOf(g)!==-1&&A===bh||Zp.indexOf(A)!==-1&&g===bh||A===dE&&[b2,cD,fD].indexOf(g)!==-1||[b2,cD,fD].indexOf(A)!==-1&&g===hE||Zp.indexOf(A)!==-1&&U1e.indexOf(g)!==-1||U1e.indexOf(A)!==-1&&Zp.indexOf(g)!==-1||[dE,hE].indexOf(A)!==-1&&(g===bh||[mT,fE].indexOf(g)!==-1&&e[h+1]===bh)||[mT,fE].indexOf(A)!==-1&&g===bh||A===bh&&[bh,u_,l_].indexOf(g)!==-1)return ca;if([bh,u_,l_,uD,gT].indexOf(g)!==-1)for(var y=u;y>=0;){var _=e[y];if(_===bh)return ca;if([u_,l_].indexOf(_)!==-1)y--;else break}if([dE,hE].indexOf(g)!==-1)for(var y=[uD,gT].indexOf(A)!==-1?f:u;y>=0;){var _=e[y];if(_===bh)return ca;if([u_,l_].indexOf(_)!==-1)y--;else break}if(V$===A&&[V$,q5,U$,H$].indexOf(g)!==-1||[q5,U$].indexOf(A)!==-1&&[q5,W5].indexOf(g)!==-1||[W5,H$].indexOf(A)!==-1&&g===W5||H1e.indexOf(A)!==-1&&[N1e,hE].indexOf(g)!==-1||H1e.indexOf(g)!==-1&&A===dE||Zp.indexOf(A)!==-1&&Zp.indexOf(g)!==-1||A===l_&&Zp.indexOf(g)!==-1||Zp.concat(bh).indexOf(A)!==-1&&g===mT&&gSt.indexOf(t[h])===-1||Zp.concat(bh).indexOf(g)!==-1&&A===gT)return ca;if(A===G9&&g===G9){for(var b=r[u],C=1;b>0&&(b--,e[b]===G9);)C++;if(C%2!==0)return ca}return A===cD&&g===fD?ca:hD},_St=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=wSt(t,e.lineBreak),n=r[0],o=r[1],u=r[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(o=o.map(function(h){return[bh,x1,ERe].indexOf(h)!==-1?b2:h}));var f=e.wordBreak==="keep-all"?u.map(function(h,A){return h&&t[A]>=19968&&t[A]<=40959}):void 0;return[n,o,f]},SSt=function(){function t(e,r,n,o){this.codePoints=e,this.required=r===BRe,this.start=n,this.end=o}return t.prototype.slice=function(){return fl.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),xSt=function(t,e){var r=vk(t),n=_St(r,e),o=n[0],u=n[1],f=n[2],h=r.length,A=0,p=0;return{next:function(){if(p>=h)return{done:!0,value:null};for(var g=ca;p<h&&(g=bSt(r,u,o,++p,f))===ca;);if(g!==ca||p===h){var y=new SSt(r,g,A,p);return A=p,{value:y,done:!1}}return{done:!0,value:null}}}},CSt=1,TSt=2,mB=4,V1e=8,CP=10,z1e=47,FE=92,ESt=9,BSt=32,dD=34,yT=61,ISt=35,LSt=36,MSt=37,AD=39,vD=40,wT=41,DSt=95,Uf=45,RSt=33,PSt=60,OSt=62,kSt=64,FSt=91,NSt=93,USt=61,HSt=123,pD=63,QSt=125,G1e=124,VSt=126,zSt=128,j1e=65533,q9=42,B1=43,GSt=44,jSt=58,qSt=59,_2=46,WSt=0,$St=8,KSt=11,YSt=14,XSt=31,ZSt=127,Pv=-1,LRe=48,MRe=97,DRe=101,JSt=102,ext=117,txt=122,RRe=65,PRe=69,ORe=70,rxt=85,nxt=90,Mc=function(t){return t>=LRe&&t<=57},ixt=function(t){return t>=55296&&t<=57343},c_=function(t){return Mc(t)||t>=RRe&&t<=ORe||t>=MRe&&t<=JSt},axt=function(t){return t>=MRe&&t<=txt},oxt=function(t){return t>=RRe&&t<=nxt},sxt=function(t){return axt(t)||oxt(t)},lxt=function(t){return t>=zSt},gD=function(t){return t===CP||t===ESt||t===BSt},TP=function(t){return sxt(t)||lxt(t)||t===DSt},q1e=function(t){return TP(t)||Mc(t)||t===Uf},uxt=function(t){return t>=WSt&&t<=$St||t===KSt||t>=YSt&&t<=XSt||t===ZSt},Wm=function(t,e){return t!==FE?!1:e!==CP},mD=function(t,e,r){return t===Uf?TP(e)||Wm(e,r):TP(t)?!0:!!(t===FE&&Wm(t,e))},W9=function(t,e,r){return t===B1||t===Uf?Mc(e)?!0:e===_2&&Mc(r):Mc(t===_2?e:t)},cxt=function(t){var e=0,r=1;(t[e]===B1||t[e]===Uf)&&(t[e]===Uf&&(r=-1),e++);for(var n=[];Mc(t[e]);)n.push(t[e++]);var o=n.length?parseInt(fl.apply(void 0,n),10):0;t[e]===_2&&e++;for(var u=[];Mc(t[e]);)u.push(t[e++]);var f=u.length,h=f?parseInt(fl.apply(void 0,u),10):0;(t[e]===PRe||t[e]===DRe)&&e++;var A=1;(t[e]===B1||t[e]===Uf)&&(t[e]===Uf&&(A=-1),e++);for(var p=[];Mc(t[e]);)p.push(t[e++]);var g=p.length?parseInt(fl.apply(void 0,p),10):0;return r*(o+h*Math.pow(10,-f))*Math.pow(10,A*g)},fxt={type:2},hxt={type:3},dxt={type:4},Axt={type:13},vxt={type:8},pxt={type:21},gxt={type:9},mxt={type:10},yxt={type:11},wxt={type:12},bxt={type:14},yD={type:23},_xt={type:1},Sxt={type:25},xxt={type:24},Cxt={type:26},Txt={type:27},Ext={type:28},Bxt={type:29},Ixt={type:31},j$={type:32},kRe=function(){function t(){this._value=[]}return t.prototype.write=function(e){this._value=this._value.concat(vk(e))},t.prototype.read=function(){for(var e=[],r=this.consumeToken();r!==j$;)e.push(r),r=this.consumeToken();return e},t.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case dD:return this.consumeStringToken(dD);case ISt:var r=this.peekCodePoint(0),n=this.peekCodePoint(1),o=this.peekCodePoint(2);if(q1e(r)||Wm(n,o)){var u=mD(r,n,o)?TSt:CSt,f=this.consumeName();return{type:5,value:f,flags:u}}break;case LSt:if(this.peekCodePoint(0)===yT)return this.consumeCodePoint(),Axt;break;case AD:return this.consumeStringToken(AD);case vD:return fxt;case wT:return hxt;case q9:if(this.peekCodePoint(0)===yT)return this.consumeCodePoint(),bxt;break;case B1:if(W9(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case GSt:return dxt;case Uf:var h=e,A=this.peekCodePoint(0),p=this.peekCodePoint(1);if(W9(h,A,p))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(mD(h,A,p))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(A===Uf&&p===OSt)return this.consumeCodePoint(),this.consumeCodePoint(),xxt;break;case _2:if(W9(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case z1e:if(this.peekCodePoint(0)===q9)for(this.consumeCodePoint();;){var g=this.consumeCodePoint();if(g===q9&&(g=this.consumeCodePoint(),g===z1e))return this.consumeToken();if(g===Pv)return this.consumeToken()}break;case jSt:return Cxt;case qSt:return Txt;case PSt:if(this.peekCodePoint(0)===RSt&&this.peekCodePoint(1)===Uf&&this.peekCodePoint(2)===Uf)return this.consumeCodePoint(),this.consumeCodePoint(),Sxt;break;case kSt:var y=this.peekCodePoint(0),_=this.peekCodePoint(1),b=this.peekCodePoint(2);if(mD(y,_,b)){var f=this.consumeName();return{type:7,value:f}}break;case FSt:return Ext;case FE:if(Wm(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case NSt:return Bxt;case USt:if(this.peekCodePoint(0)===yT)return this.consumeCodePoint(),vxt;break;case HSt:return yxt;case QSt:return wxt;case ext:case rxt:var C=this.peekCodePoint(0),T=this.peekCodePoint(1);return C===B1&&(c_(T)||T===pD)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case G1e:if(this.peekCodePoint(0)===yT)return this.consumeCodePoint(),gxt;if(this.peekCodePoint(0)===G1e)return this.consumeCodePoint(),pxt;break;case VSt:if(this.peekCodePoint(0)===yT)return this.consumeCodePoint(),mxt;break;case Pv:return j$}return gD(e)?(this.consumeWhiteSpace(),Ixt):Mc(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):TP(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:fl(e)}},t.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},t.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},t.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},t.prototype.consumeUnicodeRangeToken=function(){for(var e=[],r=this.consumeCodePoint();c_(r)&&e.length<6;)e.push(r),r=this.consumeCodePoint();for(var n=!1;r===pD&&e.length<6;)e.push(r),r=this.consumeCodePoint(),n=!0;if(n){var o=parseInt(fl.apply(void 0,e.map(function(A){return A===pD?LRe:A})),16),u=parseInt(fl.apply(void 0,e.map(function(A){return A===pD?ORe:A})),16);return{type:30,start:o,end:u}}var f=parseInt(fl.apply(void 0,e),16);if(this.peekCodePoint(0)===Uf&&c_(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var h=[];c_(r)&&h.length<6;)h.push(r),r=this.consumeCodePoint();var u=parseInt(fl.apply(void 0,h),16);return{type:30,start:f,end:u}}else return{type:30,start:f,end:f}},t.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===vD?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===vD?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},t.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pv)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===AD||r===dD){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pv||this.peekCodePoint(0)===wT)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),yD)}for(;;){var o=this.consumeCodePoint();if(o===Pv||o===wT)return{type:22,value:fl.apply(void 0,e)};if(gD(o))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Pv||this.peekCodePoint(0)===wT?(this.consumeCodePoint(),{type:22,value:fl.apply(void 0,e)}):(this.consumeBadUrlRemnants(),yD);if(o===dD||o===AD||o===vD||uxt(o))return this.consumeBadUrlRemnants(),yD;if(o===FE)if(Wm(o,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),yD;else e.push(o)}},t.prototype.consumeWhiteSpace=function(){for(;gD(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===wT||e===Pv)return;Wm(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(e){for(var r=5e4,n="";e>0;){var o=Math.min(r,e);n+=fl.apply(void 0,this._value.splice(0,o)),e-=o}return this._value.shift(),n},t.prototype.consumeStringToken=function(e){var r="",n=0;do{var o=this._value[n];if(o===Pv||o===void 0||o===e)return r+=this.consumeStringSlice(n),{type:0,value:r};if(o===CP)return this._value.splice(0,n),_xt;if(o===FE){var u=this._value[n+1];u!==Pv&&u!==void 0&&(u===CP?(r+=this.consumeStringSlice(n),n=-1,this._value.shift()):Wm(o,u)&&(r+=this.consumeStringSlice(n),r+=fl(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},t.prototype.consumeNumber=function(){var e=[],r=mB,n=this.peekCodePoint(0);for((n===B1||n===Uf)&&e.push(this.consumeCodePoint());Mc(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var o=this.peekCodePoint(1);if(n===_2&&Mc(o))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=V1e;Mc(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),o=this.peekCodePoint(1);var u=this.peekCodePoint(2);if((n===PRe||n===DRe)&&((o===B1||o===Uf)&&Mc(u)||Mc(o)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),r=V1e;Mc(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[cxt(e),r]},t.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),r=e[0],n=e[1],o=this.peekCodePoint(0),u=this.peekCodePoint(1),f=this.peekCodePoint(2);if(mD(o,u,f)){var h=this.consumeName();return{type:15,number:r,flags:n,unit:h}}return o===MSt?(this.consumeCodePoint(),{type:16,number:r,flags:n}):{type:17,number:r,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(c_(e)){for(var r=fl(e);c_(this.peekCodePoint(0))&&r.length<6;)r+=fl(this.consumeCodePoint());gD(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(r,16);return n===0||ixt(n)||n>1114111?j1e:n}return e===Pv?j1e:e},t.prototype.consumeName=function(){for(var e="";;){var r=this.consumeCodePoint();if(q1e(r))e+=fl(r);else if(Wm(r,this.peekCodePoint(0)))e+=fl(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),e}},t}(),FRe=function(){function t(e){this._tokens=e}return t.create=function(e){var r=new kRe;return r.write(e),new t(r.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var r=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var e=[];;){var r=this.consumeComponentValue();if(r.type===32)return e;e.push(r),e.push()}},t.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},t.prototype.consumeSimpleBlock=function(e){for(var r={type:e,values:[]},n=this.consumeToken();;){if(n.type===32||Mxt(n,e))return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(e){for(var r={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?j$:e},t.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},t}(),yB=function(t){return t.type===15},sx=function(t){return t.type===17},Eo=function(t){return t.type===20},Lxt=function(t){return t.type===0},q$=function(t,e){return Eo(t)&&t.value===e},NRe=function(t){return t.type!==31},kS=function(t){return t.type!==31&&t.type!==4},lp=function(t){var e=[],r=[];return t.forEach(function(n){if(n.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(r),r=[];return}n.type!==31&&r.push(n)}),r.length&&e.push(r),e},Mxt=function(t,e){return e===11&&t.type===12||e===28&&t.type===29?!0:e===2&&t.type===3},by=function(t){return t.type===17||t.type===15},kl=function(t){return t.type===16||by(t)},URe=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Ku={type:17,number:0,flags:mB},tZ={type:16,number:50,flags:mB},ty={type:16,number:100,flags:mB},AE=function(t,e,r){var n=t[0],o=t[1];return[jo(n,e),jo(typeof o<"u"?o:n,r)]},jo=function(t,e){if(t.type===16)return t.number/100*e;if(yB(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},HRe="deg",QRe="grad",VRe="rad",zRe="turn",pk={name:"angle",parse:function(t,e){if(e.type===15)switch(e.unit){case HRe:return Math.PI*e.number/180;case QRe:return Math.PI/200*e.number;case VRe:return e.number;case zRe:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},GRe=function(t){return t.type===15&&(t.unit===HRe||t.unit===QRe||t.unit===VRe||t.unit===zRe)},jRe=function(t){var e=t.filter(Eo).map(function(r){return r.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ku,Ku];case"to top":case"bottom":return Pd(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ku,ty];case"to right":case"left":return Pd(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ty,ty];case"to bottom":case"top":return Pd(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ty,Ku];case"to left":case"right":return Pd(270)}return 0},Pd=function(t){return Math.PI*t/180},fy={name:"color",parse:function(t,e){if(e.type===18){var r=Dxt[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return r(t,e.values)}if(e.type===5){if(e.value.length===3){var n=e.value.substring(0,1),o=e.value.substring(1,2),u=e.value.substring(2,3);return ry(parseInt(n+n,16),parseInt(o+o,16),parseInt(u+u,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),o=e.value.substring(1,2),u=e.value.substring(2,3),f=e.value.substring(3,4);return ry(parseInt(n+n,16),parseInt(o+o,16),parseInt(u+u,16),parseInt(f+f,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),o=e.value.substring(2,4),u=e.value.substring(4,6);return ry(parseInt(n,16),parseInt(o,16),parseInt(u,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),o=e.value.substring(2,4),u=e.value.substring(4,6),f=e.value.substring(6,8);return ry(parseInt(n,16),parseInt(o,16),parseInt(u,16),parseInt(f,16)/255)}}if(e.type===20){var h=Ag[e.value.toUpperCase()];if(typeof h<"u")return h}return Ag.TRANSPARENT}},hy=function(t){return(255&t)===0},bu=function(t){var e=255&t,r=255&t>>8,n=255&t>>16,o=255&t>>24;return e<255?"rgba("+o+","+n+","+r+","+e/255+")":"rgb("+o+","+n+","+r+")"},ry=function(t,e,r,n){return(t<<24|e<<16|r<<8|Math.round(n*255)<<0)>>>0},W1e=function(t,e){if(t.type===17)return t.number;if(t.type===16){var r=e===3?1:255;return e===3?t.number/100*r:Math.round(t.number/100*r)}return 0},$1e=function(t,e){var r=e.filter(kS);if(r.length===3){var n=r.map(W1e),o=n[0],u=n[1],f=n[2];return ry(o,u,f,1)}if(r.length===4){var h=r.map(W1e),o=h[0],u=h[1],f=h[2],A=h[3];return ry(o,u,f,A)}return 0};function $9(t,e,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-t)*r*6+t:r<1/2?e:r<2/3?(e-t)*6*(2/3-r)+t:t}var K1e=function(t,e){var r=e.filter(kS),n=r[0],o=r[1],u=r[2],f=r[3],h=(n.type===17?Pd(n.number):pk.parse(t,n))/(Math.PI*2),A=kl(o)?o.number/100:0,p=kl(u)?u.number/100:0,g=typeof f<"u"&&kl(f)?jo(f,1):1;if(A===0)return ry(p*255,p*255,p*255,1);var y=p<=.5?p*(A+1):p+A-p*A,_=p*2-y,b=$9(_,y,h+1/3),C=$9(_,y,h),T=$9(_,y,h-1/3);return ry(b*255,C*255,T*255,g)},Dxt={hsl:K1e,hsla:K1e,rgb:$1e,rgba:$1e},NE=function(t,e){return fy.parse(t,FRe.create(e).parseComponentValue())},Ag={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Rxt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(r){if(Eo(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Pxt={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gk=function(t,e){var r=fy.parse(t,e[0]),n=e[1];return n&&kl(n)?{color:r,stop:n}:{color:r,stop:null}},Y1e=function(t,e){var r=t[0],n=t[t.length-1];r.stop===null&&(r.stop=Ku),n.stop===null&&(n.stop=ty);for(var o=[],u=0,f=0;f<t.length;f++){var h=t[f].stop;if(h!==null){var A=jo(h,e);A>u?o.push(A):o.push(u),u=A}else o.push(null)}for(var p=null,f=0;f<o.length;f++){var g=o[f];if(g===null)p===null&&(p=f);else if(p!==null){for(var y=f-p,_=o[p-1],b=(g-_)/(y+1),C=1;C<=y;C++)o[p+C-1]=b*C;p=null}}return t.map(function(T,B){var L=T.color;return{color:L,stop:Math.max(Math.min(1,o[B]/e),0)}})},Oxt=function(t,e,r){var n=e/2,o=r/2,u=jo(t[0],e)-n,f=o-jo(t[1],r);return(Math.atan2(f,u)+Math.PI*2)%(Math.PI*2)},kxt=function(t,e,r){var n=typeof t=="number"?t:Oxt(t,e,r),o=Math.abs(e*Math.sin(n))+Math.abs(r*Math.cos(n)),u=e/2,f=r/2,h=o/2,A=Math.sin(n-Math.PI/2)*h,p=Math.cos(n-Math.PI/2)*h;return[o,u-p,u+p,f-A,f+A]},CA=function(t,e){return Math.sqrt(t*t+e*e)},X1e=function(t,e,r,n,o){var u=[[0,0],[0,e],[t,0],[t,e]];return u.reduce(function(f,h){var A=h[0],p=h[1],g=CA(r-A,n-p);return(o?g<f.optimumDistance:g>f.optimumDistance)?{optimumCorner:h,optimumDistance:g}:f},{optimumDistance:o?1/0:-1/0,optimumCorner:null}).optimumCorner},Fxt=function(t,e,r,n,o){var u=0,f=0;switch(t.size){case 0:t.shape===0?u=f=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-o)):t.shape===1&&(u=Math.min(Math.abs(e),Math.abs(e-n)),f=Math.min(Math.abs(r),Math.abs(r-o)));break;case 2:if(t.shape===0)u=f=Math.min(CA(e,r),CA(e,r-o),CA(e-n,r),CA(e-n,r-o));else if(t.shape===1){var h=Math.min(Math.abs(r),Math.abs(r-o))/Math.min(Math.abs(e),Math.abs(e-n)),A=X1e(n,o,e,r,!0),p=A[0],g=A[1];u=CA(p-e,(g-r)/h),f=h*u}break;case 1:t.shape===0?u=f=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(r),Math.abs(r-o)):t.shape===1&&(u=Math.max(Math.abs(e),Math.abs(e-n)),f=Math.max(Math.abs(r),Math.abs(r-o)));break;case 3:if(t.shape===0)u=f=Math.max(CA(e,r),CA(e,r-o),CA(e-n,r),CA(e-n,r-o));else if(t.shape===1){var h=Math.max(Math.abs(r),Math.abs(r-o))/Math.max(Math.abs(e),Math.abs(e-n)),y=X1e(n,o,e,r,!1),p=y[0],g=y[1];u=CA(p-e,(g-r)/h),f=h*u}break}return Array.isArray(t.size)&&(u=jo(t.size[0],n),f=t.size.length===2?jo(t.size[1],o):u),[u,f]},Nxt=function(t,e){var r=Pd(180),n=[];return lp(e).forEach(function(o,u){if(u===0){var f=o[0];if(f.type===20&&f.value==="to"){r=jRe(o);return}else if(GRe(f)){r=pk.parse(t,f);return}}var h=gk(t,o);n.push(h)}),{angle:r,stops:n,type:1}},wD=function(t,e){var r=Pd(180),n=[];return lp(e).forEach(function(o,u){if(u===0){var f=o[0];if(f.type===20&&["top","left","right","bottom"].indexOf(f.value)!==-1){r=jRe(o);return}else if(GRe(f)){r=(pk.parse(t,f)+Pd(270))%Pd(360);return}}var h=gk(t,o);n.push(h)}),{angle:r,stops:n,type:1}},Uxt=function(t,e){var r=Pd(180),n=[],o=1,u=0,f=3,h=[];return lp(e).forEach(function(A,p){var g=A[0];if(p===0){if(Eo(g)&&g.value==="linear"){o=1;return}else if(Eo(g)&&g.value==="radial"){o=2;return}}if(g.type===18){if(g.name==="from"){var y=fy.parse(t,g.values[0]);n.push({stop:Ku,color:y})}else if(g.name==="to"){var y=fy.parse(t,g.values[0]);n.push({stop:ty,color:y})}else if(g.name==="color-stop"){var _=g.values.filter(kS);if(_.length===2){var y=fy.parse(t,_[1]),b=_[0];sx(b)&&n.push({stop:{type:16,number:b.number*100,flags:b.flags},color:y})}}}}),o===1?{angle:(r+Pd(180))%Pd(360),stops:n,type:o}:{size:f,shape:u,stops:n,position:h,type:o}},qRe="closest-side",WRe="farthest-side",$Re="closest-corner",KRe="farthest-corner",YRe="circle",XRe="ellipse",ZRe="cover",JRe="contain",Hxt=function(t,e){var r=0,n=3,o=[],u=[];return lp(e).forEach(function(f,h){var A=!0;if(h===0){var p=!1;A=f.reduce(function(y,_){if(p)if(Eo(_))switch(_.value){case"center":return u.push(tZ),y;case"top":case"left":return u.push(Ku),y;case"right":case"bottom":return u.push(ty),y}else(kl(_)||by(_))&&u.push(_);else if(Eo(_))switch(_.value){case YRe:return r=0,!1;case XRe:return r=1,!1;case"at":return p=!0,!1;case qRe:return n=0,!1;case ZRe:case WRe:return n=1,!1;case JRe:case $Re:return n=2,!1;case KRe:return n=3,!1}else if(by(_)||kl(_))return Array.isArray(n)||(n=[]),n.push(_),!1;return y},A)}if(A){var g=gk(t,f);o.push(g)}}),{size:n,shape:r,stops:o,position:u,type:2}},bD=function(t,e){var r=0,n=3,o=[],u=[];return lp(e).forEach(function(f,h){var A=!0;if(h===0?A=f.reduce(function(g,y){if(Eo(y))switch(y.value){case"center":return u.push(tZ),!1;case"top":case"left":return u.push(Ku),!1;case"right":case"bottom":return u.push(ty),!1}else if(kl(y)||by(y))return u.push(y),!1;return g},A):h===1&&(A=f.reduce(function(g,y){if(Eo(y))switch(y.value){case YRe:return r=0,!1;case XRe:return r=1,!1;case JRe:case qRe:return n=0,!1;case WRe:return n=1,!1;case $Re:return n=2,!1;case ZRe:case KRe:return n=3,!1}else if(by(y)||kl(y))return Array.isArray(n)||(n=[]),n.push(y),!1;return g},A)),A){var p=gk(t,f);o.push(p)}}),{size:n,shape:r,stops:o,position:u,type:2}},Qxt=function(t){return t.type===1},Vxt=function(t){return t.type===2},rZ={name:"image",parse:function(t,e){if(e.type===22){var r={url:e.value,type:0};return t.cache.addImage(e.value),r}if(e.type===18){var n=ePe[e.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function zxt(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!ePe[t.name])}var ePe={"linear-gradient":Nxt,"-moz-linear-gradient":wD,"-ms-linear-gradient":wD,"-o-linear-gradient":wD,"-webkit-linear-gradient":wD,"radial-gradient":Hxt,"-moz-radial-gradient":bD,"-ms-radial-gradient":bD,"-o-radial-gradient":bD,"-webkit-radial-gradient":bD,"-webkit-gradient":Uxt},Gxt={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e.filter(function(n){return kS(n)&&zxt(n)}).map(function(n){return rZ.parse(t,n)})}},jxt={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(r){if(Eo(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},qxt={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return lp(e).map(function(r){return r.filter(kl)}).map(URe)}},Wxt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return lp(e).map(function(r){return r.filter(Eo).map(function(n){return n.value}).join(" ")}).map($xt)}},$xt=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},AS;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(AS||(AS={}));var Kxt={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return lp(e).map(function(r){return r.filter(Yxt)})}},Yxt=function(t){return Eo(t)||kl(t)},mk=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Xxt=mk("top"),Zxt=mk("right"),Jxt=mk("bottom"),eCt=mk("left"),yk=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(e,r){return URe(r.filter(kl))}}},tCt=yk("top-left"),rCt=yk("top-right"),nCt=yk("bottom-right"),iCt=yk("bottom-left"),wk=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},aCt=wk("top"),oCt=wk("right"),sCt=wk("bottom"),lCt=wk("left"),bk=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,r){return yB(r)?r.number:0}}},uCt=bk("top"),cCt=bk("right"),fCt=bk("bottom"),hCt=bk("left"),dCt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ACt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},vCt={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Eo).reduce(function(r,n){return r|pCt(n.value)},0)}},pCt=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},gCt={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},mCt={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},EP;(function(t){t.NORMAL="normal",t.STRICT="strict"})(EP||(EP={}));var yCt={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return EP.STRICT;case"normal":default:return EP.NORMAL}}},wCt={name:"line-height",initialValue:"normal",prefix:!1,type:4},Z1e=function(t,e){return Eo(t)&&t.value==="normal"?1.2*e:t.type===17?e*t.number:kl(t)?jo(t,e):e},bCt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return e.type===20&&e.value==="none"?null:rZ.parse(t,e)}},_Ct={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},W$={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},_k=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},SCt=_k("top"),xCt=_k("right"),CCt=_k("bottom"),TCt=_k("left"),ECt={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Eo).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},BCt={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Sk=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ICt=Sk("top"),LCt=Sk("right"),MCt=Sk("bottom"),DCt=Sk("left"),RCt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},PCt={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},OCt={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&q$(e[0],"none")?[]:lp(e).map(function(r){for(var n={color:Ag.TRANSPARENT,offsetX:Ku,offsetY:Ku,blur:Ku},o=0,u=0;u<r.length;u++){var f=r[u];by(f)?(o===0?n.offsetX=f:o===1?n.offsetY=f:n.blur=f,o++):n.color=fy.parse(t,f)}return n})}},kCt={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},FCt={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var r=HCt[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return r(e.values)}return null}},NCt=function(t){var e=t.filter(function(r){return r.type===17}).map(function(r){return r.number});return e.length===6?e:null},UCt=function(t){var e=t.filter(function(A){return A.type===17}).map(function(A){return A.number}),r=e[0],n=e[1];e[2],e[3];var o=e[4],u=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var f=e[12],h=e[13];return e[14],e[15],e.length===16?[r,n,o,u,f,h]:null},HCt={matrix:NCt,matrix3d:UCt},J1e={type:16,number:50,flags:mB},QCt=[J1e,J1e],VCt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var r=e.filter(kl);return r.length!==2?QCt:[r[0],r[1]]}},zCt={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},UE;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(UE||(UE={}));var GCt={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return UE.BREAK_ALL;case"keep-all":return UE.KEEP_ALL;case"normal":default:return UE.NORMAL}}},jCt={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(e.type===20)return{auto:!0,order:0};if(sx(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},tPe={name:"time",parse:function(t,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},qCt={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return sx(e)?e.number:1}},WCt={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$Ct={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Eo).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},KCt={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var r=[],n=[];return e.forEach(function(o){switch(o.type){case 20:case 0:r.push(o.value);break;case 17:r.push(o.number.toString());break;case 4:n.push(r.join(" ")),r.length=0;break}}),r.length&&n.push(r.join(" ")),n.map(function(o){return o.indexOf(" ")===-1?o:"'"+o+"'"})}},YCt={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},XCt={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(sx(e))return e.number;if(Eo(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},ZCt={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Eo).map(function(r){return r.value})}},JCt={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},su=function(t,e){return(t&e)!==0},eTt={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(e.length===0)return[];var r=e[0];return r.type===20&&r.value==="none"?[]:e}},tTt={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;for(var n=[],o=e.filter(NRe),u=0;u<o.length;u++){var f=o[u],h=o[u+1];if(f.type===20){var A=h&&sx(h)?h.number:1;n.push({counter:f.value,increment:A})}}return n}},rTt={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return[];for(var r=[],n=e.filter(NRe),o=0;o<n.length;o++){var u=n[o],f=n[o+1];if(Eo(u)&&u.value!=="none"){var h=f&&sx(f)?f.number:0;r.push({counter:u.value,reset:h})}}return r}},nTt={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(yB).map(function(r){return tPe.parse(t,r)})}},iTt={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(e.length===0)return null;var r=e[0];if(r.type===20&&r.value==="none")return null;var n=[],o=e.filter(Lxt);if(o.length%2!==0)return null;for(var u=0;u<o.length;u+=2){var f=o[u].value,h=o[u+1].value;n.push({open:f,close:h})}return n}},ewe=function(t,e,r){if(!t)return"";var n=t[Math.min(e,t.length-1)];return n?r?n.open:n.close:""},aTt={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.length===1&&q$(e[0],"none")?[]:lp(e).map(function(r){for(var n={color:255,offsetX:Ku,offsetY:Ku,blur:Ku,spread:Ku,inset:!1},o=0,u=0;u<r.length;u++){var f=r[u];q$(f,"inset")?n.inset=!0:by(f)?(o===0?n.offsetX=f:o===1?n.offsetY=f:o===2?n.blur=f:n.spread=f,o++):n.color=fy.parse(t,f)}return n})}},oTt={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var r=[0,1,2],n=[];return e.filter(Eo).forEach(function(o){switch(o.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),r.forEach(function(o){n.indexOf(o)===-1&&n.push(o)}),n}},sTt={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},lTt={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return yB(e)?e.number:0}},uTt=function(){function t(e,r){var n,o;this.animationDuration=_n(e,nTt,r.animationDuration),this.backgroundClip=_n(e,Rxt,r.backgroundClip),this.backgroundColor=_n(e,Pxt,r.backgroundColor),this.backgroundImage=_n(e,Gxt,r.backgroundImage),this.backgroundOrigin=_n(e,jxt,r.backgroundOrigin),this.backgroundPosition=_n(e,qxt,r.backgroundPosition),this.backgroundRepeat=_n(e,Wxt,r.backgroundRepeat),this.backgroundSize=_n(e,Kxt,r.backgroundSize),this.borderTopColor=_n(e,Xxt,r.borderTopColor),this.borderRightColor=_n(e,Zxt,r.borderRightColor),this.borderBottomColor=_n(e,Jxt,r.borderBottomColor),this.borderLeftColor=_n(e,eCt,r.borderLeftColor),this.borderTopLeftRadius=_n(e,tCt,r.borderTopLeftRadius),this.borderTopRightRadius=_n(e,rCt,r.borderTopRightRadius),this.borderBottomRightRadius=_n(e,nCt,r.borderBottomRightRadius),this.borderBottomLeftRadius=_n(e,iCt,r.borderBottomLeftRadius),this.borderTopStyle=_n(e,aCt,r.borderTopStyle),this.borderRightStyle=_n(e,oCt,r.borderRightStyle),this.borderBottomStyle=_n(e,sCt,r.borderBottomStyle),this.borderLeftStyle=_n(e,lCt,r.borderLeftStyle),this.borderTopWidth=_n(e,uCt,r.borderTopWidth),this.borderRightWidth=_n(e,cCt,r.borderRightWidth),this.borderBottomWidth=_n(e,fCt,r.borderBottomWidth),this.borderLeftWidth=_n(e,hCt,r.borderLeftWidth),this.boxShadow=_n(e,aTt,r.boxShadow),this.color=_n(e,dCt,r.color),this.direction=_n(e,ACt,r.direction),this.display=_n(e,vCt,r.display),this.float=_n(e,gCt,r.cssFloat),this.fontFamily=_n(e,KCt,r.fontFamily),this.fontSize=_n(e,YCt,r.fontSize),this.fontStyle=_n(e,JCt,r.fontStyle),this.fontVariant=_n(e,ZCt,r.fontVariant),this.fontWeight=_n(e,XCt,r.fontWeight),this.letterSpacing=_n(e,mCt,r.letterSpacing),this.lineBreak=_n(e,yCt,r.lineBreak),this.lineHeight=_n(e,wCt,r.lineHeight),this.listStyleImage=_n(e,bCt,r.listStyleImage),this.listStylePosition=_n(e,_Ct,r.listStylePosition),this.listStyleType=_n(e,W$,r.listStyleType),this.marginTop=_n(e,SCt,r.marginTop),this.marginRight=_n(e,xCt,r.marginRight),this.marginBottom=_n(e,CCt,r.marginBottom),this.marginLeft=_n(e,TCt,r.marginLeft),this.opacity=_n(e,qCt,r.opacity);var u=_n(e,ECt,r.overflow);this.overflowX=u[0],this.overflowY=u[u.length>1?1:0],this.overflowWrap=_n(e,BCt,r.overflowWrap),this.paddingTop=_n(e,ICt,r.paddingTop),this.paddingRight=_n(e,LCt,r.paddingRight),this.paddingBottom=_n(e,MCt,r.paddingBottom),this.paddingLeft=_n(e,DCt,r.paddingLeft),this.paintOrder=_n(e,oTt,r.paintOrder),this.position=_n(e,PCt,r.position),this.textAlign=_n(e,RCt,r.textAlign),this.textDecorationColor=_n(e,WCt,(n=r.textDecorationColor)!==null&&n!==void 0?n:r.color),this.textDecorationLine=_n(e,$Ct,(o=r.textDecorationLine)!==null&&o!==void 0?o:r.textDecoration),this.textShadow=_n(e,OCt,r.textShadow),this.textTransform=_n(e,kCt,r.textTransform),this.transform=_n(e,FCt,r.transform),this.transformOrigin=_n(e,VCt,r.transformOrigin),this.visibility=_n(e,zCt,r.visibility),this.webkitTextStrokeColor=_n(e,sTt,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=_n(e,lTt,r.webkitTextStrokeWidth),this.wordBreak=_n(e,GCt,r.wordBreak),this.zIndex=_n(e,jCt,r.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return hy(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return su(this.display,4)||su(this.display,33554432)||su(this.display,268435456)||su(this.display,536870912)||su(this.display,67108864)||su(this.display,134217728)},t}(),cTt=function(){function t(e,r){this.content=_n(e,eTt,r.content),this.quotes=_n(e,iTt,r.quotes)}return t}(),twe=function(){function t(e,r){this.counterIncrement=_n(e,tTt,r.counterIncrement),this.counterReset=_n(e,rTt,r.counterReset)}return t}(),_n=function(t,e,r){var n=new kRe,o=r!==null&&typeof r<"u"?r.toString():e.initialValue;n.write(o);var u=new FRe(n.read());switch(e.type){case 2:var f=u.parseComponentValue();return e.parse(t,Eo(f)?f.value:e.initialValue);case 0:return e.parse(t,u.parseComponentValue());case 1:return e.parse(t,u.parseComponentValues());case 4:return u.parseComponentValue();case 3:switch(e.format){case"angle":return pk.parse(t,u.parseComponentValue());case"color":return fy.parse(t,u.parseComponentValue());case"image":return rZ.parse(t,u.parseComponentValue());case"length":var h=u.parseComponentValue();return by(h)?h:Ku;case"length-percentage":var A=u.parseComponentValue();return kl(A)?A:Ku;case"time":return tPe.parse(t,u.parseComponentValue())}break}},fTt="data-html2canvas-debug",hTt=function(t){var e=t.getAttribute(fTt);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},$$=function(t,e){var r=hTt(t);return r===1||e===r},up=function(){function t(e,r){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,$$(r,3))debugger;this.styles=new uTt(e,window.getComputedStyle(r,null)),X$(r)&&(this.styles.animationDuration.some(function(n){return n>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=Ak(this.context,r),$$(r,4)&&(this.flags|=16)}return t}(),dTt="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",rwe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vE=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var _D=0;_D<rwe.length;_D++)vE[rwe.charCodeAt(_D)]=_D;var ATt=function(t){var e=t.length*.75,r=t.length,n,o=0,u,f,h,A;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);var p=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),g=Array.isArray(p)?p:new Uint8Array(p);for(n=0;n<r;n+=4)u=vE[t.charCodeAt(n)],f=vE[t.charCodeAt(n+1)],h=vE[t.charCodeAt(n+2)],A=vE[t.charCodeAt(n+3)],g[o++]=u<<2|f>>4,g[o++]=(f&15)<<4|h>>2,g[o++]=(h&3)<<6|A&63;return p},vTt=function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r.push(t[n+1]<<8|t[n]);return r},pTt=function(t){for(var e=t.length,r=[],n=0;n<e;n+=4)r.push(t[n+3]<<24|t[n+2]<<16|t[n+1]<<8|t[n]);return r},H1=5,nZ=11,K9=2,gTt=nZ-H1,rPe=65536>>H1,mTt=1<<H1,Y9=mTt-1,yTt=1024>>H1,wTt=rPe+yTt,bTt=wTt,_Tt=32,STt=bTt+_Tt,xTt=65536>>nZ,CTt=1<<gTt,TTt=CTt-1,nwe=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},ETt=function(t,e,r){return t.slice?t.slice(e,r):new Uint32Array(Array.prototype.slice.call(t,e,r))},BTt=function(t,e){var r=ATt(t),n=Array.isArray(r)?pTt(r):new Uint32Array(r),o=Array.isArray(r)?vTt(r):new Uint16Array(r),u=24,f=nwe(o,u/2,n[4]/2),h=n[5]===2?nwe(o,(u+n[4])/2):ETt(n,Math.ceil((u+n[4])/4));return new ITt(n[0],n[1],n[2],n[3],f,h)},ITt=function(){function t(e,r,n,o,u,f){this.initialValue=e,this.errorValue=r,this.highStart=n,this.highValueIndex=o,this.index=u,this.data=f}return t.prototype.get=function(e){var r;if(e>=0){if(e<55296||e>56319&&e<=65535)return r=this.index[e>>H1],r=(r<<K9)+(e&Y9),this.data[r];if(e<=65535)return r=this.index[rPe+(e-55296>>H1)],r=(r<<K9)+(e&Y9),this.data[r];if(e<this.highStart)return r=STt-xTt+(e>>nZ),r=this.index[r],r+=e>>H1&TTt,r=this.index[r],r=(r<<K9)+(e&Y9),this.data[r];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),iwe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",LTt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var SD=0;SD<iwe.length;SD++)LTt[iwe.charCodeAt(SD)]=SD;var MTt=1,X9=2,Z9=3,awe=4,owe=5,DTt=7,swe=8,J9=9,eG=10,lwe=11,uwe=12,cwe=13,fwe=14,tG=15,RTt=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var u=t.charCodeAt(r++);(u&64512)===56320?e.push(((o&1023)<<10)+(u&1023)+65536):(e.push(o),r--)}else e.push(o)}return e},PTt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";for(var n=[],o=-1,u="";++o<r;){var f=t[o];f<=65535?n.push(f):(f-=65536,n.push((f>>10)+55296,f%1024+56320)),(o+1===r||n.length>16384)&&(u+=String.fromCharCode.apply(String,n),n.length=0)}return u},OTt=BTt(dTt),gd="×",rG="÷",kTt=function(t){return OTt.get(t)},FTt=function(t,e,r){var n=r-2,o=e[n],u=e[r-1],f=e[r];if(u===X9&&f===Z9)return gd;if(u===X9||u===Z9||u===awe||f===X9||f===Z9||f===awe)return rG;if(u===swe&&[swe,J9,lwe,uwe].indexOf(f)!==-1||(u===lwe||u===J9)&&(f===J9||f===eG)||(u===uwe||u===eG)&&f===eG||f===cwe||f===owe||f===DTt||u===MTt)return gd;if(u===cwe&&f===fwe){for(;o===owe;)o=e[--n];if(o===fwe)return gd}if(u===tG&&f===tG){for(var h=0;o===tG;)h++,o=e[--n];if(h%2===0)return gd}return rG},NTt=function(t){var e=RTt(t),r=e.length,n=0,o=0,u=e.map(kTt);return{next:function(){if(n>=r)return{done:!0,value:null};for(var f=gd;n<r&&(f=FTt(e,u,++n))===gd;);if(f!==gd||n===r){var h=PTt.apply(null,e.slice(o,n));return o=n,{value:h,done:!1}}return{done:!0,value:null}}}},UTt=function(t){for(var e=NTt(t),r=[],n;!(n=e.next()).done;)n.value&&r.push(n.value.slice());return r},HTt=function(t){var e=123;if(t.createRange){var r=t.createRange();if(r.getBoundingClientRect){var n=t.createElement("boundtest");n.style.height=e+"px",n.style.display="block",t.body.appendChild(n),r.selectNode(n);var o=r.getBoundingClientRect(),u=Math.round(o.height);if(t.body.removeChild(n),u===e)return!0}}return!1},QTt=function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var r=t.createRange();e.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var n=e.firstChild,o=vk(n.data).map(function(A){return fl(A)}),u=0,f={},h=o.every(function(A,p){r.setStart(n,u),r.setEnd(n,u+A.length);var g=r.getBoundingClientRect();u+=A.length;var y=g.x>f.x||g.y>f.y;return f=g,p===0?!0:y});return t.body.removeChild(e),h},VTt=function(){return typeof new Image().crossOrigin<"u"},zTt=function(){return typeof new XMLHttpRequest().responseType=="string"},GTt=function(t){var e=new Image,r=t.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0),r.toDataURL()}catch{return!1}return!0},hwe=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},jTt=function(t){var e=t.createElement("canvas"),r=100;e.width=r,e.height=r;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var o=new Image,u=e.toDataURL();o.src=u;var f=K$(r,r,0,0,o);return n.fillStyle="red",n.fillRect(0,0,r,r),dwe(f).then(function(h){n.drawImage(h,0,0);var A=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var p=t.createElement("div");return p.style.backgroundImage="url("+u+")",p.style.height=r+"px",hwe(A)?dwe(K$(r,r,0,0,p)):Promise.reject(!1)}).then(function(h){return n.drawImage(h,0,0),hwe(n.getImageData(0,0,r,r).data)}).catch(function(){return!1})},K$=function(t,e,r,n,o){var u="http://www.w3.org/2000/svg",f=document.createElementNS(u,"svg"),h=document.createElementNS(u,"foreignObject");return f.setAttributeNS(null,"width",t.toString()),f.setAttributeNS(null,"height",e.toString()),h.setAttributeNS(null,"width","100%"),h.setAttributeNS(null,"height","100%"),h.setAttributeNS(null,"x",r.toString()),h.setAttributeNS(null,"y",n.toString()),h.setAttributeNS(null,"externalResourcesRequired","true"),f.appendChild(h),h.appendChild(o),f},dwe=function(t){return new Promise(function(e,r){var n=new Image;n.onload=function(){return e(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Vu={get SUPPORT_RANGE_BOUNDS(){var t=HTt(document);return Object.defineProperty(Vu,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Vu.SUPPORT_RANGE_BOUNDS&&QTt(document);return Object.defineProperty(Vu,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=GTt(document);return Object.defineProperty(Vu,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?jTt(document):Promise.resolve(!1);return Object.defineProperty(Vu,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=VTt();return Object.defineProperty(Vu,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=zTt();return Object.defineProperty(Vu,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Vu,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Vu,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},HE=function(){function t(e,r){this.text=e,this.bounds=r}return t}(),qTt=function(t,e,r,n){var o=KTt(e,r),u=[],f=0;return o.forEach(function(h){if(r.textDecorationLine.length||h.trim().length>0)if(Vu.SUPPORT_RANGE_BOUNDS){var A=Awe(n,f,h.length).getClientRects();if(A.length>1){var p=iZ(h),g=0;p.forEach(function(_){u.push(new HE(_,_g.fromDOMRectList(t,Awe(n,g+f,_.length).getClientRects()))),g+=_.length})}else u.push(new HE(h,_g.fromDOMRectList(t,A)))}else{var y=n.splitText(h.length);u.push(new HE(h,WTt(t,n))),n=y}else Vu.SUPPORT_RANGE_BOUNDS||(n=n.splitText(h.length));f+=h.length}),u},WTt=function(t,e){var r=e.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var o=e.parentNode;if(o){o.replaceChild(n,e);var u=Ak(t,n);return n.firstChild&&o.replaceChild(n.firstChild,n),u}}return _g.EMPTY},Awe=function(t,e,r){var n=t.ownerDocument;if(!n)throw new Error("Node has no owner document");var o=n.createRange();return o.setStart(t,e),o.setEnd(t,e+r),o},iZ=function(t){if(Vu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map(function(r){return r.segment})}return UTt(t)},$Tt=function(t,e){if(Vu.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(t)).map(function(n){return n.segment})}return XTt(t,e)},KTt=function(t,e){return e.letterSpacing!==0?iZ(t):$Tt(t,e)},YTt=[32,160,4961,65792,65793,4153,4241],XTt=function(t,e){for(var r=xSt(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],o,u=function(){if(o.value){var f=o.value.slice(),h=vk(f),A="";h.forEach(function(p){YTt.indexOf(p)===-1?A+=fl(p):(A.length&&n.push(A),n.push(fl(p)),A="")}),A.length&&n.push(A)}};!(o=r.next()).done;)u();return n},ZTt=function(){function t(e,r,n){this.text=JTt(r.data,n.textTransform),this.textBounds=qTt(e,this.text,n,r)}return t}(),JTt=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(eEt,tEt);case 2:return t.toUpperCase();default:return t}},eEt=/(^|\s|:|-|\(|\))([a-z])/g,tEt=function(t,e,r){return t.length>0?e+r.toUpperCase():t},nPe=function(t){YA(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.src=n.currentSrc||n.src,o.intrinsicWidth=n.naturalWidth,o.intrinsicHeight=n.naturalHeight,o.context.cache.addImage(o.src),o}return e}(up),iPe=function(t){YA(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.canvas=n,o.intrinsicWidth=n.width,o.intrinsicHeight=n.height,o}return e}(up),aPe=function(t){YA(e,t);function e(r,n){var o=t.call(this,r,n)||this,u=new XMLSerializer,f=Ak(r,n);return n.setAttribute("width",f.width+"px"),n.setAttribute("height",f.height+"px"),o.svg="data:image/svg+xml,"+encodeURIComponent(u.serializeToString(n)),o.intrinsicWidth=n.width.baseVal.value,o.intrinsicHeight=n.height.baseVal.value,o.context.cache.addImage(o.svg),o}return e}(up),oPe=function(t){YA(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.value=n.value,o}return e}(up),Y$=function(t){YA(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.start=n.start,o.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,o}return e}(up),rEt=[{type:15,flags:0,unit:"px",number:3}],nEt=[{type:16,flags:0,number:50}],iEt=function(t){return t.width>t.height?new _g(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new _g(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},aEt=function(t){var e=t.type===oEt?new Array(t.value.length+1).join("•"):t.value;return e.length===0?t.placeholder||"":e},BP="checkbox",IP="radio",oEt="password",vwe=707406591,aZ=function(t){YA(e,t);function e(r,n){var o=t.call(this,r,n)||this;switch(o.type=n.type.toLowerCase(),o.checked=n.checked,o.value=aEt(n),(o.type===BP||o.type===IP)&&(o.styles.backgroundColor=3739148031,o.styles.borderTopColor=o.styles.borderRightColor=o.styles.borderBottomColor=o.styles.borderLeftColor=2779096575,o.styles.borderTopWidth=o.styles.borderRightWidth=o.styles.borderBottomWidth=o.styles.borderLeftWidth=1,o.styles.borderTopStyle=o.styles.borderRightStyle=o.styles.borderBottomStyle=o.styles.borderLeftStyle=1,o.styles.backgroundClip=[0],o.styles.backgroundOrigin=[0],o.bounds=iEt(o.bounds)),o.type){case BP:o.styles.borderTopRightRadius=o.styles.borderTopLeftRadius=o.styles.borderBottomRightRadius=o.styles.borderBottomLeftRadius=rEt;break;case IP:o.styles.borderTopRightRadius=o.styles.borderTopLeftRadius=o.styles.borderBottomRightRadius=o.styles.borderBottomLeftRadius=nEt;break}return o}return e}(up),sPe=function(t){YA(e,t);function e(r,n){var o=t.call(this,r,n)||this,u=n.options[n.selectedIndex||0];return o.value=u&&u.text||"",o}return e}(up),lPe=function(t){YA(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.value=n.value,o}return e}(up),uPe=function(t){YA(e,t);function e(r,n){var o=t.call(this,r,n)||this;o.src=n.src,o.width=parseInt(n.width,10)||0,o.height=parseInt(n.height,10)||0,o.backgroundColor=o.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){o.tree=fPe(r,n.contentWindow.document.documentElement);var u=n.contentWindow.document.documentElement?NE(r,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Ag.TRANSPARENT,f=n.contentWindow.document.body?NE(r,getComputedStyle(n.contentWindow.document.body).backgroundColor):Ag.TRANSPARENT;o.backgroundColor=hy(u)?hy(f)?o.styles.backgroundColor:f:u}}catch{}return o}return e}(up),sEt=["OL","UL","MENU"],$5=function(t,e,r,n){for(var o=e.firstChild,u=void 0;o;o=u)if(u=o.nextSibling,hPe(o)&&o.data.trim().length>0)r.textNodes.push(new ZTt(t,o,r.styles));else if(q_(o))if(pPe(o)&&o.assignedNodes)o.assignedNodes().forEach(function(h){return $5(t,h,r,n)});else{var f=cPe(t,o);f.styles.isVisible()&&(lEt(o,f,n)?f.flags|=4:uEt(f.styles)&&(f.flags|=2),sEt.indexOf(o.tagName)!==-1&&(f.flags|=8),r.elements.push(f),o.slot,o.shadowRoot?$5(t,o.shadowRoot,f,n):!LP(o)&&!dPe(o)&&!MP(o)&&$5(t,o,f,n))}},cPe=function(t,e){return Z$(e)?new nPe(t,e):APe(e)?new iPe(t,e):dPe(e)?new aPe(t,e):cEt(e)?new oPe(t,e):fEt(e)?new Y$(t,e):hEt(e)?new aZ(t,e):MP(e)?new sPe(t,e):LP(e)?new lPe(t,e):vPe(e)?new uPe(t,e):new up(t,e)},fPe=function(t,e){var r=cPe(t,e);return r.flags|=4,$5(t,e,r,r),r},lEt=function(t,e,r){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||oZ(t)&&r.styles.isTransparent()},uEt=function(t){return t.isPositioned()||t.isFloating()},hPe=function(t){return t.nodeType===Node.TEXT_NODE},q_=function(t){return t.nodeType===Node.ELEMENT_NODE},X$=function(t){return q_(t)&&typeof t.style<"u"&&!K5(t)},K5=function(t){return typeof t.className=="object"},cEt=function(t){return t.tagName==="LI"},fEt=function(t){return t.tagName==="OL"},hEt=function(t){return t.tagName==="INPUT"},dEt=function(t){return t.tagName==="HTML"},dPe=function(t){return t.tagName==="svg"},oZ=function(t){return t.tagName==="BODY"},APe=function(t){return t.tagName==="CANVAS"},pwe=function(t){return t.tagName==="VIDEO"},Z$=function(t){return t.tagName==="IMG"},vPe=function(t){return t.tagName==="IFRAME"},gwe=function(t){return t.tagName==="STYLE"},AEt=function(t){return t.tagName==="SCRIPT"},LP=function(t){return t.tagName==="TEXTAREA"},MP=function(t){return t.tagName==="SELECT"},pPe=function(t){return t.tagName==="SLOT"},mwe=function(t){return t.tagName.indexOf("-")>0},vEt=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(e){var r=this.counters[e];return r&&r.length?r[r.length-1]:1},t.prototype.getCounterValues=function(e){var r=this.counters[e];return r||[]},t.prototype.pop=function(e){var r=this;e.forEach(function(n){return r.counters[n].pop()})},t.prototype.parse=function(e){var r=this,n=e.counterIncrement,o=e.counterReset,u=!0;n!==null&&n.forEach(function(h){var A=r.counters[h.counter];A&&h.increment!==0&&(u=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=h.increment)});var f=[];return u&&o.forEach(function(h){var A=r.counters[h.counter];f.push(h.counter),A||(A=r.counters[h.counter]=[]),A.push(h.reset)}),f},t}(),ywe={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},wwe={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},pEt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},gEt={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},f_=function(t,e,r,n,o,u){return t<e||t>r?S2(t,o,u.length>0):n.integers.reduce(function(f,h,A){for(;t>=h;)t-=h,f+=n.values[A];return f},"")+u},gPe=function(t,e,r,n){var o="";do r||t--,o=n(t)+o,t/=e;while(t*e>=e);return o},ll=function(t,e,r,n,o){var u=r-e+1;return(t<0?"-":"")+(gPe(Math.abs(t),u,n,function(f){return fl(Math.floor(f%u)+e)})+o)},z0=function(t,e,r){r===void 0&&(r=". ");var n=e.length;return gPe(Math.abs(t),n,!1,function(o){return e[Math.floor(o%n)]})+r},k_=1,Hm=2,Qm=4,pE=8,Jp=function(t,e,r,n,o,u){if(t<-9999||t>9999)return S2(t,4,o.length>0);var f=Math.abs(t),h=o;if(f===0)return e[0]+h;for(var A=0;f>0&&A<=4;A++){var p=f%10;p===0&&su(u,k_)&&h!==""?h=e[p]+h:p>1||p===1&&A===0||p===1&&A===1&&su(u,Hm)||p===1&&A===1&&su(u,Qm)&&t>100||p===1&&A>1&&su(u,pE)?h=e[p]+(A>0?r[A-1]:"")+h:p===1&&A>0&&(h=r[A-1]+h),f=Math.floor(f/10)}return(t<0?n:"")+h},bwe="十百千萬",_we="拾佰仟萬",Swe="マイナス",nG="마이너스",S2=function(t,e,r){var n=r?". ":"",o=r?"、":"",u=r?", ":"",f=r?" ":"";switch(e){case 0:return"•"+f;case 1:return"◦"+f;case 2:return"◾"+f;case 5:var h=ll(t,48,57,!0,n);return h.length<4?"0"+h:h;case 4:return z0(t,"〇一二三四五六七八九",o);case 6:return f_(t,1,3999,ywe,3,n).toLowerCase();case 7:return f_(t,1,3999,ywe,3,n);case 8:return ll(t,945,969,!1,n);case 9:return ll(t,97,122,!1,n);case 10:return ll(t,65,90,!1,n);case 11:return ll(t,1632,1641,!0,n);case 12:case 49:return f_(t,1,9999,wwe,3,n);case 35:return f_(t,1,9999,wwe,3,n).toLowerCase();case 13:return ll(t,2534,2543,!0,n);case 14:case 30:return ll(t,6112,6121,!0,n);case 15:return z0(t,"子丑寅卯辰巳午未申酉戌亥",o);case 16:return z0(t,"甲乙丙丁戊己庚辛壬癸",o);case 17:case 48:return Jp(t,"零一二三四五六七八九",bwe,"負",o,Hm|Qm|pE);case 47:return Jp(t,"零壹貳參肆伍陸柒捌玖",_we,"負",o,k_|Hm|Qm|pE);case 42:return Jp(t,"零一二三四五六七八九",bwe,"负",o,Hm|Qm|pE);case 41:return Jp(t,"零壹贰叁肆伍陆柒捌玖",_we,"负",o,k_|Hm|Qm|pE);case 26:return Jp(t,"〇一二三四五六七八九","十百千万",Swe,o,0);case 25:return Jp(t,"零壱弐参四伍六七八九","拾百千万",Swe,o,k_|Hm|Qm);case 31:return Jp(t,"영일이삼사오육칠팔구","십백천만",nG,u,k_|Hm|Qm);case 33:return Jp(t,"零一二三四五六七八九","十百千萬",nG,u,0);case 32:return Jp(t,"零壹貳參四五六七八九","拾百千",nG,u,k_|Hm|Qm);case 18:return ll(t,2406,2415,!0,n);case 20:return f_(t,1,19999,gEt,3,n);case 21:return ll(t,2790,2799,!0,n);case 22:return ll(t,2662,2671,!0,n);case 22:return f_(t,1,10999,pEt,3,n);case 23:return z0(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return z0(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ll(t,3302,3311,!0,n);case 28:return z0(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",o);case 29:return z0(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",o);case 34:return ll(t,3792,3801,!0,n);case 37:return ll(t,6160,6169,!0,n);case 38:return ll(t,4160,4169,!0,n);case 39:return ll(t,2918,2927,!0,n);case 40:return ll(t,1776,1785,!0,n);case 43:return ll(t,3046,3055,!0,n);case 44:return ll(t,3174,3183,!0,n);case 45:return ll(t,3664,3673,!0,n);case 46:return ll(t,3872,3881,!0,n);case 3:default:return ll(t,48,57,!0,n)}},mPe="data-html2canvas-ignore",xwe=function(){function t(e,r,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=r,this.counters=new vEt,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(e,r){var n=this,o=mEt(e,r);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var u=e.defaultView.pageXOffset,f=e.defaultView.pageYOffset,h=o.contentWindow,A=h.document,p=bEt(o).then(function(){return af(n,void 0,void 0,function(){var g,y;return Bc(this,function(_){switch(_.label){case 0:return this.scrolledElements.forEach(CEt),h&&(h.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(h.scrollY!==r.top||h.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(h.scrollX-r.left,h.scrollY-r.top,0,0))),g=this.options.onclone,y=this.clonedReferenceElement,typeof y>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:A.fonts&&A.fonts.ready?[4,A.fonts.ready]:[3,2];case 1:_.sent(),_.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,wEt(A)]:[3,4];case 3:_.sent(),_.label=4;case 4:return typeof g=="function"?[2,Promise.resolve().then(function(){return g(A,y)}).then(function(){return o})]:[2,o]}})})});return A.open(),A.write(SEt(document.doctype)+"<html></html>"),xEt(this.referenceElement.ownerDocument,u,f),A.replaceChild(A.adoptNode(this.documentElement),A.documentElement),A.close(),p},t.prototype.createElementClone=function(e){if($$(e,2))debugger;if(APe(e))return this.createCanvasClone(e);if(pwe(e))return this.createVideoClone(e);if(gwe(e))return this.createStyleClone(e);var r=e.cloneNode(!1);return Z$(r)&&(Z$(e)&&e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),mwe(r)?this.createCustomElementClone(r):r},t.prototype.createCustomElementClone=function(e){var r=document.createElement("html2canvascustomelement");return iG(e.style,r),r},t.prototype.createStyleClone=function(e){try{var r=e.sheet;if(r&&r.cssRules){var n=[].slice.call(r.cssRules,0).reduce(function(u,f){return f&&typeof f.cssText=="string"?u+f.cssText:u},""),o=e.cloneNode(!1);return o.textContent=n,o}}catch(u){if(this.context.logger.error("Unable to access cssRules property",u),u.name!=="SecurityError")throw u}return e.cloneNode(!1)},t.prototype.createCanvasClone=function(e){var r;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var o=e.cloneNode(!1);try{o.width=e.width,o.height=e.height;var u=e.getContext("2d"),f=o.getContext("2d");if(f)if(!this.options.allowTaint&&u)f.putImageData(u.getImageData(0,0,e.width,e.height),0,0);else{var h=(r=e.getContext("webgl2"))!==null&&r!==void 0?r:e.getContext("webgl");if(h){var A=h.getContextAttributes();A?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}f.drawImage(e,0,0)}return o}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return o},t.prototype.createVideoClone=function(e){var r=e.ownerDocument.createElement("canvas");r.width=e.offsetWidth,r.height=e.offsetHeight;var n=r.getContext("2d");try{return n&&(n.drawImage(e,0,0,r.width,r.height),this.options.allowTaint||n.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var o=e.ownerDocument.createElement("canvas");return o.width=e.offsetWidth,o.height=e.offsetHeight,o},t.prototype.appendChildNode=function(e,r,n){(!q_(r)||!AEt(r)&&!r.hasAttribute(mPe)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!q_(r)||!gwe(r))&&e.appendChild(this.cloneNode(r,n))},t.prototype.cloneChildNodes=function(e,r,n){for(var o=this,u=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;u;u=u.nextSibling)if(q_(u)&&pPe(u)&&typeof u.assignedNodes=="function"){var f=u.assignedNodes();f.length&&f.forEach(function(h){return o.appendChildNode(r,h,n)})}else this.appendChildNode(r,u,n)},t.prototype.cloneNode=function(e,r){if(hPe(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&q_(e)&&(X$(e)||K5(e))){var o=this.createElementClone(e);o.style.transitionProperty="none";var u=n.getComputedStyle(e),f=n.getComputedStyle(e,":before"),h=n.getComputedStyle(e,":after");this.referenceElement===e&&X$(o)&&(this.clonedReferenceElement=o),oZ(o)&&BEt(o);var A=this.counters.parse(new twe(this.context,u)),p=this.resolvePseudoContent(e,o,f,QE.BEFORE);mwe(e)&&(r=!0),pwe(e)||this.cloneChildNodes(e,o,r),p&&o.insertBefore(p,o.firstChild);var g=this.resolvePseudoContent(e,o,h,QE.AFTER);return g&&o.appendChild(g),this.counters.pop(A),(u&&(this.options.copyStyles||K5(e))&&!vPe(e)||r)&&iG(u,o),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([o,e.scrollLeft,e.scrollTop]),(LP(e)||MP(e))&&(LP(o)||MP(o))&&(o.value=e.value),o}return e.cloneNode(!1)},t.prototype.resolvePseudoContent=function(e,r,n,o){var u=this;if(n){var f=n.content,h=r.ownerDocument;if(!(!h||!f||f==="none"||f==="-moz-alt-content"||n.display==="none")){this.counters.parse(new twe(this.context,n));var A=new cTt(this.context,n),p=h.createElement("html2canvaspseudoelement");iG(n,p),A.content.forEach(function(y){if(y.type===0)p.appendChild(h.createTextNode(y.value));else if(y.type===22){var _=h.createElement("img");_.src=y.value,_.style.opacity="1",p.appendChild(_)}else if(y.type===18){if(y.name==="attr"){var b=y.values.filter(Eo);b.length&&p.appendChild(h.createTextNode(e.getAttribute(b[0].value)||""))}else if(y.name==="counter"){var C=y.values.filter(kS),T=C[0],B=C[1];if(T&&Eo(T)){var L=u.counters.getCounterValue(T.value),P=B&&Eo(B)?W$.parse(u.context,B.value):3;p.appendChild(h.createTextNode(S2(L,P,!1)))}}else if(y.name==="counters"){var I=y.values.filter(kS),T=I[0],O=I[1],B=I[2];if(T&&Eo(T)){var U=u.counters.getCounterValues(T.value),N=B&&Eo(B)?W$.parse(u.context,B.value):3,H=O&&O.type===0?O.value:"",z=U.map(function(q){return S2(q,N,!1)}).join(H);p.appendChild(h.createTextNode(z))}}}else if(y.type===20)switch(y.value){case"open-quote":p.appendChild(h.createTextNode(ewe(A.quotes,u.quoteDepth++,!0)));break;case"close-quote":p.appendChild(h.createTextNode(ewe(A.quotes,--u.quoteDepth,!1)));break;default:p.appendChild(h.createTextNode(y.value))}}),p.className=J$+" "+eK;var g=o===QE.BEFORE?" "+J$:" "+eK;return K5(r)?r.className.baseValue+=g:r.className+=g,p}}},t.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},t}(),QE;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(QE||(QE={}));var mEt=function(t,e){var r=t.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=e.width.toString(),r.height=e.height.toString(),r.scrolling="no",r.setAttribute(mPe,"true"),t.body.appendChild(r),r},yEt=function(t){return new Promise(function(e){if(t.complete){e();return}if(!t.src){e();return}t.onload=e,t.onerror=e})},wEt=function(t){return Promise.all([].slice.call(t.images,0).map(yEt))},bEt=function(t){return new Promise(function(e,r){var n=t.contentWindow;if(!n)return r("No window assigned for iframe");var o=n.document;n.onload=t.onload=function(){n.onload=t.onload=null;var u=setInterval(function(){o.body.childNodes.length>0&&o.readyState==="complete"&&(clearInterval(u),e(t))},50)}})},_Et=["all","d","content"],iG=function(t,e){for(var r=t.length-1;r>=0;r--){var n=t.item(r);_Et.indexOf(n)===-1&&e.style.setProperty(n,t.getPropertyValue(n))}return e},SEt=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},xEt=function(t,e,r){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||r!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,r)},CEt=function(t){var e=t[0],r=t[1],n=t[2];e.scrollLeft=r,e.scrollTop=n},TEt=":before",EEt=":after",J$="___html2canvas___pseudoelement_before",eK="___html2canvas___pseudoelement_after",Cwe=`{
content: "" !important;
display: none !important;
}`,BEt=function(t){IEt(t,"."+J$+TEt+Cwe+`
.`+eK+EEt+Cwe)},IEt=function(t,e){var r=t.ownerDocument;if(r){var n=r.createElement("style");n.textContent=e,t.appendChild(n)}},yPe=function(){function t(){}return t.getOrigin=function(e){var r=t._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),LEt=function(){function t(e,r){this.context=e,this._options=r,this._cache={}}return t.prototype.addImage=function(e){var r=Promise.resolve();return this.has(e)||(oG(e)||PEt(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),r},t.prototype.match=function(e){return this._cache[e]},t.prototype.loadImage=function(e){return af(this,void 0,void 0,function(){var r,n,o,u,f=this;return Bc(this,function(h){switch(h.label){case 0:return r=yPe.isSameOrigin(e),n=!aG(e)&&this._options.useCORS===!0&&Vu.SUPPORT_CORS_IMAGES&&!r,o=!aG(e)&&!r&&!oG(e)&&typeof this._options.proxy=="string"&&Vu.SUPPORT_CORS_XHR&&!n,!r&&this._options.allowTaint===!1&&!aG(e)&&!oG(e)&&!o&&!n?[2]:(u=e,o?[4,this.proxy(u)]:[3,2]);case 1:u=h.sent(),h.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(A,p){var g=new Image;g.onload=function(){return A(g)},g.onerror=p,(OEt(u)||n)&&(g.crossOrigin="anonymous"),g.src=u,g.complete===!0&&setTimeout(function(){return A(g)},500),f._options.imageTimeout>0&&setTimeout(function(){return p("Timed out ("+f._options.imageTimeout+"ms) loading image")},f._options.imageTimeout)})];case 3:return[2,h.sent()]}})})},t.prototype.has=function(e){return typeof this._cache[e]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(e){var r=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var o=e.substring(0,256);return new Promise(function(u,f){var h=Vu.SUPPORT_RESPONSE_TYPE?"blob":"text",A=new XMLHttpRequest;A.onload=function(){if(A.status===200)if(h==="text")u(A.response);else{var y=new FileReader;y.addEventListener("load",function(){return u(y.result)},!1),y.addEventListener("error",function(_){return f(_)},!1),y.readAsDataURL(A.response)}else f("Failed to proxy resource "+o+" with status code "+A.status)},A.onerror=f;var p=n.indexOf("?")>-1?"&":"?";if(A.open("GET",""+n+p+"url="+encodeURIComponent(e)+"&responseType="+h),h!=="text"&&A instanceof XMLHttpRequest&&(A.responseType=h),r._options.imageTimeout){var g=r._options.imageTimeout;A.timeout=g,A.ontimeout=function(){return f("Timed out ("+g+"ms) proxying "+o)}}A.send()})},t}(),MEt=/^data:image\/svg\+xml/i,DEt=/^data:image\/.*;base64,/i,REt=/^data:image\/.*/i,PEt=function(t){return Vu.SUPPORT_SVG_DRAWING||!kEt(t)},aG=function(t){return REt.test(t)},OEt=function(t){return DEt.test(t)},oG=function(t){return t.substr(0,4)==="blob"},kEt=function(t){return t.substr(-3).toLowerCase()==="svg"||MEt.test(t)},pn=function(){function t(e,r){this.type=0,this.x=e,this.y=r}return t.prototype.add=function(e,r){return new t(this.x+e,this.y+r)},t}(),h_=function(t,e,r){return new pn(t.x+(e.x-t.x)*r,t.y+(e.y-t.y)*r)},xD=function(){function t(e,r,n,o){this.type=1,this.start=e,this.startControl=r,this.endControl=n,this.end=o}return t.prototype.subdivide=function(e,r){var n=h_(this.start,this.startControl,e),o=h_(this.startControl,this.endControl,e),u=h_(this.endControl,this.end,e),f=h_(n,o,e),h=h_(o,u,e),A=h_(f,h,e);return r?new t(this.start,n,f,A):new t(A,h,u,this.end)},t.prototype.add=function(e,r){return new t(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Cd=function(t){return t.type===1},FEt=function(){function t(e){var r=e.styles,n=e.bounds,o=AE(r.borderTopLeftRadius,n.width,n.height),u=o[0],f=o[1],h=AE(r.borderTopRightRadius,n.width,n.height),A=h[0],p=h[1],g=AE(r.borderBottomRightRadius,n.width,n.height),y=g[0],_=g[1],b=AE(r.borderBottomLeftRadius,n.width,n.height),C=b[0],T=b[1],B=[];B.push((u+A)/n.width),B.push((C+y)/n.width),B.push((f+T)/n.height),B.push((p+_)/n.height);var L=Math.max.apply(Math,B);L>1&&(u/=L,f/=L,A/=L,p/=L,y/=L,_/=L,C/=L,T/=L);var P=n.width-A,I=n.height-_,O=n.width-y,U=n.height-T,N=r.borderTopWidth,H=r.borderRightWidth,z=r.borderBottomWidth,G=r.borderLeftWidth,j=jo(r.paddingTop,e.bounds.width),q=jo(r.paddingRight,e.bounds.width),X=jo(r.paddingBottom,e.bounds.width),Y=jo(r.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=u>0||f>0?ms(n.left+G/3,n.top+N/3,u-G/3,f-N/3,ro.TOP_LEFT):new pn(n.left+G/3,n.top+N/3),this.topRightBorderDoubleOuterBox=u>0||f>0?ms(n.left+P,n.top+N/3,A-H/3,p-N/3,ro.TOP_RIGHT):new pn(n.left+n.width-H/3,n.top+N/3),this.bottomRightBorderDoubleOuterBox=y>0||_>0?ms(n.left+O,n.top+I,y-H/3,_-z/3,ro.BOTTOM_RIGHT):new pn(n.left+n.width-H/3,n.top+n.height-z/3),this.bottomLeftBorderDoubleOuterBox=C>0||T>0?ms(n.left+G/3,n.top+U,C-G/3,T-z/3,ro.BOTTOM_LEFT):new pn(n.left+G/3,n.top+n.height-z/3),this.topLeftBorderDoubleInnerBox=u>0||f>0?ms(n.left+G*2/3,n.top+N*2/3,u-G*2/3,f-N*2/3,ro.TOP_LEFT):new pn(n.left+G*2/3,n.top+N*2/3),this.topRightBorderDoubleInnerBox=u>0||f>0?ms(n.left+P,n.top+N*2/3,A-H*2/3,p-N*2/3,ro.TOP_RIGHT):new pn(n.left+n.width-H*2/3,n.top+N*2/3),this.bottomRightBorderDoubleInnerBox=y>0||_>0?ms(n.left+O,n.top+I,y-H*2/3,_-z*2/3,ro.BOTTOM_RIGHT):new pn(n.left+n.width-H*2/3,n.top+n.height-z*2/3),this.bottomLeftBorderDoubleInnerBox=C>0||T>0?ms(n.left+G*2/3,n.top+U,C-G*2/3,T-z*2/3,ro.BOTTOM_LEFT):new pn(n.left+G*2/3,n.top+n.height-z*2/3),this.topLeftBorderStroke=u>0||f>0?ms(n.left+G/2,n.top+N/2,u-G/2,f-N/2,ro.TOP_LEFT):new pn(n.left+G/2,n.top+N/2),this.topRightBorderStroke=u>0||f>0?ms(n.left+P,n.top+N/2,A-H/2,p-N/2,ro.TOP_RIGHT):new pn(n.left+n.width-H/2,n.top+N/2),this.bottomRightBorderStroke=y>0||_>0?ms(n.left+O,n.top+I,y-H/2,_-z/2,ro.BOTTOM_RIGHT):new pn(n.left+n.width-H/2,n.top+n.height-z/2),this.bottomLeftBorderStroke=C>0||T>0?ms(n.left+G/2,n.top+U,C-G/2,T-z/2,ro.BOTTOM_LEFT):new pn(n.left+G/2,n.top+n.height-z/2),this.topLeftBorderBox=u>0||f>0?ms(n.left,n.top,u,f,ro.TOP_LEFT):new pn(n.left,n.top),this.topRightBorderBox=A>0||p>0?ms(n.left+P,n.top,A,p,ro.TOP_RIGHT):new pn(n.left+n.width,n.top),this.bottomRightBorderBox=y>0||_>0?ms(n.left+O,n.top+I,y,_,ro.BOTTOM_RIGHT):new pn(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=C>0||T>0?ms(n.left,n.top+U,C,T,ro.BOTTOM_LEFT):new pn(n.left,n.top+n.height),this.topLeftPaddingBox=u>0||f>0?ms(n.left+G,n.top+N,Math.max(0,u-G),Math.max(0,f-N),ro.TOP_LEFT):new pn(n.left+G,n.top+N),this.topRightPaddingBox=A>0||p>0?ms(n.left+Math.min(P,n.width-H),n.top+N,P>n.width+H?0:Math.max(0,A-H),Math.max(0,p-N),ro.TOP_RIGHT):new pn(n.left+n.width-H,n.top+N),this.bottomRightPaddingBox=y>0||_>0?ms(n.left+Math.min(O,n.width-G),n.top+Math.min(I,n.height-z),Math.max(0,y-H),Math.max(0,_-z),ro.BOTTOM_RIGHT):new pn(n.left+n.width-H,n.top+n.height-z),this.bottomLeftPaddingBox=C>0||T>0?ms(n.left+G,n.top+Math.min(U,n.height-z),Math.max(0,C-G),Math.max(0,T-z),ro.BOTTOM_LEFT):new pn(n.left+G,n.top+n.height-z),this.topLeftContentBox=u>0||f>0?ms(n.left+G+Y,n.top+N+j,Math.max(0,u-(G+Y)),Math.max(0,f-(N+j)),ro.TOP_LEFT):new pn(n.left+G+Y,n.top+N+j),this.topRightContentBox=A>0||p>0?ms(n.left+Math.min(P,n.width+G+Y),n.top+N+j,P>n.width+G+Y?0:A-G+Y,p-(N+j),ro.TOP_RIGHT):new pn(n.left+n.width-(H+q),n.top+N+j),this.bottomRightContentBox=y>0||_>0?ms(n.left+Math.min(O,n.width-(G+Y)),n.top+Math.min(I,n.height+N+j),Math.max(0,y-(H+q)),_-(z+X),ro.BOTTOM_RIGHT):new pn(n.left+n.width-(H+q),n.top+n.height-(z+X)),this.bottomLeftContentBox=C>0||T>0?ms(n.left+G+Y,n.top+U,Math.max(0,C-(G+Y)),T-(z+X),ro.BOTTOM_LEFT):new pn(n.left+G+Y,n.top+n.height-(z+X))}return t}(),ro;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ro||(ro={}));var ms=function(t,e,r,n,o){var u=4*((Math.sqrt(2)-1)/3),f=r*u,h=n*u,A=t+r,p=e+n;switch(o){case ro.TOP_LEFT:return new xD(new pn(t,p),new pn(t,p-h),new pn(A-f,e),new pn(A,e));case ro.TOP_RIGHT:return new xD(new pn(t,e),new pn(t+f,e),new pn(A,p-h),new pn(A,p));case ro.BOTTOM_RIGHT:return new xD(new pn(A,e),new pn(A,e+h),new pn(t+f,p),new pn(t,p));case ro.BOTTOM_LEFT:default:return new xD(new pn(A,p),new pn(A-f,p),new pn(t,e+h),new pn(t,e))}},DP=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},NEt=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},RP=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},UEt=function(){function t(e,r,n){this.offsetX=e,this.offsetY=r,this.matrix=n,this.type=0,this.target=6}return t}(),CD=function(){function t(e,r){this.path=e,this.target=r,this.type=1}return t}(),HEt=function(){function t(e){this.opacity=e,this.type=2,this.target=6}return t}(),QEt=function(t){return t.type===0},wPe=function(t){return t.type===1},VEt=function(t){return t.type===2},Twe=function(t,e){return t.length===e.length?t.some(function(r,n){return r===e[n]}):!1},zEt=function(t,e,r,n,o){return t.map(function(u,f){switch(f){case 0:return u.add(e,r);case 1:return u.add(e+n,r);case 2:return u.add(e+n,r+o);case 3:return u.add(e,r+o)}return u})},bPe=function(){function t(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),_Pe=function(){function t(e,r){if(this.container=e,this.parent=r,this.effects=[],this.curves=new FEt(this.container),this.container.styles.opacity<1&&this.effects.push(new HEt(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,o=this.container.bounds.top+this.container.styles.transformOrigin[1].number,u=this.container.styles.transform;this.effects.push(new UEt(n,o,u))}if(this.container.styles.overflowX!==0){var f=DP(this.curves),h=RP(this.curves);Twe(f,h)?this.effects.push(new CD(f,6)):(this.effects.push(new CD(f,2)),this.effects.push(new CD(h,4)))}}return t.prototype.getEffects=function(e){for(var r=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,o=this.effects.slice(0);n;){var u=n.effects.filter(function(A){return!wPe(A)});if(r||n.container.styles.position!==0||!n.parent){if(o.unshift.apply(o,u),r=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var f=DP(n.curves),h=RP(n.curves);Twe(f,h)||o.unshift(new CD(h,6))}}else o.unshift.apply(o,u);n=n.parent}return o.filter(function(A){return su(A.target,e)})},t}(),tK=function(t,e,r,n){t.container.elements.forEach(function(o){var u=su(o.flags,4),f=su(o.flags,2),h=new _Pe(o,t);su(o.styles.display,2048)&&n.push(h);var A=su(o.flags,8)?[]:n;if(u||f){var p=u||o.styles.isPositioned()?r:e,g=new bPe(h);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var y=o.styles.zIndex.order;if(y<0){var _=0;p.negativeZIndex.some(function(C,T){return y>C.element.container.styles.zIndex.order?(_=T,!1):_>0}),p.negativeZIndex.splice(_,0,g)}else if(y>0){var b=0;p.positiveZIndex.some(function(C,T){return y>=C.element.container.styles.zIndex.order?(b=T+1,!1):b>0}),p.positiveZIndex.splice(b,0,g)}else p.zeroOrAutoZIndexOrTransformedOrOpacity.push(g)}else o.styles.isFloating()?p.nonPositionedFloats.push(g):p.nonPositionedInlineLevel.push(g);tK(h,g,u?g:r,A)}else o.styles.isInlineLevel()?e.inlineLevel.push(h):e.nonInlineLevel.push(h),tK(h,e,r,A);su(o.flags,8)&&SPe(o,A)})},SPe=function(t,e){for(var r=t instanceof Y$?t.start:1,n=t instanceof Y$?t.reversed:!1,o=0;o<e.length;o++){var u=e[o];u.container instanceof oPe&&typeof u.container.value=="number"&&u.container.value!==0&&(r=u.container.value),u.listValue=S2(r,u.container.styles.listStyleType,!0),r+=n?-1:1}},GEt=function(t){var e=new _Pe(t,null),r=new bPe(e),n=[];return tK(e,r,r,n),SPe(e.container,n),r},Ewe=function(t,e){switch(e){case 0:return Od(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Od(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Od(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Od(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},jEt=function(t,e){switch(e){case 0:return Od(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Od(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Od(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Od(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},qEt=function(t,e){switch(e){case 0:return Od(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Od(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Od(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Od(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},WEt=function(t,e){switch(e){case 0:return TD(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return TD(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return TD(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return TD(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},TD=function(t,e){var r=[];return Cd(t)?r.push(t.subdivide(.5,!1)):r.push(t),Cd(e)?r.push(e.subdivide(.5,!0)):r.push(e),r},Od=function(t,e,r,n){var o=[];return Cd(t)?o.push(t.subdivide(.5,!1)):o.push(t),Cd(r)?o.push(r.subdivide(.5,!0)):o.push(r),Cd(n)?o.push(n.subdivide(.5,!0).reverse()):o.push(n),Cd(e)?o.push(e.subdivide(.5,!1).reverse()):o.push(e),o},xPe=function(t){var e=t.bounds,r=t.styles;return e.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},PP=function(t){var e=t.styles,r=t.bounds,n=jo(e.paddingLeft,r.width),o=jo(e.paddingRight,r.width),u=jo(e.paddingTop,r.width),f=jo(e.paddingBottom,r.width);return r.add(n+e.borderLeftWidth,u+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+o),-(e.borderTopWidth+e.borderBottomWidth+u+f))},$Et=function(t,e){return t===0?e.bounds:t===2?PP(e):xPe(e)},KEt=function(t,e){return t===0?e.bounds:t===2?PP(e):xPe(e)},sG=function(t,e,r){var n=$Et(F_(t.styles.backgroundOrigin,e),t),o=KEt(F_(t.styles.backgroundClip,e),t),u=YEt(F_(t.styles.backgroundSize,e),r,n),f=u[0],h=u[1],A=AE(F_(t.styles.backgroundPosition,e),n.width-f,n.height-h),p=XEt(F_(t.styles.backgroundRepeat,e),A,u,n,o),g=Math.round(n.left+A[0]),y=Math.round(n.top+A[1]);return[p,g,y,f,h]},d_=function(t){return Eo(t)&&t.value===AS.AUTO},ED=function(t){return typeof t=="number"},YEt=function(t,e,r){var n=e[0],o=e[1],u=e[2],f=t[0],h=t[1];if(!f)return[0,0];if(kl(f)&&h&&kl(h))return[jo(f,r.width),jo(h,r.height)];var A=ED(u);if(Eo(f)&&(f.value===AS.CONTAIN||f.value===AS.COVER)){if(ED(u)){var p=r.width/r.height;return p<u!=(f.value===AS.COVER)?[r.width,r.width/u]:[r.height*u,r.height]}return[r.width,r.height]}var g=ED(n),y=ED(o),_=g||y;if(d_(f)&&(!h||d_(h))){if(g&&y)return[n,o];if(!A&&!_)return[r.width,r.height];if(_&&A){var b=g?n:o*u,C=y?o:n/u;return[b,C]}var T=g?n:r.width,B=y?o:r.height;return[T,B]}if(A){var L=0,P=0;return kl(f)?L=jo(f,r.width):kl(h)&&(P=jo(h,r.height)),d_(f)?L=P*u:(!h||d_(h))&&(P=L/u),[L,P]}var I=null,O=null;if(kl(f)?I=jo(f,r.width):h&&kl(h)&&(O=jo(h,r.height)),I!==null&&(!h||d_(h))&&(O=g&&y?I/n*o:r.height),O!==null&&d_(f)&&(I=g&&y?O/o*n:r.width),I!==null&&O!==null)return[I,O];throw new Error("Unable to calculate background-size for element")},F_=function(t,e){var r=t[e];return typeof r>"u"?t[0]:r},XEt=function(t,e,r,n,o){var u=e[0],f=e[1],h=r[0],A=r[1];switch(t){case 2:return[new pn(Math.round(n.left),Math.round(n.top+f)),new pn(Math.round(n.left+n.width),Math.round(n.top+f)),new pn(Math.round(n.left+n.width),Math.round(A+n.top+f)),new pn(Math.round(n.left),Math.round(A+n.top+f))];case 3:return[new pn(Math.round(n.left+u),Math.round(n.top)),new pn(Math.round(n.left+u+h),Math.round(n.top)),new pn(Math.round(n.left+u+h),Math.round(n.height+n.top)),new pn(Math.round(n.left+u),Math.round(n.height+n.top))];case 1:return[new pn(Math.round(n.left+u),Math.round(n.top+f)),new pn(Math.round(n.left+u+h),Math.round(n.top+f)),new pn(Math.round(n.left+u+h),Math.round(n.top+f+A)),new pn(Math.round(n.left+u),Math.round(n.top+f+A))];default:return[new pn(Math.round(o.left),Math.round(o.top)),new pn(Math.round(o.left+o.width),Math.round(o.top)),new pn(Math.round(o.left+o.width),Math.round(o.height+o.top)),new pn(Math.round(o.left),Math.round(o.height+o.top))]}},ZEt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Bwe="Hidden Text",JEt=function(){function t(e){this._data={},this._document=e}return t.prototype.parseMetrics=function(e,r){var n=this._document.createElement("div"),o=this._document.createElement("img"),u=this._document.createElement("span"),f=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",f.appendChild(n),o.src=ZEt,o.width=1,o.height=1,o.style.margin="0",o.style.padding="0",o.style.verticalAlign="baseline",u.style.fontFamily=e,u.style.fontSize=r,u.style.margin="0",u.style.padding="0",u.appendChild(this._document.createTextNode(Bwe)),n.appendChild(u),n.appendChild(o);var h=o.offsetTop-u.offsetTop+2;n.removeChild(u),n.appendChild(this._document.createTextNode(Bwe)),n.style.lineHeight="normal",o.style.verticalAlign="super";var A=o.offsetTop-n.offsetTop+2;return f.removeChild(n),{baseline:h,middle:A}},t.prototype.getMetrics=function(e,r){var n=e+" "+r;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(e,r)),this._data[n]},t}(),CPe=function(){function t(e,r){this.context=e,this.options=r}return t}(),e2t=1e4,t2t=function(t){YA(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o._activeEffects=[],o.canvas=n.canvas?n.canvas:document.createElement("canvas"),o.ctx=o.canvas.getContext("2d"),n.canvas||(o.canvas.width=Math.floor(n.width*n.scale),o.canvas.height=Math.floor(n.height*n.scale),o.canvas.style.width=n.width+"px",o.canvas.style.height=n.height+"px"),o.fontMetrics=new JEt(document),o.ctx.scale(o.options.scale,o.options.scale),o.ctx.translate(-n.x,-n.y),o.ctx.textBaseline="bottom",o._activeEffects=[],o.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),o}return e.prototype.applyEffects=function(r){for(var n=this;this._activeEffects.length;)this.popEffect();r.forEach(function(o){return n.applyEffect(o)})},e.prototype.applyEffect=function(r){this.ctx.save(),VEt(r)&&(this.ctx.globalAlpha=r.opacity),QEt(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),wPe(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(r){return af(this,void 0,void 0,function(){var n;return Bc(this,function(o){switch(o.label){case 0:return n=r.element.container.styles,n.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(r){return af(this,void 0,void 0,function(){return Bc(this,function(n){switch(n.label){case 0:if(su(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(r)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(r,n,o){var u=this;if(n===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+o);else{var f=iZ(r.text);f.reduce(function(h,A){return u.ctx.fillText(A,h,r.bounds.top+o),h+u.ctx.measureText(A).width},r.bounds.left)}},e.prototype.createFontStyle=function(r){var n=r.fontVariant.filter(function(f){return f==="normal"||f==="small-caps"}).join(""),o=o2t(r.fontFamily).join(", "),u=yB(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,n,r.fontWeight,u,o].join(" "),o,u]},e.prototype.renderTextNode=function(r,n){return af(this,void 0,void 0,function(){var o,u,f,h,A,p,g,y,_=this;return Bc(this,function(b){return o=this.createFontStyle(n),u=o[0],f=o[1],h=o[2],this.ctx.font=u,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",A=this.fontMetrics.getMetrics(f,h),p=A.baseline,g=A.middle,y=n.paintOrder,r.textBounds.forEach(function(C){y.forEach(function(T){switch(T){case 0:_.ctx.fillStyle=bu(n.color),_.renderTextWithLetterSpacing(C,n.letterSpacing,p);var B=n.textShadow;B.length&&C.text.trim().length&&(B.slice(0).reverse().forEach(function(L){_.ctx.shadowColor=bu(L.color),_.ctx.shadowOffsetX=L.offsetX.number*_.options.scale,_.ctx.shadowOffsetY=L.offsetY.number*_.options.scale,_.ctx.shadowBlur=L.blur.number,_.renderTextWithLetterSpacing(C,n.letterSpacing,p)}),_.ctx.shadowColor="",_.ctx.shadowOffsetX=0,_.ctx.shadowOffsetY=0,_.ctx.shadowBlur=0),n.textDecorationLine.length&&(_.ctx.fillStyle=bu(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(L){switch(L){case 1:_.ctx.fillRect(C.bounds.left,Math.round(C.bounds.top+p),C.bounds.width,1);break;case 2:_.ctx.fillRect(C.bounds.left,Math.round(C.bounds.top),C.bounds.width,1);break;case 3:_.ctx.fillRect(C.bounds.left,Math.ceil(C.bounds.top+g),C.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&C.text.trim().length&&(_.ctx.strokeStyle=bu(n.webkitTextStrokeColor),_.ctx.lineWidth=n.webkitTextStrokeWidth,_.ctx.lineJoin=window.chrome?"miter":"round",_.ctx.strokeText(C.text,C.bounds.left,C.bounds.top+p)),_.ctx.strokeStyle="",_.ctx.lineWidth=0,_.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(r,n,o){if(o&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var u=PP(r),f=RP(n);this.path(f),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(o,0,0,r.intrinsicWidth,r.intrinsicHeight,u.left,u.top,u.width,u.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(r){return af(this,void 0,void 0,function(){var n,o,u,f,h,A,P,P,p,g,y,_,O,b,C,U,T,B,L,P,I,O,U;return Bc(this,function(N){switch(N.label){case 0:this.applyEffects(r.getEffects(4)),n=r.container,o=r.curves,u=n.styles,f=0,h=n.textNodes,N.label=1;case 1:return f<h.length?(A=h[f],[4,this.renderTextNode(A,u)]):[3,4];case 2:N.sent(),N.label=3;case 3:return f++,[3,1];case 4:if(!(n instanceof nPe))return[3,8];N.label=5;case 5:return N.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return P=N.sent(),this.renderReplacedElement(n,o,P),[3,8];case 7:return N.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof iPe&&this.renderReplacedElement(n,o,n.canvas),!(n instanceof aPe))return[3,12];N.label=9;case 9:return N.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return P=N.sent(),this.renderReplacedElement(n,o,P),[3,12];case 11:return N.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof uPe&&n.tree?(p=new e(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,p.render(n.tree)]):[3,14];case 13:g=N.sent(),n.width&&n.height&&this.ctx.drawImage(g,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),N.label=14;case 14:if(n instanceof aZ&&(y=Math.min(n.bounds.width,n.bounds.height),n.type===BP?n.checked&&(this.ctx.save(),this.path([new pn(n.bounds.left+y*.39363,n.bounds.top+y*.79),new pn(n.bounds.left+y*.16,n.bounds.top+y*.5549),new pn(n.bounds.left+y*.27347,n.bounds.top+y*.44071),new pn(n.bounds.left+y*.39694,n.bounds.top+y*.5649),new pn(n.bounds.left+y*.72983,n.bounds.top+y*.23),new pn(n.bounds.left+y*.84,n.bounds.top+y*.34085),new pn(n.bounds.left+y*.39363,n.bounds.top+y*.79)]),this.ctx.fillStyle=bu(vwe),this.ctx.fill(),this.ctx.restore()):n.type===IP&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+y/2,n.bounds.top+y/2,y/4,0,Math.PI*2,!0),this.ctx.fillStyle=bu(vwe),this.ctx.fill(),this.ctx.restore())),r2t(n)&&n.value.length){switch(_=this.createFontStyle(u),O=_[0],b=_[1],C=this.fontMetrics.getMetrics(O,b).baseline,this.ctx.font=O,this.ctx.fillStyle=bu(u.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=i2t(n.styles.textAlign),U=PP(n),T=0,n.styles.textAlign){case 1:T+=U.width/2;break;case 2:T+=U.width;break}B=U.add(T,0,0,-U.height/2+1),this.ctx.save(),this.path([new pn(U.left,U.top),new pn(U.left+U.width,U.top),new pn(U.left+U.width,U.top+U.height),new pn(U.left,U.top+U.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new HE(n.value,B),u.letterSpacing,C),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!su(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(L=n.styles.listStyleImage,L.type!==0)return[3,18];P=void 0,I=L.url,N.label=15;case 15:return N.trys.push([15,17,,18]),[4,this.context.cache.match(I)];case 16:return P=N.sent(),this.ctx.drawImage(P,n.bounds.left-(P.width+10),n.bounds.top),[3,18];case 17:return N.sent(),this.context.logger.error("Error loading list-style-image "+I),[3,18];case 18:return[3,20];case 19:r.listValue&&n.styles.listStyleType!==-1&&(O=this.createFontStyle(u)[0],this.ctx.font=O,this.ctx.fillStyle=bu(u.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",U=new _g(n.bounds.left,n.bounds.top+jo(n.styles.paddingTop,n.bounds.width),n.bounds.width,Z1e(u.lineHeight,u.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new HE(r.listValue,U),u.letterSpacing,Z1e(u.lineHeight,u.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),N.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(r){return af(this,void 0,void 0,function(){var n,o,L,u,f,L,h,A,L,p,g,L,y,_,L,b,C,L,T,B,L;return Bc(this,function(P){switch(P.label){case 0:if(su(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:P.sent(),n=0,o=r.negativeZIndex,P.label=2;case 2:return n<o.length?(L=o[n],[4,this.renderStack(L)]):[3,5];case 3:P.sent(),P.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:P.sent(),u=0,f=r.nonInlineLevel,P.label=7;case 7:return u<f.length?(L=f[u],[4,this.renderNode(L)]):[3,10];case 8:P.sent(),P.label=9;case 9:return u++,[3,7];case 10:h=0,A=r.nonPositionedFloats,P.label=11;case 11:return h<A.length?(L=A[h],[4,this.renderStack(L)]):[3,14];case 12:P.sent(),P.label=13;case 13:return h++,[3,11];case 14:p=0,g=r.nonPositionedInlineLevel,P.label=15;case 15:return p<g.length?(L=g[p],[4,this.renderStack(L)]):[3,18];case 16:P.sent(),P.label=17;case 17:return p++,[3,15];case 18:y=0,_=r.inlineLevel,P.label=19;case 19:return y<_.length?(L=_[y],[4,this.renderNode(L)]):[3,22];case 20:P.sent(),P.label=21;case 21:return y++,[3,19];case 22:b=0,C=r.zeroOrAutoZIndexOrTransformedOrOpacity,P.label=23;case 23:return b<C.length?(L=C[b],[4,this.renderStack(L)]):[3,26];case 24:P.sent(),P.label=25;case 25:return b++,[3,23];case 26:T=0,B=r.positiveZIndex,P.label=27;case 27:return T<B.length?(L=B[T],[4,this.renderStack(L)]):[3,30];case 28:P.sent(),P.label=29;case 29:return T++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},e.prototype.formatPath=function(r){var n=this;r.forEach(function(o,u){var f=Cd(o)?o.start:o;u===0?n.ctx.moveTo(f.x,f.y):n.ctx.lineTo(f.x,f.y),Cd(o)&&n.ctx.bezierCurveTo(o.startControl.x,o.startControl.y,o.endControl.x,o.endControl.y,o.end.x,o.end.y)})},e.prototype.renderRepeat=function(r,n,o,u){this.path(r),this.ctx.fillStyle=n,this.ctx.translate(o,u),this.ctx.fill(),this.ctx.translate(-o,-u)},e.prototype.resizeImage=function(r,n,o){var u;if(r.width===n&&r.height===o)return r;var f=(u=this.canvas.ownerDocument)!==null&&u!==void 0?u:document,h=f.createElement("canvas");h.width=Math.max(1,n),h.height=Math.max(1,o);var A=h.getContext("2d");return A.drawImage(r,0,0,r.width,r.height,0,0,n,o),h},e.prototype.renderBackgroundImage=function(r){return af(this,void 0,void 0,function(){var n,o,u,f,h,A;return Bc(this,function(p){switch(p.label){case 0:n=r.styles.backgroundImage.length-1,o=function(g){var y,_,b,j,ce,ae,Y,te,z,C,j,ce,ae,Y,te,T,B,L,P,I,O,U,N,H,z,G,j,q,X,Y,te,K,ce,ae,le,pe,ie,he,re,oe,ye,_e;return Bc(this,function(Ce){switch(Ce.label){case 0:if(g.type!==0)return[3,5];y=void 0,_=g.url,Ce.label=1;case 1:return Ce.trys.push([1,3,,4]),[4,u.context.cache.match(_)];case 2:return y=Ce.sent(),[3,4];case 3:return Ce.sent(),u.context.logger.error("Error loading background-image "+_),[3,4];case 4:return y&&(b=sG(r,n,[y.width,y.height,y.width/y.height]),j=b[0],ce=b[1],ae=b[2],Y=b[3],te=b[4],z=u.ctx.createPattern(u.resizeImage(y,Y,te),"repeat"),u.renderRepeat(j,z,ce,ae)),[3,6];case 5:Qxt(g)?(C=sG(r,n,[null,null,null]),j=C[0],ce=C[1],ae=C[2],Y=C[3],te=C[4],T=kxt(g.angle,Y,te),B=T[0],L=T[1],P=T[2],I=T[3],O=T[4],U=document.createElement("canvas"),U.width=Y,U.height=te,N=U.getContext("2d"),H=N.createLinearGradient(L,I,P,O),Y1e(g.stops,B).forEach(function(ne){return H.addColorStop(ne.stop,bu(ne.color))}),N.fillStyle=H,N.fillRect(0,0,Y,te),Y>0&&te>0&&(z=u.ctx.createPattern(U,"repeat"),u.renderRepeat(j,z,ce,ae))):Vxt(g)&&(G=sG(r,n,[null,null,null]),j=G[0],q=G[1],X=G[2],Y=G[3],te=G[4],K=g.position.length===0?[tZ]:g.position,ce=jo(K[0],Y),ae=jo(K[K.length-1],te),le=Fxt(g,ce,ae,Y,te),pe=le[0],ie=le[1],pe>0&&ie>0&&(he=u.ctx.createRadialGradient(q+ce,X+ae,0,q+ce,X+ae,pe),Y1e(g.stops,pe*2).forEach(function(ne){return he.addColorStop(ne.stop,bu(ne.color))}),u.path(j),u.ctx.fillStyle=he,pe!==ie?(re=r.bounds.left+.5*r.bounds.width,oe=r.bounds.top+.5*r.bounds.height,ye=ie/pe,_e=1/ye,u.ctx.save(),u.ctx.translate(re,oe),u.ctx.transform(1,0,0,ye,0,0),u.ctx.translate(-re,-oe),u.ctx.fillRect(q,_e*(X-oe)+oe,Y,te*_e),u.ctx.restore()):u.ctx.fill())),Ce.label=6;case 6:return n--,[2]}})},u=this,f=0,h=r.styles.backgroundImage.slice(0).reverse(),p.label=1;case 1:return f<h.length?(A=h[f],[5,o(A)]):[3,4];case 2:p.sent(),p.label=3;case 3:return f++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(r,n,o){return af(this,void 0,void 0,function(){return Bc(this,function(u){return this.path(Ewe(o,n)),this.ctx.fillStyle=bu(r),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(r,n,o,u){return af(this,void 0,void 0,function(){var f,h;return Bc(this,function(A){switch(A.label){case 0:return n<3?[4,this.renderSolidBorder(r,o,u)]:[3,2];case 1:return A.sent(),[2];case 2:return f=jEt(u,o),this.path(f),this.ctx.fillStyle=bu(r),this.ctx.fill(),h=qEt(u,o),this.path(h),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(r){return af(this,void 0,void 0,function(){var n,o,u,f,h,A,p,g,y=this;return Bc(this,function(_){switch(_.label){case 0:return this.applyEffects(r.getEffects(2)),n=r.container.styles,o=!hy(n.backgroundColor)||n.backgroundImage.length,u=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],f=n2t(F_(n.backgroundClip,0),r.curves),o||n.boxShadow.length?(this.ctx.save(),this.path(f),this.ctx.clip(),hy(n.backgroundColor)||(this.ctx.fillStyle=bu(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:_.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(b){y.ctx.save();var C=DP(r.curves),T=b.inset?0:e2t,B=zEt(C,-T+(b.inset?1:-1)*b.spread.number,(b.inset?1:-1)*b.spread.number,b.spread.number*(b.inset?-2:2),b.spread.number*(b.inset?-2:2));b.inset?(y.path(C),y.ctx.clip(),y.mask(B)):(y.mask(C),y.ctx.clip(),y.path(B)),y.ctx.shadowOffsetX=b.offsetX.number+T,y.ctx.shadowOffsetY=b.offsetY.number,y.ctx.shadowColor=bu(b.color),y.ctx.shadowBlur=b.blur.number,y.ctx.fillStyle=b.inset?bu(b.color):"rgba(0,0,0,1)",y.ctx.fill(),y.ctx.restore()}),_.label=2;case 2:h=0,A=0,p=u,_.label=3;case 3:return A<p.length?(g=p[A],g.style!==0&&!hy(g.color)&&g.width>0?g.style!==2?[3,5]:[4,this.renderDashedDottedBorder(g.color,g.width,h,r.curves,2)]:[3,11]):[3,13];case 4:return _.sent(),[3,11];case 5:return g.style!==3?[3,7]:[4,this.renderDashedDottedBorder(g.color,g.width,h,r.curves,3)];case 6:return _.sent(),[3,11];case 7:return g.style!==4?[3,9]:[4,this.renderDoubleBorder(g.color,g.width,h,r.curves)];case 8:return _.sent(),[3,11];case 9:return[4,this.renderSolidBorder(g.color,h,r.curves)];case 10:_.sent(),_.label=11;case 11:h++,_.label=12;case 12:return A++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(r,n,o,u,f){return af(this,void 0,void 0,function(){var h,A,p,g,y,_,b,C,T,B,L,P,I,O,U,N,U,N;return Bc(this,function(H){return this.ctx.save(),h=WEt(u,o),A=Ewe(u,o),f===2&&(this.path(A),this.ctx.clip()),Cd(A[0])?(p=A[0].start.x,g=A[0].start.y):(p=A[0].x,g=A[0].y),Cd(A[1])?(y=A[1].end.x,_=A[1].end.y):(y=A[1].x,_=A[1].y),o===0||o===2?b=Math.abs(p-y):b=Math.abs(g-_),this.ctx.beginPath(),f===3?this.formatPath(h):this.formatPath(A.slice(0,2)),C=n<3?n*3:n*2,T=n<3?n*2:n,f===3&&(C=n,T=n),B=!0,b<=C*2?B=!1:b<=C*2+T?(L=b/(2*C+T),C*=L,T*=L):(P=Math.floor((b+T)/(C+T)),I=(b-P*C)/(P-1),O=(b-(P+1)*C)/P,T=O<=0||Math.abs(T-I)<Math.abs(T-O)?I:O),B&&(f===3?this.ctx.setLineDash([0,C+T]):this.ctx.setLineDash([C,T])),f===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=bu(r),this.ctx.stroke(),this.ctx.setLineDash([]),f===2&&(Cd(A[0])&&(U=A[3],N=A[0],this.ctx.beginPath(),this.formatPath([new pn(U.end.x,U.end.y),new pn(N.start.x,N.start.y)]),this.ctx.stroke()),Cd(A[1])&&(U=A[1],N=A[2],this.ctx.beginPath(),this.formatPath([new pn(U.end.x,U.end.y),new pn(N.start.x,N.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(r){return af(this,void 0,void 0,function(){var n;return Bc(this,function(o){switch(o.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=bu(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=GEt(r),[4,this.renderStack(n)];case 1:return o.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(CPe),r2t=function(t){return t instanceof lPe||t instanceof sPe?!0:t instanceof aZ&&t.type!==IP&&t.type!==BP},n2t=function(t,e){switch(t){case 0:return DP(e);case 2:return NEt(e);case 1:default:return RP(e)}},i2t=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},a2t=["-apple-system","system-ui"],o2t=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(e){return a2t.indexOf(e)===-1}):t},s2t=function(t){YA(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.canvas=n.canvas?n.canvas:document.createElement("canvas"),o.ctx=o.canvas.getContext("2d"),o.options=n,o.canvas.width=Math.floor(n.width*n.scale),o.canvas.height=Math.floor(n.height*n.scale),o.canvas.style.width=n.width+"px",o.canvas.style.height=n.height+"px",o.ctx.scale(o.options.scale,o.options.scale),o.ctx.translate(-n.x,-n.y),o.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),o}return e.prototype.render=function(r){return af(this,void 0,void 0,function(){var n,o;return Bc(this,function(u){switch(u.label){case 0:return n=K$(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,l2t(n)];case 1:return o=u.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=bu(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(o,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(CPe),l2t=function(t){return new Promise(function(e,r){var n=new Image;n.onload=function(){e(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},u2t=function(){function t(e){var r=e.id,n=e.enabled;this.id=r,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,aD([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,aD([this.id,this.getTime()+"ms"],e))},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,aD([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,aD([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},t.instances={},t}(),c2t=function(){function t(e,r){var n;this.windowBounds=r,this.instanceName="#"+t.instanceCount++,this.logger=new u2t({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new LEt(this,e)}return t.instanceCount=1,t}(),f2t=function(t,e){return e===void 0&&(e={}),h2t(t,e)};typeof window<"u"&&yPe.setContext(window);var h2t=function(t,e){return af(void 0,void 0,void 0,function(){var r,n,o,u,f,h,A,p,g,y,_,b,C,T,B,L,P,I,O,U,H,N,H,z,G,j,q,X,Y,te,K,ce,ae,le,pe,ie,he,re,oe,ye;return Bc(this,function(_e){switch(_e.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=t.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(n=r.defaultView,!n)throw new Error("Document is not attached to a Window");return o={allowTaint:(z=e.allowTaint)!==null&&z!==void 0?z:!1,imageTimeout:(G=e.imageTimeout)!==null&&G!==void 0?G:15e3,proxy:e.proxy,useCORS:(j=e.useCORS)!==null&&j!==void 0?j:!1},u=P$({logging:(q=e.logging)!==null&&q!==void 0?q:!0,cache:e.cache},o),f={windowWidth:(X=e.windowWidth)!==null&&X!==void 0?X:n.innerWidth,windowHeight:(Y=e.windowHeight)!==null&&Y!==void 0?Y:n.innerHeight,scrollX:(te=e.scrollX)!==null&&te!==void 0?te:n.pageXOffset,scrollY:(K=e.scrollY)!==null&&K!==void 0?K:n.pageYOffset},h=new _g(f.scrollX,f.scrollY,f.windowWidth,f.windowHeight),A=new c2t(u,h),p=(ce=e.foreignObjectRendering)!==null&&ce!==void 0?ce:!1,g={allowTaint:(ae=e.allowTaint)!==null&&ae!==void 0?ae:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:p,copyStyles:p},A.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),y=new xwe(A,t,g),_=y.clonedReferenceElement,_?[4,y.toIFrame(r,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return b=_e.sent(),C=oZ(_)||dEt(_)?z_t(_.ownerDocument):Ak(A,_),T=C.width,B=C.height,L=C.left,P=C.top,I=d2t(A,_,e.backgroundColor),O={canvas:e.canvas,backgroundColor:I,scale:(pe=(le=e.scale)!==null&&le!==void 0?le:n.devicePixelRatio)!==null&&pe!==void 0?pe:1,x:((ie=e.x)!==null&&ie!==void 0?ie:0)+L,y:((he=e.y)!==null&&he!==void 0?he:0)+P,width:(re=e.width)!==null&&re!==void 0?re:Math.ceil(T),height:(oe=e.height)!==null&&oe!==void 0?oe:Math.ceil(B)},p?(A.logger.debug("Document cloned, using foreign object rendering"),H=new s2t(A,O),[4,H.render(_)]):[3,3];case 2:return U=_e.sent(),[3,5];case 3:return A.logger.debug("Document cloned, element located at "+L+","+P+" with size "+T+"x"+B+" using computed rendering"),A.logger.debug("Starting DOM parsing"),N=fPe(A,_),I===N.styles.backgroundColor&&(N.styles.backgroundColor=Ag.TRANSPARENT),A.logger.debug("Starting renderer for element at "+O.x+","+O.y+" with size "+O.width+"x"+O.height),H=new t2t(A,O),[4,H.render(N)];case 4:U=_e.sent(),_e.label=5;case 5:return(!((ye=e.removeContainer)!==null&&ye!==void 0)||ye)&&(xwe.destroy(b)||A.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),A.logger.debug("Finished rendering"),[2,U]}})})},d2t=function(t,e,r){var n=e.ownerDocument,o=n.documentElement?NE(t,getComputedStyle(n.documentElement).backgroundColor):Ag.TRANSPARENT,u=n.body?NE(t,getComputedStyle(n.body).backgroundColor):Ag.TRANSPARENT,f=typeof r=="string"?NE(t,r):r===null?Ag.TRANSPARENT:4294967295;return e===n.documentElement?hy(o)?hy(u)?f:u:o:f};const A2t=Object.freeze(Object.defineProperty({__proto__:null,default:f2t},Symbol.toStringTag,{value:"Module"}));var lG,Iwe;function v2t(){if(Iwe)return lG;Iwe=1;var t=jBe();function e(r){return t(r)?void 0:r}return lG=e,lG}var uG,Lwe;function p2t(){if(Lwe)return uG;Lwe=1;var t=LO(),e=nMe(),r=iMe(),n=jS(),o=$S(),u=v2t(),f=tMe(),h=XY(),A=1,p=2,g=4,y=f(function(_,b){var C={};if(_==null)return C;var T=!1;b=t(b,function(L){return L=n(L,_),T||(T=L.length>1),L}),o(_,h(_),C),T&&(C=e(C,A|p|g,u));for(var B=b.length;B--;)r(C,b[B]);return C});return uG=y,uG}var g2t=p2t();const mQt=Dn(g2t),Ii=t=>typeof t=="string",bT=()=>{let t,e;const r=new Promise((n,o)=>{t=n,e=o});return r.resolve=t,r.reject=e,r},Mwe=t=>t==null?"":""+t,m2t=(t,e,r)=>{t.forEach(n=>{e[n]&&(r[n]=e[n])})},y2t=/###/g,Dwe=t=>t&&t.indexOf("###")>-1?t.replace(y2t,"."):t,Rwe=t=>!t||Ii(t),VE=(t,e,r)=>{const n=Ii(e)?e.split("."):e;let o=0;for(;o<n.length-1;){if(Rwe(t))return{};const u=Dwe(n[o]);!t[u]&&r&&(t[u]=new r),Object.prototype.hasOwnProperty.call(t,u)?t=t[u]:t={},++o}return Rwe(t)?{}:{obj:t,k:Dwe(n[o])}},Pwe=(t,e,r)=>{const{obj:n,k:o}=VE(t,e,Object);if(n!==void 0||e.length===1){n[o]=r;return}let u=e[e.length-1],f=e.slice(0,e.length-1),h=VE(t,f,Object);for(;h.obj===void 0&&f.length;)u=`${f[f.length-1]}.${u}`,f=f.slice(0,f.length-1),h=VE(t,f,Object),h?.obj&&typeof h.obj[`${h.k}.${u}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${u}`]=r},w2t=(t,e,r,n)=>{const{obj:o,k:u}=VE(t,e,Object);o[u]=o[u]||[],o[u].push(r)},OP=(t,e)=>{const{obj:r,k:n}=VE(t,e);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},b2t=(t,e,r)=>{const n=OP(t,r);return n!==void 0?n:OP(e,r)},TPe=(t,e,r)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?Ii(t[n])||t[n]instanceof String||Ii(e[n])||e[n]instanceof String?r&&(t[n]=e[n]):TPe(t[n],e[n],r):t[n]=e[n]);return t},A_=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var _2t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const S2t=t=>Ii(t)?t.replace(/[&<>"'\/]/g,e=>_2t[e]):t;class x2t{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const r=this.regExpMap.get(e);if(r!==void 0)return r;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const C2t=[" ",",","?","!",";"],T2t=new x2t(20),E2t=(t,e,r)=>{e=e||"",r=r||"";const n=C2t.filter(f=>e.indexOf(f)<0&&r.indexOf(f)<0);if(n.length===0)return!0;const o=T2t.getRegExp(`(${n.map(f=>f==="?"?"\\?":f).join("|")})`);let u=!o.test(t);if(!u){const f=t.indexOf(r);f>0&&!o.test(t.substring(0,f))&&(u=!0)}return u},rK=(t,e,r=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const n=e.split(r);let o=t;for(let u=0;u<n.length;){if(!o||typeof o!="object")return;let f,h="";for(let A=u;A<n.length;++A)if(A!==u&&(h+=r),h+=n[A],f=o[h],f!==void 0){if(["string","number","boolean"].indexOf(typeof f)>-1&&A<n.length-1)continue;u+=A-u+1;break}o=f}return o},x2=t=>t?.replace("_","-"),B2t={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class kP{constructor(e,r={}){this.init(e,r)}init(e,r={}){this.prefix=r.prefix||"i18next:",this.logger=e||B2t,this.options=r,this.debug=r.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,r,n,o){return o&&!this.debug?null:(Ii(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[r](e))}create(e){return new kP(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new kP(this.logger,e)}}var $v=new kP;class xk{constructor(){this.observers={}}on(e,r){return e.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(e,r){if(this.observers[e]){if(!r){delete this.observers[e];return}this.observers[e].delete(r)}}emit(e,...r){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([o,u])=>{for(let f=0;f<u;f++)o(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,u])=>{for(let f=0;f<u;f++)o.apply(o,[e,...r])})}}class Owe extends xk{constructor(e,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const r=this.options.ns.indexOf(e);r>-1&&this.options.ns.splice(r,1)}getResource(e,r,n,o={}){const u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,f=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;e.indexOf(".")>-1?h=e.split("."):(h=[e,r],n&&(Array.isArray(n)?h.push(...n):Ii(n)&&u?h.push(...n.split(u)):h.push(n)));const A=OP(this.data,h);return!A&&!r&&!n&&e.indexOf(".")>-1&&(e=h[0],r=h[1],n=h.slice(2).join(".")),A||!f||!Ii(n)?A:rK(this.data?.[e]?.[r],n,u)}addResource(e,r,n,o,u={silent:!1}){const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator;let h=[e,r];n&&(h=h.concat(f?n.split(f):n)),e.indexOf(".")>-1&&(h=e.split("."),o=r,r=h[1]),this.addNamespaces(r),Pwe(this.data,h,o),u.silent||this.emit("added",e,r,n,o)}addResources(e,r,n,o={silent:!1}){for(const u in n)(Ii(n[u])||Array.isArray(n[u]))&&this.addResource(e,r,u,n[u],{silent:!0});o.silent||this.emit("added",e,r,n)}addResourceBundle(e,r,n,o,u,f={silent:!1,skipCopy:!1}){let h=[e,r];e.indexOf(".")>-1&&(h=e.split("."),o=n,n=r,r=h[1]),this.addNamespaces(r);let A=OP(this.data,h)||{};f.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?TPe(A,n,u):A={...A,...n},Pwe(this.data,h,A),f.silent||this.emit("added",e,r,n)}removeResourceBundle(e,r){this.hasResourceBundle(e,r)&&delete this.data[e][r],this.removeNamespaces(r),this.emit("removed",e,r)}hasResourceBundle(e,r){return this.getResource(e,r)!==void 0}getResourceBundle(e,r){return r||(r=this.options.defaultNS),this.getResource(e,r)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const r=this.getDataByLanguage(e);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}}var EPe={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,n,o){return t.forEach(u=>{e=this.processors[u]?.process(e,r,n,o)??e}),e}};const BPe=Symbol("i18next/PATH_KEY");function I2t(){const t=[],e=Object.create(null);let r;return e.get=(n,o)=>(r?.revoke?.(),o===BPe?t:(t.push(o),r=Proxy.revocable(n,e),r.proxy)),Proxy.revocable(Object.create(null),e).proxy}function nK(t,e){const{[BPe]:r}=t(I2t());return r.join(e?.keySeparator??".")}const kwe={},Fwe=t=>!Ii(t)&&typeof t!="boolean"&&typeof t!="number";class FP extends xk{constructor(e,r={}){super(),m2t(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=$v.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,r={interpolation:{}}){const n={...r};return e==null?!1:this.resolve(e,n)?.res!==void 0}extractFromKey(e,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let u=r.ns||this.options.defaultNS||[];const f=n&&e.indexOf(n)>-1,h=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!E2t(e,n,o);if(f&&!h){const A=e.match(this.interpolator.nestingRegexp);if(A&&A.length>0)return{key:e,namespaces:Ii(u)?[u]:u};const p=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(p[0])>-1)&&(u=p.shift()),e=p.join(o)}return{key:e,namespaces:Ii(u)?[u]:u}}translate(e,r,n){let o=typeof r=="object"?{...r}:r;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),e==null)return"";typeof e=="function"&&(e=nK(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]);const u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,f=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:h,namespaces:A}=this.extractFromKey(e[e.length-1],o),p=A[A.length-1];let g=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const y=o.lng||this.language,_=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(y?.toLowerCase()==="cimode")return _?u?{res:`${p}${g}${h}`,usedKey:h,exactUsedKey:h,usedLng:y,usedNS:p,usedParams:this.getUsedParamsDetails(o)}:`${p}${g}${h}`:u?{res:h,usedKey:h,exactUsedKey:h,usedLng:y,usedNS:p,usedParams:this.getUsedParamsDetails(o)}:h;const b=this.resolve(e,o);let C=b?.res;const T=b?.usedKey||h,B=b?.exactUsedKey||h,L=["[object Number]","[object Function]","[object RegExp]"],P=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject,O=o.count!==void 0&&!Ii(o.count),U=FP.hasDefaultValue(o),N=O?this.pluralResolver.getSuffix(y,o.count,o):"",H=o.ordinal&&O?this.pluralResolver.getSuffix(y,o.count,{ordinal:!1}):"",z=O&&!o.ordinal&&o.count===0,G=z&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${N}`]||o[`defaultValue${H}`]||o.defaultValue;let j=C;I&&!C&&U&&(j=G);const q=Fwe(j),X=Object.prototype.toString.apply(j);if(I&&j&&q&&L.indexOf(X)<0&&!(Ii(P)&&Array.isArray(j))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Y=this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,j,{...o,ns:A}):`key '${h} (${this.language})' returned an object instead of string.`;return u?(b.res=Y,b.usedParams=this.getUsedParamsDetails(o),b):Y}if(f){const Y=Array.isArray(j),te=Y?[]:{},K=Y?B:T;for(const ce in j)if(Object.prototype.hasOwnProperty.call(j,ce)){const ae=`${K}${f}${ce}`;U&&!C?te[ce]=this.translate(ae,{...o,defaultValue:Fwe(G)?G[ce]:void 0,joinArrays:!1,ns:A}):te[ce]=this.translate(ae,{...o,joinArrays:!1,ns:A}),te[ce]===ae&&(te[ce]=j[ce])}C=te}}else if(I&&Ii(P)&&Array.isArray(C))C=C.join(P),C&&(C=this.extendTranslation(C,e,o,n));else{let Y=!1,te=!1;!this.isValidLookup(C)&&U&&(Y=!0,C=G),this.isValidLookup(C)||(te=!0,C=h);const ce=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&te?void 0:C,ae=U&&G!==C&&this.options.updateMissing;if(te||Y||ae){if(this.logger.log(ae?"updateKey":"missingKey",y,p,h,ae?G:C),f){const he=this.resolve(h,{...o,keySeparator:!1});he&&he.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let le=[];const pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(let he=0;he<pe.length;he++)le.push(pe[he]);else this.options.saveMissingTo==="all"?le=this.languageUtils.toResolveHierarchy(o.lng||this.language):le.push(o.lng||this.language);const ie=(he,re,oe)=>{const ye=U&&oe!==C?oe:ce;this.options.missingKeyHandler?this.options.missingKeyHandler(he,p,re,ye,ae,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(he,p,re,ye,ae,o),this.emit("missingKey",he,p,re,C)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?le.forEach(he=>{const re=this.pluralResolver.getSuffixes(he,o);z&&o[`defaultValue${this.options.pluralSeparator}zero`]&&re.indexOf(`${this.options.pluralSeparator}zero`)<0&&re.push(`${this.options.pluralSeparator}zero`),re.forEach(oe=>{ie([he],h+oe,o[`defaultValue${oe}`]||G)})}):ie(le,h,G))}C=this.extendTranslation(C,e,o,b,n),te&&C===h&&this.options.appendNamespaceToMissingKey&&(C=`${p}${g}${h}`),(te||Y)&&this.options.parseMissingKeyHandler&&(C=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${g}${h}`:h,Y?C:void 0,o))}return u?(b.res=C,b.usedParams=this.getUsedParamsDetails(o),b):C}extendTranslation(e,r,n,o,u){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const A=Ii(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(A){const y=e.match(this.interpolator.nestingRegexp);p=y&&y.length}let g=n.replace&&!Ii(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),e=this.interpolator.interpolate(e,g,n.lng||this.language||o.usedLng,n),A){const y=e.match(this.interpolator.nestingRegexp),_=y&&y.length;p<_&&(n.nest=!1)}!n.lng&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...y)=>u?.[0]===y[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${r[0]}`),null):this.translate(...y,r),n)),n.interpolation&&this.interpolator.reset()}const f=n.postProcess||this.options.postProcess,h=Ii(f)?[f]:f;return e!=null&&h?.length&&n.applyPostProcessor!==!1&&(e=EPe.handle(h,e,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,r={}){let n,o,u,f,h;return Ii(e)&&(e=[e]),e.forEach(A=>{if(this.isValidLookup(n))return;const p=this.extractFromKey(A,r),g=p.key;o=g;let y=p.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const _=r.count!==void 0&&!Ii(r.count),b=_&&!r.ordinal&&r.count===0,C=r.context!==void 0&&(Ii(r.context)||typeof r.context=="number")&&r.context!=="",T=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);y.forEach(B=>{this.isValidLookup(n)||(h=B,!kwe[`${T[0]}-${B}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(h)&&(kwe[`${T[0]}-${B}`]=!0,this.logger.warn(`key "${o}" for languages "${T.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),T.forEach(L=>{if(this.isValidLookup(n))return;f=L;const P=[g];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(P,g,L,B,r);else{let O;_&&(O=this.pluralResolver.getSuffix(L,r.count,r));const U=`${this.options.pluralSeparator}zero`,N=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(_&&(r.ordinal&&O.indexOf(N)===0&&P.push(g+O.replace(N,this.options.pluralSeparator)),P.push(g+O),b&&P.push(g+U)),C){const H=`${g}${this.options.contextSeparator||"_"}${r.context}`;P.push(H),_&&(r.ordinal&&O.indexOf(N)===0&&P.push(H+O.replace(N,this.options.pluralSeparator)),P.push(H+O),b&&P.push(H+U))}}let I;for(;I=P.pop();)this.isValidLookup(n)||(u=I,n=this.getResource(L,B,I,r))}))})}),{res:n,usedKey:o,exactUsedKey:u,usedLng:f,usedNS:h}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,r,n,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,r,n,o):this.resourceStore.getResource(e,r,n,o)}getUsedParamsDetails(e={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!Ii(e.replace);let o=n?e.replace:e;if(n&&typeof e.count<"u"&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const u of r)delete o[u]}return o}static hasDefaultValue(e){const r="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r===n.substring(0,r.length)&&e[n]!==void 0)return!0;return!1}}class Nwe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$v.create("languageUtils")}getScriptPartFromCode(e){if(e=x2(e),!e||e.indexOf("-")<0)return null;const r=e.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(e){if(e=x2(e),!e||e.indexOf("-")<0)return e;const r=e.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(e){if(Ii(e)&&e.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(e)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let r;return e.forEach(n=>{if(r)return;const o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&e.forEach(n=>{if(r)return;const o=this.getScriptPartFromCode(n);if(this.isSupportedCode(o))return r=o;const u=this.getLanguagePartFromCode(n);if(this.isSupportedCode(u))return r=u;r=this.options.supportedLngs.find(f=>{if(f===u)return f;if(!(f.indexOf("-")<0&&u.indexOf("-")<0)&&(f.indexOf("-")>0&&u.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===u||f.indexOf(u)===0&&u.length>1))return f})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),Ii(e)&&(e=[e]),Array.isArray(e))return e;if(!r)return e.default||[];let n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}toResolveHierarchy(e,r){const n=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],e),o=[],u=f=>{f&&(this.isSupportedCode(f)?o.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return Ii(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&u(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&u(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&u(this.getLanguagePartFromCode(e))):Ii(e)&&u(this.formatLanguageCode(e)),n.forEach(f=>{o.indexOf(f)<0&&u(this.formatLanguageCode(f))}),o}}const Uwe={zero:0,one:1,two:2,few:3,many:4,other:5},Hwe={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class L2t{constructor(e,r={}){this.languageUtils=e,this.options=r,this.logger=$v.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,r){this.rules[e]=r}clearCache(){this.pluralRulesCache={}}getRule(e,r={}){const n=x2(e==="dev"?"en":e),o=r.ordinal?"ordinal":"cardinal",u=JSON.stringify({cleanedCode:n,type:o});if(u in this.pluralRulesCache)return this.pluralRulesCache[u];let f;try{f=new Intl.PluralRules(n,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Hwe;if(!e.match(/-|_/))return Hwe;const A=this.languageUtils.getLanguagePartFromCode(e);f=this.getRule(A,r)}return this.pluralRulesCache[u]=f,f}needsPlural(e,r={}){let n=this.getRule(e,r);return n||(n=this.getRule("dev",r)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,r,n={}){return this.getSuffixes(e,n).map(o=>`${r}${o}`)}getSuffixes(e,r={}){let n=this.getRule(e,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((o,u)=>Uwe[o]-Uwe[u]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(e,r,n={}){const o=this.getRule(e,n);return o?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",r,n))}}const Qwe=(t,e,r,n=".",o=!0)=>{let u=b2t(t,e,r);return!u&&o&&Ii(r)&&(u=rK(t,r,n),u===void 0&&(u=rK(e,r,n))),u},cG=t=>t.replace(/\$/g,"$$$$");class M2t{constructor(e={}){this.logger=$v.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(r=>r),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:u,prefixEscaped:f,suffix:h,suffixEscaped:A,formatSeparator:p,unescapeSuffix:g,unescapePrefix:y,nestingPrefix:_,nestingPrefixEscaped:b,nestingSuffix:C,nestingSuffixEscaped:T,nestingOptionsSeparator:B,maxReplaces:L,alwaysFormat:P}=e.interpolation;this.escape=r!==void 0?r:S2t,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=u?A_(u):f||"{{",this.suffix=h?A_(h):A||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=_?A_(_):b||A_("$t("),this.nestingSuffix=C?A_(C):T||A_(")"),this.nestingOptionsSeparator=B||",",this.maxReplaces=L||1e3,this.alwaysFormat=P!==void 0?P:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(r,n)=>r?.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,r,n,o){let u,f,h;const A=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=b=>{if(b.indexOf(this.formatSeparator)<0){const L=Qwe(r,A,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(L,void 0,n,{...o,...r,interpolationkey:b}):L}const C=b.split(this.formatSeparator),T=C.shift().trim(),B=C.join(this.formatSeparator).trim();return this.format(Qwe(r,A,T,this.options.keySeparator,this.options.ignoreJSONStructure),B,n,{...o,...r,interpolationkey:T})};this.resetRegExp();const g=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,y=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>cG(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?cG(this.escape(b)):cG(b)}].forEach(b=>{for(h=0;u=b.regex.exec(e);){const C=u[1].trim();if(f=p(C),f===void 0)if(typeof g=="function"){const B=g(e,u,o);f=Ii(B)?B:""}else if(o&&Object.prototype.hasOwnProperty.call(o,C))f="";else if(y){f=u[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${e}`),f="";else!Ii(f)&&!this.useRawValueToEscape&&(f=Mwe(f));const T=b.safeValue(f);if(e=e.replace(u[0],T),y?(b.regex.lastIndex+=f.length,b.regex.lastIndex-=u[0].length):b.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),e}nest(e,r,n={}){let o,u,f;const h=(A,p)=>{const g=this.nestingOptionsSeparator;if(A.indexOf(g)<0)return A;const y=A.split(new RegExp(`${g}[ ]*{`));let _=`{${y[1]}`;A=y[0],_=this.interpolate(_,f);const b=_.match(/'/g),C=_.match(/"/g);((b?.length??0)%2===0&&!C||C.length%2!==0)&&(_=_.replace(/'/g,'"'));try{f=JSON.parse(_),p&&(f={...p,...f})}catch(T){return this.logger.warn(`failed parsing options string in nesting for key ${A}`,T),`${A}${g}${_}`}return f.defaultValue&&f.defaultValue.indexOf(this.prefix)>-1&&delete f.defaultValue,A};for(;o=this.nestingRegexp.exec(e);){let A=[];f={...n},f=f.replace&&!Ii(f.replace)?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;const p=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(p!==-1&&(A=o[1].slice(p).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),o[1]=o[1].slice(0,p)),u=r(h.call(this,o[1].trim(),f),f),u&&o[0]===e&&!Ii(u))return u;Ii(u)||(u=Mwe(u)),u||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),u=""),A.length&&(u=A.reduce((g,y)=>this.format(g,y,n.lng,{...n,interpolationkey:o[1].trim()}),u.trim())),e=e.replace(o[0],u),this.regexp.lastIndex=0}return e}}const D2t=t=>{let e=t.toLowerCase().trim();const r={};if(t.indexOf("(")>-1){const n=t.split("(");e=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);e==="currency"&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):e==="relativetime"&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach(f=>{if(f){const[h,...A]=f.split(":"),p=A.join(":").trim().replace(/^'+|'+$/g,""),g=h.trim();r[g]||(r[g]=p),p==="false"&&(r[g]=!1),p==="true"&&(r[g]=!0),isNaN(p)||(r[g]=parseInt(p,10))}})}return{formatName:e,formatOptions:r}},Vwe=t=>{const e={};return(r,n,o)=>{let u=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(u={...u,[o.interpolationkey]:void 0});const f=n+JSON.stringify(u);let h=e[f];return h||(h=t(x2(n),o),e[f]=h),h(r)}},R2t=t=>(e,r,n)=>t(x2(r),n)(e);class P2t{constructor(e={}){this.logger=$v.create("formatter"),this.options=e,this.init(e)}init(e,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const n=r.cacheInBuiltFormats?Vwe:R2t;this.formats={number:n((o,u)=>{const f=new Intl.NumberFormat(o,{...u});return h=>f.format(h)}),currency:n((o,u)=>{const f=new Intl.NumberFormat(o,{...u,style:"currency"});return h=>f.format(h)}),datetime:n((o,u)=>{const f=new Intl.DateTimeFormat(o,{...u});return h=>f.format(h)}),relativetime:n((o,u)=>{const f=new Intl.RelativeTimeFormat(o,{...u});return h=>f.format(h,u.range||"day")}),list:n((o,u)=>{const f=new Intl.ListFormat(o,{...u});return h=>f.format(h)})}}add(e,r){this.formats[e.toLowerCase().trim()]=r}addCached(e,r){this.formats[e.toLowerCase().trim()]=Vwe(r)}format(e,r,n,o={}){const u=r.split(this.formatSeparator);if(u.length>1&&u[0].indexOf("(")>1&&u[0].indexOf(")")<0&&u.find(h=>h.indexOf(")")>-1)){const h=u.findIndex(A=>A.indexOf(")")>-1);u[0]=[u[0],...u.splice(1,h)].join(this.formatSeparator)}return u.reduce((h,A)=>{const{formatName:p,formatOptions:g}=D2t(A);if(this.formats[p]){let y=h;try{const _=o?.formatParams?.[o.interpolationkey]||{},b=_.locale||_.lng||o.locale||o.lng||n;y=this.formats[p](h,b,{...g,...o,..._})}catch(_){this.logger.warn(_)}return y}else this.logger.warn(`there was no format function for ${p}`);return h},e)}}const O2t=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class k2t extends xk{constructor(e,r,n,o={}){super(),this.backend=e,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=$v.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,o.backend,o)}queueLoad(e,r,n,o){const u={},f={},h={},A={};return e.forEach(p=>{let g=!0;r.forEach(y=>{const _=`${p}|${y}`;!n.reload&&this.store.hasResourceBundle(p,y)?this.state[_]=2:this.state[_]<0||(this.state[_]===1?f[_]===void 0&&(f[_]=!0):(this.state[_]=1,g=!1,f[_]===void 0&&(f[_]=!0),u[_]===void 0&&(u[_]=!0),A[y]===void 0&&(A[y]=!0)))}),g||(h[p]=!0)}),(Object.keys(u).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(u),pending:Object.keys(f),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(A)}}loaded(e,r,n){const o=e.split("|"),u=o[0],f=o[1];r&&this.emit("failedLoading",u,f,r),!r&&n&&this.store.addResourceBundle(u,f,n,void 0,void 0,{skipCopy:!0}),this.state[e]=r?-1:2,r&&n&&(this.state[e]=0);const h={};this.queue.forEach(A=>{w2t(A.loaded,[u],f),O2t(A,e),r&&A.errors.push(r),A.pendingCount===0&&!A.done&&(Object.keys(A.loaded).forEach(p=>{h[p]||(h[p]={});const g=A.loaded[p];g.length&&g.forEach(y=>{h[p][y]===void 0&&(h[p][y]=!0)})}),A.done=!0,A.errors.length?A.callback(A.errors):A.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(A=>!A.done)}read(e,r,n,o=0,u=this.retryTimeout,f){if(!e.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:r,fcName:n,tried:o,wait:u,callback:f});return}this.readingCalls++;const h=(p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(p&&g&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,e,r,n,o+1,u*2,f)},u);return}f(p,g)},A=this.backend[n].bind(this.backend);if(A.length===2){try{const p=A(e,r);p&&typeof p.then=="function"?p.then(g=>h(null,g)).catch(h):h(null,p)}catch(p){h(p)}return}return A(e,r,h)}prepareLoading(e,r,n={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();Ii(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Ii(r)&&(r=[r]);const u=this.queueLoad(e,r,n,o);if(!u.toLoad.length)return u.pending.length||o(),null;u.toLoad.forEach(f=>{this.loadOne(f)})}load(e,r,n){this.prepareLoading(e,r,{},n)}reload(e,r,n){this.prepareLoading(e,r,{reload:!0},n)}loadOne(e,r=""){const n=e.split("|"),o=n[0],u=n[1];this.read(o,u,"read",void 0,void 0,(f,h)=>{f&&this.logger.warn(`${r}loading namespace ${u} for language ${o} failed`,f),!f&&h&&this.logger.log(`${r}loaded namespace ${u} for language ${o}`,h),this.loaded(e,f,h)})}saveMissing(e,r,n,o,u,f={},h=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend?.create){const A={...f,isUpdate:u},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(e,r,n,o,A):g=p(e,r,n,o),g&&typeof g.then=="function"?g.then(y=>h(null,y)).catch(h):h(null,g)}catch(g){h(g)}else p(e,r,n,o,h,A)}!e||!e[0]||this.store.addResource(e[0],r,n,o)}}}const zwe=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Ii(t[1])&&(e.defaultValue=t[1]),Ii(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(n=>{e[n]=r[n]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Gwe=t=>(Ii(t.ns)&&(t.ns=[t.ns]),Ii(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Ii(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),BD=()=>{},F2t=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(r=>{typeof t[r]=="function"&&(t[r]=t[r].bind(t))})};class C2 extends xk{constructor(e={},r){if(super(),this.options=Gwe(e),this.services={},this.logger=$v,this.modules={external:[]},F2t(this),r&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,r),this;setTimeout(()=>{this.init(e,r)},0)}}init(e={},r){this.isInitializing=!0,typeof e=="function"&&(r=e,e={}),e.defaultNS==null&&e.ns&&(Ii(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=zwe();this.options={...n,...this.options,...Gwe(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);const o=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?$v.init(o(this.modules.logger),this.options):$v.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=P2t;const g=new Nwe(this.options);this.store=new Owe(this.options.resources,this.options);const y=this.services;y.logger=$v,y.resourceStore=this.store,y.languageUtils=g,y.pluralResolver=new L2t(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(y.formatter=o(p),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new M2t(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new k2t(o(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(b,...C)=>{this.emit(b,...C)}),this.modules.languageDetector&&(y.languageDetector=o(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=o(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new FP(this.services,this.options),this.translator.on("*",(b,...C)=>{this.emit(b,...C)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,r||(r=BD),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=(...g)=>this.store[p](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...g)=>(this.store[p](...g),this)});const h=bT(),A=()=>{const p=(g,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(y),r(g,y)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?A():setTimeout(A,0),h}loadResources(e,r=BD){let n=r;const o=Ii(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const u=[],f=h=>{if(!h||h==="cimode")return;this.services.languageUtils.toResolveHierarchy(h).forEach(p=>{p!=="cimode"&&u.indexOf(p)<0&&u.push(p)})};o?f(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(A=>f(A)),this.options.preload?.forEach?.(h=>f(h)),this.services.backendConnector.load(u,this.options.ns,h=>{!h&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(h)})}else n(null)}reloadResources(e,r,n){const o=bT();return typeof e=="function"&&(n=e,e=void 0),typeof r=="function"&&(n=r,r=void 0),e||(e=this.languages),r||(r=this.options.ns),n||(n=BD),this.services.backendConnector.reload(e,r,u=>{o.resolve(),n(u)}),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&EPe.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,r){this.isLanguageChangingTo=e;const n=bT();this.emit("languageChanging",e);const o=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},u=(h,A)=>{A?this.isLanguageChangingTo===e&&(o(A),this.translator.changeLanguage(A),this.isLanguageChangingTo=void 0,this.emit("languageChanged",A),this.logger.log("languageChanged",A)):this.isLanguageChangingTo=void 0,n.resolve((...p)=>this.t(...p)),r&&r(h,(...p)=>this.t(...p))},f=h=>{!e&&!h&&this.services.languageDetector&&(h=[]);const A=Ii(h)?h:h&&h[0],p=this.store.hasLanguageSomeTranslations(A)?A:this.services.languageUtils.getBestMatchFromCodes(Ii(h)?[h]:h);p&&(this.language||o(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector?.cacheUserLanguage?.(p)),this.loadResources(p,g=>{u(g,p)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(e),n}getFixedT(e,r,n){const o=(u,f,...h)=>{let A;typeof f!="object"?A=this.options.overloadTranslationOptionHandler([u,f].concat(h)):A={...f},A.lng=A.lng||o.lng,A.lngs=A.lngs||o.lngs,A.ns=A.ns||o.ns,A.keyPrefix!==""&&(A.keyPrefix=A.keyPrefix||n||o.keyPrefix);const p=this.options.keySeparator||".";let g;return A.keyPrefix&&Array.isArray(u)?g=u.map(y=>(typeof y=="function"&&(y=nK(y,{...this.options,...f})),`${A.keyPrefix}${p}${y}`)):(typeof u=="function"&&(u=nK(u,{...this.options,...f})),g=A.keyPrefix?`${A.keyPrefix}${p}${u}`:u),this.t(g,A)};return Ii(e)?o.lng=e:o.lngs=e,o.ns=r,o.keyPrefix=n,o}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const f=(h,A)=>{const p=this.services.backendConnector.state[`${h}|${A}`];return p===-1||p===0||p===2};if(r.precheck){const h=r.precheck(this,f);if(h!==void 0)return h}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(n,e)&&(!o||f(u,e)))}loadNamespaces(e,r){const n=bT();return this.options.ns?(Ii(e)&&(e=[e]),e.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(e,r){const n=bT();Ii(e)&&(e=[e]);const o=this.options.preload||[],u=e.filter(f=>o.indexOf(f)<0&&this.services.languageUtils.isSupportedCode(f));return u.length?(this.options.preload=o.concat(u),this.loadResources(f=>{n.resolve(),r&&r(f)}),n):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const o=new Intl.Locale(e);if(o&&o.getTextInfo){const u=o.getTextInfo();if(u&&u.direction)return u.direction}}catch{}const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services?.languageUtils||new Nwe(zwe());return e.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},r){return new C2(e,r)}cloneInstance(e={},r=BD){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},u=new C2(o);if((e.debug!==void 0||e.prefix!==void 0)&&(u.logger=u.logger.clone(e)),["store","services","language"].forEach(h=>{u[h]=this[h]}),u.services={...this.services},u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},n){const h=Object.keys(this.store.data).reduce((A,p)=>(A[p]={...this.store.data[p]},A[p]=Object.keys(A[p]).reduce((g,y)=>(g[y]={...A[p][y]},g),A[p]),A),{});u.store=new Owe(h,o),u.services.resourceStore=u.store}return u.translator=new FP(u.services,o),u.translator.on("*",(h,...A)=>{u.emit(h,...A)}),u.init(o,r),u.translator.options=o,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const gf=C2.createInstance();gf.createInstance=C2.createInstance;gf.createInstance;gf.dir;gf.init;gf.loadResources;gf.reloadResources;gf.use;gf.changeLanguage;gf.getFixedT;gf.t;gf.exists;gf.setDefaultNamespace;gf.hasLoadedNamespace;gf.loadNamespaces;gf.loadLanguages;function iK(t){"@babel/helpers - typeof";return iK=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iK(t)}function IPe(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":iK(XMLHttpRequest))==="object"}function N2t(t){return!!t&&typeof t.then=="function"}function U2t(t){return N2t(t)?t:Promise.resolve(t)}function jwe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function qwe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jwe(Object(r),!0).forEach(function(n){H2t(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jwe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function H2t(t,e,r){return(e=Q2t(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q2t(t){var e=V2t(t,"string");return iw(e)=="symbol"?e:e+""}function V2t(t,e){if(iw(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(iw(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function iw(t){"@babel/helpers - typeof";return iw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iw(t)}var _y=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?_y=global.fetch:typeof window<"u"&&window.fetch&&(_y=window.fetch);var T2;IPe()&&(typeof global<"u"&&global.XMLHttpRequest?T2=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(T2=window.XMLHttpRequest));var NP;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?NP=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(NP=window.ActiveXObject));typeof _y!="function"&&(_y=void 0);if(!_y&&!T2&&!NP)try{M5(()=>Promise.resolve().then(()=>zHt),void 0).then(function(t){_y=t.default}).catch(function(){})}catch{}var aK=function(e,r){if(r&&iw(r)==="object"){var n="";for(var o in r)n+="&"+encodeURIComponent(o)+"="+encodeURIComponent(r[o]);if(!n)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+n.slice(1)}return e},Wwe=function(e,r,n,o){var u=function(A){if(!A.ok)return n(A.statusText||"Error",{status:A.status});A.text().then(function(p){n(null,{status:A.status,data:p})}).catch(n)};if(o){var f=o(e,r);if(f instanceof Promise){f.then(u).catch(n);return}}typeof fetch=="function"?fetch(e,r).then(u).catch(n):_y(e,r).then(u).catch(n)},$we=!1,z2t=function(e,r,n,o){e.queryStringParams&&(r=aK(r,e.queryStringParams));var u=qwe({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(u["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(u["Content-Type"]="application/json");var f=typeof e.requestOptions=="function"?e.requestOptions(n):e.requestOptions,h=qwe({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:u},$we?{}:f),A=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{Wwe(r,h,o,A)}catch(p){if(!f||Object.keys(f).length===0||!p.message||p.message.indexOf("not implemented")<0)return o(p);try{Object.keys(f).forEach(function(g){delete h[g]}),Wwe(r,h,o,A),$we=!0}catch(g){o(g)}}},G2t=function(e,r,n,o){n&&iw(n)==="object"&&(n=aK("",n).slice(1)),e.queryStringParams&&(r=aK(r,e.queryStringParams));try{var u=T2?new T2:new NP("MSXML2.XMLHTTP.3.0");u.open(n?"POST":"GET",r,1),e.crossDomain||u.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.withCredentials=!!e.withCredentials,n&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.overrideMimeType&&u.overrideMimeType("application/json");var f=e.customHeaders;if(f=typeof f=="function"?f():f,f)for(var h in f)u.setRequestHeader(h,f[h]);u.onreadystatechange=function(){u.readyState>3&&o(u.status>=400?u.statusText:null,{status:u.status,data:u.responseText})},u.send(n)}catch(A){console&&console.log(A)}},j2t=function(e,r,n,o){if(typeof n=="function"&&(o=n,n=void 0),o=o||function(){},_y&&r.indexOf("file:")!==0)return z2t(e,r,n,o);if(IPe()||typeof ActiveXObject=="function")return G2t(e,r,n,o);o(new Error("No fetch and no xhr implementation found!"))};function FS(t){"@babel/helpers - typeof";return FS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},FS(t)}function Kwe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function fG(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Kwe(Object(r),!0).forEach(function(n){LPe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kwe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function q2t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W2t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,MPe(n.key),n)}}function $2t(t,e,r){return e&&W2t(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function LPe(t,e,r){return(e=MPe(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function MPe(t){var e=K2t(t,"string");return FS(e)=="symbol"?e:e+""}function K2t(t,e){if(FS(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(FS(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Y2t=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(r){return JSON.parse(r)},stringify:JSON.stringify,parsePayload:function(r,n,o){return LPe({},n,o||"")},parseLoadPayload:function(r,n){},request:j2t,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},X2t=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};q2t(this,t),this.services=e,this.options=r,this.allOptions=n,this.type="backend",this.init(e,r,n)}return $2t(t,[{key:"init",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=r,this.options=fG(fG(fG({},Y2t()),this.options||{}),o),this.allOptions=u,this.services&&this.options.reloadInterval){var f=setInterval(function(){return n.reload()},this.options.reloadInterval);FS(f)==="object"&&typeof f.unref=="function"&&f.unref()}}},{key:"readMulti",value:function(r,n,o){this._readAny(r,r,n,n,o)}},{key:"read",value:function(r,n,o){this._readAny([r],r,[n],n,o)}},{key:"_readAny",value:function(r,n,o,u,f){var h=this,A=this.options.loadPath;typeof this.options.loadPath=="function"&&(A=this.options.loadPath(r,o)),A=U2t(A),A.then(function(p){if(!p)return f(null,{});var g=h.services.interpolator.interpolate(p,{lng:r.join("+"),ns:o.join("+")});h.loadUrl(g,f,n,u)})}},{key:"loadUrl",value:function(r,n,o,u){var f=this,h=typeof o=="string"?[o]:o,A=typeof u=="string"?[u]:u,p=this.options.parseLoadPayload(h,A);this.options.request(this.options,r,p,function(g,y){if(y&&(y.status>=500&&y.status<600||!y.status))return n("failed loading "+r+"; status code: "+y.status,!0);if(y&&y.status>=400&&y.status<500)return n("failed loading "+r+"; status code: "+y.status,!1);if(!y&&g&&g.message){var _=g.message.toLowerCase(),b=["failed","fetch","network","load"].find(function(B){return _.indexOf(B)>-1});if(b)return n("failed loading "+r+": "+g.message,!0)}if(g)return n(g,!1);var C,T;try{typeof y.data=="string"?C=f.options.parse(y.data,o,u):C=y.data}catch{T="failed parsing "+r+" to json"}if(T)return n(T,!1);n(null,C)})}},{key:"create",value:function(r,n,o,u,f){var h=this;if(this.options.addPath){typeof r=="string"&&(r=[r]);var A=this.options.parsePayload(n,o,u),p=0,g=[],y=[];r.forEach(function(_){var b=h.options.addPath;typeof h.options.addPath=="function"&&(b=h.options.addPath(_,n));var C=h.services.interpolator.interpolate(b,{lng:_,ns:n});h.options.request(h.options,C,A,function(T,B){p+=1,g.push(T),y.push(B),p===r.length&&typeof f=="function"&&f(g,y)})})}}},{key:"reload",value:function(){var r=this,n=this.services,o=n.backendConnector,u=n.languageUtils,f=n.logger,h=o.language;if(!(h&&h.toLowerCase()==="cimode")){var A=[],p=function(y){var _=u.toResolveHierarchy(y);_.forEach(function(b){A.indexOf(b)<0&&A.push(b)})};p(h),this.allOptions.preload&&this.allOptions.preload.forEach(function(g){return p(g)}),A.forEach(function(g){r.allOptions.ns.forEach(function(y){o.read(g,y,"read",null,null,function(_,b){_&&f.warn("loading namespace ".concat(y," for language ").concat(g," failed"),_),!_&&b&&f.log("loaded namespace ".concat(y," for language ").concat(g),b),o.loaded("".concat(g,"|").concat(y),_,b)})})})}}}])}();X2t.type="backend";const{slice:Z2t,forEach:J2t}=[];function eBt(t){return J2t.call(Z2t.call(arguments,1),e=>{if(e)for(const r in e)t[r]===void 0&&(t[r]=e[r])}),t}function tBt(t){return typeof t!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(r=>r.test(t))}const Ywe=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,rBt=function(t,e){const n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(e);let u=`${t}=${o}`;if(n.maxAge>0){const f=n.maxAge-0;if(Number.isNaN(f))throw new Error("maxAge should be a Number");u+=`; Max-Age=${Math.floor(f)}`}if(n.domain){if(!Ywe.test(n.domain))throw new TypeError("option domain is invalid");u+=`; Domain=${n.domain}`}if(n.path){if(!Ywe.test(n.path))throw new TypeError("option path is invalid");u+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");u+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(u+="; HttpOnly"),n.secure&&(u+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(u+="; Partitioned"),u},Xwe={create(t,e,r,n){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),n&&(o.domain=n),document.cookie=rBt(t,e,o)},read(t){const e=`${t}=`,r=document.cookie.split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(e)===0)return o.substring(e.length,o.length)}return null},remove(t,e){this.create(t,"",-1,e)}};var nBt={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&typeof document<"u")return Xwe.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:r,cookieMinutes:n,cookieDomain:o,cookieOptions:u}=e;r&&typeof document<"u"&&Xwe.create(r,t,n,o,u)}},iBt={name:"querystring",lookup(t){let{lookupQuerystring:e}=t,r;if(typeof window<"u"){let{search:n}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));const u=n.substring(1).split("&");for(let f=0;f<u.length;f++){const h=u[f].indexOf("=");h>0&&u[f].substring(0,h)===e&&(r=u[f].substring(h+1))}}return r}},aBt={name:"hash",lookup(t){let{lookupHash:e,lookupFromHashIndex:r}=t,n;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const u=o.substring(1);if(e){const f=u.split("&");for(let h=0;h<f.length;h++){const A=f[h].indexOf("=");A>0&&f[h].substring(0,A)===e&&(n=f[h].substring(A+1))}}if(n)return n;if(!n&&r>-1){const f=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(f)?f[typeof r=="number"?r:0]?.replace("/",""):void 0}}}return n}};let v_=null;const Zwe=()=>{if(v_!==null)return v_;try{if(v_=typeof window<"u"&&window.localStorage!==null,!v_)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{v_=!1}return v_};var oBt={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&Zwe())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:r}=e;r&&Zwe()&&window.localStorage.setItem(r,t)}};let p_=null;const Jwe=()=>{if(p_!==null)return p_;try{if(p_=typeof window<"u"&&window.sessionStorage!==null,!p_)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{p_=!1}return p_};var sBt={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&Jwe())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:r}=e;r&&Jwe()&&window.sessionStorage.setItem(r,t)}},lBt={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:r,userLanguage:n,language:o}=navigator;if(r)for(let u=0;u<r.length;u++)e.push(r[u]);n&&e.push(n),o&&e.push(o)}return e.length>0?e:void 0}},uBt={name:"htmlTag",lookup(t){let{htmlTag:e}=t,r;const n=e||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},cBt={name:"path",lookup(t){let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?r[typeof e=="number"?e:0]?.replace("/",""):void 0}},fBt={name:"subdomain",lookup(t){let{lookupFromSubdomainIndex:e}=t;const r=typeof e=="number"?e+1:1,n=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[r]}};let DPe=!1;try{document.cookie,DPe=!0}catch{}const RPe=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];DPe||RPe.splice(1,1);const hBt=()=>({order:RPe,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});let dBt=class{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,r)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=eBt(r,this.options||{},hBt()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(nBt),this.addDetector(iBt),this.addDetector(oBt),this.addDetector(sBt),this.addDetector(lBt),this.addDetector(uBt),this.addDetector(cBt),this.addDetector(fBt),this.addDetector(aBt)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,r=[];return e.forEach(n=>{if(this.detectors[n]){let o=this.detectors[n].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(r=r.concat(o))}}),r=r.filter(n=>n!=null&&!tBt(n)).map(n=>this.options.convertDetectedLanguage(n)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}cacheUserLanguage(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||r.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(e,this.options)}))}};dBt.type="languageDetector";var hG,ebe;function ABt(){return ebe||(ebe=1,hG={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),hG}var vBt=ABt();const pBt=Dn(vBt);var gBt=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function tbe(t){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=t.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(e.name=r[1],(pBt[r[1]]||t.charAt(t.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var n=t.indexOf("-->");return{type:"comment",comment:n!==-1?t.slice(4,n):""}}for(var o=new RegExp(gBt),u=null;(u=o.exec(t))!==null;)if(u[0].trim())if(u[1]){var f=u[1].trim(),h=[f,""];f.indexOf("=")>-1&&(h=f.split("=")),e.attrs[h[0]]=h[1],o.lastIndex--}else u[2]&&(e.attrs[u[2]]=u[3].trim().substring(1,u[3].length-1));return e}var mBt=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,yBt=/^\s*$/,wBt=Object.create(null);function PPe(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?function(r){var n=[];for(var o in r)n.push(o+'="'+r[o]+'"');return n.length?" "+n.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(PPe,"")+"</"+e.name+">";case"comment":return t+"<!--"+e.comment+"-->"}}var bBt={parse:function(t,e){e||(e={}),e.components||(e.components=wBt);var r,n=[],o=[],u=-1,f=!1;if(t.indexOf("<")!==0){var h=t.indexOf("<");n.push({type:"text",content:h===-1?t:t.substring(0,h)})}return t.replace(mBt,function(A,p){if(f){if(A!=="</"+r.name+">")return;f=!1}var g,y=A.charAt(1)!=="/",_=A.startsWith("<!--"),b=p+A.length,C=t.charAt(b);if(_){var T=tbe(A);return u<0?(n.push(T),n):((g=o[u]).children.push(T),n)}if(y&&(u++,(r=tbe(A)).type==="tag"&&e.components[r.name]&&(r.type="component",f=!0),r.voidElement||f||!C||C==="<"||r.children.push({type:"text",content:t.slice(b,t.indexOf("<",b))}),u===0&&n.push(r),(g=o[u-1])&&g.children.push(r),o[u]=r),(!y||r.voidElement)&&(u>-1&&(r.voidElement||r.name===A.slice(2,-1))&&(u--,r=u===-1?n:o[u]),!f&&C!=="<"&&C)){g=u===-1?n:o[u].children;var B=t.indexOf("<",b),L=t.slice(b,B===-1?void 0:B);yBt.test(L)&&(L=" "),(B>-1&&u+g.length>=0||L!==" ")&&g.push({type:"text",content:L})}}),n},stringify:function(t){return t.reduce(function(e,r){return e+PPe("",r)},"")}};const Y5=(t,e,r,n)=>{const o=[r,{code:e,...n||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(o,"warn","react-i18next::",!0);Bh(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...o):console?.warn&&console.warn(...o)},rbe={},E2=(t,e,r,n)=>{Bh(r)&&rbe[r]||(Bh(r)&&(rbe[r]=new Date),Y5(t,e,r,n))},OPe=(t,e)=>()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}},oK=(t,e,r)=>{t.loadNamespaces(e,OPe(t,r))},nbe=(t,e,r,n)=>{if(Bh(r)&&(r=[r]),t.options.preload&&t.options.preload.indexOf(e)>-1)return oK(t,r,n);r.forEach(o=>{t.options.ns.indexOf(o)<0&&t.options.ns.push(o)}),t.loadLanguages(e,OPe(t,n))},_Bt=(t,e,r={})=>!e.languages||!e.languages.length?(E2(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:r.lng,precheck:(n,o)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!o(n.isLanguageChangingTo,t))return!1}}),SBt=t=>t.displayName||t.name||(Bh(t)&&t.length>0?t:"Unknown"),Bh=t=>typeof t=="string",ny=t=>typeof t=="object"&&t!==null,xBt=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,CBt={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},TBt=t=>CBt[t],EBt=t=>t.replace(xBt,TBt);let sK={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:EBt};const BBt=(t={})=>{sK={...sK,...t}},kPe=()=>sK;let FPe;const IBt=t=>{FPe=t},sZ=()=>FPe,dG=(t,e)=>{if(!t)return!1;const r=t.props?.children??t.children;return e?r.length>0:!!r},AG=t=>{if(!t)return[];const e=t.props?.children??t.children;return t.props?.i18nIsDynamicList?W_(e):e},LBt=t=>Array.isArray(t)&&t.every(Ae.isValidElement),W_=t=>Array.isArray(t)?t:[t],MBt=(t,e)=>{const r={...e};return r.props=Object.assign(t.props,e.props),r},NPe=(t,e,r,n)=>{if(!t)return"";let o="";const u=W_(t),f=e?.transSupportBasicHtmlNodes?e.transKeepBasicHtmlNodesFor??[]:[];return u.forEach((h,A)=>{if(Bh(h)){o+=`${h}`;return}if(Ae.isValidElement(h)){const{props:p,type:g}=h,y=Object.keys(p).length,_=f.indexOf(g)>-1,b=p.children;if(!b&&_&&!y){o+=`<${g}/>`;return}if(!b&&(!_||y)||p.i18nIsDynamicList){o+=`<${A}></${A}>`;return}if(_&&y===1&&Bh(b)){o+=`<${g}>${b}</${g}>`;return}const C=NPe(b,e,r,n);o+=`<${A}>${C}</${A}>`;return}if(h===null){Y5(r,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:n});return}if(ny(h)){const{format:p,...g}=h,y=Object.keys(g);if(y.length===1){const _=p?`${y[0]}, ${p}`:y[0];o+=`{{${_}}}`;return}Y5(r,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:n,child:h});return}Y5(r,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:n,child:h})}),o},DBt=(t,e,r,n,o,u,f)=>{if(r==="")return[];const h=o.transKeepBasicHtmlNodesFor||[],A=r&&new RegExp(h.map(L=>`<${L}`).join("|")).test(r);if(!t&&!e&&!A&&!f)return[r];const p=e??{},g=L=>{W_(L).forEach(I=>{Bh(I)||(dG(I)?g(AG(I)):ny(I)&&!Ae.isValidElement(I)&&Object.assign(p,I))})};g(t);const y=bBt.parse(`<0>${r}</0>`),_={...p,...u},b=(L,P,I)=>{const O=AG(L),U=T(O,P.children,I);return LBt(O)&&U.length===0||L.props?.i18nIsDynamicList?O:U},C=(L,P,I,O,U)=>{L.dummy?(L.children=P,I.push(Ae.cloneElement(L,{key:O},U?void 0:P))):I.push(...Ae.Children.map([L],N=>{const H={...N.props};return delete H.i18nIsDynamicList,Ae.createElement(N.type,{...H,key:O,ref:N.props.ref??N.ref},U?null:P)}))},T=(L,P,I)=>{const O=W_(L);return W_(P).reduce((N,H,z)=>{const G=H.children?.[0]?.content&&n.services.interpolator.interpolate(H.children[0].content,_,n.language);if(H.type==="tag"){let j=O[parseInt(H.name,10)];!j&&e&&(j=e[H.name]),I.length===1&&!j&&(j=I[0][H.name]),j||(j={});const q=Object.keys(H.attrs).length!==0?MBt({props:H.attrs},j):j,X=Ae.isValidElement(q),Y=X&&dG(H,!0)&&!H.voidElement,te=A&&ny(q)&&q.dummy&&!X,K=ny(e)&&Object.hasOwnProperty.call(e,H.name);if(Bh(q)){const ce=n.services.interpolator.interpolate(q,_,n.language);N.push(ce)}else if(dG(q)||Y){const ce=b(q,H,I);C(q,ce,N,z)}else if(te){const ce=T(O,H.children,I);C(q,ce,N,z)}else if(Number.isNaN(parseFloat(H.name)))if(K){const ce=b(q,H,I);C(q,ce,N,z,H.voidElement)}else if(o.transSupportBasicHtmlNodes&&h.indexOf(H.name)>-1)if(H.voidElement)N.push(Ae.createElement(H.name,{key:`${H.name}-${z}`}));else{const ce=T(O,H.children,I);N.push(Ae.createElement(H.name,{key:`${H.name}-${z}`},ce))}else if(H.voidElement)N.push(`<${H.name} />`);else{const ce=T(O,H.children,I);N.push(`<${H.name}>${ce}</${H.name}>`)}else if(ny(q)&&!X){const ce=H.children[0]?G:null;ce&&N.push(ce)}else C(q,G,N,z,H.children.length!==1||!G)}else if(H.type==="text"){const j=o.transWrapTextNodes,q=f?o.unescape(n.services.interpolator.interpolate(H.content,_,n.language)):n.services.interpolator.interpolate(H.content,_,n.language);j?N.push(Ae.createElement(j,{key:`${H.name}-${z}`},q)):N.push(q)}return N},[])},B=T([{dummy:!0,children:t||[]}],y,W_(t||[]));return AG(B[0])},UPe=(t,e,r)=>{const n=t.key||e,o=Ae.cloneElement(t,{key:n});if(!o.props||!o.props.children||r.indexOf(`${e}/>`)<0&&r.indexOf(`${e} />`)<0)return o;function u(){return Ae.createElement(Ae.Fragment,null,o)}return Ae.createElement(u,{key:n})},RBt=(t,e)=>t.map((r,n)=>UPe(r,n,e)),PBt=(t,e)=>{const r={};return Object.keys(t).forEach(n=>{Object.assign(r,{[n]:UPe(t[n],n,e)})}),r},OBt=(t,e,r,n)=>t?Array.isArray(t)?RBt(t,e):ny(t)?PBt(t,e):(E2(r,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:n}),null):null,kBt=t=>!ny(t)||Array.isArray(t)?!1:Object.keys(t).reduce((e,r)=>e&&Number.isNaN(Number.parseFloat(r)),!0);function FBt({children:t,count:e,parent:r,i18nKey:n,context:o,tOptions:u={},values:f,defaults:h,components:A,ns:p,i18n:g,t:y,shouldUnescape:_,...b}){const C=g||sZ();if(!C)return E2(C,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:n}),t;const T=y||C.t.bind(C)||(te=>te),B={...kPe(),...C.options?.react};let L=p||T.ns||C.options?.defaultNS;L=Bh(L)?[L]:L||["translation"];const P=NPe(t,B,C,n),I=h||P||B.transEmptyNodeValue||n,{hashTransKey:O}=B,U=n||(O?O(P||I):P||I);C.options?.interpolation?.defaultVariables&&(f=f&&Object.keys(f).length>0?{...f,...C.options.interpolation.defaultVariables}:{...C.options.interpolation.defaultVariables});const N=f||e!==void 0&&!C.options?.interpolation?.alwaysFormat||!t?u.interpolation:{interpolation:{...u.interpolation,prefix:"#$?",suffix:"?$#"}},H={...u,context:o||u.context,count:e,...f,...N,defaultValue:I,ns:L},z=U?T(U,H):I,G=OBt(A,z,C,n);let j=G||t,q=null;kBt(G)&&(q=G,j=t);const X=DBt(j,q,z,C,B,H,_),Y=r??B.defaultTransParent;return Y?Ae.createElement(Y,b,X):X}const wQt={type:"3rdParty",init(t){BBt(t.options.react),IBt(t)}},HPe=Ae.createContext();class NBt{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function bQt({children:t,count:e,parent:r,i18nKey:n,context:o,tOptions:u={},values:f,defaults:h,components:A,ns:p,i18n:g,t:y,shouldUnescape:_,...b}){const{i18n:C,defaultNS:T}=Ae.useContext(HPe)||{},B=g||C||sZ(),L=y||B?.t.bind(B);return FBt({children:t,count:e,parent:r,i18nKey:n,context:o,tOptions:u,values:f,defaults:h,components:A,ns:p||L?.ns||T||B?.options?.defaultNS,i18n:B,t:y,shouldUnescape:_,...b})}const UBt=(t,e)=>{const r=Ae.useRef();return Ae.useEffect(()=>{r.current=t},[t,e]),r.current},QPe=(t,e,r,n)=>t.getFixedT(e,r,n),HBt=(t,e,r,n)=>Ae.useCallback(QPe(t,e,r,n),[t,e,r,n]),QBt=(t,e={})=>{const{i18n:r}=e,{i18n:n,defaultNS:o}=Ae.useContext(HPe)||{},u=r||n||sZ();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new NBt),!u){E2(u,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const O=(N,H)=>Bh(H)?H:ny(H)&&Bh(H.defaultValue)?H.defaultValue:Array.isArray(N)?N[N.length-1]:N,U=[O,{},!1];return U.t=O,U.i18n={},U.ready=!1,U}u.options.react?.wait&&E2(u,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const f={...kPe(),...u.options.react,...e},{useSuspense:h,keyPrefix:A}=f;let p=o||u.options?.defaultNS;p=Bh(p)?[p]:p||["translation"],u.reportNamespaces.addUsedNamespaces?.(p);const g=(u.isInitialized||u.initializedStoreOnce)&&p.every(O=>_Bt(O,u,f)),y=HBt(u,e.lng||null,f.nsMode==="fallback"?p:p[0],A),_=()=>y,b=()=>QPe(u,e.lng||null,f.nsMode==="fallback"?p:p[0],A),[C,T]=Ae.useState(_);let B=p.join();e.lng&&(B=`${e.lng}${B}`);const L=UBt(B),P=Ae.useRef(!0);Ae.useEffect(()=>{const{bindI18n:O,bindI18nStore:U}=f;P.current=!0,!g&&!h&&(e.lng?nbe(u,e.lng,p,()=>{P.current&&T(b)}):oK(u,p,()=>{P.current&&T(b)})),g&&L&&L!==B&&P.current&&T(b);const N=()=>{P.current&&T(b)};return O&&u?.on(O,N),U&&u?.store.on(U,N),()=>{P.current=!1,u&&O&&O?.split(" ").forEach(H=>u.off(H,N)),U&&u&&U.split(" ").forEach(H=>u.store.off(H,N))}},[u,B]),Ae.useEffect(()=>{P.current&&g&&T(_)},[u,A,g]);const I=[C,u,g];if(I.t=C,I.i18n=u,I.ready=g,g||!g&&!h)return I;throw new Promise(O=>{e.lng?nbe(u,e.lng,p,()=>O()):oK(u,p,()=>O())})},_Qt=(t,e={})=>function(n){function o({forwardedRef:f,...h}){const[A,p,g]=QBt(t,{...h,keyPrefix:e.keyPrefix}),y={...h,t:A,i18n:p,tReady:g};return e.withRef&&f?y.ref=f:!e.withRef&&f&&(y.forwardedRef=f),Ae.createElement(n,y)}o.displayName=`withI18nextTranslation(${SBt(n)})`,o.WrappedComponent=n;const u=(f,h)=>Ae.createElement(o,Object.assign({},f,{forwardedRef:h}));return e.withRef?Ae.forwardRef(u):o};function SQt(t,e,r){var n,o,u;r===void 0&&(r={});var f=(n=r.isImmediate)!=null&&n,h=(o=r.callback)!=null&&o,A=r.maxWait,p=Date.now(),g=[];function y(){if(A!==void 0){var b=Date.now()-p;if(b+e>=A)return A-b}return e}var _=function(){var b=[].slice.call(arguments),C=this;return new Promise(function(T,B){var L=f&&u===void 0;if(u!==void 0&&clearTimeout(u),u=setTimeout(function(){if(u=void 0,p=Date.now(),!f){var I=t.apply(C,b);h&&h(I),g.forEach(function(O){return(0,O.resolve)(I)}),g=[]}},y()),L){var P=t.apply(C,b);return h&&h(P),T(P)}g.push({resolve:T,reject:B})})};return _.cancel=function(b){u!==void 0&&clearTimeout(u),g.forEach(function(C){return(0,C.reject)(b)}),g=[]},_}/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var lK=function(t,e){return lK=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},lK(t,e)};function ao(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");lK(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var VBt=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),zBt=function(){function t(){this.browser=new VBt,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),Oi=new zBt;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Oi.wxa=!0,Oi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Oi.worker=!0:!Oi.hasGlobalWindow||"Deno"in window?(Oi.node=!0,Oi.svgSupported=!0):GBt(navigator.userAgent,Oi);function GBt(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),o=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),u=t.match(/Edge?\/([\d.]+)/),f=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),o&&(r.ie=!0,r.version=o[1]),u&&(r.edge=!0,r.version=u[1],r.newEdge=+u[1].split(".")[0]>18),f&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var h=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in h||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in h)&&!("OTransition"in h),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}var lZ=12,jBt="sans-serif",aw=lZ+"px "+jBt,qBt=20,WBt=100,$Bt="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function KBt(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),o=(t.charCodeAt(r)-qBt)/WBt;e[n]=o}return e}var YBt=KBt($Bt),lx={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var o=lx.createCanvas();t=o&&o.getContext("2d")}if(t)return e!==n&&(e=t.font=n||aw),t.measureText(r);r=r||"",n=n||aw;var u=/((?:\d+)?\.?\d*)px/.exec(n),f=u&&+u[1]||lZ,h=0;if(n.indexOf("mono")>=0)h=f*r.length;else for(var A=0;A<r.length;A++){var p=YBt[r[A]];h+=p==null?f:p*f}return{width:h}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}},VPe=Sy(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),zPe=Sy(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),wB=Object.prototype.toString,Ck=Array.prototype,XBt=Ck.forEach,ZBt=Ck.filter,uZ=Ck.slice,JBt=Ck.map,ibe=(function(){}).constructor,ID=ibe?ibe.prototype:null,cZ="__proto__",eIt=2311;function GPe(){return eIt++}function fZ(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Ba(t){if(t==null||typeof t!="object")return t;var e=t,r=wB.call(t);if(r==="[object Array]"){if(!GE(t)){e=[];for(var n=0,o=t.length;n<o;n++)e[n]=Ba(t[n])}}else if(zPe[r]){if(!GE(t)){var u=t.constructor;if(u.from)e=u.from(t);else{e=new u(t.length);for(var n=0,o=t.length;n<o;n++)e[n]=t[n]}}}else if(!VPe[r]&&!GE(t)&&!B2(t)){e={};for(var f in t)t.hasOwnProperty(f)&&f!==cZ&&(e[f]=Ba(t[f]))}return e}function Bs(t,e,r){if(!wi(e)||!wi(t))return r?Ba(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==cZ){var o=t[n],u=e[n];wi(u)&&wi(o)&&!Nn(u)&&!Nn(o)&&!B2(u)&&!B2(o)&&!abe(u)&&!abe(o)&&!GE(u)&&!GE(o)?Bs(o,u,r):(r||!(n in t))&&(t[n]=Ba(e[n]))}return t}function Wr(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==cZ&&(t[r]=e[r]);return t}function ls(t,e,r){for(var n=gl(e),o=0,u=n.length;o<u;o++){var f=n[o];t[f]==null&&(t[f]=e[f])}return t}function ss(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function tIt(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var o in r)r.hasOwnProperty(o)&&(t.prototype[o]=r[o]);t.prototype.constructor=t,t.superClass=e}function Mg(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var u=n[o];u!=="constructor"&&t[u]==null&&(t[u]=e[u])}else ls(t,e)}function Zf(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function jt(t,e,r){if(t&&e)if(t.forEach&&t.forEach===XBt)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,o=t.length;n<o;n++)e.call(r,t[n],n,t);else for(var u in t)t.hasOwnProperty(u)&&e.call(r,t[u],u,t)}function ra(t,e,r){if(!t)return[];if(!e)return hZ(t);if(t.map&&t.map===JBt)return t.map(e,r);for(var n=[],o=0,u=t.length;o<u;o++)n.push(e.call(r,t[o],o,t));return n}function Sy(t,e,r,n){if(t&&e){for(var o=0,u=t.length;o<u;o++)r=e.call(n,r,t[o],o,t);return r}}function Td(t,e,r){if(!t)return[];if(!e)return hZ(t);if(t.filter&&t.filter===ZBt)return t.filter(e,r);for(var n=[],o=0,u=t.length;o<u;o++)e.call(r,t[o],o,t)&&n.push(t[o]);return n}function gl(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function rIt(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(uZ.call(arguments)))}}var qo=ID&&ha(ID.bind)?ID.call.bind(ID.bind):rIt;function Nl(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(uZ.call(arguments)))}}function Nn(t){return Array.isArray?Array.isArray(t):wB.call(t)==="[object Array]"}function ha(t){return typeof t=="function"}function ri(t){return typeof t=="string"}function uK(t){return wB.call(t)==="[object String]"}function ws(t){return typeof t=="number"}function wi(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function abe(t){return!!VPe[wB.call(t)]}function Jf(t){return!!zPe[wB.call(t)]}function B2(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Tk(t){return t.colorStops!=null}function nIt(t){return t.image!=null}function iIt(t){return t!==t}function I2(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function Ji(t,e){return t??e}function zE(t,e,r){return t??e??r}function hZ(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return uZ.apply(t,e)}function jPe(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Sg(t,e){if(!t)throw new Error(e)}function Kv(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var qPe="__ec_primitive__";function UP(t){t[qPe]=!0}function GE(t){return t[qPe]}var aIt=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return gl(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),WPe=typeof Map=="function";function oIt(){return WPe?new Map:new aIt}var sIt=function(){function t(e){var r=Nn(e);this.data=oIt();var n=this;e instanceof t?e.each(o):e&&jt(e,o);function o(u,f){r?n.set(u,f):n.set(f,u)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,o){e.call(r,n,o)})},t.prototype.keys=function(){var e=this.data.keys();return WPe?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function fa(t){return new sIt(t)}function lIt(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var o=t.length,n=0;n<e.length;n++)r[n+o]=e[n];return r}function Ek(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&Wr(r,e),r}function $Pe(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ow(t,e){return t.hasOwnProperty(e)}function Kf(){}var uIt=180/Math.PI;/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var cK=function(t,e){return cK=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},cK(t,e)};function Io(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");cK(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function ux(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function cIt(t){return[t[0],t[1]]}function obe(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function fIt(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function hIt(t){return Math.sqrt(dIt(t))}function dIt(t){return t[0]*t[0]+t[1]*t[1]}function vG(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function AIt(t,e){var r=hIt(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function fK(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var hK=fK;function vIt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var vS=vIt;function pG(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function ep(t,e,r){var n=e[0],o=e[1];return t[0]=r[0]*n+r[2]*o+r[4],t[1]=r[1]*n+r[3]*o+r[5],t}function $_(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function K_(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var g_=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),pIt=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new g_(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,o=e.offsetY,u=n-this._x,f=o-this._y;this._x=n,this._y=o,r.drift(u,f,e),this.handler.dispatchToElement(new g_(r,e),"drag",e.event);var h=this.handler.findHover(n,o,r).target,A=this._dropTarget;this._dropTarget=h,r!==h&&(A&&h!==A&&this.handler.dispatchToElement(new g_(A,e),"dragleave",e.event),h&&h!==A&&this.handler.dispatchToElement(new g_(h,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new g_(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new g_(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),cp=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,o){this._$handlers||(this._$handlers={});var u=this._$handlers;if(typeof r=="function"&&(o=n,n=r,r=null),!n||!e)return this;var f=this._$eventProcessor;r!=null&&f&&f.normalizeQuery&&(r=f.normalizeQuery(r)),u[e]||(u[e]=[]);for(var h=0;h<u[e].length;h++)if(u[e][h].h===n)return this;var A={h:n,query:r,ctx:o||this,callAtLast:n.zrEventfulCallAtLast},p=u[e].length-1,g=u[e][p];return g&&g.callAtLast?u[e].splice(p,0,A):u[e].push(A),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var o=[],u=0,f=n[e].length;u<f;u++)n[e][u].h!==r&&o.push(n[e][u]);n[e]=o}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var o=this._$handlers[e],u=this._$eventProcessor;if(o)for(var f=r.length,h=o.length,A=0;A<h;A++){var p=o[A];if(!(u&&u.filter&&p.query!=null&&!u.filter(e,p.query)))switch(f){case 0:p.h.call(p.ctx);break;case 1:p.h.call(p.ctx,r[0]);break;case 2:p.h.call(p.ctx,r[0],r[1]);break;default:p.h.apply(p.ctx,r);break}}return u&&u.afterTrigger&&u.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var o=this._$handlers[e],u=this._$eventProcessor;if(o)for(var f=r.length,h=r[f-1],A=o.length,p=0;p<A;p++){var g=o[p];if(!(u&&u.filter&&g.query!=null&&!u.filter(e,g.query)))switch(f){case 0:g.h.call(h);break;case 1:g.h.call(h,r[0]);break;case 2:g.h.call(h,r[0],r[1]);break;default:g.h.apply(h,r.slice(1,f-1));break}}return u&&u.afterTrigger&&u.afterTrigger(e),this},t}(),gIt=Math.log(2);function dK(t,e,r,n,o,u){var f=n+"-"+o,h=t.length;if(u.hasOwnProperty(f))return u[f];if(e===1){var A=Math.round(Math.log((1<<h)-1&~o)/gIt);return t[r][A]}for(var p=n|1<<r,g=r+1;n&1<<g;)g++;for(var y=0,_=0,b=0;_<h;_++){var C=1<<_;C&o||(y+=(b%2?-1:1)*t[r][_]*dK(t,e-1,g,p,o|C,u),b++)}return u[f]=y,y}function sbe(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},o=dK(r,8,0,0,0,n);if(o!==0){for(var u=[],f=0;f<8;f++)for(var h=0;h<8;h++)u[h]==null&&(u[h]=0),u[h]+=((f+h)%2?-1:1)*dK(r,7,f===0?1:0,1<<f,1<<h,n)/o*e[f];return function(A,p,g){var y=p*u[6]+g*u[7]+1;A[0]=(p*u[0]+g*u[1]+u[2])/y,A[1]=(p*u[3]+g*u[4]+u[5])/y}}}var lbe="___zrEVENTSAVED",gG=[];function mIt(t,e,r,n,o){return AK(gG,e,n,o,!0)&&AK(t,r,gG[0],gG[1])}function AK(t,e,r,n,o){if(e.getBoundingClientRect&&Oi.domSupported&&!KPe(e)){var u=e[lbe]||(e[lbe]={}),f=yIt(e,u),h=wIt(f,u,o);if(h)return h(t,r,n),!0}return!1}function yIt(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],o=["top","bottom"],u=0;u<4;u++){var f=document.createElement("div"),h=f.style,A=u%2,p=(u>>1)%2;h.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[A]+":0",o[p]+":0",n[1-A]+":auto",o[1-p]+":auto",""].join("!important;"),t.appendChild(f),r.push(f)}return r}function wIt(t,e,r){for(var n=r?"invTrans":"trans",o=e[n],u=e.srcCoords,f=[],h=[],A=!0,p=0;p<4;p++){var g=t[p].getBoundingClientRect(),y=2*p,_=g.left,b=g.top;f.push(_,b),A=A&&u&&_===u[y]&&b===u[y+1],h.push(t[p].offsetLeft,t[p].offsetTop)}return A&&o?o:(e.srcCoords=f,e[n]=r?sbe(h,f):sbe(f,h))}function KPe(t){return t.nodeName.toUpperCase()==="CANVAS"}var bIt=/([&<>"'])/g,_It={"&":"&","<":"<",">":">",'"':""","'":"'"};function Hf(t){return t==null?"":(t+"").replace(bIt,function(e,r){return _It[r]})}var SIt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mG=[],xIt=Oi.browser.firefox&&+Oi.browser.version.split(".")[0]<39;function vK(t,e,r,n){return r=r||{},n?ube(t,e,r):xIt&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):ube(t,e,r),r}function ube(t,e,r){if(Oi.domSupported&&t.getBoundingClientRect){var n=e.clientX,o=e.clientY;if(KPe(t)){var u=t.getBoundingClientRect();r.zrX=n-u.left,r.zrY=o-u.top;return}else if(AK(mG,t,n,o)){r.zrX=mG[0],r.zrY=mG[1];return}}r.zrX=r.zrY=0}function dZ(t){return t||window.event}function md(t,e,r){if(e=dZ(e),e.zrX!=null)return e;var n=e.type,o=n&&n.indexOf("touch")>=0;if(o){var f=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];f&&vK(t,f,e,r)}else{vK(t,e,e,r);var u=CIt(e);e.zrDelta=u?u/120:-(e.detail||0)/3}var h=e.button;return e.which==null&&h!==void 0&&SIt.test(e.type)&&(e.which=h&1?1:h&2?3:h&4?2:0),e}function CIt(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var o=Math.abs(n!==0?n:r),u=n>0?-1:n<0?1:r>0?-1:1;return 3*o*u}function TIt(t,e,r,n){t.addEventListener(e,r,n)}function EIt(t,e,r,n){t.removeEventListener(e,r,n)}var YPe=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},BIt=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var o=e.touches;if(o){for(var u={points:[],touches:[],target:r,event:e},f=0,h=o.length;f<h;f++){var A=o[f],p=vK(n,A,{});u.points.push([p.zrX,p.zrY]),u.touches.push(A)}this._track.push(u)}},t.prototype._recognize=function(e){for(var r in yG)if(yG.hasOwnProperty(r)){var n=yG[r](this._track,e);if(n)return n}},t}();function cbe(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function IIt(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var yG={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,o=(t[r-2]||{}).points||n;if(o&&o.length>1&&n&&n.length>1){var u=cbe(n)/cbe(o);!isFinite(u)&&(u=1),e.pinchScale=u;var f=IIt(n);return e.pinchX=f[0],e.pinchY=f[1],{type:"pinch",target:t[0].target,event:e}}}}};function pS(){return[1,0,0,1,0,0]}function AZ(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function LIt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function gS(t,e,r){var n=e[0]*r[0]+e[2]*r[1],o=e[1]*r[0]+e[3]*r[1],u=e[0]*r[2]+e[2]*r[3],f=e[1]*r[2]+e[3]*r[3],h=e[0]*r[4]+e[2]*r[5]+e[4],A=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=o,t[2]=u,t[3]=f,t[4]=h,t[5]=A,t}function pK(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function vZ(t,e,r,n){n===void 0&&(n=[0,0]);var o=e[0],u=e[2],f=e[4],h=e[1],A=e[3],p=e[5],g=Math.sin(r),y=Math.cos(r);return t[0]=o*y+h*g,t[1]=-o*g+h*y,t[2]=u*y+A*g,t[3]=-u*g+y*A,t[4]=y*(f-n[0])+g*(p-n[1])+n[0],t[5]=y*(p-n[1])-g*(f-n[0])+n[1],t}function MIt(t,e,r){var n=r[0],o=r[1];return t[0]=e[0]*n,t[1]=e[1]*o,t[2]=e[2]*n,t[3]=e[3]*o,t[4]=e[4]*n,t[5]=e[5]*o,t}function XPe(t,e){var r=e[0],n=e[2],o=e[4],u=e[1],f=e[3],h=e[5],A=r*f-u*n;return A?(A=1/A,t[0]=f*A,t[1]=-u*A,t[2]=-n*A,t[3]=r*A,t[4]=(n*h-f*o)*A,t[5]=(u*o-r*h)*A,t):null}var Hi=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,o){e.x=r.x+n.x*o,e.y=r.y+n.y*o},t.lerp=function(e,r,n,o){var u=1-o;e.x=u*r.x+o*n.x,e.y=u*r.y+o*n.y},t}(),LD=Math.min,MD=Math.max,G0=new Hi,j0=new Hi,q0=new Hi,W0=new Hi,_T=new Hi,ST=new Hi,ko=function(){function t(e,r,n,o){n<0&&(e=e+n,n=-n),o<0&&(r=r+o,o=-o),this.x=e,this.y=r,this.width=n,this.height=o}return t.prototype.union=function(e){var r=LD(e.x,this.x),n=LD(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=MD(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=MD(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,o=e.height/r.height,u=pS();return pK(u,u,[-r.x,-r.y]),MIt(u,u,[n,o]),pK(u,u,[e.x,e.y]),u},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,o=n.x,u=n.x+n.width,f=n.y,h=n.y+n.height,A=e.x,p=e.x+e.width,g=e.y,y=e.y+e.height,_=!(u<A||p<o||h<g||y<f);if(r){var b=1/0,C=0,T=Math.abs(u-A),B=Math.abs(p-o),L=Math.abs(h-g),P=Math.abs(y-f),I=Math.min(T,B),O=Math.min(L,P);u<A||p<o?I>C&&(C=I,T<B?Hi.set(ST,-T,0):Hi.set(ST,B,0)):I<b&&(b=I,T<B?Hi.set(_T,T,0):Hi.set(_T,-B,0)),h<g||y<f?O>C&&(C=O,L<P?Hi.set(ST,0,-L):Hi.set(ST,0,P)):I<b&&(b=I,L<P?Hi.set(_T,0,L):Hi.set(_T,0,-P))}return r&&Hi.copy(r,_?_T:ST),_},t.prototype.contain=function(e,r){var n=this;return e>=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var o=n[0],u=n[3],f=n[4],h=n[5];e.x=r.x*o+f,e.y=r.y*u+h,e.width=r.width*o,e.height=r.height*u,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}G0.x=q0.x=r.x,G0.y=W0.y=r.y,j0.x=W0.x=r.x+r.width,j0.y=q0.y=r.y+r.height,G0.transform(n),W0.transform(n),j0.transform(n),q0.transform(n),e.x=LD(G0.x,j0.x,q0.x,W0.x),e.y=LD(G0.y,j0.y,q0.y,W0.y);var A=MD(G0.x,j0.x,q0.x,W0.x),p=MD(G0.y,j0.y,q0.y,W0.y);e.width=A-e.x,e.height=p-e.y},t}(),ZPe="silent";function DIt(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:RIt}}function RIt(){YPe(this.event)}var PIt=function(t){Io(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(cp),xT=function(){function t(e,r){this.x=e,this.y=r}return t}(),OIt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],wG=new ko(0,0,0,0),JPe=function(t){Io(e,t);function e(r,n,o,u,f){var h=t.call(this)||this;return h._hovered=new xT(0,0),h.storage=r,h.painter=n,h.painterRoot=u,h._pointerSize=f,o=o||new PIt,h.proxy=null,h.setHandlerProxy(o),h._draggingMgr=new pIt(h),h}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(jt(OIt,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,o=r.zrY,u=eOe(this,n,o),f=this._hovered,h=f.target;h&&!h.__zr&&(f=this.findHover(f.x,f.y),h=f.target);var A=this._hovered=u?new xT(n,o):this.findHover(n,o),p=A.target,g=this.proxy;g.setCursor&&g.setCursor(p?p.cursor:"default"),h&&p!==h&&this.dispatchToElement(f,"mouseout",r),this.dispatchToElement(A,"mousemove",r),p&&p!==h&&this.dispatchToElement(A,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new xT(0,0)},e.prototype.dispatch=function(r,n){var o=this[r];o&&o.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,o){r=r||{};var u=r.target;if(!(u&&u.silent)){for(var f="on"+n,h=DIt(n,r,o);u&&(u[f]&&(h.cancelBubble=!!u[f].call(u,h)),u.trigger(n,h),u=u.__hostTarget?u.__hostTarget:u.parent,!h.cancelBubble););h.cancelBubble||(this.trigger(n,h),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(A){typeof A[f]=="function"&&A[f].call(A,h),A.trigger&&A.trigger(n,h)}))}},e.prototype.findHover=function(r,n,o){var u=this.storage.getDisplayList(),f=new xT(r,n);if(fbe(u,f,r,n,o),this._pointerSize&&!f.target){for(var h=[],A=this._pointerSize,p=A/2,g=new ko(r-p,n-p,A,A),y=u.length-1;y>=0;y--){var _=u[y];_!==o&&!_.ignore&&!_.ignoreCoarsePointer&&(!_.parent||!_.parent.ignoreCoarsePointer)&&(wG.copy(_.getBoundingRect()),_.transform&&wG.applyTransform(_.transform),wG.intersect(g)&&h.push(_))}if(h.length)for(var b=4,C=Math.PI/12,T=Math.PI*2,B=0;B<p;B+=b)for(var L=0;L<T;L+=C){var P=r+B*Math.cos(L),I=n+B*Math.sin(L);if(fbe(h,f,P,I,o),f.target)return f}}return f},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new BIt);var o=this._gestureMgr;n==="start"&&o.clear();var u=o.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&o.clear(),u){var f=u.type;r.gestureEvent=f;var h=new xT;h.target=u.target,this.dispatchToElement(h,f,u.event)}},e}(cp);jt(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){JPe.prototype[t]=function(e){var r=e.zrX,n=e.zrY,o=eOe(this,r,n),u,f;if((t!=="mouseup"||!o)&&(u=this.findHover(r,n),f=u.target),t==="mousedown")this._downEl=f,this._downPoint=[e.zrX,e.zrY],this._upEl=f;else if(t==="mouseup")this._upEl=f;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||hK(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(u,t,e)}});function kIt(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,o=void 0,u=!1;n;){if(n.ignoreClip&&(u=!0),!u){var f=n.getClipPath();if(f&&!f.contain(e,r))return!1}n.silent&&(o=!0);var h=n.__hostTarget;n=h||n.parent}return o?ZPe:!0}return!1}function fbe(t,e,r,n,o){for(var u=t.length-1;u>=0;u--){var f=t[u],h=void 0;if(f!==o&&!f.ignore&&(h=kIt(f,r,n))&&(!e.topTarget&&(e.topTarget=f),h!==ZPe)){e.target=f;break}}}function eOe(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var tOe=32,CT=7;function FIt(t){for(var e=0;t>=tOe;)e|=t&1,t>>=1;return t+e}function hbe(t,e,r,n){var o=e+1;if(o===r)return 1;if(n(t[o++],t[e])<0){for(;o<r&&n(t[o],t[o-1])<0;)o++;NIt(t,e,o)}else for(;o<r&&n(t[o],t[o-1])>=0;)o++;return o-e}function NIt(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function dbe(t,e,r,n,o){for(n===e&&n++;n<r;n++){for(var u=t[n],f=e,h=n,A;f<h;)A=f+h>>>1,o(u,t[A])<0?h=A:f=A+1;var p=n-f;switch(p){case 3:t[f+3]=t[f+2];case 2:t[f+2]=t[f+1];case 1:t[f+1]=t[f];break;default:for(;p>0;)t[f+p]=t[f+p-1],p--}t[f]=u}}function bG(t,e,r,n,o,u){var f=0,h=0,A=1;if(u(t,e[r+o])>0){for(h=n-o;A<h&&u(t,e[r+o+A])>0;)f=A,A=(A<<1)+1,A<=0&&(A=h);A>h&&(A=h),f+=o,A+=o}else{for(h=o+1;A<h&&u(t,e[r+o-A])<=0;)f=A,A=(A<<1)+1,A<=0&&(A=h);A>h&&(A=h);var p=f;f=o-A,A=o-p}for(f++;f<A;){var g=f+(A-f>>>1);u(t,e[r+g])>0?f=g+1:A=g}return A}function _G(t,e,r,n,o,u){var f=0,h=0,A=1;if(u(t,e[r+o])<0){for(h=o+1;A<h&&u(t,e[r+o-A])<0;)f=A,A=(A<<1)+1,A<=0&&(A=h);A>h&&(A=h);var p=f;f=o-A,A=o-p}else{for(h=n-o;A<h&&u(t,e[r+o+A])>=0;)f=A,A=(A<<1)+1,A<=0&&(A=h);A>h&&(A=h),f+=o,A+=o}for(f++;f<A;){var g=f+(A-f>>>1);u(t,e[r+g])<0?A=g:f=g+1}return A}function UIt(t,e){var r=CT,n,o,u=0,f=[];n=[],o=[];function h(b,C){n[u]=b,o[u]=C,u+=1}function A(){for(;u>1;){var b=u-2;if(b>=1&&o[b-1]<=o[b]+o[b+1]||b>=2&&o[b-2]<=o[b]+o[b-1])o[b-1]<o[b+1]&&b--;else if(o[b]>o[b+1])break;g(b)}}function p(){for(;u>1;){var b=u-2;b>0&&o[b-1]<o[b+1]&&b--,g(b)}}function g(b){var C=n[b],T=o[b],B=n[b+1],L=o[b+1];o[b]=T+L,b===u-3&&(n[b+1]=n[b+2],o[b+1]=o[b+2]),u--;var P=_G(t[B],t,C,T,0,e);C+=P,T-=P,T!==0&&(L=bG(t[C+T-1],t,B,L,L-1,e),L!==0&&(T<=L?y(C,T,B,L):_(C,T,B,L)))}function y(b,C,T,B){var L=0;for(L=0;L<C;L++)f[L]=t[b+L];var P=0,I=T,O=b;if(t[O++]=t[I++],--B===0){for(L=0;L<C;L++)t[O+L]=f[P+L];return}if(C===1){for(L=0;L<B;L++)t[O+L]=t[I+L];t[O+B]=f[P];return}for(var U=r,N,H,z;;){N=0,H=0,z=!1;do if(e(t[I],f[P])<0){if(t[O++]=t[I++],H++,N=0,--B===0){z=!0;break}}else if(t[O++]=f[P++],N++,H=0,--C===1){z=!0;break}while((N|H)<U);if(z)break;do{if(N=_G(t[I],f,P,C,0,e),N!==0){for(L=0;L<N;L++)t[O+L]=f[P+L];if(O+=N,P+=N,C-=N,C<=1){z=!0;break}}if(t[O++]=t[I++],--B===0){z=!0;break}if(H=bG(f[P],t,I,B,0,e),H!==0){for(L=0;L<H;L++)t[O+L]=t[I+L];if(O+=H,I+=H,B-=H,B===0){z=!0;break}}if(t[O++]=f[P++],--C===1){z=!0;break}U--}while(N>=CT||H>=CT);if(z)break;U<0&&(U=0),U+=2}if(r=U,r<1&&(r=1),C===1){for(L=0;L<B;L++)t[O+L]=t[I+L];t[O+B]=f[P]}else{if(C===0)throw new Error;for(L=0;L<C;L++)t[O+L]=f[P+L]}}function _(b,C,T,B){var L=0;for(L=0;L<B;L++)f[L]=t[T+L];var P=b+C-1,I=B-1,O=T+B-1,U=0,N=0;if(t[O--]=t[P--],--C===0){for(U=O-(B-1),L=0;L<B;L++)t[U+L]=f[L];return}if(B===1){for(O-=C,P-=C,N=O+1,U=P+1,L=C-1;L>=0;L--)t[N+L]=t[U+L];t[O]=f[I];return}for(var H=r;;){var z=0,G=0,j=!1;do if(e(f[I],t[P])<0){if(t[O--]=t[P--],z++,G=0,--C===0){j=!0;break}}else if(t[O--]=f[I--],G++,z=0,--B===1){j=!0;break}while((z|G)<H);if(j)break;do{if(z=C-_G(f[I],t,b,C,C-1,e),z!==0){for(O-=z,P-=z,C-=z,N=O+1,U=P+1,L=z-1;L>=0;L--)t[N+L]=t[U+L];if(C===0){j=!0;break}}if(t[O--]=f[I--],--B===1){j=!0;break}if(G=B-bG(t[P],f,0,B,B-1,e),G!==0){for(O-=G,I-=G,B-=G,N=O+1,U=I+1,L=0;L<G;L++)t[N+L]=f[U+L];if(B<=1){j=!0;break}}if(t[O--]=t[P--],--C===0){j=!0;break}H--}while(z>=CT||G>=CT);if(j)break;H<0&&(H=0),H+=2}if(r=H,r<1&&(r=1),B===1){for(O-=C,P-=C,N=O+1,U=P+1,L=C-1;L>=0;L--)t[N+L]=t[U+L];t[O]=f[I]}else{if(B===0)throw new Error;for(U=O-(B-1),L=0;L<B;L++)t[U+L]=f[L]}}return{mergeRuns:A,forceMergeRuns:p,pushRun:h}}function X5(t,e,r,n){r||(r=0),n||(n=t.length);var o=n-r;if(!(o<2)){var u=0;if(o<tOe){u=hbe(t,r,n,e),dbe(t,r,n,r+u,e);return}var f=UIt(t,e),h=FIt(o);do{if(u=hbe(t,r,n,e),u<h){var A=o;A>h&&(A=h),dbe(t,r,r+A,r+u,e),u=A}f.pushRun(r,u),f.mergeRuns(),o-=u,r+=u}while(o!==0);f.forceMergeRuns()}}var Sh=1,gE=2,N_=4,Abe=!1;function SG(){Abe||(Abe=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function vbe(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var HIt=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=vbe}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,o=0,u=r.length;o<u;o++)this._updateAndAddDisplayable(r[o],null,e);n.length=this._displayListLen,X5(n,vbe)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var o=e.getClipPath();if(e.ignoreClip)r=null;else if(o){r?r=r.slice():r=[];for(var u=o,f=e;u;)u.parent=f,u.updateTransform(),r.push(u),f=u,u=u.getClipPath()}if(e.childrenRef){for(var h=e.childrenRef(),A=0;A<h.length;A++){var p=h[A];e.__dirty&&(p.__dirty|=Sh),this._updateAndAddDisplayable(p,r,n)}e.__dirty=0}else{var g=e;r&&r.length?g.__clipPaths=r:g.__clipPaths&&g.__clipPaths.length>0&&(g.__clipPaths=[]),isNaN(g.z)&&(SG(),g.z=0),isNaN(g.z2)&&(SG(),g.z2=0),isNaN(g.zlevel)&&(SG(),g.zlevel=0),this._displayList[this._displayListLen++]=g}var y=e.getDecalElement&&e.getDecalElement();y&&this._updateAndAddDisplayable(y,r,n);var _=e.getTextGuideLine();_&&this._updateAndAddDisplayable(_,r,n);var b=e.getTextContent();b&&this._updateAndAddDisplayable(b,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var o=ss(this._roots,e);o>=0&&this._roots.splice(o,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),HP;HP=Oi.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var jE={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-jE.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?jE.bounceIn(t*2)*.5:jE.bounceOut(t*2-1)*.5+.5}},DD=Math.pow,dy=Math.sqrt,QP=1e-8,rOe=1e-4,pbe=dy(3),RD=1/3,jv=ux(),Ed=ux(),mS=ux();function iy(t){return t>-QP&&t<QP}function nOe(t){return t>QP||t<-QP}function Wu(t,e,r,n,o){var u=1-o;return u*u*(u*t+3*o*e)+o*o*(o*n+3*u*r)}function gbe(t,e,r,n,o){var u=1-o;return 3*(((e-t)*u+2*(r-e)*o)*u+(n-r)*o*o)}function VP(t,e,r,n,o,u){var f=n+3*(e-r)-t,h=3*(r-e*2+t),A=3*(e-t),p=t-o,g=h*h-3*f*A,y=h*A-9*f*p,_=A*A-3*h*p,b=0;if(iy(g)&&iy(y))if(iy(h))u[0]=0;else{var C=-A/h;C>=0&&C<=1&&(u[b++]=C)}else{var T=y*y-4*g*_;if(iy(T)){var B=y/g,C=-h/f+B,L=-B/2;C>=0&&C<=1&&(u[b++]=C),L>=0&&L<=1&&(u[b++]=L)}else if(T>0){var P=dy(T),I=g*h+1.5*f*(-y+P),O=g*h+1.5*f*(-y-P);I<0?I=-DD(-I,RD):I=DD(I,RD),O<0?O=-DD(-O,RD):O=DD(O,RD);var C=(-h-(I+O))/(3*f);C>=0&&C<=1&&(u[b++]=C)}else{var U=(2*g*h-3*f*y)/(2*dy(g*g*g)),N=Math.acos(U)/3,H=dy(g),z=Math.cos(N),C=(-h-2*H*z)/(3*f),L=(-h+H*(z+pbe*Math.sin(N)))/(3*f),G=(-h+H*(z-pbe*Math.sin(N)))/(3*f);C>=0&&C<=1&&(u[b++]=C),L>=0&&L<=1&&(u[b++]=L),G>=0&&G<=1&&(u[b++]=G)}}return b}function iOe(t,e,r,n,o){var u=6*r-12*e+6*t,f=9*e+3*n-3*t-9*r,h=3*e-3*t,A=0;if(iy(f)){if(nOe(u)){var p=-h/u;p>=0&&p<=1&&(o[A++]=p)}}else{var g=u*u-4*f*h;if(iy(g))o[0]=-u/(2*f);else if(g>0){var y=dy(g),p=(-u+y)/(2*f),_=(-u-y)/(2*f);p>=0&&p<=1&&(o[A++]=p),_>=0&&_<=1&&(o[A++]=_)}}return A}function zP(t,e,r,n,o,u){var f=(e-t)*o+t,h=(r-e)*o+e,A=(n-r)*o+r,p=(h-f)*o+f,g=(A-h)*o+h,y=(g-p)*o+p;u[0]=t,u[1]=f,u[2]=p,u[3]=y,u[4]=y,u[5]=g,u[6]=A,u[7]=n}function QIt(t,e,r,n,o,u,f,h,A,p,g){var y,_=.005,b=1/0,C,T,B,L;jv[0]=A,jv[1]=p;for(var P=0;P<1;P+=.05)Ed[0]=Wu(t,r,o,f,P),Ed[1]=Wu(e,n,u,h,P),B=vS(jv,Ed),B<b&&(y=P,b=B);b=1/0;for(var I=0;I<32&&!(_<rOe);I++)C=y-_,T=y+_,Ed[0]=Wu(t,r,o,f,C),Ed[1]=Wu(e,n,u,h,C),B=vS(Ed,jv),C>=0&&B<b?(y=C,b=B):(mS[0]=Wu(t,r,o,f,T),mS[1]=Wu(e,n,u,h,T),L=vS(mS,jv),T<=1&&L<b?(y=T,b=L):_*=.5);return dy(b)}function VIt(t,e,r,n,o,u,f,h,A){for(var p=t,g=e,y=0,_=1/A,b=1;b<=A;b++){var C=b*_,T=Wu(t,r,o,f,C),B=Wu(e,n,u,h,C),L=T-p,P=B-g;y+=Math.sqrt(L*L+P*P),p=T,g=B}return y}function Qf(t,e,r,n){var o=1-n;return o*(o*t+2*n*e)+n*n*r}function mbe(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function zIt(t,e,r,n,o){var u=t-2*e+r,f=2*(e-t),h=t-n,A=0;if(iy(u)){if(nOe(f)){var p=-h/f;p>=0&&p<=1&&(o[A++]=p)}}else{var g=f*f-4*u*h;if(iy(g)){var p=-f/(2*u);p>=0&&p<=1&&(o[A++]=p)}else if(g>0){var y=dy(g),p=(-f+y)/(2*u),_=(-f-y)/(2*u);p>=0&&p<=1&&(o[A++]=p),_>=0&&_<=1&&(o[A++]=_)}}return A}function aOe(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function GP(t,e,r,n,o){var u=(e-t)*n+t,f=(r-e)*n+e,h=(f-u)*n+u;o[0]=t,o[1]=u,o[2]=h,o[3]=h,o[4]=f,o[5]=r}function GIt(t,e,r,n,o,u,f,h,A){var p,g=.005,y=1/0;jv[0]=f,jv[1]=h;for(var _=0;_<1;_+=.05){Ed[0]=Qf(t,r,o,_),Ed[1]=Qf(e,n,u,_);var b=vS(jv,Ed);b<y&&(p=_,y=b)}y=1/0;for(var C=0;C<32&&!(g<rOe);C++){var T=p-g,B=p+g;Ed[0]=Qf(t,r,o,T),Ed[1]=Qf(e,n,u,T);var b=vS(Ed,jv);if(T>=0&&b<y)p=T,y=b;else{mS[0]=Qf(t,r,o,B),mS[1]=Qf(e,n,u,B);var L=vS(mS,jv);B<=1&&L<y?(p=B,y=L):g*=.5}}return dy(y)}function jIt(t,e,r,n,o,u,f){for(var h=t,A=e,p=0,g=1/f,y=1;y<=f;y++){var _=y*g,b=Qf(t,r,o,_),C=Qf(e,n,u,_),T=b-h,B=C-A;p+=Math.sqrt(T*T+B*B),h=b,A=C}return p}var qIt=/cubic-bezier\(([0-9,\.e ]+)\)/;function oOe(t){var e=t&&qIt.exec(t);if(e){var r=e[1].split(","),n=+Kv(r[0]),o=+Kv(r[1]),u=+Kv(r[2]),f=+Kv(r[3]);if(isNaN(n+o+u+f))return;var h=[];return function(A){return A<=0?0:A>=1?1:VP(0,n,u,1,A,h)&&Wu(0,o,f,1,h[0])}}}var WIt=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Kf,this.ondestroy=e.ondestroy||Kf,this.onrestart=e.onrestart||Kf,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,o=e-this._startTime-this._pausedTime,u=o/n;u<0&&(u=0),u=Math.min(u,1);var f=this.easingFunc,h=f?f(u):u;if(this.onframe(h),u===1)if(this.loop){var A=o%n;this._startTime=e-A,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ha(e)?e:jE[e]||oOe(e)},t}(),sOe=function(){function t(e){this.value=e}return t}(),$It=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new sOe(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),bB=function(){function t(e){this._list=new $It,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,o=this._map,u=null;if(o[e]==null){var f=n.len(),h=this._lastRemovedEntry;if(f>=this._maxSize&&f>0){var A=n.head;n.remove(A),delete o[A.key],u=A.value,this._lastRemovedEntry=A}h?h.value=r:h=new sOe(r),h.key=e,n.insertEntry(h),o[e]=h}return u},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),ybe={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 Ay(t){return t=Math.round(t),t<0?0:t>255?255:t}function gK(t){return t<0?0:t>1?1:t}function xG(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ay(parseFloat(e)/100*255):Ay(parseInt(e,10))}function qE(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?gK(parseFloat(e)/100):gK(parseFloat(e))}function CG(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function PD(t,e,r){return t+(e-t)*r}function pd(t,e,r,n,o){return t[0]=e,t[1]=r,t[2]=n,t[3]=o,t}function mK(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var lOe=new bB(20),OD=null;function m_(t,e){OD&&mK(OD,e),OD=lOe.put(t,OD||e.slice())}function vg(t,e){if(t){e=e||[];var r=lOe.get(t);if(r)return mK(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in ybe)return mK(e,ybe[n]),m_(t,e),e;var o=n.length;if(n.charAt(0)==="#"){if(o===4||o===5){var u=parseInt(n.slice(1,4),16);if(!(u>=0&&u<=4095)){pd(e,0,0,0,1);return}return pd(e,(u&3840)>>4|(u&3840)>>8,u&240|(u&240)>>4,u&15|(u&15)<<4,o===5?parseInt(n.slice(4),16)/15:1),m_(t,e),e}else if(o===7||o===9){var u=parseInt(n.slice(1,7),16);if(!(u>=0&&u<=16777215)){pd(e,0,0,0,1);return}return pd(e,(u&16711680)>>16,(u&65280)>>8,u&255,o===9?parseInt(n.slice(7),16)/255:1),m_(t,e),e}return}var f=n.indexOf("("),h=n.indexOf(")");if(f!==-1&&h+1===o){var A=n.substr(0,f),p=n.substr(f+1,h-(f+1)).split(","),g=1;switch(A){case"rgba":if(p.length!==4)return p.length===3?pd(e,+p[0],+p[1],+p[2],1):pd(e,0,0,0,1);g=qE(p.pop());case"rgb":if(p.length>=3)return pd(e,xG(p[0]),xG(p[1]),xG(p[2]),p.length===3?g:qE(p[3])),m_(t,e),e;pd(e,0,0,0,1);return;case"hsla":if(p.length!==4){pd(e,0,0,0,1);return}return p[3]=qE(p[3]),wbe(p,e),m_(t,e),e;case"hsl":if(p.length!==3){pd(e,0,0,0,1);return}return wbe(p,e),m_(t,e),e;default:return}}pd(e,0,0,0,1)}}function wbe(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=qE(t[1]),o=qE(t[2]),u=o<=.5?o*(n+1):o+n-o*n,f=o*2-u;return e=e||[],pd(e,Ay(CG(f,u,r+1/3)*255),Ay(CG(f,u,r)*255),Ay(CG(f,u,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function bbe(t,e){var r=vg(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Bk(r,r.length===4?"rgba":"rgb")}}function KIt(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),o=Math.floor(n),u=Math.ceil(n),f=vg(e[o]),h=vg(e[u]),A=n-o,p=Bk([Ay(PD(f[0],h[0],A)),Ay(PD(f[1],h[1],A)),Ay(PD(f[2],h[2],A)),gK(PD(f[3],h[3],A))],"rgba");return r?{color:p,leftIndex:o,rightIndex:u,value:n}:p}}function Bk(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function jP(t,e){var r=vg(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var _be=new bB(100);function Sbe(t){if(ri(t)){var e=_be.get(t);return e||(e=bbe(t,-.1),_be.put(t,e)),e}else if(Tk(t)){var r=Wr({},t);return r.colorStops=ra(t.colorStops,function(n){return{offset:n.offset,color:bbe(n.color,-.1)}}),r}return t}function YIt(t){return t.type==="linear"}function XIt(t){return t.type==="radial"}(function(){return Oi.hasGlobalWindow&&ha(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var yK=Array.prototype.slice;function ag(t,e,r){return(e-t)*r+t}function TG(t,e,r,n){for(var o=e.length,u=0;u<o;u++)t[u]=ag(e[u],r[u],n);return t}function ZIt(t,e,r,n){for(var o=e.length,u=o&&e[0].length,f=0;f<o;f++){t[f]||(t[f]=[]);for(var h=0;h<u;h++)t[f][h]=ag(e[f][h],r[f][h],n)}return t}function kD(t,e,r,n){for(var o=e.length,u=0;u<o;u++)t[u]=e[u]+r[u]*n;return t}function xbe(t,e,r,n){for(var o=e.length,u=o&&e[0].length,f=0;f<o;f++){t[f]||(t[f]=[]);for(var h=0;h<u;h++)t[f][h]=e[f][h]+r[f][h]*n}return t}function JIt(t,e){for(var r=t.length,n=e.length,o=r>n?e:t,u=Math.min(r,n),f=o[u-1]||{color:[0,0,0,0],offset:0},h=u;h<Math.max(r,n);h++)o.push({offset:f.offset,color:f.color.slice()})}function eLt(t,e,r){var n=t,o=e;if(!(!n.push||!o.push)){var u=n.length,f=o.length;if(u!==f){var h=u>f;if(h)n.length=f;else for(var A=u;A<f;A++)n.push(r===1?o[A]:yK.call(o[A]))}for(var p=n[0]&&n[0].length,A=0;A<n.length;A++)if(r===1)isNaN(n[A])&&(n[A]=o[A]);else for(var g=0;g<p;g++)isNaN(n[A][g])&&(n[A][g]=o[A][g])}}function Z5(t){if(Zf(t)){var e=t.length;if(Zf(t[0])){for(var r=[],n=0;n<e;n++)r.push(yK.call(t[n]));return r}return yK.call(t)}return t}function J5(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function tLt(t){return Zf(t&&t[0])?2:1}var FD=0,eR=1,uOe=2,mE=3,wK=4,bK=5,Cbe=6;function Tbe(t){return t===wK||t===bK}function ND(t){return t===eR||t===uOe}var TT=[0,0,0,0],rLt=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var o=this.keyframes,u=o.length,f=!1,h=Cbe,A=r;if(Zf(r)){var p=tLt(r);h=p,(p===1&&!ws(r[0])||p===2&&!ws(r[0][0]))&&(f=!0)}else if(ws(r)&&!iIt(r))h=FD;else if(ri(r))if(!isNaN(+r))h=FD;else{var g=vg(r);g&&(A=g,h=mE)}else if(Tk(r)){var y=Wr({},A);y.colorStops=ra(r.colorStops,function(b){return{offset:b.offset,color:vg(b.color)}}),YIt(r)?h=wK:XIt(r)&&(h=bK),A=y}u===0?this.valType=h:(h!==this.valType||h===Cbe)&&(f=!0),this.discrete=this.discrete||f;var _={time:e,value:A,rawValue:r,percent:0};return n&&(_.easing=n,_.easingFunc=ha(n)?n:jE[n]||oOe(n)),o.push(_),_},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(T,B){return T.time-B.time});for(var o=this.valType,u=n.length,f=n[u-1],h=this.discrete,A=ND(o),p=Tbe(o),g=0;g<u;g++){var y=n[g],_=y.value,b=f.value;y.percent=y.time/e,h||(A&&g!==u-1?eLt(_,b,o):p&&JIt(_.colorStops,b.colorStops))}if(!h&&o!==bK&&r&&this.needsAnimate()&&r.needsAnimate()&&o===r.valType&&!r._finished){this._additiveTrack=r;for(var C=n[0].value,g=0;g<u;g++)o===FD?n[g].additiveValue=n[g].value-C:o===mE?n[g].additiveValue=kD([],n[g].value,C,-1):ND(o)&&(n[g].additiveValue=o===eR?kD([],n[g].value,C,-1):xbe([],n[g].value,C,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,o=n?"additiveValue":"value",u=this.valType,f=this.keyframes,h=f.length,A=this.propName,p=u===mE,g,y=this._lastFr,_=Math.min,b,C;if(h===1)b=C=f[0];else{if(r<0)g=0;else if(r<this._lastFrP){var T=_(y+1,h-1);for(g=T;g>=0&&!(f[g].percent<=r);g--);g=_(g,h-2)}else{for(g=y;g<h&&!(f[g].percent>r);g++);g=_(g-1,h-2)}C=f[g+1],b=f[g]}if(b&&C){this._lastFr=g,this._lastFrP=r;var B=C.percent-b.percent,L=B===0?1:_((r-b.percent)/B,1);C.easingFunc&&(L=C.easingFunc(L));var P=n?this._additiveValue:p?TT:e[A];if((ND(u)||p)&&!P&&(P=this._additiveValue=[]),this.discrete)e[A]=L<1?b.rawValue:C.rawValue;else if(ND(u))u===eR?TG(P,b[o],C[o],L):ZIt(P,b[o],C[o],L);else if(Tbe(u)){var I=b[o],O=C[o],U=u===wK;e[A]={type:U?"linear":"radial",x:ag(I.x,O.x,L),y:ag(I.y,O.y,L),colorStops:ra(I.colorStops,function(H,z){var G=O.colorStops[z];return{offset:ag(H.offset,G.offset,L),color:J5(TG([],H.color,G.color,L))}}),global:O.global},U?(e[A].x2=ag(I.x2,O.x2,L),e[A].y2=ag(I.y2,O.y2,L)):e[A].r=ag(I.r,O.r,L)}else if(p)TG(P,b[o],C[o],L),n||(e[A]=J5(P));else{var N=ag(b[o],C[o],L);n?this._additiveValue=N:e[A]=N}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,o=this._additiveValue;r===FD?e[n]=e[n]+o:r===mE?(vg(e[n],TT),kD(TT,TT,o,1),e[n]=J5(TT)):r===eR?kD(e[n],e[n],o,1):r===uOe&&xbe(e[n],e[n],o,1)},t}(),pZ=function(){function t(e,r,n,o){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&o){fZ("Can' use additive animation on looped animation.");return}this._additiveAnimators=o,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,gl(r),n)},t.prototype.whenWithKeys=function(e,r,n,o){for(var u=this._tracks,f=0;f<n.length;f++){var h=n[f],A=u[h];if(!A){A=u[h]=new rLt(h);var p=void 0,g=this._getAdditiveTrack(h);if(g){var y=g.keyframes,_=y[y.length-1];p=_&&_.value,g.valType===mE&&p&&(p=J5(p))}else p=this._target[h];if(p==null)continue;e>0&&A.addKeyframe(0,Z5(p),o),this._trackKeys.push(h)}A.addKeyframe(e,Z5(r[h]),o)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var o=0;o<n.length;o++){var u=n[o].getTrack(e);u&&(r=u)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],o=this._maxTime||0,u=0;u<this._trackKeys.length;u++){var f=this._trackKeys[u],h=this._tracks[f],A=this._getAdditiveTrack(f),p=h.keyframes,g=p.length;if(h.prepare(o,A),h.needsAnimate())if(!this._allowDiscrete&&h.discrete){var y=p[g-1];y&&(r._target[h.propName]=y.rawValue),h.setFinished()}else n.push(h)}if(n.length||this._force){var _=new WIt({life:o,loop:this._loop,delay:this._delay||0,onframe:function(b){r._started=2;var C=r._additiveAnimators;if(C){for(var T=!1,B=0;B<C.length;B++)if(C[B]._clip){T=!0;break}T||(r._additiveAnimators=null)}for(var B=0;B<n.length;B++)n[B].step(r._target,b);var L=r._onframeCbs;if(L)for(var B=0;B<L.length;B++)L[B](r._target,b)},ondestroy:function(){r._doneCallback()}});this._clip=_,this.animation&&this.animation.addClip(_),e&&_.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return ra(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,o=this._trackKeys,u=0;u<e.length;u++){var f=n[e[u]];f&&!f.isFinished()&&(r?f.step(this._target,1):this._started===1&&f.step(this._target,0),f.setFinished())}for(var h=!0,u=0;u<o.length;u++)if(!n[o[u]].isFinished()){h=!1;break}return h&&this._abortedCallback(),h},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var o=0;o<r.length;o++){var u=r[o],f=this._tracks[u];if(!(!f||f.isFinished())){var h=f.keyframes,A=h[n?0:h.length-1];A&&(e[u]=Z5(A.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||gl(e);for(var n=0;n<r.length;n++){var o=r[n],u=this._tracks[o];if(u){var f=u.keyframes;if(f.length>1){var h=f.pop();u.addKeyframe(h.time,e[o]),u.prepare(this._maxTime,u.getAdditiveTrack())}}}},t}();function Y_(){return new Date().getTime()}var nLt=function(t){Io(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,o=r.next;n?n.next=o:this._head=o,o?o.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Y_()-this._pausedTime,o=n-this._time,u=this._head;u;){var f=u.next,h=u.step(n,o);h&&(u.ondestroy(),this.removeClip(u)),u=f}this._time=n,r||(this.trigger("frame",o),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(HP(n),!r._paused&&r.update())}HP(n)},e.prototype.start=function(){this._running||(this._time=Y_(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Y_(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Y_()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var o=new pZ(r,n.loop);return this.addAnimator(o),o},e}(cp),iLt=300,EG=Oi.domSupported,BG=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=ra(t,function(o){var u=o.replace("mouse","pointer");return r.hasOwnProperty(u)?u:o});return{mouse:t,touch:e,pointer:n}}(),Ebe={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Bbe=!1;function _K(t){var e=t.pointerType;return e==="pen"||e==="touch"}function aLt(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function IG(t){t&&(t.zrByTouch=!0)}function oLt(t,e){return md(t.dom,new sLt(t,e),!0)}function cOe(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var sLt=function(){function t(e,r){this.stopPropagation=Kf,this.stopImmediatePropagation=Kf,this.preventDefault=Kf,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),BA={mousedown:function(t){t=md(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=md(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=md(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=md(this.dom,t);var e=t.toElement||t.relatedTarget;cOe(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Bbe=!0,t=md(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Bbe||(t=md(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=md(this.dom,t),IG(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),BA.mousemove.call(this,t),BA.mousedown.call(this,t)},touchmove:function(t){t=md(this.dom,t),IG(t),this.handler.processGesture(t,"change"),BA.mousemove.call(this,t)},touchend:function(t){t=md(this.dom,t),IG(t),this.handler.processGesture(t,"end"),BA.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<iLt&&BA.click.call(this,t)},pointerdown:function(t){BA.mousedown.call(this,t)},pointermove:function(t){_K(t)||BA.mousemove.call(this,t)},pointerup:function(t){BA.mouseup.call(this,t)},pointerout:function(t){_K(t)||BA.mouseout.call(this,t)}};jt(["click","dblclick","contextmenu"],function(t){BA[t]=function(e){e=md(this.dom,e),this.trigger(t,e)}});var SK={pointermove:function(t){_K(t)||SK.mousemove.call(this,t)},pointerup:function(t){SK.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function lLt(t,e){var r=e.domHandlers;Oi.pointerEventsSupported?jt(BG.pointer,function(n){tR(e,n,function(o){r[n].call(t,o)})}):(Oi.touchEventsSupported&&jt(BG.touch,function(n){tR(e,n,function(o){r[n].call(t,o),aLt(e)})}),jt(BG.mouse,function(n){tR(e,n,function(o){o=dZ(o),e.touching||r[n].call(t,o)})}))}function uLt(t,e){Oi.pointerEventsSupported?jt(Ebe.pointer,r):Oi.touchEventsSupported||jt(Ebe.mouse,r);function r(n){function o(u){u=dZ(u),cOe(t,u.target)||(u=oLt(t,u),e.domHandlers[n].call(t,u))}tR(e,n,o,{capture:!0})}}function tR(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,TIt(t.domTarget,e,r,n)}function LG(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&EIt(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Ibe=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),cLt=function(t){Io(e,t);function e(r,n){var o=t.call(this)||this;return o.__pointerCapturing=!1,o.dom=r,o.painterRoot=n,o._localHandlerScope=new Ibe(r,BA),EG&&(o._globalHandlerScope=new Ibe(document,SK)),lLt(o,o._localHandlerScope),o}return e.prototype.dispose=function(){LG(this._localHandlerScope),EG&&LG(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,EG&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?uLt(this,n):LG(n)}},e}(cp),fOe=1;Oi.hasGlobalWindow&&(fOe=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var qP=fOe,xK=.4,CK="#333",TK="#ccc",fLt="#eee",Lbe=AZ,Mbe=5e-5;function $0(t){return t>Mbe||t<-Mbe}var K0=[],y_=[],MG=pS(),DG=Math.abs,gZ=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return $0(this.rotation)||$0(this.x)||$0(this.y)||$0(this.scaleX-1)||$0(this.scaleY-1)||$0(this.skewX)||$0(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(Lbe(n),this.invTransform=null);return}n=n||pS(),r?this.getLocalTransform(n):Lbe(n),e&&(r?gS(n,e,n):LIt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(K0);var n=K0[0]<0?-1:1,o=K0[1]<0?-1:1,u=((K0[0]-n)*r+n)/K0[0]||0,f=((K0[1]-o)*r+o)/K0[1]||0;e[0]*=u,e[1]*=u,e[2]*=f,e[3]*=f}this.invTransform=this.invTransform||pS(),XPe(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],o=Math.atan2(e[1],e[0]),u=Math.PI/2+o-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(u),r=Math.sqrt(r),this.skewX=u,this.skewY=0,this.rotation=-o,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||pS(),gS(y_,e.invTransform,r),r=y_);var n=this.originX,o=this.originY;(n||o)&&(MG[4]=n,MG[5]=o,gS(y_,r,MG),y_[4]-=n,y_[5]-=o,r=y_),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],o=this.invTransform;return o&&ep(n,n,o),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],o=this.transform;return o&&ep(n,n,o),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&DG(e[0]-1)>1e-10&&DG(e[3]-1)>1e-10?Math.sqrt(DG(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){hLt(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,o=e.originY||0,u=e.scaleX,f=e.scaleY,h=e.anchorX,A=e.anchorY,p=e.rotation||0,g=e.x,y=e.y,_=e.skewX?Math.tan(e.skewX):0,b=e.skewY?Math.tan(-e.skewY):0;if(n||o||h||A){var C=n+h,T=o+A;r[4]=-C*u-_*T*f,r[5]=-T*f-b*C*u}else r[4]=r[5]=0;return r[0]=u,r[3]=f,r[1]=b*u,r[2]=_*f,p&&vZ(r,r,p),r[4]+=n+g,r[5]+=o+y,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),L2=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function hLt(t,e){for(var r=0;r<L2.length;r++){var n=L2[r];t[n]=e[n]}}var Dbe={};function Ih(t,e){e=e||aw;var r=Dbe[e];r||(r=Dbe[e]=new bB(500));var n=r.get(t);return n==null&&(n=lx.measureText(t,e).width,r.put(t,n)),n}function Rbe(t,e,r,n){var o=Ih(t,e),u=mZ(e),f=yE(0,o,r),h=U_(0,u,n),A=new ko(f,h,o,u);return A}function hOe(t,e,r,n){var o=((t||"")+"").split(`
`),u=o.length;if(u===1)return Rbe(o[0],e,r,n);for(var f=new ko(0,0,0,0),h=0;h<o.length;h++){var A=Rbe(o[h],e,r,n);h===0?f.copy(A):f.union(A)}return f}function yE(t,e,r){return r==="right"?t-=e:r==="center"&&(t-=e/2),t}function U_(t,e,r){return r==="middle"?t-=e/2:r==="bottom"&&(t-=e),t}function mZ(t){return Ih("国",t)}function NS(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function dOe(t,e,r){var n=e.position||"inside",o=e.distance!=null?e.distance:5,u=r.height,f=r.width,h=u/2,A=r.x,p=r.y,g="left",y="top";if(n instanceof Array)A+=NS(n[0],r.width),p+=NS(n[1],r.height),g=null,y=null;else switch(n){case"left":A-=o,p+=h,g="right",y="middle";break;case"right":A+=o+f,p+=h,y="middle";break;case"top":A+=f/2,p-=o,g="center",y="bottom";break;case"bottom":A+=f/2,p+=u+o,g="center";break;case"inside":A+=f/2,p+=h,g="center",y="middle";break;case"insideLeft":A+=o,p+=h,y="middle";break;case"insideRight":A+=f-o,p+=h,g="right",y="middle";break;case"insideTop":A+=f/2,p+=o,g="center";break;case"insideBottom":A+=f/2,p+=u-o,g="center",y="bottom";break;case"insideTopLeft":A+=o,p+=o;break;case"insideTopRight":A+=f-o,p+=o,g="right";break;case"insideBottomLeft":A+=o,p+=u-o,y="bottom";break;case"insideBottomRight":A+=f-o,p+=u-o,g="right",y="bottom";break}return t=t||{},t.x=A,t.y=p,t.align=g,t.verticalAlign=y,t}var RG="__zr_normal__",PG=L2.concat(["ignore"]),dLt=Sy(L2,function(t,e){return t[e]=!0,t},{ignore:!1}),w_={},ALt=new ko(0,0,0,0),Ik=function(){function t(e){this.id=GPe(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var o=this.transform;o||(o=this.transform=[1,0,0,1,0,0]),o[4]+=e,o[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,o=n.local,u=r.innerTransformable,f=void 0,h=void 0,A=!1;u.parent=o?this:null;var p=!1;if(u.copyTransform(r),n.position!=null){var g=ALt;n.layoutRect?g.copy(n.layoutRect):g.copy(this.getBoundingRect()),o||g.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(w_,n,g):dOe(w_,n,g),u.x=w_.x,u.y=w_.y,f=w_.align,h=w_.verticalAlign;var y=n.origin;if(y&&n.rotation!=null){var _=void 0,b=void 0;y==="center"?(_=g.width*.5,b=g.height*.5):(_=NS(y[0],g.width),b=NS(y[1],g.height)),p=!0,u.originX=-u.x+_+(o?0:g.x),u.originY=-u.y+b+(o?0:g.y)}}n.rotation!=null&&(u.rotation=n.rotation);var C=n.offset;C&&(u.x+=C[0],u.y+=C[1],p||(u.originX=-C[0],u.originY=-C[1]));var T=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,B=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),L=void 0,P=void 0,I=void 0;T&&this.canBeInsideText()?(L=n.insideFill,P=n.insideStroke,(L==null||L==="auto")&&(L=this.getInsideTextFill()),(P==null||P==="auto")&&(P=this.getInsideTextStroke(L),I=!0)):(L=n.outsideFill,P=n.outsideStroke,(L==null||L==="auto")&&(L=this.getOutsideFill()),(P==null||P==="auto")&&(P=this.getOutsideStroke(L),I=!0)),L=L||"#000",(L!==B.fill||P!==B.stroke||I!==B.autoStroke||f!==B.align||h!==B.verticalAlign)&&(A=!0,B.fill=L,B.stroke=P,B.autoStroke=I,B.align=f,B.verticalAlign=h,r.setDefaultTextStyle(B)),r.__dirty|=Sh,A&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?TK:CK},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&vg(r);n||(n=[255,255,255,1]);for(var o=n[3],u=this.__zr.isDarkMode(),f=0;f<3;f++)n[f]=n[f]*o+(u?0:255)*(1-o);return n[3]=1,Bk(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},Wr(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(wi(e))for(var n=e,o=gl(n),u=0;u<o.length;u++){var f=o[u];this.attrKV(f,e[f])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var o=this.animators[n],u=o.__fromStateTransition;if(!(o.getLoop()||u&&u!==RG)){var f=o.targetName,h=f?r[f]:r;o.saveTo(h)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,PG)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var o=0;o<n.length;o++){var u=n[o];e[u]!=null&&!(u in r)&&(r[u]=this[u])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(RG,!1,e)},t.prototype.useState=function(e,r,n,o){var u=e===RG,f=this.hasState();if(!(!f&&u)){var h=this.currentStates,A=this.stateTransition;if(!(ss(h,e)>=0&&(r||h.length===1))){var p;if(this.stateProxy&&!u&&(p=this.stateProxy(e)),p||(p=this.states&&this.states[e]),!p&&!u){fZ("State "+e+" not exists.");return}u||this.saveCurrentToNormalState(p);var g=!!(p&&p.hoverLayer||o);g&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,p,this._normalState,r,!n&&!this.__inHover&&A&&A.duration>0,A);var y=this._textContent,_=this._textGuide;return y&&y.useState(e,r,n,g),_&&_.useState(e,r,n,g),u?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!g&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Sh),p}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var o=[],u=this.currentStates,f=e.length,h=f===u.length;if(h){for(var A=0;A<f;A++)if(e[A]!==u[A]){h=!1;break}}if(h)return;for(var A=0;A<f;A++){var p=e[A],g=void 0;this.stateProxy&&(g=this.stateProxy(p,e)),g||(g=this.states[p]),g&&o.push(g)}var y=o[f-1],_=!!(y&&y.hoverLayer||n);_&&this._toggleHoverLayerFlag(!0);var b=this._mergeStates(o),C=this.stateTransition;this.saveCurrentToNormalState(b),this._applyStateObj(e.join(","),b,this._normalState,!1,!r&&!this.__inHover&&C&&C.duration>0,C);var T=this._textContent,B=this._textGuide;T&&T.useStates(e,r,_),B&&B.useStates(e,r,_),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!_&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Sh)}},t.prototype.isSilent=function(){for(var e=this.silent,r=this.parent;!e&&r;){if(r.silent){e=!0;break}r=r.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ss(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var o=this.currentStates.slice(),u=ss(o,e),f=ss(o,r)>=0;u>=0?f?o.splice(u,1):o[u]=r:n&&!f&&o.push(r),this.useStates(o)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,o=0;o<e.length;o++){var u=e[o];Wr(r,u),u.textConfig&&(n=n||{},Wr(n,u.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,o,u,f){var h=!(r&&o);r&&r.textConfig?(this.textConfig=Wr({},o?this.textConfig:n.textConfig),Wr(this.textConfig,r.textConfig)):h&&n.textConfig&&(this.textConfig=n.textConfig);for(var A={},p=!1,g=0;g<PG.length;g++){var y=PG[g],_=u&&dLt[y];r&&r[y]!=null?_?(p=!0,A[y]=r[y]):this[y]=r[y]:h&&n[y]!=null&&(_?(p=!0,A[y]=n[y]):this[y]=n[y])}if(!u)for(var g=0;g<this.animators.length;g++){var b=this.animators[g],C=b.targetName;b.getLoop()||b.__changeFinalValue(C?(r||n)[C]:r||n)}p&&this._transitionState(e,A,f)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new gZ,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Wr(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Sh;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var o=e?this[e]:this,u=new pZ(o,r,n);return e&&(u.targetName=e),this.addAnimator(u,e),u},t.prototype.addAnimator=function(e,r){var n=this.__zr,o=this;e.during(function(){o.updateDuringAnimation(r)}).done(function(){var u=o.animators,f=ss(u,e);f>=0&&u.splice(f,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,o=n.length,u=[],f=0;f<o;f++){var h=n[f];!e||e===h.scope?h.stop(r):u.push(h)}return this.animators=u,this},t.prototype.animateTo=function(e,r,n){OG(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){OG(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,o){for(var u=OG(this,r,n,o),f=0;f<u.length;f++)u[f].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Sh;function r(n,o,u,f){Object.defineProperty(e,n,{get:function(){if(!this[o]){var A=this[o]=[];h(this,A)}return this[o]},set:function(A){this[u]=A[0],this[f]=A[1],this[o]=A,h(this,A)}});function h(A,p){Object.defineProperty(p,0,{get:function(){return A[u]},set:function(g){A[u]=g}}),Object.defineProperty(p,1,{get:function(){return A[f]},set:function(g){A[f]=g}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();Mg(Ik,cp);Mg(Ik,gZ);function OG(t,e,r,n,o){r=r||{};var u=[];AOe(t,"",t,e,r,n,u,o);var f=u.length,h=!1,A=r.done,p=r.aborted,g=function(){h=!0,f--,f<=0&&(h?A&&A():p&&p())},y=function(){f--,f<=0&&(h?A&&A():p&&p())};f||A&&A(),u.length>0&&r.during&&u[0].during(function(C,T){r.during(T)});for(var _=0;_<u.length;_++){var b=u[_];g&&b.done(g),y&&b.aborted(y),r.force&&b.duration(r.duration),b.start(r.easing)}return u}function kG(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function vLt(t){return Zf(t[0])}function pLt(t,e,r){if(Zf(e[r]))if(Zf(t[r])||(t[r]=[]),Jf(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),kG(t[r],e[r],n))}else{var o=e[r],u=t[r],f=o.length;if(vLt(o))for(var h=o[0].length,A=0;A<f;A++)u[A]?kG(u[A],o[A],h):u[A]=Array.prototype.slice.call(o[A]);else kG(u,o,f);u.length=o.length}else t[r]=e[r]}function gLt(t,e){return t===e||Zf(t)&&Zf(e)&&mLt(t,e)}function mLt(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function AOe(t,e,r,n,o,u,f,h){for(var A=gl(n),p=o.duration,g=o.delay,y=o.additive,_=o.setToFinal,b=!wi(u),C=t.animators,T=[],B=0;B<A.length;B++){var L=A[B],P=n[L];if(P!=null&&r[L]!=null&&(b||u[L]))if(wi(P)&&!Zf(P)&&!Tk(P)){if(e){h||(r[L]=P,t.updateDuringAnimation(e));continue}AOe(t,L,r[L],P,o,u&&u[L],f,h)}else T.push(L);else h||(r[L]=P,t.updateDuringAnimation(e),T.push(L))}var I=T.length;if(!y&&I)for(var O=0;O<C.length;O++){var U=C[O];if(U.targetName===e){var N=U.stopTracks(T);if(N){var H=ss(C,U);C.splice(H,1)}}}if(o.force||(T=Td(T,function(q){return!gLt(n[q],r[q])}),I=T.length),I>0||o.force&&!f.length){var z=void 0,G=void 0,j=void 0;if(h){G={},_&&(z={});for(var O=0;O<I;O++){var L=T[O];G[L]=r[L],_?z[L]=n[L]:r[L]=n[L]}}else if(_){j={};for(var O=0;O<I;O++){var L=T[O];j[L]=Z5(r[L]),pLt(r,n,L)}}var U=new pZ(r,!1,!1,y?Td(C,function(X){return X.targetName===e}):null);U.targetName=e,o.scope&&(U.scope=o.scope),_&&z&&U.whenWithKeys(0,z,T),j&&U.whenWithKeys(0,j,T),U.whenWithKeys(p??500,h?G:n,T).delay(g||0),t.addAnimator(U,e),f.push(U)}}var hf=function(t){Io(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,o=0;o<n.length;o++)if(n[o].name===r)return n[o]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var o=this._children,u=o.indexOf(n);u>=0&&(o.splice(u,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var o=ss(this._children,r);return o>=0&&this.replaceAt(n,o),this},e.prototype.replaceAt=function(r,n){var o=this._children,u=o[n];if(r&&r!==this&&r.parent!==this&&r!==u){o[n]=r,u.parent=null;var f=this.__zr;f&&u.removeSelfFromZr(f),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,o=this._children,u=ss(o,r);return u<0?this:(o.splice(u,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,o=0;o<r.length;o++){var u=r[o];n&&u.removeSelfFromZr(n),u.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var o=this._children,u=0;u<o.length;u++){var f=o[u];r.call(n,f,u)}return this},e.prototype.traverse=function(r,n){for(var o=0;o<this._children.length;o++){var u=this._children[o],f=r.call(n,u);u.isGroup&&!f&&u.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var o=this._children[n];o.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var o=this._children[n];o.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new ko(0,0,0,0),o=r||this._children,u=[],f=null,h=0;h<o.length;h++){var A=o[h];if(!(A.ignore||A.invisible)){var p=A.getBoundingRect(),g=A.getLocalTransform(u);g?(ko.applyTransform(n,p,g),f=f||n.clone(),f.union(n)):(f=f||p.clone(),f.union(p))}}return f||n},e}(Ik);hf.prototype.type="group";/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var rR={},vOe={};function yLt(t){delete vOe[t]}function wLt(t){if(!t)return!1;if(typeof t=="string")return jP(t,1)<xK;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,o=0;o<n;o++)r+=jP(e[o].color,1);return r/=n,r<xK}return!1}var bLt=function(){function t(e,r,n){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var u=new HIt,f=n.renderer||"canvas";rR[f]||(f=gl(rR)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var h=new rR[f](r,u,n,e),A=n.ssr||h.ssrOnly;this.storage=u,this.painter=h;var p=!Oi.node&&!Oi.worker&&!A?new cLt(h.getViewportRoot(),h.root):null,g=n.useCoarsePointer,y=g==null||g==="auto"?Oi.touchEventsSupported:!!g,_=44,b;y&&(b=Ji(n.pointerSize,_)),this.handler=new JPe(u,h,p,h.root,b),this.animation=new nLt({stage:{update:A?null:function(){return o._flush(!0)}}}),A||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=wLt(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=Y_();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var o=Y_();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof hf&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,yLt(this.id))},t}();function Pbe(t,e){var r=new bLt(GPe(),t,e);return vOe[r.id]=r,r}function _Lt(t,e){rR[t]=e}var Obe=1e-4,pOe=20;function SLt(t){return t.replace(/^\s+|\s+$/g,"")}function xLt(t,e,r,n){var o=e[0],u=e[1],f=r[0],h=r[1],A=u-o,p=h-f;if(A===0)return p===0?f:(f+h)/2;{if(t===o)return f;if(t===u)return h}return(t-o)/A*p+f}function lu(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return ri(t)?SLt(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function I1(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),pOe),t=(+t).toFixed(e),r?t:+t}function X_(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return CLt(t)}function CLt(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,o=r>0?r:e.length,u=e.indexOf("."),f=u<0?0:o-1-u;return Math.max(0,f-n)}function TLt(t,e){var r=Sy(t,function(b,C){return b+(isNaN(C)?0:C)},0);if(r===0)return[];for(var n=Math.pow(10,e),o=ra(t,function(b){return(isNaN(b)?0:b)/r*n*100}),u=n*100,f=ra(o,function(b){return Math.floor(b)}),h=Sy(f,function(b,C){return b+C},0),A=ra(o,function(b,C){return b-f[C]});h<u;){for(var p=Number.NEGATIVE_INFINITY,g=null,y=0,_=A.length;y<_;++y)A[y]>p&&(p=A[y],g=y);++f[g],A[g]=0,++h}return ra(f,function(b){return b/n})}function ELt(t,e){var r=Math.max(X_(t),X_(e)),n=t+e;return r>pOe?n:I1(n,r)}function gOe(t){var e=Math.PI*2;return(t%e+e)%e}function WP(t){return t>-Obe&&t<Obe}var BLt=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Lk(t){if(t instanceof Date)return t;if(ri(t)){var e=BLt.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function $P(t){var e=parseFloat(t);return e==t&&(e!==0||!ri(t)||t.indexOf("x")<=0)?e:NaN}function ILt(t){return!isNaN($P(t))}function mOe(){return Math.round(Math.random()*9)}function yOe(t,e){return e===0?t:yOe(e,t%e)}function kbe(t,e){return t==null?e:e==null?t:t*e/yOe(t,e)}function Vf(t){throw new Error(t)}function Fbe(t,e,r){return(e-t)*r+t}var wOe="series\0",LLt="\0_ec_\0";function ff(t){return t instanceof Array?t:t==null?[]:[t]}function EK(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,o=r.length;n<o;n++){var u=r[n];!t.emphasis[e].hasOwnProperty(u)&&t[e].hasOwnProperty(u)&&(t.emphasis[e][u]=t[e][u])}}}var Nbe=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function _B(t){return wi(t)&&!Nn(t)&&!(t instanceof Date)?t.value:t}function MLt(t){return wi(t)&&!(t instanceof Array)}function DLt(t,e,r){var n=r==="normalMerge",o=r==="replaceMerge",u=r==="replaceAll";t=t||[],e=(e||[]).slice();var f=fa();jt(e,function(A,p){if(!wi(A)){e[p]=null;return}});var h=RLt(t,f,r);return(n||o)&&PLt(h,t,f,e),n&&OLt(h,e),n||o?kLt(h,e,o):u&&FLt(h,e),NLt(h),h}function RLt(t,e,r){var n=[];if(r==="replaceAll")return n;for(var o=0;o<t.length;o++){var u=t[o];u&&u.id!=null&&e.set(u.id,o),n.push({existing:r==="replaceMerge"||M2(u)?null:u,newOption:null,keyInfo:null,brandNew:null})}return n}function PLt(t,e,r,n){jt(n,function(o,u){if(!(!o||o.id==null)){var f=WE(o.id),h=r.get(f);if(h!=null){var A=t[h];Sg(!A.newOption,'Duplicated option on id "'+f+'".'),A.newOption=o,A.existing=e[h],n[u]=null}}})}function OLt(t,e){jt(e,function(r,n){if(!(!r||r.name==null))for(var o=0;o<t.length;o++){var u=t[o].existing;if(!t[o].newOption&&u&&(u.id==null||r.id==null)&&!M2(r)&&!M2(u)&&bOe("name",u,r)){t[o].newOption=r,e[n]=null;return}}})}function kLt(t,e,r){jt(e,function(n){if(n){for(var o,u=0;(o=t[u])&&(o.newOption||M2(o.existing)||o.existing&&n.id!=null&&!bOe("id",n,o.existing));)u++;o?(o.newOption=n,o.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),u++}})}function FLt(t,e){jt(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function NLt(t){var e=fa();jt(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),jt(t,function(r){var n=r.newOption;Sg(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),jt(t,function(r,n){var o=r.existing,u=r.newOption,f=r.keyInfo;if(wi(u)){if(f.name=u.name!=null?WE(u.name):o?o.name:wOe+n,o)f.id=WE(o.id);else if(u.id!=null)f.id=WE(u.id);else{var h=0;do f.id="\0"+f.name+"\0"+h++;while(e.get(f.id))}e.set(f.id,r)}})}function bOe(t,e,r){var n=tp(e[t],null),o=tp(r[t],null);return n!=null&&o!=null&&n===o}function WE(t){return tp(t,"")}function tp(t,e){return t==null?e:ri(t)?t:ws(t)||uK(t)?t+"":e}function yZ(t){var e=t.name;return!!(e&&e.indexOf(wOe))}function M2(t){return t&&t.id!=null&&WE(t.id).indexOf(LLt)===0}function ULt(t,e,r){jt(t,function(n){var o=n.newOption;wi(o)&&(n.keyInfo.mainType=e,n.keyInfo.subType=HLt(e,o,n.existing,r))})}function HLt(t,e,r,n){var o=e.type?e.type:r?r.subType:n.determineSubType(t,e);return o}function sw(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return Nn(e.dataIndex)?ra(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return Nn(e.name)?ra(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function hu(){var t="__ec_inner_"+QLt++;return function(e){return e[t]||(e[t]={})}}var QLt=mOe();function FG(t,e,r){var n=wZ(e,r),o=n.mainTypeSpecified,u=n.queryOptionMap,f=n.others,h=f,A=r?r.defaultMainType:null;return!o&&A&&u.set(A,{}),u.each(function(p,g){var y=SB(t,g,p,{useDefault:A===g,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});h[g+"Models"]=y.models,h[g+"Model"]=y.models[0]}),h}function wZ(t,e){var r;if(ri(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var o=fa(),u={},f=!1;return jt(r,function(h,A){if(A==="dataIndex"||A==="dataIndexInside"){u[A]=h;return}var p=A.match(/^(\w+)(Index|Id|Name)$/)||[],g=p[1],y=(p[2]||"").toLowerCase();if(!(!g||!y||e&&e.includeMainTypes&&ss(e.includeMainTypes,g)<0)){f=f||!!g;var _=o.get(g)||o.set(g,{});_[y]=h}}),{mainTypeSpecified:f,queryOptionMap:o,others:u}}var L1={useDefault:!0,enableAll:!1,enableNone:!1};function SB(t,e,r,n){n=n||L1;var o=r.index,u=r.id,f=r.name,h={models:null,specified:o!=null||u!=null||f!=null};if(!h.specified){var A=void 0;return h.models=n.useDefault&&(A=t.getComponent(e))?[A]:[],h}return o==="none"||o===!1?(Sg(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),h.models=[],h):(o==="all"&&(Sg(n.enableAll,'`"all"` is not a valid value on index option.'),o=u=f=null),h.models=t.queryComponents({mainType:e,index:o,id:u,name:f}),h)}function VLt(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function zLt(t){return t==="auto"?Oi.domSupported?"html":"richText":t||"html"}function GLt(t,e,r,n,o){var u=e==null||e==="auto";if(n==null)return n;if(ws(n)){var f=Fbe(r||0,n,o);return I1(f,u?Math.max(X_(r||0),X_(n)):e)}else{if(ri(n))return o<1?r:n;for(var h=[],A=r,p=n,g=Math.max(A?A.length:0,p.length),y=0;y<g;++y){var _=t.getDimensionInfo(y);if(_&&_.type==="ordinal")h[y]=(o<1&&A?A:p)[y];else{var b=A&&A[y]?A[y]:0,C=p[y],f=Fbe(b,C,o);h[y]=I1(f,u?Math.max(X_(b),X_(C)):e)}}return h}}var jLt=".",Y0="___EC__COMPONENT__CONTAINER___",_Oe="___EC__EXTENDED_CLASS___";function Yv(t){var e={main:"",sub:""};if(t){var r=t.split(jLt);e.main=r[0]||"",e.sub=r[1]||""}return e}function qLt(t){Sg(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function WLt(t){return!!(t&&t[_Oe])}function bZ(t,e){t.$constructor=t,t.extend=function(r){var n=this,o;return $Lt(n)?o=function(u){ao(f,u);function f(){return u.apply(this,arguments)||this}return f}(n):(o=function(){(r.$constructor||n).apply(this,arguments)},tIt(o,this)),Wr(o.prototype,r),o[_Oe]=!0,o.extend=this.extend,o.superCall=XLt,o.superApply=ZLt,o.superClass=n,o}}function $Lt(t){return ha(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function SOe(t,e){t.extend=e.extend}var KLt=Math.round(Math.random()*10);function YLt(t){var e=["__\0is_clz",KLt++].join("_");t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function XLt(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function ZLt(t,e,r){return this.superClass.prototype[e].apply(t,r)}function _Z(t){var e={};t.registerClass=function(n){var o=n.type||n.prototype.type;if(o){qLt(o),n.prototype.type=o;var u=Yv(o);if(!u.sub)e[u.main]=n;else if(u.sub!==Y0){var f=r(u);f[u.sub]=n}}return n},t.getClass=function(n,o,u){var f=e[n];if(f&&f[Y0]&&(f=o?f[o]:null),u&&!f)throw new Error(o?"Component "+n+"."+(o||"")+" is used but not imported.":n+".type should be specified.");return f},t.getClassesByMainType=function(n){var o=Yv(n),u=[],f=e[o.main];return f&&f[Y0]?jt(f,function(h,A){A!==Y0&&u.push(h)}):u.push(f),u},t.hasClass=function(n){var o=Yv(n);return!!e[o.main]},t.getAllClassMainTypes=function(){var n=[];return jt(e,function(o,u){n.push(u)}),n},t.hasSubTypes=function(n){var o=Yv(n),u=e[o.main];return u&&u[Y0]};function r(n){var o=e[n.main];return(!o||!o[Y0])&&(o=e[n.main]={},o[Y0]=!0),o}}function D2(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,o,u){for(var f={},h=0;h<t.length;h++){var A=t[h][1];if(!(o&&ss(o,A)>=0||u&&ss(u,A)<0)){var p=n.getShallow(A,e);p!=null&&(f[t[h][0]]=p)}}return f}}var JLt=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],eMt=D2(JLt),tMt=function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return eMt(this,e,r)},t}(),BK=new bB(50);function rMt(t){if(typeof t=="string"){var e=BK.get(t);return e&&e.image}else return t}function xOe(t,e,r,n,o){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var u=BK.get(t),f={hostEl:r,cb:n,cbPayload:o};return u?(e=u.image,!Mk(e)&&u.pending.push(f)):(e=lx.loadImage(t,Ube,Ube),e.__zrImageSrc=t,BK.put(t,e.__cachedImgObj={image:e,pending:[f]})),e}else return t;else return e}function Ube(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Mk(t){return t&&t.width&&t.height}var NG=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function nMt(t,e,r,n,o,u){if(!r){t.text="",t.isTruncated=!1;return}var f=(e+"").split(`
`);u=COe(r,n,o,u);for(var h=!1,A={},p=0,g=f.length;p<g;p++)TOe(A,f[p],u),f[p]=A.textLine,h=h||A.isTruncated;t.text=f.join(`
`),t.isTruncated=h}function COe(t,e,r,n){n=n||{};var o=Wr({},n);o.font=e,r=Ji(r,"..."),o.maxIterations=Ji(n.maxIterations,2);var u=o.minChar=Ji(n.minChar,0);o.cnCharWidth=Ih("国",e);var f=o.ascCharWidth=Ih("a",e);o.placeholder=Ji(n.placeholder,"");for(var h=t=Math.max(0,t-1),A=0;A<u&&h>=f;A++)h-=f;var p=Ih(r,e);return p>h&&(r="",p=0),h=t-p,o.ellipsis=r,o.ellipsisWidth=p,o.contentWidth=h,o.containerWidth=t,o}function TOe(t,e,r){var n=r.containerWidth,o=r.font,u=r.contentWidth;if(!n){t.textLine="",t.isTruncated=!1;return}var f=Ih(e,o);if(f<=n){t.textLine=e,t.isTruncated=!1;return}for(var h=0;;h++){if(f<=u||h>=r.maxIterations){e+=r.ellipsis;break}var A=h===0?iMt(e,u,r.ascCharWidth,r.cnCharWidth):f>0?Math.floor(e.length*u/f):0;e=e.substr(0,A),f=Ih(e,o)}e===""&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function iMt(t,e,r,n){for(var o=0,u=0,f=t.length;u<f&&o<e;u++){var h=t.charCodeAt(u);o+=0<=h&&h<=127?r:n}return u}function aMt(t,e){t!=null&&(t+="");var r=e.overflow,n=e.padding,o=e.font,u=r==="truncate",f=mZ(o),h=Ji(e.lineHeight,f),A=!!e.backgroundColor,p=e.lineOverflow==="truncate",g=!1,y=e.width,_;y!=null&&(r==="break"||r==="breakAll")?_=t?EOe(t,e.font,y,r==="breakAll",0).lines:[]:_=t?t.split(`
`):[];var b=_.length*h,C=Ji(e.height,b);if(b>C&&p){var T=Math.floor(C/h);g=g||_.length>T,_=_.slice(0,T)}if(t&&u&&y!=null)for(var B=COe(y,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),L={},P=0;P<_.length;P++)TOe(L,_[P],B),_[P]=L.textLine,g=g||L.isTruncated;for(var I=C,O=0,P=0;P<_.length;P++)O=Math.max(Ih(_[P],o),O);y==null&&(y=O);var U=O;return n&&(I+=n[0]+n[2],U+=n[1]+n[3],y+=n[1]+n[3]),A&&(U=y),{lines:_,height:C,outerWidth:U,outerHeight:I,lineHeight:h,calculatedLineHeight:f,contentWidth:O,contentHeight:b,width:y,isTruncated:g}}var oMt=function(){function t(){}return t}(),Hbe=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),sMt=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t}();function lMt(t,e){var r=new sMt;if(t!=null&&(t+=""),!t)return r;for(var n=e.width,o=e.height,u=e.overflow,f=(u==="break"||u==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:u==="breakAll"}:null,h=NG.lastIndex=0,A;(A=NG.exec(t))!=null;){var p=A.index;p>h&&UG(r,t.substring(h,p),e,f),UG(r,A[2],e,f,A[1]),h=NG.lastIndex}h<t.length&&UG(r,t.substring(h,t.length),e,f);var g=[],y=0,_=0,b=e.padding,C=u==="truncate",T=e.lineOverflow==="truncate",B={};function L(ie,he,re){ie.width=he,ie.lineHeight=re,y+=re,_=Math.max(_,he)}e:for(var P=0;P<r.lines.length;P++){for(var I=r.lines[P],O=0,U=0,N=0;N<I.tokens.length;N++){var H=I.tokens[N],z=H.styleName&&e.rich[H.styleName]||{},G=H.textPadding=z.padding,j=G?G[1]+G[3]:0,q=H.font=z.font||e.font;H.contentHeight=mZ(q);var X=Ji(z.height,H.contentHeight);if(H.innerHeight=X,G&&(X+=G[0]+G[2]),H.height=X,H.lineHeight=zE(z.lineHeight,e.lineHeight,X),H.align=z&&z.align||e.align,H.verticalAlign=z&&z.verticalAlign||"middle",T&&o!=null&&y+H.lineHeight>o){var Y=r.lines.length;N>0?(I.tokens=I.tokens.slice(0,N),L(I,U,O),r.lines=r.lines.slice(0,P+1)):r.lines=r.lines.slice(0,P),r.isTruncated=r.isTruncated||r.lines.length<Y;break e}var te=z.width,K=te==null||te==="auto";if(typeof te=="string"&&te.charAt(te.length-1)==="%")H.percentWidth=te,g.push(H),H.contentWidth=Ih(H.text,q);else{if(K){var ce=z.backgroundColor,ae=ce&&ce.image;ae&&(ae=rMt(ae),Mk(ae)&&(H.width=Math.max(H.width,ae.width*X/ae.height)))}var le=C&&n!=null?n-U:null;le!=null&&le<H.width?!K||le<j?(H.text="",H.width=H.contentWidth=0):(nMt(B,H.text,le-j,q,e.ellipsis,{minChar:e.truncateMinChar}),H.text=B.text,r.isTruncated=r.isTruncated||B.isTruncated,H.width=H.contentWidth=Ih(H.text,q)):H.contentWidth=Ih(H.text,q)}H.width+=j,U+=H.width,z&&(O=Math.max(O,H.lineHeight))}L(I,U,O)}r.outerWidth=r.width=Ji(n,_),r.outerHeight=r.height=Ji(o,y),r.contentHeight=y,r.contentWidth=_,b&&(r.outerWidth+=b[1]+b[3],r.outerHeight+=b[0]+b[2]);for(var P=0;P<g.length;P++){var H=g[P],pe=H.percentWidth;H.width=parseInt(pe,10)/100*r.width}return r}function UG(t,e,r,n,o){var u=e==="",f=o&&r.rich[o]||{},h=t.lines,A=f.font||r.font,p=!1,g,y;if(n){var _=f.padding,b=_?_[1]+_[3]:0;if(f.width!=null&&f.width!=="auto"){var C=NS(f.width,n.width)+b;h.length>0&&C+n.accumWidth>n.width&&(g=e.split(`
`),p=!0),n.accumWidth=C}else{var T=EOe(e,A,n.width,n.breakAll,n.accumWidth);n.accumWidth=T.accumWidth+b,y=T.linesWidths,g=T.lines}}else g=e.split(`
`);for(var B=0;B<g.length;B++){var L=g[B],P=new oMt;if(P.styleName=o,P.text=L,P.isLineHolder=!L&&!u,typeof f.width=="number"?P.width=f.width:P.width=y?y[B]:Ih(L,A),!B&&!p){var I=(h[h.length-1]||(h[0]=new Hbe)).tokens,O=I.length;O===1&&I[0].isLineHolder?I[0]=P:(L||!O||u)&&I.push(P)}else h.push(new Hbe([P]))}}function uMt(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var cMt=Sy(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function fMt(t){return uMt(t)?!!cMt[t]:!0}function EOe(t,e,r,n,o){for(var u=[],f=[],h="",A="",p=0,g=0,y=0;y<t.length;y++){var _=t.charAt(y);if(_===`
`){A&&(h+=A,g+=p),u.push(h),f.push(g),h="",A="",p=0,g=0;continue}var b=Ih(_,e),C=n?!1:!fMt(_);if(u.length?g+b>r:o+g+b>r){g?(h||A)&&(C?(h||(h=A,A="",p=0,g=p),u.push(h),f.push(g-p),A+=_,p+=b,h="",g=p):(A&&(h+=A,A="",p=0),u.push(h),f.push(g),h=_,g=b)):C?(u.push(A),f.push(p),A=_,p=b):(u.push(_),f.push(b));continue}g+=b,C?(A+=_,p+=b):(A&&(h+=A,A="",p=0),h+=_)}return!u.length&&!h&&(h=t,A="",p=0),A&&(h+=A),h&&(u.push(h),f.push(g)),u.length===1&&(g+=o),{accumWidth:g,lines:u,linesWidths:f}}var IK="__zr_style_"+Math.round(Math.random()*10),Q1={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Dk={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Q1[IK]=!0;var Qbe=["z","z2","invisible"],hMt=["invisible"],xB=function(t){Io(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=gl(r),o=0;o<n.length;o++){var u=n[o];u==="style"?this.useStyle(r[u]):t.prototype.attrKV.call(this,u,r[u])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,o,u){var f=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&dMt(this,r,n)||f&&!f[0]&&!f[3])return!1;if(o&&this.__clipPaths){for(var h=0;h<this.__clipPaths.length;++h)if(this.__clipPaths[h].isZeroArea())return!1}if(u&&this.parent)for(var A=this.parent;A;){if(A.ignore)return!1;A=A.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var o=this.transformCoordToLocal(r,n),u=this.getBoundingRect();return u.contain(o[0],o[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,o=this.getBoundingRect(),u=this.style,f=u.shadowBlur||0,h=u.shadowOffsetX||0,A=u.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ko(0,0,0,0)),n?ko.applyTransform(r,o,n):r.copy(o),(f||h||A)&&(r.width+=f*2+Math.abs(h),r.height+=f*2+Math.abs(A),r.x=Math.min(r.x,r.x+h-f),r.y=Math.min(r.y,r.y+A-f));var p=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-p),r.y=Math.floor(r.y-p),r.width=Math.ceil(r.width+1+p*2),r.height=Math.ceil(r.height+1+p*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ko(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:Wr(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=gE,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&gE)},e.prototype.styleUpdated=function(){this.__dirty&=~gE},e.prototype.createStyle=function(r){return Ek(Q1,r)},e.prototype.useStyle=function(r){r[IK]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[IK]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Qbe)},e.prototype._applyStateObj=function(r,n,o,u,f,h){t.prototype._applyStateObj.call(this,r,n,o,u,f,h);var A=!(n&&u),p;if(n&&n.style?f?u?p=n.style:(p=this._mergeStyle(this.createStyle(),o.style),this._mergeStyle(p,n.style)):(p=this._mergeStyle(this.createStyle(),u?this.style:o.style),this._mergeStyle(p,n.style)):A&&(p=o.style),p)if(f){var g=this.style;if(this.style=this.createStyle(A?{}:g),A)for(var y=gl(g),_=0;_<y.length;_++){var b=y[_];b in p&&(p[b]=p[b],this.style[b]=g[b])}for(var C=gl(p),_=0;_<C.length;_++){var b=C[_];this.style[b]=this.style[b]}this._transitionState(r,{style:p},h,this.getAnimationStyleProps())}else this.useStyle(p);for(var T=this.__inHover?hMt:Qbe,_=0;_<T.length;_++){var b=T[_];n&&n[b]!=null?this[b]=n[b]:A&&o[b]!=null&&(this[b]=o[b])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),o,u=0;u<r.length;u++){var f=r[u];f.style&&(o=o||{},this._mergeStyle(o,f.style))}return o&&(n.style=o),n},e.prototype._mergeStyle=function(r,n){return Wr(r,n),r},e.prototype.getAnimationStyleProps=function(){return Dk},e.initDefaultProps=function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Sh|gE}(),e}(Ik),HG=new ko(0,0,0,0),QG=new ko(0,0,0,0);function dMt(t,e,r){return HG.copy(t.getBoundingRect()),t.transform&&HG.applyTransform(t.transform),QG.width=e,QG.height=r,!HG.intersect(QG)}var Bd=Math.min,Id=Math.max,VG=Math.sin,zG=Math.cos,X0=Math.PI*2,UD=ux(),HD=ux(),QD=ux();function Vbe(t,e,r,n,o,u){o[0]=Bd(t,r),o[1]=Bd(e,n),u[0]=Id(t,r),u[1]=Id(e,n)}var zbe=[],Gbe=[];function AMt(t,e,r,n,o,u,f,h,A,p){var g=iOe,y=Wu,_=g(t,r,o,f,zbe);A[0]=1/0,A[1]=1/0,p[0]=-1/0,p[1]=-1/0;for(var b=0;b<_;b++){var C=y(t,r,o,f,zbe[b]);A[0]=Bd(C,A[0]),p[0]=Id(C,p[0])}_=g(e,n,u,h,Gbe);for(var b=0;b<_;b++){var T=y(e,n,u,h,Gbe[b]);A[1]=Bd(T,A[1]),p[1]=Id(T,p[1])}A[0]=Bd(t,A[0]),p[0]=Id(t,p[0]),A[0]=Bd(f,A[0]),p[0]=Id(f,p[0]),A[1]=Bd(e,A[1]),p[1]=Id(e,p[1]),A[1]=Bd(h,A[1]),p[1]=Id(h,p[1])}function vMt(t,e,r,n,o,u,f,h){var A=aOe,p=Qf,g=Id(Bd(A(t,r,o),1),0),y=Id(Bd(A(e,n,u),1),0),_=p(t,r,o,g),b=p(e,n,u,y);f[0]=Bd(t,o,_),f[1]=Bd(e,u,b),h[0]=Id(t,o,_),h[1]=Id(e,u,b)}function pMt(t,e,r,n,o,u,f,h,A){var p=$_,g=K_,y=Math.abs(o-u);if(y%X0<1e-4&&y>1e-4){h[0]=t-r,h[1]=e-n,A[0]=t+r,A[1]=e+n;return}if(UD[0]=zG(o)*r+t,UD[1]=VG(o)*n+e,HD[0]=zG(u)*r+t,HD[1]=VG(u)*n+e,p(h,UD,HD),g(A,UD,HD),o=o%X0,o<0&&(o=o+X0),u=u%X0,u<0&&(u=u+X0),o>u&&!f?u+=X0:o<u&&f&&(o+=X0),f){var _=u;u=o,o=_}for(var b=0;b<u;b+=Math.PI/2)b>o&&(QD[0]=zG(b)*r+t,QD[1]=VG(b)*n+e,p(h,QD,h),g(A,QD,A))}var to={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Z0=[],J0=[],Ov=[],Im=[],kv=[],Fv=[],GG=Math.min,jG=Math.max,e1=Math.cos,t1=Math.sin,eg=Math.abs,LK=Math.PI,Vm=LK*2,qG=typeof Float32Array<"u",ET=[];function WG(t){var e=Math.round(t/LK*1e8)/1e8;return e%2*LK}function BOe(t,e){var r=WG(t[0]);r<0&&(r+=Vm);var n=r-t[0],o=t[1];o+=n,!e&&o-r>=Vm?o=r+Vm:e&&r-o>=Vm?o=r-Vm:!e&&r>o?o=r+(Vm-WG(r-o)):e&&r<o&&(o=r-(Vm-WG(o-r))),t[0]=r,t[1]=o}var lw=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=eg(n/qP/e)||0,this._uy=eg(n/qP/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(to.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=eg(e-this._xi),o=eg(r-this._yi),u=n>this._ux||o>this._uy;if(this.addData(to.L,e,r),this._ctx&&u&&this._ctx.lineTo(e,r),u)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var f=n*n+o*o;f>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=f)}return this},t.prototype.bezierCurveTo=function(e,r,n,o,u,f){return this._drawPendingPt(),this.addData(to.C,e,r,n,o,u,f),this._ctx&&this._ctx.bezierCurveTo(e,r,n,o,u,f),this._xi=u,this._yi=f,this},t.prototype.quadraticCurveTo=function(e,r,n,o){return this._drawPendingPt(),this.addData(to.Q,e,r,n,o),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,o),this._xi=n,this._yi=o,this},t.prototype.arc=function(e,r,n,o,u,f){this._drawPendingPt(),ET[0]=o,ET[1]=u,BOe(ET,f),o=ET[0],u=ET[1];var h=u-o;return this.addData(to.A,e,r,n,n,o,h,0,f?0:1),this._ctx&&this._ctx.arc(e,r,n,o,u,f),this._xi=e1(u)*n+e,this._yi=t1(u)*n+r,this},t.prototype.arcTo=function(e,r,n,o,u){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,o,u),this},t.prototype.rect=function(e,r,n,o){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,o),this.addData(to.R,e,r,n,o),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(to.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&qG&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var r=e.length,n=0,o=this._len,u=0;u<r;u++)n+=e[u].len();qG&&this.data instanceof Float32Array&&(this.data=new Float32Array(o+n));for(var u=0;u<r;u++)for(var f=e[u].data,h=0;h<f.length;h++)this.data[o++]=f[h];this._len=o},t.prototype.addData=function(e,r,n,o,u,f,h,A,p){if(this._saveData){var g=this.data;this._len+arguments.length>g.length&&(this._expandData(),g=this.data);for(var y=0;y<arguments.length;y++)g[this._len++]=arguments[y]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,qG&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Ov[0]=Ov[1]=kv[0]=kv[1]=Number.MAX_VALUE,Im[0]=Im[1]=Fv[0]=Fv[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,o=0,u=0,f;for(f=0;f<this._len;){var h=e[f++],A=f===1;switch(A&&(r=e[f],n=e[f+1],o=r,u=n),h){case to.M:r=o=e[f++],n=u=e[f++],kv[0]=o,kv[1]=u,Fv[0]=o,Fv[1]=u;break;case to.L:Vbe(r,n,e[f],e[f+1],kv,Fv),r=e[f++],n=e[f++];break;case to.C:AMt(r,n,e[f++],e[f++],e[f++],e[f++],e[f],e[f+1],kv,Fv),r=e[f++],n=e[f++];break;case to.Q:vMt(r,n,e[f++],e[f++],e[f],e[f+1],kv,Fv),r=e[f++],n=e[f++];break;case to.A:var p=e[f++],g=e[f++],y=e[f++],_=e[f++],b=e[f++],C=e[f++]+b;f+=1;var T=!e[f++];A&&(o=e1(b)*y+p,u=t1(b)*_+g),pMt(p,g,y,_,b,C,T,kv,Fv),r=e1(C)*y+p,n=t1(C)*_+g;break;case to.R:o=r=e[f++],u=n=e[f++];var B=e[f++],L=e[f++];Vbe(o,u,o+B,u+L,kv,Fv);break;case to.Z:r=o,n=u;break}$_(Ov,Ov,kv),K_(Im,Im,Fv)}return f===0&&(Ov[0]=Ov[1]=Im[0]=Im[1]=0),new ko(Ov[0],Ov[1],Im[0]-Ov[0],Im[1]-Ov[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,o=this._uy,u=0,f=0,h=0,A=0;this._pathSegLen||(this._pathSegLen=[]);for(var p=this._pathSegLen,g=0,y=0,_=0;_<r;){var b=e[_++],C=_===1;C&&(u=e[_],f=e[_+1],h=u,A=f);var T=-1;switch(b){case to.M:u=h=e[_++],f=A=e[_++];break;case to.L:{var B=e[_++],L=e[_++],P=B-u,I=L-f;(eg(P)>n||eg(I)>o||_===r-1)&&(T=Math.sqrt(P*P+I*I),u=B,f=L);break}case to.C:{var O=e[_++],U=e[_++],B=e[_++],L=e[_++],N=e[_++],H=e[_++];T=VIt(u,f,O,U,B,L,N,H,10),u=N,f=H;break}case to.Q:{var O=e[_++],U=e[_++],B=e[_++],L=e[_++];T=jIt(u,f,O,U,B,L,10),u=B,f=L;break}case to.A:var z=e[_++],G=e[_++],j=e[_++],q=e[_++],X=e[_++],Y=e[_++],te=Y+X;_+=1,C&&(h=e1(X)*j+z,A=t1(X)*q+G),T=jG(j,q)*GG(Vm,Math.abs(Y)),u=e1(te)*j+z,f=t1(te)*q+G;break;case to.R:{h=u=e[_++],A=f=e[_++];var K=e[_++],ce=e[_++];T=K*2+ce*2;break}case to.Z:{var P=h-u,I=A-f;T=Math.sqrt(P*P+I*I),u=h,f=A;break}}T>=0&&(p[y++]=T,g+=T)}return this._pathLen=g,g},t.prototype.rebuildPath=function(e,r){var n=this.data,o=this._ux,u=this._uy,f=this._len,h,A,p,g,y,_,b=r<1,C,T,B=0,L=0,P,I=0,O,U;if(!(b&&(this._pathSegLen||this._calculateLength(),C=this._pathSegLen,T=this._pathLen,P=r*T,!P)))e:for(var N=0;N<f;){var H=n[N++],z=N===1;switch(z&&(p=n[N],g=n[N+1],h=p,A=g),H!==to.L&&I>0&&(e.lineTo(O,U),I=0),H){case to.M:h=p=n[N++],A=g=n[N++],e.moveTo(p,g);break;case to.L:{y=n[N++],_=n[N++];var G=eg(y-p),j=eg(_-g);if(G>o||j>u){if(b){var q=C[L++];if(B+q>P){var X=(P-B)/q;e.lineTo(p*(1-X)+y*X,g*(1-X)+_*X);break e}B+=q}e.lineTo(y,_),p=y,g=_,I=0}else{var Y=G*G+j*j;Y>I&&(O=y,U=_,I=Y)}break}case to.C:{var te=n[N++],K=n[N++],ce=n[N++],ae=n[N++],le=n[N++],pe=n[N++];if(b){var q=C[L++];if(B+q>P){var X=(P-B)/q;zP(p,te,ce,le,X,Z0),zP(g,K,ae,pe,X,J0),e.bezierCurveTo(Z0[1],J0[1],Z0[2],J0[2],Z0[3],J0[3]);break e}B+=q}e.bezierCurveTo(te,K,ce,ae,le,pe),p=le,g=pe;break}case to.Q:{var te=n[N++],K=n[N++],ce=n[N++],ae=n[N++];if(b){var q=C[L++];if(B+q>P){var X=(P-B)/q;GP(p,te,ce,X,Z0),GP(g,K,ae,X,J0),e.quadraticCurveTo(Z0[1],J0[1],Z0[2],J0[2]);break e}B+=q}e.quadraticCurveTo(te,K,ce,ae),p=ce,g=ae;break}case to.A:var ie=n[N++],he=n[N++],re=n[N++],oe=n[N++],ye=n[N++],_e=n[N++],Ce=n[N++],ne=!n[N++],xe=re>oe?re:oe,De=eg(re-oe)>.001,ze=ye+_e,Ye=!1;if(b){var q=C[L++];B+q>P&&(ze=ye+_e*(P-B)/q,Ye=!0),B+=q}if(De&&e.ellipse?e.ellipse(ie,he,re,oe,Ce,ye,ze,ne):e.arc(ie,he,xe,ye,ze,ne),Ye)break e;z&&(h=e1(ye)*re+ie,A=t1(ye)*oe+he),p=e1(ze)*re+ie,g=t1(ze)*oe+he;break;case to.R:h=p=n[N],A=g=n[N+1],y=n[N++],_=n[N++];var Ne=n[N++],yt=n[N++];if(b){var q=C[L++];if(B+q>P){var Ue=P-B;e.moveTo(y,_),e.lineTo(y+GG(Ue,Ne),_),Ue-=Ne,Ue>0&&e.lineTo(y+Ne,_+GG(Ue,yt)),Ue-=yt,Ue>0&&e.lineTo(y+jG(Ne-Ue,0),_+yt),Ue-=Ne,Ue>0&&e.lineTo(y,_+jG(yt-Ue,0));break e}B+=q}e.rect(y,_,Ne,yt);break;case to.Z:if(b){var q=C[L++];if(B+q>P){var X=(P-B)/q;e.lineTo(p*(1-X)+h*X,g*(1-X)+A*X);break e}B+=q}e.closePath(),p=h,g=A}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=to,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function b_(t,e,r,n,o,u,f){if(o===0)return!1;var h=o,A=0,p=t;if(f>e+h&&f>n+h||f<e-h&&f<n-h||u>t+h&&u>r+h||u<t-h&&u<r-h)return!1;if(t!==r)A=(e-n)/(t-r),p=(t*n-r*e)/(t-r);else return Math.abs(u-t)<=h/2;var g=A*u-f+p,y=g*g/(A*A+1);return y<=h/2*h/2}function gMt(t,e,r,n,o,u,f,h,A,p,g){if(A===0)return!1;var y=A;if(g>e+y&&g>n+y&&g>u+y&&g>h+y||g<e-y&&g<n-y&&g<u-y&&g<h-y||p>t+y&&p>r+y&&p>o+y&&p>f+y||p<t-y&&p<r-y&&p<o-y&&p<f-y)return!1;var _=QIt(t,e,r,n,o,u,f,h,p,g);return _<=y/2}function mMt(t,e,r,n,o,u,f,h,A){if(f===0)return!1;var p=f;if(A>e+p&&A>n+p&&A>u+p||A<e-p&&A<n-p&&A<u-p||h>t+p&&h>r+p&&h>o+p||h<t-p&&h<r-p&&h<o-p)return!1;var g=GIt(t,e,r,n,o,u,h,A);return g<=p/2}var jbe=Math.PI*2;function VD(t){return t%=jbe,t<0&&(t+=jbe),t}var BT=Math.PI*2;function yMt(t,e,r,n,o,u,f,h,A){if(f===0)return!1;var p=f;h-=t,A-=e;var g=Math.sqrt(h*h+A*A);if(g-p>r||g+p<r)return!1;if(Math.abs(n-o)%BT<1e-4)return!0;if(u){var y=n;n=VD(o),o=VD(y)}else n=VD(n),o=VD(o);n>o&&(o+=BT);var _=Math.atan2(A,h);return _<0&&(_+=BT),_>=n&&_<=o||_+BT>=n&&_+BT<=o}function r1(t,e,r,n,o,u){if(u>e&&u>n||u<e&&u<n||n===e)return 0;var f=(u-e)/(n-e),h=n<e?1:-1;(f===1||f===0)&&(h=n<e?.5:-.5);var A=f*(r-t)+t;return A===o?1/0:A>o?h:0}var Lm=lw.CMD,n1=Math.PI*2,wMt=1e-4;function bMt(t,e){return Math.abs(t-e)<wMt}var sf=[-1,-1,-1],wd=[-1,-1];function _Mt(){var t=wd[0];wd[0]=wd[1],wd[1]=t}function SMt(t,e,r,n,o,u,f,h,A,p){if(p>e&&p>n&&p>u&&p>h||p<e&&p<n&&p<u&&p<h)return 0;var g=VP(e,n,u,h,p,sf);if(g===0)return 0;for(var y=0,_=-1,b=void 0,C=void 0,T=0;T<g;T++){var B=sf[T],L=B===0||B===1?.5:1,P=Wu(t,r,o,f,B);P<A||(_<0&&(_=iOe(e,n,u,h,wd),wd[1]<wd[0]&&_>1&&_Mt(),b=Wu(e,n,u,h,wd[0]),_>1&&(C=Wu(e,n,u,h,wd[1]))),_===2?B<wd[0]?y+=b<e?L:-L:B<wd[1]?y+=C<b?L:-L:y+=h<C?L:-L:B<wd[0]?y+=b<e?L:-L:y+=h<b?L:-L)}return y}function xMt(t,e,r,n,o,u,f,h){if(h>e&&h>n&&h>u||h<e&&h<n&&h<u)return 0;var A=zIt(e,n,u,h,sf);if(A===0)return 0;var p=aOe(e,n,u);if(p>=0&&p<=1){for(var g=0,y=Qf(e,n,u,p),_=0;_<A;_++){var b=sf[_]===0||sf[_]===1?.5:1,C=Qf(t,r,o,sf[_]);C<f||(sf[_]<p?g+=y<e?b:-b:g+=u<y?b:-b)}return g}else{var b=sf[0]===0||sf[0]===1?.5:1,C=Qf(t,r,o,sf[0]);return C<f?0:u<e?b:-b}}function CMt(t,e,r,n,o,u,f,h){if(h-=e,h>r||h<-r)return 0;var A=Math.sqrt(r*r-h*h);sf[0]=-A,sf[1]=A;var p=Math.abs(n-o);if(p<1e-4)return 0;if(p>=n1-1e-4){n=0,o=n1;var g=u?1:-1;return f>=sf[0]+t&&f<=sf[1]+t?g:0}if(n>o){var y=n;n=o,o=y}n<0&&(n+=n1,o+=n1);for(var _=0,b=0;b<2;b++){var C=sf[b];if(C+t>f){var T=Math.atan2(h,C),g=u?1:-1;T<0&&(T=n1+T),(T>=n&&T<=o||T+n1>=n&&T+n1<=o)&&(T>Math.PI/2&&T<Math.PI*1.5&&(g=-g),_+=g)}}return _}function IOe(t,e,r,n,o){for(var u=t.data,f=t.len(),h=0,A=0,p=0,g=0,y=0,_,b,C=0;C<f;){var T=u[C++],B=C===1;switch(T===Lm.M&&C>1&&(r||(h+=r1(A,p,g,y,n,o))),B&&(A=u[C],p=u[C+1],g=A,y=p),T){case Lm.M:g=u[C++],y=u[C++],A=g,p=y;break;case Lm.L:if(r){if(b_(A,p,u[C],u[C+1],e,n,o))return!0}else h+=r1(A,p,u[C],u[C+1],n,o)||0;A=u[C++],p=u[C++];break;case Lm.C:if(r){if(gMt(A,p,u[C++],u[C++],u[C++],u[C++],u[C],u[C+1],e,n,o))return!0}else h+=SMt(A,p,u[C++],u[C++],u[C++],u[C++],u[C],u[C+1],n,o)||0;A=u[C++],p=u[C++];break;case Lm.Q:if(r){if(mMt(A,p,u[C++],u[C++],u[C],u[C+1],e,n,o))return!0}else h+=xMt(A,p,u[C++],u[C++],u[C],u[C+1],n,o)||0;A=u[C++],p=u[C++];break;case Lm.A:var L=u[C++],P=u[C++],I=u[C++],O=u[C++],U=u[C++],N=u[C++];C+=1;var H=!!(1-u[C++]);_=Math.cos(U)*I+L,b=Math.sin(U)*O+P,B?(g=_,y=b):h+=r1(A,p,_,b,n,o);var z=(n-L)*O/I+L;if(r){if(yMt(L,P,O,U,U+N,H,e,z,o))return!0}else h+=CMt(L,P,O,U,U+N,H,z,o);A=Math.cos(U+N)*I+L,p=Math.sin(U+N)*O+P;break;case Lm.R:g=A=u[C++],y=p=u[C++];var G=u[C++],j=u[C++];if(_=g+G,b=y+j,r){if(b_(g,y,_,y,e,n,o)||b_(_,y,_,b,e,n,o)||b_(_,b,g,b,e,n,o)||b_(g,b,g,y,e,n,o))return!0}else h+=r1(_,y,_,b,n,o),h+=r1(g,b,g,y,n,o);break;case Lm.Z:if(r){if(b_(A,p,g,y,e,n,o))return!0}else h+=r1(A,p,g,y,n,o);A=g,p=y;break}}return!r&&!bMt(p,y)&&(h+=r1(A,p,g,y,n,o)||0),h!==0}function TMt(t,e,r){return IOe(t,0,!1,e,r)}function EMt(t,e,r,n){return IOe(t,e,!0,r,n)}var LOe=ls({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Q1),BMt={style:ls({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Dk.style)},$G=L2.concat(["invisible","culling","z","z2","zlevel","parent"]),Fo=function(t){Io(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var o=this._decalEl=this._decalEl||new e;o.buildPath===e.prototype.buildPath&&(o.buildPath=function(A){r.buildPath(A,r.shape)}),o.silent=!0;var u=o.style;for(var f in n)u[f]!==n[f]&&(u[f]=n[f]);u.fill=n.fill?n.decal:null,u.decal=null,u.shadowColor=null,n.strokeFirst&&(u.stroke=null);for(var h=0;h<$G.length;++h)o[$G[h]]=this[$G[h]];o.__dirty|=Sh}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=gl(r);this.shape=this.getDefaultShape();var o=this.getDefaultStyle();o&&this.useStyle(o);for(var u=0;u<n.length;u++){var f=n[u],h=r[f];f==="style"?this.style?Wr(this.style,h):this.useStyle(h):f==="shape"?Wr(this.shape,h):t.prototype.attrKV.call(this,f,h)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(ri(r)){var n=jP(r,0);return n>.5?CK:n>.2?fLt:TK}else if(r)return TK}return CK},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(ri(n)){var o=this.__zr,u=!!(o&&o.isDarkMode()),f=jP(r,0)<xK;if(u===f)return n}},e.prototype.buildPath=function(r,n,o){},e.prototype.pathUpdated=function(){this.__dirty&=~N_},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new lw(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,o=!r;if(o){var u=!1;this.path||(u=!0,this.createPathProxy());var f=this.path;(u||this.__dirty&N_)&&(f.beginPath(),this.buildPath(f,this.shape,!1),this.pathUpdated()),r=f.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var h=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||o){h.copy(r);var A=n.strokeNoScale?this.getLineScale():1,p=n.lineWidth;if(!this.hasFill()){var g=this.strokeContainThreshold;p=Math.max(p,g??4)}A>1e-10&&(h.width+=p/A,h.height+=p/A,h.x-=p/A/2,h.y-=p/A/2)}return h}return r},e.prototype.contain=function(r,n){var o=this.transformCoordToLocal(r,n),u=this.getBoundingRect(),f=this.style;if(r=o[0],n=o[1],u.contain(r,n)){var h=this.path;if(this.hasStroke()){var A=f.lineWidth,p=f.strokeNoScale?this.getLineScale():1;if(p>1e-10&&(this.hasFill()||(A=Math.max(A,this.strokeContainThreshold)),EMt(h,A/p,r,n)))return!0}if(this.hasFill())return TMt(h,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=N_,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var o=this.shape;return o||(o=this.shape={}),typeof r=="string"?o[r]=n:Wr(o,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&N_)},e.prototype.createStyle=function(r){return Ek(LOe,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Wr({},this.shape))},e.prototype._applyStateObj=function(r,n,o,u,f,h){t.prototype._applyStateObj.call(this,r,n,o,u,f,h);var A=!(n&&u),p;if(n&&n.shape?f?u?p=n.shape:(p=Wr({},o.shape),Wr(p,n.shape)):(p=Wr({},u?this.shape:o.shape),Wr(p,n.shape)):A&&(p=o.shape),p)if(f){this.shape=Wr({},this.shape);for(var g={},y=gl(p),_=0;_<y.length;_++){var b=y[_];typeof p[b]=="object"?this.shape[b]=p[b]:g[b]=p[b]}this._transitionState(r,{shape:g},h)}else this.shape=p,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),o,u=0;u<r.length;u++){var f=r[u];f.shape&&(o=o||{},this._mergeStyle(o,f.shape))}return o&&(n.shape=o),n},e.prototype.getAnimationStyleProps=function(){return BMt},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(u){Io(f,u);function f(h){var A=u.call(this,h)||this;return r.init&&r.init.call(A,h),A}return f.prototype.getDefaultStyle=function(){return Ba(r.style)},f.prototype.getDefaultShape=function(){return Ba(r.shape)},f}(e);for(var o in r)typeof r[o]=="function"&&(n.prototype[o]=r[o]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Sh|gE|N_}(),e}(xB),IMt=ls({strokeFirst:!0,font:aw,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},LOe),KP=function(t){Io(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return Ek(IMt,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var o=hOe(n,r.font,r.textAlign,r.textBaseline);if(o.x+=r.x||0,o.y+=r.y||0,this.hasStroke()){var u=r.lineWidth;o.x-=u/2,o.y-=u/2,o.width+=u,o.height+=u}this._rect=o}return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(xB);KP.prototype.type="tspan";var LMt=ls({x:0,y:0},Q1),MMt={style:ls({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Dk.style)};function DMt(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Ly=function(t){Io(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Ek(LMt,r)},e.prototype._getSize=function(r){var n=this.style,o=n[r];if(o!=null)return o;var u=DMt(n.image)?n.image:this.__image;if(!u)return 0;var f=r==="width"?"height":"width",h=n[f];return h==null?u[r]:u[r]/u[f]*h},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return MMt},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ko(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xB);Ly.prototype.type="image";function RMt(t,e){var r=e.x,n=e.y,o=e.width,u=e.height,f=e.r,h,A,p,g;o<0&&(r=r+o,o=-o),u<0&&(n=n+u,u=-u),typeof f=="number"?h=A=p=g=f:f instanceof Array?f.length===1?h=A=p=g=f[0]:f.length===2?(h=p=f[0],A=g=f[1]):f.length===3?(h=f[0],A=g=f[1],p=f[2]):(h=f[0],A=f[1],p=f[2],g=f[3]):h=A=p=g=0;var y;h+A>o&&(y=h+A,h*=o/y,A*=o/y),p+g>o&&(y=p+g,p*=o/y,g*=o/y),A+p>u&&(y=A+p,A*=u/y,p*=u/y),h+g>u&&(y=h+g,h*=u/y,g*=u/y),t.moveTo(r+h,n),t.lineTo(r+o-A,n),A!==0&&t.arc(r+o-A,n+A,A,-Math.PI/2,0),t.lineTo(r+o,n+u-p),p!==0&&t.arc(r+o-p,n+u-p,p,0,Math.PI/2),t.lineTo(r+g,n+u),g!==0&&t.arc(r+g,n+u-g,g,Math.PI/2,Math.PI),t.lineTo(r,n+h),h!==0&&t.arc(r+h,n+h,h,Math.PI,Math.PI*1.5)}var Z_=Math.round;function MOe(t,e,r){if(e){var n=e.x1,o=e.x2,u=e.y1,f=e.y2;t.x1=n,t.x2=o,t.y1=u,t.y2=f;var h=r&&r.lineWidth;return h&&(Z_(n*2)===Z_(o*2)&&(t.x1=t.x2=M1(n,h,!0)),Z_(u*2)===Z_(f*2)&&(t.y1=t.y2=M1(u,h,!0))),t}}function DOe(t,e,r){if(e){var n=e.x,o=e.y,u=e.width,f=e.height;t.x=n,t.y=o,t.width=u,t.height=f;var h=r&&r.lineWidth;return h&&(t.x=M1(n,h,!0),t.y=M1(o,h,!0),t.width=Math.max(M1(n+u,h,!1)-t.x,u===0?0:1),t.height=Math.max(M1(o+f,h,!1)-t.y,f===0?0:1)),t}}function M1(t,e,r){if(!e)return t;var n=Z_(t*2);return(n+Z_(e))%2===0?n/2:(n+(r?1:-1))/2}var PMt=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),OMt={},Rc=function(t){Io(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new PMt},e.prototype.buildPath=function(r,n){var o,u,f,h;if(this.subPixelOptimize){var A=DOe(OMt,n,this.style);o=A.x,u=A.y,f=A.width,h=A.height,A.r=n.r,n=A}else o=n.x,u=n.y,f=n.width,h=n.height;n.r?RMt(r,n):r.rect(o,u,f,h)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Fo);Rc.prototype.type="rect";var qbe={fill:"#000"},Wbe=2,kMt={style:ls({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},Dk.style)},Yu=function(t){Io(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=qbe,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,QMt(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ko(0,0,0,0),n=this._children,o=[],u=null,f=0;f<n.length;f++){var h=n[f],A=h.getBoundingRect(),p=h.getLocalTransform(o);p?(r.copy(A),r.applyTransform(p),u=u||r.clone(),u.union(r)):(u=u||A.clone(),u.union(A))}this._rect=u||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||qbe},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var o=n.rich,u=r.rich||o&&{};return Wr(r,n),o&&u?(this._mergeRich(u,o),r.rich=u):u&&(r.rich=u),r},e.prototype._mergeRich=function(r,n){for(var o=gl(n),u=0;u<o.length;u++){var f=o[u];r[f]=r[f]||{},Wr(r[f],n[f])}},e.prototype.getAnimationStyleProps=function(){return kMt},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||aw,o=r.padding,u=e_e(r),f=aMt(u,r),h=KG(r),A=!!r.backgroundColor,p=f.outerHeight,g=f.outerWidth,y=f.contentWidth,_=f.lines,b=f.lineHeight,C=this._defaultStyle;this.isTruncated=!!f.isTruncated;var T=r.x||0,B=r.y||0,L=r.align||C.align||"left",P=r.verticalAlign||C.verticalAlign||"top",I=T,O=U_(B,f.contentHeight,P);if(h||o){var U=yE(T,g,L),N=U_(B,p,P);h&&this._renderBackground(r,r,U,N,g,p)}O+=b/2,o&&(I=Jbe(T,L,o),P==="top"?O+=o[0]:P==="bottom"&&(O-=o[2]));for(var H=0,z=!1,G=Zbe("fill"in r?r.fill:(z=!0,C.fill)),j=Xbe("stroke"in r?r.stroke:!A&&(!C.autoStroke||z)?(H=Wbe,C.stroke):null),q=r.textShadowBlur>0,X=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),Y=f.calculatedLineHeight,te=0;te<_.length;te++){var K=this._getOrCreateChild(KP),ce=K.createStyle();K.useStyle(ce),ce.text=_[te],ce.x=I,ce.y=O,ce.textAlign=L,ce.textBaseline="middle",ce.opacity=r.opacity,ce.strokeFirst=!0,q&&(ce.shadowBlur=r.textShadowBlur||0,ce.shadowColor=r.textShadowColor||"transparent",ce.shadowOffsetX=r.textShadowOffsetX||0,ce.shadowOffsetY=r.textShadowOffsetY||0),ce.stroke=j,ce.fill=G,j&&(ce.lineWidth=r.lineWidth||H,ce.lineDash=r.lineDash,ce.lineDashOffset=r.lineDashOffset||0),ce.font=n,Kbe(ce,r),O+=b,X&&K.setBoundingRect(new ko(yE(ce.x,y,ce.textAlign),U_(ce.y,Y,ce.textBaseline),y,Y))}},e.prototype._updateRichTexts=function(){var r=this.style,n=e_e(r),o=lMt(n,r),u=o.width,f=o.outerWidth,h=o.outerHeight,A=r.padding,p=r.x||0,g=r.y||0,y=this._defaultStyle,_=r.align||y.align,b=r.verticalAlign||y.verticalAlign;this.isTruncated=!!o.isTruncated;var C=yE(p,f,_),T=U_(g,h,b),B=C,L=T;A&&(B+=A[3],L+=A[0]);var P=B+u;KG(r)&&this._renderBackground(r,r,C,T,f,h);for(var I=!!r.backgroundColor,O=0;O<o.lines.length;O++){for(var U=o.lines[O],N=U.tokens,H=N.length,z=U.lineHeight,G=U.width,j=0,q=B,X=P,Y=H-1,te=void 0;j<H&&(te=N[j],!te.align||te.align==="left");)this._placeToken(te,r,z,L,q,"left",I),G-=te.width,q+=te.width,j++;for(;Y>=0&&(te=N[Y],te.align==="right");)this._placeToken(te,r,z,L,X,"right",I),G-=te.width,X-=te.width,Y--;for(q+=(u-(q-B)-(P-X)-G)/2;j<=Y;)te=N[j],this._placeToken(te,r,z,L,q+te.width/2,"center",I),q+=te.width,j++;L+=z}},e.prototype._placeToken=function(r,n,o,u,f,h,A){var p=n.rich[r.styleName]||{};p.text=r.text;var g=r.verticalAlign,y=u+o/2;g==="top"?y=u+r.height/2:g==="bottom"&&(y=u+o-r.height/2);var _=!r.isLineHolder&&KG(p);_&&this._renderBackground(p,n,h==="right"?f-r.width:h==="center"?f-r.width/2:f,y-r.height/2,r.width,r.height);var b=!!p.backgroundColor,C=r.textPadding;C&&(f=Jbe(f,h,C),y-=r.height/2-C[0]-r.innerHeight/2);var T=this._getOrCreateChild(KP),B=T.createStyle();T.useStyle(B);var L=this._defaultStyle,P=!1,I=0,O=Zbe("fill"in p?p.fill:"fill"in n?n.fill:(P=!0,L.fill)),U=Xbe("stroke"in p?p.stroke:"stroke"in n?n.stroke:!b&&!A&&(!L.autoStroke||P)?(I=Wbe,L.stroke):null),N=p.textShadowBlur>0||n.textShadowBlur>0;B.text=r.text,B.x=f,B.y=y,N&&(B.shadowBlur=p.textShadowBlur||n.textShadowBlur||0,B.shadowColor=p.textShadowColor||n.textShadowColor||"transparent",B.shadowOffsetX=p.textShadowOffsetX||n.textShadowOffsetX||0,B.shadowOffsetY=p.textShadowOffsetY||n.textShadowOffsetY||0),B.textAlign=h,B.textBaseline="middle",B.font=r.font||aw,B.opacity=zE(p.opacity,n.opacity,1),Kbe(B,p),U&&(B.lineWidth=zE(p.lineWidth,n.lineWidth,I),B.lineDash=Ji(p.lineDash,n.lineDash),B.lineDashOffset=n.lineDashOffset||0,B.stroke=U),O&&(B.fill=O);var H=r.contentWidth,z=r.contentHeight;T.setBoundingRect(new ko(yE(B.x,H,B.textAlign),U_(B.y,z,B.textBaseline),H,z))},e.prototype._renderBackground=function(r,n,o,u,f,h){var A=r.backgroundColor,p=r.borderWidth,g=r.borderColor,y=A&&A.image,_=A&&!y,b=r.borderRadius,C=this,T,B;if(_||r.lineHeight||p&&g){T=this._getOrCreateChild(Rc),T.useStyle(T.createStyle()),T.style.fill=null;var L=T.shape;L.x=o,L.y=u,L.width=f,L.height=h,L.r=b,T.dirtyShape()}if(_){var P=T.style;P.fill=A||null,P.fillOpacity=Ji(r.fillOpacity,1)}else if(y){B=this._getOrCreateChild(Ly),B.onload=function(){C.dirtyStyle()};var I=B.style;I.image=A.image,I.x=o,I.y=u,I.width=f,I.height=h}if(p&&g){var P=T.style;P.lineWidth=p,P.stroke=g,P.strokeOpacity=Ji(r.strokeOpacity,1),P.lineDash=r.borderDash,P.lineDashOffset=r.borderDashOffset||0,T.strokeContainThreshold=0,T.hasFill()&&T.hasStroke()&&(P.strokeFirst=!0,P.lineWidth*=2)}var O=(T||B).style;O.shadowBlur=r.shadowBlur||0,O.shadowColor=r.shadowColor||"transparent",O.shadowOffsetX=r.shadowOffsetX||0,O.shadowOffsetY=r.shadowOffsetY||0,O.opacity=zE(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return HMt(r)&&(n=[r.fontStyle,r.fontWeight,UMt(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Kv(n)||r.textFont||r.font},e}(xB),FMt={left:!0,right:1,center:1},NMt={top:1,bottom:1,middle:1},$be=["fontStyle","fontWeight","fontSize","fontFamily"];function UMt(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?lZ+"px":t+"px"}function Kbe(t,e){for(var r=0;r<$be.length;r++){var n=$be[r],o=e[n];o!=null&&(t[n]=o)}}function HMt(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function QMt(t){return Ybe(t),jt(t.rich,Ybe),t}function Ybe(t){if(t){t.font=Yu.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||FMt[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||NMt[r]?r:"top";var n=t.padding;n&&(t.padding=jPe(t.padding))}}function Xbe(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function Zbe(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function Jbe(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function e_e(t){var e=t.text;return e!=null&&(e+=""),e}function KG(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var go=hu(),VMt=function(t,e,r,n){if(n){var o=go(n);o.dataIndex=r,o.dataType=e,o.seriesIndex=t,o.ssrType="chart",n.type==="group"&&n.traverse(function(u){var f=go(u);f.seriesIndex=t,f.dataIndex=r,f.dataType=e,f.ssrType="chart"})}},t_e=1,r_e={},ROe=hu(),SZ=hu(),xZ=0,Rk=1,Pk=2,Vd=["emphasis","blur","select"],YP=["normal","emphasis","blur","select"],zMt=10,GMt=9,V1="highlight",nR="downplay",$E="select",iR="unselect",KE="toggleSelect";function __(t){return t!=null&&t!=="none"}function Ok(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function POe(t){Ok(t,"emphasis",Pk)}function OOe(t){t.hoverState===Pk&&Ok(t,"normal",xZ)}function CZ(t){Ok(t,"blur",Rk)}function kOe(t){t.hoverState===Rk&&Ok(t,"normal",xZ)}function jMt(t){t.selected=!0}function qMt(t){t.selected=!1}function n_e(t,e,r){e(t,r)}function Dg(t,e,r){n_e(t,e,r),t.isGroup&&t.traverse(function(n){n_e(n,e,r)})}function i_e(t,e){switch(e){case"emphasis":t.hoverState=Pk;break;case"normal":t.hoverState=xZ;break;case"blur":t.hoverState=Rk;break;case"select":t.selected=!0}}function WMt(t,e,r,n){for(var o=t.style,u={},f=0;f<e.length;f++){var h=e[f],A=o[h];u[h]=A??(n&&n[h])}for(var f=0;f<t.animators.length;f++){var p=t.animators[f];p.__fromStateTransition&&p.__fromStateTransition.indexOf(r)<0&&p.targetName==="style"&&p.saveTo(u,e)}return u}function $Mt(t,e,r,n){var o=r&&ss(r,"select")>=0,u=!1;if(t instanceof Fo){var f=ROe(t),h=o&&f.selectFill||f.normalFill,A=o&&f.selectStroke||f.normalStroke;if(__(h)||__(A)){n=n||{};var p=n.style||{};p.fill==="inherit"?(u=!0,n=Wr({},n),p=Wr({},p),p.fill=h):!__(p.fill)&&__(h)?(u=!0,n=Wr({},n),p=Wr({},p),p.fill=Sbe(h)):!__(p.stroke)&&__(A)&&(u||(n=Wr({},n),p=Wr({},p)),p.stroke=Sbe(A)),n.style=p}}if(n&&n.z2==null){u||(n=Wr({},n));var g=t.z2EmphasisLift;n.z2=t.z2+(g??zMt)}return n}function KMt(t,e,r){if(r&&r.z2==null){r=Wr({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??GMt)}return r}function YMt(t,e,r){var n=ss(t.currentStates,e)>=0,o=t.style.opacity,u=n?null:WMt(t,["opacity"],e,{opacity:1});r=r||{};var f=r.style||{};return f.opacity==null&&(r=Wr({},r),f=Wr({opacity:n?o:u.opacity*.1},f),r.style=f),r}function YG(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return $Mt(this,t,e,r);if(t==="blur")return YMt(this,t,r);if(t==="select")return KMt(this,t,r)}return r}function XMt(t){t.stateProxy=YG;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=YG),r&&(r.stateProxy=YG)}function a_e(t,e){!HOe(t,e)&&!t.__highByOuter&&Dg(t,POe)}function o_e(t,e){!HOe(t,e)&&!t.__highByOuter&&Dg(t,OOe)}function XP(t,e){t.__highByOuter|=1<<(e||0),Dg(t,POe)}function ZP(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Dg(t,OOe)}function ZMt(t){Dg(t,CZ)}function FOe(t){Dg(t,kOe)}function NOe(t){Dg(t,jMt)}function UOe(t){Dg(t,qMt)}function HOe(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function QOe(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(o,u){var f=SZ(u),h=o==="series",A=h?t.getViewOfSeriesModel(u):t.getViewOfComponentModel(u);!h&&n.push(A),f.isBlured&&(A.group.traverse(function(p){kOe(p)}),h&&r.push(u)),f.isBlured=!1}),jt(n,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(r,!1,e)})}function MK(t,e,r,n){var o=n.getModel();r=r||"coordinateSystem";function u(p,g){for(var y=0;y<g.length;y++){var _=p.getItemGraphicEl(g[y]);_&&FOe(_)}}if(t!=null&&!(!e||e==="none")){var f=o.getSeriesByIndex(t),h=f.coordinateSystem;h&&h.master&&(h=h.master);var A=[];o.eachSeries(function(p){var g=f===p,y=p.coordinateSystem;y&&y.master&&(y=y.master);var _=y&&h?y===h:g;if(!(r==="series"&&!g||r==="coordinateSystem"&&!_||e==="series"&&g)){var b=n.getViewOfSeriesModel(p);if(b.group.traverse(function(B){B.__highByOuter&&g&&e==="self"||CZ(B)}),Zf(e))u(p.getData(),e);else if(wi(e))for(var C=gl(e),T=0;T<C.length;T++)u(p.getData(C[T]),e[C[T]]);A.push(p),SZ(p).isBlured=!0}}),o.eachComponent(function(p,g){if(p!=="series"){var y=n.getViewOfComponentModel(g);y&&y.toggleBlurSeries&&y.toggleBlurSeries(A,!0,o)}})}}function DK(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){SZ(n).isBlured=!0;var o=r.getViewOfComponentModel(n);!o||!o.focusBlurEnabled||o.group.traverse(function(u){CZ(u)})}}}function JMt(t,e,r){var n=t.seriesIndex,o=t.getData(e.dataType);if(o){var u=sw(o,e);u=(Nn(u)?u[0]:u)||0;var f=o.getItemGraphicEl(u);if(!f)for(var h=o.count(),A=0;!f&&A<h;)f=o.getItemGraphicEl(A++);if(f){var p=go(f);MK(n,p.focus,p.blurScope,r)}else{var g=t.get(["emphasis","focus"]),y=t.get(["emphasis","blurScope"]);g!=null&&MK(n,g,y,r)}}}function TZ(t,e,r,n){var o={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return o;var u=n.getModel().getComponent(t,e);if(!u)return o;var f=n.getViewOfComponentModel(u);if(!f||!f.findHighDownDispatchers)return o;for(var h=f.findHighDownDispatchers(r),A,p=0;p<h.length;p++)if(go(h[p]).focus==="self"){A=!0;break}return{focusSelf:A,dispatchers:h}}function eDt(t,e,r){var n=go(t),o=TZ(n.componentMainType,n.componentIndex,n.componentHighDownName,r),u=o.dispatchers,f=o.focusSelf;u?(f&&DK(n.componentMainType,n.componentIndex,r),jt(u,function(h){return a_e(h,e)})):(MK(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&DK(n.componentMainType,n.componentIndex,r),a_e(t,e))}function tDt(t,e,r){QOe(r);var n=go(t),o=TZ(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;o?jt(o,function(u){return o_e(u,e)}):o_e(t,e)}function rDt(t,e,r){if(kK(e)){var n=e.dataType,o=t.getData(n),u=sw(o,e);Nn(u)||(u=[u]),t[e.type===KE?"toggleSelect":e.type===$E?"select":"unselect"](u,n)}}function s_e(t){var e=t.getAllData();jt(e,function(r){var n=r.data,o=r.type;n.eachItemGraphicEl(function(u,f){t.isSelected(f,o)?NOe(u):UOe(u)})})}function nDt(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();jt(n,function(o){o.data;var u=o.type,f=r.getSelectedDataIndices();if(f.length>0){var h={dataIndex:f,seriesIndex:r.seriesIndex};u!=null&&(h.dataType=u),e.push(h)}})}),e}function RK(t,e,r){VOe(t,!0),Dg(t,XMt),aDt(t,e,r)}function iDt(t){VOe(t,!1)}function JP(t,e,r,n){n?iDt(t):RK(t,e,r)}function aDt(t,e,r){var n=go(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var l_e=["emphasis","blur","select"],oDt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function PK(t,e,r,n){r=r||"itemStyle";for(var o=0;o<l_e.length;o++){var u=l_e[o],f=e.getModel([u,r]),h=t.ensureState(u);h.style=f[oDt[r]]()}}function VOe(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function OK(t){return!!(t&&t.__highDownDispatcher)}function sDt(t){var e=r_e[t];return e==null&&t_e<=32&&(e=r_e[t]=t_e++),e}function kK(t){var e=t.type;return e===$E||e===iR||e===KE}function u_e(t){var e=t.type;return e===V1||e===nR}function lDt(t){var e=ROe(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var S_=lw.CMD,uDt=[[],[],[]],c_e=Math.sqrt,cDt=Math.atan2;function fDt(t,e){if(e){var r=t.data,n=t.len(),o,u,f,h,A,p,g=S_.M,y=S_.C,_=S_.L,b=S_.R,C=S_.A,T=S_.Q;for(f=0,h=0;f<n;){switch(o=r[f++],h=f,u=0,o){case g:u=1;break;case _:u=1;break;case y:u=3;break;case T:u=2;break;case C:var B=e[4],L=e[5],P=c_e(e[0]*e[0]+e[1]*e[1]),I=c_e(e[2]*e[2]+e[3]*e[3]),O=cDt(-e[1]/I,e[0]/P);r[f]*=P,r[f++]+=B,r[f]*=I,r[f++]+=L,r[f++]*=P,r[f++]*=I,r[f++]+=O,r[f++]+=O,f+=2,h=f;break;case b:p[0]=r[f++],p[1]=r[f++],ep(p,p,e),r[h++]=p[0],r[h++]=p[1],p[0]+=r[f++],p[1]+=r[f++],ep(p,p,e),r[h++]=p[0],r[h++]=p[1]}for(A=0;A<u;A++){var U=uDt[A];U[0]=r[f++],U[1]=r[f++],ep(U,U,e),r[h++]=U[0],r[h++]=U[1]}}t.increaseVersion()}}var XG=Math.sqrt,zD=Math.sin,GD=Math.cos,IT=Math.PI;function f_e(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function FK(t,e){return(t[0]*e[0]+t[1]*e[1])/(f_e(t)*f_e(e))}function h_e(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(FK(t,e))}function d_e(t,e,r,n,o,u,f,h,A,p,g){var y=A*(IT/180),_=GD(y)*(t-r)/2+zD(y)*(e-n)/2,b=-1*zD(y)*(t-r)/2+GD(y)*(e-n)/2,C=_*_/(f*f)+b*b/(h*h);C>1&&(f*=XG(C),h*=XG(C));var T=(o===u?-1:1)*XG((f*f*(h*h)-f*f*(b*b)-h*h*(_*_))/(f*f*(b*b)+h*h*(_*_)))||0,B=T*f*b/h,L=T*-h*_/f,P=(t+r)/2+GD(y)*B-zD(y)*L,I=(e+n)/2+zD(y)*B+GD(y)*L,O=h_e([1,0],[(_-B)/f,(b-L)/h]),U=[(_-B)/f,(b-L)/h],N=[(-1*_-B)/f,(-1*b-L)/h],H=h_e(U,N);if(FK(U,N)<=-1&&(H=IT),FK(U,N)>=1&&(H=0),H<0){var z=Math.round(H/IT*1e6)/1e6;H=IT*2+z%2*IT}g.addData(p,P,I,f,h,O,H,y,u)}var hDt=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,dDt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ADt(t){var e=new lw;if(!t)return e;var r=0,n=0,o=r,u=n,f,h=lw.CMD,A=t.match(hDt);if(!A)return e;for(var p=0;p<A.length;p++){for(var g=A[p],y=g.charAt(0),_=void 0,b=g.match(dDt)||[],C=b.length,T=0;T<C;T++)b[T]=parseFloat(b[T]);for(var B=0;B<C;){var L=void 0,P=void 0,I=void 0,O=void 0,U=void 0,N=void 0,H=void 0,z=r,G=n,j=void 0,q=void 0;switch(y){case"l":r+=b[B++],n+=b[B++],_=h.L,e.addData(_,r,n);break;case"L":r=b[B++],n=b[B++],_=h.L,e.addData(_,r,n);break;case"m":r+=b[B++],n+=b[B++],_=h.M,e.addData(_,r,n),o=r,u=n,y="l";break;case"M":r=b[B++],n=b[B++],_=h.M,e.addData(_,r,n),o=r,u=n,y="L";break;case"h":r+=b[B++],_=h.L,e.addData(_,r,n);break;case"H":r=b[B++],_=h.L,e.addData(_,r,n);break;case"v":n+=b[B++],_=h.L,e.addData(_,r,n);break;case"V":n=b[B++],_=h.L,e.addData(_,r,n);break;case"C":_=h.C,e.addData(_,b[B++],b[B++],b[B++],b[B++],b[B++],b[B++]),r=b[B-2],n=b[B-1];break;case"c":_=h.C,e.addData(_,b[B++]+r,b[B++]+n,b[B++]+r,b[B++]+n,b[B++]+r,b[B++]+n),r+=b[B-2],n+=b[B-1];break;case"S":L=r,P=n,j=e.len(),q=e.data,f===h.C&&(L+=r-q[j-4],P+=n-q[j-3]),_=h.C,z=b[B++],G=b[B++],r=b[B++],n=b[B++],e.addData(_,L,P,z,G,r,n);break;case"s":L=r,P=n,j=e.len(),q=e.data,f===h.C&&(L+=r-q[j-4],P+=n-q[j-3]),_=h.C,z=r+b[B++],G=n+b[B++],r+=b[B++],n+=b[B++],e.addData(_,L,P,z,G,r,n);break;case"Q":z=b[B++],G=b[B++],r=b[B++],n=b[B++],_=h.Q,e.addData(_,z,G,r,n);break;case"q":z=b[B++]+r,G=b[B++]+n,r+=b[B++],n+=b[B++],_=h.Q,e.addData(_,z,G,r,n);break;case"T":L=r,P=n,j=e.len(),q=e.data,f===h.Q&&(L+=r-q[j-4],P+=n-q[j-3]),r=b[B++],n=b[B++],_=h.Q,e.addData(_,L,P,r,n);break;case"t":L=r,P=n,j=e.len(),q=e.data,f===h.Q&&(L+=r-q[j-4],P+=n-q[j-3]),r+=b[B++],n+=b[B++],_=h.Q,e.addData(_,L,P,r,n);break;case"A":I=b[B++],O=b[B++],U=b[B++],N=b[B++],H=b[B++],z=r,G=n,r=b[B++],n=b[B++],_=h.A,d_e(z,G,r,n,N,H,I,O,U,_,e);break;case"a":I=b[B++],O=b[B++],U=b[B++],N=b[B++],H=b[B++],z=r,G=n,r+=b[B++],n+=b[B++],_=h.A,d_e(z,G,r,n,N,H,I,O,U,_,e);break}}(y==="z"||y==="Z")&&(_=h.Z,e.addData(_),r=o,n=u),f=_}return e.toStatic(),e}var zOe=function(t){Io(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(Fo);function GOe(t){return t.setData!=null}function jOe(t,e){var r=ADt(t),n=Wr({},e);return n.buildPath=function(o){if(GOe(o)){o.setData(r.data);var u=o.getContext();u&&o.rebuildPath(u,1)}else{var u=o;r.rebuildPath(u,1)}},n.applyTransform=function(o){fDt(r,o),this.dirtyShape()},n}function vDt(t,e){return new zOe(jOe(t,e))}function pDt(t,e){var r=jOe(t,e),n=function(o){Io(u,o);function u(f){var h=o.call(this,f)||this;return h.applyTransform=r.applyTransform,h.buildPath=r.buildPath,h}return u}(zOe);return n}function gDt(t,e){for(var r=[],n=t.length,o=0;o<n;o++){var u=t[o];r.push(u.getUpdatedPathProxy(!0))}var f=new Fo(e);return f.createPathProxy(),f.buildPath=function(h){if(GOe(h)){h.appendPath(r);var A=h.getContext();A&&h.rebuildPath(A,1)}},f}var mDt=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),kk=function(t){Io(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new mDt},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(Fo);kk.prototype.type="circle";var yDt=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),EZ=function(t){Io(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new yDt},e.prototype.buildPath=function(r,n){var o=.5522848,u=n.cx,f=n.cy,h=n.rx,A=n.ry,p=h*o,g=A*o;r.moveTo(u-h,f),r.bezierCurveTo(u-h,f-g,u-p,f-A,u,f-A),r.bezierCurveTo(u+p,f-A,u+h,f-g,u+h,f),r.bezierCurveTo(u+h,f+g,u+p,f+A,u,f+A),r.bezierCurveTo(u-p,f+A,u-h,f+g,u-h,f),r.closePath()},e}(Fo);EZ.prototype.type="ellipse";var qOe=Math.PI,ZG=qOe*2,i1=Math.sin,x_=Math.cos,wDt=Math.acos,xc=Math.atan2,A_e=Math.abs,YE=Math.sqrt,wE=Math.max,Nv=Math.min,TA=1e-4;function bDt(t,e,r,n,o,u,f,h){var A=r-t,p=n-e,g=f-o,y=h-u,_=y*A-g*p;if(!(_*_<TA))return _=(g*(e-u)-y*(t-o))/_,[t+_*A,e+_*p]}function jD(t,e,r,n,o,u,f){var h=t-r,A=e-n,p=(f?u:-u)/YE(h*h+A*A),g=p*A,y=-p*h,_=t+g,b=e+y,C=r+g,T=n+y,B=(_+C)/2,L=(b+T)/2,P=C-_,I=T-b,O=P*P+I*I,U=o-u,N=_*T-C*b,H=(I<0?-1:1)*YE(wE(0,U*U*O-N*N)),z=(N*I-P*H)/O,G=(-N*P-I*H)/O,j=(N*I+P*H)/O,q=(-N*P+I*H)/O,X=z-B,Y=G-L,te=j-B,K=q-L;return X*X+Y*Y>te*te+K*K&&(z=j,G=q),{cx:z,cy:G,x0:-g,y0:-y,x1:z*(o/U-1),y1:G*(o/U-1)}}function _Dt(t){var e;if(Nn(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function SDt(t,e){var r,n=wE(e.r,0),o=wE(e.r0||0,0),u=n>0,f=o>0;if(!(!u&&!f)){if(u||(n=o,o=0),o>n){var h=n;n=o,o=h}var A=e.startAngle,p=e.endAngle;if(!(isNaN(A)||isNaN(p))){var g=e.cx,y=e.cy,_=!!e.clockwise,b=A_e(p-A),C=b>ZG&&b%ZG;if(C>TA&&(b=C),!(n>TA))t.moveTo(g,y);else if(b>ZG-TA)t.moveTo(g+n*x_(A),y+n*i1(A)),t.arc(g,y,n,A,p,!_),o>TA&&(t.moveTo(g+o*x_(p),y+o*i1(p)),t.arc(g,y,o,p,A,_));else{var T=void 0,B=void 0,L=void 0,P=void 0,I=void 0,O=void 0,U=void 0,N=void 0,H=void 0,z=void 0,G=void 0,j=void 0,q=void 0,X=void 0,Y=void 0,te=void 0,K=n*x_(A),ce=n*i1(A),ae=o*x_(p),le=o*i1(p),pe=b>TA;if(pe){var ie=e.cornerRadius;ie&&(r=_Dt(ie),T=r[0],B=r[1],L=r[2],P=r[3]);var he=A_e(n-o)/2;if(I=Nv(he,L),O=Nv(he,P),U=Nv(he,T),N=Nv(he,B),G=H=wE(I,O),j=z=wE(U,N),(H>TA||z>TA)&&(q=n*x_(p),X=n*i1(p),Y=o*x_(A),te=o*i1(A),b<qOe)){var re=bDt(K,ce,Y,te,q,X,ae,le);if(re){var oe=K-re[0],ye=ce-re[1],_e=q-re[0],Ce=X-re[1],ne=1/i1(wDt((oe*_e+ye*Ce)/(YE(oe*oe+ye*ye)*YE(_e*_e+Ce*Ce)))/2),xe=YE(re[0]*re[0]+re[1]*re[1]);G=Nv(H,(n-xe)/(ne+1)),j=Nv(z,(o-xe)/(ne-1))}}}if(!pe)t.moveTo(g+K,y+ce);else if(G>TA){var De=Nv(L,G),ze=Nv(P,G),Ye=jD(Y,te,K,ce,n,De,_),Ne=jD(q,X,ae,le,n,ze,_);t.moveTo(g+Ye.cx+Ye.x0,y+Ye.cy+Ye.y0),G<H&&De===ze?t.arc(g+Ye.cx,y+Ye.cy,G,xc(Ye.y0,Ye.x0),xc(Ne.y0,Ne.x0),!_):(De>0&&t.arc(g+Ye.cx,y+Ye.cy,De,xc(Ye.y0,Ye.x0),xc(Ye.y1,Ye.x1),!_),t.arc(g,y,n,xc(Ye.cy+Ye.y1,Ye.cx+Ye.x1),xc(Ne.cy+Ne.y1,Ne.cx+Ne.x1),!_),ze>0&&t.arc(g+Ne.cx,y+Ne.cy,ze,xc(Ne.y1,Ne.x1),xc(Ne.y0,Ne.x0),!_))}else t.moveTo(g+K,y+ce),t.arc(g,y,n,A,p,!_);if(!(o>TA)||!pe)t.lineTo(g+ae,y+le);else if(j>TA){var De=Nv(T,j),ze=Nv(B,j),Ye=jD(ae,le,q,X,o,-ze,_),Ne=jD(K,ce,Y,te,o,-De,_);t.lineTo(g+Ye.cx+Ye.x0,y+Ye.cy+Ye.y0),j<z&&De===ze?t.arc(g+Ye.cx,y+Ye.cy,j,xc(Ye.y0,Ye.x0),xc(Ne.y0,Ne.x0),!_):(ze>0&&t.arc(g+Ye.cx,y+Ye.cy,ze,xc(Ye.y0,Ye.x0),xc(Ye.y1,Ye.x1),!_),t.arc(g,y,o,xc(Ye.cy+Ye.y1,Ye.cx+Ye.x1),xc(Ne.cy+Ne.y1,Ne.cx+Ne.x1),_),De>0&&t.arc(g+Ne.cx,y+Ne.cy,De,xc(Ne.y1,Ne.x1),xc(Ne.y0,Ne.x0),!_))}else t.lineTo(g+ae,y+le),t.arc(g,y,o,p,A,_)}t.closePath()}}}var xDt=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),cx=function(t){Io(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new xDt},e.prototype.buildPath=function(r,n){SDt(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Fo);cx.prototype.type="sector";var CDt=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),BZ=function(t){Io(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new CDt},e.prototype.buildPath=function(r,n){var o=n.cx,u=n.cy,f=Math.PI*2;r.moveTo(o+n.r,u),r.arc(o,u,n.r,0,f,!1),r.moveTo(o+n.r0,u),r.arc(o,u,n.r0,0,f,!0)},e}(Fo);BZ.prototype.type="ring";function TDt(t,e,r,n){var o=[],u=[],f=[],h=[],A,p,g,y;if(n){g=[1/0,1/0],y=[-1/0,-1/0];for(var _=0,b=t.length;_<b;_++)$_(g,g,t[_]),K_(y,y,t[_]);$_(g,g,n[0]),K_(y,y,n[1])}for(var _=0,b=t.length;_<b;_++){var C=t[_];if(r)A=t[_?_-1:b-1],p=t[(_+1)%b];else if(_===0||_===b-1){o.push(cIt(t[_]));continue}else A=t[_-1],p=t[_+1];fIt(u,p,A),vG(u,u,e);var T=fK(C,A),B=fK(C,p),L=T+B;L!==0&&(T/=L,B/=L),vG(f,u,-T),vG(h,u,B);var P=obe([],C,f),I=obe([],C,h);n&&(K_(P,P,g),$_(P,P,y),K_(I,I,g),$_(I,I,y)),o.push(P),o.push(I)}return r&&o.push(o.shift()),o}function WOe(t,e,r){var n=e.smooth,o=e.points;if(o&&o.length>=2){if(n){var u=TDt(o,n,r,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var f=o.length,h=0;h<(r?f:f-1);h++){var A=u[h*2],p=u[h*2+1],g=o[(h+1)%f];t.bezierCurveTo(A[0],A[1],p[0],p[1],g[0],g[1])}}else{t.moveTo(o[0][0],o[0][1]);for(var h=1,y=o.length;h<y;h++)t.lineTo(o[h][0],o[h][1])}r&&t.closePath()}}var EDt=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),IZ=function(t){Io(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new EDt},e.prototype.buildPath=function(r,n){WOe(r,n,!0)},e}(Fo);IZ.prototype.type="polygon";var BDt=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),CB=function(t){Io(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new BDt},e.prototype.buildPath=function(r,n){WOe(r,n,!1)},e}(Fo);CB.prototype.type="polyline";var IDt={},LDt=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),fx=function(t){Io(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new LDt},e.prototype.buildPath=function(r,n){var o,u,f,h;if(this.subPixelOptimize){var A=MOe(IDt,n,this.style);o=A.x1,u=A.y1,f=A.x2,h=A.y2}else o=n.x1,u=n.y1,f=n.x2,h=n.y2;var p=n.percent;p!==0&&(r.moveTo(o,u),p<1&&(f=o*(1-p)+f*p,h=u*(1-p)+h*p),r.lineTo(f,h))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(Fo);fx.prototype.type="line";var kf=[],MDt=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function v_e(t,e,r){var n=t.cpx2,o=t.cpy2;return n!=null||o!=null?[(r?gbe:Wu)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?gbe:Wu)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?mbe:Qf)(t.x1,t.cpx1,t.x2,e),(r?mbe:Qf)(t.y1,t.cpy1,t.y2,e)]}var LZ=function(t){Io(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new MDt},e.prototype.buildPath=function(r,n){var o=n.x1,u=n.y1,f=n.x2,h=n.y2,A=n.cpx1,p=n.cpy1,g=n.cpx2,y=n.cpy2,_=n.percent;_!==0&&(r.moveTo(o,u),g==null||y==null?(_<1&&(GP(o,A,f,_,kf),A=kf[1],f=kf[2],GP(u,p,h,_,kf),p=kf[1],h=kf[2]),r.quadraticCurveTo(A,p,f,h)):(_<1&&(zP(o,A,g,f,_,kf),A=kf[1],g=kf[2],f=kf[3],zP(u,p,y,h,_,kf),p=kf[1],y=kf[2],h=kf[3]),r.bezierCurveTo(A,p,g,y,f,h)))},e.prototype.pointAt=function(r){return v_e(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=v_e(this.shape,r,!0);return AIt(n,n)},e}(Fo);LZ.prototype.type="bezier-curve";var DDt=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Fk=function(t){Io(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new DDt},e.prototype.buildPath=function(r,n){var o=n.cx,u=n.cy,f=Math.max(n.r,0),h=n.startAngle,A=n.endAngle,p=n.clockwise,g=Math.cos(h),y=Math.sin(h);r.moveTo(g*f+o,y*f+u),r.arc(o,u,f,h,A,!p)},e}(Fo);Fk.prototype.type="arc";var RDt=function(t){Io(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),o=0;o<r.length;o++)n=n||r[o].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),o=0;o<r.length;o++)r[o].path||r[o].createPathProxy(),r[o].path.setScale(n[0],n[1],r[o].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var o=n.paths||[],u=0;u<o.length;u++)o[u].buildPath(r,o[u].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Fo.prototype.getBoundingRect.call(this)},e}(Fo),$Oe=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),KOe=function(t){Io(e,t);function e(r,n,o,u,f,h){var A=t.call(this,f)||this;return A.x=r??0,A.y=n??0,A.x2=o??1,A.y2=u??0,A.type="linear",A.global=h||!1,A}return e}($Oe),PDt=function(t){Io(e,t);function e(r,n,o,u,f){var h=t.call(this,u)||this;return h.x=r??.5,h.y=n??.5,h.r=o??.5,h.type="radial",h.global=f||!1,h}return e}($Oe),a1=[0,0],o1=[0,0],qD=new Hi,WD=new Hi,eO=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Hi;for(var n=0;n<2;n++)this._axes[n]=new Hi;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,o=this._axes,u=e.x,f=e.y,h=u+e.width,A=f+e.height;if(n[0].set(u,f),n[1].set(h,f),n[2].set(h,A),n[3].set(u,A),r)for(var p=0;p<4;p++)n[p].transform(r);Hi.sub(o[0],n[1],n[0]),Hi.sub(o[1],n[3],n[0]),o[0].normalize(),o[1].normalize();for(var p=0;p<2;p++)this._origin[p]=o[p].dot(n[0])},t.prototype.intersect=function(e,r){var n=!0,o=!r;return qD.set(1/0,1/0),WD.set(0,0),!this._intersectCheckOneSide(this,e,qD,WD,o,1)&&(n=!1,o)||!this._intersectCheckOneSide(e,this,qD,WD,o,-1)&&(n=!1,o)||o||Hi.copy(r,n?qD:WD),n},t.prototype._intersectCheckOneSide=function(e,r,n,o,u,f){for(var h=!0,A=0;A<2;A++){var p=this._axes[A];if(this._getProjMinMaxOnAxis(A,e._corners,a1),this._getProjMinMaxOnAxis(A,r._corners,o1),a1[1]<o1[0]||a1[0]>o1[1]){if(h=!1,u)return h;var g=Math.abs(o1[0]-a1[1]),y=Math.abs(a1[0]-o1[1]);Math.min(g,y)>o.len()&&(g<y?Hi.scale(o,p,-g*f):Hi.scale(o,p,y*f))}else if(n){var g=Math.abs(o1[0]-a1[1]),y=Math.abs(a1[0]-o1[1]);Math.min(g,y)<n.len()&&(g<y?Hi.scale(n,p,g*f):Hi.scale(n,p,-y*f))}}return h},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var o=this._axes[e],u=this._origin,f=r[0].dot(o)+u[e],h=f,A=f,p=1;p<r.length;p++){var g=r[p].dot(o)+u[e];h=Math.min(g,h),A=Math.max(g,A)}n[0]=h,n[1]=A},t}(),ODt=[],kDt=function(t){Io(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var o=0;o<r.length;o++)this.addDisplayable(r[o],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ko(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var o=this._displayables[n],u=o.getBoundingRect().clone();o.needLocalTransform()&&u.applyTransform(o.getLocalTransform(ODt)),r.union(u)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var o=this.transformCoordToLocal(r,n),u=this.getBoundingRect();if(u.contain(o[0],o[1]))for(var f=0;f<this._displayables.length;f++){var h=this._displayables[f];if(h.contain(r,n))return!0}return!1},e}(xB),FDt=hu();function NDt(t,e,r,n,o){var u;if(e&&e.ecModel){var f=e.ecModel.getUpdatePayload();u=f&&f.animation}var h=e&&e.isAnimationEnabled(),A=t==="update";if(h){var p=void 0,g=void 0,y=void 0;n?(p=Ji(n.duration,200),g=Ji(n.easing,"cubicOut"),y=0):(p=e.getShallow(A?"animationDurationUpdate":"animationDuration"),g=e.getShallow(A?"animationEasingUpdate":"animationEasing"),y=e.getShallow(A?"animationDelayUpdate":"animationDelay")),u&&(u.duration!=null&&(p=u.duration),u.easing!=null&&(g=u.easing),u.delay!=null&&(y=u.delay)),ha(y)&&(y=y(r,o)),ha(p)&&(p=p(r));var _={duration:p||0,delay:y,easing:g};return _}else return null}function MZ(t,e,r,n,o,u,f){var h=!1,A;ha(o)?(f=u,u=o,o=null):wi(o)&&(u=o.cb,f=o.during,h=o.isFrom,A=o.removeOpt,o=o.dataIndex);var p=t==="leave";p||e.stopAnimation("leave");var g=NDt(t,n,o,p?A||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,o):null);if(g&&g.duration>0){var y=g.duration,_=g.delay,b=g.easing,C={duration:y,delay:_||0,easing:b,done:u,force:!!u||!!f,setToFinal:!p,scope:t,during:f};h?e.animateFrom(r,C):e.animateTo(r,C)}else e.stopAnimation(),!h&&e.attr(r),f&&f(1),u&&u()}function ap(t,e,r,n,o,u){MZ("update",t,e,r,n,o,u)}function vy(t,e,r,n,o,u){MZ("enter",t,e,r,n,o,u)}function XE(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function tO(t,e,r,n,o,u){XE(t)||MZ("leave",t,e,r,n,o,u)}function p_e(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),tO(t,{style:{opacity:0}},e,r,n)}function YOe(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(o){o.isGroup||p_e(o,e,r,n)}):p_e(t,e,r,n)}function XOe(t){FDt(t).oldStyle=t.style}var rO=Math.max,nO=Math.min,NK={};function UDt(t){return Fo.extend(t)}var HDt=pDt;function QDt(t,e){return HDt(t,e)}function XA(t,e){NK[t]=e}function VDt(t){if(NK.hasOwnProperty(t))return NK[t]}function DZ(t,e,r,n){var o=vDt(t,e);return r&&(n==="center"&&(r=JOe(r,o.getBoundingRect())),eke(o,r)),o}function ZOe(t,e,r){var n=new Ly({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(o){if(r==="center"){var u={width:o.width,height:o.height};n.setStyle(JOe(e,u))}}});return n}function JOe(t,e){var r=e.width/e.height,n=t.height*r,o;n<=t.width?o=t.height:(n=t.width,o=n/r);var u=t.x+t.width/2,f=t.y+t.height/2;return{x:u-n/2,y:f-o/2,width:n,height:o}}var zDt=gDt;function eke(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function RZ(t,e){return MOe(t,t,{lineWidth:e}),t}function GDt(t){return DOe(t.shape,t.shape,t.style),t}var jDt=M1;function qDt(t,e){for(var r=AZ([]);t&&t!==e;)gS(r,t.getLocalTransform(),r),t=t.parent;return r}function PZ(t,e,r){return e&&!Zf(e)&&(e=gZ.getLocalTransform(e)),r&&(e=XPe([],e)),ep([],t,e)}function WDt(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),o=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),u=[t==="left"?-n:t==="right"?n:0,t==="top"?-o:t==="bottom"?o:0];return u=PZ(u,e,r),Math.abs(u[0])>Math.abs(u[1])?u[0]>0?"right":"left":u[1]>0?"bottom":"top"}function g_e(t){return!t.isGroup}function $Dt(t){return t.shape!=null}function KDt(t,e,r){if(!t||!e)return;function n(f){var h={};return f.traverse(function(A){g_e(A)&&A.anid&&(h[A.anid]=A)}),h}function o(f){var h={x:f.x,y:f.y,rotation:f.rotation};return $Dt(f)&&(h.shape=Wr({},f.shape)),h}var u=n(t);e.traverse(function(f){if(g_e(f)&&f.anid){var h=u[f.anid];if(h){var A=o(f);f.attr(o(h)),ap(f,A,r,go(f).dataIndex)}}})}function YDt(t,e){return ra(t,function(r){var n=r[0];n=rO(n,e.x),n=nO(n,e.x+e.width);var o=r[1];return o=rO(o,e.y),o=nO(o,e.y+e.height),[n,o]})}function XDt(t,e){var r=rO(t.x,e.x),n=nO(t.x+t.width,e.x+e.width),o=rO(t.y,e.y),u=nO(t.y+t.height,e.y+e.height);if(n>=r&&u>=o)return{x:r,y:o,width:n-r,height:u-o}}function OZ(t,e,r){var n=Wr({rectHover:!0},e),o=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(o.image=t.slice(8),ls(o,r),new Ly(n)):DZ(t.replace("path://",""),n,r,"center")}function ZDt(t,e,r,n,o){for(var u=0,f=o[o.length-1];u<o.length;u++){var h=o[u];if(tke(t,e,r,n,h[0],h[1],f[0],f[1]))return!0;f=h}}function tke(t,e,r,n,o,u,f,h){var A=r-t,p=n-e,g=f-o,y=h-u,_=JG(g,y,A,p);if(JDt(_))return!1;var b=t-o,C=e-u,T=JG(b,C,A,p)/_;if(T<0||T>1)return!1;var B=JG(b,C,g,y)/_;return!(B<0||B>1)}function JG(t,e,r,n){return t*n-r*e}function JDt(t){return t<=1e-6&&t>=-1e-6}function Nk(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,o=ri(e)?{formatter:e}:e,u=r.mainType,f=r.componentIndex,h={componentType:u,name:n,$vars:["name"]};h[u+"Index"]=f;var A=t.formatterParamsExtra;A&&jt(gl(A),function(g){ow(h,g)||(h[g]=A[g],h.$vars.push(g))});var p=go(t.el);p.componentMainType=u,p.componentIndex=f,p.tooltipConfig={name:n,option:ls({content:n,encodeHTMLContent:!0,formatterParams:h},o)}}function m_e(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function kZ(t,e){if(t)if(Nn(t))for(var r=0;r<t.length;r++)m_e(t[r],e);else m_e(t,e)}XA("circle",kk);XA("ellipse",EZ);XA("sector",cx);XA("ring",BZ);XA("polygon",IZ);XA("polyline",CB);XA("rect",Rc);XA("line",fx);XA("bezierCurve",LZ);XA("arc",Fk);const e5t=Object.freeze(Object.defineProperty({__proto__:null,Arc:Fk,BezierCurve:LZ,BoundingRect:ko,Circle:kk,CompoundPath:RDt,Ellipse:EZ,Group:hf,Image:Ly,IncrementalDisplayable:kDt,Line:fx,LinearGradient:KOe,OrientedBoundingRect:eO,Path:Fo,Point:Hi,Polygon:IZ,Polyline:CB,RadialGradient:PDt,Rect:Rc,Ring:BZ,Sector:cx,Text:Yu,applyTransform:PZ,clipPointsByRect:YDt,clipRectByRect:XDt,createIcon:OZ,extendPath:QDt,extendShape:UDt,getShapeClass:VDt,getTransform:qDt,groupTransition:KDt,initProps:vy,isElementRemoved:XE,lineLineIntersect:tke,linePolygonIntersect:ZDt,makeImage:ZOe,makePath:DZ,mergePath:zDt,registerShape:XA,removeElement:tO,removeElementWithFadeOut:YOe,resizePath:eke,setTooltipConfig:Nk,subPixelOptimize:jDt,subPixelOptimizeLine:RZ,subPixelOptimizeRect:GDt,transformDirection:WDt,traverseElements:kZ,updateProps:ap},Symbol.toStringTag,{value:"Module"}));var Uk={};function t5t(t,e){for(var r=0;r<Vd.length;r++){var n=Vd[r],o=e[n],u=t.ensureState(n);u.style=u.style||{},u.style.text=o}var f=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(f,!0)}function y_e(t,e,r){var n=t.labelFetcher,o=t.labelDataIndex,u=t.labelDimIndex,f=e.normal,h;n&&(h=n.getFormattedLabel(o,"normal",null,u,f&&f.get("formatter"),r!=null?{interpolatedValue:r}:null)),h==null&&(h=ha(t.defaultText)?t.defaultText(o,t,r):t.defaultText);for(var A={normal:h},p=0;p<Vd.length;p++){var g=Vd[p],y=e[g];A[g]=Ji(n?n.getFormattedLabel(o,g,null,u,y&&y.get("formatter")):null,h)}return A}function Hk(t,e,r,n){r=r||Uk;for(var o=t instanceof Yu,u=!1,f=0;f<YP.length;f++){var h=e[YP[f]];if(h&&h.getShallow("show")){u=!0;break}}var A=o?t:t.getTextContent();if(u){o||(A||(A=new Yu,t.setTextContent(A)),t.stateProxy&&(A.stateProxy=t.stateProxy));var p=y_e(r,e),g=e.normal,y=!!g.getShallow("show"),_=xy(g,n&&n.normal,r,!1,!o);_.text=p.normal,o||t.setTextConfig(w_e(g,r,!1));for(var f=0;f<Vd.length;f++){var b=Vd[f],h=e[b];if(h){var C=A.ensureState(b),T=!!Ji(h.getShallow("show"),y);if(T!==y&&(C.ignore=!T),C.style=xy(h,n&&n[b],r,!0,!o),C.style.text=p[b],!o){var B=t.ensureState(b);B.textConfig=w_e(h,r,!0)}}}A.silent=!!g.getShallow("silent"),A.style.x!=null&&(_.x=A.style.x),A.style.y!=null&&(_.y=A.style.y),A.ignore=!y,A.useStyle(_),A.dirty(),r.enableTextSetter&&(rke(A).setLabelText=function(L){var P=y_e(r,e,L);t5t(A,P)})}else A&&(A.ignore=!0);t.dirty()}function Qk(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<Vd.length;n++){var o=Vd[n];r[o]=t.getModel([o,e])}return r}function xy(t,e,r,n,o){var u={};return r5t(u,t,r,n,o),e&&Wr(u,e),u}function w_e(t,e,r){e=e||{};var n={},o,u=t.getShallow("rotate"),f=Ji(t.getShallow("distance"),r?null:5),h=t.getShallow("offset");return o=t.getShallow("position")||(r?null:"inside"),o==="outside"&&(o=e.defaultOutsidePosition||"top"),o!=null&&(n.position=o),h!=null&&(n.offset=h),u!=null&&(u*=Math.PI/180,n.rotation=u),f!=null&&(n.distance=f),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",n}function r5t(t,e,r,n,o){r=r||Uk;var u=e.ecModel,f=u&&u.option.textStyle,h=n5t(e),A;if(h){A={};for(var p in h)if(h.hasOwnProperty(p)){var g=e.getModel(["rich",p]);x_e(A[p]={},g,f,r,n,o,!1,!0)}}A&&(t.rich=A);var y=e.get("overflow");y&&(t.overflow=y);var _=e.get("minMargin");_!=null&&(t.margin=_),x_e(t,e,f,r,n,o,!0,!1)}function n5t(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||Uk).rich;if(r){e=e||{};for(var n=gl(r),o=0;o<n.length;o++){var u=n[o];e[u]=1}}t=t.parentModel}return e}var b_e=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],__e=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],S_e=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function x_e(t,e,r,n,o,u,f,h){r=!o&&r||Uk;var A=n&&n.inheritColor,p=e.getShallow("color"),g=e.getShallow("textBorderColor"),y=Ji(e.getShallow("opacity"),r.opacity);(p==="inherit"||p==="auto")&&(A?p=A:p=null),(g==="inherit"||g==="auto")&&(A?g=A:g=null),u||(p=p||r.color,g=g||r.textBorderColor),p!=null&&(t.fill=p),g!=null&&(t.stroke=g);var _=Ji(e.getShallow("textBorderWidth"),r.textBorderWidth);_!=null&&(t.lineWidth=_);var b=Ji(e.getShallow("textBorderType"),r.textBorderType);b!=null&&(t.lineDash=b);var C=Ji(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);C!=null&&(t.lineDashOffset=C),!o&&y==null&&!h&&(y=n&&n.defaultOpacity),y!=null&&(t.opacity=y),!o&&!u&&t.fill==null&&n.inheritColor&&(t.fill=n.inheritColor);for(var T=0;T<b_e.length;T++){var B=b_e[T],L=Ji(e.getShallow(B),r[B]);L!=null&&(t[B]=L)}for(var T=0;T<__e.length;T++){var B=__e[T],L=e.getShallow(B);L!=null&&(t[B]=L)}if(t.verticalAlign==null){var P=e.getShallow("baseline");P!=null&&(t.verticalAlign=P)}if(!f||!n.disableBox){for(var T=0;T<S_e.length;T++){var B=S_e[T],L=e.getShallow(B);L!=null&&(t[B]=L)}var I=e.getShallow("borderType");I!=null&&(t.borderDash=I),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&A&&(t.backgroundColor=A),(t.borderColor==="auto"||t.borderColor==="inherit")&&A&&(t.borderColor=A)}}function i5t(t,e){var r=e&&e.getModel("textStyle");return Kv([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var rke=hu(),a5t=["textStyle","color"],e3=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],t3=new Yu,o5t=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(a5t):null)},t.prototype.getFont=function(){return i5t({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<e3.length;n++)r[e3[n]]=this.getShallow(e3[n]);return t3.useStyle(r),t3.update(),t3.getBoundingRect()},t}(),nke=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],s5t=D2(nke),l5t=function(){function t(){}return t.prototype.getLineStyle=function(e){return s5t(this,e)},t}(),ike=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],u5t=D2(ike),c5t=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return u5t(this,e,r)},t}(),zs=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){Bs(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,o=n==null?n:n[e];if(o==null&&!r){var u=this.parentModel;u&&(o=u.getShallow(e))}return o},t.prototype.getModel=function(e,r){var n=e!=null,o=n?this.parsePath(e):null,u=n?this._doGet(o):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(o)),new t(u,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Ba(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Oi.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var o=0;o<e.length&&!(e[o]&&(n=n&&typeof n=="object"?n[e[o]]:null,n==null));o++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();bZ(zs);YLt(zs);Mg(zs,l5t);Mg(zs,c5t);Mg(zs,tMt);Mg(zs,o5t);var f5t=Math.round(Math.random()*10);function Vk(t){return[t||"",f5t++].join("_")}function h5t(t){var e={};t.registerSubTypeDefaulter=function(r,n){var o=Yv(r);e[o.main]=n},t.determineSubType=function(r,n){var o=n.type;if(!o){var u=Yv(r).main;t.hasSubTypes(r)&&e[u]&&(o=e[u](n))}return o}}function d5t(t,e){t.topologicalTravel=function(u,f,h,A){if(!u.length)return;var p=r(f),g=p.graph,y=p.noEntryList,_={};for(jt(u,function(P){_[P]=!0});y.length;){var b=y.pop(),C=g[b],T=!!_[b];T&&(h.call(A,b,C.originalDeps.slice()),delete _[b]),jt(C.successor,T?L:B)}jt(_,function(){var P="";throw new Error(P)});function B(P){g[P].entryCount--,g[P].entryCount===0&&y.push(P)}function L(P){_[P]=!0,B(P)}};function r(u){var f={},h=[];return jt(u,function(A){var p=n(f,A),g=p.originalDeps=e(A),y=o(g,u);p.entryCount=y.length,p.entryCount===0&&h.push(A),jt(y,function(_){ss(p.predecessor,_)<0&&p.predecessor.push(_);var b=n(f,_);ss(b.successor,_)<0&&b.successor.push(A)})}),{graph:f,noEntryList:h}}function n(u,f){return u[f]||(u[f]={predecessor:[],successor:[]}),u[f]}function o(u,f){var h=[];return jt(u,function(A){ss(f,A)>=0&&h.push(A)}),h}}function A5t(t,e){return Bs(Bs({},t,!0),e,!0)}const v5t={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},p5t={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var iO="ZH",FZ="EN",yS=FZ,aR={},NZ={},ake=Oi.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||yS).toUpperCase();return t.indexOf(iO)>-1?iO:yS}():yS;function oke(t,e){t=t.toUpperCase(),NZ[t]=new zs(e),aR[t]=e}function g5t(t){if(ri(t)){var e=aR[t.toUpperCase()]||{};return t===iO||t===FZ?Ba(e):Bs(Ba(e),Ba(aR[yS]),!1)}else return Bs(Ba(t),Ba(aR[yS]),!1)}function m5t(t){return NZ[t]}function y5t(){return NZ[yS]}oke(FZ,v5t);oke(iO,p5t);function Mm(t,e){return t+="","0000".substr(0,e-t.length)+t}function ske(t,e,r,n){var o=Lk(t),u=o[w5t(r)](),f=o[b5t(r)]()+1,h=Math.floor((f-1)/3)+1,A=o[_5t(r)](),p=o["get"+(r?"UTC":"")+"Day"](),g=o[S5t(r)](),y=(g-1)%12+1,_=o[x5t(r)](),b=o[C5t(r)](),C=o[T5t(r)](),T=g>=12?"pm":"am",B=T.toUpperCase(),L=n instanceof zs?n:m5t(ake)||y5t(),P=L.getModel("time"),I=P.get("month"),O=P.get("monthAbbr"),U=P.get("dayOfWeek"),N=P.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,T+"").replace(/{A}/g,B+"").replace(/{yyyy}/g,u+"").replace(/{yy}/g,Mm(u%100+"",2)).replace(/{Q}/g,h+"").replace(/{MMMM}/g,I[f-1]).replace(/{MMM}/g,O[f-1]).replace(/{MM}/g,Mm(f,2)).replace(/{M}/g,f+"").replace(/{dd}/g,Mm(A,2)).replace(/{d}/g,A+"").replace(/{eeee}/g,U[p]).replace(/{ee}/g,N[p]).replace(/{e}/g,p+"").replace(/{HH}/g,Mm(g,2)).replace(/{H}/g,g+"").replace(/{hh}/g,Mm(y+"",2)).replace(/{h}/g,y+"").replace(/{mm}/g,Mm(_,2)).replace(/{m}/g,_+"").replace(/{ss}/g,Mm(b,2)).replace(/{s}/g,b+"").replace(/{SSS}/g,Mm(C,3)).replace(/{S}/g,C+"")}function w5t(t){return t?"getUTCFullYear":"getFullYear"}function b5t(t){return t?"getUTCMonth":"getMonth"}function _5t(t){return t?"getUTCDate":"getDate"}function S5t(t){return t?"getUTCHours":"getHours"}function x5t(t){return t?"getUTCMinutes":"getMinutes"}function C5t(t){return t?"getUTCSeconds":"getSeconds"}function T5t(t){return t?"getUTCMilliseconds":"getMilliseconds"}function E5t(t){if(!ILt(t))return ri(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function lke(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var zk=jPe;function UK(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(g){return g&&Kv(g)?g:"-"}function u(g){return!!(g!=null&&!isNaN(g)&&isFinite(g))}var f=e==="time",h=t instanceof Date;if(f||h){var A=f?Lk(t):t;if(isNaN(+A)){if(h)return"-"}else return ske(A,n,r)}if(e==="ordinal")return uK(t)?o(t):ws(t)&&u(t)?t+"":"-";var p=$P(t);return u(p)?E5t(p):uK(t)?o(t):typeof t=="boolean"?t+"":"-"}var C_e=["a","b","c","d","e","f","g"],r3=function(t,e){return"{"+t+(e??"")+"}"};function uke(t,e,r){Nn(e)||(e=[e]);var n=e.length;if(!n)return"";for(var o=e[0].$vars||[],u=0;u<o.length;u++){var f=C_e[u];t=t.replace(r3(f),r3(f,0))}for(var h=0;h<n;h++)for(var A=0;A<o.length;A++){var p=e[h][o[A]];t=t.replace(r3(C_e[A],h),r?Hf(p):p)}return t}function B5t(t,e){var r=ri(t)?{color:t,extraCssText:e}:t||{},n=r.color,o=r.type;e=r.extraCssText;var u=r.renderMode||"html";if(!n)return"";if(u==="html")return o==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Hf(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Hf(n)+";"+(e||"")+'"></span>';var f=r.markerId||"markerX";return{renderMode:u,content:"{"+f+"|} ",style:o==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function uw(t,e){return e=e||"transparent",ri(t)?t:wi(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function T_e(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var oR=jt,I5t=["left","right","top","bottom","width","height"],$D=[["width","left","right"],["height","top","bottom"]];function UZ(t,e,r,n,o){var u=0,f=0;n==null&&(n=1/0),o==null&&(o=1/0);var h=0;e.eachChild(function(A,p){var g=A.getBoundingRect(),y=e.childAt(p+1),_=y&&y.getBoundingRect(),b,C;if(t==="horizontal"){var T=g.width+(_?-_.x+g.x:0);b=u+T,b>n||A.newline?(u=0,b=T,f+=h+r,h=g.height):h=Math.max(h,g.height)}else{var B=g.height+(_?-_.y+g.y:0);C=f+B,C>o||A.newline?(u+=h+r,f=0,C=B,h=g.width):h=Math.max(h,g.width)}A.newline||(A.x=u,A.y=f,A.markRedraw(),t==="horizontal"?u=b+r:f=C+r)})}var ZE=UZ;Nl(UZ,"vertical");Nl(UZ,"horizontal");function R2(t,e,r){r=zk(r||0);var n=e.width,o=e.height,u=lu(t.left,n),f=lu(t.top,o),h=lu(t.right,n),A=lu(t.bottom,o),p=lu(t.width,n),g=lu(t.height,o),y=r[2]+r[0],_=r[1]+r[3],b=t.aspect;switch(isNaN(p)&&(p=n-h-_-u),isNaN(g)&&(g=o-A-y-f),b!=null&&(isNaN(p)&&isNaN(g)&&(b>n/o?p=n*.8:g=o*.8),isNaN(p)&&(p=b*g),isNaN(g)&&(g=p/b)),isNaN(u)&&(u=n-h-p-_),isNaN(f)&&(f=o-A-g-y),t.left||t.right){case"center":u=n/2-p/2-r[3];break;case"right":u=n-p-_;break}switch(t.top||t.bottom){case"middle":case"center":f=o/2-g/2-r[0];break;case"bottom":f=o-g-y;break}u=u||0,f=f||0,isNaN(p)&&(p=n-_-u-(h||0)),isNaN(g)&&(g=o-y-f-(A||0));var C=new ko(u+r[3],f+r[0],p,g);return C.margin=r,C}function aO(t){var e=t.layoutMode||t.constructor.layoutMode;return wi(e)?e:e?{type:e}:null}function P2(t,e,r){var n=r&&r.ignoreSize;!Nn(n)&&(n=[n,n]);var o=f($D[0],0),u=f($D[1],1);p($D[0],t,o),p($D[1],t,u);function f(g,y){var _={},b=0,C={},T=0,B=2;if(oR(g,function(I){C[I]=t[I]}),oR(g,function(I){h(e,I)&&(_[I]=C[I]=e[I]),A(_,I)&&b++,A(C,I)&&T++}),n[y])return A(e,g[1])?C[g[2]]=null:A(e,g[2])&&(C[g[1]]=null),C;if(T===B||!b)return C;if(b>=B)return _;for(var L=0;L<g.length;L++){var P=g[L];if(!h(_,P)&&h(t,P)){_[P]=t[P];break}}return _}function h(g,y){return g.hasOwnProperty(y)}function A(g,y){return g[y]!=null&&g[y]!=="auto"}function p(g,y,_){oR(g,function(b){y[b]=_[b]})}}function HZ(t){return L5t({},t)}function L5t(t,e){return e&&t&&oR(I5t,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var M5t=hu(),To=function(t){ao(e,t);function e(r,n,o){var u=t.call(this,r,n,o)||this;return u.uid=Vk("ec_cpt_model"),u}return e.prototype.init=function(r,n,o){this.mergeDefaultAndTheme(r,o)},e.prototype.mergeDefaultAndTheme=function(r,n){var o=aO(this),u=o?HZ(r):{},f=n.getTheme();Bs(r,f.get(this.mainType)),Bs(r,this.getDefaultOption()),o&&P2(r,u,o)},e.prototype.mergeOption=function(r,n){Bs(this.option,r,!0);var o=aO(this);o&&P2(this.option,r,o)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!WLt(r))return r.defaultOption;var n=M5t(this);if(!n.defaultOption){for(var o=[],u=r;u;){var f=u.prototype.defaultOption;f&&o.push(f),u=u.superClass}for(var h={},A=o.length-1;A>=0;A--)h=Bs(h,o[A],!0);n.defaultOption=h}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var o=r+"Index",u=r+"Id";return SB(this.ecModel,r,{index:this.get(o,!0),id:this.get(u,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(zs);SOe(To,zs);_Z(To);h5t(To);d5t(To,D5t);function D5t(t){var e=[];return jt(To.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=ra(e,function(r){return Yv(r).main}),t!=="dataset"&&ss(e,"dataset")<=0&&e.unshift("dataset"),e}var cke="";typeof navigator<"u"&&(cke=navigator.platform||"");var C_="rgba(0, 0, 0, 0.2)";const R5t={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:C_,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:C_,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:C_,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:C_,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:C_,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:C_,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:cke.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 fke=fa(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Wd="original",eh="arrayRows",ZA="objectRows",fp="keyedColumns",py="typedArray",hke="unknown",rp="column",hx="row",Hu={Must:1,Might:2,Not:3},dke=hu();function P5t(t){dke(t).datasetMap=fa()}function O5t(t,e,r){var n={},o=QZ(e);if(!o||!t)return n;var u=[],f=[],h=e.ecModel,A=dke(h).datasetMap,p=o.uid+"_"+r.seriesLayoutBy,g,y;t=t.slice(),jt(t,function(T,B){var L=wi(T)?T:t[B]={name:T};L.type==="ordinal"&&g==null&&(g=B,y=C(L)),n[L.name]=[]});var _=A.get(p)||A.set(p,{categoryWayDim:y,valueWayDim:0});jt(t,function(T,B){var L=T.name,P=C(T);if(g==null){var I=_.valueWayDim;b(n[L],I,P),b(f,I,P),_.valueWayDim+=P}else if(g===B)b(n[L],0,P),b(u,0,P);else{var I=_.categoryWayDim;b(n[L],I,P),b(f,I,P),_.categoryWayDim+=P}});function b(T,B,L){for(var P=0;P<L;P++)T.push(B+P)}function C(T){var B=T.dimsDef;return B?B.length:1}return u.length&&(n.itemName=u),f.length&&(n.seriesName=f),n}function k5t(t,e,r){var n={},o=QZ(t);if(!o)return n;var u=e.sourceFormat,f=e.dimensionsDefine,h;(u===ZA||u===fp)&&jt(f,function(g,y){(wi(g)?g.name:g)==="name"&&(h=y)});var A=function(){for(var g={},y={},_=[],b=0,C=Math.min(5,r);b<C;b++){var T=vke(e.data,u,e.seriesLayoutBy,f,e.startIndex,b);_.push(T);var B=T===Hu.Not;if(B&&g.v==null&&b!==h&&(g.v=b),(g.n==null||g.n===g.v||!B&&_[g.n]===Hu.Not)&&(g.n=b),L(g)&&_[g.n]!==Hu.Not)return g;B||(T===Hu.Might&&y.v==null&&b!==h&&(y.v=b),(y.n==null||y.n===y.v)&&(y.n=b))}function L(P){return P.v!=null&&P.n!=null}return L(g)?g:L(y)?y:null}();if(A){n.value=[A.v];var p=h??A.n;n.itemName=[p],n.seriesName=[p]}return n}function QZ(t){var e=t.get("data",!0);if(!e)return SB(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},L1).models[0]}function F5t(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:SB(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},L1).models}function Ake(t,e){return vke(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function vke(t,e,r,n,o,u){var f,h=5;if(Jf(t))return Hu.Not;var A,p;if(n){var g=n[u];wi(g)?(A=g.name,p=g.type):ri(g)&&(A=g)}if(p!=null)return p==="ordinal"?Hu.Must:Hu.Not;if(e===eh){var y=t;if(r===hx){for(var _=y[u],b=0;b<(_||[]).length&&b<h;b++)if((f=O(_[o+b]))!=null)return f}else for(var b=0;b<y.length&&b<h;b++){var C=y[o+b];if(C&&(f=O(C[u]))!=null)return f}}else if(e===ZA){var T=t;if(!A)return Hu.Not;for(var b=0;b<T.length&&b<h;b++){var B=T[b];if(B&&(f=O(B[A]))!=null)return f}}else if(e===fp){var L=t;if(!A)return Hu.Not;var _=L[A];if(!_||Jf(_))return Hu.Not;for(var b=0;b<_.length&&b<h;b++)if((f=O(_[b]))!=null)return f}else if(e===Wd)for(var P=t,b=0;b<P.length&&b<h;b++){var B=P[b],I=_B(B);if(!Nn(I))return Hu.Not;if((f=O(I[u]))!=null)return f}function O(U){var N=ri(U);if(U!=null&&Number.isFinite(Number(U))&&U!=="")return N?Hu.Might:Hu.Not;if(N&&U!=="-")return Hu.Must}return Hu.Not}var N5t=fa();function U5t(t,e,r){var n=N5t.get(e);if(!n)return r;var o=n(t);return o?r.concat(o):r}var E_e=hu();hu();var VZ=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var o=ff(this.get("color",!0)),u=this.get("colorLayer",!0);return Q5t(this,E_e,o,u,e,r,n)},t.prototype.clearColorPalette=function(){V5t(this,E_e)},t}();function H5t(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function Q5t(t,e,r,n,o,u,f){u=u||t;var h=e(u),A=h.paletteIdx||0,p=h.paletteNameMap=h.paletteNameMap||{};if(p.hasOwnProperty(o))return p[o];var g=f==null||!n?r:H5t(n,f);if(g=g||r,!(!g||!g.length)){var y=g[A];return o&&(p[o]=y),h.paletteIdx=(A+1)%g.length,y}}function V5t(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var KD,LT,B_e,I_e="\0_ec_inner",z5t=1,zZ=function(t){ao(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,o,u,f,h){u=u||{},this.option=null,this._theme=new zs(u),this._locale=new zs(f),this._optionManager=h},e.prototype.setOption=function(r,n,o){var u=D_e(n);this._optionManager.setOption(r,o,u),this._resetOption(null,u)},e.prototype.resetOption=function(r,n){return this._resetOption(r,D_e(n))},e.prototype._resetOption=function(r,n){var o=!1,u=this._optionManager;if(!r||r==="recreate"){var f=u.mountOption(r==="recreate");!this.option||r==="recreate"?B_e(this,f):(this.restoreData(),this._mergeOption(f,n)),o=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var h=u.getTimelineOption(this);h&&(o=!0,this._mergeOption(h,n))}if(!r||r==="recreate"||r==="media"){var A=u.getMediaOption(this);A.length&&jt(A,function(p){o=!0,this._mergeOption(p,n)},this)}return o},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var o=this.option,u=this._componentsMap,f=this._componentsCount,h=[],A=fa(),p=n&&n.replaceMergeMainTypeMap;P5t(this),jt(r,function(y,_){y!=null&&(To.hasClass(_)?_&&(h.push(_),A.set(_,!0)):o[_]=o[_]==null?Ba(y):Bs(o[_],y,!0))}),p&&p.each(function(y,_){To.hasClass(_)&&!A.get(_)&&(h.push(_),A.set(_,!0))}),To.topologicalTravel(h,To.getAllClassMainTypes(),g,this);function g(y){var _=U5t(this,y,ff(r[y])),b=u.get(y),C=b?p&&p.get(y)?"replaceMerge":"normalMerge":"replaceAll",T=DLt(b,_,C);ULt(T,y,To),o[y]=null,u.set(y,null),f.set(y,0);var B=[],L=[],P=0,I;jt(T,function(O,U){var N=O.existing,H=O.newOption;if(!H)N&&(N.mergeOption({},this),N.optionUpdated({},!1));else{var z=y==="series",G=To.getClass(y,O.keyInfo.subType,!z);if(!G)return;if(y==="tooltip"){if(I)return;I=!0}if(N&&N.constructor===G)N.name=O.keyInfo.name,N.mergeOption(H,this),N.optionUpdated(H,!1);else{var j=Wr({componentIndex:U},O.keyInfo);N=new G(H,this,this,j),Wr(N,j),O.brandNew&&(N.__requireNewView=!0),N.init(H,this,this),N.optionUpdated(null,!0)}}N?(B.push(N.option),L.push(N),P++):(B.push(void 0),L.push(void 0))},this),o[y]=B,u.set(y,L),f.set(y,P),y==="series"&&KD(this)}this._seriesIndices||KD(this)},e.prototype.getOption=function(){var r=Ba(this.option);return jt(r,function(n,o){if(To.hasClass(o)){for(var u=ff(n),f=u.length,h=!1,A=f-1;A>=0;A--)u[A]&&!M2(u[A])?h=!0:(u[A]=null,!h&&f--);u.length=f,r[o]=u}}),delete r[I_e],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var o=this._componentsMap.get(r);if(o){var u=o[n||0];if(u)return u;if(n==null){for(var f=0;f<o.length;f++)if(o[f])return o[f]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var o=r.index,u=r.id,f=r.name,h=this._componentsMap.get(n);if(!h||!h.length)return[];var A;return o!=null?(A=[],jt(ff(o),function(p){h[p]&&A.push(h[p])})):u!=null?A=L_e("id",u,h):f!=null?A=L_e("name",f,h):A=Td(h,function(p){return!!p}),M_e(A,r)},e.prototype.findComponents=function(r){var n=r.query,o=r.mainType,u=h(n),f=u?this.queryComponents(u):Td(this._componentsMap.get(o),function(p){return!!p});return A(M_e(f,r));function h(p){var g=o+"Index",y=o+"Id",_=o+"Name";return p&&(p[g]!=null||p[y]!=null||p[_]!=null)?{mainType:o,index:p[g],id:p[y],name:p[_]}:null}function A(p){return r.filter?Td(p,r.filter):p}},e.prototype.eachComponent=function(r,n,o){var u=this._componentsMap;if(ha(r)){var f=n,h=r;u.each(function(y,_){for(var b=0;y&&b<y.length;b++){var C=y[b];C&&h.call(f,_,C,C.componentIndex)}})}else for(var A=ri(r)?u.get(r):wi(r)?this.findComponents(r):null,p=0;A&&p<A.length;p++){var g=A[p];g&&n.call(o,g,g.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=tp(r,null);return Td(this._componentsMap.get("series"),function(o){return!!o&&n!=null&&o.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return Td(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return Td(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){LT(this),jt(this._seriesIndices,function(o){var u=this._componentsMap.get("series")[o];r.call(n,u,o)},this)},e.prototype.eachRawSeries=function(r,n){jt(this._componentsMap.get("series"),function(o){o&&r.call(n,o,o.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,o){LT(this),jt(this._seriesIndices,function(u){var f=this._componentsMap.get("series")[u];f.subType===r&&n.call(o,f,u)},this)},e.prototype.eachRawSeriesByType=function(r,n,o){return jt(this.getSeriesByType(r),n,o)},e.prototype.isSeriesFiltered=function(r){return LT(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){LT(this);var o=[];jt(this._seriesIndices,function(u){var f=this._componentsMap.get("series")[u];r.call(n,f,u)&&o.push(u)},this),this._seriesIndices=o,this._seriesIndicesMap=fa(o)},e.prototype.restoreData=function(r){KD(this);var n=this._componentsMap,o=[];n.each(function(u,f){To.hasClass(f)&&o.push(f)}),To.topologicalTravel(o,To.getAllClassMainTypes(),function(u){jt(n.get(u),function(f){f&&(u!=="series"||!G5t(f,r))&&f.restoreData()})})},e.internalField=function(){KD=function(r){var n=r._seriesIndices=[];jt(r._componentsMap.get("series"),function(o){o&&n.push(o.componentIndex)}),r._seriesIndicesMap=fa(n)},LT=function(r){},B_e=function(r,n){r.option={},r.option[I_e]=z5t,r._componentsMap=fa({series:[]}),r._componentsCount=fa();var o=n.aria;wi(o)&&o.enabled==null&&(o.enabled=!0),j5t(n,r._theme.option),Bs(n,R5t,!1),r._mergeOption(n,null)}}(),e}(zs);function G5t(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,o=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||o!=null&&t.name!==o}}function j5t(t,e){var r=t.color&&!t.colorLayer;jt(e,function(n,o){o==="colorLayer"&&r||To.hasClass(o)||(typeof n=="object"?t[o]=t[o]?Bs(t[o],n,!1):Ba(n):t[o]==null&&(t[o]=n))})}function L_e(t,e,r){if(Nn(e)){var n=fa();return jt(e,function(u){if(u!=null){var f=tp(u,null);f!=null&&n.set(u,!0)}}),Td(r,function(u){return u&&n.get(u[t])})}else{var o=tp(e,null);return Td(r,function(u){return u&&o!=null&&u[t]===o})}}function M_e(t,e){return e.hasOwnProperty("subType")?Td(t,function(r){return r&&r.subType===e.subType}):t}function D_e(t){var e=fa();return t&&jt(ff(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Mg(zZ,VZ);var q5t=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],pke=function(){function t(e){jt(q5t,function(r){this[r]=qo(e[r],e)},this)}return t}(),n3={},GZ=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,r){var n=[];jt(n3,function(o,u){var f=o.create(e,r);n=n.concat(f||[])}),this._coordinateSystems=n},t.prototype.update=function(e,r){jt(this._coordinateSystems,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,r){n3[e]=r},t.get=function(e){return n3[e]},t}(),W5t=/^(min|max)?(.+)$/,$5t=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(jt(ff(e.series),function(f){f&&f.data&&Jf(f.data)&&UP(f.data)}),jt(ff(e.dataset),function(f){f&&f.source&&Jf(f.source)&&UP(f.source)})),e=Ba(e);var o=this._optionBackup,u=K5t(e,r,!o);this._newBaseOption=u.baseOption,o?(u.timelineOptions.length&&(o.timelineOptions=u.timelineOptions),u.mediaList.length&&(o.mediaList=u.mediaList),u.mediaDefault&&(o.mediaDefault=u.mediaDefault)):this._optionBackup=u},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Ba(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var o=e.getComponent("timeline");o&&(r=Ba(n[o.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),o=this._mediaList,u=this._mediaDefault,f=[],h=[];if(!o.length&&!u)return h;for(var A=0,p=o.length;A<p;A++)Y5t(o[A].query,r,n)&&f.push(A);return!f.length&&u&&(f=[-1]),f.length&&!Z5t(f,this._currentMediaIndices)&&(h=ra(f,function(g){return Ba(g===-1?u.option:o[g].option)})),this._currentMediaIndices=f,h},t}();function K5t(t,e,r){var n=[],o,u,f=t.baseOption,h=t.timeline,A=t.options,p=t.media,g=!!t.media,y=!!(A||h||f&&f.timeline);f?(u=f,u.timeline||(u.timeline=h)):((y||g)&&(t.options=t.media=null),u=t),g&&Nn(p)&&jt(p,function(b){b&&b.option&&(b.query?n.push(b):o||(o=b))}),_(u),jt(A,function(b){return _(b)}),jt(n,function(b){return _(b.option)});function _(b){jt(e,function(C){C(b,r)})}return{baseOption:u,timelineOptions:A||[],mediaDefault:o,mediaList:n}}function Y5t(t,e,r){var n={width:e,height:r,aspectratio:e/r},o=!0;return jt(t,function(u,f){var h=f.match(W5t);if(!(!h||!h[1]||!h[2])){var A=h[1],p=h[2].toLowerCase();X5t(n[p],u,A)||(o=!1)}}),o}function X5t(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function Z5t(t,e){return t.join(",")===e.join(",")}var SA=jt,O2=wi,R_e=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function i3(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=R_e.length;r<n;r++){var o=R_e[r],u=e.normal,f=e.emphasis;u&&u[o]&&(t[o]=t[o]||{},t[o].normal?Bs(t[o].normal,u[o]):t[o].normal=u[o],u[o]=null),f&&f[o]&&(t[o]=t[o]||{},t[o].emphasis?Bs(t[o].emphasis,f[o]):t[o].emphasis=f[o],f[o]=null)}}function Lc(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,o=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,ls(t[e],n)):t[e]=n),o&&(t.emphasis=t.emphasis||{},t.emphasis[e]=o,o.focus&&(t.emphasis.focus=o.focus),o.blurScope&&(t.emphasis.blurScope=o.blurScope))}}function bE(t){Lc(t,"itemStyle"),Lc(t,"lineStyle"),Lc(t,"areaStyle"),Lc(t,"label"),Lc(t,"labelLine"),Lc(t,"upperLabel"),Lc(t,"edgeLabel")}function dl(t,e){var r=O2(t)&&t[e],n=O2(r)&&r.textStyle;if(n)for(var o=0,u=Nbe.length;o<u;o++){var f=Nbe[o];n.hasOwnProperty(f)&&(r[f]=n[f])}}function yd(t){t&&(bE(t),dl(t,"label"),t.emphasis&&dl(t.emphasis,"label"))}function J5t(t){if(O2(t)){i3(t),bE(t),dl(t,"label"),dl(t,"upperLabel"),dl(t,"edgeLabel"),t.emphasis&&(dl(t.emphasis,"label"),dl(t.emphasis,"upperLabel"),dl(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(i3(e),yd(e));var r=t.markLine;r&&(i3(r),yd(r));var n=t.markArea;n&&yd(n);var o=t.data;if(t.type==="graph"){o=o||t.nodes;var u=t.links||t.edges;if(u&&!Jf(u))for(var f=0;f<u.length;f++)yd(u[f]);jt(t.categories,function(p){bE(p)})}if(o&&!Jf(o))for(var f=0;f<o.length;f++)yd(o[f]);if(e=t.markPoint,e&&e.data)for(var h=e.data,f=0;f<h.length;f++)yd(h[f]);if(r=t.markLine,r&&r.data)for(var A=r.data,f=0;f<A.length;f++)Nn(A[f])?(yd(A[f][0]),yd(A[f][1])):yd(A[f]);t.type==="gauge"?(dl(t,"axisLabel"),dl(t,"title"),dl(t,"detail")):t.type==="treemap"?(Lc(t.breadcrumb,"itemStyle"),jt(t.levels,function(p){bE(p)})):t.type==="tree"&&bE(t.leaves)}}function tg(t){return Nn(t)?t:t?[t]:[]}function P_e(t){return(Nn(t)?t[0]:t)||{}}function eRt(t,e){SA(tg(t.series),function(n){O2(n)&&J5t(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),SA(r,function(n){SA(tg(t[n]),function(o){o&&(dl(o,"axisLabel"),dl(o.axisPointer,"label"))})}),SA(tg(t.parallel),function(n){var o=n&&n.parallelAxisDefault;dl(o,"axisLabel"),dl(o&&o.axisPointer,"label")}),SA(tg(t.calendar),function(n){Lc(n,"itemStyle"),dl(n,"dayLabel"),dl(n,"monthLabel"),dl(n,"yearLabel")}),SA(tg(t.radar),function(n){dl(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),SA(tg(t.geo),function(n){O2(n)&&(yd(n),SA(tg(n.regions),function(o){yd(o)}))}),SA(tg(t.timeline),function(n){yd(n),Lc(n,"label"),Lc(n,"itemStyle"),Lc(n,"controlStyle",!0);var o=n.data;Nn(o)&&jt(o,function(u){wi(u)&&(Lc(u,"label"),Lc(u,"itemStyle"))})}),SA(tg(t.toolbox),function(n){Lc(n,"iconStyle"),SA(n.feature,function(o){Lc(o,"iconStyle")})}),dl(P_e(t.axisPointer),"label"),dl(P_e(t.tooltip).axisPointer,"label")}function tRt(t,e){for(var r=e.split(","),n=t,o=0;o<r.length&&(n=n&&n[r[o]],n!=null);o++);return n}function rRt(t,e,r,n){for(var o=e.split(","),u=t,f,h=0;h<o.length-1;h++)f=o[h],u[f]==null&&(u[f]={}),u=u[f];u[o[h]]==null&&(u[o[h]]=r)}function O_e(t){t&&jt(nRt,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var nRt=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],iRt=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],a3=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function MT(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<a3.length;r++){var n=a3[r][1],o=a3[r][0];e[n]!=null&&(e[o]=e[n])}}function k_e(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function F_e(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function aRt(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function gke(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&gke(t[r].children,e)}function mke(t,e){eRt(t,e),t.series=ff(t.series),jt(t.series,function(r){if(wi(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),k_e(r.label);var o=r.data;if(o&&!Jf(o))for(var u=0;u<o.length;u++)k_e(o[u]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var f=tRt(r,"pointer.color");f!=null&&rRt(r,"itemStyle.color",f)}else if(n==="bar"){MT(r),MT(r.backgroundStyle),MT(r.emphasis);var o=r.data;if(o&&!Jf(o))for(var u=0;u<o.length;u++)typeof o[u]=="object"&&(MT(o[u]),MT(o[u]&&o[u].emphasis))}else if(n==="sunburst"){var h=r.highlightPolicy;h&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=h)),F_e(r),gke(r.data,F_e)}else n==="graph"||n==="sankey"?aRt(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ls(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),O_e(r)}}),t.dataRange&&(t.visualMap=t.dataRange),jt(iRt,function(r){var n=t[r];n&&(Nn(n)||(n=[n]),jt(n,function(o){O_e(o)}))})}function oRt(t){var e=fa();t.eachSeries(function(r){var n=r.get("stack");if(n){var o=e.get(n)||e.set(n,[]),u=r.getData(),f={stackResultDimension:u.getCalculationInfo("stackResultDimension"),stackedOverDimension:u.getCalculationInfo("stackedOverDimension"),stackedDimension:u.getCalculationInfo("stackedDimension"),stackedByDimension:u.getCalculationInfo("stackedByDimension"),isStackedByIndex:u.getCalculationInfo("isStackedByIndex"),data:u,seriesModel:r};if(!f.stackedDimension||!(f.isStackedByIndex||f.stackedByDimension))return;o.length&&u.setCalculationInfo("stackedOnSeries",o[o.length-1].seriesModel),o.push(f)}}),e.each(sRt)}function sRt(t){jt(t,function(e,r){var n=[],o=[NaN,NaN],u=[e.stackResultDimension,e.stackedOverDimension],f=e.data,h=e.isStackedByIndex,A=e.seriesModel.get("stackStrategy")||"samesign";f.modify(u,function(p,g,y){var _=f.get(e.stackedDimension,y);if(isNaN(_))return o;var b,C;h?C=f.getRawIndex(y):b=f.get(e.stackedByDimension,y);for(var T=NaN,B=r-1;B>=0;B--){var L=t[B];if(h||(C=L.data.rawIndexOf(L.stackedByDimension,b)),C>=0){var P=L.data.getByRawIndex(L.stackResultDimension,C);if(A==="all"||A==="positive"&&P>0||A==="negative"&&P<0||A==="samesign"&&_>=0&&P>0||A==="samesign"&&_<=0&&P<0){_=ELt(_,P),T=P;break}}}return n[0]=_,n[1]=T,n})})}var Gk=function(){function t(e){this.data=e.data||(e.sourceFormat===fp?{}:[]),this.sourceFormat=e.sourceFormat||hke,this.seriesLayoutBy=e.seriesLayoutBy||rp,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var o=r[n];o.type==null&&Ake(this,n)===Hu.Must&&(o.type="ordinal")}}return t}();function jZ(t){return t instanceof Gk}function HK(t,e,r){r=r||wke(t);var n=e.seriesLayoutBy,o=uRt(t,r,n,e.sourceHeader,e.dimensions),u=new Gk({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:Ba(e)});return u}function yke(t){return new Gk({data:t,sourceFormat:Jf(t)?py:Wd})}function lRt(t){return new Gk({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Ba(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function wke(t){var e=hke;if(Jf(t))e=py;else if(Nn(t)){t.length===0&&(e=eh);for(var r=0,n=t.length;r<n;r++){var o=t[r];if(o!=null){if(Nn(o)||Jf(o)){e=eh;break}else if(wi(o)){e=ZA;break}}}}else if(wi(t)){for(var u in t)if(ow(t,u)&&Zf(t[u])){e=fp;break}}return e}function uRt(t,e,r,n,o){var u,f;if(!t)return{dimensionsDefine:N_e(o),startIndex:f,dimensionsDetectedCount:u};if(e===eh){var h=t;n==="auto"||n==null?U_e(function(p){p!=null&&p!=="-"&&(ri(p)?f==null&&(f=1):f=0)},r,h,10):f=ws(n)?n:n?1:0,!o&&f===1&&(o=[],U_e(function(p,g){o[g]=p!=null?p+"":""},r,h,1/0)),u=o?o.length:r===hx?h.length:h[0]?h[0].length:null}else if(e===ZA)o||(o=cRt(t));else if(e===fp)o||(o=[],jt(t,function(p,g){o.push(g)}));else if(e===Wd){var A=_B(t[0]);u=Nn(A)&&A.length||1}return{startIndex:f,dimensionsDefine:N_e(o),dimensionsDetectedCount:u}}function cRt(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return gl(r)}function N_e(t){if(t){var e=fa();return ra(t,function(r,n){r=wi(r)?r:{name:r};var o={name:r.name,displayName:r.displayName,type:r.type};if(o.name==null)return o;o.name+="",o.displayName==null&&(o.displayName=o.name);var u=e.get(o.name);return u?o.name+="-"+u.count++:e.set(o.name,{count:1}),o})}}function U_e(t,e,r,n){if(e===hx)for(var o=0;o<r.length&&o<n;o++)t(r[o]?r[o][0]:null,o);else for(var u=r[0]||[],o=0;o<u.length&&o<n;o++)t(u[o],o)}function bke(t){var e=t.sourceFormat;return e===ZA||e===fp}var s1,l1,u1,H_e,Q_e,_ke=function(){function t(e,r){var n=jZ(e)?e:yke(e);this._source=n;var o=this._data=n.data;n.sourceFormat===py&&(this._offset=0,this._dimSize=r,this._data=o),Q_e(this,o,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;Q_e=function(f,h,A){var p=A.sourceFormat,g=A.seriesLayoutBy,y=A.startIndex,_=A.dimensionsDefine,b=H_e[qZ(p,g)];if(Wr(f,b),p===py)f.getItem=r,f.count=o,f.fillStorage=n;else{var C=Ske(p,g);f.getItem=qo(C,null,h,y,_);var T=xke(p,g);f.count=qo(T,null,h,y,_)}};var r=function(f,h){f=f-this._offset,h=h||[];for(var A=this._data,p=this._dimSize,g=p*f,y=0;y<p;y++)h[y]=A[g+y];return h},n=function(f,h,A,p){for(var g=this._data,y=this._dimSize,_=0;_<y;_++){for(var b=p[_],C=b[0]==null?1/0:b[0],T=b[1]==null?-1/0:b[1],B=h-f,L=A[_],P=0;P<B;P++){var I=g[P*y+_];L[f+P]=I,I<C&&(C=I),I>T&&(T=I)}b[0]=C,b[1]=T}},o=function(){return this._data?this._data.length/this._dimSize:0};H_e=(e={},e[eh+"_"+rp]={pure:!0,appendData:u},e[eh+"_"+hx]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[ZA]={pure:!0,appendData:u},e[fp]={pure:!0,appendData:function(f){var h=this._data;jt(f,function(A,p){for(var g=h[p]||(h[p]=[]),y=0;y<(A||[]).length;y++)g.push(A[y])})}},e[Wd]={appendData:u},e[py]={persistent:!1,pure:!0,appendData:function(f){this._data=f},clean:function(){this._offset+=this.count(),this._data=null}},e);function u(f){for(var h=0;h<f.length;h++)this._data.push(f[h])}}(),t}(),V_e=function(t,e,r,n){return t[n]},fRt=(s1={},s1[eh+"_"+rp]=function(t,e,r,n){return t[n+e]},s1[eh+"_"+hx]=function(t,e,r,n,o){n+=e;for(var u=o||[],f=t,h=0;h<f.length;h++){var A=f[h];u[h]=A?A[n]:null}return u},s1[ZA]=V_e,s1[fp]=function(t,e,r,n,o){for(var u=o||[],f=0;f<r.length;f++){var h=r[f].name,A=t[h];u[f]=A?A[n]:null}return u},s1[Wd]=V_e,s1);function Ske(t,e){var r=fRt[qZ(t,e)];return r}var z_e=function(t,e,r){return t.length},hRt=(l1={},l1[eh+"_"+rp]=function(t,e,r){return Math.max(0,t.length-e)},l1[eh+"_"+hx]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},l1[ZA]=z_e,l1[fp]=function(t,e,r){var n=r[0].name,o=t[n];return o?o.length:0},l1[Wd]=z_e,l1);function xke(t,e){var r=hRt[qZ(t,e)];return r}var o3=function(t,e,r){return t[e]},dRt=(u1={},u1[eh]=o3,u1[ZA]=function(t,e,r){return t[r]},u1[fp]=o3,u1[Wd]=function(t,e,r){var n=_B(t);return n instanceof Array?n[e]:n},u1[py]=o3,u1);function Cke(t){var e=dRt[t];return e}function qZ(t,e){return t===eh?t+"_"+e:t}function US(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var o=t.getStore(),u=o.getSource().sourceFormat;if(r!=null){var f=t.getDimensionIndex(r),h=o.getDimensionProperty(f);return Cke(u)(n,f,h)}else{var A=n;return u===Wd&&(A=_B(n)),A}}}}var ARt=/\{@(.+?)\}/g,vRt=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),o=this.getRawValue(e,r),u=n.getRawIndex(e),f=n.getName(e),h=n.getRawDataItem(e),A=n.getItemVisual(e,"style"),p=A&&A[n.getItemVisual(e,"drawType")||"fill"],g=A&&A.stroke,y=this.mainType,_=y==="series",b=n.userOutput&&n.userOutput.get();return{componentType:y,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:_?this.subType:null,seriesIndex:this.seriesIndex,seriesId:_?this.id:null,seriesName:_?this.name:null,name:f,dataIndex:u,data:h,dataType:r,value:o,color:p,borderColor:g,dimensionNames:b?b.fullDimensions:null,encode:b?b.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,o,u,f){r=r||"normal";var h=this.getData(n),A=this.getDataParams(e,n);if(f&&(A.value=f.interpolatedValue),o!=null&&Nn(A.value)&&(A.value=A.value[o]),!u){var p=h.getItemModel(e);u=p.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ha(u))return A.status=r,A.dimensionIndex=o,u(A);if(ri(u)){var g=uke(u,A);return g.replace(ARt,function(y,_){var b=_.length,C=_;C.charAt(0)==="["&&C.charAt(b-1)==="]"&&(C=+C.slice(1,b-1));var T=US(h,e,C);if(f&&Nn(f.interpolatedValue)){var B=h.getDimensionIndex(C);B>=0&&(T=f.interpolatedValue[B])}return T!=null?T+"":""})}},t.prototype.getRawValue=function(e,r){return US(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function G_e(t){var e,r;return wi(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function JE(t){return new pRt(t)}var pRt=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var o=this.context;o.data=o.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var u;this._plan&&!n&&(u=this._plan(this.context));var f=g(this._modBy),h=this._modDataCount||0,A=g(e&&e.modBy),p=e&&e.modDataCount||0;(f!==A||h!==p)&&(u="reset");function g(P){return!(P>=1)&&(P=1),P}var y;(this._dirty||u==="reset")&&(this._dirty=!1,y=this._doReset(n)),this._modBy=A,this._modDataCount=p;var _=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var b=this._dueIndex,C=Math.min(_!=null?this._dueIndex+_:1/0,this._dueEnd);if(!n&&(y||b<C)){var T=this._progress;if(Nn(T))for(var B=0;B<T.length;B++)this._doProgress(T[B],b,C,A,p);else this._doProgress(T,b,C,A,p)}this._dueIndex=C;var L=this._settedOutputEnd!=null?this._settedOutputEnd:C;this._outputDueEnd=L}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,o,u){j_e.reset(r,n,o,u),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:j_e.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),Nn(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var o=this._downstream;return o&&o.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),j_e=function(){var t,e,r,n,o,u={reset:function(A,p,g,y){e=A,t=p,r=g,n=y,o=Math.ceil(n/r),u.next=r>1&&n>0?h:f}};return u;function f(){return e<t?e++:null}function h(){var A=e%o*r+Math.ceil(e/o),p=e>=t?null:A<n?A:e;return e++,p}}();function sR(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!ws(t)&&t!=null&&t!=="-"&&(t=+Lk(t)),t==null||t===""?NaN:Number(t))}fa({number:function(t){return parseFloat(t)},time:function(t){return+Lk(t)},trim:function(t){return ri(t)?Kv(t):t}});var gRt=function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=ws(e)?e:$P(e),o=ws(r)?r:$P(r),u=isNaN(n),f=isNaN(o);if(u&&(n=this._incomparable),f&&(o=this._incomparable),u&&f){var h=ri(e),A=ri(r);h&&(n=A?e:0),A&&(o=h?r:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},t}(),mRt=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return sR(e,r)},t}();function yRt(t,e){var r=new mRt,n=t.data,o=r.sourceFormat=t.sourceFormat,u=t.startIndex,f="";t.seriesLayoutBy!==rp&&Vf(f);var h=[],A={},p=t.dimensionsDefine;if(p)jt(p,function(T,B){var L=T.name,P={index:B,name:L,displayName:T.displayName};if(h.push(P),L!=null){var I="";ow(A,L)&&Vf(I),A[L]=P}});else for(var g=0;g<t.dimensionsDetectedCount;g++)h.push({index:g});var y=Ske(o,rp);e.__isBuiltIn&&(r.getRawDataItem=function(T){return y(n,u,h,T)},r.getRawData=qo(wRt,null,t)),r.cloneRawData=qo(bRt,null,t);var _=xke(o,rp);r.count=qo(_,null,n,u,h);var b=Cke(o);r.retrieveValue=function(T,B){var L=y(n,u,h,T);return C(L,B)};var C=r.retrieveValueFromItem=function(T,B){if(T!=null){var L=h[B];if(L)return b(T,B,L.name)}};return r.getDimensionInfo=qo(_Rt,null,h,A),r.cloneAllDimensionInfo=qo(SRt,null,h),r}function wRt(t){var e=t.sourceFormat;if(!WZ(e)){var r="";Vf(r)}return t.data}function bRt(t){var e=t.sourceFormat,r=t.data;if(!WZ(e)){var n="";Vf(n)}if(e===eh){for(var o=[],u=0,f=r.length;u<f;u++)o.push(r[u].slice());return o}else if(e===ZA){for(var o=[],u=0,f=r.length;u<f;u++)o.push(Wr({},r[u]));return o}}function _Rt(t,e,r){if(r!=null){if(ws(r)||!isNaN(r)&&!ow(e,r))return t[r];if(ow(e,r))return e[r]}}function SRt(t){return Ba(t)}var Tke=fa();function xRt(t){t=Ba(t);var e=t.type,r="";e||Vf(r);var n=e.split(":");n.length!==2&&Vf(r);var o=!1;n[0]==="echarts"&&(e=n[1],o=!0),t.__isBuiltIn=o,Tke.set(e,t)}function CRt(t,e,r){var n=ff(t),o=n.length,u="";o||Vf(u);for(var f=0,h=o;f<h;f++){var A=n[f];e=TRt(A,e),f!==h-1&&(e.length=Math.max(e.length,1))}return e}function TRt(t,e,r,n){var o="";e.length||Vf(o),wi(t)||Vf(o);var u=t.type,f=Tke.get(u);f||Vf(o);var h=ra(e,function(p){return yRt(p,f)}),A=ff(f.transform({upstream:h[0],upstreamList:h,config:Ba(t.config)}));return ra(A,function(p,g){var y="";wi(p)||Vf(y),p.data||Vf(y);var _=wke(p.data);WZ(_)||Vf(y);var b,C=e[0];if(C&&g===0&&!p.dimensions){var T=C.startIndex;T&&(p.data=C.data.slice(0,T).concat(p.data)),b={seriesLayoutBy:rp,sourceHeader:T,dimensions:C.metaRawOption.dimensions}}else b={seriesLayoutBy:rp,sourceHeader:0,dimensions:p.dimensions};return HK(p.data,b,null)})}function WZ(t){return t===eh||t===ZA}var jk="undefined",ERt=typeof Uint32Array===jk?Array:Uint32Array,BRt=typeof Uint16Array===jk?Array:Uint16Array,Eke=typeof Int32Array===jk?Array:Int32Array,q_e=typeof Float64Array===jk?Array:Float64Array,Bke={float:q_e,int:Eke,ordinal:Array,number:Array,time:q_e},s3;function T_(t){return t>65535?ERt:BRt}function E_(){return[1/0,-1/0]}function IRt(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function W_e(t,e,r,n,o){var u=Bke[r||"float"];if(o){var f=t[e],h=f&&f.length;if(h!==n){for(var A=new u(n),p=0;p<h;p++)A[p]=f[p];t[e]=A}}else t[e]=new u(n)}var QK=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=fa()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=e.getSource(),u=this.defaultDimValueGetter=s3[o.sourceFormat];this._dimValueGetter=n||u,this._rawExtent=[],bke(o),this._dimensions=ra(r,function(f){return{type:f.type,property:f.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,o=this._dimensions,u=n.get(e);if(u!=null){if(o[u].type===r)return u}else u=o.length;return o[u]={type:r},n.set(e,u),this._chunks[u]=new Bke[r||"float"](this._rawCount),this._rawExtent[u]=E_(),u},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],o=this._dimensions[e],u=this._rawExtent,f=o.ordinalOffset||0,h=n.length;f===0&&(u[e]=E_());for(var A=u[e],p=f;p<h;p++){var g=n[p]=r.parseAndCollect(n[p]);isNaN(g)||(A[0]=Math.min(g,A[0]),A[1]=Math.max(g,A[1]))}o.ordinalMeta=r,o.ordinalOffset=h,o.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var o=r.count();return r.persistent||(o+=n),n<o&&this._initDataFromProvider(n,o,!0),[n,o]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,o=this._dimensions,u=o.length,f=this._rawExtent,h=this.count(),A=h+Math.max(e.length,r||0),p=0;p<u;p++){var g=o[p];W_e(n,p,g.type,A,!0)}for(var y=[],_=h;_<A;_++)for(var b=_-h,C=0;C<u;C++){var g=o[C],T=s3.arrayRows.call(this,e[b]||y,g.property,b,C);n[C][_]=T;var B=f[C];T<B[0]&&(B[0]=T),T>B[1]&&(B[1]=T)}return this._rawCount=this._count=A,{start:h,end:A}},t.prototype._initDataFromProvider=function(e,r,n){for(var o=this._provider,u=this._chunks,f=this._dimensions,h=f.length,A=this._rawExtent,p=ra(f,function(P){return P.property}),g=0;g<h;g++){var y=f[g];A[g]||(A[g]=E_()),W_e(u,g,y.type,r,n)}if(o.fillStorage)o.fillStorage(e,r,u,A);else for(var _=[],b=e;b<r;b++){_=o.getItem(b,_);for(var C=0;C<h;C++){var T=u[C],B=this._dimValueGetter(_,p[C],b,C);T[b]=B;var L=A[C];B<L[0]&&(L[0]=B),B>L[1]&&(L[1]=B)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],o=[];if(r==null){r=e,e=[];for(var u=0;u<this._dimensions.length;u++)o.push(u)}else o=e;for(var u=0,f=o.length;u<f;u++)n.push(this.get(o[u],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var o=0,u=this.count();o<u;o++){var f=this.get(e,o);isNaN(f)||(n+=f)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(u){isNaN(u)||r.push(u)});var n=r.sort(function(u,f){return u-f}),o=this.count();return o===0?0:o%2===1?n[(o-1)/2]:(n[o/2]+n[o/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var o=0,u=this._count-1;o<=u;){var f=(o+u)/2|0;if(r[f]<e)o=f+1;else if(r[f]>e)u=f-1;else return f}return-1},t.prototype.indicesOfNearest=function(e,r,n){var o=this._chunks,u=o[e],f=[];if(!u)return f;n==null&&(n=1/0);for(var h=1/0,A=-1,p=0,g=0,y=this.count();g<y;g++){var _=this.getRawIndex(g),b=r-u[_],C=Math.abs(b);C<=n&&((C<h||C===h&&b>=0&&A<0)&&(h=C,A=b,p=0),b===A&&(f[p++]=g))}return f.length=p,f},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,o=this._count;if(n===Array){e=new n(o);for(var u=0;u<o;u++)e[u]=r[u]}else e=new n(r.buffer,0,o)}else{var n=T_(this._rawCount);e=new n(this.count());for(var u=0;u<e.length;u++)e[u]=u}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),o=n.count(),u=T_(n._rawCount),f=new u(o),h=[],A=e.length,p=0,g=e[0],y=n._chunks,_=0;_<o;_++){var b=void 0,C=n.getRawIndex(_);if(A===0)b=r(_);else if(A===1){var T=y[g][C];b=r(T,_)}else{for(var B=0;B<A;B++)h[B]=y[e[B]][C];h[B]=_,b=r.apply(null,h)}b&&(f[p++]=C)}return p<o&&(n._indices=f),n._count=p,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var o=gl(e),u=o.length;if(!u)return this;var f=r.count(),h=T_(r._rawCount),A=new h(f),p=0,g=o[0],y=e[g][0],_=e[g][1],b=r._chunks,C=!1;if(!r._indices){var T=0;if(u===1){for(var B=b[o[0]],L=0;L<n;L++){var P=B[L];(P>=y&&P<=_||isNaN(P))&&(A[p++]=T),T++}C=!0}else if(u===2){for(var B=b[o[0]],I=b[o[1]],O=e[o[1]][0],U=e[o[1]][1],L=0;L<n;L++){var P=B[L],N=I[L];(P>=y&&P<=_||isNaN(P))&&(N>=O&&N<=U||isNaN(N))&&(A[p++]=T),T++}C=!0}}if(!C)if(u===1)for(var L=0;L<f;L++){var H=r.getRawIndex(L),P=b[o[0]][H];(P>=y&&P<=_||isNaN(P))&&(A[p++]=H)}else for(var L=0;L<f;L++){for(var z=!0,H=r.getRawIndex(L),G=0;G<u;G++){var j=o[G],P=b[j][H];(P<e[j][0]||P>e[j][1])&&(z=!1)}z&&(A[p++]=r.getRawIndex(L))}return p<f&&(r._indices=A),r._count=p,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var o=e._chunks,u=[],f=r.length,h=e.count(),A=[],p=e._rawExtent,g=0;g<r.length;g++)p[r[g]]=E_();for(var y=0;y<h;y++){for(var _=e.getRawIndex(y),b=0;b<f;b++)A[b]=o[r[b]][_];A[f]=y;var C=n&&n.apply(null,A);if(C!=null){typeof C!="object"&&(u[0]=C,C=u);for(var g=0;g<C.length;g++){var T=r[g],B=C[g],L=p[T],P=o[T];P&&(P[_]=B),B<L[0]&&(L[0]=B),B>L[1]&&(L[1]=B)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),o=n._chunks,u=o[e],f=this.count(),h=0,A=Math.floor(1/r),p=this.getRawIndex(0),g,y,_,b=new(T_(this._rawCount))(Math.min((Math.ceil(f/A)+2)*2,f));b[h++]=p;for(var C=1;C<f-1;C+=A){for(var T=Math.min(C+A,f-1),B=Math.min(C+A*2,f),L=(B+T)/2,P=0,I=T;I<B;I++){var O=this.getRawIndex(I),U=u[O];isNaN(U)||(P+=U)}P/=B-T;var N=C,H=Math.min(C+A,f),z=C-1,G=u[p];g=-1,_=N;for(var j=-1,q=0,I=N;I<H;I++){var O=this.getRawIndex(I),U=u[O];if(isNaN(U)){q++,j<0&&(j=O);continue}y=Math.abs((z-L)*(U-G)-(z-I)*(P-G)),y>g&&(g=y,_=O)}q>0&&q<H-N&&(b[h++]=Math.min(j,_),_=Math.max(j,_)),b[h++]=_,p=_}return b[h++]=this.getRawIndex(f-1),n._count=h,n._indices=b,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),o=n._chunks,u=Math.floor(1/r),f=o[e],h=this.count(),A=new(T_(this._rawCount))(Math.ceil(h/u)*2),p=0,g=0;g<h;g+=u){var y=g,_=f[this.getRawIndex(y)],b=g,C=f[this.getRawIndex(b)],T=u;g+u>h&&(T=h-g);for(var B=0;B<T;B++){var L=this.getRawIndex(g+B),P=f[L];P<_&&(_=P,y=g+B),P>C&&(C=P,b=g+B)}var I=this.getRawIndex(y),O=this.getRawIndex(b);y<b?(A[p++]=I,A[p++]=O):(A[p++]=O,A[p++]=I)}return n._count=p,n._indices=A,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,o){for(var u=this.clone([e],!0),f=u._chunks,h=[],A=Math.floor(1/r),p=f[e],g=this.count(),y=u._rawExtent[e]=E_(),_=new(T_(this._rawCount))(Math.ceil(g/A)),b=0,C=0;C<g;C+=A){A>g-C&&(A=g-C,h.length=A);for(var T=0;T<A;T++){var B=this.getRawIndex(C+T);h[T]=p[B]}var L=n(h),P=this.getRawIndex(Math.min(C+o(h,L)||0,g-1));p[P]=L,L<y[0]&&(y[0]=L),L>y[1]&&(y[1]=L),_[b++]=P}return u._count=b,u._indices=_,u._updateGetRawIdx(),u},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,o=this._chunks,u=0,f=this.count();u<f;u++){var h=this.getRawIndex(u);switch(n){case 0:r(u);break;case 1:r(o[e[0]][h],u);break;case 2:r(o[e[0]][h],o[e[1]][h],u);break;default:for(var A=0,p=[];A<n;A++)p[A]=o[e[A]][h];p[A]=u,r.apply(null,p)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=E_();if(!r)return n;var o=this.count(),u=!this._indices,f;if(u)return this._rawExtent[e].slice();if(f=this._extent[e],f)return f.slice();f=n;for(var h=f[0],A=f[1],p=0;p<o;p++){var g=this.getRawIndex(p),y=r[g];y<h&&(h=y),y>A&&(A=y)}return f=[h,A],this._extent[e]=f,f},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],o=this._chunks,u=0;u<o.length;u++)n.push(o[u][r]);return n},t.prototype.clone=function(e,r){var n=new t,o=this._chunks,u=e&&Sy(e,function(h,A){return h[A]=!0,h},{});if(u)for(var f=0;f<o.length;f++)n._chunks[f]=u[f]?IRt(o[f]):o[f];else n._chunks=o;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Ba(this._extent),e._rawExtent=Ba(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var o=0;o<n;o++)r[o]=this._indices[o]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,o,u){return sR(r[u],this._dimensions[u])}s3={arrayRows:e,objectRows:function(r,n,o,u){return sR(r[n],this._dimensions[u])},keyedColumns:e,original:function(r,n,o,u){var f=r&&(r.value==null?r:r.value);return sR(f instanceof Array?f[u]:f,this._dimensions[u])},typedArray:function(r,n,o,u){return r[u]}}}(),t}(),Ike=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,o,u;if(YD(e)){var f=e,h=void 0,A=void 0,p=void 0;if(n){var g=r[0];g.prepareSource(),p=g.getSource(),h=p.data,A=p.sourceFormat,u=[g._getVersionSign()]}else h=f.get("data",!0),A=Jf(h)?py:Wd,u=[];var y=this._getSourceMetaRawOption()||{},_=p&&p.metaRawOption||{},b=Ji(y.seriesLayoutBy,_.seriesLayoutBy)||null,C=Ji(y.sourceHeader,_.sourceHeader),T=Ji(y.dimensions,_.dimensions),B=b!==_.seriesLayoutBy||!!C!=!!_.sourceHeader||T;o=B?[HK(h,{seriesLayoutBy:b,sourceHeader:C,dimensions:T},A)]:[]}else{var L=e;if(n){var P=this._applyTransform(r);o=P.sourceList,u=P.upstreamSignList}else{var I=L.get("source",!0);o=[HK(I,this._getSourceMetaRawOption(),null)],u=[]}}this._setLocalSource(o,u)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),o=r.get("fromTransformResult",!0);if(o!=null){var u="";e.length!==1&&K_e(u)}var f,h=[],A=[];return jt(e,function(p){p.prepareSource();var g=p.getSource(o||0),y="";o!=null&&!g&&K_e(y),h.push(g),A.push(p._getVersionSign())}),n?f=CRt(n,h,{datasetIndex:r.componentIndex}):o!=null&&(f=[lRt(h[0])]),{sourceList:f,upstreamSignList:A}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var o=0,u=this._storeList,f=u[o];f||(f=u[o]={});var h=f[n];if(!h){var A=this._getUpstreamSourceManagers()[0];YD(this._sourceHost)&&A?h=A._innerGetDataStore(e,r,n):(h=new QK,h.initData(new _ke(r,e.length),e)),f[n]=h}return h},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(YD(e)){var r=QZ(e);return r?[r.getSourceManager()]:[]}else return ra(F5t(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,o;if(YD(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),o=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var u=e;r=u.get("seriesLayoutBy",!0),n=u.get("sourceHeader",!0),o=u.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:o}},t}();function $_e(t){var e=t.option.transform;e&&UP(t.option.transform)}function YD(t){return t.mainType==="series"}function K_e(t){throw new Error(t)}var LRt="line-height:1";function Lke(t){var e=t.lineHeight;return e==null?LRt:"line-height:"+Hf(e+"")+"px"}function Mke(t,e){var r=t.color||"#6e7079",n=t.fontSize||12,o=t.fontWeight||"400",u=t.color||"#464646",f=t.fontSize||14,h=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Hf(n+"")+"px;color:"+Hf(r)+";font-weight:"+Hf(o+""),valueStyle:"font-size:"+Hf(f+"")+"px;color:"+Hf(u)+";font-weight:"+Hf(h+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:o},valueStyle:{fontSize:f,fill:u,fontWeight:h}}}var MRt=[0,10,20,30],DRt=["",`
`,`
`,`
`];function k2(t,e){return e.type=t,e}function VK(t){return t.type==="section"}function Dke(t){return VK(t)?RRt:PRt}function Rke(t){if(VK(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return jt(t.blocks,function(o){var u=Rke(o);u>=e&&(e=u+ +(n&&(!u||VK(o)&&!o.noHeader)))}),e}return 0}function RRt(t,e,r,n){var o=e.noHeader,u=ORt(Rke(e)),f=[],h=e.blocks||[];Sg(!h||Nn(h)),h=h||[];var A=t.orderMode;if(e.sortBlocks&&A){h=h.slice();var p={valueAsc:"asc",valueDesc:"desc"};if(ow(p,A)){var g=new gRt(p[A],null);h.sort(function(T,B){return g.evaluate(T.sortParam,B.sortParam)})}else A==="seriesDesc"&&h.reverse()}jt(h,function(T,B){var L=e.valueFormatter,P=Dke(T)(L?Wr(Wr({},t),{valueFormatter:L}):t,T,B>0?u.html:0,n);P!=null&&f.push(P)});var y=t.renderMode==="richText"?f.join(u.richText):zK(n,f.join(""),o?r:u.html);if(o)return y;var _=UK(e.header,"ordinal",t.useUTC),b=Mke(n,t.renderMode).nameStyle,C=Lke(n);return t.renderMode==="richText"?Pke(t,_,b)+u.richText+y:zK(n,'<div style="'+b+";"+C+';">'+Hf(_)+"</div>"+y,r)}function PRt(t,e,r,n){var o=t.renderMode,u=e.noName,f=e.noValue,h=!e.markerType,A=e.name,p=t.useUTC,g=e.valueFormatter||t.valueFormatter||function(O){return O=Nn(O)?O:[O],ra(O,function(U,N){return UK(U,Nn(b)?b[N]:b,p)})};if(!(u&&f)){var y=h?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",o),_=u?"":UK(A,"ordinal",p),b=e.valueType,C=f?[]:g(e.value,e.dataIndex),T=!h||!u,B=!h&&u,L=Mke(n,o),P=L.nameStyle,I=L.valueStyle;return o==="richText"?(h?"":y)+(u?"":Pke(t,_,P))+(f?"":NRt(t,C,T,B,I)):zK(n,(h?"":y)+(u?"":kRt(_,!h,P))+(f?"":FRt(C,T,B,I)),r)}}function Y_e(t,e,r,n,o,u){if(t){var f=Dke(t),h={useUTC:o,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return f(h,t,0,u)}}function ORt(t){return{html:MRt[t],richText:DRt[t]}}function zK(t,e,r){var n='<div style="clear:both"></div>',o="margin: "+r+"px 0 0",u=Lke(t);return'<div style="'+o+";"+u+';">'+e+n+"</div>"}function kRt(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Hf(t)+"</span>"}function FRt(t,e,r,n){var o=r?"10px":"20px",u=e?"float:right;margin-left:"+o:"";return t=Nn(t)?t:[t],'<span style="'+u+";"+n+'">'+ra(t,function(f){return Hf(f)}).join(" ")+"</span>"}function Pke(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function NRt(t,e,r,n,o){var u=[o],f=n?10:20;return r&&u.push({padding:[0,0,0,f],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Nn(e)?e.join(" "):e,u)}function URt(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return uw(n)}function Oke(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var l3=function(){function t(){this.richTextStyles={},this._nextStyleNameId=mOe()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var o=n==="richText"?this._generateStyleName():null,u=B5t({color:r,type:e,renderMode:n,markerId:o});return ri(u)?u:(this.richTextStyles[o]=u.style,u.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};Nn(r)?jt(r,function(u){return Wr(n,u)}):Wr(n,r);var o=this._generateStyleName();return this.richTextStyles[o]=n,"{"+o+"|"+e+"}"},t}();function HRt(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,o=e.getData(),u=o.mapDimensionsAll("defaultedTooltip"),f=u.length,h=e.getRawValue(r),A=Nn(h),p=URt(e,r),g,y,_,b;if(f>1||A&&!f){var C=QRt(h,e,r,u,p);g=C.inlineValues,y=C.inlineValueTypes,_=C.blocks,b=C.inlineValues[0]}else if(f){var T=o.getDimensionInfo(u[0]);b=g=US(o,r,u[0]),y=T.type}else b=g=A?h[0]:h;var B=yZ(e),L=B&&e.name||"",P=o.getName(r),I=n?L:P;return k2("section",{header:L,noHeader:n||!B,sortParam:b,blocks:[k2("nameValue",{markerType:"item",markerColor:p,name:I,noName:!Kv(I),value:g,valueType:y,dataIndex:r})].concat(_||[])})}function QRt(t,e,r,n,o){var u=e.getData(),f=Sy(t,function(y,_,b){var C=u.getDimensionInfo(b);return y=y||C&&C.tooltip!==!1&&C.displayName!=null},!1),h=[],A=[],p=[];n.length?jt(n,function(y){g(US(u,r,y),y)}):jt(t,g);function g(y,_){var b=u.getDimensionInfo(_);!b||b.otherDims.tooltip===!1||(f?p.push(k2("nameValue",{markerType:"subItem",markerColor:o,name:b.displayName,value:y,valueType:b.type})):(h.push(y),A.push(b.type)))}return{inlineValues:h,inlineValueTypes:A,blocks:p}}var Dm=hu();function XD(t,e){return t.getName(e)||t.getId(e)}var VRt="__universalTransitionEnabled",xg=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,o){this.seriesIndex=this.componentIndex,this.dataTask=JE({count:GRt,reset:jRt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,o);var u=Dm(this).sourceManager=new Ike(this);u.prepareSource();var f=this.getInitialData(r,o);Z_e(f,this),this.dataTask.context.data=f,Dm(this).dataBeforeProcessed=f,X_e(this),this._initSelectedMapFromData(f)},e.prototype.mergeDefaultAndTheme=function(r,n){var o=aO(this),u=o?HZ(r):{},f=this.subType;To.hasClass(f)&&(f+="Series"),Bs(r,n.getTheme().get(this.subType)),Bs(r,this.getDefaultOption()),EK(r,"label",["show"]),this.fillDataTextStyle(r.data),o&&P2(r,u,o)},e.prototype.mergeOption=function(r,n){r=Bs(this.option,r,!0),this.fillDataTextStyle(r.data);var o=aO(this);o&&P2(this.option,r,o);var u=Dm(this).sourceManager;u.dirty(),u.prepareSource();var f=this.getInitialData(r,n);Z_e(f,this),this.dataTask.dirty(),this.dataTask.context.data=f,Dm(this).dataBeforeProcessed=f,X_e(this),this._initSelectedMapFromData(f)},e.prototype.fillDataTextStyle=function(r){if(r&&!Jf(r))for(var n=["show"],o=0;o<r.length;o++)r[o]&&r[o].label&&EK(r[o],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=GK(this);if(n){var o=n.context.data;return r==null||!o.getLinkedData?o:o.getLinkedData(r)}else return Dm(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=GK(this);if(n){var o=n.context;o.outputData=r,n!==this.dataTask&&(o.data=r)}Dm(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return fa(r)},e.prototype.getSourceManager=function(){return Dm(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Dm(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.formatTooltip=function(r,n,o){return HRt({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Oi.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,o){var u=this.ecModel,f=VZ.prototype.getColorFromPalette.call(this,r,n,o);return f||(f=u.getColorFromPalette(r,n,o)),f},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var o=this.option.selectedMap;if(o){var u=this.option.selectedMode,f=this.getData(n);if(u==="series"||o==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var h=0;h<r.length;h++){var A=r[h],p=XD(f,A);o[p]=!1,this._selectedDataIndicesMap[p]=-1}}},e.prototype.toggleSelect=function(r,n){for(var o=[],u=0;u<r.length;u++)o[0]=r[u],this.isSelected(r[u],n)?this.unselect(o,n):this.select(o,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=gl(r),o=[],u=0;u<n.length;u++){var f=r[n[u]];f>=0&&o.push(f)}return o},e.prototype.isSelected=function(r,n){var o=this.option.selectedMap;if(!o)return!1;var u=this.getData(n);return(o==="all"||o[XD(u,r)])&&!u.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[VRt])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var o,u,f=this.option,h=f.selectedMode,A=n.length;if(!(!h||!A)){if(h==="series")f.selectedMap="all";else if(h==="multiple"){wi(f.selectedMap)||(f.selectedMap={});for(var p=f.selectedMap,g=0;g<A;g++){var y=n[g],_=XD(r,y);p[_]=!0,this._selectedDataIndicesMap[_]=r.getRawIndex(y)}}else if(h==="single"||h===!0){var b=n[A-1],_=XD(r,b);f.selectedMap=(o={},o[_]=!0,o),this._selectedDataIndicesMap=(u={},u[_]=r.getRawIndex(b),u)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(o){var u=r.getRawDataItem(o);u&&u.selected&&n.push(o)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return To.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(To);Mg(xg,vRt);Mg(xg,VZ);SOe(xg,To);function X_e(t){var e=t.name;yZ(t)||(t.name=zRt(t)||e)}function zRt(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return jt(r,function(o){var u=e.getDimensionInfo(o);u.displayName&&n.push(u.displayName)}),n.join(" ")}function GRt(t){return t.model.getRawData().count()}function jRt(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),qRt}function qRt(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Z_e(t,e){jt(lIt(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Nl(WRt,e))})}function WRt(t,e){var r=GK(t);return r&&r.setOutputEnd((e||this).count()),e}function GK(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var o=n.agentStubMap;o&&(n=o.get(t.uid))}return n}}var WA=function(){function t(){this.group=new hf,this.uid=Vk("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,o){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,o){},t.prototype.updateLayout=function(e,r,n,o){},t.prototype.updateVisual=function(e,r,n,o){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();bZ(WA);_Z(WA);function kke(){var t=hu();return function(e){var r=t(e),n=e.pipelineContext,o=!!r.large,u=!!r.progressiveRender,f=r.large=!!(n&&n.large),h=r.progressiveRender=!!(n&&n.progressiveRender);return(o!==f||u!==h)&&"reset"}}var Fke=hu(),$Rt=kke(),VA=function(){function t(){this.group=new hf,this.uid=Vk("viewChart"),this.renderTask=JE({plan:KRt,reset:YRt}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,o){},t.prototype.highlight=function(e,r,n,o){var u=e.getData(o&&o.dataType);u&&eSe(u,o,"emphasis")},t.prototype.downplay=function(e,r,n,o){var u=e.getData(o&&o.dataType);u&&eSe(u,o,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,o){this.render(e,r,n,o)},t.prototype.updateLayout=function(e,r,n,o){this.render(e,r,n,o)},t.prototype.updateVisual=function(e,r,n,o){this.render(e,r,n,o)},t.prototype.eachRendered=function(e){kZ(this.group,e)},t.markUpdateMethod=function(e,r){Fke(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function J_e(t,e,r){t&&OK(t)&&(e==="emphasis"?XP:ZP)(t,r)}function eSe(t,e,r){var n=sw(t,e),o=e&&e.highlightKey!=null?sDt(e.highlightKey):null;n!=null?jt(ff(n),function(u){J_e(t.getItemGraphicEl(u),r,o)}):t.eachItemGraphicEl(function(u){J_e(u,r,o)})}bZ(VA);_Z(VA);function KRt(t){return $Rt(t.model)}function YRt(t){var e=t.model,r=t.ecModel,n=t.api,o=t.payload,u=e.pipelineContext.progressiveRender,f=t.view,h=o&&Fke(o).updateMethod,A=u?"incrementalPrepareRender":h&&f[h]?h:"render";return A!=="render"&&f[A](e,r,n,o),XRt[A]}var XRt={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},oO="\0__throttleOriginMethod",tSe="\0__throttleRate",rSe="\0__throttleType";function Nke(t,e,r){var n,o=0,u=0,f=null,h,A,p,g;e=e||0;function y(){u=new Date().getTime(),f=null,t.apply(A,p||[])}var _=function(){for(var b=[],C=0;C<arguments.length;C++)b[C]=arguments[C];n=new Date().getTime(),A=this,p=b;var T=g||e,B=g||r;g=null,h=n-(B?o:u)-T,clearTimeout(f),B?f=setTimeout(y,T):h>=0?y():f=setTimeout(y,-h),o=n};return _.clear=function(){f&&(clearTimeout(f),f=null)},_.debounceNextCall=function(b){g=b},_}function Uke(t,e,r,n){var o=t[e];if(o){var u=o[oO]||o,f=o[rSe],h=o[tSe];if(h!==r||f!==n){if(r==null||!n)return t[e]=u;o=t[e]=Nke(u,r,n==="debounce"),o[oO]=u,o[rSe]=n,o[tSe]=r}return o}}function jK(t,e){var r=t[e];r&&r[oO]&&(r.clear&&r.clear(),t[e]=r[oO])}var nSe=hu(),iSe={itemStyle:D2(ike,!0),lineStyle:D2(nke,!0)},ZRt={lineStyle:"stroke",itemStyle:"fill"};function Hke(t,e){var r=t.visualStyleMapper||iSe[e];return r||(console.warn("Unknown style type '"+e+"'."),iSe.itemStyle)}function Qke(t,e){var r=t.visualDrawType||ZRt[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var JRt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",o=t.getModel(n),u=Hke(t,n),f=u(o),h=o.getShallow("decal");h&&(r.setVisual("decal",h),h.dirty=!0);var A=Qke(t,n),p=f[A],g=ha(p)?p:null,y=f.fill==="auto"||f.stroke==="auto";if(!f[A]||g||y){var _=t.getColorFromPalette(t.name,null,e.getSeriesCount());f[A]||(f[A]=_,r.setVisual("colorFromPalette",!0)),f.fill=f.fill==="auto"||ha(f.fill)?_:f.fill,f.stroke=f.stroke==="auto"||ha(f.stroke)?_:f.stroke}if(r.setVisual("style",f),r.setVisual("drawType",A),!e.isSeriesFiltered(t)&&g)return r.setVisual("colorFromPalette",!1),{dataEach:function(b,C){var T=t.getDataParams(C),B=Wr({},f);B[A]=g(T),b.setItemVisual(C,"style",B)}}}},DT=new zs,ePt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",o=Hke(t,n),u=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(f,h){var A=f.getRawDataItem(h);if(A&&A[n]){DT.option=A[n];var p=o(DT),g=f.ensureUniqueItemVisual(h,"style");Wr(g,p),DT.option.decal&&(f.setItemVisual(h,"decal",DT.option.decal),DT.option.decal.dirty=!0),u in p&&f.setItemVisual(h,"colorFromPalette",!1)}}:null}}}},tPt={performRawSeries:!0,overallReset:function(t){var e=fa();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var o=r.type+"-"+n,u=e.get(o);u||(u={},e.set(o,u)),nSe(r).scope=u}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),o={},u=r.getData(),f=nSe(r).scope,h=r.visualStyleAccessPath||"itemStyle",A=Qke(r,h);u.each(function(p){var g=u.getRawIndex(p);o[g]=p}),n.each(function(p){var g=o[p],y=u.getItemVisual(g,"colorFromPalette");if(y){var _=u.ensureUniqueItemVisual(g,"style"),b=n.getName(p)||p+"",C=n.count();_[A]=r.getColorFromPalette(b,f,C)}})}})}},ZD=Math.PI;function rPt(t,e){e=e||{},ls(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new hf,n=new Rc({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var o=new Yu({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),u=new Rc({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(u);var f;return e.showSpinner&&(f=new Fk({shape:{startAngle:-ZD/2,endAngle:-ZD/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),f.animateShape(!0).when(1e3,{endAngle:ZD*3/2}).start("circularInOut"),f.animateShape(!0).when(1e3,{startAngle:ZD*3/2}).delay(300).start("circularInOut"),r.add(f)),r.resize=function(){var h=o.getBoundingRect().width,A=e.showSpinner?e.spinnerRadius:0,p=(t.getWidth()-A*2-(e.showSpinner&&h?10:0)-h)/2-(e.showSpinner&&h?0:5+h/2)+(e.showSpinner?0:h/2)+(h?0:A),g=t.getHeight()/2;e.showSpinner&&f.setShape({cx:p,cy:g}),u.setShape({x:p-A,y:g-A,width:A*2,height:A*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var Vke=function(){function t(e,r,n,o){this._stageTaskMap=fa(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),o=this._visualHandlers=o.slice(),this._allHandlers=n.concat(o)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var o=n.overallTask;o&&o.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),o=n.context,u=!r&&n.progressiveEnabled&&(!o||o.progressiveRender)&&e.__idxInPipeline>n.blockIndex,f=u?n.step:null,h=o&&o.modDataCount,A=h!=null?Math.ceil(h/f):null;return{step:f,modBy:A,modDataCount:h}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),o=e.getData(),u=o.count(),f=n.progressiveEnabled&&r.incrementalPrepareRender&&u>=n.threshold,h=e.get("large")&&u>=e.get("largeThreshold"),A=e.get("progressiveChunkMode")==="mod"?u:null;e.pipelineContext=n.context={progressiveRender:f,modDataCount:A,large:h}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=fa();e.eachSeries(function(o){var u=o.getProgressive(),f=o.uid;n.set(f,{id:f,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:u&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(u||700),count:0}),r._pipe(o,o.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;jt(this._allHandlers,function(o){var u=e.get(o.uid)||e.set(o.uid,{}),f="";Sg(!(o.reset&&o.overallReset),f),o.reset&&this._createSeriesStageTask(o,u,r,n),o.overallReset&&this._createOverallStageTask(o,u,r,n)},this)},t.prototype.prepareView=function(e,r,n,o){var u=e.renderTask,f=u.context;f.model=r,f.ecModel=n,f.api=o,u.__block=!e.incrementalPrepareRender,this._pipe(r,u)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,o){o=o||{};var u=!1,f=this;jt(e,function(A,p){if(!(o.visualType&&o.visualType!==A.visualType)){var g=f._stageTaskMap.get(A.uid),y=g.seriesTaskMap,_=g.overallTask;if(_){var b,C=_.agentStubMap;C.each(function(B){h(o,B)&&(B.dirty(),b=!0)}),b&&_.dirty(),f.updatePayload(_,n);var T=f.getPerformArgs(_,o.block);C.each(function(B){B.perform(T)}),_.perform(T)&&(u=!0)}else y&&y.each(function(B,L){h(o,B)&&B.dirty();var P=f.getPerformArgs(B,o.block);P.skip=!A.performRawSeries&&r.isSeriesFiltered(B.context.model),f.updatePayload(B,n),B.perform(P)&&(u=!0)})}});function h(A,p){return A.setDirty&&(!A.dirtyMap||A.dirtyMap.get(p.__pipeline.id))}this.unfinished=u||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,o){var u=this,f=r.seriesTaskMap,h=r.seriesTaskMap=fa(),A=e.seriesType,p=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(g):A?n.eachRawSeriesByType(A,g):p&&p(n,o).each(g);function g(y){var _=y.uid,b=h.set(_,f&&f.get(_)||JE({plan:sPt,reset:lPt,count:cPt}));b.context={model:y,ecModel:n,api:o,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:u},u._pipe(y,b)}},t.prototype._createOverallStageTask=function(e,r,n,o){var u=this,f=r.overallTask=r.overallTask||JE({reset:nPt});f.context={ecModel:n,api:o,overallReset:e.overallReset,scheduler:u};var h=f.agentStubMap,A=f.agentStubMap=fa(),p=e.seriesType,g=e.getTargetSeries,y=!0,_=!1,b="";Sg(!e.createOnAllSeries,b),p?n.eachRawSeriesByType(p,C):g?g(n,o).each(C):(y=!1,jt(n.getSeries(),C));function C(T){var B=T.uid,L=A.set(B,h&&h.get(B)||(_=!0,JE({reset:iPt,onDirty:oPt})));L.context={model:T,overallProgress:y},L.agent=f,L.__block=y,u._pipe(T,L)}_&&f.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,o=this._pipelineMap.get(n);!o.head&&(o.head=r),o.tail&&o.tail.pipe(r),o.tail=r,r.__idxInPipeline=o.count++,r.__pipeline=o},t.wrapStageHandler=function(e,r){return ha(e)&&(e={overallReset:e,seriesType:fPt(e)}),e.uid=Vk("stageHandler"),r&&(e.visualType=r),e},t}();function nPt(t){t.overallReset(t.ecModel,t.api,t.payload)}function iPt(t){return t.overallProgress&&aPt}function aPt(){this.agent.dirty(),this.getDownstream().dirty()}function oPt(){this.agent&&this.agent.dirty()}function sPt(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function lPt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ff(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ra(e,function(r,n){return zke(n)}):uPt}var uPt=zke(0);function zke(t){return function(e,r){var n=r.data,o=r.resetDefines[t];if(o&&o.dataEach)for(var u=e.start;u<e.end;u++)o.dataEach(n,u);else o&&o.progress&&o.progress(e,n)}}function cPt(t){return t.data.count()}function fPt(t){sO=null;try{t(F2,Gke)}catch{}return sO}var F2={},Gke={},sO;jke(F2,zZ);jke(Gke,pke);F2.eachSeriesByType=F2.eachRawSeriesByType=function(t){sO=t};F2.eachComponent=function(t){t.mainType==="series"&&t.subType&&(sO=t.subType)};function jke(t,e){for(var r in e.prototype)t[r]=Kf}var aSe=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const hPt={color:aSe,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],aSe]};var Ec="#B9B8CE",oSe="#100C2A",JD=function(){return{axisLine:{lineStyle:{color:Ec}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},sSe=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],qke={darkMode:!0,color:sSe,backgroundColor:oSe,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ec},pageTextStyle:{color:Ec}},textStyle:{color:Ec},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ec}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ec},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Ec}},timeline:{lineStyle:{color:Ec},label:{color:Ec},controlStyle:{color:Ec,borderColor:Ec}},calendar:{itemStyle:{color:oSe},dayLabel:{color:Ec},monthLabel:{color:Ec},yearLabel:{color:Ec}},timeAxis:JD(),logAxis:JD(),valueAxis:JD(),categoryAxis:JD(),line:{symbol:"circle"},graph:{color:sSe},gauge:{title:{color:Ec},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ec},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};qke.categoryAxis.splitLine.show=!1;var dPt=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},o={};if(ri(e)){var u=Yv(e);r.mainType=u.main||null,r.subType=u.sub||null}else{var f=["Index","Name","Id"],h={name:1,dataIndex:1,dataType:1};jt(e,function(A,p){for(var g=!1,y=0;y<f.length;y++){var _=f[y],b=p.lastIndexOf(_);if(b>0&&b===p.length-_.length){var C=p.slice(0,b);C!=="data"&&(r.mainType=C,r[_.toLowerCase()]=A,g=!0)}}h.hasOwnProperty(p)&&(n[p]=A,g=!0),g||(o[p]=A)})}return{cptQuery:r,dataQuery:n,otherQuery:o}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var o=n.targetEl,u=n.packedEvent,f=n.model,h=n.view;if(!f||!h)return!0;var A=r.cptQuery,p=r.dataQuery;return g(A,f,"mainType")&&g(A,f,"subType")&&g(A,f,"index","componentIndex")&&g(A,f,"name")&&g(A,f,"id")&&g(p,u,"name")&&g(p,u,"dataIndex")&&g(p,u,"dataType")&&(!h.filterForExposedEvent||h.filterForExposedEvent(e,r.otherQuery,o,u));function g(y,_,b,C){return y[b]==null||_[C||b]===y[b]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),qK=["symbol","symbolSize","symbolRotate","symbolOffset"],lSe=qK.concat(["symbolKeepAspect"]),APt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},o={},u=!1,f=0;f<qK.length;f++){var h=qK[f],A=t.get(h);ha(A)?(u=!0,o[h]=A):n[h]=A}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(Wr({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var p=gl(o);function g(y,_){for(var b=t.getRawValue(_),C=t.getDataParams(_),T=0;T<p.length;T++){var B=p[T];y.setItemVisual(_,B,o[B](b,C))}}return{dataEach:u?g:null}}},vPt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(o,u){for(var f=o.getItemModel(u),h=0;h<lSe.length;h++){var A=lSe[h],p=f.getShallow(A,!0);p!=null&&o.setItemVisual(u,A,p)}}return{dataEach:r.hasItemOption?n:null}}};function pPt(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function gPt(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function mPt(t,e){function r(n,o){var u=[];return n.eachComponent({mainType:"series",subType:t,query:o},function(f){u.push(f.seriesIndex)}),u}jt([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(o,u,f){o=Wr({},o),f.dispatchAction(Wr(o,{type:n[1],seriesIndex:r(u,o)}))})})}function B_(t,e,r,n,o){var u=t+e;r.isSilent(u)||n.eachComponent({mainType:"series",subType:"pie"},function(f){for(var h=f.seriesIndex,A=f.option.selectedMap,p=o.selected,g=0;g<p.length;g++)if(p[g].seriesIndex===h){var y=f.getData(),_=sw(y,o.fromActionPayload);r.trigger(u,{type:u,seriesId:f.id,name:Nn(_)?y.getName(_[0]):y.getName(_),selected:ri(A)?A:Wr({},A)})}})}function yPt(t,e,r){t.on("selectchanged",function(n){var o=r.getModel();n.isFromClick?(B_("map","selectchanged",e,o,n),B_("pie","selectchanged",e,o,n)):n.fromAction==="select"?(B_("map","selected",e,o,n),B_("pie","selected",e,o,n)):n.fromAction==="unselect"&&(B_("map","unselected",e,o,n),B_("pie","unselected",e,o,n))})}function _E(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var wPt=Math.round(Math.random()*9),bPt=typeof Object.defineProperty=="function",_Pt=function(){function t(){this._id="__ec_inner_"+wPt++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return bPt?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}(),SPt=Fo.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,o=e.width/2,u=e.height/2;t.moveTo(r,n-u),t.lineTo(r+o,n+u),t.lineTo(r-o,n+u),t.closePath()}}),xPt=Fo.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,o=e.width/2,u=e.height/2;t.moveTo(r,n-u),t.lineTo(r+o,n),t.lineTo(r,n+u),t.lineTo(r-o,n),t.closePath()}}),CPt=Fo.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,o=e.width/5*3,u=Math.max(o,e.height),f=o/2,h=f*f/(u-f),A=n-u+f+h,p=Math.asin(h/f),g=Math.cos(p)*f,y=Math.sin(p),_=Math.cos(p),b=f*.6,C=f*.7;t.moveTo(r-g,A+h),t.arc(r,A,f,Math.PI-p,Math.PI*2+p),t.bezierCurveTo(r+g-y*b,A+h+_*b,r,n-C,r,n),t.bezierCurveTo(r,n-C,r-g+y*b,A+h+_*b,r-g,A+h),t.closePath()}}),TPt=Fo.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,o=e.x,u=e.y,f=n/3*2;t.moveTo(o,u),t.lineTo(o+f,u+r),t.lineTo(o,u+r/4*3),t.lineTo(o-f,u+r),t.lineTo(o,u),t.closePath()}}),EPt={line:fx,rect:Rc,roundRect:Rc,square:Rc,circle:kk,diamond:xPt,pin:CPt,arrow:TPt,triangle:SPt},BPt={line:function(t,e,r,n,o){o.x1=t,o.y1=e+n/2,o.x2=t+r,o.y2=e+n/2},rect:function(t,e,r,n,o){o.x=t,o.y=e,o.width=r,o.height=n},roundRect:function(t,e,r,n,o){o.x=t,o.y=e,o.width=r,o.height=n,o.r=Math.min(r,n)/4},square:function(t,e,r,n,o){var u=Math.min(r,n);o.x=t,o.y=e,o.width=u,o.height=u},circle:function(t,e,r,n,o){o.cx=t+r/2,o.cy=e+n/2,o.r=Math.min(r,n)/2},diamond:function(t,e,r,n,o){o.cx=t+r/2,o.cy=e+n/2,o.width=r,o.height=n},pin:function(t,e,r,n,o){o.x=t+r/2,o.y=e+n/2,o.width=r,o.height=n},arrow:function(t,e,r,n,o){o.x=t+r/2,o.y=e+n/2,o.width=r,o.height=n},triangle:function(t,e,r,n,o){o.cx=t+r/2,o.cy=e+n/2,o.width=r,o.height=n}},WK={};jt(EPt,function(t,e){WK[e]=new t});var IPt=Fo.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=dOe(t,e,r),o=this.shape;return o&&o.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var o=WK[n];o||(n="rect",o=WK[n]),BPt[n](e.x,e.y,e.width,e.height,o.shape),o.buildPath(t,o.shape,r)}}});function LPt(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function HS(t,e,r,n,o,u,f){var h=t.indexOf("empty")===0;h&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var A;return t.indexOf("image://")===0?A=ZOe(t.slice(8),new ko(e,r,n,o),f?"center":"cover"):t.indexOf("path://")===0?A=DZ(t.slice(7),{},new ko(e,r,n,o),f?"center":"cover"):A=new IPt({shape:{symbolType:t,x:e,y:r,width:n,height:o}}),A.__isEmptyBrush=h,A.setColor=LPt,u&&A.setColor(u),A}function MPt(t){return Nn(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Wke(t,e){if(t!=null)return Nn(t)||(t=[t,t]),[lu(t[0],e[0])||0,lu(Ji(t[1],t[0]),e[1])||0]}function D1(t){return isFinite(t)}function DPt(t,e,r){var n=e.x==null?0:e.x,o=e.x2==null?1:e.x2,u=e.y==null?0:e.y,f=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,o=o*r.width+r.x,u=u*r.height+r.y,f=f*r.height+r.y),n=D1(n)?n:0,o=D1(o)?o:1,u=D1(u)?u:0,f=D1(f)?f:0;var h=t.createLinearGradient(n,u,o,f);return h}function RPt(t,e,r){var n=r.width,o=r.height,u=Math.min(n,o),f=e.x==null?.5:e.x,h=e.y==null?.5:e.y,A=e.r==null?.5:e.r;e.global||(f=f*n+r.x,h=h*o+r.y,A=A*u),f=D1(f)?f:.5,h=D1(h)?h:.5,A=A>=0&&D1(A)?A:.5;var p=t.createRadialGradient(f,h,0,f,h,A);return p}function $K(t,e,r){for(var n=e.type==="radial"?RPt(t,e,r):DPt(t,e,r),o=e.colorStops,u=0;u<o.length;u++)n.addColorStop(o[u].offset,o[u].color);return n}function PPt(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function e5(t){return parseInt(t,10)}function t5(t,e,r){var n=["width","height"][e],o=["clientWidth","clientHeight"][e],u=["paddingLeft","paddingTop"][e],f=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var h=document.defaultView.getComputedStyle(t);return(t[o]||e5(h[n])||e5(t.style[n]))-(e5(h[u])||0)-(e5(h[f])||0)|0}function OPt(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:ws(t)?[t]:Nn(t)?t:null}function $ke(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&OPt(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var o=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;o&&o!==1&&(r=ra(r,function(u){return u/o}),n/=o)}return[r,n]}var kPt=new lw(!0);function lO(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function uSe(t){return typeof t=="string"&&t!=="none"}function uO(t){var e=t.fill;return e!=null&&e!=="none"}function cSe(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function fSe(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function KK(t,e,r){var n=xOe(e.image,e.__image,r);if(Mk(n)){var o=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&o&&o.setTransform){var u=new DOMMatrix;u.translateSelf(e.x||0,e.y||0),u.rotateSelf(0,0,(e.rotation||0)*uIt),u.scaleSelf(e.scaleX||1,e.scaleY||1),o.setTransform(u)}return o}}function FPt(t,e,r,n){var o,u=lO(r),f=uO(r),h=r.strokePercent,A=h<1,p=!e.path;(!e.silent||A)&&p&&e.createPathProxy();var g=e.path||kPt,y=e.__dirty;if(!n){var _=r.fill,b=r.stroke,C=f&&!!_.colorStops,T=u&&!!b.colorStops,B=f&&!!_.image,L=u&&!!b.image,P=void 0,I=void 0,O=void 0,U=void 0,N=void 0;(C||T)&&(N=e.getBoundingRect()),C&&(P=y?$K(t,_,N):e.__canvasFillGradient,e.__canvasFillGradient=P),T&&(I=y?$K(t,b,N):e.__canvasStrokeGradient,e.__canvasStrokeGradient=I),B&&(O=y||!e.__canvasFillPattern?KK(t,_,e):e.__canvasFillPattern,e.__canvasFillPattern=O),L&&(U=y||!e.__canvasStrokePattern?KK(t,b,e):e.__canvasStrokePattern,e.__canvasStrokePattern=O),C?t.fillStyle=P:B&&(O?t.fillStyle=O:f=!1),T?t.strokeStyle=I:L&&(U?t.strokeStyle=U:u=!1)}var H=e.getGlobalScale();g.setScale(H[0],H[1],e.segmentIgnoreThreshold);var z,G;t.setLineDash&&r.lineDash&&(o=$ke(e),z=o[0],G=o[1]);var j=!0;(p||y&N_)&&(g.setDPR(t.dpr),A?g.setContext(null):(g.setContext(t),j=!1),g.reset(),e.buildPath(g,e.shape,n),g.toStatic(),e.pathUpdated()),j&&g.rebuildPath(t,A?h:1),z&&(t.setLineDash(z),t.lineDashOffset=G),n||(r.strokeFirst?(u&&fSe(t,r),f&&cSe(t,r)):(f&&cSe(t,r),u&&fSe(t,r))),z&&t.setLineDash([])}function NPt(t,e,r){var n=e.__image=xOe(r.image,e.__image,e,e.onload);if(!(!n||!Mk(n))){var o=r.x||0,u=r.y||0,f=e.getWidth(),h=e.getHeight(),A=n.width/n.height;if(f==null&&h!=null?f=h*A:h==null&&f!=null?h=f/A:f==null&&h==null&&(f=n.width,h=n.height),r.sWidth&&r.sHeight){var p=r.sx||0,g=r.sy||0;t.drawImage(n,p,g,r.sWidth,r.sHeight,o,u,f,h)}else if(r.sx&&r.sy){var p=r.sx,g=r.sy,y=f-p,_=h-g;t.drawImage(n,p,g,y,_,o,u,f,h)}else t.drawImage(n,o,u,f,h)}}function UPt(t,e,r){var n,o=r.text;if(o!=null&&(o+=""),o){t.font=r.font||aw,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var u=void 0,f=void 0;t.setLineDash&&r.lineDash&&(n=$ke(e),u=n[0],f=n[1]),u&&(t.setLineDash(u),t.lineDashOffset=f),r.strokeFirst?(lO(r)&&t.strokeText(o,r.x,r.y),uO(r)&&t.fillText(o,r.x,r.y)):(uO(r)&&t.fillText(o,r.x,r.y),lO(r)&&t.strokeText(o,r.x,r.y)),u&&t.setLineDash([])}}var hSe=["shadowBlur","shadowOffsetX","shadowOffsetY"],dSe=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Kke(t,e,r,n,o){var u=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){zf(t,o),u=!0;var f=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(f)?Q1.opacity:f}(n||e.blend!==r.blend)&&(u||(zf(t,o),u=!0),t.globalCompositeOperation=e.blend||Q1.blend);for(var h=0;h<hSe.length;h++){var A=hSe[h];(n||e[A]!==r[A])&&(u||(zf(t,o),u=!0),t[A]=t.dpr*(e[A]||0))}return(n||e.shadowColor!==r.shadowColor)&&(u||(zf(t,o),u=!0),t.shadowColor=e.shadowColor||Q1.shadowColor),u}function ASe(t,e,r,n,o){var u=N2(e,o.inHover),f=n?null:r&&N2(r,o.inHover)||{};if(u===f)return!1;var h=Kke(t,u,f,n,o);if((n||u.fill!==f.fill)&&(h||(zf(t,o),h=!0),uSe(u.fill)&&(t.fillStyle=u.fill)),(n||u.stroke!==f.stroke)&&(h||(zf(t,o),h=!0),uSe(u.stroke)&&(t.strokeStyle=u.stroke)),(n||u.opacity!==f.opacity)&&(h||(zf(t,o),h=!0),t.globalAlpha=u.opacity==null?1:u.opacity),e.hasStroke()){var A=u.lineWidth,p=A/(u.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==p&&(h||(zf(t,o),h=!0),t.lineWidth=p)}for(var g=0;g<dSe.length;g++){var y=dSe[g],_=y[0];(n||u[_]!==f[_])&&(h||(zf(t,o),h=!0),t[_]=u[_]||y[1])}return h}function HPt(t,e,r,n,o){return Kke(t,N2(e,o.inHover),r&&N2(r,o.inHover),n,o)}function Yke(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function QPt(t,e,r){for(var n=!1,o=0;o<t.length;o++){var u=t[o];n=n||u.isZeroArea(),Yke(e,u),e.beginPath(),u.buildPath(e,u.shape),e.clip()}r.allClipped=n}function VPt(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var vSe=1,pSe=2,gSe=3,mSe=4;function zPt(t){var e=uO(t),r=lO(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function zf(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function N2(t,e){return e&&t.__hoverStyle||t.style}function Xke(t,e){R1(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function R1(t,e,r,n){var o=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Sh,e.__isRendered=!1;return}var u=e.__clipPaths,f=r.prevElClipPaths,h=!1,A=!1;if((!f||PPt(u,f))&&(f&&f.length&&(zf(t,r),t.restore(),A=h=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),u&&u.length&&(zf(t,r),t.save(),QPt(u,t,r),h=!0),r.prevElClipPaths=u),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var p=r.prevEl;p||(A=h=!0);var g=e instanceof Fo&&e.autoBatch&&zPt(e.style);h||VPt(o,p.transform)?(zf(t,r),Yke(t,e)):g||zf(t,r);var y=N2(e,r.inHover);e instanceof Fo?(r.lastDrawType!==vSe&&(A=!0,r.lastDrawType=vSe),ASe(t,e,p,A,r),(!g||!r.batchFill&&!r.batchStroke)&&t.beginPath(),FPt(t,e,y,g),g&&(r.batchFill=y.fill||"",r.batchStroke=y.stroke||"")):e instanceof KP?(r.lastDrawType!==gSe&&(A=!0,r.lastDrawType=gSe),ASe(t,e,p,A,r),UPt(t,e,y)):e instanceof Ly?(r.lastDrawType!==pSe&&(A=!0,r.lastDrawType=pSe),HPt(t,e,p,A,r),NPt(t,e,y)):e.getTemporalDisplayables&&(r.lastDrawType!==mSe&&(A=!0,r.lastDrawType=mSe),GPt(t,e,r)),g&&n&&zf(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function GPt(t,e,r){var n=e.getDisplayables(),o=e.getTemporalDisplayables();t.save();var u={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},f,h;for(f=e.getCursor(),h=n.length;f<h;f++){var A=n[f];A.beforeBrush&&A.beforeBrush(),A.innerBeforeBrush(),R1(t,A,u,f===h-1),A.innerAfterBrush(),A.afterBrush&&A.afterBrush(),u.prevEl=A}for(var p=0,g=o.length;p<g;p++){var A=o[p];A.beforeBrush&&A.beforeBrush(),A.innerBeforeBrush(),R1(t,A,u,p===g-1),A.innerAfterBrush(),A.afterBrush&&A.afterBrush(),u.prevEl=A}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var u3=new _Pt,ySe=new bB(100),wSe=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function YK(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),o=n.painter.type==="svg";t.dirty&&u3.delete(t);var u=u3.get(t);if(u)return u;var f=ls(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});f.backgroundColor==="none"&&(f.backgroundColor=null);var h={repeat:"repeat"};return A(h),h.rotation=f.rotation,h.scaleX=h.scaleY=o?1:1/r,u3.set(t,h),t.dirty=!1,h;function A(p){for(var g=[r],y=!0,_=0;_<wSe.length;++_){var b=f[wSe[_]];if(b!=null&&!Nn(b)&&!ri(b)&&!ws(b)&&typeof b!="boolean"){y=!1;break}g.push(b)}var C;if(y){C=g.join(",")+(o?"-svg":"");var T=ySe.get(C);T&&(o?p.svgElement=T:p.image=T)}var B=Jke(f.dashArrayX),L=jPt(f.dashArrayY),P=Zke(f.symbol),I=qPt(B),O=eFe(L),U=!o&&lx.createCanvas(),N=o&&{tag:"g",attrs:{},key:"dcl",children:[]},H=G(),z;U&&(U.width=H.width*r,U.height=H.height*r,z=U.getContext("2d")),j(),y&&ySe.put(C,U||N),p.image=U,p.svgElement=N,p.svgWidth=H.width,p.svgHeight=H.height;function G(){for(var q=1,X=0,Y=I.length;X<Y;++X)q=kbe(q,I[X]);for(var te=1,X=0,Y=P.length;X<Y;++X)te=kbe(te,P[X].length);q*=te;var K=O*I.length*P.length;return{width:Math.max(1,Math.min(q,f.maxTileWidth)),height:Math.max(1,Math.min(K,f.maxTileHeight))}}function j(){z&&(z.clearRect(0,0,U.width,U.height),f.backgroundColor&&(z.fillStyle=f.backgroundColor,z.fillRect(0,0,U.width,U.height)));for(var q=0,X=0;X<L.length;++X)q+=L[X];if(q<=0)return;for(var Y=-O,te=0,K=0,ce=0;Y<H.height;){if(te%2===0){for(var ae=K/2%P.length,le=0,pe=0,ie=0;le<H.width*2;){for(var he=0,X=0;X<B[ce].length;++X)he+=B[ce][X];if(he<=0)break;if(pe%2===0){var re=(1-f.symbolSize)*.5,oe=le+B[ce][pe]*re,ye=Y+L[te]*re,_e=B[ce][pe]*f.symbolSize,Ce=L[te]*f.symbolSize,ne=ie/2%P[ae].length;xe(oe,ye,_e,Ce,P[ae][ne])}le+=B[ce][pe],++ie,++pe,pe===B[ce].length&&(pe=0)}++ce,ce===B.length&&(ce=0)}Y+=L[te],++K,++te,te===L.length&&(te=0)}function xe(De,ze,Ye,Ne,yt){var Ue=o?1:r,ue=HS(yt,De*Ue,ze*Ue,Ye*Ue,Ne*Ue,f.color,f.symbolKeepAspect);if(o){var Qe=n.painter.renderOneToVNode(ue);Qe&&N.children.push(Qe)}else Xke(z,ue)}}}}function Zke(t){if(!t||t.length===0)return[["rect"]];if(ri(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!ri(t[r])){e=!1;break}if(e)return Zke([t]);for(var n=[],r=0;r<t.length;++r)ri(t[r])?n.push([t[r]]):n.push(t[r]);return n}function Jke(t){if(!t||t.length===0)return[[0,0]];if(ws(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!ws(t[n])){r=!1;break}if(r)return Jke([t]);for(var o=[],n=0;n<t.length;++n)if(ws(t[n])){var e=Math.ceil(t[n]);o.push([e,e])}else{var e=ra(t[n],function(h){return Math.ceil(h)});e.length%2===1?o.push(e.concat(e)):o.push(e)}return o}function jPt(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(ws(t)){var e=Math.ceil(t);return[e,e]}var r=ra(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function qPt(t){return ra(t,function(e){return eFe(e)})}function eFe(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function WPt(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(f){var h=n.getItemVisual(f,"decal");if(h){var A=n.ensureUniqueItemVisual(f,"style");A.decal=YK(h,e)}});var o=n.getVisual("decal");if(o){var u=n.getVisual("style");u.decal=YK(o,e)}}})}var Hv=new cp,tFe={};function $Pt(t,e){tFe[t]=e}function KPt(t){return tFe[t]}var YPt=1,XPt=800,ZPt=900,JPt=1e3,eOt=2e3,tOt=5e3,rFe=1e3,rOt=1100,$Z=2e3,nFe=3e3,nOt=4e3,qk=4500,iOt=4600,aOt=5e3,oOt=6e3,iFe=7e3,sOt={PROCESSOR:{FILTER:JPt,SERIES_FILTER:XPt,STATISTIC:tOt},VISUAL:{LAYOUT:rFe,PROGRESSIVE_LAYOUT:rOt,GLOBAL:$Z,CHART:nFe,POST_CHART_LAYOUT:iOt,COMPONENT:nOt,BRUSH:aOt,CHART_ITEM:qk,ARIA:oOt,DECAL:iFe}},Cc="__flagInMainProcess",Ff="__pendingUpdate",c3="__needsUpdateStatus",bSe=/^[a-zA-Z0-9_]+$/;function aFe(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return sFe(this,t,e)}}function oFe(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return sFe(this,t,e)}}function sFe(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),cp.prototype[e].apply(t,r)}var lFe=function(t){ao(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(cp),uFe=lFe.prototype;uFe.on=oFe("on");uFe.off=oFe("off");var I_,f3,r5,Rm,h3,d3,A3,RT,PT,_Se,SSe,v3,xSe,n5,CSe,Ad,TSe,lOt=function(t){ao(e,t);function e(r,n,o){var u=t.call(this,new dPt)||this;u._chartsViews=[],u._chartsMap={},u._componentsViews=[],u._componentsMap={},u._pendingActions=[],o=o||{},ri(n)&&(n=cFe[n]),u._dom=r;var f="canvas",h="auto",A=!1;o.ssr;var p=u._zr=Pbe(r,{renderer:o.renderer||f,devicePixelRatio:o.devicePixelRatio,width:o.width,height:o.height,ssr:o.ssr,useDirtyRect:Ji(o.useDirtyRect,A),useCoarsePointer:Ji(o.useCoarsePointer,h),pointerSize:o.pointerSize});u._ssr=o.ssr,u._throttledZrFlush=Nke(qo(p.flush,p),17),n=Ba(n),n&&mke(n,!0),u._theme=n,u._locale=g5t(o.locale||ake),u._coordSysMgr=new GZ;var g=u._api=CSe(u);function y(_,b){return _.__prio-b.__prio}return X5(hO,y),X5(XK,y),u._scheduler=new Vke(u,g,XK,hO),u._messageCenter=new lFe,u._initEvents(),u.resize=qo(u.resize,u),p.animation.on("frame",u._onframe,u),_Se(p,u),SSe(p,u),UP(u),u}return e.prototype._onframe=function(){if(!this._disposed){TSe(this);var r=this._scheduler;if(this[Ff]){var n=this[Ff].silent;this[Cc]=!0;try{I_(this),Rm.update.call(this,null,this[Ff].updateParams)}catch(A){throw this[Cc]=!1,this[Ff]=null,A}this._zr.flush(),this[Cc]=!1,this[Ff]=null,RT.call(this,n),PT.call(this,n)}else if(r.unfinished){var o=YPt,u=this._model,f=this._api;r.unfinished=!1;do{var h=+new Date;r.performSeriesTasks(u),r.performDataProcessorTasks(u),d3(this,u),r.performVisualTasks(u),n5(this,this._model,f,"remain",{}),o-=+new Date-h}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,o){if(!this[Cc]){if(this._disposed){this.id;return}var u,f,h;if(wi(n)&&(o=n.lazyUpdate,u=n.silent,f=n.replaceMerge,h=n.transition,n=n.notMerge),this[Cc]=!0,!this._model||n){var A=new $5t(this._api),p=this._theme,g=this._model=new zZ;g.scheduler=this._scheduler,g.ssr=this._ssr,g.init(null,null,null,p,this._locale,A)}this._model.setOption(r,{replaceMerge:f},ZK);var y={seriesTransition:h,optionChanged:!0};if(o)this[Ff]={silent:u,updateParams:y},this[Cc]=!1,this.getZr().wakeUp();else{try{I_(this),Rm.update.call(this,null,y)}catch(_){throw this[Ff]=null,this[Cc]=!1,_}this._ssr||this._zr.flush(),this[Ff]=null,this[Cc]=!1,RT.call(this,u),PT.call(this,u)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Oi.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.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()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(Oi.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return jt(n,function(o){o.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,o=this._model,u=[],f=this;jt(n,function(A){o.eachComponent({mainType:A},function(p){var g=f._componentsMap[p.__viewId];g.group.ignore||(u.push(g),g.group.ignore=!0)})});var h=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return jt(u,function(A){A.group.ignore=!1}),h},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",o=this.group,u=Math.min,f=Math.max,h=1/0;if(cOt[o]){var A=h,p=h,g=-h,y=-h,_=[],b=r&&r.pixelRatio||this.getDevicePixelRatio();jt(ESe,function(I,O){if(I.group===o){var U=n?I.getZr().painter.getSvgDom().innerHTML:I.renderToCanvas(Ba(r)),N=I.getDom().getBoundingClientRect();A=u(N.left,A),p=u(N.top,p),g=f(N.right,g),y=f(N.bottom,y),_.push({dom:U,left:N.left,top:N.top})}}),A*=b,p*=b,g*=b,y*=b;var C=g-A,T=y-p,B=lx.createCanvas(),L=Pbe(B,{renderer:n?"svg":"canvas"});if(L.resize({width:C,height:T}),n){var P="";return jt(_,function(I){var O=I.left-A,U=I.top-p;P+='<g transform="translate('+O+","+U+')">'+I.dom+"</g>"}),L.painter.getSvgRoot().innerHTML=P,r.connectedBackgroundColor&&L.painter.setBackgroundColor(r.connectedBackgroundColor),L.refreshImmediately(),L.painter.toDataURL()}else return r.connectedBackgroundColor&&L.add(new Rc({shape:{x:0,y:0,width:C,height:T},style:{fill:r.connectedBackgroundColor}})),jt(_,function(I){var O=new Ly({style:{x:I.left*b-A,y:I.top*b-p,image:I.dom}});L.add(O)}),L.refreshImmediately(),B.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return h3(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return h3(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var o=this._model,u,f=FG(o,r);return jt(f,function(h,A){A.indexOf("Models")>=0&&jt(h,function(p){var g=p.coordinateSystem;if(g&&g.containPoint)u=u||!!g.containPoint(n);else if(A==="seriesModels"){var y=this._chartsMap[p.__viewId];y&&y.containPoint&&(u=u||y.containPoint(n,p))}},this)},this),!!u},e.prototype.getVisual=function(r,n){var o=this._model,u=FG(o,r,{defaultMainType:"series"}),f=u.seriesModel,h=f.getData(),A=u.hasOwnProperty("dataIndexInside")?u.dataIndexInside:u.hasOwnProperty("dataIndex")?h.indexOfRawIndex(u.dataIndex):null;return A!=null?pPt(h,A,n):gPt(h,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;jt(uOt,function(n){var o=function(u){var f=r.getModel(),h=u.target,A,p=n==="globalout";if(p?A={}:h&&_E(h,function(C){var T=go(C);if(T&&T.dataIndex!=null){var B=T.dataModel||f.getSeriesByIndex(T.seriesIndex);return A=B&&B.getDataParams(T.dataIndex,T.dataType,h)||{},!0}else if(T.eventData)return A=Wr({},T.eventData),!0},!0),A){var g=A.componentType,y=A.componentIndex;(g==="markLine"||g==="markPoint"||g==="markArea")&&(g="series",y=A.seriesIndex);var _=g&&y!=null&&f.getComponent(g,y),b=_&&r[_.mainType==="series"?"_chartsMap":"_componentsMap"][_.__viewId];A.event=u,A.type=n,r._$eventProcessor.eventInfo={targetEl:h,packedEvent:A,model:_,view:b},r.trigger(n,A)}};o.zrEventfulCallAtLast=!0,r._zr.on(n,o,r)}),jt(fO,function(n,o){r._messageCenter.on(o,function(u){this.trigger(o,u)},r)}),jt(["selectchanged"],function(n){r._messageCenter.on(n,function(o){this.trigger(n,o)},r)}),yPt(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&VLt(this.getDom(),fOt,"");var n=this,o=n._api,u=n._model;jt(n._componentsViews,function(f){f.dispose(u,o)}),jt(n._chartsViews,function(f){f.dispose(u,o)}),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 ESe[n.id]},e.prototype.resize=function(r){if(!this[Cc]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var o=n.resetOption("media"),u=r&&r.silent;this[Ff]&&(u==null&&(u=this[Ff].silent),o=!0,this[Ff]=null),this[Cc]=!0;try{o&&I_(this),Rm.update.call(this,{type:"resize",animation:Wr({duration:0},r&&r.animation)})}catch(f){throw this[Cc]=!1,f}this[Cc]=!1,RT.call(this,u),PT.call(this,u)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(wi(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!JK[r]){var o=JK[r](this._api,n),u=this._zr;this._loadingFX=o,u.add(o)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=Wr({},r);return n.type=fO[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(wi(n)||(n={silent:!!n}),!!cO[r.type]&&this._model){if(this[Cc]){this._pendingActions.push(r);return}var o=n.silent;A3.call(this,r,o);var u=n.flush;u?this._zr.flush():u!==!1&&Oi.browser.weChat&&this._throttledZrFlush(),RT.call(this,o),PT.call(this,o)}},e.prototype.updateLabelLayout=function(){Hv.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,o=this.getModel(),u=o.getSeriesByIndex(n);u.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){I_=function(y){var _=y._scheduler;_.restorePipelines(y._model),_.prepareStageTasks(),f3(y,!0),f3(y,!1),_.plan()},f3=function(y,_){for(var b=y._model,C=y._scheduler,T=_?y._componentsViews:y._chartsViews,B=_?y._componentsMap:y._chartsMap,L=y._zr,P=y._api,I=0;I<T.length;I++)T[I].__alive=!1;_?b.eachComponent(function(N,H){N!=="series"&&O(H)}):b.eachSeries(O);function O(N){var H=N.__requireNewView;N.__requireNewView=!1;var z="_ec_"+N.id+"_"+N.type,G=!H&&B[z];if(!G){var j=Yv(N.type),q=_?WA.getClass(j.main,j.sub):VA.getClass(j.sub);G=new q,G.init(b,P),B[z]=G,T.push(G),L.add(G.group)}N.__viewId=G.__id=z,G.__alive=!0,G.__model=N,G.group.__ecComponentInfo={mainType:N.mainType,index:N.componentIndex},!_&&C.prepareView(G,N,b,P)}for(var I=0;I<T.length;){var U=T[I];U.__alive?I++:(!_&&U.renderTask.dispose(),L.remove(U.group),U.dispose(b,P),T.splice(I,1),B[U.__id]===U&&delete B[U.__id],U.__id=U.group.__ecComponentInfo=null)}},r5=function(y,_,b,C,T){var B=y._model;if(B.setUpdatePayload(b),!C){jt([].concat(y._componentsViews).concat(y._chartsViews),U);return}var L={};L[C+"Id"]=b[C+"Id"],L[C+"Index"]=b[C+"Index"],L[C+"Name"]=b[C+"Name"];var P={mainType:C,query:L};T&&(P.subType=T);var I=b.excludeSeriesId,O;I!=null&&(O=fa(),jt(ff(I),function(N){var H=tp(N,null);H!=null&&O.set(H,!0)})),B&&B.eachComponent(P,function(N){var H=O&&O.get(N.id)!=null;if(!H)if(u_e(b))if(N instanceof xg)b.type===V1&&!b.notBlur&&!N.get(["emphasis","disabled"])&&JMt(N,b,y._api);else{var z=TZ(N.mainType,N.componentIndex,b.name,y._api),G=z.focusSelf,j=z.dispatchers;b.type===V1&&G&&!b.notBlur&&DK(N.mainType,N.componentIndex,y._api),j&&jt(j,function(q){b.type===V1?XP(q):ZP(q)})}else kK(b)&&N instanceof xg&&(rDt(N,b,y._api),s_e(N),Ad(y))},y),B&&B.eachComponent(P,function(N){var H=O&&O.get(N.id)!=null;H||U(y[C==="series"?"_chartsMap":"_componentsMap"][N.__viewId])},y);function U(N){N&&N.__alive&&N[_]&&N[_](N.__model,B,y._api,b)}},Rm={prepareAndUpdate:function(y){I_(this),Rm.update.call(this,y,{optionChanged:y.newOption!=null})},update:function(y,_){var b=this._model,C=this._api,T=this._zr,B=this._coordSysMgr,L=this._scheduler;if(b){b.setUpdatePayload(y),L.restoreData(b,y),L.performSeriesTasks(b),B.create(b,C),L.performDataProcessorTasks(b,y),d3(this,b),B.update(b,C),r(b),L.performVisualTasks(b,y),v3(this,b,C,y,_);var P=b.get("backgroundColor")||"transparent",I=b.get("darkMode");T.setBackgroundColor(P),I!=null&&I!=="auto"&&T.setDarkMode(I),Hv.trigger("afterupdate",b,C)}},updateTransform:function(y){var _=this,b=this._model,C=this._api;if(b){b.setUpdatePayload(y);var T=[];b.eachComponent(function(L,P){if(L!=="series"){var I=_.getViewOfComponentModel(P);if(I&&I.__alive)if(I.updateTransform){var O=I.updateTransform(P,b,C,y);O&&O.update&&T.push(I)}else T.push(I)}});var B=fa();b.eachSeries(function(L){var P=_._chartsMap[L.__viewId];if(P.updateTransform){var I=P.updateTransform(L,b,C,y);I&&I.update&&B.set(L.uid,1)}else B.set(L.uid,1)}),r(b),this._scheduler.performVisualTasks(b,y,{setDirty:!0,dirtyMap:B}),n5(this,b,C,y,{},B),Hv.trigger("afterupdate",b,C)}},updateView:function(y){var _=this._model;_&&(_.setUpdatePayload(y),VA.markUpdateMethod(y,"updateView"),r(_),this._scheduler.performVisualTasks(_,y,{setDirty:!0}),v3(this,_,this._api,y,{}),Hv.trigger("afterupdate",_,this._api))},updateVisual:function(y){var _=this,b=this._model;b&&(b.setUpdatePayload(y),b.eachSeries(function(C){C.getData().clearAllVisual()}),VA.markUpdateMethod(y,"updateVisual"),r(b),this._scheduler.performVisualTasks(b,y,{visualType:"visual",setDirty:!0}),b.eachComponent(function(C,T){if(C!=="series"){var B=_.getViewOfComponentModel(T);B&&B.__alive&&B.updateVisual(T,b,_._api,y)}}),b.eachSeries(function(C){var T=_._chartsMap[C.__viewId];T.updateVisual(C,b,_._api,y)}),Hv.trigger("afterupdate",b,this._api))},updateLayout:function(y){Rm.update.call(this,y)}},h3=function(y,_,b,C){if(y._disposed){y.id;return}for(var T=y._model,B=y._coordSysMgr.getCoordinateSystems(),L,P=FG(T,b),I=0;I<B.length;I++){var O=B[I];if(O[_]&&(L=O[_](T,P,C))!=null)return L}},d3=function(y,_){var b=y._chartsMap,C=y._scheduler;_.eachSeries(function(T){C.updateStreamModes(T,b[T.__viewId])})},A3=function(y,_){var b=this,C=this.getModel(),T=y.type,B=y.escapeConnect,L=cO[T],P=L.actionInfo,I=(P.update||"update").split(":"),O=I.pop(),U=I[0]!=null&&Yv(I[0]);this[Cc]=!0;var N=[y],H=!1;y.batch&&(H=!0,N=ra(y.batch,function(te){return te=ls(Wr({},te),y),te.batch=null,te}));var z=[],G,j=kK(y),q=u_e(y);if(q&&QOe(this._api),jt(N,function(te){if(G=L.action(te,b._model,b._api),G=G||Wr({},te),G.type=P.event||G.type,z.push(G),q){var K=wZ(y),ce=K.queryOptionMap,ae=K.mainTypeSpecified,le=ae?ce.keys()[0]:"series";r5(b,O,te,le),Ad(b)}else j?(r5(b,O,te,"series"),Ad(b)):U&&r5(b,O,te,U.main,U.sub)}),O!=="none"&&!q&&!j&&!U)try{this[Ff]?(I_(this),Rm.update.call(this,y),this[Ff]=null):Rm[O].call(this,y)}catch(te){throw this[Cc]=!1,te}if(H?G={type:P.event||T,escapeConnect:B,batch:z}:G=z[0],this[Cc]=!1,!_){var X=this._messageCenter;if(X.trigger(G.type,G),j){var Y={type:"selectchanged",escapeConnect:B,selected:nDt(C),isFromClick:y.isFromClick||!1,fromAction:y.type,fromActionPayload:y};X.trigger(Y.type,Y)}}},RT=function(y){for(var _=this._pendingActions;_.length;){var b=_.shift();A3.call(this,b,y)}},PT=function(y){!y&&this.trigger("updated")},_Se=function(y,_){y.on("rendered",function(b){_.trigger("rendered",b),y.animation.isFinished()&&!_[Ff]&&!_._scheduler.unfinished&&!_._pendingActions.length&&_.trigger("finished")})},SSe=function(y,_){y.on("mouseover",function(b){var C=b.target,T=_E(C,OK);T&&(eDt(T,b,_._api),Ad(_))}).on("mouseout",function(b){var C=b.target,T=_E(C,OK);T&&(tDt(T,b,_._api),Ad(_))}).on("click",function(b){var C=b.target,T=_E(C,function(P){return go(P).dataIndex!=null},!0);if(T){var B=T.selected?"unselect":"select",L=go(T);_._api.dispatchAction({type:B,dataType:L.dataType,dataIndexInside:L.dataIndex,seriesIndex:L.seriesIndex,isFromClick:!0})}})};function r(y){y.clearColorPalette(),y.eachSeries(function(_){_.clearColorPalette()})}function n(y){var _=[],b=[],C=!1;if(y.eachComponent(function(P,I){var O=I.get("zlevel")||0,U=I.get("z")||0,N=I.getZLevelKey();C=C||!!N,(P==="series"?b:_).push({zlevel:O,z:U,idx:I.componentIndex,type:P,key:N})}),C){var T=_.concat(b),B,L;X5(T,function(P,I){return P.zlevel===I.zlevel?P.z-I.z:P.zlevel-I.zlevel}),jt(T,function(P){var I=y.getComponent(P.type,P.idx),O=P.zlevel,U=P.key;B!=null&&(O=Math.max(B,O)),U?(O===B&&U!==L&&O++,L=U):L&&(O===B&&O++,L=""),B=O,I.setZLevel(O)})}}v3=function(y,_,b,C,T){n(_),xSe(y,_,b,C,T),jt(y._chartsViews,function(B){B.__alive=!1}),n5(y,_,b,C,T),jt(y._chartsViews,function(B){B.__alive||B.remove(_,b)})},xSe=function(y,_,b,C,T,B){jt(B||y._componentsViews,function(L){var P=L.__model;p(P,L),L.render(P,_,b,C),h(P,L),g(P,L)})},n5=function(y,_,b,C,T,B){var L=y._scheduler;T=Wr(T||{},{updatedSeries:_.getSeries()}),Hv.trigger("series:beforeupdate",_,b,T);var P=!1;_.eachSeries(function(I){var O=y._chartsMap[I.__viewId];O.__alive=!0;var U=O.renderTask;L.updatePayload(U,C),p(I,O),B&&B.get(I.uid)&&U.dirty(),U.perform(L.getPerformArgs(U))&&(P=!0),O.group.silent=!!I.get("silent"),f(I,O),s_e(I)}),L.unfinished=P||L.unfinished,Hv.trigger("series:layoutlabels",_,b,T),Hv.trigger("series:transition",_,b,T),_.eachSeries(function(I){var O=y._chartsMap[I.__viewId];h(I,O),g(I,O)}),u(y,_),Hv.trigger("series:afterupdate",_,b,T)},Ad=function(y){y[c3]=!0,y.getZr().wakeUp()},TSe=function(y){y[c3]&&(y.getZr().storage.traverse(function(_){XE(_)||o(_)}),y[c3]=!1)};function o(y){for(var _=[],b=y.currentStates,C=0;C<b.length;C++){var T=b[C];T==="emphasis"||T==="blur"||T==="select"||_.push(T)}y.selected&&y.states.select&&_.push("select"),y.hoverState===Pk&&y.states.emphasis?_.push("emphasis"):y.hoverState===Rk&&y.states.blur&&_.push("blur"),y.useStates(_)}function u(y,_){var b=y._zr,C=b.storage,T=0;C.traverse(function(B){B.isGroup||T++}),T>_.get("hoverLayerThreshold")&&!Oi.node&&!Oi.worker&&_.eachSeries(function(B){if(!B.preventUsingHoverLayer){var L=y._chartsMap[B.__viewId];L.__alive&&L.eachRendered(function(P){P.states.emphasis&&(P.states.emphasis.hoverLayer=!0)})}})}function f(y,_){var b=y.get("blendMode")||null;_.eachRendered(function(C){C.isGroup||(C.style.blend=b)})}function h(y,_){if(!y.preventAutoZ){var b=y.get("z")||0,C=y.get("zlevel")||0;_.eachRendered(function(T){return A(T,b,C,-1/0),!0})}}function A(y,_,b,C){var T=y.getTextContent(),B=y.getTextGuideLine(),L=y.isGroup;if(L)for(var P=y.childrenRef(),I=0;I<P.length;I++)C=Math.max(A(P[I],_,b,C),C);else y.z=_,y.zlevel=b,C=Math.max(y.z2,C);if(T&&(T.z=_,T.zlevel=b,isFinite(C)&&(T.z2=C+2)),B){var O=y.textGuideLineConfig;B.z=_,B.zlevel=b,isFinite(C)&&(B.z2=C+(O&&O.showAbove?1:-1))}return C}function p(y,_){_.eachRendered(function(b){if(!XE(b)){var C=b.getTextContent(),T=b.getTextGuideLine();b.stateTransition&&(b.stateTransition=null),C&&C.stateTransition&&(C.stateTransition=null),T&&T.stateTransition&&(T.stateTransition=null),b.hasState()?(b.prevStates=b.currentStates,b.clearStates()):b.prevStates&&(b.prevStates=null)}})}function g(y,_){var b=y.getModel("stateAnimation"),C=y.isAnimationEnabled(),T=b.get("duration"),B=T>0?{duration:T,delay:b.get("delay"),easing:b.get("easing")}:null;_.eachRendered(function(L){if(L.states&&L.states.emphasis){if(XE(L))return;if(L instanceof Fo&&lDt(L),L.__dirty){var P=L.prevStates;P&&L.useStates(P)}if(C){L.stateTransition=B;var I=L.getTextContent(),O=L.getTextGuideLine();I&&(I.stateTransition=B),O&&(O.stateTransition=B)}L.__dirty&&o(L)}})}CSe=function(y){return new(function(_){ao(b,_);function b(){return _!==null&&_.apply(this,arguments)||this}return b.prototype.getCoordinateSystems=function(){return y._coordSysMgr.getCoordinateSystems()},b.prototype.getComponentByElement=function(C){for(;C;){var T=C.__ecComponentInfo;if(T!=null)return y._model.getComponent(T.mainType,T.index);C=C.parent}},b.prototype.enterEmphasis=function(C,T){XP(C,T),Ad(y)},b.prototype.leaveEmphasis=function(C,T){ZP(C,T),Ad(y)},b.prototype.enterBlur=function(C){ZMt(C),Ad(y)},b.prototype.leaveBlur=function(C){FOe(C),Ad(y)},b.prototype.enterSelect=function(C){NOe(C),Ad(y)},b.prototype.leaveSelect=function(C){UOe(C),Ad(y)},b.prototype.getModel=function(){return y.getModel()},b.prototype.getViewOfComponentModel=function(C){return y.getViewOfComponentModel(C)},b.prototype.getViewOfSeriesModel=function(C){return y.getViewOfSeriesModel(C)},b}(pke))(y)}}(),e}(cp),KZ=lOt.prototype;KZ.on=aFe("on");KZ.off=aFe("off");KZ.one=function(t,e,r){var n=this;function o(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];e&&e.apply&&e.apply(this,u),n.off(t,o)}this.on.call(this,t,o,r)};var uOt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var cO={},fO={},XK=[],ZK=[],hO=[],cFe={},JK={},ESe={},cOt={},fOt="_echarts_instance_";function fFe(t,e){cFe[t]=e}function hFe(t){ss(ZK,t)<0&&ZK.push(t)}function dFe(t,e){XZ(XK,t,e,eOt)}function hOt(t){YZ("afterinit",t)}function dOt(t){YZ("afterupdate",t)}function YZ(t,e){Hv.on(t,e)}function dx(t,e,r){ha(e)&&(r=e,e="");var n=wi(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,!fO[e]&&(Sg(bSe.test(n)&&bSe.test(e)),cO[n]||(cO[n]={action:r,actionInfo:t}),fO[e]=n)}function AOt(t,e){GZ.register(t,e)}function vOt(t,e){XZ(hO,t,e,rFe,"layout")}function ww(t,e){XZ(hO,t,e,nFe,"visual")}var BSe=[];function XZ(t,e,r,n,o){if((ha(e)||wi(e))&&(r=e,e=n),!(ss(BSe,r)>=0)){BSe.push(r);var u=Vke.wrapStageHandler(r,o);u.__prio=e,u.__raw=r,t.push(u)}}function AFe(t,e){JK[t]=e}function pOt(t,e,r){var n=KPt("registerMap");n&&n(t,e,r)}var gOt=xRt;ww($Z,JRt);ww(qk,ePt);ww(qk,tPt);ww($Z,APt);ww(qk,vPt);ww(iFe,WPt);hFe(mke);dFe(ZPt,oRt);AFe("default",rPt);dx({type:V1,event:V1,update:V1},Kf);dx({type:nR,event:nR,update:nR},Kf);dx({type:$E,event:$E,update:$E},Kf);dx({type:iR,event:iR,update:iR},Kf);dx({type:KE,event:KE,update:KE},Kf);fFe("light",hPt);fFe("dark",qke);function OT(t){return t==null?0:t.length||1}function ISe(t){return t}var mOt=function(){function t(e,r,n,o,u,f){this._old=e,this._new=r,this._oldKeyGetter=n||ISe,this._newKeyGetter=o||ISe,this.context=u,this._diffModeMultiple=f==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},o=new Array(e.length),u=new Array(r.length);this._initIndexMap(e,null,o,"_oldKeyGetter"),this._initIndexMap(r,n,u,"_newKeyGetter");for(var f=0;f<e.length;f++){var h=o[f],A=n[h],p=OT(A);if(p>1){var g=A.shift();A.length===1&&(n[h]=A[0]),this._update&&this._update(g,f)}else p===1?(n[h]=null,this._update&&this._update(A,f)):this._remove&&this._remove(f)}this._performRestAdd(u,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},o={},u=[],f=[];this._initIndexMap(e,n,u,"_oldKeyGetter"),this._initIndexMap(r,o,f,"_newKeyGetter");for(var h=0;h<u.length;h++){var A=u[h],p=n[A],g=o[A],y=OT(p),_=OT(g);if(y>1&&_===1)this._updateManyToOne&&this._updateManyToOne(g,p),o[A]=null;else if(y===1&&_>1)this._updateOneToMany&&this._updateOneToMany(g,p),o[A]=null;else if(y===1&&_===1)this._update&&this._update(g,p),o[A]=null;else if(y>1&&_>1)this._updateManyToMany&&this._updateManyToMany(g,p),o[A]=null;else if(y>1)for(var b=0;b<y;b++)this._remove&&this._remove(p[b]);else this._remove&&this._remove(p)}this._performRestAdd(f,o)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var o=e[n],u=r[o],f=OT(u);if(f>1)for(var h=0;h<f;h++)this._add&&this._add(u[h]);else f===1&&this._add&&this._add(u);r[o]=null}},t.prototype._initIndexMap=function(e,r,n,o){for(var u=this._diffModeMultiple,f=0;f<e.length;f++){var h="_ec_"+this[o](e[f],f);if(u||(n[f]=h),!!r){var A=r[h],p=OT(A);p===0?(r[h]=f,u&&n.push(h)):p===1?r[h]=[A,f]:A.push(f)}}},t}(),yOt=function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function wOt(t,e){var r={},n=r.encode={},o=fa(),u=[],f=[],h={};jt(t.dimensions,function(_){var b=t.getDimensionInfo(_),C=b.coordDim;if(C){var T=b.coordDimIndex;p3(n,C)[T]=_,b.isExtraCoord||(o.set(C,1),_Ot(b.type)&&(u[0]=_),p3(h,C)[T]=t.getDimensionIndex(b.name)),b.defaultTooltip&&f.push(_)}fke.each(function(B,L){var P=p3(n,L),I=b.otherDims[L];I!=null&&I!==!1&&(P[I]=b.name)})});var A=[],p={};o.each(function(_,b){var C=n[b];p[b]=C[0],A=A.concat(C)}),r.dataDimsOnCoord=A,r.dataDimIndicesOnCoord=ra(A,function(_){return t.getDimensionInfo(_).storeDimIndex}),r.encodeFirstDimNotExtra=p;var g=n.label;g&&g.length&&(u=g.slice());var y=n.tooltip;return y&&y.length?f=y.slice():f.length||(f=u.slice()),n.defaultedLabel=u,n.defaultedTooltip=f,r.userOutput=new yOt(h,e),r}function p3(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function bOt(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function _Ot(t){return!(t==="ordinal"||t==="time")}var lR=function(){function t(e){this.otherDims={},e!=null&&Wr(this,e)}return t}(),SOt=hu(),xOt={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},vFe=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=mFe(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Ji(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=bke(this.source),n=!yFe(e),o="",u=[],f=0,h=0;f<e;f++){var A=void 0,p=void 0,g=void 0,y=this.dimensions[h];if(y&&y.storeDimIndex===f)A=r?y.name:null,p=y.type,g=y.ordinalMeta,h++;else{var _=this.getSourceDimension(f);_&&(A=r?_.name:null,p=_.type)}u.push({property:A,type:p,ordinalMeta:g}),r&&A!=null&&(!y||!y.isCalculationCoord)&&(o+=n?A.replace(/\`/g,"`1").replace(/\$/g,"`2"):A),o+="$",o+=xOt[p]||"f",g&&(o+=g.uid),o+="$"}var b=this.source,C=[b.seriesLayoutBy,b.startIndex,o].join("$$");return{dimensions:u,hash:C}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var o=void 0,u=this.dimensions[n];if(u&&u.storeDimIndex===r)u.isCalculationCoord||(o=u.name),n++;else{var f=this.getSourceDimension(r);f&&(o=f.name)}e.push(o)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function pFe(t){return t instanceof vFe}function gFe(t){for(var e=fa(),r=0;r<(t||[]).length;r++){var n=t[r],o=wi(n)?n.name:n;o!=null&&e.get(o)==null&&e.set(o,r)}return e}function mFe(t){var e=SOt(t);return e.dimNameMap||(e.dimNameMap=gFe(t.dimensionsDefine))}function yFe(t){return t>30}var kT=wi,Pm=ra,COt=typeof Int32Array>"u"?Array:Int32Array,TOt="e\0\0",LSe=-1,EOt=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],BOt=["_approximateExtent"],MSe,i5,FT,NT,g3,UT,m3,wFe=function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,o=!1;pFe(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(o=!0,n=e),n=n||["x","y"];for(var u={},f=[],h={},A=!1,p={},g=0;g<n.length;g++){var y=n[g],_=ri(y)?new lR({name:y}):y instanceof lR?y:new lR(y),b=_.name;_.type=_.type||"float",_.coordDim||(_.coordDim=b,_.coordDimIndex=0);var C=_.otherDims=_.otherDims||{};f.push(b),u[b]=_,p[b]!=null&&(A=!0),_.createInvertedIndices&&(h[b]=[]),C.itemName===0&&(this._nameDimIdx=g),C.itemId===0&&(this._idDimIdx=g),o&&(_.storeDimIndex=g)}if(this.dimensions=f,this._dimInfos=u,this._initGetDimensionInfo(A),this.hostModel=r,this._invertedIndicesMap=h,this._dimOmitted){var T=this._dimIdxToName=fa();jt(f,function(B){T.set(u[B].storeDimIndex,B)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var o=this._schema.getSourceDimension(r);if(o)return o.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(ws(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var o=n.encode[e];return o?o[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var o=this,u;if(e instanceof QK&&(u=e),!u){var f=this.dimensions,h=jZ(e)||Zf(e)?new _ke(e,f.length):e;u=new QK;var A=Pm(f,function(p){return{type:o._dimInfos[p].type,property:p}});u.initData(h,A,n)}this._store=u,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,u.count()),this._dimSummary=wOt(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),o=n.start,u=n.end,f=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var h=o;h<u;h++){var A=h-o;this._nameList[h]=r[A],f&&m3(this,h)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var o=this._dimInfos[r[n]];o.ordinalMeta&&e.collectOrdinalMeta(o.storeDimIndex,o.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==py&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,o=n.getProvider();this._updateOrdinalMeta();var u=this._nameList,f=this._idList,h=o.getSource().sourceFormat,A=h===Wd;if(A&&!o.pure)for(var p=[],g=e;g<r;g++){var y=o.getItem(g,p);if(!this.hasItemOption&&MLt(y)&&(this.hasItemOption=!0),y){var _=y.name;u[g]==null&&_!=null&&(u[g]=tp(_,null));var b=y.id;f[g]==null&&b!=null&&(f[g]=tp(b,null))}}if(this._shouldMakeIdFromName())for(var g=e;g<r;g++)m3(this,g);MSe(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){kT(e)?Wr(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=FT(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),o=this._store.getOrdinalMeta(e);return o?o.categories[n]:n},t.prototype.getId=function(e){return i5(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,o=this._dimInfos[e];if(o)return n.get(o.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,o=this._dimInfos[e];if(o)return n.getByRawIndex(o.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,o=this._store;return Nn(e)?o.getValues(Pm(e,function(u){return n._getStoreDimIndex(u)}),r):o.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,o=r.length;n<o;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],o=n&&n[r];return o==null||isNaN(o)?LSe:o},t.prototype.indicesOfNearest=function(e,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),r,n)},t.prototype.each=function(e,r,n){ha(e)&&(n=r,r=e,e=[]);var o=n||this,u=Pm(NT(e),this._getStoreDimIndex,this);this._store.each(u,o?qo(r,o):r)},t.prototype.filterSelf=function(e,r,n){ha(e)&&(n=r,r=e,e=[]);var o=n||this,u=Pm(NT(e),this._getStoreDimIndex,this);return this._store=this._store.filter(u,o?qo(r,o):r),this},t.prototype.selectRange=function(e){var r=this,n={},o=gl(e);return jt(o,function(u){var f=r._getStoreDimIndex(u);n[f]=e[u]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){ha(e)&&(n=r,r=e,e=[]),n=n||this;var o=[];return this.each(e,function(){o.push(r&&r.apply(this,arguments))},n),o},t.prototype.map=function(e,r,n,o){var u=n||o||this,f=Pm(NT(e),this._getStoreDimIndex,this),h=UT(this);return h._store=this._store.map(f,u?qo(r,u):r),h},t.prototype.modify=function(e,r,n,o){var u=n||o||this,f=Pm(NT(e),this._getStoreDimIndex,this);this._store.modify(f,u?qo(r,u):r)},t.prototype.downSample=function(e,r,n,o){var u=UT(this);return u._store=this._store.downSample(this._getStoreDimIndex(e),r,n,o),u},t.prototype.minmaxDownSample=function(e,r){var n=UT(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=UT(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new zs(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new mOt(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return i5(e,n)},function(n){return i5(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},kT(e)?Wr(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],o=n&&n[r];return o??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,o=n[e];o||(o=n[e]={});var u=o[r];return u==null&&(u=this.getVisual(r),Nn(u)?u=u.slice():kT(u)&&(u=Wr({},u)),o[r]=u),u},t.prototype.setItemVisual=function(e,r,n){var o=this._itemVisuals[e]||{};this._itemVisuals[e]=o,kT(r)?Wr(o,r):o[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){kT(e)?Wr(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?Wr(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;VMt(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){jt(this._graphicEls,function(n,o){n&&e&&e.call(r,n,o)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Pm(this.dimensions,this._getDimInfo,this),this.hostModel)),g3(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];ha(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var o=n.apply(this,arguments);return r.apply(this,[o].concat(hZ(arguments)))})},t.internalField=function(){MSe=function(e){var r=e._invertedIndicesMap;jt(r,function(n,o){var u=e._dimInfos[o],f=u.ordinalMeta,h=e._store;if(f){n=r[o]=new COt(f.categories.length);for(var A=0;A<n.length;A++)n[A]=LSe;for(var A=0;A<h.count();A++)n[h.get(u.storeDimIndex,A)]=A}})},FT=function(e,r,n){return tp(e._getCategory(r,n),null)},i5=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=FT(e,e._idDimIdx,r)),n==null&&(n=TOt+r),n},NT=function(e){return Nn(e)||(e=e!=null?[e]:[]),e},UT=function(e){var r=new t(e._schema?e._schema:Pm(e.dimensions,e._getDimInfo,e),e.hostModel);return g3(r,e),r},g3=function(e,r){jt(EOt.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,jt(BOt,function(n){e[n]=Ba(r[n])}),e._calculationInfo=Wr({},r._calculationInfo)},m3=function(e,r){var n=e._nameList,o=e._idList,u=e._nameDimIdx,f=e._idDimIdx,h=n[r],A=o[r];if(h==null&&u!=null&&(n[r]=h=FT(e,u,r)),A==null&&f!=null&&(o[r]=A=FT(e,f,r)),A==null&&h!=null){var p=e._nameRepeatCount,g=p[h]=(p[h]||0)+1;A=h,g>1&&(A+="__ec__"+g),o[r]=A}}}(),t}();function bFe(t,e){jZ(t)||(t=yke(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],o=fa(),u=[],f=LOt(t,r,n,e.dimensionsCount),h=e.canOmitUnusedDimensions&&yFe(f),A=n===t.dimensionsDefine,p=A?mFe(t):gFe(n),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,f));for(var y=fa(g),_=new Eke(f),b=0;b<_.length;b++)_[b]=-1;function C(G){var j=_[G];if(j<0){var q=n[G],X=wi(q)?q:{name:q},Y=new lR,te=X.name;te!=null&&p.get(te)!=null&&(Y.name=Y.displayName=te),X.type!=null&&(Y.type=X.type),X.displayName!=null&&(Y.displayName=X.displayName);var K=u.length;return _[G]=K,Y.storeDimIndex=G,u.push(Y),Y}return u[j]}if(!h)for(var b=0;b<f;b++)C(b);y.each(function(G,j){var q=ff(G).slice();if(q.length===1&&!ri(q[0])&&q[0]<0){y.set(j,!1);return}var X=y.set(j,[]);jt(q,function(Y,te){var K=ri(Y)?p.get(Y):Y;K!=null&&K<f&&(X[te]=K,B(C(K),j,te))})});var T=0;jt(r,function(G){var j,q,X,Y;if(ri(G))j=G,Y={};else{Y=G,j=Y.name;var te=Y.ordinalMeta;Y.ordinalMeta=null,Y=Wr({},Y),Y.ordinalMeta=te,q=Y.dimsDef,X=Y.otherDims,Y.name=Y.coordDim=Y.coordDimIndex=Y.dimsDef=Y.otherDims=null}var K=y.get(j);if(K!==!1){if(K=ff(K),!K.length)for(var ce=0;ce<(q&&q.length||1);ce++){for(;T<f&&C(T).coordDim!=null;)T++;T<f&&K.push(T++)}jt(K,function(ae,le){var pe=C(ae);if(A&&Y.type!=null&&(pe.type=Y.type),B(ls(pe,Y),j,le),pe.name==null&&q){var ie=q[le];!wi(ie)&&(ie={name:ie}),pe.name=pe.displayName=ie.name,pe.defaultTooltip=ie.defaultTooltip}X&&ls(pe.otherDims,X)})}});function B(G,j,q){fke.get(j)!=null?G.otherDims[j]=q:(G.coordDim=j,G.coordDimIndex=q,o.set(j,!0))}var L=e.generateCoord,P=e.generateCoordCount,I=P!=null;P=L?P||1:0;var O=L||"value";function U(G){G.name==null&&(G.name=G.coordDim)}if(h)jt(u,function(G){U(G)}),u.sort(function(G,j){return G.storeDimIndex-j.storeDimIndex});else for(var N=0;N<f;N++){var H=C(N),z=H.coordDim;z==null&&(H.coordDim=MOt(O,o,I),H.coordDimIndex=0,(!L||P<=0)&&(H.isExtraCoord=!0),P--),U(H),H.type==null&&(Ake(t,N)===Hu.Must||H.isExtraCoord&&(H.otherDims.itemName!=null||H.otherDims.seriesName!=null))&&(H.type="ordinal")}return IOt(u),new vFe({source:t,dimensions:u,fullDimensionCount:f,dimensionOmitted:h})}function IOt(t){for(var e=fa(),r=0;r<t.length;r++){var n=t[r],o=n.name,u=e.get(o)||0;u>0&&(n.name=o+(u-1)),u++,e.set(o,u)}}function LOt(t,e,r,n){var o=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return jt(e,function(u){var f;wi(u)&&(f=u.dimsDef)&&(o=Math.max(o,f.length))}),o}function MOt(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var DOt=function(){function t(e){this.coordSysDims=[],this.axisMap=fa(),this.categoryAxisMap=fa(),this.coordSysName=e}return t}();function ROt(t){var e=t.get("coordinateSystem"),r=new DOt(e),n=POt[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var POt={cartesian2d:function(t,e,r,n){var o=t.getReferringComponents("xAxis",L1).models[0],u=t.getReferringComponents("yAxis",L1).models[0];e.coordSysDims=["x","y"],r.set("x",o),r.set("y",u),L_(o)&&(n.set("x",o),e.firstCategoryDimIndex=0),L_(u)&&(n.set("y",u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var o=t.getReferringComponents("singleAxis",L1).models[0];e.coordSysDims=["single"],r.set("single",o),L_(o)&&(n.set("single",o),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var o=t.getReferringComponents("polar",L1).models[0],u=o.findAxisModel("radiusAxis"),f=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",u),r.set("angle",f),L_(u)&&(n.set("radius",u),e.firstCategoryDimIndex=0),L_(f)&&(n.set("angle",f),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var o=t.ecModel,u=o.getComponent("parallel",t.get("parallelIndex")),f=e.coordSysDims=u.dimensions.slice();jt(u.parallelAxisIndex,function(h,A){var p=o.getComponent("parallelAxis",h),g=f[A];r.set(g,p),L_(p)&&(n.set(g,p),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=A))})}};function L_(t){return t.get("type")==="category"}function OOt(t,e,r){r=r||{};var n=r.byIndex,o=r.stackedCoordDimension,u,f,h;kOt(e)?u=e:(f=e.schema,u=f.dimensions,h=e.store);var A=!!(t&&t.get("stack")),p,g,y,_;if(jt(u,function(P,I){ri(P)&&(u[I]=P={name:P}),A&&!P.isExtraCoord&&(!n&&!p&&P.ordinalMeta&&(p=P),!g&&P.type!=="ordinal"&&P.type!=="time"&&(!o||o===P.coordDim)&&(g=P))}),g&&!n&&!p&&(n=!0),g){y="__\0ecstackresult_"+t.id,_="__\0ecstackedover_"+t.id,p&&(p.createInvertedIndices=!0);var b=g.coordDim,C=g.type,T=0;jt(u,function(P){P.coordDim===b&&T++});var B={name:y,coordDim:b,coordDimIndex:T,type:C,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:u.length},L={name:_,coordDim:_,coordDimIndex:T+1,type:C,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:u.length+1};f?(h&&(B.storeDimIndex=h.ensureCalculationDimension(_,C),L.storeDimIndex=h.ensureCalculationDimension(y,C)),f.appendCalculationDimension(B),f.appendCalculationDimension(L)):(u.push(B),u.push(L))}return{stackedDimension:g&&g.name,stackedByDimension:p&&p.name,isStackedByIndex:n,stackedOverDimension:_,stackResultDimension:y}}function kOt(t){return!pFe(t.schema)}function dO(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function FOt(t,e){var r=t.get("coordinateSystem"),n=GZ.get(r),o;return e&&e.coordSysDims&&(o=ra(e.coordSysDims,function(u){var f={name:u},h=e.axisMap.get(u);if(h){var A=h.get("type");f.type=bOt(A)}return f})),o||(o=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),o}function NOt(t,e,r){var n,o;return r&&jt(t,function(u,f){var h=u.coordDim,A=r.categoryAxisMap.get(h);A&&(n==null&&(n=f),u.ordinalMeta=A.getOrdinalMeta(),e&&(u.createInvertedIndices=!0)),u.otherDims.itemName!=null&&(o=!0)}),!o&&n!=null&&(t[n].otherDims.itemName=0),n}function UOt(t,e,r){r=r||{};var n=e.getSourceManager(),o,u=!1;o=n.getSource(),u=o.sourceFormat===Wd;var f=ROt(e),h=FOt(e,f),A=r.useEncodeDefaulter,p=ha(A)?A:A?Nl(O5t,h,e):null,g={coordDimensions:h,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!u},y=bFe(o,g),_=NOt(y.dimensions,r.createInvertedIndices,f),b=u?null:n.getSharedDataStore(y),C=OOt(e,{schema:y,store:b}),T=new wFe(y,e);T.setCalculationInfo(C);var B=_!=null&&HOt(o)?function(L,P,I,O){return O===_?I:this.defaultDimValueGetter(L,P,I,O)}:null;return T.hasItemOption=!1,T.initData(u?o:b,null,B),T}function HOt(t){if(t.sourceFormat===Wd){var e=QOt(t.data||[]);return!Nn(_B(e))}}function QOt(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var _Fe=typeof Float32Array<"u",VOt=_Fe?Float32Array:Array;function J_(t){return Nn(t)?_Fe?new Float32Array(t):t:new VOt(t)}function SFe(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function zOt(t){var e=t.get("interval");return e??"auto"}function GOt(t){return t.type==="category"&&zOt(t.getLabelModel())===0}var DSe=[],jOt={registerPreprocessor:hFe,registerProcessor:dFe,registerPostInit:hOt,registerPostUpdate:dOt,registerUpdateLifecycle:YZ,registerAction:dx,registerCoordinateSystem:AOt,registerLayout:vOt,registerVisual:ww,registerTransform:gOt,registerLoading:AFe,registerMap:pOt,registerImpl:$Pt,PRIORITY:sOt,ComponentModel:To,ComponentView:WA,SeriesModel:xg,ChartView:VA,registerComponentModel:function(t){To.registerClass(t)},registerComponentView:function(t){WA.registerClass(t)},registerSeriesModel:function(t){xg.registerClass(t)},registerChartView:function(t){VA.registerClass(t)},registerSubTypeDefaulter:function(t,e){To.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){_Lt(t,e)}};function U2(t){if(Nn(t)){jt(t,function(e){U2(e)});return}ss(DSe,t)>=0||(DSe.push(t),ha(t)&&(t={install:t}),t.install(jOt))}function xFe(t,e,r,n,o,u,f,h){var A=o-t,p=u-e,g=r-t,y=n-e,_=Math.sqrt(g*g+y*y);g/=_,y/=_;var b=A*g+p*y,C=b/_;C*=_;var T=f[0]=t+C*g,B=f[1]=e+C*y;return Math.sqrt((T-o)*(T-o)+(B-u)*(B-u))}var ay=new Hi,Us=new Hi,zu=new Hi,oy=new Hi,qv=new Hi,AO=[],lf=new Hi;function qOt(t,e){if(e<=180&&e>0){e=e/180*Math.PI,ay.fromArray(t[0]),Us.fromArray(t[1]),zu.fromArray(t[2]),Hi.sub(oy,ay,Us),Hi.sub(qv,zu,Us);var r=oy.len(),n=qv.len();if(!(r<.001||n<.001)){oy.scale(1/r),qv.scale(1/n);var o=oy.dot(qv),u=Math.cos(e);if(u<o){var f=xFe(Us.x,Us.y,zu.x,zu.y,ay.x,ay.y,AO);lf.fromArray(AO),lf.scaleAndAdd(qv,f/Math.tan(Math.PI-e));var h=zu.x!==Us.x?(lf.x-Us.x)/(zu.x-Us.x):(lf.y-Us.y)/(zu.y-Us.y);if(isNaN(h))return;h<0?Hi.copy(lf,Us):h>1&&Hi.copy(lf,zu),lf.toArray(t[1])}}}}function WOt(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,ay.fromArray(t[0]),Us.fromArray(t[1]),zu.fromArray(t[2]),Hi.sub(oy,Us,ay),Hi.sub(qv,zu,Us);var n=oy.len(),o=qv.len();if(!(n<.001||o<.001)){oy.scale(1/n),qv.scale(1/o);var u=oy.dot(e),f=Math.cos(r);if(u<f){var h=xFe(Us.x,Us.y,zu.x,zu.y,ay.x,ay.y,AO);lf.fromArray(AO);var A=Math.PI/2,p=Math.acos(qv.dot(e)),g=A+p-r;if(g>=A)Hi.copy(lf,zu);else{lf.scaleAndAdd(qv,h/Math.tan(Math.PI/2-g));var y=zu.x!==Us.x?(lf.x-Us.x)/(zu.x-Us.x):(lf.y-Us.y)/(zu.y-Us.y);if(isNaN(y))return;y<0?Hi.copy(lf,Us):y>1&&Hi.copy(lf,zu)}lf.toArray(t[1])}}}}function y3(t,e,r,n){var o=r==="normal",u=o?t:t.ensureState(r);u.ignore=e;var f=n.get("smooth");f&&f===!0&&(f=.3),u.shape=u.shape||{},f>0&&(u.shape.smooth=f);var h=n.getModel("lineStyle").getLineStyle();o?t.useStyle(h):u.style=h}function $Ot(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var o=hK(n[0],n[1]),u=hK(n[1],n[2]);if(!o||!u){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var f=Math.min(o,u)*r,h=pG([],n[1],n[0],f/o),A=pG([],n[1],n[2],f/u),p=pG([],h,A,.5);t.bezierCurveTo(h[0],h[1],h[0],h[1],p[0],p[1]),t.bezierCurveTo(A[0],A[1],A[0],A[1],n[2][0],n[2][1])}else for(var g=1;g<n.length;g++)t.lineTo(n[g][0],n[g][1])}function KOt(t,e,r){var n=t.getTextGuideLine(),o=t.getTextContent();if(!o){n&&t.removeTextGuideLine();return}for(var u=e.normal,f=u.get("show"),h=o.ignore,A=0;A<YP.length;A++){var p=YP[A],g=e[p],y=p==="normal";if(g){var _=g.get("show"),b=y?h:Ji(o.states[p]&&o.states[p].ignore,h);if(b||!Ji(_,f)){var C=y?n:n&&n.states[p];C&&(C.ignore=!0),n&&y3(n,!0,p,g);continue}n||(n=new CB,t.setTextGuideLine(n),!y&&(h||!f)&&y3(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),y3(n,!1,p,g)}}if(n){ls(n.style,r),n.style.fill=null;var T=u.get("showAbove"),B=t.textGuideLineConfig=t.textGuideLineConfig||{};B.showAbove=T||!1,n.buildPath=$Ot}}function YOt(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<Vd.length;n++){var o=Vd[n];r[o]=t.getModel([o,e])}return r}function XOt(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(!n.defaultAttr.ignore){var o=n.label,u=o.getComputedTransform(),f=o.getBoundingRect(),h=!u||u[1]<1e-5&&u[2]<1e-5,A=o.style.margin||0,p=f.clone();p.applyTransform(u),p.x-=A/2,p.y-=A/2,p.width+=A,p.height+=A;var g=h?new eO(f,u):null;e.push({label:o,labelLine:n.labelLine,rect:p,localRect:f,obb:g,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:h,transform:u})}}return e}function ZOt(t,e,r,n,o,u){var f=t.length;if(f<2)return;t.sort(function(N,H){return N.rect[e]-H.rect[e]});for(var h=0,A,p=!1,g=0;g<f;g++){var y=t[g],_=y.rect;A=_[e]-h,A<0&&(_[e]-=A,y.label[e]-=A,p=!0),h=_[e]+_[r]}var b=t[0],C=t[f-1],T,B;L(),T<0&&O(-T,.8),B<0&&O(B,.8),L(),P(T,B,1),P(B,T,-1),L(),T<0&&U(-T),B<0&&U(B);function L(){T=b.rect[e]-n,B=o-C.rect[e]-C.rect[r]}function P(N,H,z){if(N<0){var G=Math.min(H,-N);if(G>0){I(G*z,0,f);var j=G+N;j<0&&O(-j*z,1)}else O(-N*z,1)}}function I(N,H,z){N!==0&&(p=!0);for(var G=H;G<z;G++){var j=t[G],q=j.rect;q[e]+=N,j.label[e]+=N}}function O(N,H){for(var z=[],G=0,j=1;j<f;j++){var q=t[j-1].rect,X=Math.max(t[j].rect[e]-q[e]-q[r],0);z.push(X),G+=X}if(G){var Y=Math.min(Math.abs(N)/G,H);if(N>0)for(var j=0;j<f-1;j++){var te=z[j]*Y;I(te,0,j+1)}else for(var j=f-1;j>0;j--){var te=z[j-1]*Y;I(-te,j,f)}}}function U(N){var H=N<0?-1:1;N=Math.abs(N);for(var z=Math.ceil(N/(f-1)),G=0;G<f-1;G++)if(H>0?I(z,0,G+1):I(-z,f-G-1,f),N-=z,N<=0)return}return p}function JOt(t,e,r,n){return ZOt(t,"y","height",e,r)}function ekt(t){var e=[];t.sort(function(T,B){return B.priority-T.priority});var r=new ko(0,0,0,0);function n(T){if(!T.ignore){var B=T.ensureState("emphasis");B.ignore==null&&(B.ignore=!1)}T.ignore=!0}for(var o=0;o<t.length;o++){var u=t[o],f=u.axisAligned,h=u.localRect,A=u.transform,p=u.label,g=u.labelLine;r.copy(u.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var y=u.obb,_=!1,b=0;b<e.length;b++){var C=e[b];if(r.intersect(C.rect)){if(f&&C.axisAligned){_=!0;break}if(C.obb||(C.obb=new eO(C.localRect,C.transform)),y||(y=new eO(h,A)),y.intersect(C.obb)){_=!0;break}}}_?(n(p),g&&n(g)):(p.attr("ignore",u.defaultAttr.ignore),g&&g.attr("ignore",u.defaultAttr.labelGuideIgnore),e.push(u))}}var tkt=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){return UOt(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new hf,o=HS("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(o),o.setStyle(r.lineStyle);var u=this.getData().getVisual("symbol"),f=this.getData().getVisual("symbolRotate"),h=u==="none"?"circle":u,A=r.itemHeight*.8,p=HS(h,(r.itemWidth-A)/2,(r.itemHeight-A)/2,A,A,r.itemStyle.fill);n.add(p),p.setStyle(r.itemStyle);var g=r.iconRotate==="inherit"?f:r.iconRotate||0;return p.rotation=g*Math.PI/180,p.setOrigin([r.itemWidth/2,r.itemHeight/2]),h.indexOf("empty")>-1&&(p.style.stroke=p.style.fill,p.style.fill="#fff",p.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(xg);function CFe(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var o=US(t,e,r[0]);return o!=null?o+"":null}else if(n){for(var u=[],f=0;f<r.length;f++)u.push(US(t,e,r[f]));return u.join(" ")}}function rkt(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!Nn(e))return e+"";for(var n=[],o=0;o<r.length;o++){var u=t.getDimensionIndex(r[o]);u>=0&&n.push(e[u])}return n.join(" ")}var ZZ=function(t){ao(e,t);function e(r,n,o,u){var f=t.call(this)||this;return f.updateData(r,n,o,u),f}return e.prototype._createSymbol=function(r,n,o,u,f){this.removeAll();var h=HS(r,-1,-1,2,2,null,f);h.attr({z2:100,culling:!0,scaleX:u[0]/2,scaleY:u[1]/2}),h.drift=nkt,this._symbolType=r,this.add(h)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){XP(this.childAt(0))},e.prototype.downplay=function(){ZP(this.childAt(0))},e.prototype.setZ=function(r,n){var o=this.childAt(0);o.zlevel=r,o.z=n},e.prototype.setDraggable=function(r,n){var o=this.childAt(0);o.draggable=r,o.cursor=!n&&r?"move":o.cursor},e.prototype.updateData=function(r,n,o,u){this.silent=!1;var f=r.getItemVisual(n,"symbol")||"circle",h=r.hostModel,A=e.getSymbolSize(r,n),p=f!==this._symbolType,g=u&&u.disableAnimation;if(p){var y=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(f,r,n,A,y)}else{var _=this.childAt(0);_.silent=!1;var b={scaleX:A[0]/2,scaleY:A[1]/2};g?_.attr(b):ap(_,b,h,n),XOe(_)}if(this._updateCommon(r,n,A,o,u),p){var _=this.childAt(0);if(!g){var b={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:_.style.opacity}};_.scaleX=_.scaleY=0,_.style.opacity=0,vy(_,b,h,n)}}g&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,o,u,f){var h=this.childAt(0),A=r.hostModel,p,g,y,_,b,C,T,B,L;if(u&&(p=u.emphasisItemStyle,g=u.blurItemStyle,y=u.selectItemStyle,_=u.focus,b=u.blurScope,T=u.labelStatesModels,B=u.hoverScale,L=u.cursorStyle,C=u.emphasisDisabled),!u||r.hasItemOption){var P=u&&u.itemModel?u.itemModel:r.getItemModel(n),I=P.getModel("emphasis");p=I.getModel("itemStyle").getItemStyle(),y=P.getModel(["select","itemStyle"]).getItemStyle(),g=P.getModel(["blur","itemStyle"]).getItemStyle(),_=I.get("focus"),b=I.get("blurScope"),C=I.get("disabled"),T=Qk(P),B=I.getShallow("scale"),L=P.getShallow("cursor")}var O=r.getItemVisual(n,"symbolRotate");h.attr("rotation",(O||0)*Math.PI/180||0);var U=Wke(r.getItemVisual(n,"symbolOffset"),o);U&&(h.x=U[0],h.y=U[1]),L&&h.attr("cursor",L);var N=r.getItemVisual(n,"style"),H=N.fill;if(h instanceof Ly){var z=h.style;h.useStyle(Wr({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},N))}else h.__isEmptyBrush?h.useStyle(Wr({},N)):h.useStyle(N),h.style.decal=null,h.setColor(H,f&&f.symbolInnerColor),h.style.strokeNoScale=!0;var G=r.getItemVisual(n,"liftZ"),j=this._z2;G!=null?j==null&&(this._z2=h.z2,h.z2+=G):j!=null&&(h.z2=j,this._z2=null);var q=f&&f.useNameLabel;Hk(h,T,{labelFetcher:A,labelDataIndex:n,defaultText:X,inheritColor:H,defaultOpacity:N.opacity});function X(K){return q?r.getName(K):CFe(r,K)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var Y=h.ensureState("emphasis");Y.style=p,h.ensureState("select").style=y,h.ensureState("blur").style=g;var te=B==null||B===!0?Math.max(1.1,3/this._sizeY):isFinite(B)&&B>0?+B:1;Y.scaleX=this._sizeX*te,Y.scaleY=this._sizeY*te,this.setSymbolScale(1),JP(this,_,b,C)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,o){var u=this.childAt(0),f=go(this).dataIndex,h=o&&o.animation;if(this.silent=u.silent=!0,o&&o.fadeLabel){var A=u.getTextContent();A&&tO(A,{style:{opacity:0}},n,{dataIndex:f,removeOpt:h,cb:function(){u.removeTextContent()}})}else u.removeTextContent();tO(u,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:f,cb:r,removeOpt:h})},e.getSymbolSize=function(r,n){return MPt(r.getItemVisual(n,"symbolSize"))},e}(hf);function nkt(t,e){this.parent.drift(t,e)}function w3(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function RSe(t){return t!=null&&!wi(t)&&(t={isIgnore:t}),t||{}}function PSe(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Qk(e),cursorStyle:e.get("cursor")}}var ikt=function(){function t(e){this.group=new hf,this._SymbolCtor=e||ZZ}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=RSe(r);var n=this.group,o=e.hostModel,u=this._data,f=this._SymbolCtor,h=r.disableAnimation,A=PSe(e),p={disableAnimation:h},g=r.getSymbolPoint||function(y){return e.getItemLayout(y)};u||n.removeAll(),e.diff(u).add(function(y){var _=g(y);if(w3(e,_,y,r)){var b=new f(e,y,A,p);b.setPosition(_),e.setItemGraphicEl(y,b),n.add(b)}}).update(function(y,_){var b=u.getItemGraphicEl(_),C=g(y);if(!w3(e,C,y,r)){n.remove(b);return}var T=e.getItemVisual(y,"symbol")||"circle",B=b&&b.getSymbolType&&b.getSymbolType();if(!b||B&&B!==T)n.remove(b),b=new f(e,y,A,p),b.setPosition(C);else{b.updateData(e,y,A,p);var L={x:C[0],y:C[1]};h?b.attr(L):ap(b,L,o)}n.add(b),e.setItemGraphicEl(y,b)}).remove(function(y){var _=u.getItemGraphicEl(y);_&&_.fadeOut(function(){n.remove(_)},o)}).execute(),this._getSymbolPoint=g,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,o){var u=e._getSymbolPoint(o);n.setPosition(u),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=PSe(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=RSe(n);function o(A){A.isGroup||(A.incremental=!0,A.ensureState("emphasis").hoverLayer=!0)}for(var u=e.start;u<e.end;u++){var f=r.getItemLayout(u);if(w3(r,f,u,n)){var h=new this._SymbolCtor(r,u,this._seriesScope);h.traverse(o),h.setPosition(f),this.group.add(h),r.setItemGraphicEl(u,h),this._progressiveEls.push(h)}}},t.prototype.eachRendered=function(e){kZ(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(o){o.fadeOut(function(){r.remove(o)},n.hostModel)}):r.removeAll()},t}();function TFe(t,e,r){var n=t.getBaseAxis(),o=t.getOtherAxis(n),u=akt(o,r),f=n.dim,h=o.dim,A=e.mapDimension(h),p=e.mapDimension(f),g=h==="x"||h==="radius"?1:0,y=ra(t.dimensions,function(C){return e.mapDimension(C)}),_=!1,b=e.getCalculationInfo("stackResultDimension");return dO(e,y[0])&&(_=!0,y[0]=b),dO(e,y[1])&&(_=!0,y[1]=b),{dataDimsForPoint:y,valueStart:u,valueAxisDim:h,baseAxisDim:f,stacked:!!_,valueDim:A,baseDim:p,baseDataOffset:g,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function akt(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:ws(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function EFe(t,e,r,n){var o=NaN;t.stacked&&(o=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(o)&&(o=t.valueStart);var u=t.baseDataOffset,f=[];return f[u]=r.get(t.baseDim,n),f[1-u]=o,e.dataToPoint(f)}function okt(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,o){r.push({cmd:"=",idx:o,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function skt(t,e,r,n,o,u,f,h){for(var A=okt(t,e),p=[],g=[],y=[],_=[],b=[],C=[],T=[],B=TFe(o,e,f),L=t.getLayout("points")||[],P=e.getLayout("points")||[],I=0;I<A.length;I++){var O=A[I],U=!0,N=void 0,H=void 0;switch(O.cmd){case"=":N=O.idx*2,H=O.idx1*2;var z=L[N],G=L[N+1],j=P[H],q=P[H+1];(isNaN(z)||isNaN(G))&&(z=j,G=q),p.push(z,G),g.push(j,q),y.push(r[N],r[N+1]),_.push(n[H],n[H+1]),T.push(e.getRawIndex(O.idx1));break;case"+":var X=O.idx,Y=B.dataDimsForPoint,te=o.dataToPoint([e.get(Y[0],X),e.get(Y[1],X)]);H=X*2,p.push(te[0],te[1]),g.push(P[H],P[H+1]);var K=EFe(B,o,e,X);y.push(K[0],K[1]),_.push(n[H],n[H+1]),T.push(e.getRawIndex(X));break;case"-":U=!1}U&&(b.push(O),C.push(C.length))}C.sort(function(_e,Ce){return T[_e]-T[Ce]});for(var ce=p.length,ae=J_(ce),le=J_(ce),pe=J_(ce),ie=J_(ce),he=[],I=0;I<C.length;I++){var re=C[I],oe=I*2,ye=re*2;ae[oe]=p[ye],ae[oe+1]=p[ye+1],le[oe]=g[ye],le[oe+1]=g[ye+1],pe[oe]=y[ye],pe[oe+1]=y[ye+1],ie[oe]=_[ye],ie[oe+1]=_[ye+1],he[I]=b[re]}return{current:ae,next:le,stackedOnCurrent:pe,stackedOnNext:ie,status:he}}var Om=Math.min,km=Math.max;function z1(t,e){return isNaN(t)||isNaN(e)}function eY(t,e,r,n,o,u,f,h,A){for(var p,g,y,_,b,C,T=r,B=0;B<n;B++){var L=e[T*2],P=e[T*2+1];if(T>=o||T<0)break;if(z1(L,P)){if(A){T+=u;continue}break}if(T===r)t[u>0?"moveTo":"lineTo"](L,P),y=L,_=P;else{var I=L-p,O=P-g;if(I*I+O*O<.5){T+=u;continue}if(f>0){for(var U=T+u,N=e[U*2],H=e[U*2+1];N===L&&H===P&&B<n;)B++,U+=u,T+=u,N=e[U*2],H=e[U*2+1],L=e[T*2],P=e[T*2+1],I=L-p,O=P-g;var z=B+1;if(A)for(;z1(N,H)&&z<n;)z++,U+=u,N=e[U*2],H=e[U*2+1];var G=.5,j=0,q=0,X=void 0,Y=void 0;if(z>=n||z1(N,H))b=L,C=P;else{j=N-p,q=H-g;var te=L-p,K=N-L,ce=P-g,ae=H-P,le=void 0,pe=void 0;if(h==="x"){le=Math.abs(te),pe=Math.abs(K);var ie=j>0?1:-1;b=L-ie*le*f,C=P,X=L+ie*pe*f,Y=P}else if(h==="y"){le=Math.abs(ce),pe=Math.abs(ae);var he=q>0?1:-1;b=L,C=P-he*le*f,X=L,Y=P+he*pe*f}else le=Math.sqrt(te*te+ce*ce),pe=Math.sqrt(K*K+ae*ae),G=pe/(pe+le),b=L-j*f*(1-G),C=P-q*f*(1-G),X=L+j*f*G,Y=P+q*f*G,X=Om(X,km(N,L)),Y=Om(Y,km(H,P)),X=km(X,Om(N,L)),Y=km(Y,Om(H,P)),j=X-L,q=Y-P,b=L-j*le/pe,C=P-q*le/pe,b=Om(b,km(p,L)),C=Om(C,km(g,P)),b=km(b,Om(p,L)),C=km(C,Om(g,P)),j=L-b,q=P-C,X=L+j*pe/le,Y=P+q*pe/le}t.bezierCurveTo(y,_,b,C,L,P),y=X,_=Y}else t.lineTo(L,P)}p=L,g=P,T+=u}return B}var BFe=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),lkt=function(t){ao(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new BFe},e.prototype.buildPath=function(r,n){var o=n.points,u=0,f=o.length/2;if(n.connectNulls){for(;f>0&&z1(o[f*2-2],o[f*2-1]);f--);for(;u<f&&z1(o[u*2],o[u*2+1]);u++);}for(;u<f;)u+=eY(r,o,u,f,f,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var o=this.path,u=o.data,f=lw.CMD,h,A,p=n==="x",g=[],y=0;y<u.length;){var _=u[y++],b=void 0,C=void 0,T=void 0,B=void 0,L=void 0,P=void 0,I=void 0;switch(_){case f.M:h=u[y++],A=u[y++];break;case f.L:if(b=u[y++],C=u[y++],I=p?(r-h)/(b-h):(r-A)/(C-A),I<=1&&I>=0){var O=p?(C-A)*I+A:(b-h)*I+h;return p?[r,O]:[O,r]}h=b,A=C;break;case f.C:b=u[y++],C=u[y++],T=u[y++],B=u[y++],L=u[y++],P=u[y++];var U=p?VP(h,b,T,L,r,g):VP(A,C,B,P,r,g);if(U>0)for(var N=0;N<U;N++){var H=g[N];if(H<=1&&H>=0){var O=p?Wu(A,C,B,P,H):Wu(h,b,T,L,H);return p?[r,O]:[O,r]}}h=L,A=P;break}}},e}(Fo),ukt=function(t){ao(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(BFe),ckt=function(t){ao(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new ukt},e.prototype.buildPath=function(r,n){var o=n.points,u=n.stackedOnPoints,f=0,h=o.length/2,A=n.smoothMonotone;if(n.connectNulls){for(;h>0&&z1(o[h*2-2],o[h*2-1]);h--);for(;f<h&&z1(o[f*2],o[f*2+1]);f++);}for(;f<h;){var p=eY(r,o,f,h,h,1,n.smooth,A,n.connectNulls);eY(r,u,f+p-1,p,h,-1,n.stackedOnSmooth,A,n.connectNulls),f+=p+1,r.closePath()}},e}(Fo);function fkt(t,e,r,n,o){var u=t.getArea(),f=u.x,h=u.y,A=u.width,p=u.height,g=r.get(["lineStyle","width"])||0;f-=g/2,h-=g/2,A+=g,p+=g,A=Math.ceil(A),f!==Math.floor(f)&&(f=Math.floor(f),A++);var y=new Rc({shape:{x:f,y:h,width:A,height:p}});if(e){var _=t.getBaseAxis(),b=_.isHorizontal(),C=_.inverse;b?(C&&(y.shape.x+=A),y.shape.width=0):(C||(y.shape.y+=p),y.shape.height=0);var T=ha(o)?function(B){o(B,y)}:null;vy(y,{shape:{width:A,height:p,x:f,y:h}},r,null,n,T)}return y}function hkt(t,e,r){var n=t.getArea(),o=I1(n.r0,1),u=I1(n.r,1),f=new cx({shape:{cx:I1(t.cx,1),cy:I1(t.cy,1),r0:o,r:u,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var h=t.getBaseAxis().dim==="angle";h?f.shape.endAngle=n.startAngle:f.shape.r=o,vy(f,{shape:{endAngle:n.endAngle,r:u}},r)}return f}function dkt(t,e){return t.type===e}function OSe(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function kSe(t){for(var e=1/0,r=1/0,n=-1/0,o=-1/0,u=0;u<t.length;){var f=t[u++],h=t[u++];isNaN(f)||(e=Math.min(f,e),n=Math.max(f,n)),isNaN(h)||(r=Math.min(h,r),o=Math.max(h,o))}return[[e,r],[n,o]]}function FSe(t,e){var r=kSe(t),n=r[0],o=r[1],u=kSe(e),f=u[0],h=u[1];return Math.max(Math.abs(n[0]-f[0]),Math.abs(n[1]-f[1]),Math.abs(o[0]-h[0]),Math.abs(o[1]-h[1]))}function NSe(t){return ws(t)?t:t?.5:0}function Akt(t,e,r){if(!r.valueDim)return[];for(var n=e.count(),o=J_(n*2),u=0;u<n;u++){var f=EFe(r,t,e,u);o[u*2]=f[0],o[u*2+1]=f[1]}return o}function Fm(t,e,r,n,o){var u=r.getBaseAxis(),f=u.dim==="x"||u.dim==="radius"?0:1,h=[],A=0,p=[],g=[],y=[],_=[];if(o){for(A=0;A<t.length;A+=2){var b=e||t;!isNaN(b[A])&&!isNaN(b[A+1])&&_.push(t[A],t[A+1])}t=_}for(A=0;A<t.length-2;A+=2)switch(y[0]=t[A+2],y[1]=t[A+3],g[0]=t[A],g[1]=t[A+1],h.push(g[0],g[1]),n){case"end":p[f]=y[f],p[1-f]=g[1-f],h.push(p[0],p[1]);break;case"middle":var C=(g[f]+y[f])/2,T=[];p[f]=T[f]=C,p[1-f]=g[1-f],T[1-f]=y[1-f],h.push(p[0],p[1]),h.push(T[0],T[1]);break;default:p[f]=g[f],p[1-f]=y[1-f],h.push(p[0],p[1])}return h.push(t[A++],t[A++]),h}function vkt(t,e){var r=[],n=t.length,o,u;function f(g,y,_){var b=g.coord,C=(_-b)/(y.coord-b),T=KIt(C,[g.color,y.color]);return{coord:_,color:T}}for(var h=0;h<n;h++){var A=t[h],p=A.coord;if(p<0)o=A;else if(p>e){u?r.push(f(u,A,e)):o&&r.push(f(o,A,0),f(o,A,e));break}else o&&(r.push(f(o,A,0)),o=null),r.push(A),u=A}return r}function pkt(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())&&e.type==="cartesian2d"){for(var o,u,f=n.length-1;f>=0;f--){var h=t.getDimensionInfo(n[f].dimension);if(o=h&&h.coordDim,o==="x"||o==="y"){u=n[f];break}}if(u){var A=e.getAxis(o),p=ra(u.stops,function(I){return{coord:A.toGlobalCoord(A.dataToCoord(I.value)),color:I.color}}),g=p.length,y=u.outerColors.slice();g&&p[0].coord>p[g-1].coord&&(p.reverse(),y.reverse());var _=vkt(p,o==="x"?r.getWidth():r.getHeight()),b=_.length;if(!b&&g)return p[0].coord<0?y[1]?y[1]:p[g-1].color:y[0]?y[0]:p[0].color;var C=10,T=_[0].coord-C,B=_[b-1].coord+C,L=B-T;if(L<.001)return"transparent";jt(_,function(I){I.offset=(I.coord-T)/L}),_.push({offset:b?_[b-1].offset:.5,color:y[1]||"transparent"}),_.unshift({offset:b?_[0].offset:.5,color:y[0]||"transparent"});var P=new KOe(0,0,0,0,_,!0);return P[o]=T,P[o+"2"]=B,P}}}function gkt(t,e,r){var n=t.get("showAllSymbol"),o=n==="auto";if(!(n&&!o)){var u=r.getAxesByScale("ordinal")[0];if(u&&!(o&&mkt(u,e))){var f=e.mapDimension(u.dim),h={};return jt(u.getViewLabels(),function(A){var p=u.scale.getRawOrdinalNumber(A.tickValue);h[p]=1}),function(A){return!h.hasOwnProperty(e.get(f,A))}}}}function mkt(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var o=e.count(),u=Math.max(1,Math.round(o/5)),f=0;f<o;f+=u)if(ZZ.getSymbolSize(e,f)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function ykt(t,e){return isNaN(t)||isNaN(e)}function wkt(t){for(var e=t.length/2;e>0&&ykt(t[e*2-2],t[e*2-1]);e--);return e-1}function USe(t,e){return[t[e*2],t[e*2+1]]}function bkt(t,e,r){for(var n=t.length/2,o=r==="x"?0:1,u,f,h=0,A=-1,p=0;p<n;p++)if(f=t[p*2+o],!(isNaN(f)||isNaN(t[p*2+1-o]))){if(p===0){u=f;continue}if(u<=e&&f>=e||u>=e&&f<=e){A=p;break}h=p,u=f}return{range:[h,A],t:(e-u)/(f-u)}}function IFe(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Vd.length;e++)if(t.get([Vd[e],"endLabel","show"]))return!0;return!1}function b3(t,e,r,n){if(dkt(e,"cartesian2d")){var o=n.getModel("endLabel"),u=o.get("valueAnimation"),f=n.getData(),h={lastFrameIndex:0},A=IFe(n)?function(b,C){t._endLabelOnDuring(b,C,f,h,u,o,e)}:null,p=e.getBaseAxis().isHorizontal(),g=fkt(e,r,n,function(){var b=t._endLabel;b&&r&&h.originalX!=null&&b.attr({x:h.originalX,y:h.originalY})},A);if(!n.get("clip",!0)){var y=g.shape,_=Math.max(y.width,y.height);p?(y.y-=_,y.height+=_*2):(y.x-=_,y.width+=_*2)}return A&&A(1,g),g}else return hkt(e,r,n)}function _kt(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),o=r.inverse,u=n?o?"right":"left":"center",f=n?"middle":o?"top":"bottom";return{normal:{align:t.get("align")||u,verticalAlign:t.get("verticalAlign")||f}}}var Skt=function(t){ao(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new hf,n=new ikt;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=qo(this._changePolyState,this)},e.prototype.render=function(r,n,o){var u=r.coordinateSystem,f=this.group,h=r.getData(),A=r.getModel("lineStyle"),p=r.getModel("areaStyle"),g=h.getLayout("points")||[],y=u.type==="polar",_=this._coordSys,b=this._symbolDraw,C=this._polyline,T=this._polygon,B=this._lineGroup,L=!n.ssr&&r.get("animation"),P=!p.isEmpty(),I=p.get("origin"),O=TFe(u,h,I),U=P&&Akt(u,h,O),N=r.get("showSymbol"),H=r.get("connectNulls"),z=N&&!y&&gkt(r,h,u),G=this._data;G&&G.eachItemGraphicEl(function(_e,Ce){_e.__temp&&(f.remove(_e),G.setItemGraphicEl(Ce,null))}),N||b.remove(),f.add(B);var j=y?!1:r.get("step"),q;u&&u.getArea&&r.get("clip",!0)&&(q=u.getArea(),q.width!=null?(q.x-=.1,q.y-=.1,q.width+=.2,q.height+=.2):q.r0&&(q.r0-=.5,q.r+=.5)),this._clipShapeForSymbol=q;var X=pkt(h,u,o)||h.getVisual("style")[h.getVisual("drawType")];if(!(C&&_.type===u.type&&j===this._step))N&&b.updateData(h,{isIgnore:z,clipShape:q,disableAnimation:!0,getSymbolPoint:function(_e){return[g[_e*2],g[_e*2+1]]}}),L&&this._initSymbolLabelAnimation(h,u,q),j&&(U&&(U=Fm(U,g,u,j,H)),g=Fm(g,null,u,j,H)),C=this._newPolyline(g),P?T=this._newPolygon(g,U):T&&(B.remove(T),T=this._polygon=null),y||this._initOrUpdateEndLabel(r,u,uw(X)),B.setClipPath(b3(this,u,!0,r));else{P&&!T?T=this._newPolygon(g,U):T&&!P&&(B.remove(T),T=this._polygon=null),y||this._initOrUpdateEndLabel(r,u,uw(X));var Y=B.getClipPath();if(Y){var te=b3(this,u,!1,r);vy(Y,{shape:te.shape},r)}else B.setClipPath(b3(this,u,!0,r));N&&b.updateData(h,{isIgnore:z,clipShape:q,disableAnimation:!0,getSymbolPoint:function(_e){return[g[_e*2],g[_e*2+1]]}}),(!OSe(this._stackedOnPoints,U)||!OSe(this._points,g))&&(L?this._doUpdateAnimation(h,U,u,o,j,I,H):(j&&(U&&(U=Fm(U,g,u,j,H)),g=Fm(g,null,u,j,H)),C.setShape({points:g}),T&&T.setShape({points:g,stackedOnPoints:U})))}var K=r.getModel("emphasis"),ce=K.get("focus"),ae=K.get("blurScope"),le=K.get("disabled");if(C.useStyle(ls(A.getLineStyle(),{fill:"none",stroke:X,lineJoin:"bevel"})),PK(C,r,"lineStyle"),C.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var pe=C.getState("emphasis").style;pe.lineWidth=+C.style.lineWidth+1}go(C).seriesIndex=r.seriesIndex,JP(C,ce,ae,le);var ie=NSe(r.get("smooth")),he=r.get("smoothMonotone");if(C.setShape({smooth:ie,smoothMonotone:he,connectNulls:H}),T){var re=h.getCalculationInfo("stackedOnSeries"),oe=0;T.useStyle(ls(p.getAreaStyle(),{fill:X,opacity:.7,lineJoin:"bevel",decal:h.getVisual("style").decal})),re&&(oe=NSe(re.get("smooth"))),T.setShape({smooth:ie,stackedOnSmooth:oe,smoothMonotone:he,connectNulls:H}),PK(T,r,"areaStyle"),go(T).seriesIndex=r.seriesIndex,JP(T,ce,ae,le)}var ye=this._changePolyState;h.eachItemGraphicEl(function(_e){_e&&(_e.onHoverStateChange=ye)}),this._polyline.onHoverStateChange=ye,this._data=h,this._coordSys=u,this._stackedOnPoints=U,this._points=g,this._step=j,this._valueOrigin=I,r.get("triggerLineEvent")&&(this.packEventData(r,C),T&&this.packEventData(r,T))},e.prototype.packEventData=function(r,n){go(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,o,u){var f=r.getData(),h=sw(f,u);if(this._changePolyState("emphasis"),!(h instanceof Array)&&h!=null&&h>=0){var A=f.getLayout("points"),p=f.getItemGraphicEl(h);if(!p){var g=A[h*2],y=A[h*2+1];if(isNaN(g)||isNaN(y)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(g,y))return;var _=r.get("zlevel")||0,b=r.get("z")||0;p=new ZZ(f,h),p.x=g,p.y=y,p.setZ(_,b);var C=p.getSymbolPath().getTextContent();C&&(C.zlevel=_,C.z=b,C.z2=this._polyline.z2+1),p.__temp=!0,f.setItemGraphicEl(h,p),p.stopSymbolAnimation(!0),this.group.add(p)}p.highlight()}else VA.prototype.highlight.call(this,r,n,o,u)},e.prototype.downplay=function(r,n,o,u){var f=r.getData(),h=sw(f,u);if(this._changePolyState("normal"),h!=null&&h>=0){var A=f.getItemGraphicEl(h);A&&(A.__temp?(f.setItemGraphicEl(h,null),this.group.remove(A)):A.downplay())}else VA.prototype.downplay.call(this,r,n,o,u)},e.prototype._changePolyState=function(r){var n=this._polygon;i_e(this._polyline,r),n&&i_e(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new lkt({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new ckt({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(o),this._polygon=o,o},e.prototype._initSymbolLabelAnimation=function(r,n,o){var u,f,h=n.getBaseAxis(),A=h.inverse;n.type==="cartesian2d"?(u=h.isHorizontal(),f=!1):n.type==="polar"&&(u=h.dim==="angle",f=!0);var p=r.hostModel,g=p.get("animationDuration");ha(g)&&(g=g(null));var y=p.get("animationDelay")||0,_=ha(y)?y(null):y;r.eachItemGraphicEl(function(b,C){var T=b;if(T){var B=[b.x,b.y],L=void 0,P=void 0,I=void 0;if(o)if(f){var O=o,U=n.pointToCoord(B);u?(L=O.startAngle,P=O.endAngle,I=-U[1]/180*Math.PI):(L=O.r0,P=O.r,I=U[0])}else{var N=o;u?(L=N.x,P=N.x+N.width,I=b.x):(L=N.y+N.height,P=N.y,I=b.y)}var H=P===L?0:(I-L)/(P-L);A&&(H=1-H);var z=ha(y)?y(C):g*H+_,G=T.getSymbolPath(),j=G.getTextContent();T.attr({scaleX:0,scaleY:0}),T.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:z}),j&&j.animateFrom({style:{opacity:0}},{duration:300,delay:z}),G.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,o){var u=r.getModel("endLabel");if(IFe(r)){var f=r.getData(),h=this._polyline,A=f.getLayout("points");if(!A){h.removeTextContent(),this._endLabel=null;return}var p=this._endLabel;p||(p=this._endLabel=new Yu({z2:200}),p.ignoreClip=!0,h.setTextContent(this._endLabel),h.disableLabelAnimation=!0);var g=wkt(A);g>=0&&(Hk(h,Qk(r,"endLabel"),{inheritColor:o,labelFetcher:r,labelDataIndex:g,defaultText:function(y,_,b){return b!=null?rkt(f,b):CFe(f,y)},enableTextSetter:!0},_kt(u,n)),h.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,o,u,f,h,A){var p=this._endLabel,g=this._polyline;if(p){r<1&&u.originalX==null&&(u.originalX=p.x,u.originalY=p.y);var y=o.getLayout("points"),_=o.hostModel,b=_.get("connectNulls"),C=h.get("precision"),T=h.get("distance")||0,B=A.getBaseAxis(),L=B.isHorizontal(),P=B.inverse,I=n.shape,O=P?L?I.x:I.y+I.height:L?I.x+I.width:I.y,U=(L?T:0)*(P?-1:1),N=(L?0:-T)*(P?-1:1),H=L?"x":"y",z=bkt(y,O,H),G=z.range,j=G[1]-G[0],q=void 0;if(j>=1){if(j>1&&!b){var X=USe(y,G[0]);p.attr({x:X[0]+U,y:X[1]+N}),f&&(q=_.getRawValue(G[0]))}else{var X=g.getPointOn(O,H);X&&p.attr({x:X[0]+U,y:X[1]+N});var Y=_.getRawValue(G[0]),te=_.getRawValue(G[1]);f&&(q=GLt(o,C,Y,te,z.t))}u.lastFrameIndex=G[0]}else{var K=r===1||u.lastFrameIndex>0?G[0]:0,X=USe(y,K);f&&(q=_.getRawValue(K)),p.attr({x:X[0]+U,y:X[1]+N})}if(f){var ce=rke(p);typeof ce.setLabelText=="function"&&ce.setLabelText(q)}}},e.prototype._doUpdateAnimation=function(r,n,o,u,f,h,A){var p=this._polyline,g=this._polygon,y=r.hostModel,_=skt(this._data,r,this._stackedOnPoints,n,this._coordSys,o,this._valueOrigin),b=_.current,C=_.stackedOnCurrent,T=_.next,B=_.stackedOnNext;if(f&&(C=Fm(_.stackedOnCurrent,_.current,o,f,A),b=Fm(_.current,null,o,f,A),B=Fm(_.stackedOnNext,_.next,o,f,A),T=Fm(_.next,null,o,f,A)),FSe(b,T)>3e3||g&&FSe(C,B)>3e3){p.stopAnimation(),p.setShape({points:T}),g&&(g.stopAnimation(),g.setShape({points:T,stackedOnPoints:B}));return}p.shape.__points=_.current,p.shape.points=b;var L={shape:{points:T}};_.current!==b&&(L.shape.__points=_.next),p.stopAnimation(),ap(p,L,y),g&&(g.setShape({points:b,stackedOnPoints:C}),g.stopAnimation(),ap(g,{shape:{stackedOnPoints:B}},y),p.shape.points!==g.shape.points&&(g.shape.points=p.shape.points));for(var P=[],I=_.status,O=0;O<I.length;O++){var U=I[O].cmd;if(U==="="){var N=r.getItemGraphicEl(I[O].idx1);N&&P.push({el:N,ptIdx:O})}}p.animators&&p.animators.length&&p.animators[0].during(function(){g&&g.dirtyShape();for(var H=p.shape.__points,z=0;z<P.length;z++){var G=P[z].el,j=P[z].ptIdx*2;G.x=H[j],G.y=H[j+1],G.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,o=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),o&&o.eachItemGraphicEl(function(u,f){u.__temp&&(n.remove(u),o.setItemGraphicEl(f,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(VA);function xkt(t,e){return{seriesType:t,plan:kke(),reset:function(r){var n=r.getData(),o=r.coordinateSystem;if(r.pipelineContext,!!o){var u=ra(o.dimensions,function(y){return n.mapDimension(y)}).slice(0,2),f=u.length,h=n.getCalculationInfo("stackResultDimension");dO(n,u[0])&&(u[0]=h),dO(n,u[1])&&(u[1]=h);var A=n.getStore(),p=n.getDimensionIndex(u[0]),g=n.getDimensionIndex(u[1]);return f&&{progress:function(y,_){for(var b=y.end-y.start,C=J_(b*f),T=[],B=[],L=y.start,P=0;L<y.end;L++){var I=void 0;if(f===1){var O=A.get(p,L);I=o.dataToPoint(O,null,B)}else T[0]=A.get(p,L),T[1]=A.get(g,L),I=o.dataToPoint(T,null,B);C[P++]=I[0],C[P++]=I[1]}_.setLayout("points",C)}}}}}}var Ckt={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},Tkt=function(t){return Math.round(t.length/2)};function Ekt(t){return{seriesType:t,reset:function(e,r,n){var o=e.getData(),u=e.get("sampling"),f=e.coordinateSystem,h=o.count();if(h>10&&f.type==="cartesian2d"&&u){var A=f.getBaseAxis(),p=f.getOtherAxis(A),g=A.getExtent(),y=n.getDevicePixelRatio(),_=Math.abs(g[1]-g[0])*(y||1),b=Math.round(h/_);if(isFinite(b)&&b>1){u==="lttb"?e.setData(o.lttbDownSample(o.mapDimension(p.dim),1/b)):u==="minmax"&&e.setData(o.minmaxDownSample(o.mapDimension(p.dim),1/b));var C=void 0;ri(u)?C=Ckt[u]:ha(u)&&(C=u),C&&e.setData(o.downSample(o.mapDimension(p.dim),1/b,C,Tkt))}}}}}function xQt(t){t.registerChartView(Skt),t.registerSeriesModel(tkt),t.registerLayout(xkt("line")),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Ekt("line"))}function a5(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Nn(n)||(n=[n,n,n,n]);var o=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ra(n,function(u){return NS(u,o)})}}var HSe=Math.PI*2,o5=Math.PI/180;function LFe(t,e){return R2(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function MFe(t,e){var r=LFe(t,e),n=t.get("center"),o=t.get("radius");Nn(o)||(o=[0,o]);var u=lu(r.width,e.getWidth()),f=lu(r.height,e.getHeight()),h=Math.min(u,f),A=lu(o[0],h/2),p=lu(o[1],h/2),g,y,_=t.coordinateSystem;if(_){var b=_.dataToPoint(n);g=b[0]||0,y=b[1]||0}else Nn(n)||(n=[n,n]),g=lu(n[0],u)+r.x,y=lu(n[1],f)+r.y;return{cx:g,cy:y,r0:A,r:p}}function Bkt(t,e,r){e.eachSeriesByType(t,function(n){var o=n.getData(),u=o.mapDimension("value"),f=LFe(n,r),h=MFe(n,r),A=h.cx,p=h.cy,g=h.r,y=h.r0,_=-n.get("startAngle")*o5,b=n.get("endAngle"),C=n.get("padAngle")*o5;b=b==="auto"?_-HSe:-b*o5;var T=n.get("minAngle")*o5,B=T+C,L=0;o.each(u,function(ae){!isNaN(ae)&&L++});var P=o.getSum(u),I=Math.PI/(P||L)*2,O=n.get("clockwise"),U=n.get("roseType"),N=n.get("stillShowZeroSum"),H=o.getDataExtent(u);H[0]=0;var z=O?1:-1,G=[_,b],j=z*C/2;BOe(G,!O),_=G[0],b=G[1];var q=DFe(n);q.startAngle=_,q.endAngle=b,q.clockwise=O;var X=Math.abs(b-_),Y=X,te=0,K=_;if(o.setLayout({viewRect:f,r:g}),o.each(u,function(ae,le){var pe;if(isNaN(ae)){o.setItemLayout(le,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:O,cx:A,cy:p,r0:y,r:U?NaN:g});return}U!=="area"?pe=P===0&&N?I:ae*I:pe=X/L,pe<B?(pe=B,Y-=B):te+=ae;var ie=K+z*pe,he=0,re=0;C>pe?(he=K+z*pe/2,re=he):(he=K+j,re=ie-j),o.setItemLayout(le,{angle:pe,startAngle:he,endAngle:re,clockwise:O,cx:A,cy:p,r0:y,r:U?xLt(ae,H,[y,g]):g}),K=ie}),Y<HSe&&L)if(Y<=.001){var ce=X/L;o.each(u,function(ae,le){if(!isNaN(ae)){var pe=o.getItemLayout(le);pe.angle=ce;var ie=0,he=0;ce<C?(ie=_+z*(le+1/2)*ce,he=ie):(ie=_+z*le*ce+j,he=_+z*(le+1)*ce-j),pe.startAngle=ie,pe.endAngle=he}})}else I=Y/te,K=_,o.each(u,function(ae,le){if(!isNaN(ae)){var pe=o.getItemLayout(le),ie=pe.angle===B?B:ae*I,he=0,re=0;ie<C?(he=K+z*ie/2,re=he):(he=K+j,re=K+z*ie-j),pe.startAngle=he,pe.endAngle=re,K+=z*ie}})})}var DFe=hu();function Ikt(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var o=e.getData();o.filterSelf(function(u){for(var f=o.getName(u),h=0;h<n.length;h++)if(!n[h].isSelected(f))return!1;return!0})}}}}var Lkt=Math.PI/180;function QSe(t,e,r,n,o,u,f,h,A,p){if(t.length<2)return;function g(T){for(var B=T.rB,L=B*B,P=0;P<T.list.length;P++){var I=T.list[P],O=Math.abs(I.label.y-r),U=n+I.len,N=U*U,H=Math.sqrt(Math.abs((1-O*O/L)*N)),z=e+(H+I.len2)*o,G=z-I.label.x,j=I.targetTextWidth-G*o;RFe(I,j,!0),I.label.x=z}}function y(T){for(var B={list:[],maxY:0},L={list:[],maxY:0},P=0;P<T.length;P++)if(T[P].labelAlignTo==="none"){var I=T[P],O=I.label.y>r?L:B,U=Math.abs(I.label.y-r);if(U>=O.maxY){var N=I.label.x-e-I.len2*o,H=n+I.len,z=Math.abs(N)<H?Math.sqrt(U*U/(1-N*N/H/H)):H;O.rB=z,O.maxY=U}O.list.push(I)}g(B),g(L)}for(var _=t.length,b=0;b<_;b++)if(t[b].position==="outer"&&t[b].labelAlignTo==="labelLine"){var C=t[b].label.x-p;t[b].linePoints[1][0]+=C,t[b].label.x=p}JOt(t,A,A+f)&&y(t)}function Mkt(t,e,r,n,o,u,f,h){for(var A=[],p=[],g=Number.MAX_VALUE,y=-Number.MAX_VALUE,_=0;_<t.length;_++){var b=t[_].label;_3(t[_])||(b.x<e?(g=Math.min(g,b.x),A.push(t[_])):(y=Math.max(y,b.x),p.push(t[_])))}for(var _=0;_<t.length;_++){var C=t[_];if(!_3(C)&&C.linePoints){if(C.labelStyleWidth!=null)continue;var b=C.label,T=C.linePoints,B=void 0;C.labelAlignTo==="edge"?b.x<e?B=T[2][0]-C.labelDistance-f-C.edgeDistance:B=f+o-C.edgeDistance-T[2][0]-C.labelDistance:C.labelAlignTo==="labelLine"?b.x<e?B=g-f-C.bleedMargin:B=f+o-y-C.bleedMargin:b.x<e?B=b.x-f-C.bleedMargin:B=f+o-b.x-C.bleedMargin,C.targetTextWidth=B,RFe(C,B)}}QSe(p,e,r,n,1,o,u,f,h,y),QSe(A,e,r,n,-1,o,u,f,h,g);for(var _=0;_<t.length;_++){var C=t[_];if(!_3(C)&&C.linePoints){var b=C.label,T=C.linePoints,L=C.labelAlignTo==="edge",P=b.style.padding,I=P?P[1]+P[3]:0,O=b.style.backgroundColor?0:I,U=C.rect.width+O,N=T[1][0]-T[2][0];L?b.x<e?T[2][0]=f+C.edgeDistance+U+C.labelDistance:T[2][0]=f+o-C.edgeDistance-U-C.labelDistance:(b.x<e?T[2][0]=b.x+C.labelDistance:T[2][0]=b.x-C.labelDistance,T[1][0]=T[2][0]+N),T[1][1]=T[2][1]=b.y}}}function RFe(t,e,r){if(r===void 0&&(r=!1),t.labelStyleWidth==null){var n=t.label,o=n.style,u=t.rect,f=o.backgroundColor,h=o.padding,A=h?h[1]+h[3]:0,p=o.overflow,g=u.width+(f?0:A);if(e<g||r){var y=u.height;if(p&&p.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-A);var _=n.getBoundingRect();n.setStyle("width",Math.ceil(_.width)),n.setStyle("backgroundColor",f)}else{var b=e-A,C=e<g?b:r?b>t.unconstrainedWidth?null:b:null;n.setStyle("width",C)}var T=n.getBoundingRect();u.width=T.width;var B=(n.style.margin||0)+2.1;u.height=T.height+B,u.y-=(u.height-y)/2}}}function _3(t){return t.position==="center"}function Dkt(t){var e=t.getData(),r=[],n,o,u=!1,f=(t.get("minShowLabelAngle")||0)*Lkt,h=e.getLayout("viewRect"),A=e.getLayout("r"),p=h.width,g=h.x,y=h.y,_=h.height;function b(N){N.ignore=!0}function C(N){if(!N.ignore)return!0;for(var H in N.states)if(N.states[H].ignore===!1)return!0;return!1}e.each(function(N){var H=e.getItemGraphicEl(N),z=H.shape,G=H.getTextContent(),j=H.getTextGuideLine(),q=e.getItemModel(N),X=q.getModel("label"),Y=X.get("position")||q.get(["emphasis","label","position"]),te=X.get("distanceToLabelLine"),K=X.get("alignTo"),ce=lu(X.get("edgeDistance"),p),ae=X.get("bleedMargin"),le=q.getModel("labelLine"),pe=le.get("length");pe=lu(pe,p);var ie=le.get("length2");if(ie=lu(ie,p),Math.abs(z.endAngle-z.startAngle)<f){jt(G.states,b),G.ignore=!0,j&&(jt(j.states,b),j.ignore=!0);return}if(C(G)){var he=(z.startAngle+z.endAngle)/2,re=Math.cos(he),oe=Math.sin(he),ye,_e,Ce,ne;n=z.cx,o=z.cy;var xe=Y==="inside"||Y==="inner";if(Y==="center")ye=z.cx,_e=z.cy,ne="center";else{var De=(xe?(z.r+z.r0)/2*re:z.r*re)+n,ze=(xe?(z.r+z.r0)/2*oe:z.r*oe)+o;if(ye=De+re*3,_e=ze+oe*3,!xe){var Ye=De+re*(pe+A-z.r),Ne=ze+oe*(pe+A-z.r),yt=Ye+(re<0?-1:1)*ie,Ue=Ne;K==="edge"?ye=re<0?g+ce:g+p-ce:ye=yt+(re<0?-te:te),_e=Ue,Ce=[[De,ze],[Ye,Ne],[yt,Ue]]}ne=xe?"center":K==="edge"?re>0?"right":"left":re>0?"left":"right"}var ue=Math.PI,Qe=0,qe=X.get("rotate");if(ws(qe))Qe=qe*(ue/180);else if(Y==="center")Qe=0;else if(qe==="radial"||qe===!0){var Re=re<0?-he+ue:-he;Qe=Re}else if(qe==="tangential"&&Y!=="outside"&&Y!=="outer"){var Me=Math.atan2(re,oe);Me<0&&(Me=ue*2+Me);var Ge=oe>0;Ge&&(Me=ue+Me),Qe=Me-ue}if(u=!!Qe,G.x=ye,G.y=_e,G.rotation=Qe,G.setStyle({verticalAlign:"middle"}),xe){G.setStyle({align:ne});var Be=G.states.select;Be&&(Be.x+=G.x,Be.y+=G.y)}else{var Pe=G.getBoundingRect().clone();Pe.applyTransform(G.getComputedTransform());var ke=(G.style.margin||0)+2.1;Pe.y-=ke/2,Pe.height+=ke,r.push({label:G,labelLine:j,position:Y,len:pe,len2:ie,minTurnAngle:le.get("minTurnAngle"),maxSurfaceAngle:le.get("maxSurfaceAngle"),surfaceNormal:new Hi(re,oe),linePoints:Ce,textAlign:ne,labelDistance:te,labelAlignTo:K,edgeDistance:ce,bleedMargin:ae,rect:Pe,unconstrainedWidth:Pe.width,labelStyleWidth:G.style.width})}H.setTextConfig({inside:xe})}}),!u&&t.get("avoidLabelOverlap")&&Mkt(r,n,o,A,p,_,g,y);for(var T=0;T<r.length;T++){var B=r[T],L=B.label,P=B.labelLine,I=isNaN(L.x)||isNaN(L.y);if(L){L.setStyle({align:B.textAlign}),I&&(jt(L.states,b),L.ignore=!0);var O=L.states.select;O&&(O.x+=L.x,O.y+=L.y)}if(P){var U=B.linePoints;I||!U?(jt(P.states,b),P.ignore=!0):(qOt(U,B.minTurnAngle),WOt(U,B.surfaceNormal,B.maxSurfaceAngle),P.setShape({points:U}),L.__hostTarget.textGuideLineConfig={anchor:new Hi(U[0][0],U[0][1])})}}}var Rkt=function(t){ao(e,t);function e(r,n,o){var u=t.call(this)||this;u.z2=2;var f=new Yu;return u.setTextContent(f),u.updateData(r,n,o,!0),u}return e.prototype.updateData=function(r,n,o,u){var f=this,h=r.hostModel,A=r.getItemModel(n),p=A.getModel("emphasis"),g=r.getItemLayout(n),y=Wr(a5(A.getModel("itemStyle"),g,!0),g);if(isNaN(y.startAngle)){f.setShape(y);return}if(u){f.setShape(y);var _=h.getShallow("animationType");h.ecModel.ssr?(vy(f,{scaleX:0,scaleY:0},h,{dataIndex:n,isFrom:!0}),f.originX=y.cx,f.originY=y.cy):_==="scale"?(f.shape.r=g.r0,vy(f,{shape:{r:g.r}},h,n)):o!=null?(f.setShape({startAngle:o,endAngle:o}),vy(f,{shape:{startAngle:g.startAngle,endAngle:g.endAngle}},h,n)):(f.shape.endAngle=g.startAngle,ap(f,{shape:{endAngle:g.endAngle}},h,n))}else XOe(f),ap(f,{shape:y},h,n);f.useStyle(r.getItemVisual(n,"style")),PK(f,A);var b=(g.startAngle+g.endAngle)/2,C=h.get("selectedOffset"),T=Math.cos(b)*C,B=Math.sin(b)*C,L=A.getShallow("cursor");L&&f.attr("cursor",L),this._updateLabel(h,r,n),f.ensureState("emphasis").shape=Wr({r:g.r+(p.get("scale")&&p.get("scaleSize")||0)},a5(p.getModel("itemStyle"),g)),Wr(f.ensureState("select"),{x:T,y:B,shape:a5(A.getModel(["select","itemStyle"]),g)}),Wr(f.ensureState("blur"),{shape:a5(A.getModel(["blur","itemStyle"]),g)});var P=f.getTextGuideLine(),I=f.getTextContent();P&&Wr(P.ensureState("select"),{x:T,y:B}),Wr(I.ensureState("select"),{x:T,y:B}),JP(this,p.get("focus"),p.get("blurScope"),p.get("disabled"))},e.prototype._updateLabel=function(r,n,o){var u=this,f=n.getItemModel(o),h=f.getModel("labelLine"),A=n.getItemVisual(o,"style"),p=A&&A.fill,g=A&&A.opacity;Hk(u,Qk(f),{labelFetcher:n.hostModel,labelDataIndex:o,inheritColor:p,defaultOpacity:g,defaultText:r.getFormattedLabel(o,"normal")||n.getName(o)});var y=u.getTextContent();u.setTextConfig({position:null,rotation:null}),y.attr({z2:10});var _=r.get(["label","position"]);if(_!=="outside"&&_!=="outer")u.removeTextGuideLine();else{var b=this.getTextGuideLine();b||(b=new CB,this.setTextGuideLine(b)),KOt(this,YOt(f),{stroke:p,opacity:zE(h.get(["lineStyle","opacity"]),g,1)})}},e}(cx),Pkt=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,o,u){var f=r.getData(),h=this._data,A=this.group,p;if(!h&&f.count()>0){for(var g=f.getItemLayout(0),y=1;isNaN(g&&g.startAngle)&&y<f.count();++y)g=f.getItemLayout(y);g&&(p=g.startAngle)}if(this._emptyCircleSector&&A.remove(this._emptyCircleSector),f.count()===0&&r.get("showEmptyCircle")){var _=DFe(r),b=new cx({shape:Wr(MFe(r,o),_)});b.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=b,A.add(b)}f.diff(h).add(function(C){var T=new Rkt(f,C,p);f.setItemGraphicEl(C,T),A.add(T)}).update(function(C,T){var B=h.getItemGraphicEl(T);B.updateData(f,C,p),B.off("click"),A.add(B),f.setItemGraphicEl(C,B)}).remove(function(C){var T=h.getItemGraphicEl(C);YOe(T,r,C)}).execute(),Dkt(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=f)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var o=n.getData(),u=o.getItemLayout(0);if(u){var f=r[0]-u.cx,h=r[1]-u.cy,A=Math.sqrt(f*f+h*h);return A<=u.r&&A>=u.r0}},e.type="pie",e}(VA);function Okt(t,e,r){e=Nn(e)&&{coordDimensions:e}||Wr({encodeDefine:t.getEncode()},e);var n=t.getSource(),o=bFe(n,e).dimensions,u=new wFe(o,t);return u.initData(n,r),u}var kkt=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}(),Fkt=hu(),Nkt=function(t){ao(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new kkt(qo(this.getData,this),qo(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Okt(this,{coordDimensions:["value"],encodeDefaulter:Nl(k5t,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),o=Fkt(n),u=o.seats;if(!u){var f=[];n.each(n.mapDimension("value"),function(A){f.push(A)}),u=o.seats=TLt(f,n.hostModel.get("percentPrecision"))}var h=t.prototype.getDataParams.call(this,r);return h.percent=u[r]||0,h.$vars.push("percent"),h},e.prototype._defaultLabelLine=function(r){EK(r,"labelLine",["show"]);var n=r.labelLine,o=r.emphasis.labelLine;n.show=n.show&&r.label.show,o.show=o.show&&r.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(xg);function Ukt(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(o){var u=n.mapDimension("value"),f=n.get(u,o);return!(ws(f)&&!isNaN(f)&&f<0)})}}}function CQt(t){t.registerChartView(Pkt),t.registerSeriesModel(Nkt),mPt("pie",t.registerAction),t.registerLayout(Nl(Bkt,"pie")),t.registerProcessor(Ikt("pie")),t.registerProcessor(Ukt("pie"))}function VSe(t,e,r){r=r||{};var n=t.coordinateSystem,o=e.axis,u={},f=o.getAxesOnZeroOf()[0],h=o.position,A=f?"onZero":h,p=o.dim,g=n.getRect(),y=[g.x,g.x+g.width,g.y,g.y+g.height],_={left:0,right:1,top:0,bottom:1,onZero:2},b=e.get("offset")||0,C=p==="x"?[y[2]-b,y[3]+b]:[y[0]-b,y[1]+b];if(f){var T=f.toGlobalCoord(f.dataToCoord(0));C[_.onZero]=Math.max(Math.min(T,C[1]),C[0])}u.position=[p==="y"?C[_[A]]:y[0],p==="x"?C[_[A]]:y[3]],u.rotation=Math.PI/2*(p==="x"?0:1);var B={top:-1,bottom:1,left:-1,right:1};u.labelDirection=u.tickDirection=u.nameDirection=B[h],u.labelOffset=f?C[_[h]]-C[_.onZero]:0,e.get(["axisTick","inside"])&&(u.tickDirection=-u.tickDirection),I2(r.labelInside,e.get(["axisLabel","inside"]))&&(u.labelDirection=-u.labelDirection);var L=e.get(["axisLabel","rotate"]);return u.labelRotate=A==="top"?-L:L,u.z2=1,u}var sy=Math.PI,G1=function(){function t(e,r){this.group=new hf,this.opt=r,this.axisModel=e,ls(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new hf({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(e){return!!zSe[e]},t.prototype.add=function(e){zSe[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,r,n){var o=gOe(r-e),u,f;return WP(o)?(f=n>0?"top":"bottom",u="center"):WP(o-sy)?(f=n>0?"bottom":"top",u="center"):(f="middle",o>0&&o<sy?u=n>0?"right":"left":u=n>0?"left":"right"),{rotation:o,textAlign:u,textVerticalAlign:f}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),zSe={axisLine:function(t,e,r,n){var o=e.get(["axisLine","show"]);if(o==="auto"&&t.handleAutoShown&&(o=t.handleAutoShown("axisLine")),!!o){var u=e.axis.getExtent(),f=n.transform,h=[u[0],0],A=[u[1],0],p=h[0]>A[0];f&&(ep(h,h,f),ep(A,A,f));var g=Wr({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),y=new fx({shape:{x1:h[0],y1:h[1],x2:A[0],y2:A[1]},style:g,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});RZ(y.shape,y.style.lineWidth),y.anid="line",r.add(y);var _=e.get(["axisLine","symbol"]);if(_!=null){var b=e.get(["axisLine","symbolSize"]);ri(_)&&(_=[_,_]),(ri(b)||ws(b))&&(b=[b,b]);var C=Wke(e.get(["axisLine","symbolOffset"])||0,b),T=b[0],B=b[1];jt([{rotate:t.rotation+Math.PI/2,offset:C[0],r:0},{rotate:t.rotation-Math.PI/2,offset:C[1],r:Math.sqrt((h[0]-A[0])*(h[0]-A[0])+(h[1]-A[1])*(h[1]-A[1]))}],function(L,P){if(_[P]!=="none"&&_[P]!=null){var I=HS(_[P],-T/2,-B/2,T,B,g.stroke,!0),O=L.r+L.offset,U=p?A:h;I.attr({rotation:L.rotate,x:U[0]+O*Math.cos(t.rotation),y:U[1]-O*Math.sin(t.rotation),silent:!0,z2:11}),r.add(I)}})}}},axisTickLabel:function(t,e,r,n){var o=Vkt(r,n,e,t),u=Gkt(r,n,e,t);if(Qkt(e,u,o),zkt(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var f=XOt(ra(u,function(h){return{label:h,priority:h.z2,defaultAttr:{ignore:h.ignore}}}));ekt(f)}},axisName:function(t,e,r,n){var o=I2(t.axisName,e.get("name"));if(o){var u=e.get("nameLocation"),f=t.nameDirection,h=e.getModel("nameTextStyle"),A=e.get("nameGap")||0,p=e.axis.getExtent(),g=p[0]>p[1]?-1:1,y=[u==="start"?p[0]-g*A:u==="end"?p[1]+g*A:(p[0]+p[1])/2,jSe(u)?t.labelOffset+f*A:0],_,b=e.get("nameRotate");b!=null&&(b=b*sy/180);var C;jSe(u)?_=G1.innerTextLayout(t.rotation,b??t.rotation,f):(_=Hkt(t.rotation,u,b||0,p),C=t.axisNameAvailableWidth,C!=null&&(C=Math.abs(C/Math.sin(_.rotation)),!isFinite(C)&&(C=null)));var T=h.getFont(),B=e.get("nameTruncate",!0)||{},L=B.ellipsis,P=I2(t.nameTruncateMaxWidth,B.maxWidth,C),I=new Yu({x:y[0],y:y[1],rotation:_.rotation,silent:G1.isLabelSilent(e),style:xy(h,{text:o,font:T,overflow:"truncate",width:P,ellipsis:L,fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:h.get("align")||_.textAlign,verticalAlign:h.get("verticalAlign")||_.textVerticalAlign}),z2:1});if(Nk({el:I,componentModel:e,itemName:o}),I.__fullText=o,I.anid="name",e.get("triggerEvent")){var O=G1.makeAxisEventDataBase(e);O.targetType="axisName",O.name=o,go(I).eventData=O}n.add(I),I.updateTransform(),r.add(I),I.decomposeTransform()}}};function Hkt(t,e,r,n){var o=gOe(r-t),u,f,h=n[0]>n[1],A=e==="start"&&!h||e!=="start"&&h;return WP(o-sy/2)?(f=A?"bottom":"top",u="center"):WP(o-sy*1.5)?(f=A?"top":"bottom",u="center"):(f="middle",o<sy*1.5&&o>sy/2?u=A?"left":"right":u=A?"right":"left"),{rotation:o,textAlign:u,textVerticalAlign:f}}function Qkt(t,e,r){if(!GOt(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),o=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var u=e[0],f=e[1],h=e[e.length-1],A=e[e.length-2],p=r[0],g=r[1],y=r[r.length-1],_=r[r.length-2];n===!1?(vd(u),vd(p)):GSe(u,f)&&(n?(vd(f),vd(g)):(vd(u),vd(p))),o===!1?(vd(h),vd(y)):GSe(A,h)&&(o?(vd(A),vd(_)):(vd(h),vd(y)))}}function vd(t){t&&(t.ignore=!0)}function GSe(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var o=AZ([]);return vZ(o,o,-t.rotation),r.applyTransform(gS([],o,t.getLocalTransform())),n.applyTransform(gS([],o,e.getLocalTransform())),r.intersect(n)}}function jSe(t){return t==="middle"||t==="center"}function PFe(t,e,r,n,o){for(var u=[],f=[],h=[],A=0;A<t.length;A++){var p=t[A].coord;f[0]=p,f[1]=0,h[0]=p,h[1]=r,e&&(ep(f,f,e),ep(h,h,e));var g=new fx({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:n,z2:2,autoBatch:!0,silent:!0});RZ(g.shape,g.style.lineWidth),g.anid=o+"_"+t[A].tickValue,u.push(g)}return u}function Vkt(t,e,r,n){var o=r.axis,u=r.getModel("axisTick"),f=u.get("show");if(f==="auto"&&n.handleAutoShown&&(f=n.handleAutoShown("axisTick")),!(!f||o.scale.isBlank())){for(var h=u.getModel("lineStyle"),A=n.tickDirection*u.get("length"),p=o.getTicksCoords(),g=PFe(p,e.transform,A,ls(h.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),y=0;y<g.length;y++)t.add(g[y]);return g}}function zkt(t,e,r,n){var o=r.axis,u=r.getModel("minorTick");if(!(!u.get("show")||o.scale.isBlank())){var f=o.getMinorTicksCoords();if(f.length)for(var h=u.getModel("lineStyle"),A=n*u.get("length"),p=ls(h.getLineStyle(),ls(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),g=0;g<f.length;g++)for(var y=PFe(f[g],e.transform,A,p,"minorticks_"+g),_=0;_<y.length;_++)t.add(y[_])}}function Gkt(t,e,r,n){var o=r.axis,u=I2(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!u||o.scale.isBlank())){var f=r.getModel("axisLabel"),h=f.get("margin"),A=o.getViewLabels(),p=(I2(n.labelRotate,f.get("rotate"))||0)*sy/180,g=G1.innerTextLayout(n.rotation,p,n.labelDirection),y=r.getCategories&&r.getCategories(!0),_=[],b=G1.isLabelSilent(r),C=r.get("triggerEvent");return jt(A,function(T,B){var L=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(T.tickValue):T.tickValue,P=T.formattedLabel,I=T.rawLabel,O=f;if(y&&y[L]){var U=y[L];wi(U)&&U.textStyle&&(O=new zs(U.textStyle,f,r.ecModel))}var N=O.getTextColor()||r.get(["axisLine","lineStyle","color"]),H=o.dataToCoord(L),z=O.getShallow("align",!0)||g.textAlign,G=Ji(O.getShallow("alignMinLabel",!0),z),j=Ji(O.getShallow("alignMaxLabel",!0),z),q=O.getShallow("verticalAlign",!0)||O.getShallow("baseline",!0)||g.textVerticalAlign,X=Ji(O.getShallow("verticalAlignMinLabel",!0),q),Y=Ji(O.getShallow("verticalAlignMaxLabel",!0),q),te=new Yu({x:H,y:n.labelOffset+n.labelDirection*h,rotation:g.rotation,silent:b,z2:10+(T.level||0),style:xy(O,{text:P,align:B===0?G:B===A.length-1?j:z,verticalAlign:B===0?X:B===A.length-1?Y:q,fill:ha(N)?N(o.type==="category"?I:o.type==="value"?L+"":L,B):N})});if(te.anid="label_"+L,Nk({el:te,componentModel:r,itemName:P,formatterParamsExtra:{isTruncated:function(){return te.isTruncated},value:I,tickIndex:B}}),C){var K=G1.makeAxisEventDataBase(r);K.targetType="axisLabel",K.value=I,K.tickIndex=B,o.type==="category"&&(K.dataIndex=L),go(te).eventData=K}e.add(te),te.updateTransform(),_.push(te),t.add(te),te.decomposeTransform()}),_}}function jkt(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return qkt(r,t,e),r.seriesInvolved&&$kt(r,t),r}function qkt(t,e,r){var n=e.getComponent("tooltip"),o=e.getComponent("axisPointer"),u=o.get("link",!0)||[],f=[];jt(r.getCoordinateSystems(),function(h){if(!h.axisPointerEnabled)return;var A=H2(h.model),p=t.coordSysAxesInfo[A]={};t.coordSysMap[A]=h;var g=h.model,y=g.getModel("tooltip",n);if(jt(h.getAxes(),Nl(T,!1,null)),h.getTooltipAxes&&n&&y.get("show")){var _=y.get("trigger")==="axis",b=y.get(["axisPointer","type"])==="cross",C=h.getTooltipAxes(y.get(["axisPointer","axis"]));(_||b)&&jt(C.baseAxes,Nl(T,b?"cross":!0,_)),b&&jt(C.otherAxes,Nl(T,"cross",!1))}function T(B,L,P){var I=P.model.getModel("axisPointer",o),O=I.get("show");if(!(!O||O==="auto"&&!B&&!tY(I))){L==null&&(L=I.get("triggerTooltip")),I=B?Wkt(P,y,o,e,B,L):I;var U=I.get("snap"),N=I.get("triggerEmphasis"),H=H2(P.model),z=L||U||P.type==="category",G=t.axesInfo[H]={key:H,axis:P,coordSys:h,axisPointerModel:I,triggerTooltip:L,triggerEmphasis:N,involveSeries:z,snap:U,useHandle:tY(I),seriesModels:[],linkGroup:null};p[H]=G,t.seriesInvolved=t.seriesInvolved||z;var j=Kkt(u,P);if(j!=null){var q=f[j]||(f[j]={axesInfo:{}});q.axesInfo[H]=G,q.mapper=u[j].mapper,G.linkGroup=q}}}})}function Wkt(t,e,r,n,o,u){var f=e.getModel("axisPointer"),h=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],A={};jt(h,function(_){A[_]=Ba(f.get(_))}),A.snap=t.type!=="category"&&!!u,f.get("type")==="cross"&&(A.type="line");var p=A.label||(A.label={});if(p.show==null&&(p.show=!1),o==="cross"){var g=f.get(["label","show"]);if(p.show=g??!0,!u){var y=A.lineStyle=f.get("crossStyle");y&&ls(p,y.textStyle)}}return t.model.getModel("axisPointer",new zs(A,r,n))}function $kt(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,o=r.get(["tooltip","trigger"],!0),u=r.get(["tooltip","show"],!0);!n||o==="none"||o===!1||o==="item"||u===!1||r.get(["axisPointer","show"],!0)===!1||jt(t.coordSysAxesInfo[H2(n.model)],function(f){var h=f.axis;n.getAxis(h.dim)===h&&(f.seriesModels.push(r),f.seriesDataCount==null&&(f.seriesDataCount=0),f.seriesDataCount+=r.getData().count())})})}function Kkt(t,e){for(var r=e.model,n=e.dim,o=0;o<t.length;o++){var u=t[o]||{};if(S3(u[n+"AxisId"],r.id)||S3(u[n+"AxisIndex"],r.componentIndex)||S3(u[n+"AxisName"],r.name))return o}}function S3(t,e){return t==="all"||Nn(t)&&ss(t,e)>=0||t===e}function Ykt(t){var e=JZ(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,o=r.option,u=r.get("status"),f=r.get("value");f!=null&&(f=n.parse(f));var h=tY(r);u==null&&(o.status=h?"show":"hide");var A=n.getExtent().slice();A[0]>A[1]&&A.reverse(),(f==null||f>A[1])&&(f=A[1]),f<A[0]&&(f=A[0]),o.value=f,h&&(o.status=e.axis.scale.isBlank()?"hide":"show")}}function JZ(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[H2(t)]}function Xkt(t){var e=JZ(t);return e&&e.axisPointerModel}function tY(t){return!!t.get(["handle","show"])}function H2(t){return t.type+"||"+t.id}var qSe={},Zkt=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,o,u){this.axisPointerClass&&Ykt(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,o,!0)},e.prototype.updateAxisPointer=function(r,n,o,u){this._doUpdateAxisPointerClass(r,o,!1)},e.prototype.remove=function(r,n){var o=this._axisPointer;o&&o.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,o){var u=e.getAxisPointerClass(this.axisPointerClass);if(u){var f=Xkt(r);f?(this._axisPointer||(this._axisPointer=new u)).render(r,f,n,o):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){qSe[r]=n},e.getAxisPointerClass=function(r){return r&&qSe[r]},e.type="axis",e}(WA),C1=hu(),WSe=Ba,x3=qo,Jkt=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,o){var u=r.get("value"),f=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!o&&this._lastValue===u&&this._lastStatus===f)){this._lastValue=u,this._lastStatus=f;var h=this._group,A=this._handle;if(!f||f==="hide"){h&&h.hide(),A&&A.hide();return}h&&h.show(),A&&A.show();var p={};this.makeElOption(p,u,e,r,n);var g=p.graphicKey;g!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=g;var y=this._moveAnimation=this.determineAnimation(e,r);if(!h)h=this._group=new hf,this.createPointerEl(h,p,e,r),this.createLabelEl(h,p,e,r),n.getZr().add(h);else{var _=Nl($Se,r,y);this.updatePointerEl(h,p,_),this.updateLabelEl(h,p,_,r)}YSe(h,r,!0),this._renderHandle(u)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),o=e.axis,u=o.type==="category",f=r.get("snap");if(!f&&!u)return!1;if(n==="auto"||n==null){var h=this.animationThreshold;if(u&&o.getBandWidth()>h)return!0;if(f){var A=JZ(e).seriesDataCount,p=o.getExtent();return Math.abs(p[0]-p[1])/A>h}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,o,u){},t.prototype.createPointerEl=function(e,r,n,o){var u=r.pointer;if(u){var f=C1(e).pointerEl=new e5t[u.type](WSe(r.pointer));e.add(f)}},t.prototype.createLabelEl=function(e,r,n,o){if(r.label){var u=C1(e).labelEl=new Yu(WSe(r.label));e.add(u),KSe(u,o)}},t.prototype.updatePointerEl=function(e,r,n){var o=C1(e).pointerEl;o&&r.pointer&&(o.setStyle(r.pointer.style),n(o,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,o){var u=C1(e).labelEl;u&&(u.setStyle(r.label.style),n(u,{x:r.label.x,y:r.label.y}),KSe(u,o))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),o=this._handle,u=r.getModel("handle"),f=r.get("status");if(!u.get("show")||!f||f==="hide"){o&&n.remove(o),this._handle=null;return}var h;this._handle||(h=!0,o=this._handle=OZ(u.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(p){YPe(p.event)},onmousedown:x3(this._onHandleDragMove,this,0,0),drift:x3(this._onHandleDragMove,this),ondragend:x3(this._onHandleDragEnd,this)}),n.add(o)),YSe(o,r,!1),o.setStyle(u.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var A=u.get("size");Nn(A)||(A=[A,A]),o.scaleX=A[0]/2,o.scaleY=A[1]/2,Uke(this,"_doDispatchAxisPointer",u.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,h)}},t.prototype._moveHandleToValue=function(e,r){$Se(this._axisPointerModel,!r&&this._moveAnimation,this._handle,C3(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var o=this.updateHandleTransform(C3(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=o,n.stopAnimation(),n.attr(C3(o)),C1(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,o=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),o&&r.remove(o),this._group=null,this._handle=null,this._payloadInfo=null),jK(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();function $Se(t,e,r,n){OFe(C1(r).lastProp,n)||(C1(r).lastProp=n,e?ap(r,n,t):(r.stopAnimation(),r.attr(n)))}function OFe(t,e){if(wi(t)&&wi(e)){var r=!0;return jt(e,function(n,o){r=r&&OFe(t[o],n)}),!!r}else return t===e}function KSe(t,e){t[e.get(["label","show"])?"show":"hide"]()}function C3(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function YSe(t,e,r){var n=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(u){u.type!=="group"&&(n!=null&&(u.z=n),o!=null&&(u.zlevel=o),u.silent=r)})}function eFt(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function tFt(t,e,r,n,o){var u=r.get("value"),f=kFe(u,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),h=r.getModel("label"),A=zk(h.get("padding")||0),p=h.getFont(),g=hOe(f,p),y=o.position,_=g.width+A[1]+A[3],b=g.height+A[0]+A[2],C=o.align;C==="right"&&(y[0]-=_),C==="center"&&(y[0]-=_/2);var T=o.verticalAlign;T==="bottom"&&(y[1]-=b),T==="middle"&&(y[1]-=b/2),rFt(y,_,b,n);var B=h.get("backgroundColor");(!B||B==="auto")&&(B=e.get(["axisLine","lineStyle","color"])),t.label={x:y[0],y:y[1],style:xy(h,{text:f,font:p,fill:h.getTextColor(),padding:A,backgroundColor:B}),z2:10}}function rFt(t,e,r,n){var o=n.getWidth(),u=n.getHeight();t[0]=Math.min(t[0]+e,o)-e,t[1]=Math.min(t[1]+r,u)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function kFe(t,e,r,n,o){t=e.scale.parse(t);var u=e.scale.getLabel({value:t},{precision:o.precision}),f=o.formatter;if(f){var h={value:SFe(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};jt(n,function(A){var p=r.getSeriesByIndex(A.seriesIndex),g=A.dataIndexInside,y=p&&p.getDataParams(g);y&&h.seriesData.push(y)}),ri(f)?u=f.replace("{value}",u):ha(f)&&(u=f(h))}return u}function FFe(t,e,r){var n=pS();return vZ(n,n,r.rotation),pK(n,n,r.position),PZ([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function nFt(t,e,r,n,o,u){var f=G1.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=o.get(["label","margin"]),tFt(e,n,o,u,{position:FFe(n.axis,t,r),align:f.textAlign,verticalAlign:f.textVerticalAlign})}function iFt(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function aFt(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var oFt=function(t){ao(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,o,u,f){var h=o.axis,A=h.grid,p=u.get("type"),g=XSe(A,h).getOtherAxis(h).getGlobalExtent(),y=h.toGlobalCoord(h.dataToCoord(n,!0));if(p&&p!=="none"){var _=eFt(u),b=sFt[p](h,y,g);b.style=_,r.graphicKey=b.type,r.pointer=b}var C=VSe(A.model,o);nFt(n,r,C,o,u,f)},e.prototype.getHandleTransform=function(r,n,o){var u=VSe(n.axis.grid.model,n,{labelInside:!1});u.labelMargin=o.get(["handle","margin"]);var f=FFe(n.axis,r,u);return{x:f[0],y:f[1],rotation:u.rotation+(u.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,o,u){var f=o.axis,h=f.grid,A=f.getGlobalExtent(!0),p=XSe(h,f).getOtherAxis(f).getGlobalExtent(),g=f.dim==="x"?0:1,y=[r.x,r.y];y[g]+=n[g],y[g]=Math.min(A[1],y[g]),y[g]=Math.max(A[0],y[g]);var _=(p[1]+p[0])/2,b=[_,_];b[g]=y[g];var C=[{verticalAlign:"middle"},{align:"center"}];return{x:y[0],y:y[1],rotation:r.rotation,cursorPoint:b,tooltipOption:C[g]}},e}(Jkt);function XSe(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var sFt={line:function(t,e,r){var n=iFt([e,r[0]],[e,r[1]],ZSe(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),o=r[1]-r[0];return{type:"Rect",shape:aFt([e-n/2,r[0]],[n,o],ZSe(t))}}};function ZSe(t){return t.dim==="x"?0:1}var lFt=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,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}},e}(To),ug=hu(),uFt=jt;function NFe(t,e,r){if(!Oi.node){var n=e.getZr();ug(n).records||(ug(n).records={}),cFt(n,e);var o=ug(n).records[t]||(ug(n).records[t]={});o.handler=r}}function cFt(t,e){if(ug(t).initialized)return;ug(t).initialized=!0,r("click",Nl(JSe,"click")),r("mousemove",Nl(JSe,"mousemove")),r("globalout",hFt);function r(n,o){t.on(n,function(u){var f=dFt(e);uFt(ug(t).records,function(h){h&&o(h,u,f.dispatchAction)}),fFt(f.pendings,e)})}}function fFt(t,e){var r=t.showTip.length,n=t.hideTip.length,o;r?o=t.showTip[r-1]:n&&(o=t.hideTip[n-1]),o&&(o.dispatchAction=null,e.dispatchAction(o))}function hFt(t,e,r){t.handler("leave",null,r)}function JSe(t,e,r,n){e.handler(t,r,n)}function dFt(t){var e={showTip:[],hideTip:[]},r=function(n){var o=e[n.type];o?o.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function rY(t,e){if(!Oi.node){var r=e.getZr(),n=(ug(r).records||{})[t];n&&(ug(r).records[t]=null)}}var AFt=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,o){var u=n.getComponent("tooltip"),f=r.get("triggerOn")||u&&u.get("triggerOn")||"mousemove|click";NFe("axisPointer",o,function(h,A,p){f!=="none"&&(h==="leave"||f.indexOf(h)>=0)&&p({type:"updateAxisPointer",currTrigger:h,x:A&&A.offsetX,y:A&&A.offsetY})})},e.prototype.remove=function(r,n){rY("axisPointer",n)},e.prototype.dispose=function(r,n){rY("axisPointer",n)},e.type="axisPointer",e}(WA);function UFe(t,e){var r=[],n=t.seriesIndex,o;if(n==null||!(o=e.getSeriesByIndex(n)))return{point:[]};var u=o.getData(),f=sw(u,t);if(f==null||f<0||Nn(f))return{point:[]};var h=u.getItemGraphicEl(f),A=o.coordinateSystem;if(o.getTooltipPosition)r=o.getTooltipPosition(f)||[];else if(A&&A.dataToPoint)if(t.isStacked){var p=A.getBaseAxis(),g=A.getOtherAxis(p),y=g.dim,_=p.dim,b=y==="x"||y==="radius"?1:0,C=u.mapDimension(_),T=[];T[b]=u.get(C,f),T[1-b]=u.get(u.getCalculationInfo("stackResultDimension"),f),r=A.dataToPoint(T)||[]}else r=A.dataToPoint(u.getValues(ra(A.dimensions,function(L){return u.mapDimension(L)}),f))||[];else if(h){var B=h.getBoundingRect().clone();B.applyTransform(h.transform),r=[B.x+B.width/2,B.y+B.height/2]}return{point:r,el:h}}var exe=hu();function vFt(t,e,r){var n=t.currTrigger,o=[t.x,t.y],u=t,f=t.dispatchAction||qo(r.dispatchAction,r),h=e.getComponent("axisPointer").coordSysAxesInfo;if(h){uR(o)&&(o=UFe({seriesIndex:u.seriesIndex,dataIndex:u.dataIndex},e).point);var A=uR(o),p=u.axesInfo,g=h.axesInfo,y=n==="leave"||uR(o),_={},b={},C={list:[],map:{}},T={showPointer:Nl(gFt,b),showTooltip:Nl(mFt,C)};jt(h.coordSysMap,function(L,P){var I=A||L.containPoint(o);jt(h.coordSysAxesInfo[P],function(O,U){var N=O.axis,H=_Ft(p,O);if(!y&&I&&(!p||H)){var z=H&&H.value;z==null&&!A&&(z=N.pointToData(o)),z!=null&&txe(O,z,T,!1,_)}})});var B={};return jt(g,function(L,P){var I=L.linkGroup;I&&!b[P]&&jt(I.axesInfo,function(O,U){var N=b[U];if(O!==L&&N){var H=N.value;I.mapper&&(H=L.axis.scale.parse(I.mapper(H,rxe(O),rxe(L)))),B[L.key]=H}})}),jt(B,function(L,P){txe(g[P],L,T,!0,_)}),yFt(b,g,_),wFt(C,o,t,f),bFt(g,f,r),_}}function txe(t,e,r,n,o){var u=t.axis;if(!(u.scale.isBlank()||!u.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var f=pFt(e,t),h=f.payloadBatch,A=f.snapToValue;h[0]&&o.seriesIndex==null&&Wr(o,h[0]),!n&&t.snap&&u.containData(A)&&A!=null&&(e=A),r.showPointer(t,e,h),r.showTooltip(t,f,A)}}function pFt(t,e){var r=e.axis,n=r.dim,o=t,u=[],f=Number.MAX_VALUE,h=-1;return jt(e.seriesModels,function(A,p){var g=A.getData().mapDimensionsAll(n),y,_;if(A.getAxisTooltipData){var b=A.getAxisTooltipData(g,t,r);_=b.dataIndices,y=b.nestestValue}else{if(_=A.getData().indicesOfNearest(g[0],t,r.type==="category"?.5:null),!_.length)return;y=A.getData().get(g[0],_[0])}if(!(y==null||!isFinite(y))){var C=t-y,T=Math.abs(C);T<=f&&((T<f||C>=0&&h<0)&&(f=T,h=C,o=y,u.length=0),jt(_,function(B){u.push({seriesIndex:A.seriesIndex,dataIndexInside:B,dataIndex:A.getData().getRawIndex(B)})}))}}),{payloadBatch:u,snapToValue:o}}function gFt(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function mFt(t,e,r,n){var o=r.payloadBatch,u=e.axis,f=u.model,h=e.axisPointerModel;if(!(!e.triggerTooltip||!o.length)){var A=e.coordSys.model,p=H2(A),g=t.map[p];g||(g=t.map[p]={coordSysId:A.id,coordSysIndex:A.componentIndex,coordSysType:A.type,coordSysMainType:A.mainType,dataByAxis:[]},t.list.push(g)),g.dataByAxis.push({axisDim:u.dim,axisIndex:f.componentIndex,axisType:f.type,axisId:f.id,value:n,valueLabelOpt:{precision:h.get(["label","precision"]),formatter:h.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function yFt(t,e,r){var n=r.axesInfo=[];jt(e,function(o,u){var f=o.axisPointerModel.option,h=t[u];h?(!o.useHandle&&(f.status="show"),f.value=h.value,f.seriesDataIndices=(h.payloadBatch||[]).slice()):!o.useHandle&&(f.status="hide"),f.status==="show"&&n.push({axisDim:o.axis.dim,axisIndex:o.axis.model.componentIndex,value:f.value})})}function wFt(t,e,r,n){if(uR(e)||!t.list.length){n({type:"hideTip"});return}var o=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:t.list})}function bFt(t,e,r){var n=r.getZr(),o="axisPointerLastHighlights",u=exe(n)[o]||{},f=exe(n)[o]={};jt(t,function(p,g){var y=p.axisPointerModel.option;y.status==="show"&&p.triggerEmphasis&&jt(y.seriesDataIndices,function(_){var b=_.seriesIndex+" | "+_.dataIndex;f[b]=_})});var h=[],A=[];jt(u,function(p,g){!f[g]&&A.push(p)}),jt(f,function(p,g){!u[g]&&h.push(p)}),A.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:A}),h.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:h})}function _Ft(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function rxe(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function uR(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function SFt(t){Zkt.registerAxisPointerClass("CartesianAxisPointer",oFt),t.registerComponentModel(lFt),t.registerComponentView(AFt),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!Nn(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=jkt(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},vFt)}function xFt(t,e){var r=zk(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Rc({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var CFt=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(To);function HFe(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function QFe(t){if(Oi.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var VFe=QFe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),TFt=QFe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function zFe(t,e){if(!t)return e;e=lke(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function EFt(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var BFt=zFe(TFt,"transition"),eJ=zFe(VFe,"transform"),IFt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Oi.transform3dSupported?"will-change:transform;":"");function LFt(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function MFt(t,e,r){if(!ri(r)||r==="inside")return"";var n=t.get("backgroundColor"),o=t.get("borderWidth");e=uw(e);var u=LFt(r),f=Math.max(Math.round(o)*1.5,6),h="",A=eJ+":",p;ss(["left","right"],u)>-1?(h+="top:50%",A+="translateY(-50%) rotate("+(p=u==="left"?-225:-45)+"deg)"):(h+="left:50%",A+="translateX(-50%) rotate("+(p=u==="top"?225:45)+"deg)");var g=p*Math.PI/180,y=f+o,_=y*Math.abs(Math.cos(g))+y*Math.abs(Math.sin(g)),b=Math.round(((_-Math.SQRT2*o)/2+Math.SQRT2*o-(_-y)/2)*100)/100;h+=";"+u+":-"+b+"px";var C=e+" solid "+o+"px;",T=["position:absolute;width:"+f+"px;height:"+f+"px;z-index:-1;",h+";"+A+";","border-bottom:"+C,"border-right:"+C,"background-color:"+n+";"];return'<div style="'+T.join("")+'"></div>'}function DFt(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,o="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,o+=Oi.transformSupported?","+eJ+n:",left"+n+",top"+n),BFt+":"+o}function nxe(t,e,r){var n=t.toFixed(0)+"px",o=e.toFixed(0)+"px";if(!Oi.transformSupported)return r?"top:"+o+";left:"+n+";":[["top",o],["left",n]];var u=Oi.transform3dSupported,f="translate"+(u?"3d":"")+"("+n+","+o+(u?",0":"")+")";return r?"top:0;left:0;"+eJ+":"+f+";":[["top",0],["left",0],[VFe,f]]}function RFt(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var o=Ji(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+o+"px");var u=t.get("textShadowColor"),f=t.get("textShadowBlur")||0,h=t.get("textShadowOffsetX")||0,A=t.get("textShadowOffsetY")||0;return u&&f&&e.push("text-shadow:"+h+"px "+A+"px "+f+"px "+u),jt(["decoration","align"],function(p){var g=t.get(p);g&&e.push("text-"+p+":"+g)}),e.join(";")}function PFt(t,e,r){var n=[],o=t.get("transitionDuration"),u=t.get("backgroundColor"),f=t.get("shadowBlur"),h=t.get("shadowColor"),A=t.get("shadowOffsetX"),p=t.get("shadowOffsetY"),g=t.getModel("textStyle"),y=Oke(t,"html"),_=A+"px "+p+"px "+f+"px "+h;return n.push("box-shadow:"+_),e&&o&&n.push(DFt(o,r)),u&&n.push("background-color:"+u),jt(["width","color","radius"],function(b){var C="border-"+b,T=lke(C),B=t.get(T);B!=null&&n.push(C+":"+B+(b==="color"?"":"px"))}),n.push(RFt(g)),y!=null&&n.push("padding:"+zk(y).join("px ")+"px"),n.join(";")+";"}function ixe(t,e,r,n,o){var u=e&&e.painter;if(r){var f=u&&u.getViewportRoot();f&&mIt(t,f,r,n,o)}else{t[0]=n,t[1]=o;var h=u&&u.getViewportRootOffset();h&&(t[0]+=h.offsetLeft,t[1]+=h.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var OFt=function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Oi.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var o=this._zr=e.getZr(),u=r.appendTo,f=u&&(ri(u)?document.querySelector(u):B2(u)?u:ha(u)&&u(e.getDom()));ixe(this._styleCoord,o,f,e.getWidth()/2,e.getHeight()/2),(f||e.getDom()).appendChild(n),this._api=e,this._container=f;var h=this;n.onmouseenter=function(){h._enterable&&(clearTimeout(h._hideTimeout),h._show=!0),h._inContent=!0},n.onmousemove=function(A){if(A=A||window.event,!h._enterable){var p=o.handler,g=o.painter.getViewportRoot();md(g,A,!0),p.dispatch("mousemove",A)}},n.onmouseleave=function(){h._inContent=!1,h._enterable&&h._show&&h.hideLater(h._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=EFt(r,"position"),o=r.style;o.position!=="absolute"&&n!=="absolute"&&(o.position="relative")}var u=e.get("alwaysShowContent");u&&this._moveIfResized(),this._alwaysShowContent=u,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,o=n.style,u=this._styleCoord;n.innerHTML?o.cssText=IFt+PFt(e,!this._firstShow,this._longHide)+nxe(u[0],u[1],!0)+("border-color:"+uw(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):o.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,o,u){var f=this.el;if(e==null){f.innerHTML="";return}var h="";if(ri(u)&&n.get("trigger")==="item"&&!HFe(n)&&(h=MFt(n,o,u)),ri(e))f.innerHTML=e+h;else if(e){f.innerHTML="",Nn(e)||(e=[e]);for(var A=0;A<e.length;A++)B2(e[A])&&e[A].parentNode!==f&&f.appendChild(e[A]);if(h&&f.childNodes.length){var p=document.createElement("div");p.innerHTML=h,f.appendChild(p)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(ixe(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var o=this.el.style,u=nxe(n[0],n[1]);jt(u,function(f){o[f[0]]=f[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;r.visibility="hidden",r.opacity="0",Oi.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(qo(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},t}(),kFt=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),oxe(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,o,u){var f=this;wi(e)&&Vf(""),this.el&&this._zr.remove(this.el);var h=n.getModel("textStyle");this.el=new Yu({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:o,textShadowColor:h.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Oke(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),jt(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(p){f.el.style[p]=n.get(p)}),jt(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(p){f.el.style[p]=h.get(p)||0}),this._zr.add(this.el);var A=this;this.el.on("mouseover",function(){A._enterable&&(clearTimeout(A._hideTimeout),A._show=!0),A._inContent=!0}),this.el.on("mouseout",function(){A._enterable&&A._show&&A.hideLater(A._hideDelay),A._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=axe(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var o=this._styleCoord;oxe(o,this._zr,e,r),e=o[0],r=o[1];var u=n.style,f=zm(u.borderWidth||0),h=axe(u);n.x=e+f+h.left,n.y=r+f+h.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(qo(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function zm(t){return Math.max(0,t)}function axe(t){var e=zm(t.shadowBlur||0),r=zm(t.shadowOffsetX||0),n=zm(t.shadowOffsetY||0);return{left:zm(e-r),right:zm(e+r),top:zm(e-n),bottom:zm(e+n)}}function oxe(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var FFt=new Rc({shape:{x:-1,y:-1,width:2,height:2}}),NFt=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(Oi.node||!n.getDom())){var o=r.getComponent("tooltip"),u=this._renderMode=zLt(o.get("renderMode"));this._tooltipContent=u==="richText"?new kFt(n):new OFt(n,{appendTo:o.get("appendToBody",!0)?"body":o.get("appendTo",!0)})}},e.prototype.render=function(r,n,o){if(!(Oi.node||!o.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=o;var u=this._tooltipContent;u.update(r),u.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Uke(this,"_updatePosition",50,"fixRate"):jK(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");NFe("itemTooltip",this._api,qo(function(o,u,f){n!=="none"&&(n.indexOf(o)>=0?this._tryShow(u,f):o==="leave"&&this._hide(f))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,o=this._api,u=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&u!=="none"&&u!=="click"){var f=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!o.isDisposed()&&f.manuallyShowTip(r,n,o,{x:f._lastX,y:f._lastY,dataByCoordSys:f._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,o,u){if(!(u.from===this.uid||Oi.node||!o.getDom())){var f=sxe(u,o);this._ticket="";var h=u.dataByCoordSys,A=VFt(u,n,o);if(A){var p=A.el.getBoundingRect().clone();p.applyTransform(A.el.transform),this._tryShow({offsetX:p.x+p.width/2,offsetY:p.y+p.height/2,target:A.el,position:u.position,positionDefault:"bottom"},f)}else if(u.tooltip&&u.x!=null&&u.y!=null){var g=FFt;g.x=u.x,g.y=u.y,g.update(),go(g).tooltipConfig={name:null,option:u.tooltip},this._tryShow({offsetX:u.x,offsetY:u.y,target:g},f)}else if(h)this._tryShow({offsetX:u.x,offsetY:u.y,position:u.position,dataByCoordSys:h,tooltipOption:u.tooltipOption},f);else if(u.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,o,u))return;var y=UFe(u,n),_=y.point[0],b=y.point[1];_!=null&&b!=null&&this._tryShow({offsetX:_,offsetY:b,target:y.el,position:u.position,positionDefault:"bottom"},f)}else u.x!=null&&u.y!=null&&(o.dispatchAction({type:"updateAxisPointer",x:u.x,y:u.y}),this._tryShow({offsetX:u.x,offsetY:u.y,position:u.position,target:o.getZr().findHover(u.x,u.y).target},f))}},e.prototype.manuallyHideTip=function(r,n,o,u){var f=this._tooltipContent;this._tooltipModel&&f.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,u.from!==this.uid&&this._hide(sxe(u,o))},e.prototype._manuallyAxisShowTip=function(r,n,o,u){var f=u.seriesIndex,h=u.dataIndex,A=n.getComponent("axisPointer").coordSysAxesInfo;if(!(f==null||h==null||A==null)){var p=n.getSeriesByIndex(f);if(p){var g=p.getData(),y=HT([g.getItemModel(h),p,(p.coordinateSystem||{}).model],this._tooltipModel);if(y.get("trigger")==="axis")return o.dispatchAction({type:"updateAxisPointer",seriesIndex:f,dataIndex:h,position:u.position}),!0}}},e.prototype._tryShow=function(r,n){var o=r.target,u=this._tooltipModel;if(u){this._lastX=r.offsetX,this._lastY=r.offsetY;var f=r.dataByCoordSys;if(f&&f.length)this._showAxisTooltip(f,r);else if(o){var h=go(o);if(h.ssrType==="legend")return;this._lastDataByCoordSys=null;var A,p;_E(o,function(g){if(go(g).dataIndex!=null)return A=g,!0;if(go(g).tooltipConfig!=null)return p=g,!0},!0),A?this._showSeriesItemTooltip(r,A,n):p?this._showComponentItemTooltip(r,p,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var o=r.get("showDelay");n=qo(n,this),clearTimeout(this._showTimout),o>0?this._showTimout=setTimeout(n,o):n()},e.prototype._showAxisTooltip=function(r,n){var o=this._ecModel,u=this._tooltipModel,f=[n.offsetX,n.offsetY],h=HT([n.tooltipOption],u),A=this._renderMode,p=[],g=k2("section",{blocks:[],noHeader:!0}),y=[],_=new l3;jt(r,function(P){jt(P.dataByAxis,function(I){var O=o.getComponent(I.axisDim+"Axis",I.axisIndex),U=I.value;if(!(!O||U==null)){var N=kFe(U,O.axis,o,I.seriesDataIndices,I.valueLabelOpt),H=k2("section",{header:N,noHeader:!Kv(N),sortBlocks:!0,blocks:[]});g.blocks.push(H),jt(I.seriesDataIndices,function(z){var G=o.getSeriesByIndex(z.seriesIndex),j=z.dataIndexInside,q=G.getDataParams(j);if(!(q.dataIndex<0)){q.axisDim=I.axisDim,q.axisIndex=I.axisIndex,q.axisType=I.axisType,q.axisId=I.axisId,q.axisValue=SFe(O.axis,{value:U}),q.axisValueLabel=N,q.marker=_.makeTooltipMarker("item",uw(q.color),A);var X=G_e(G.formatTooltip(j,!0,null)),Y=X.frag;if(Y){var te=HT([G],u).get("valueFormatter");H.blocks.push(te?Wr({valueFormatter:te},Y):Y)}X.text&&y.push(X.text),p.push(q)}})}})}),g.blocks.reverse(),y.reverse();var b=n.position,C=h.get("order"),T=Y_e(g,_,A,C,o.get("useUTC"),h.get("textStyle"));T&&y.unshift(T);var B=A==="richText"?`
`:"<br/>",L=y.join(B);this._showOrMove(h,function(){this._updateContentNotChangedOnAxis(r,p)?this._updatePosition(h,b,f[0],f[1],this._tooltipContent,p):this._showTooltipContent(h,L,p,Math.random()+"",f[0],f[1],b,null,_)})},e.prototype._showSeriesItemTooltip=function(r,n,o){var u=this._ecModel,f=go(n),h=f.seriesIndex,A=u.getSeriesByIndex(h),p=f.dataModel||A,g=f.dataIndex,y=f.dataType,_=p.getData(y),b=this._renderMode,C=r.positionDefault,T=HT([_.getItemModel(g),p,A&&(A.coordinateSystem||{}).model],this._tooltipModel,C?{position:C}:null),B=T.get("trigger");if(!(B!=null&&B!=="item")){var L=p.getDataParams(g,y),P=new l3;L.marker=P.makeTooltipMarker("item",uw(L.color),b);var I=G_e(p.formatTooltip(g,!1,y)),O=T.get("order"),U=T.get("valueFormatter"),N=I.frag,H=N?Y_e(U?Wr({valueFormatter:U},N):N,P,b,O,u.get("useUTC"),T.get("textStyle")):I.text,z="item_"+p.name+"_"+g;this._showOrMove(T,function(){this._showTooltipContent(T,H,L,z,r.offsetX,r.offsetY,r.position,r.target,P)}),o({type:"showTip",dataIndexInside:g,dataIndex:_.getRawIndex(g),seriesIndex:h,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,o){var u=this._renderMode==="html",f=go(n),h=f.tooltipConfig,A=h.option||{},p=A.encodeHTMLContent;if(ri(A)){var g=A;A={content:g,formatter:g},p=!0}p&&u&&A.content&&(A=Ba(A),A.content=Hf(A.content));var y=[A],_=this._ecModel.getComponent(f.componentMainType,f.componentIndex);_&&y.push(_),y.push({formatter:A.content});var b=r.positionDefault,C=HT(y,this._tooltipModel,b?{position:b}:null),T=C.get("content"),B=Math.random()+"",L=new l3;this._showOrMove(C,function(){var P=Ba(C.get("formatterParams")||{});this._showTooltipContent(C,T,P,B,r.offsetX,r.offsetY,r.position,n,L)}),o({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,o,u,f,h,A,p,g){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var y=this._tooltipContent;y.setEnterable(r.get("enterable"));var _=r.get("formatter");A=A||r.get("position");var b=n,C=this._getNearestPoint([f,h],o,r.get("trigger"),r.get("borderColor")),T=C.color;if(_)if(ri(_)){var B=r.ecModel.get("useUTC"),L=Nn(o)?o[0]:o,P=L&&L.axisType&&L.axisType.indexOf("time")>=0;b=_,P&&(b=ske(L.axisValue,b,B)),b=uke(b,o,!0)}else if(ha(_)){var I=qo(function(O,U){O===this._ticket&&(y.setContent(U,g,r,T,A),this._updatePosition(r,A,f,h,y,o,p))},this);this._ticket=u,b=_(o,u,I)}else b=_;y.setContent(b,g,r,T,A),y.show(r,T),this._updatePosition(r,A,f,h,y,o,p)}},e.prototype._getNearestPoint=function(r,n,o,u){if(o==="axis"||Nn(n))return{color:u||(this._renderMode==="html"?"#fff":"none")};if(!Nn(n))return{color:u||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,o,u,f,h,A){var p=this._api.getWidth(),g=this._api.getHeight();n=n||r.get("position");var y=f.getSize(),_=r.get("align"),b=r.get("verticalAlign"),C=A&&A.getBoundingRect().clone();if(A&&C.applyTransform(A.transform),ha(n)&&(n=n([o,u],h,f.el,C,{viewSize:[p,g],contentSize:y.slice()})),Nn(n))o=lu(n[0],p),u=lu(n[1],g);else if(wi(n)){var T=n;T.width=y[0],T.height=y[1];var B=R2(T,{width:p,height:g});o=B.x,u=B.y,_=null,b=null}else if(ri(n)&&A){var L=QFt(n,C,y,r.get("borderWidth"));o=L[0],u=L[1]}else{var L=UFt(o,u,f,p,g,_?null:20,b?null:20);o=L[0],u=L[1]}if(_&&(o-=lxe(_)?y[0]/2:_==="right"?y[0]:0),b&&(u-=lxe(b)?y[1]/2:b==="bottom"?y[1]:0),HFe(r)){var L=HFt(o,u,f,p,g);o=L[0],u=L[1]}f.moveTo(o,u)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var o=this._lastDataByCoordSys,u=this._cbParamsList,f=!!o&&o.length===r.length;return f&&jt(o,function(h,A){var p=h.dataByAxis||[],g=r[A]||{},y=g.dataByAxis||[];f=f&&p.length===y.length,f&&jt(p,function(_,b){var C=y[b]||{},T=_.seriesDataIndices||[],B=C.seriesDataIndices||[];f=f&&_.value===C.value&&_.axisType===C.axisType&&_.axisId===C.axisId&&T.length===B.length,f&&jt(T,function(L,P){var I=B[P];f=f&&L.seriesIndex===I.seriesIndex&&L.dataIndex===I.dataIndex}),u&&jt(_.seriesDataIndices,function(L){var P=L.seriesIndex,I=n[P],O=u[P];I&&O&&O.data!==I.data&&(f=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!f},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){Oi.node||!n.getDom()||(jK(this,"_updatePosition"),this._tooltipContent.dispose(),rY("itemTooltip",n))},e.type="tooltip",e}(WA);function HT(t,e,r){var n=e.ecModel,o;r?(o=new zs(r,n,n),o=new zs(e.option,o,n)):o=e;for(var u=t.length-1;u>=0;u--){var f=t[u];f&&(f instanceof zs&&(f=f.get("tooltip",!0)),ri(f)&&(f={formatter:f}),f&&(o=new zs(f,o,n)))}return o}function sxe(t,e){return t.dispatchAction||qo(e.dispatchAction,e)}function UFt(t,e,r,n,o,u,f){var h=r.getSize(),A=h[0],p=h[1];return u!=null&&(t+A+u+2>n?t-=A+u:t+=u),f!=null&&(e+p+f>o?e-=p+f:e+=f),[t,e]}function HFt(t,e,r,n,o){var u=r.getSize(),f=u[0],h=u[1];return t=Math.min(t+f,n)-f,e=Math.min(e+h,o)-h,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function QFt(t,e,r,n){var o=r[0],u=r[1],f=Math.ceil(Math.SQRT2*n)+8,h=0,A=0,p=e.width,g=e.height;switch(t){case"inside":h=e.x+p/2-o/2,A=e.y+g/2-u/2;break;case"top":h=e.x+p/2-o/2,A=e.y-u-f;break;case"bottom":h=e.x+p/2-o/2,A=e.y+g+f;break;case"left":h=e.x-o-f,A=e.y+g/2-u/2;break;case"right":h=e.x+p+f,A=e.y+g/2-u/2}return[h,A]}function lxe(t){return t==="center"||t==="middle"}function VFt(t,e,r){var n=wZ(t).queryOptionMap,o=n.keys()[0];if(!(!o||o==="series")){var u=SB(e,o,n.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),f=u.models[0];if(f){var h=r.getViewOfComponentModel(f),A;if(h.group.traverse(function(p){var g=go(p).tooltipConfig;if(g&&g.name===t.name)return A=p,!0}),A)return{componentMainType:o,componentIndex:f.componentIndex,el:A}}}}function TQt(t){U2(SFt),t.registerComponentModel(CFt),t.registerComponentView(NFt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Kf),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Kf)}var zFt=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(To),GFt=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,o){if(this.group.removeAll(),!!r.get("show")){var u=this.group,f=r.getModel("textStyle"),h=r.getModel("subtextStyle"),A=r.get("textAlign"),p=Ji(r.get("textBaseline"),r.get("textVerticalAlign")),g=new Yu({style:xy(f,{text:r.get("text"),fill:f.getTextColor()},{disableBox:!0}),z2:10}),y=g.getBoundingRect(),_=r.get("subtext"),b=new Yu({style:xy(h,{text:_,fill:h.getTextColor(),y:y.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),C=r.get("link"),T=r.get("sublink"),B=r.get("triggerEvent",!0);g.silent=!C&&!B,b.silent=!T&&!B,C&&g.on("click",function(){T_e(C,"_"+r.get("target"))}),T&&b.on("click",function(){T_e(T,"_"+r.get("subtarget"))}),go(g).eventData=go(b).eventData=B?{componentType:"title",componentIndex:r.componentIndex}:null,u.add(g),_&&u.add(b);var L=u.getBoundingRect(),P=r.getBoxLayoutParams();P.width=L.width,P.height=L.height;var I=R2(P,{width:o.getWidth(),height:o.getHeight()},r.get("padding"));A||(A=r.get("left")||r.get("right"),A==="middle"&&(A="center"),A==="right"?I.x+=I.width:A==="center"&&(I.x+=I.width/2)),p||(p=r.get("top")||r.get("bottom"),p==="center"&&(p="middle"),p==="bottom"?I.y+=I.height:p==="middle"&&(I.y+=I.height/2),p=p||"top"),u.x=I.x,u.y=I.y,u.markRedraw();var O={align:A,verticalAlign:p};g.setStyle(O),b.setStyle(O),L=u.getBoundingRect();var U=I.margin,N=r.getItemStyle(["color","opacity"]);N.fill=r.get("backgroundColor");var H=new Rc({shape:{x:L.x-U[3],y:L.y-U[0],width:L.width+U[1]+U[3],height:L.height+U[0]+U[2],r:r.get("borderRadius")},style:N,subPixelOptimize:!0,silent:!0});u.add(H)}},e.type="title",e}(WA);function EQt(t){t.registerComponentModel(zFt),t.registerComponentView(GFt)}var jFt=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},nY=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,o){this.mergeDefaultAndTheme(r,o),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,o=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Nn(n)&&jt(n,function(u,f){ri(u)&&(u={type:u}),n[f]=Bs(u,jFt(o,u.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,o=0;o<r.length;o++){var u=r[o].get("name");if(this.isSelected(u)){this.select(u),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],o=[];r.eachRawSeries(function(A){var p=A.name;o.push(p);var g;if(A.legendVisualProvider){var y=A.legendVisualProvider,_=y.getAllNames();r.isSeriesFiltered(A)||(o=o.concat(_)),_.length?n=n.concat(_):g=!0}else g=!0;g&&yZ(A)&&n.push(A.name)}),this._availableNames=o;var u=this.get("data")||n,f=fa(),h=ra(u,function(A){return(ri(A)||ws(A))&&(A={name:A}),f.get(A.name)?null:(f.set(A.name,!0),new zs(A,this,this.ecModel))},this);this._data=Td(h,function(A){return!!A})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,o=this.get("selectedMode");if(o==="single"){var u=this._data;jt(u,function(f){n[f.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;jt(r,function(o){n[o.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;jt(r,function(o){var u=o.get("name",!0);n.hasOwnProperty(u)||(n[u]=!0),n[u]=!n[u]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ss(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(To),M_=Nl,iY=jt,s5=hf,GFe=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new s5),this.group.add(this._selectorGroup=new s5),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,o){var u=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var f=r.get("align"),h=r.get("orient");(!f||f==="auto")&&(f=r.get("left")==="right"&&h==="vertical"?"right":"left");var A=r.get("selector",!0),p=r.get("selectorPosition",!0);A&&(!p||p==="auto")&&(p=h==="horizontal"?"end":"start"),this.renderInner(f,r,n,o,A,h,p);var g=r.getBoxLayoutParams(),y={width:o.getWidth(),height:o.getHeight()},_=r.get("padding"),b=R2(g,y,_),C=this.layoutInner(r,f,b,u,A,p),T=R2(ls({width:C.width,height:C.height},g),y,_);this.group.x=T.x-C.x,this.group.y=T.y-C.y,this.group.markRedraw(),this.group.add(this._backgroundEl=xFt(C,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,o,u,f,h,A){var p=this.getContentGroup(),g=fa(),y=n.get("selectedMode"),_=[];o.eachRawSeries(function(b){!b.get("legendHoverLink")&&_.push(b.id)}),iY(n.getData(),function(b,C){var T=b.get("name");if(!this.newlineDisabled&&(T===""||T===`
`)){var B=new s5;B.newline=!0,p.add(B);return}var L=o.getSeriesByName(T)[0];if(!g.get(T))if(L){var P=L.getData(),I=P.getVisual("legendLineStyle")||{},O=P.getVisual("legendIcon"),U=P.getVisual("style"),N=this._createItem(L,T,C,b,n,r,I,U,O,y,u);N.on("click",M_(uxe,T,null,u,_)).on("mouseover",M_(aY,L.name,null,u,_)).on("mouseout",M_(oY,L.name,null,u,_)),o.ssr&&N.eachChild(function(H){var z=go(H);z.seriesIndex=L.seriesIndex,z.dataIndex=C,z.ssrType="legend"}),g.set(T,!0)}else o.eachRawSeries(function(H){if(!g.get(T)&&H.legendVisualProvider){var z=H.legendVisualProvider;if(!z.containName(T))return;var G=z.indexOfName(T),j=z.getItemVisual(G,"style"),q=z.getItemVisual(G,"legendIcon"),X=vg(j.fill);X&&X[3]===0&&(X[3]=.2,j=Wr(Wr({},j),{fill:Bk(X,"rgba")}));var Y=this._createItem(H,T,C,b,n,r,{},j,q,y,u);Y.on("click",M_(uxe,null,T,u,_)).on("mouseover",M_(aY,null,T,u,_)).on("mouseout",M_(oY,null,T,u,_)),o.ssr&&Y.eachChild(function(te){var K=go(te);K.seriesIndex=H.seriesIndex,K.dataIndex=C,K.ssrType="legend"}),g.set(T,!0)}},this)},this),f&&this._createSelector(f,n,u,h,A)},e.prototype._createSelector=function(r,n,o,u,f){var h=this.getSelectorGroup();iY(r,function(p){var g=p.type,y=new Yu({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:g==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});h.add(y);var _=n.getModel("selectorLabel"),b=n.getModel(["emphasis","selectorLabel"]);Hk(y,{normal:_,emphasis:b},{defaultText:p.title}),RK(y)})},e.prototype._createItem=function(r,n,o,u,f,h,A,p,g,y,_){var b=r.visualDrawType,C=f.get("itemWidth"),T=f.get("itemHeight"),B=f.isSelected(n),L=u.get("symbolRotate"),P=u.get("symbolKeepAspect"),I=u.get("icon");g=I||g||"roundRect";var O=qFt(g,u,A,p,b,B,_),U=new s5,N=u.getModel("textStyle");if(ha(r.getLegendIcon)&&(!I||I==="inherit"))U.add(r.getLegendIcon({itemWidth:C,itemHeight:T,icon:g,iconRotate:L,itemStyle:O.itemStyle,lineStyle:O.lineStyle,symbolKeepAspect:P}));else{var H=I==="inherit"&&r.getData().getVisual("symbol")?L==="inherit"?r.getData().getVisual("symbolRotate"):L:0;U.add(WFt({itemWidth:C,itemHeight:T,icon:g,iconRotate:H,itemStyle:O.itemStyle,symbolKeepAspect:P}))}var z=h==="left"?C+5:-5,G=h,j=f.get("formatter"),q=n;ri(j)&&j?q=j.replace("{name}",n??""):ha(j)&&(q=j(n));var X=B?N.getTextColor():u.get("inactiveColor");U.add(new Yu({style:xy(N,{text:q,x:z,y:T/2,fill:X,align:G,verticalAlign:"middle"},{inheritColor:X})}));var Y=new Rc({shape:U.getBoundingRect(),style:{fill:"transparent"}}),te=u.getModel("tooltip");return te.get("show")&&Nk({el:Y,componentModel:f,itemName:n,itemTooltipOption:te.option}),U.add(Y),U.eachChild(function(K){K.silent=!0}),Y.silent=!y,this.getContentGroup().add(U),RK(U),U.__legendDataIndex=o,U},e.prototype.layoutInner=function(r,n,o,u,f,h){var A=this.getContentGroup(),p=this.getSelectorGroup();ZE(r.get("orient"),A,r.get("itemGap"),o.width,o.height);var g=A.getBoundingRect(),y=[-g.x,-g.y];if(p.markRedraw(),A.markRedraw(),f){ZE("horizontal",p,r.get("selectorItemGap",!0));var _=p.getBoundingRect(),b=[-_.x,-_.y],C=r.get("selectorButtonGap",!0),T=r.getOrient().index,B=T===0?"width":"height",L=T===0?"height":"width",P=T===0?"y":"x";h==="end"?b[T]+=g[B]+C:y[T]+=_[B]+C,b[1-T]+=g[L]/2-_[L]/2,p.x=b[0],p.y=b[1],A.x=y[0],A.y=y[1];var I={x:0,y:0};return I[B]=g[B]+C+_[B],I[L]=Math.max(g[L],_[L]),I[P]=Math.min(0,_[P]+b[1-T]),I}else return A.x=y[0],A.y=y[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(WA);function qFt(t,e,r,n,o,u,f){function h(B,L){B.lineWidth==="auto"&&(B.lineWidth=L.lineWidth>0?2:0),iY(B,function(P,I){B[I]==="inherit"&&(B[I]=L[I])})}var A=e.getModel("itemStyle"),p=A.getItemStyle(),g=t.lastIndexOf("empty",0)===0?"fill":"stroke",y=A.getShallow("decal");p.decal=!y||y==="inherit"?n.decal:YK(y,f),p.fill==="inherit"&&(p.fill=n[o]),p.stroke==="inherit"&&(p.stroke=n[g]),p.opacity==="inherit"&&(p.opacity=(o==="fill"?n:r).opacity),h(p,n);var _=e.getModel("lineStyle"),b=_.getLineStyle();if(h(b,r),p.fill==="auto"&&(p.fill=n.fill),p.stroke==="auto"&&(p.stroke=n.fill),b.stroke==="auto"&&(b.stroke=n.fill),!u){var C=e.get("inactiveBorderWidth"),T=p[g];p.lineWidth=C==="auto"?n.lineWidth>0&&T?2:0:p.lineWidth,p.fill=e.get("inactiveColor"),p.stroke=e.get("inactiveBorderColor"),b.stroke=_.get("inactiveColor"),b.lineWidth=_.get("inactiveWidth")}return{itemStyle:p,lineStyle:b}}function WFt(t){var e=t.icon||"roundRect",r=HS(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function uxe(t,e,r,n){oY(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),aY(t,e,r,n)}function jFe(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,o=e.length;n<o&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function aY(t,e,r,n){jFe(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function oY(t,e,r,n){jFe(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function $Ft(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function QT(t,e,r){var n=t==="allSelect"||t==="inverseSelect",o={},u=[];r.eachComponent({mainType:"legend",query:e},function(h){n?h[t]():h[t](e.name),cxe(h,o),u.push(h.componentIndex)});var f={};return r.eachComponent("legend",function(h){jt(o,function(A,p){h[A?"select":"unSelect"](p)}),cxe(h,f)}),n?{selected:f,legendIndex:u}:{name:e.name,selected:f}}function cxe(t,e){var r=e||{};return jt(t.getData(),function(n){var o=n.get("name");if(!(o===`
`||o==="")){var u=t.isSelected(o);ow(r,o)?r[o]=r[o]&&u:r[o]=u}}),r}function KFt(t){t.registerAction("legendToggleSelect","legendselectchanged",Nl(QT,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Nl(QT,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Nl(QT,"inverseSelect")),t.registerAction("legendSelect","legendselected",Nl(QT,"select")),t.registerAction("legendUnSelect","legendunselected",Nl(QT,"unSelect"))}function qFe(t){t.registerComponentModel(nY),t.registerComponentView(GFe),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,$Ft),t.registerSubTypeDefaulter("legend",function(){return"plain"}),KFt(t)}var YFt=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,o){var u=HZ(r);t.prototype.init.call(this,r,n,o),fxe(this,r,u)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),fxe(this,this.option,r)},e.type="legend.scroll",e.defaultOption=A5t(nY.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(nY);function fxe(t,e,r){var n=t.getOrient(),o=[1,1];o[n.index]=0,P2(e,r,{type:"box",ignoreSize:!!o})}var hxe=hf,T3=["width","height"],E3=["x","y"],XFt=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new hxe),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new hxe)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,o,u,f,h,A){var p=this;t.prototype.renderInner.call(this,r,n,o,u,f,h,A);var g=this._controllerGroup,y=n.get("pageIconSize",!0),_=Nn(y)?y:[y,y];C("pagePrev",0);var b=n.getModel("pageTextStyle");g.add(new Yu({name:"pageText",style:{text:"xx/xx",fill:b.getTextColor(),font:b.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),C("pageNext",1);function C(T,B){var L=T+"DataIndex",P=OZ(n.get("pageIcons",!0)[n.getOrient().name][B],{onclick:qo(p._pageGo,p,L,n,u)},{x:-_[0]/2,y:-_[1]/2,width:_[0],height:_[1]});P.name=T,g.add(P)}},e.prototype.layoutInner=function(r,n,o,u,f,h){var A=this.getSelectorGroup(),p=r.getOrient().index,g=T3[p],y=E3[p],_=T3[1-p],b=E3[1-p];f&&ZE("horizontal",A,r.get("selectorItemGap",!0));var C=r.get("selectorButtonGap",!0),T=A.getBoundingRect(),B=[-T.x,-T.y],L=Ba(o);f&&(L[g]=o[g]-T[g]-C);var P=this._layoutContentAndController(r,u,L,p,g,_,b,y);if(f){if(h==="end")B[p]+=P[g]+C;else{var I=T[g]+C;B[p]-=I,P[y]-=I}P[g]+=T[g]+C,B[1-p]+=P[b]+P[_]/2-T[_]/2,P[_]=Math.max(P[_],T[_]),P[b]=Math.min(P[b],T[b]+B[1-p]),A.x=B[0],A.y=B[1],A.markRedraw()}return P},e.prototype._layoutContentAndController=function(r,n,o,u,f,h,A,p){var g=this.getContentGroup(),y=this._containerGroup,_=this._controllerGroup;ZE(r.get("orient"),g,r.get("itemGap"),u?o.width:null,u?null:o.height),ZE("horizontal",_,r.get("pageButtonItemGap",!0));var b=g.getBoundingRect(),C=_.getBoundingRect(),T=this._showController=b[f]>o[f],B=[-b.x,-b.y];n||(B[u]=g[p]);var L=[0,0],P=[-C.x,-C.y],I=Ji(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(T){var O=r.get("pageButtonPosition",!0);O==="end"?P[u]+=o[f]-C[f]:L[u]+=C[f]+I}P[1-u]+=b[h]/2-C[h]/2,g.setPosition(B),y.setPosition(L),_.setPosition(P);var U={x:0,y:0};if(U[f]=T?o[f]:b[f],U[h]=Math.max(b[h],C[h]),U[A]=Math.min(0,C[A]+P[1-u]),y.__rectSize=o[f],T){var N={x:0,y:0};N[f]=Math.max(o[f]-C[f]-I,0),N[h]=U[h],y.setClipPath(new Rc({shape:N})),y.__rectSize=N[f]}else _.eachChild(function(z){z.attr({invisible:!0,silent:!0})});var H=this._getPageInfo(r);return H.pageIndex!=null&&ap(g,{x:H.contentPosition[0],y:H.contentPosition[1]},T?r:null),this._updatePageInfoView(r,H),U},e.prototype._pageGo=function(r,n,o){var u=this._getPageInfo(n)[r];u!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:u,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var o=this._controllerGroup;jt(["pagePrev","pageNext"],function(g){var y=g+"DataIndex",_=n[y]!=null,b=o.childOfName(g);b&&(b.setStyle("fill",_?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),b.cursor=_?"pointer":"default")});var u=o.childOfName("pageText"),f=r.get("pageFormatter"),h=n.pageIndex,A=h!=null?h+1:0,p=n.pageCount;u&&f&&u.setStyle("text",ri(f)?f.replace("{current}",A==null?"":A+"").replace("{total}",p==null?"":p+""):f({current:A,total:p}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),o=this.getContentGroup(),u=this._containerGroup.__rectSize,f=r.getOrient().index,h=T3[f],A=E3[f],p=this._findTargetItemIndex(n),g=o.children(),y=g[p],_=g.length,b=_?1:0,C={contentPosition:[o.x,o.y],pageCount:b,pageIndex:b-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!y)return C;var T=O(y);C.contentPosition[f]=-T.s;for(var B=p+1,L=T,P=T,I=null;B<=_;++B)I=O(g[B]),(!I&&P.e>L.s+u||I&&!U(I,L.s))&&(P.i>L.i?L=P:L=I,L&&(C.pageNextDataIndex==null&&(C.pageNextDataIndex=L.i),++C.pageCount)),P=I;for(var B=p-1,L=T,P=T,I=null;B>=-1;--B)I=O(g[B]),(!I||!U(P,I.s))&&L.i<P.i&&(P=L,C.pagePrevDataIndex==null&&(C.pagePrevDataIndex=L.i),++C.pageCount,++C.pageIndex),L=I;return C;function O(N){if(N){var H=N.getBoundingRect(),z=H[A]+N[A];return{s:z,e:z+H[h],i:N.__legendDataIndex}}}function U(N,H){return N.e>=H&&N.s<=H+u}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,o=this.getContentGroup(),u;return o.eachChild(function(f,h){var A=f.__legendDataIndex;u==null&&A!=null&&(u=h),A===r&&(n=h)}),n??u},e.type="legend.scroll",e}(GFe);function ZFt(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(o){o.setScrollDataIndex(n)})})}function JFt(t){U2(qFe),t.registerComponentModel(YFt),t.registerComponentView(XFt),ZFt(t)}function BQt(t){U2(qFe),U2(JFt)}var eNt=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.prototype.init=function(r,n,o){t.prototype.init.call(this,r,n,o),this._sourceManager=new Ike(this),$_e(this)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),$_e(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:rp},e}(To),tNt=function(t){ao(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dataset",r}return e.type="dataset",e}(WA);function IQt(t){t.registerComponentModel(eNt),t.registerComponentView(tNt)}function dxe(t,e,r){var n=lx.createCanvas(),o=e.getWidth(),u=e.getHeight(),f=n.style;return f&&(f.position="absolute",f.left="0",f.top="0",f.width=o+"px",f.height=u+"px",n.setAttribute("data-zr-dom-id",t)),n.width=o*r,n.height=u*r,n}var B3=function(t){Io(e,t);function e(r,n,o){var u=t.call(this)||this;u.motionBlur=!1,u.lastFrameAlpha=.7,u.dpr=1,u.virtual=!1,u.config={},u.incremental=!1,u.zlevel=0,u.maxRepaintRectCount=5,u.__dirty=!0,u.__firstTimePaint=!0,u.__used=!1,u.__drawIndex=0,u.__startIndex=0,u.__endIndex=0,u.__prevStartIndex=null,u.__prevEndIndex=null;var f;o=o||qP,typeof r=="string"?f=dxe(r,n,o):wi(r)&&(f=r,r=f.id),u.id=r,u.dom=f;var h=f.style;return h&&($Pe(f),f.onselectstart=function(){return!1},h.padding="0",h.margin="0",h.borderWidth="0"),u.painter=n,u.dpr=o,u}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=dxe("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,o,u){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var f=[],h=this.maxRepaintRectCount,A=!1,p=new ko(0,0,0,0);function g(P){if(!(!P.isFinite()||P.isZero()))if(f.length===0){var I=new ko(0,0,0,0);I.copy(P),f.push(I)}else{for(var O=!1,U=1/0,N=0,H=0;H<f.length;++H){var z=f[H];if(z.intersect(P)){var G=new ko(0,0,0,0);G.copy(z),G.union(P),f[H]=G,O=!0;break}else if(A){p.copy(P),p.union(z);var j=P.width*P.height,q=z.width*z.height,X=p.width*p.height,Y=X-j-q;Y<U&&(U=Y,N=H)}}if(A&&(f[N].union(P),O=!0),!O){var I=new ko(0,0,0,0);I.copy(P),f.push(I)}A||(A=f.length>=h)}}for(var y=this.__startIndex;y<this.__endIndex;++y){var _=r[y];if(_){var b=_.shouldBePainted(o,u,!0,!0),C=_.__isRendered&&(_.__dirty&Sh||!b)?_.getPrevPaintRect():null;C&&g(C);var T=b&&(_.__dirty&Sh||!_.__isRendered)?_.getPaintRect():null;T&&g(T)}}for(var y=this.__prevStartIndex;y<this.__prevEndIndex;++y){var _=n[y],b=_&&_.shouldBePainted(o,u,!0,!0);if(_&&(!b||!_.__zr)&&_.__isRendered){var C=_.getPrevPaintRect();C&&g(C)}}var B;do{B=!1;for(var y=0;y<f.length;){if(f[y].isZero()){f.splice(y,1);continue}for(var L=y+1;L<f.length;)f[y].intersect(f[L])?(B=!0,f[y].union(f[L]),f.splice(L,1)):L++;y++}}while(B);return this._paintRects=f,f},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var o=this.dpr,u=this.dom,f=u.style,h=this.domBack;f&&(f.width=r+"px",f.height=n+"px"),u.width=r*o,u.height=n*o,h&&(h.width=r*o,h.height=n*o,o!==1&&this.ctxBack.scale(o,o))},e.prototype.clear=function(r,n,o){var u=this.dom,f=this.ctx,h=u.width,A=u.height;n=n||this.clearColor;var p=this.motionBlur&&!r,g=this.lastFrameAlpha,y=this.dpr,_=this;p&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(u,0,0,h/y,A/y));var b=this.domBack;function C(T,B,L,P){if(f.clearRect(T,B,L,P),n&&n!=="transparent"){var I=void 0;if(Tk(n)){var O=n.global||n.__width===L&&n.__height===P;I=O&&n.__canvasGradient||$K(f,n,{x:0,y:0,width:L,height:P}),n.__canvasGradient=I,n.__width=L,n.__height=P}else nIt(n)&&(n.scaleX=n.scaleX||y,n.scaleY=n.scaleY||y,I=KK(f,n,{dirty:function(){_.setUnpainted(),_.painter.refresh()}}));f.save(),f.fillStyle=I||n,f.fillRect(T,B,L,P),f.restore()}p&&(f.save(),f.globalAlpha=g,f.drawImage(b,T,B,L,P),f.restore())}!o||p?C(0,0,h,A):o.length&&jt(o,function(T){C(T.x*y,T.y*y,T.width*y,T.height*y)})},e}(cp),Axe=1e5,c1=314159,l5=.01,rNt=.001;function nNt(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function iNt(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var aNt=function(){function t(e,r,n,o){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var u=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=Wr({},n||{}),this.dpr=n.devicePixelRatio||qP,this._singleCanvas=u,this.root=e;var f=e.style;f&&($Pe(e),e.innerHTML=""),this.storage=r;var h=this._zlevelList;this._prevDisplayList=[];var A=this._layers;if(u){var g=e,y=g.width,_=g.height;n.width!=null&&(y=n.width),n.height!=null&&(_=n.height),this.dpr=n.devicePixelRatio||1,g.width=y*this.dpr,g.height=_*this.dpr,this._width=y,this._height=_;var b=new B3(g,this,this.dpr);b.__builtin__=!0,b.initContext(),A[c1]=b,b.zlevel=c1,h.push(c1),this._domRoot=e}else{this._width=t5(e,0,n),this._height=t5(e,1,n);var p=this._domRoot=iNt(this._width,this._height);e.appendChild(p)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,o=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var u=0;u<o.length;u++){var f=o[u],h=this._layers[f];if(!h.__builtin__&&h.refresh){var A=u===0?this._backgroundColor:null;h.refresh(A)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var o={inHover:!0,viewWidth:this._width,viewHeight:this._height},u,f=0;f<r;f++){var h=e[f];h.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Axe)),u||(u=n.ctx,u.save()),R1(u,h,o,f===r-1))}u&&u.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(Axe)},t.prototype.paintOne=function(e,r){Xke(e,r)},t.prototype._paintList=function(e,r,n,o){if(this._redrawId===o){n=n||!1,this._updateLayerStatus(e);var u=this._doPaintList(e,r,n),f=u.finished,h=u.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),h&&this._paintHoverList(e),f)this.eachLayer(function(p){p.afterBrush&&p.afterBrush()});else{var A=this;HP(function(){A._paintList(e,r,n,o)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(c1).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(o){o.virtual&&e.drawImage(o.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var o=this,u=[],f=this._opts.useDirtyRect,h=0;h<this._zlevelList.length;h++){var A=this._zlevelList[h],p=this._layers[A];p.__builtin__&&p!==this._hoverlayer&&(p.__dirty||n)&&u.push(p)}for(var g=!0,y=!1,_=function(T){var B=u[T],L=B.ctx,P=f&&B.createRepaintRects(e,r,b._width,b._height),I=n?B.__startIndex:B.__drawIndex,O=!n&&B.incremental&&Date.now,U=O&&Date.now(),N=B.zlevel===b._zlevelList[0]?b._backgroundColor:null;if(B.__startIndex===B.__endIndex)B.clear(!1,N,P);else if(I===B.__startIndex){var H=e[I];(!H.incremental||!H.notClear||n)&&B.clear(!1,N,P)}I===-1&&(console.error("For some unknown reason. drawIndex is -1"),I=B.__startIndex);var z,G=function(Y){var te={inHover:!1,allClipped:!1,prevEl:null,viewWidth:o._width,viewHeight:o._height};for(z=I;z<B.__endIndex;z++){var K=e[z];if(K.__inHover&&(y=!0),o._doPaintEl(K,B,f,Y,te,z===B.__endIndex-1),O){var ce=Date.now()-U;if(ce>15)break}}te.prevElClipPaths&&L.restore()};if(P)if(P.length===0)z=B.__endIndex;else for(var j=b.dpr,q=0;q<P.length;++q){var X=P[q];L.save(),L.beginPath(),L.rect(X.x*j,X.y*j,X.width*j,X.height*j),L.clip(),G(X),L.restore()}else L.save(),G(),L.restore();B.__drawIndex=z,B.__drawIndex<B.__endIndex&&(g=!1)},b=this,C=0;C<u.length;C++)_(C);return Oi.wxa&&jt(this._layers,function(T){T&&T.ctx&&T.ctx.draw&&T.ctx.draw()}),{finished:g,needsRefreshHover:y}},t.prototype._doPaintEl=function(e,r,n,o,u,f){var h=r.ctx;if(n){var A=e.getPaintRect();(!o||A&&A.intersect(o))&&(R1(h,e,u,f),e.setPrevPaintRect(A))}else R1(h,e,u,f)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=c1);var n=this._layers[e];return n||(n=new B3("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Bs(n,this._layerConfig[e],!0):this._layerConfig[e-l5]&&Bs(n,this._layerConfig[e-l5],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,o=this._zlevelList,u=o.length,f=this._domRoot,h=null,A=-1;if(!n[e]&&nNt(r)){if(u>0&&e>o[0]){for(A=0;A<u-1&&!(o[A]<e&&o[A+1]>e);A++);h=n[o[A]]}if(o.splice(A+1,0,e),n[e]=r,!r.virtual)if(h){var p=h.dom;p.nextSibling?f.insertBefore(r.dom,p.nextSibling):f.appendChild(r.dom)}else f.firstChild?f.insertBefore(r.dom,f.firstChild):f.appendChild(r.dom);r.painter||(r.painter=this)}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,o=0;o<n.length;o++){var u=n[o];e.call(r,this._layers[u],u)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,o=0;o<n.length;o++){var u=n[o],f=this._layers[u];f.__builtin__&&e.call(r,f,u)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,o=0;o<n.length;o++){var u=n[o],f=this._layers[u];f.__builtin__||e.call(r,f,u)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(y,_){y.__dirty=y.__used=!1});function r(y){u&&(u.__endIndex!==y&&(u.__dirty=!0),u.__endIndex=y)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var o=e[n];if(o.zlevel!==e[n-1].zlevel||o.incremental){this._needsManuallyCompositing=!0;break}}var u=null,f=0,h,A;for(A=0;A<e.length;A++){var o=e[A],p=o.zlevel,g=void 0;h!==p&&(h=p,f=0),o.incremental?(g=this.getLayer(p+rNt,this._needsManuallyCompositing),g.incremental=!0,f=1):g=this.getLayer(p+(f>0?l5:0),this._needsManuallyCompositing),g.__builtin__||fZ("ZLevel "+p+" has been used by unkown layer "+g.id),g!==u&&(g.__used=!0,g.__startIndex!==A&&(g.__dirty=!0),g.__startIndex=A,g.incremental?g.__drawIndex=-1:g.__drawIndex=A,r(A),u=g),o.__dirty&Sh&&!o.__inHover&&(g.__dirty=!0,g.incremental&&g.__drawIndex<0&&(g.__drawIndex=A))}r(A),this.eachBuiltinLayer(function(y,_){!y.__used&&y.getElementCount()>0&&(y.__dirty=!0,y.__startIndex=y.__endIndex=y.__drawIndex=0),y.__dirty&&y.__drawIndex<0&&(y.__drawIndex=y.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,jt(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?Bs(n[e],r,!0):n[e]=r;for(var o=0;o<this._zlevelList.length;o++){var u=this._zlevelList[o];if(u===e||u===e+l5){var f=this._layers[u];Bs(f,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,o=r[e];o&&(o.dom.parentNode.removeChild(o.dom),delete r[e],n.splice(ss(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var o=this._opts,u=this.root;if(e!=null&&(o.width=e),r!=null&&(o.height=r),e=t5(u,0,o),r=t5(u,1,o),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var f in this._layers)this._layers.hasOwnProperty(f)&&this._layers[f].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer(c1).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[c1].dom;var r=new B3("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var o=r.dom.width,u=r.dom.height;this.eachLayer(function(y){y.__builtin__?n.drawImage(y.dom,0,0,o,u):y.renderToCanvas&&(n.save(),y.renderToCanvas(n),n.restore())})}else for(var f={inHover:!1,viewWidth:this._width,viewHeight:this._height},h=this.storage.getDisplayList(!0),A=0,p=h.length;A<p;A++){var g=h[A];R1(n,g,f,A===p-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();function LQt(t){t.registerPainter("canvas",aNt)}var SE={exports:{}},oNt=SE.exports,vxe;function MQt(){return vxe||(vxe=1,function(t,e){(function(r,n){n(e)})(oNt,function(r){/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var n=function(s,a){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(i[c]=l[c])},n(s,a)};function o(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");n(s,a);function i(){this.constructor=s}s.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)}var u=function(){function s(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return s}(),f=function(){function s(){this.browser=new u,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 s}(),h=new f;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(h.wxa=!0,h.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?h.worker=!0:!h.hasGlobalWindow||"Deno"in window?(h.node=!0,h.svgSupported=!0):A(navigator.userAgent,h);function A(s,a){var i=a.browser,l=s.match(/Firefox\/([\d.]+)/),c=s.match(/MSIE\s([\d.]+)/)||s.match(/Trident\/.+?rv:(([\d.]+))/),d=s.match(/Edge?\/([\d.]+)/),v=/micromessenger/i.test(s);l&&(i.firefox=!0,i.version=l[1]),c&&(i.ie=!0,i.version=c[1]),d&&(i.edge=!0,i.version=d[1],i.newEdge=+d[1].split(".")[0]>18),v&&(i.weChat=!0),a.svgSupported=typeof SVGRect<"u",a.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,a.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11),a.domSupported=typeof document<"u";var m=document.documentElement.style;a.transform3dSupported=(i.ie&&"transition"in m||i.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in m)&&!("OTransition"in m),a.transformSupported=a.transform3dSupported||i.ie&&+i.version>=9}var p=12,g="sans-serif",y=p+"px "+g,_=20,b=100,C="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function T(s){var a={};if(typeof JSON>"u")return a;for(var i=0;i<s.length;i++){var l=String.fromCharCode(i+32),c=(s.charCodeAt(i)-_)/b;a[l]=c}return a}var B=T(C),L={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var s,a;return function(i,l){if(!s){var c=L.createCanvas();s=c&&c.getContext("2d")}if(s)return a!==l&&(a=s.font=l||y),s.measureText(i);i=i||"",l=l||y;var d=/((?:\d+)?\.?\d*)px/.exec(l),v=d&&+d[1]||p,m=0;if(l.indexOf("mono")>=0)m=v*i.length;else for(var w=0;w<i.length;w++){var S=B[i[w]];m+=S==null?v:S*v}return{width:m}}}(),loadImage:function(s,a,i){var l=new Image;return l.onload=a,l.onerror=i,l.src=s,l}};function P(s){for(var a in L)s[a]&&(L[a]=s[a])}var I=De(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(s,a){return s["[object "+a+"]"]=!0,s},{}),O=De(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(s,a){return s["[object "+a+"Array]"]=!0,s},{}),U=Object.prototype.toString,N=Array.prototype,H=N.forEach,z=N.filter,G=N.slice,j=N.map,q=(function(){}).constructor,X=q?q.prototype:null,Y="__proto__",te=2311;function K(){return te++}function ce(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];typeof console<"u"&&console.error.apply(console,s)}function ae(s){if(s==null||typeof s!="object")return s;var a=s,i=U.call(s);if(i==="[object Array]"){if(!rn(s)){a=[];for(var l=0,c=s.length;l<c;l++)a[l]=ae(s[l])}}else if(O[i]){if(!rn(s)){var d=s.constructor;if(d.from)a=d.from(s);else{a=new d(s.length);for(var l=0,c=s.length;l<c;l++)a[l]=s[l]}}}else if(!I[i]&&!rn(s)&&!$e(s)){a={};for(var v in s)s.hasOwnProperty(v)&&v!==Y&&(a[v]=ae(s[v]))}return a}function le(s,a,i){if(!Pe(a)||!Pe(s))return i?ae(a):s;for(var l in a)if(a.hasOwnProperty(l)&&l!==Y){var c=s[l],d=a[l];Pe(d)&&Pe(c)&&!Qe(d)&&!Qe(c)&&!$e(d)&&!$e(c)&&!ke(d)&&!ke(c)&&!rn(d)&&!rn(c)?le(c,d,i):(i||!(l in s))&&(s[l]=ae(a[l]))}return s}function pe(s,a){for(var i=s[0],l=1,c=s.length;l<c;l++)i=le(i,s[l],a);return i}function ie(s,a){if(Object.assign)Object.assign(s,a);else for(var i in a)a.hasOwnProperty(i)&&i!==Y&&(s[i]=a[i]);return s}function he(s,a,i){for(var l=Ne(a),c=0,d=l.length;c<d;c++){var v=l[c];(i?a[v]!=null:s[v]==null)&&(s[v]=a[v])}return s}var re=L.createCanvas;function oe(s,a){if(s){if(s.indexOf)return s.indexOf(a);for(var i=0,l=s.length;i<l;i++)if(s[i]===a)return i}return-1}function ye(s,a){var i=s.prototype;function l(){}l.prototype=a.prototype,s.prototype=new l;for(var c in i)i.hasOwnProperty(c)&&(s.prototype[c]=i[c]);s.prototype.constructor=s,s.superClass=a}function _e(s,a,i){if(s="prototype"in s?s.prototype:s,a="prototype"in a?a.prototype:a,Object.getOwnPropertyNames)for(var l=Object.getOwnPropertyNames(a),c=0;c<l.length;c++){var d=l[c];d!=="constructor"&&(i?a[d]!=null:s[d]==null)&&(s[d]=a[d])}else he(s,a,i)}function Ce(s){return!s||typeof s=="string"?!1:typeof s.length=="number"}function ne(s,a,i){if(s&&a)if(s.forEach&&s.forEach===H)s.forEach(a,i);else if(s.length===+s.length)for(var l=0,c=s.length;l<c;l++)a.call(i,s[l],l,s);else for(var d in s)s.hasOwnProperty(d)&&a.call(i,s[d],d,s)}function xe(s,a,i){if(!s)return[];if(!a)return fr(s);if(s.map&&s.map===j)return s.map(a,i);for(var l=[],c=0,d=s.length;c<d;c++)l.push(a.call(i,s[c],c,s));return l}function De(s,a,i,l){if(s&&a){for(var c=0,d=s.length;c<d;c++)i=a.call(l,i,s[c],c,s);return i}}function ze(s,a,i){if(!s)return[];if(!a)return fr(s);if(s.filter&&s.filter===z)return s.filter(a,i);for(var l=[],c=0,d=s.length;c<d;c++)a.call(i,s[c],c,s)&&l.push(s[c]);return l}function Ye(s,a,i){if(s&&a){for(var l=0,c=s.length;l<c;l++)if(a.call(i,s[l],l,s))return s[l]}}function Ne(s){if(!s)return[];if(Object.keys)return Object.keys(s);var a=[];for(var i in s)s.hasOwnProperty(i)&&a.push(i);return a}function yt(s,a){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];return function(){return s.apply(a,i.concat(G.call(arguments)))}}var Ue=X&&qe(X.bind)?X.call.bind(X.bind):yt;function ue(s){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];return function(){return s.apply(this,a.concat(G.call(arguments)))}}function Qe(s){return Array.isArray?Array.isArray(s):U.call(s)==="[object Array]"}function qe(s){return typeof s=="function"}function Re(s){return typeof s=="string"}function Me(s){return U.call(s)==="[object String]"}function Ge(s){return typeof s=="number"}function Pe(s){var a=typeof s;return a==="function"||!!s&&a==="object"}function ke(s){return!!I[U.call(s)]}function Be(s){return!!O[U.call(s)]}function $e(s){return typeof s=="object"&&typeof s.nodeType=="number"&&typeof s.ownerDocument=="object"}function nt(s){return s.colorStops!=null}function ft(s){return s.image!=null}function Mt(s){return U.call(s)==="[object RegExp]"}function Rt(s){return s!==s}function Bt(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];for(var i=0,l=s.length;i<l;i++)if(s[i]!=null)return s[i]}function It(s,a){return s??a}function qt(s,a,i){return s??a??i}function fr(s){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];return G.apply(s,a)}function lr(s){if(typeof s=="number")return[s,s,s,s];var a=s.length;return a===2?[s[0],s[1],s[0],s[1]]:a===3?[s[0],s[1],s[2],s[1]]:s}function _t(s,a){if(!s)throw new Error(a)}function br(s){return s==null?null:typeof s.trim=="function"?s.trim():s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var on="__ec_primitive__";function Br(s){s[on]=!0}function rn(s){return s[on]}var Yr=function(){function s(){this.data={}}return s.prototype.delete=function(a){var i=this.has(a);return i&&delete this.data[a],i},s.prototype.has=function(a){return this.data.hasOwnProperty(a)},s.prototype.get=function(a){return this.data[a]},s.prototype.set=function(a,i){return this.data[a]=i,this},s.prototype.keys=function(){return Ne(this.data)},s.prototype.forEach=function(a){var i=this.data;for(var l in i)i.hasOwnProperty(l)&&a(i[l],l)},s}(),cn=typeof Map=="function";function Vn(){return cn?new Map:new Yr}var Nr=function(){function s(a){var i=Qe(a);this.data=Vn();var l=this;a instanceof s?a.each(c):a&&ne(a,c);function c(d,v){i?l.set(d,v):l.set(v,d)}}return s.prototype.hasKey=function(a){return this.data.has(a)},s.prototype.get=function(a){return this.data.get(a)},s.prototype.set=function(a,i){return this.data.set(a,i),i},s.prototype.each=function(a,i){this.data.forEach(function(l,c){a.call(i,l,c)})},s.prototype.keys=function(){var a=this.data.keys();return cn?Array.from(a):a},s.prototype.removeKey=function(a){this.data.delete(a)},s}();function Ht(s){return new Nr(s)}function zr(s,a){for(var i=new s.constructor(s.length+a.length),l=0;l<s.length;l++)i[l]=s[l];for(var c=s.length,l=0;l<a.length;l++)i[l+c]=a[l];return i}function kn(s,a){var i;if(Object.create)i=Object.create(s);else{var l=function(){};l.prototype=s,i=new l}return a&&ie(i,a),i}function vt(s){var a=s.style;a.webkitUserSelect="none",a.userSelect="none",a.webkitTapHighlightColor="rgba(0,0,0,0)",a["-webkit-touch-callout"]="none"}function At(s,a){return s.hasOwnProperty(a)}function Ct(){}var Tt=180/Math.PI,ir=Object.freeze({__proto__:null,guid:K,logError:ce,clone:ae,merge:le,mergeAll:pe,extend:ie,defaults:he,createCanvas:re,indexOf:oe,inherits:ye,mixin:_e,isArrayLike:Ce,each:ne,map:xe,reduce:De,filter:ze,find:Ye,keys:Ne,bind:Ue,curry:ue,isArray:Qe,isFunction:qe,isString:Re,isStringSafe:Me,isNumber:Ge,isObject:Pe,isBuiltInObject:ke,isTypedArray:Be,isDom:$e,isGradientObject:nt,isImagePatternObject:ft,isRegExp:Mt,eqNaN:Rt,retrieve:Bt,retrieve2:It,retrieve3:qt,slice:fr,normalizeCssArray:lr,assert:_t,trim:br,setAsPrimitive:Br,isPrimitive:rn,HashMap:Nr,createHashMap:Ht,concatArray:zr,createObject:kn,disableUserSelect:vt,hasOwn:At,noop:Ct,RADIAN_TO_DEGREE:Tt});function et(s,a){return s==null&&(s=0),a==null&&(a=0),[s,a]}function ot(s,a){return s[0]=a[0],s[1]=a[1],s}function mt(s){return[s[0],s[1]]}function xt(s,a,i){return s[0]=a,s[1]=i,s}function nr(s,a,i){return s[0]=a[0]+i[0],s[1]=a[1]+i[1],s}function yr(s,a,i,l){return s[0]=a[0]+i[0]*l,s[1]=a[1]+i[1]*l,s}function Pr(s,a,i){return s[0]=a[0]-i[0],s[1]=a[1]-i[1],s}function pr(s){return Math.sqrt(Tr(s))}var Ar=pr;function Tr(s){return s[0]*s[0]+s[1]*s[1]}var Fr=Tr;function nn(s,a,i){return s[0]=a[0]*i[0],s[1]=a[1]*i[1],s}function fn(s,a,i){return s[0]=a[0]/i[0],s[1]=a[1]/i[1],s}function ci(s,a){return s[0]*a[0]+s[1]*a[1]}function _r(s,a,i){return s[0]=a[0]*i,s[1]=a[1]*i,s}function pt(s,a){var i=pr(a);return i===0?(s[0]=0,s[1]=0):(s[0]=a[0]/i,s[1]=a[1]/i),s}function or(s,a){return Math.sqrt((s[0]-a[0])*(s[0]-a[0])+(s[1]-a[1])*(s[1]-a[1]))}var Ur=or;function Ti(s,a){return(s[0]-a[0])*(s[0]-a[0])+(s[1]-a[1])*(s[1]-a[1])}var ni=Ti;function Li(s,a){return s[0]=-a[0],s[1]=-a[1],s}function ea(s,a,i,l){return s[0]=a[0]+l*(i[0]-a[0]),s[1]=a[1]+l*(i[1]-a[1]),s}function Tn(s,a,i){var l=a[0],c=a[1];return s[0]=i[0]*l+i[2]*c+i[4],s[1]=i[1]*l+i[3]*c+i[5],s}function Mi(s,a,i){return s[0]=Math.min(a[0],i[0]),s[1]=Math.min(a[1],i[1]),s}function Ka(s,a,i){return s[0]=Math.max(a[0],i[0]),s[1]=Math.max(a[1],i[1]),s}var ga=Object.freeze({__proto__:null,create:et,copy:ot,clone:mt,set:xt,add:nr,scaleAndAdd:yr,sub:Pr,len:pr,length:Ar,lenSquare:Tr,lengthSquare:Fr,mul:nn,div:fn,dot:ci,scale:_r,normalize:pt,distance:or,dist:Ur,distanceSquare:Ti,distSquare:ni,negate:Li,lerp:ea,applyTransform:Tn,min:Mi,max:Ka}),qn=function(){function s(a,i){this.target=a,this.topTarget=i&&i.topTarget}return s}(),$i=function(){function s(a){this.handler=a,a.on("mousedown",this._dragStart,this),a.on("mousemove",this._drag,this),a.on("mouseup",this._dragEnd,this)}return s.prototype._dragStart=function(a){for(var i=a.target;i&&!i.draggable;)i=i.parent||i.__hostTarget;i&&(this._draggingTarget=i,i.dragging=!0,this._x=a.offsetX,this._y=a.offsetY,this.handler.dispatchToElement(new qn(i,a),"dragstart",a.event))},s.prototype._drag=function(a){var i=this._draggingTarget;if(i){var l=a.offsetX,c=a.offsetY,d=l-this._x,v=c-this._y;this._x=l,this._y=c,i.drift(d,v,a),this.handler.dispatchToElement(new qn(i,a),"drag",a.event);var m=this.handler.findHover(l,c,i).target,w=this._dropTarget;this._dropTarget=m,i!==m&&(w&&m!==w&&this.handler.dispatchToElement(new qn(w,a),"dragleave",a.event),m&&m!==w&&this.handler.dispatchToElement(new qn(m,a),"dragenter",a.event))}},s.prototype._dragEnd=function(a){var i=this._draggingTarget;i&&(i.dragging=!1),this.handler.dispatchToElement(new qn(i,a),"dragend",a.event),this._dropTarget&&this.handler.dispatchToElement(new qn(this._dropTarget,a),"drop",a.event),this._draggingTarget=null,this._dropTarget=null},s}(),Da=function(){function s(a){a&&(this._$eventProcessor=a)}return s.prototype.on=function(a,i,l,c){this._$handlers||(this._$handlers={});var d=this._$handlers;if(typeof i=="function"&&(c=l,l=i,i=null),!l||!a)return this;var v=this._$eventProcessor;i!=null&&v&&v.normalizeQuery&&(i=v.normalizeQuery(i)),d[a]||(d[a]=[]);for(var m=0;m<d[a].length;m++)if(d[a][m].h===l)return this;var w={h:l,query:i,ctx:c||this,callAtLast:l.zrEventfulCallAtLast},S=d[a].length-1,x=d[a][S];return x&&x.callAtLast?d[a].splice(S,0,w):d[a].push(w),this},s.prototype.isSilent=function(a){var i=this._$handlers;return!i||!i[a]||!i[a].length},s.prototype.off=function(a,i){var l=this._$handlers;if(!l)return this;if(!a)return this._$handlers={},this;if(i){if(l[a]){for(var c=[],d=0,v=l[a].length;d<v;d++)l[a][d].h!==i&&c.push(l[a][d]);l[a]=c}l[a]&&l[a].length===0&&delete l[a]}else delete l[a];return this},s.prototype.trigger=function(a){for(var i=[],l=1;l<arguments.length;l++)i[l-1]=arguments[l];if(!this._$handlers)return this;var c=this._$handlers[a],d=this._$eventProcessor;if(c)for(var v=i.length,m=c.length,w=0;w<m;w++){var S=c[w];if(!(d&&d.filter&&S.query!=null&&!d.filter(a,S.query)))switch(v){case 0:S.h.call(S.ctx);break;case 1:S.h.call(S.ctx,i[0]);break;case 2:S.h.call(S.ctx,i[0],i[1]);break;default:S.h.apply(S.ctx,i);break}}return d&&d.afterTrigger&&d.afterTrigger(a),this},s.prototype.triggerWithContext=function(a){for(var i=[],l=1;l<arguments.length;l++)i[l-1]=arguments[l];if(!this._$handlers)return this;var c=this._$handlers[a],d=this._$eventProcessor;if(c)for(var v=i.length,m=i[v-1],w=c.length,S=0;S<w;S++){var x=c[S];if(!(d&&d.filter&&x.query!=null&&!d.filter(a,x.query)))switch(v){case 0:x.h.call(m);break;case 1:x.h.call(m,i[0]);break;case 2:x.h.call(m,i[0],i[1]);break;default:x.h.apply(m,i.slice(1,v-1));break}}return d&&d.afterTrigger&&d.afterTrigger(a),this},s}(),qs=Math.log(2);function Di(s,a,i,l,c,d){var v=l+"-"+c,m=s.length;if(d.hasOwnProperty(v))return d[v];if(a===1){var w=Math.round(Math.log((1<<m)-1&~c)/qs);return s[i][w]}for(var S=l|1<<i,x=i+1;l&1<<x;)x++;for(var E=0,M=0,D=0;M<m;M++){var k=1<<M;k&c||(E+=(D%2?-1:1)*s[i][M]*Di(s,a-1,x,S,c|k,d),D++)}return d[v]=E,E}function Wo(s,a){var i=[[s[0],s[1],1,0,0,0,-a[0]*s[0],-a[0]*s[1]],[0,0,0,s[0],s[1],1,-a[1]*s[0],-a[1]*s[1]],[s[2],s[3],1,0,0,0,-a[2]*s[2],-a[2]*s[3]],[0,0,0,s[2],s[3],1,-a[3]*s[2],-a[3]*s[3]],[s[4],s[5],1,0,0,0,-a[4]*s[4],-a[4]*s[5]],[0,0,0,s[4],s[5],1,-a[5]*s[4],-a[5]*s[5]],[s[6],s[7],1,0,0,0,-a[6]*s[6],-a[6]*s[7]],[0,0,0,s[6],s[7],1,-a[7]*s[6],-a[7]*s[7]]],l={},c=Di(i,8,0,0,0,l);if(c!==0){for(var d=[],v=0;v<8;v++)for(var m=0;m<8;m++)d[m]==null&&(d[m]=0),d[m]+=((v+m)%2?-1:1)*Di(i,7,v===0?1:0,1<<v,1<<m,l)/c*a[v];return function(w,S,x){var E=S*d[6]+x*d[7]+1;w[0]=(S*d[0]+x*d[1]+d[2])/E,w[1]=(S*d[3]+x*d[4]+d[5])/E}}}var na="___zrEVENTSAVED",bs=[];function Hl(s,a,i,l,c){return _s(bs,a,l,c,!0)&&_s(s,i,bs[0],bs[1])}function _s(s,a,i,l,c){if(a.getBoundingClientRect&&h.domSupported&&!Ws(a)){var d=a[na]||(a[na]={}),v=du(a,d),m=No(v,d,c);if(m)return m(s,i,l),!0}return!1}function du(s,a){var i=a.markers;if(i)return i;i=a.markers=[];for(var l=["left","right"],c=["top","bottom"],d=0;d<4;d++){var v=document.createElement("div"),m=v.style,w=d%2,S=(d>>1)%2;m.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",l[w]+":0",c[S]+":0",l[1-w]+":auto",c[1-S]+":auto",""].join("!important;"),s.appendChild(v),i.push(v)}return i}function No(s,a,i){for(var l=i?"invTrans":"trans",c=a[l],d=a.srcCoords,v=[],m=[],w=!0,S=0;S<4;S++){var x=s[S].getBoundingClientRect(),E=2*S,M=x.left,D=x.top;v.push(M,D),w=w&&d&&M===d[E]&&D===d[E+1],m.push(s[S].offsetLeft,s[S].offsetTop)}return w&&c?c:(a.srcCoords=v,a[l]=i?Wo(m,v):Wo(v,m))}function Ws(s){return s.nodeName.toUpperCase()==="CANVAS"}var mo=/([&<>"'])/g,$o={"&":"&","<":"<",">":">",'"':""","'":"'"};function yo(s){return s==null?"":(s+"").replace(mo,function(a,i){return $o[i]})}var rv=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Oc=[],wo=h.browser.firefox&&+h.browser.version.split(".")[0]<39;function wf(s,a,i,l){return i=i||{},l?Zu(s,a,i):wo&&a.layerX!=null&&a.layerX!==a.offsetX?(i.zrX=a.layerX,i.zrY=a.layerY):a.offsetX!=null?(i.zrX=a.offsetX,i.zrY=a.offsetY):Zu(s,a,i),i}function Zu(s,a,i){if(h.domSupported&&s.getBoundingClientRect){var l=a.clientX,c=a.clientY;if(Ws(s)){var d=s.getBoundingClientRect();i.zrX=l-d.left,i.zrY=c-d.top;return}else if(_s(Oc,s,l,c)){i.zrX=Oc[0],i.zrY=Oc[1];return}}i.zrX=i.zrY=0}function Ql(s){return s||window.event}function oo(s,a,i){if(a=Ql(a),a.zrX!=null)return a;var l=a.type,c=l&&l.indexOf("touch")>=0;if(c){var v=l!=="touchend"?a.targetTouches[0]:a.changedTouches[0];v&&wf(s,v,a,i)}else{wf(s,a,a,i);var d=kc(a);a.zrDelta=d?d/120:-(a.detail||0)/3}var m=a.button;return a.which==null&&m!==void 0&&rv.test(a.type)&&(a.which=m&1?1:m&2?3:m&4?2:0),a}function kc(s){var a=s.wheelDelta;if(a)return a;var i=s.deltaX,l=s.deltaY;if(i==null||l==null)return a;var c=Math.abs(l!==0?l:i),d=l>0?-1:l<0?1:i>0?-1:1;return 3*c*d}function bf(s,a,i,l){s.addEventListener(a,i,l)}function Kd(s,a,i,l){s.removeEventListener(a,i,l)}var us=function(s){s.preventDefault(),s.stopPropagation(),s.cancelBubble=!0};function cs(s){return s.which===2||s.which===3}var Ls=function(){function s(){this._track=[]}return s.prototype.recognize=function(a,i,l){return this._doTrack(a,i,l),this._recognize(a)},s.prototype.clear=function(){return this._track.length=0,this},s.prototype._doTrack=function(a,i,l){var c=a.touches;if(c){for(var d={points:[],touches:[],target:i,event:a},v=0,m=c.length;v<m;v++){var w=c[v],S=wf(l,w,{});d.points.push([S.zrX,S.zrY]),d.touches.push(w)}this._track.push(d)}},s.prototype._recognize=function(a){for(var i in Ju)if(Ju.hasOwnProperty(i)){var l=Ju[i](this._track,a);if(l)return l}},s}();function Vl(s){var a=s[1][0]-s[0][0],i=s[1][1]-s[0][1];return Math.sqrt(a*a+i*i)}function Tu(s){return[(s[0][0]+s[1][0])/2,(s[0][1]+s[1][1])/2]}var Ju={pinch:function(s,a){var i=s.length;if(i){var l=(s[i-1]||{}).points,c=(s[i-2]||{}).points||l;if(c&&c.length>1&&l&&l.length>1){var d=Vl(l)/Vl(c);!isFinite(d)&&(d=1),a.pinchScale=d;var v=Tu(l);return a.pinchX=v[0],a.pinchY=v[1],{type:"pinch",target:s[0].target,event:a}}}}};function gn(){return[1,0,0,1,0,0]}function ec(s){return s[0]=1,s[1]=0,s[2]=0,s[3]=1,s[4]=0,s[5]=0,s}function Fc(s,a){return s[0]=a[0],s[1]=a[1],s[2]=a[2],s[3]=a[3],s[4]=a[4],s[5]=a[5],s}function $s(s,a,i){var l=a[0]*i[0]+a[2]*i[1],c=a[1]*i[0]+a[3]*i[1],d=a[0]*i[2]+a[2]*i[3],v=a[1]*i[2]+a[3]*i[3],m=a[0]*i[4]+a[2]*i[5]+a[4],w=a[1]*i[4]+a[3]*i[5]+a[5];return s[0]=l,s[1]=c,s[2]=d,s[3]=v,s[4]=m,s[5]=w,s}function Ai(s,a,i){return s[0]=a[0],s[1]=a[1],s[2]=a[2],s[3]=a[3],s[4]=a[4]+i[0],s[5]=a[5]+i[1],s}function so(s,a,i,l){l===void 0&&(l=[0,0]);var c=a[0],d=a[2],v=a[4],m=a[1],w=a[3],S=a[5],x=Math.sin(i),E=Math.cos(i);return s[0]=c*E+m*x,s[1]=-c*x+m*E,s[2]=d*E+w*x,s[3]=-d*x+E*w,s[4]=E*(v-l[0])+x*(S-l[1])+l[0],s[5]=E*(S-l[1])-x*(v-l[0])+l[1],s}function _l(s,a,i){var l=i[0],c=i[1];return s[0]=a[0]*l,s[1]=a[1]*c,s[2]=a[2]*l,s[3]=a[3]*c,s[4]=a[4]*l,s[5]=a[5]*c,s}function zl(s,a){var i=a[0],l=a[2],c=a[4],d=a[1],v=a[3],m=a[5],w=i*v-d*l;return w?(w=1/w,s[0]=v*w,s[1]=-d*w,s[2]=-l*w,s[3]=i*w,s[4]=(l*m-v*c)*w,s[5]=(d*c-i*m)*w,s):null}function tc(s){var a=gn();return Fc(a,s),a}var _f=Object.freeze({__proto__:null,create:gn,identity:ec,copy:Fc,mul:$s,translate:Ai,rotate:so,scale:_l,invert:zl,clone:tc}),xn=function(){function s(a,i){this.x=a||0,this.y=i||0}return s.prototype.copy=function(a){return this.x=a.x,this.y=a.y,this},s.prototype.clone=function(){return new s(this.x,this.y)},s.prototype.set=function(a,i){return this.x=a,this.y=i,this},s.prototype.equal=function(a){return a.x===this.x&&a.y===this.y},s.prototype.add=function(a){return this.x+=a.x,this.y+=a.y,this},s.prototype.scale=function(a){this.x*=a,this.y*=a},s.prototype.scaleAndAdd=function(a,i){this.x+=a.x*i,this.y+=a.y*i},s.prototype.sub=function(a){return this.x-=a.x,this.y-=a.y,this},s.prototype.dot=function(a){return this.x*a.x+this.y*a.y},s.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},s.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},s.prototype.normalize=function(){var a=this.len();return this.x/=a,this.y/=a,this},s.prototype.distance=function(a){var i=this.x-a.x,l=this.y-a.y;return Math.sqrt(i*i+l*l)},s.prototype.distanceSquare=function(a){var i=this.x-a.x,l=this.y-a.y;return i*i+l*l},s.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},s.prototype.transform=function(a){if(a){var i=this.x,l=this.y;return this.x=a[0]*i+a[2]*l+a[4],this.y=a[1]*i+a[3]*l+a[5],this}},s.prototype.toArray=function(a){return a[0]=this.x,a[1]=this.y,a},s.prototype.fromArray=function(a){this.x=a[0],this.y=a[1]},s.set=function(a,i,l){a.x=i,a.y=l},s.copy=function(a,i){a.x=i.x,a.y=i.y},s.len=function(a){return Math.sqrt(a.x*a.x+a.y*a.y)},s.lenSquare=function(a){return a.x*a.x+a.y*a.y},s.dot=function(a,i){return a.x*i.x+a.y*i.y},s.add=function(a,i,l){a.x=i.x+l.x,a.y=i.y+l.y},s.sub=function(a,i,l){a.x=i.x-l.x,a.y=i.y-l.y},s.scale=function(a,i,l){a.x=i.x*l,a.y=i.y*l},s.scaleAndAdd=function(a,i,l,c){a.x=i.x+l.x*c,a.y=i.y+l.y*c},s.lerp=function(a,i,l,c){var d=1-c;a.x=d*i.x+c*l.x,a.y=d*i.y+c*l.y},s}(),fs=Math.min,Eu=Math.max,Ks=new xn,Ss=new xn,Au=new xn,vu=new xn,Uo=new xn,Gl=new xn,Bn=function(){function s(a,i,l,c){l<0&&(a=a+l,l=-l),c<0&&(i=i+c,c=-c),this.x=a,this.y=i,this.width=l,this.height=c}return s.prototype.union=function(a){var i=fs(a.x,this.x),l=fs(a.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Eu(a.x+a.width,this.x+this.width)-i:this.width=a.width,isFinite(this.y)&&isFinite(this.height)?this.height=Eu(a.y+a.height,this.y+this.height)-l:this.height=a.height,this.x=i,this.y=l},s.prototype.applyTransform=function(a){s.applyTransform(this,this,a)},s.prototype.calculateTransform=function(a){var i=this,l=a.width/i.width,c=a.height/i.height,d=gn();return Ai(d,d,[-i.x,-i.y]),_l(d,d,[l,c]),Ai(d,d,[a.x,a.y]),d},s.prototype.intersect=function(a,i){if(!a)return!1;a instanceof s||(a=s.create(a));var l=this,c=l.x,d=l.x+l.width,v=l.y,m=l.y+l.height,w=a.x,S=a.x+a.width,x=a.y,E=a.y+a.height,M=!(d<w||S<c||m<x||E<v);if(i){var D=1/0,k=0,Q=Math.abs(d-w),V=Math.abs(S-c),$=Math.abs(m-x),Z=Math.abs(E-v),ee=Math.min(Q,V),fe=Math.min($,Z);d<w||S<c?ee>k&&(k=ee,Q<V?xn.set(Gl,-Q,0):xn.set(Gl,V,0)):ee<D&&(D=ee,Q<V?xn.set(Uo,Q,0):xn.set(Uo,-V,0)),m<x||E<v?fe>k&&(k=fe,$<Z?xn.set(Gl,0,-$):xn.set(Gl,0,Z)):ee<D&&(D=ee,$<Z?xn.set(Uo,0,$):xn.set(Uo,0,-Z))}return i&&xn.copy(i,M?Uo:Gl),M},s.prototype.contain=function(a,i){var l=this;return a>=l.x&&a<=l.x+l.width&&i>=l.y&&i<=l.y+l.height},s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height)},s.prototype.copy=function(a){s.copy(this,a)},s.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},s.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},s.prototype.isZero=function(){return this.width===0||this.height===0},s.create=function(a){return new s(a.x,a.y,a.width,a.height)},s.copy=function(a,i){a.x=i.x,a.y=i.y,a.width=i.width,a.height=i.height},s.applyTransform=function(a,i,l){if(!l){a!==i&&s.copy(a,i);return}if(l[1]<1e-5&&l[1]>-1e-5&&l[2]<1e-5&&l[2]>-1e-5){var c=l[0],d=l[3],v=l[4],m=l[5];a.x=i.x*c+v,a.y=i.y*d+m,a.width=i.width*c,a.height=i.height*d,a.width<0&&(a.x+=a.width,a.width=-a.width),a.height<0&&(a.y+=a.height,a.height=-a.height);return}Ks.x=Au.x=i.x,Ks.y=vu.y=i.y,Ss.x=vu.x=i.x+i.width,Ss.y=Au.y=i.y+i.height,Ks.transform(l),vu.transform(l),Ss.transform(l),Au.transform(l),a.x=fs(Ks.x,Ss.x,Au.x,vu.x),a.y=fs(Ks.y,Ss.y,Au.y,vu.y);var w=Eu(Ks.x,Ss.x,Au.x,vu.x),S=Eu(Ks.y,Ss.y,Au.y,vu.y);a.width=w-a.x,a.height=S-a.y},s}(),jl="silent";function Sf(s,a,i){return{type:s,event:i,target:a.target,topTarget:a.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:Nc}}function Nc(){us(this.event)}var Uc=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.handler=null,i}return a.prototype.dispose=function(){},a.prototype.setCursor=function(){},a}(Da),pu=function(){function s(a,i){this.x=a,this.y=i}return s}(),Lo=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Sl=new Bn(0,0,0,0),me=function(s){o(a,s);function a(i,l,c,d,v){var m=s.call(this)||this;return m._hovered=new pu(0,0),m.storage=i,m.painter=l,m.painterRoot=d,m._pointerSize=v,c=c||new Uc,m.proxy=null,m.setHandlerProxy(c),m._draggingMgr=new $i(m),m}return a.prototype.setHandlerProxy=function(i){this.proxy&&this.proxy.dispose(),i&&(ne(Lo,function(l){i.on&&i.on(l,this[l],this)},this),i.handler=this),this.proxy=i},a.prototype.mousemove=function(i){var l=i.zrX,c=i.zrY,d=St(this,l,c),v=this._hovered,m=v.target;m&&!m.__zr&&(v=this.findHover(v.x,v.y),m=v.target);var w=this._hovered=d?new pu(l,c):this.findHover(l,c),S=w.target,x=this.proxy;x.setCursor&&x.setCursor(S?S.cursor:"default"),m&&S!==m&&this.dispatchToElement(v,"mouseout",i),this.dispatchToElement(w,"mousemove",i),S&&S!==m&&this.dispatchToElement(w,"mouseover",i)},a.prototype.mouseout=function(i){var l=i.zrEventControl;l!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",i),l!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:i})},a.prototype.resize=function(){this._hovered=new pu(0,0)},a.prototype.dispatch=function(i,l){var c=this[i];c&&c.call(this,l)},a.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},a.prototype.setCursorStyle=function(i){var l=this.proxy;l.setCursor&&l.setCursor(i)},a.prototype.dispatchToElement=function(i,l,c){i=i||{};var d=i.target;if(!(d&&d.silent)){for(var v="on"+l,m=Sf(l,i,c);d&&(d[v]&&(m.cancelBubble=!!d[v].call(d,m)),d.trigger(l,m),d=d.__hostTarget?d.__hostTarget:d.parent,!m.cancelBubble););m.cancelBubble||(this.trigger(l,m),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(w){typeof w[v]=="function"&&w[v].call(w,m),w.trigger&&w.trigger(l,m)}))}},a.prototype.findHover=function(i,l,c){var d=this.storage.getDisplayList(),v=new pu(i,l);if(lt(d,v,i,l,c),this._pointerSize&&!v.target){for(var m=[],w=this._pointerSize,S=w/2,x=new Bn(i-S,l-S,w,w),E=d.length-1;E>=0;E--){var M=d[E];M!==c&&!M.ignore&&!M.ignoreCoarsePointer&&(!M.parent||!M.parent.ignoreCoarsePointer)&&(Sl.copy(M.getBoundingRect()),M.transform&&Sl.applyTransform(M.transform),Sl.intersect(x)&&m.push(M))}if(m.length)for(var D=4,k=Math.PI/12,Q=Math.PI*2,V=0;V<S;V+=D)for(var $=0;$<Q;$+=k){var Z=i+V*Math.cos($),ee=l+V*Math.sin($);if(lt(m,v,Z,ee,c),v.target)return v}}return v},a.prototype.processGesture=function(i,l){this._gestureMgr||(this._gestureMgr=new Ls);var c=this._gestureMgr;l==="start"&&c.clear();var d=c.recognize(i,this.findHover(i.zrX,i.zrY,null).target,this.proxy.dom);if(l==="end"&&c.clear(),d){var v=d.type;i.gestureEvent=v;var m=new pu;m.target=d.target,this.dispatchToElement(m,v,d.event)}},a}(Da);ne(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(s){me.prototype[s]=function(a){var i=a.zrX,l=a.zrY,c=St(this,i,l),d,v;if((s!=="mouseup"||!c)&&(d=this.findHover(i,l),v=d.target),s==="mousedown")this._downEl=v,this._downPoint=[a.zrX,a.zrY],this._upEl=v;else if(s==="mouseup")this._upEl=v;else if(s==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ur(this._downPoint,[a.zrX,a.zrY])>4)return;this._downPoint=null}this.dispatchToElement(d,s,a)}});function Ve(s,a,i){if(s[s.rectHover?"rectContain":"contain"](a,i)){for(var l=s,c=void 0,d=!1;l;){if(l.ignoreClip&&(d=!0),!d){var v=l.getClipPath();if(v&&!v.contain(a,i))return!1}l.silent&&(c=!0);var m=l.__hostTarget;l=m||l.parent}return c?jl:!0}return!1}function lt(s,a,i,l,c){for(var d=s.length-1;d>=0;d--){var v=s[d],m=void 0;if(v!==c&&!v.ignore&&(m=Ve(v,i,l))&&(!a.topTarget&&(a.topTarget=v),m!==jl)){a.target=v;break}}}function St(s,a,i){var l=s.painter;return a<0||a>l.getWidth()||i<0||i>l.getHeight()}var Qt=32,Zt=7;function hr(s){for(var a=0;s>=Qt;)a|=s&1,s>>=1;return s+a}function Jr(s,a,i,l){var c=a+1;if(c===i)return 1;if(l(s[c++],s[a])<0){for(;c<i&&l(s[c],s[c-1])<0;)c++;hn(s,a,c)}else for(;c<i&&l(s[c],s[c-1])>=0;)c++;return c-a}function hn(s,a,i){for(i--;a<i;){var l=s[a];s[a++]=s[i],s[i--]=l}}function Wn(s,a,i,l,c){for(l===a&&l++;l<i;l++){for(var d=s[l],v=a,m=l,w;v<m;)w=v+m>>>1,c(d,s[w])<0?m=w:v=w+1;var S=l-v;switch(S){case 3:s[v+3]=s[v+2];case 2:s[v+2]=s[v+1];case 1:s[v+1]=s[v];break;default:for(;S>0;)s[v+S]=s[v+S-1],S--}s[v]=d}}function Xn(s,a,i,l,c,d){var v=0,m=0,w=1;if(d(s,a[i+c])>0){for(m=l-c;w<m&&d(s,a[i+c+w])>0;)v=w,w=(w<<1)+1,w<=0&&(w=m);w>m&&(w=m),v+=c,w+=c}else{for(m=c+1;w<m&&d(s,a[i+c-w])<=0;)v=w,w=(w<<1)+1,w<=0&&(w=m);w>m&&(w=m);var S=v;v=c-w,w=c-S}for(v++;v<w;){var x=v+(w-v>>>1);d(s,a[i+x])>0?v=x+1:w=x}return w}function ji(s,a,i,l,c,d){var v=0,m=0,w=1;if(d(s,a[i+c])<0){for(m=c+1;w<m&&d(s,a[i+c-w])<0;)v=w,w=(w<<1)+1,w<=0&&(w=m);w>m&&(w=m);var S=v;v=c-w,w=c-S}else{for(m=l-c;w<m&&d(s,a[i+c+w])>=0;)v=w,w=(w<<1)+1,w<=0&&(w=m);w>m&&(w=m),v+=c,w+=c}for(v++;v<w;){var x=v+(w-v>>>1);d(s,a[i+x])<0?w=x:v=x+1}return w}function Ia(s,a){var i=Zt,l,c,d=0,v=[];l=[],c=[];function m(D,k){l[d]=D,c[d]=k,d+=1}function w(){for(;d>1;){var D=d-2;if(D>=1&&c[D-1]<=c[D]+c[D+1]||D>=2&&c[D-2]<=c[D]+c[D-1])c[D-1]<c[D+1]&&D--;else if(c[D]>c[D+1])break;x(D)}}function S(){for(;d>1;){var D=d-2;D>0&&c[D-1]<c[D+1]&&D--,x(D)}}function x(D){var k=l[D],Q=c[D],V=l[D+1],$=c[D+1];c[D]=Q+$,D===d-3&&(l[D+1]=l[D+2],c[D+1]=c[D+2]),d--;var Z=ji(s[V],s,k,Q,0,a);k+=Z,Q-=Z,Q!==0&&($=Xn(s[k+Q-1],s,V,$,$-1,a),$!==0&&(Q<=$?E(k,Q,V,$):M(k,Q,V,$)))}function E(D,k,Q,V){var $=0;for($=0;$<k;$++)v[$]=s[D+$];var Z=0,ee=Q,fe=D;if(s[fe++]=s[ee++],--V===0){for($=0;$<k;$++)s[fe+$]=v[Z+$];return}if(k===1){for($=0;$<V;$++)s[fe+$]=s[ee+$];s[fe+V]=v[Z];return}for(var ve=i,ge,Se,Ee;;){ge=0,Se=0,Ee=!1;do if(a(s[ee],v[Z])<0){if(s[fe++]=s[ee++],Se++,ge=0,--V===0){Ee=!0;break}}else if(s[fe++]=v[Z++],ge++,Se=0,--k===1){Ee=!0;break}while((ge|Se)<ve);if(Ee)break;do{if(ge=ji(s[ee],v,Z,k,0,a),ge!==0){for($=0;$<ge;$++)s[fe+$]=v[Z+$];if(fe+=ge,Z+=ge,k-=ge,k<=1){Ee=!0;break}}if(s[fe++]=s[ee++],--V===0){Ee=!0;break}if(Se=Xn(v[Z],s,ee,V,0,a),Se!==0){for($=0;$<Se;$++)s[fe+$]=s[ee+$];if(fe+=Se,ee+=Se,V-=Se,V===0){Ee=!0;break}}if(s[fe++]=v[Z++],--k===1){Ee=!0;break}ve--}while(ge>=Zt||Se>=Zt);if(Ee)break;ve<0&&(ve=0),ve+=2}if(i=ve,i<1&&(i=1),k===1){for($=0;$<V;$++)s[fe+$]=s[ee+$];s[fe+V]=v[Z]}else{if(k===0)throw new Error;for($=0;$<k;$++)s[fe+$]=v[Z+$]}}function M(D,k,Q,V){var $=0;for($=0;$<V;$++)v[$]=s[Q+$];var Z=D+k-1,ee=V-1,fe=Q+V-1,ve=0,ge=0;if(s[fe--]=s[Z--],--k===0){for(ve=fe-(V-1),$=0;$<V;$++)s[ve+$]=v[$];return}if(V===1){for(fe-=k,Z-=k,ge=fe+1,ve=Z+1,$=k-1;$>=0;$--)s[ge+$]=s[ve+$];s[fe]=v[ee];return}for(var Se=i;;){var Ee=0,Ie=0,Le=!1;do if(a(v[ee],s[Z])<0){if(s[fe--]=s[Z--],Ee++,Ie=0,--k===0){Le=!0;break}}else if(s[fe--]=v[ee--],Ie++,Ee=0,--V===1){Le=!0;break}while((Ee|Ie)<Se);if(Le)break;do{if(Ee=k-ji(v[ee],s,D,k,k-1,a),Ee!==0){for(fe-=Ee,Z-=Ee,k-=Ee,ge=fe+1,ve=Z+1,$=Ee-1;$>=0;$--)s[ge+$]=s[ve+$];if(k===0){Le=!0;break}}if(s[fe--]=v[ee--],--V===1){Le=!0;break}if(Ie=V-Xn(s[Z],v,0,V,V-1,a),Ie!==0){for(fe-=Ie,ee-=Ie,V-=Ie,ge=fe+1,ve=ee+1,$=0;$<Ie;$++)s[ge+$]=v[ve+$];if(V<=1){Le=!0;break}}if(s[fe--]=s[Z--],--k===0){Le=!0;break}Se--}while(Ee>=Zt||Ie>=Zt);if(Le)break;Se<0&&(Se=0),Se+=2}if(i=Se,i<1&&(i=1),V===1){for(fe-=k,Z-=k,ge=fe+1,ve=Z+1,$=k-1;$>=0;$--)s[ge+$]=s[ve+$];s[fe]=v[ee]}else{if(V===0)throw new Error;for(ve=fe-(V-1),$=0;$<V;$++)s[ve+$]=v[$]}}return{mergeRuns:w,forceMergeRuns:S,pushRun:m}}function Ra(s,a,i,l){i||(i=0),l||(l=s.length);var c=l-i;if(!(c<2)){var d=0;if(c<Qt){d=Jr(s,i,l,a),Wn(s,i,l,i+d,a);return}var v=Ia(s,a),m=hr(c);do{if(d=Jr(s,i,l,a),d<m){var w=c;w>m&&(w=m),Wn(s,i,i+w,i+d,a),d=w}v.pushRun(i,d),v.mergeRuns(),c-=d,i+=d}while(c!==0);v.forceMergeRuns()}}var bi=1,lo=2,Pa=4,Ko=!1;function Ho(){Ko||(Ko=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Hc(s,a){return s.zlevel===a.zlevel?s.z===a.z?s.z2-a.z2:s.z-a.z:s.zlevel-a.zlevel}var Ap=function(){function s(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Hc}return s.prototype.traverse=function(a,i){for(var l=0;l<this._roots.length;l++)this._roots[l].traverse(a,i)},s.prototype.getDisplayList=function(a,i){i=i||!1;var l=this._displayList;return(a||!l.length)&&this.updateDisplayList(i),l},s.prototype.updateDisplayList=function(a){this._displayListLen=0;for(var i=this._roots,l=this._displayList,c=0,d=i.length;c<d;c++)this._updateAndAddDisplayable(i[c],null,a);l.length=this._displayListLen,Ra(l,Hc)},s.prototype._updateAndAddDisplayable=function(a,i,l){if(!(a.ignore&&!l)){a.beforeUpdate(),a.update(),a.afterUpdate();var c=a.getClipPath();if(a.ignoreClip)i=null;else if(c){i?i=i.slice():i=[];for(var d=c,v=a;d;)d.parent=v,d.updateTransform(),i.push(d),v=d,d=d.getClipPath()}if(a.childrenRef){for(var m=a.childrenRef(),w=0;w<m.length;w++){var S=m[w];a.__dirty&&(S.__dirty|=bi),this._updateAndAddDisplayable(S,i,l)}a.__dirty=0}else{var x=a;i&&i.length?x.__clipPaths=i:x.__clipPaths&&x.__clipPaths.length>0&&(x.__clipPaths=[]),isNaN(x.z)&&(Ho(),x.z=0),isNaN(x.z2)&&(Ho(),x.z2=0),isNaN(x.zlevel)&&(Ho(),x.zlevel=0),this._displayList[this._displayListLen++]=x}var E=a.getDecalElement&&a.getDecalElement();E&&this._updateAndAddDisplayable(E,i,l);var M=a.getTextGuideLine();M&&this._updateAndAddDisplayable(M,i,l);var D=a.getTextContent();D&&this._updateAndAddDisplayable(D,i,l)}},s.prototype.addRoot=function(a){a.__zr&&a.__zr.storage===this||this._roots.push(a)},s.prototype.delRoot=function(a){if(a instanceof Array){for(var i=0,l=a.length;i<l;i++)this.delRoot(a[i]);return}var c=oe(this._roots,a);c>=0&&this._roots.splice(c,1)},s.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},s.prototype.getRoots=function(){return this._roots},s.prototype.dispose=function(){this._displayList=null,this._roots=null},s}(),Yd;Yd=h.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(s){return setTimeout(s,16)};var Qc=Yd,Ys={linear:function(s){return s},quadraticIn:function(s){return s*s},quadraticOut:function(s){return s*(2-s)},quadraticInOut:function(s){return(s*=2)<1?.5*s*s:-.5*(--s*(s-2)-1)},cubicIn:function(s){return s*s*s},cubicOut:function(s){return--s*s*s+1},cubicInOut:function(s){return(s*=2)<1?.5*s*s*s:.5*((s-=2)*s*s+2)},quarticIn:function(s){return s*s*s*s},quarticOut:function(s){return 1- --s*s*s*s},quarticInOut:function(s){return(s*=2)<1?.5*s*s*s*s:-.5*((s-=2)*s*s*s-2)},quinticIn:function(s){return s*s*s*s*s},quinticOut:function(s){return--s*s*s*s*s+1},quinticInOut:function(s){return(s*=2)<1?.5*s*s*s*s*s:.5*((s-=2)*s*s*s*s+2)},sinusoidalIn:function(s){return 1-Math.cos(s*Math.PI/2)},sinusoidalOut:function(s){return Math.sin(s*Math.PI/2)},sinusoidalInOut:function(s){return .5*(1-Math.cos(Math.PI*s))},exponentialIn:function(s){return s===0?0:Math.pow(1024,s-1)},exponentialOut:function(s){return s===1?1:1-Math.pow(2,-10*s)},exponentialInOut:function(s){return s===0?0:s===1?1:(s*=2)<1?.5*Math.pow(1024,s-1):.5*(-Math.pow(2,-10*(s-1))+2)},circularIn:function(s){return 1-Math.sqrt(1-s*s)},circularOut:function(s){return Math.sqrt(1- --s*s)},circularInOut:function(s){return(s*=2)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1)},elasticIn:function(s){var a,i=.1,l=.4;return s===0?0:s===1?1:(!i||i<1?(i=1,a=l/4):a=l*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(s-=1))*Math.sin((s-a)*(2*Math.PI)/l)))},elasticOut:function(s){var a,i=.1,l=.4;return s===0?0:s===1?1:(!i||i<1?(i=1,a=l/4):a=l*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*s)*Math.sin((s-a)*(2*Math.PI)/l)+1)},elasticInOut:function(s){var a,i=.1,l=.4;return s===0?0:s===1?1:(!i||i<1?(i=1,a=l/4):a=l*Math.asin(1/i)/(2*Math.PI),(s*=2)<1?-.5*(i*Math.pow(2,10*(s-=1))*Math.sin((s-a)*(2*Math.PI)/l)):i*Math.pow(2,-10*(s-=1))*Math.sin((s-a)*(2*Math.PI)/l)*.5+1)},backIn:function(s){var a=1.70158;return s*s*((a+1)*s-a)},backOut:function(s){var a=1.70158;return--s*s*((a+1)*s+a)+1},backInOut:function(s){var a=2.5949095;return(s*=2)<1?.5*(s*s*((a+1)*s-a)):.5*((s-=2)*s*((a+1)*s+a)+2)},bounceIn:function(s){return 1-Ys.bounceOut(1-s)},bounceOut:function(s){return s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375},bounceInOut:function(s){return s<.5?Ys.bounceIn(s*2)*.5:Ys.bounceOut(s*2-1)*.5+.5}},Vc=Math.pow,ql=Math.sqrt,Bu=1e-8,Yo=1e-4,rc=ql(3),Xo=1/3,Xs=et(),Ms=et(),bo=et();function Wl(s){return s>-Bu&&s<Bu}function ih(s){return s>Bu||s<-Bu}function Oa(s,a,i,l,c){var d=1-c;return d*d*(d*s+3*c*a)+c*c*(c*l+3*d*i)}function uo(s,a,i,l,c){var d=1-c;return 3*(((a-s)*d+2*(i-a)*c)*d+(l-i)*c*c)}function Zs(s,a,i,l,c,d){var v=l+3*(a-i)-s,m=3*(i-a*2+s),w=3*(a-s),S=s-c,x=m*m-3*v*w,E=m*w-9*v*S,M=w*w-3*m*S,D=0;if(Wl(x)&&Wl(E))if(Wl(m))d[0]=0;else{var k=-w/m;k>=0&&k<=1&&(d[D++]=k)}else{var Q=E*E-4*x*M;if(Wl(Q)){var V=E/x,k=-m/v+V,$=-V/2;k>=0&&k<=1&&(d[D++]=k),$>=0&&$<=1&&(d[D++]=$)}else if(Q>0){var Z=ql(Q),ee=x*m+1.5*v*(-E+Z),fe=x*m+1.5*v*(-E-Z);ee<0?ee=-Vc(-ee,Xo):ee=Vc(ee,Xo),fe<0?fe=-Vc(-fe,Xo):fe=Vc(fe,Xo);var k=(-m-(ee+fe))/(3*v);k>=0&&k<=1&&(d[D++]=k)}else{var ve=(2*x*m-3*v*E)/(2*ql(x*x*x)),ge=Math.acos(ve)/3,Se=ql(x),Ee=Math.cos(ge),k=(-m-2*Se*Ee)/(3*v),$=(-m+Se*(Ee+rc*Math.sin(ge)))/(3*v),Ie=(-m+Se*(Ee-rc*Math.sin(ge)))/(3*v);k>=0&&k<=1&&(d[D++]=k),$>=0&&$<=1&&(d[D++]=$),Ie>=0&&Ie<=1&&(d[D++]=Ie)}}return D}function kh(s,a,i,l,c){var d=6*i-12*a+6*s,v=9*a+3*l-3*s-9*i,m=3*a-3*s,w=0;if(Wl(v)){if(ih(d)){var S=-m/d;S>=0&&S<=1&&(c[w++]=S)}}else{var x=d*d-4*v*m;if(Wl(x))c[0]=-d/(2*v);else if(x>0){var E=ql(x),S=(-d+E)/(2*v),M=(-d-E)/(2*v);S>=0&&S<=1&&(c[w++]=S),M>=0&&M<=1&&(c[w++]=M)}}return w}function gu(s,a,i,l,c,d){var v=(a-s)*c+s,m=(i-a)*c+a,w=(l-i)*c+i,S=(m-v)*c+v,x=(w-m)*c+m,E=(x-S)*c+S;d[0]=s,d[1]=v,d[2]=S,d[3]=E,d[4]=E,d[5]=x,d[6]=w,d[7]=l}function zc(s,a,i,l,c,d,v,m,w,S,x){var E,M=.005,D=1/0,k,Q,V,$;Xs[0]=w,Xs[1]=S;for(var Z=0;Z<1;Z+=.05)Ms[0]=Oa(s,i,c,v,Z),Ms[1]=Oa(a,l,d,m,Z),V=ni(Xs,Ms),V<D&&(E=Z,D=V);D=1/0;for(var ee=0;ee<32&&!(M<Yo);ee++)k=E-M,Q=E+M,Ms[0]=Oa(s,i,c,v,k),Ms[1]=Oa(a,l,d,m,k),V=ni(Ms,Xs),k>=0&&V<D?(E=k,D=V):(bo[0]=Oa(s,i,c,v,Q),bo[1]=Oa(a,l,d,m,Q),$=ni(bo,Xs),Q<=1&&$<D?(E=Q,D=$):M*=.5);return x&&(x[0]=Oa(s,i,c,v,E),x[1]=Oa(a,l,d,m,E)),ql(D)}function xf(s,a,i,l,c,d,v,m,w){for(var S=s,x=a,E=0,M=1/w,D=1;D<=w;D++){var k=D*M,Q=Oa(s,i,c,v,k),V=Oa(a,l,d,m,k),$=Q-S,Z=V-x;E+=Math.sqrt($*$+Z*Z),S=Q,x=V}return E}function qi(s,a,i,l){var c=1-l;return c*(c*s+2*l*a)+l*l*i}function Ds(s,a,i,l){return 2*((1-l)*(a-s)+l*(i-a))}function Cf(s,a,i,l,c){var d=s-2*a+i,v=2*(a-s),m=s-l,w=0;if(Wl(d)){if(ih(v)){var S=-m/v;S>=0&&S<=1&&(c[w++]=S)}}else{var x=v*v-4*d*m;if(Wl(x)){var S=-v/(2*d);S>=0&&S<=1&&(c[w++]=S)}else if(x>0){var E=ql(x),S=(-v+E)/(2*d),M=(-v-E)/(2*d);S>=0&&S<=1&&(c[w++]=S),M>=0&&M<=1&&(c[w++]=M)}}return w}function mu(s,a,i){var l=s+i-2*a;return l===0?.5:(s-a)/l}function $l(s,a,i,l,c){var d=(a-s)*l+s,v=(i-a)*l+a,m=(v-d)*l+d;c[0]=s,c[1]=d,c[2]=m,c[3]=m,c[4]=v,c[5]=i}function nc(s,a,i,l,c,d,v,m,w){var S,x=.005,E=1/0;Xs[0]=v,Xs[1]=m;for(var M=0;M<1;M+=.05){Ms[0]=qi(s,i,c,M),Ms[1]=qi(a,l,d,M);var D=ni(Xs,Ms);D<E&&(S=M,E=D)}E=1/0;for(var k=0;k<32&&!(x<Yo);k++){var Q=S-x,V=S+x;Ms[0]=qi(s,i,c,Q),Ms[1]=qi(a,l,d,Q);var D=ni(Ms,Xs);if(Q>=0&&D<E)S=Q,E=D;else{bo[0]=qi(s,i,c,V),bo[1]=qi(a,l,d,V);var $=ni(bo,Xs);V<=1&&$<E?(S=V,E=$):x*=.5}}return w&&(w[0]=qi(s,i,c,S),w[1]=qi(a,l,d,S)),ql(E)}function Gc(s,a,i,l,c,d,v){for(var m=s,w=a,S=0,x=1/v,E=1;E<=v;E++){var M=E*x,D=qi(s,i,c,M),k=qi(a,l,d,M),Q=D-m,V=k-w;S+=Math.sqrt(Q*Q+V*V),m=D,w=k}return S}var ka=/cubic-bezier\(([0-9,\.e ]+)\)/;function Xd(s){var a=s&&ka.exec(s);if(a){var i=a[1].split(","),l=+br(i[0]),c=+br(i[1]),d=+br(i[2]),v=+br(i[3]);if(isNaN(l+c+d+v))return;var m=[];return function(w){return w<=0?0:w>=1?1:Zs(0,l,d,1,w,m)&&Oa(0,c,v,1,m[0])}}}var Kl=function(){function s(a){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=a.life||1e3,this._delay=a.delay||0,this.loop=a.loop||!1,this.onframe=a.onframe||Ct,this.ondestroy=a.ondestroy||Ct,this.onrestart=a.onrestart||Ct,a.easing&&this.setEasing(a.easing)}return s.prototype.step=function(a,i){if(this._inited||(this._startTime=a+this._delay,this._inited=!0),this._paused){this._pausedTime+=i;return}var l=this._life,c=a-this._startTime-this._pausedTime,d=c/l;d<0&&(d=0),d=Math.min(d,1);var v=this.easingFunc,m=v?v(d):d;if(this.onframe(m),d===1)if(this.loop){var w=c%l;this._startTime=a-w,this._pausedTime=0,this.onrestart()}else return!0;return!1},s.prototype.pause=function(){this._paused=!0},s.prototype.resume=function(){this._paused=!1},s.prototype.setEasing=function(a){this.easing=a,this.easingFunc=qe(a)?a:Ys[a]||Xd(a)},s}(),Iu=function(){function s(a){this.value=a}return s}(),ah=function(){function s(){this._len=0}return s.prototype.insert=function(a){var i=new Iu(a);return this.insertEntry(i),i},s.prototype.insertEntry=function(a){this.head?(this.tail.next=a,a.prev=this.tail,a.next=null,this.tail=a):this.head=this.tail=a,this._len++},s.prototype.remove=function(a){var i=a.prev,l=a.next;i?i.next=l:this.head=l,l?l.prev=i:this.tail=i,a.next=a.prev=null,this._len--},s.prototype.len=function(){return this._len},s.prototype.clear=function(){this.head=this.tail=null,this._len=0},s}(),ic=function(){function s(a){this._list=new ah,this._maxSize=10,this._map={},this._maxSize=a}return s.prototype.put=function(a,i){var l=this._list,c=this._map,d=null;if(c[a]==null){var v=l.len(),m=this._lastRemovedEntry;if(v>=this._maxSize&&v>0){var w=l.head;l.remove(w),delete c[w.key],d=w.value,this._lastRemovedEntry=w}m?m.value=i:m=new Iu(i),m.key=a,l.insertEntry(m),c[a]=m}return d},s.prototype.get=function(a){var i=this._map[a],l=this._list;if(i!=null)return i!==l.tail&&(l.remove(i),l.insertEntry(i)),i.value},s.prototype.clear=function(){this._list.clear(),this._map={}},s.prototype.len=function(){return this._list.len()},s}(),Lu={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 it(s){return s=Math.round(s),s<0?0:s>255?255:s}function gt(s){return s=Math.round(s),s<0?0:s>360?360:s}function st(s){return s<0?0:s>1?1:s}function Ze(s){var a=s;return a.length&&a.charAt(a.length-1)==="%"?it(parseFloat(a)/100*255):it(parseInt(a,10))}function Et(s){var a=s;return a.length&&a.charAt(a.length-1)==="%"?st(parseFloat(a)/100):st(parseFloat(a))}function Nt(s,a,i){return i<0?i+=1:i>1&&(i-=1),i*6<1?s+(a-s)*i*6:i*2<1?a:i*3<2?s+(a-s)*(2/3-i)*6:s}function Pt(s,a,i){return s+(a-s)*i}function Ft(s,a,i,l,c){return s[0]=a,s[1]=i,s[2]=l,s[3]=c,s}function Wt(s,a){return s[0]=a[0],s[1]=a[1],s[2]=a[2],s[3]=a[3],s}var er=new ic(20),Xt=null;function Rr(s,a){Xt&&Wt(Xt,a),Xt=er.put(s,Xt||a.slice())}function ar(s,a){if(s){a=a||[];var i=er.get(s);if(i)return Wt(a,i);s=s+"";var l=s.replace(/ /g,"").toLowerCase();if(l in Lu)return Wt(a,Lu[l]),Rr(s,a),a;var c=l.length;if(l.charAt(0)==="#"){if(c===4||c===5){var d=parseInt(l.slice(1,4),16);if(!(d>=0&&d<=4095)){Ft(a,0,0,0,1);return}return Ft(a,(d&3840)>>4|(d&3840)>>8,d&240|(d&240)>>4,d&15|(d&15)<<4,c===5?parseInt(l.slice(4),16)/15:1),Rr(s,a),a}else if(c===7||c===9){var d=parseInt(l.slice(1,7),16);if(!(d>=0&&d<=16777215)){Ft(a,0,0,0,1);return}return Ft(a,(d&16711680)>>16,(d&65280)>>8,d&255,c===9?parseInt(l.slice(7),16)/255:1),Rr(s,a),a}return}var v=l.indexOf("("),m=l.indexOf(")");if(v!==-1&&m+1===c){var w=l.substr(0,v),S=l.substr(v+1,m-(v+1)).split(","),x=1;switch(w){case"rgba":if(S.length!==4)return S.length===3?Ft(a,+S[0],+S[1],+S[2],1):Ft(a,0,0,0,1);x=Et(S.pop());case"rgb":if(S.length>=3)return Ft(a,Ze(S[0]),Ze(S[1]),Ze(S[2]),S.length===3?x:Et(S[3])),Rr(s,a),a;Ft(a,0,0,0,1);return;case"hsla":if(S.length!==4){Ft(a,0,0,0,1);return}return S[3]=Et(S[3]),Ir(S,a),Rr(s,a),a;case"hsl":if(S.length!==3){Ft(a,0,0,0,1);return}return Ir(S,a),Rr(s,a),a;default:return}}Ft(a,0,0,0,1)}}function Ir(s,a){var i=(parseFloat(s[0])%360+360)%360/360,l=Et(s[1]),c=Et(s[2]),d=c<=.5?c*(l+1):c+l-c*l,v=c*2-d;return a=a||[],Ft(a,it(Nt(v,d,i+1/3)*255),it(Nt(v,d,i)*255),it(Nt(v,d,i-1/3)*255),1),s.length===4&&(a[3]=s[3]),a}function gr(s){if(s){var a=s[0]/255,i=s[1]/255,l=s[2]/255,c=Math.min(a,i,l),d=Math.max(a,i,l),v=d-c,m=(d+c)/2,w,S;if(v===0)w=0,S=0;else{m<.5?S=v/(d+c):S=v/(2-d-c);var x=((d-a)/6+v/2)/v,E=((d-i)/6+v/2)/v,M=((d-l)/6+v/2)/v;a===d?w=M-E:i===d?w=1/3+x-M:l===d&&(w=2/3+E-x),w<0&&(w+=1),w>1&&(w-=1)}var D=[w*360,S,m];return s[3]!=null&&D.push(s[3]),D}}function cr(s,a){var i=ar(s);if(i){for(var l=0;l<3;l++)a<0?i[l]=i[l]*(1-a)|0:i[l]=(255-i[l])*a+i[l]|0,i[l]>255?i[l]=255:i[l]<0&&(i[l]=0);return Qr(i,i.length===4?"rgba":"rgb")}}function Kr(s){var a=ar(s);if(a)return((1<<24)+(a[0]<<16)+(a[1]<<8)+ +a[2]).toString(16).slice(1)}function Hr(s,a,i){if(!(!(a&&a.length)||!(s>=0&&s<=1))){i=i||[];var l=s*(a.length-1),c=Math.floor(l),d=Math.ceil(l),v=a[c],m=a[d],w=l-c;return i[0]=it(Pt(v[0],m[0],w)),i[1]=it(Pt(v[1],m[1],w)),i[2]=it(Pt(v[2],m[2],w)),i[3]=st(Pt(v[3],m[3],w)),i}}var Gr=Hr;function Vr(s,a,i){if(!(!(a&&a.length)||!(s>=0&&s<=1))){var l=s*(a.length-1),c=Math.floor(l),d=Math.ceil(l),v=ar(a[c]),m=ar(a[d]),w=l-c,S=Qr([it(Pt(v[0],m[0],w)),it(Pt(v[1],m[1],w)),it(Pt(v[2],m[2],w)),st(Pt(v[3],m[3],w))],"rgba");return i?{color:S,leftIndex:c,rightIndex:d,value:l}:S}}var oi=Vr;function In(s,a,i,l){var c=ar(s);if(s)return c=gr(c),a!=null&&(c[0]=gt(a)),i!=null&&(c[1]=Et(i)),l!=null&&(c[2]=Et(l)),Qr(Ir(c),"rgba")}function $n(s,a){var i=ar(s);if(i&&a!=null)return i[3]=st(a),Qr(i,"rgba")}function Qr(s,a){if(!(!s||!s.length)){var i=s[0]+","+s[1]+","+s[2];return(a==="rgba"||a==="hsva"||a==="hsla")&&(i+=","+s[3]),a+"("+i+")"}}function En(s,a){var i=ar(s);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[3])*a:0}function Ei(){return Qr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Qn=new ic(100);function $r(s){if(Re(s)){var a=Qn.get(s);return a||(a=cr(s,-.1),Qn.put(s,a)),a}else if(nt(s)){var i=ie({},s);return i.colorStops=xe(s.colorStops,function(l){return{offset:l.offset,color:cr(l.color,-.1)}}),i}return s}var An=Object.freeze({__proto__:null,parse:ar,lift:cr,toHex:Kr,fastLerp:Hr,fastMapToColor:Gr,lerp:Vr,mapToColor:oi,modifyHSL:In,modifyAlpha:$n,stringify:Qr,lum:En,random:Ei,liftColor:$r}),mn=Math.round;function Kn(s){var a;if(!s||s==="transparent")s="none";else if(typeof s=="string"&&s.indexOf("rgba")>-1){var i=ar(s);i&&(s="rgb("+i[0]+","+i[1]+","+i[2]+")",a=i[3])}return{color:s,opacity:a??1}}var ii=1e-4;function da(s){return s<ii&&s>-ii}function ma(s){return mn(s*1e3)/1e3}function Zn(s){return mn(s*1e4)/1e4}function Zr(s){return"matrix("+ma(s[0])+","+ma(s[1])+","+ma(s[2])+","+ma(s[3])+","+Zn(s[4])+","+Zn(s[5])+")"}var Xr={left:"start",right:"end",center:"middle",middle:"middle"};function Fn(s,a,i){return i==="top"?s+=a/2:i==="bottom"&&(s-=a/2),s}function si(s){return s&&(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)}function ya(s){var a=s.style,i=s.getGlobalScale();return[a.shadowColor,(a.shadowBlur||0).toFixed(2),(a.shadowOffsetX||0).toFixed(2),(a.shadowOffsetY||0).toFixed(2),i[0],i[1]].join(",")}function _o(s){return s&&!!s.image}function Js(s){return s&&!!s.svgElement}function jr(s){return _o(s)||Js(s)}function Wi(s){return s.type==="linear"}function Zo(s){return s.type==="radial"}function Fa(s){return s&&(s.type==="linear"||s.type==="radial")}function Mo(s){return"url(#"+s+")"}function Fh(s){var a=s.getGlobalScale(),i=Math.max(a[0],a[1]);return Math.max(Math.ceil(Math.log(i)/Math.log(10)),1)}function Nh(s){var a=s.x||0,i=s.y||0,l=(s.rotation||0)*Tt,c=It(s.scaleX,1),d=It(s.scaleY,1),v=s.skewX||0,m=s.skewY||0,w=[];return(a||i)&&w.push("translate("+a+"px,"+i+"px)"),l&&w.push("rotate("+l+")"),(c!==1||d!==1)&&w.push("scale("+c+","+d+")"),(v||m)&&w.push("skew("+mn(v*Tt)+"deg, "+mn(m*Tt)+"deg)"),w.join(" ")}var yn=function(){return h.hasGlobalWindow&&qe(window.btoa)?function(s){return window.btoa(unescape(encodeURIComponent(s)))}:typeof Buffer<"u"?function(s){return Buffer.from(s).toString("base64")}:function(s){return ce("Base64 isn't natively supported in the current environment."),null}}(),Aa=Array.prototype.slice;function el(s,a,i){return(a-s)*i+s}function jc(s,a,i,l){for(var c=a.length,d=0;d<c;d++)s[d]=el(a[d],i[d],l);return s}function oh(s,a,i,l){for(var c=a.length,d=c&&a[0].length,v=0;v<c;v++){s[v]||(s[v]=[]);for(var m=0;m<d;m++)s[v][m]=el(a[v][m],i[v][m],l)}return s}function vp(s,a,i,l){for(var c=a.length,d=0;d<c;d++)s[d]=a[d]+i[d]*l;return s}function Pg(s,a,i,l){for(var c=a.length,d=c&&a[0].length,v=0;v<c;v++){s[v]||(s[v]=[]);for(var m=0;m<d;m++)s[v][m]=a[v][m]+i[v][m]*l}return s}function gx(s,a){for(var i=s.length,l=a.length,c=i>l?a:s,d=Math.min(i,l),v=c[d-1]||{color:[0,0,0,0],offset:0},m=d;m<Math.max(i,l);m++)c.push({offset:v.offset,color:v.color.slice()})}function Og(s,a,i){var l=s,c=a;if(!(!l.push||!c.push)){var d=l.length,v=c.length;if(d!==v){var m=d>v;if(m)l.length=v;else for(var w=d;w<v;w++)l.push(i===1?c[w]:Aa.call(c[w]))}for(var S=l[0]&&l[0].length,w=0;w<l.length;w++)if(i===1)isNaN(l[w])&&(l[w]=c[w]);else for(var x=0;x<S;x++)isNaN(l[w][x])&&(l[w][x]=c[w][x])}}function ac(s){if(Ce(s)){var a=s.length;if(Ce(s[0])){for(var i=[],l=0;l<a;l++)i.push(Aa.call(s[l]));return i}return Aa.call(s)}return s}function sh(s){return s[0]=Math.floor(s[0])||0,s[1]=Math.floor(s[1])||0,s[2]=Math.floor(s[2])||0,s[3]=s[3]==null?1:s[3],"rgba("+s.join(",")+")"}function Uh(s){return Ce(s&&s[0])?2:1}var lh=0,Tf=1,nv=2,qc=3,iv=4,kg=5,Fg=6;function Zd(s){return s===iv||s===kg}function Rs(s){return s===Tf||s===nv}var Qi=[0,0,0,0],wa=function(){function s(a){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=a}return s.prototype.isFinished=function(){return this._finished},s.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},s.prototype.needsAnimate=function(){return this.keyframes.length>=1},s.prototype.getAdditiveTrack=function(){return this._additiveTrack},s.prototype.addKeyframe=function(a,i,l){this._needsSort=!0;var c=this.keyframes,d=c.length,v=!1,m=Fg,w=i;if(Ce(i)){var S=Uh(i);m=S,(S===1&&!Ge(i[0])||S===2&&!Ge(i[0][0]))&&(v=!0)}else if(Ge(i)&&!Rt(i))m=lh;else if(Re(i))if(!isNaN(+i))m=lh;else{var x=ar(i);x&&(w=x,m=qc)}else if(nt(i)){var E=ie({},w);E.colorStops=xe(i.colorStops,function(D){return{offset:D.offset,color:ar(D.color)}}),Wi(i)?m=iv:Zo(i)&&(m=kg),w=E}d===0?this.valType=m:(m!==this.valType||m===Fg)&&(v=!0),this.discrete=this.discrete||v;var M={time:a,value:w,rawValue:i,percent:0};return l&&(M.easing=l,M.easingFunc=qe(l)?l:Ys[l]||Xd(l)),c.push(M),M},s.prototype.prepare=function(a,i){var l=this.keyframes;this._needsSort&&l.sort(function(Q,V){return Q.time-V.time});for(var c=this.valType,d=l.length,v=l[d-1],m=this.discrete,w=Rs(c),S=Zd(c),x=0;x<d;x++){var E=l[x],M=E.value,D=v.value;E.percent=E.time/a,m||(w&&x!==d-1?Og(M,D,c):S&&gx(M.colorStops,D.colorStops))}if(!m&&c!==kg&&i&&this.needsAnimate()&&i.needsAnimate()&&c===i.valType&&!i._finished){this._additiveTrack=i;for(var k=l[0].value,x=0;x<d;x++)c===lh?l[x].additiveValue=l[x].value-k:c===qc?l[x].additiveValue=vp([],l[x].value,k,-1):Rs(c)&&(l[x].additiveValue=c===Tf?vp([],l[x].value,k,-1):Pg([],l[x].value,k,-1))}},s.prototype.step=function(a,i){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var l=this._additiveTrack!=null,c=l?"additiveValue":"value",d=this.valType,v=this.keyframes,m=v.length,w=this.propName,S=d===qc,x,E=this._lastFr,M=Math.min,D,k;if(m===1)D=k=v[0];else{if(i<0)x=0;else if(i<this._lastFrP){var Q=M(E+1,m-1);for(x=Q;x>=0&&!(v[x].percent<=i);x--);x=M(x,m-2)}else{for(x=E;x<m&&!(v[x].percent>i);x++);x=M(x-1,m-2)}k=v[x+1],D=v[x]}if(D&&k){this._lastFr=x,this._lastFrP=i;var V=k.percent-D.percent,$=V===0?1:M((i-D.percent)/V,1);k.easingFunc&&($=k.easingFunc($));var Z=l?this._additiveValue:S?Qi:a[w];if((Rs(d)||S)&&!Z&&(Z=this._additiveValue=[]),this.discrete)a[w]=$<1?D.rawValue:k.rawValue;else if(Rs(d))d===Tf?jc(Z,D[c],k[c],$):oh(Z,D[c],k[c],$);else if(Zd(d)){var ee=D[c],fe=k[c],ve=d===iv;a[w]={type:ve?"linear":"radial",x:el(ee.x,fe.x,$),y:el(ee.y,fe.y,$),colorStops:xe(ee.colorStops,function(Se,Ee){var Ie=fe.colorStops[Ee];return{offset:el(Se.offset,Ie.offset,$),color:sh(jc([],Se.color,Ie.color,$))}}),global:fe.global},ve?(a[w].x2=el(ee.x2,fe.x2,$),a[w].y2=el(ee.y2,fe.y2,$)):a[w].r=el(ee.r,fe.r,$)}else if(S)jc(Z,D[c],k[c],$),l||(a[w]=sh(Z));else{var ge=el(D[c],k[c],$);l?this._additiveValue=ge:a[w]=ge}l&&this._addToTarget(a)}}},s.prototype._addToTarget=function(a){var i=this.valType,l=this.propName,c=this._additiveValue;i===lh?a[l]=a[l]+c:i===qc?(ar(a[l],Qi),vp(Qi,Qi,c,1),a[l]=sh(Qi)):i===Tf?vp(a[l],a[l],c,1):i===nv&&Pg(a[l],a[l],c,1)},s}(),Ef=function(){function s(a,i,l,c){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=a,this._loop=i,i&&c){ce("Can' use additive animation on looped animation.");return}this._additiveAnimators=c,this._allowDiscrete=l}return s.prototype.getMaxTime=function(){return this._maxTime},s.prototype.getDelay=function(){return this._delay},s.prototype.getLoop=function(){return this._loop},s.prototype.getTarget=function(){return this._target},s.prototype.changeTarget=function(a){this._target=a},s.prototype.when=function(a,i,l){return this.whenWithKeys(a,i,Ne(i),l)},s.prototype.whenWithKeys=function(a,i,l,c){for(var d=this._tracks,v=0;v<l.length;v++){var m=l[v],w=d[m];if(!w){w=d[m]=new wa(m);var S=void 0,x=this._getAdditiveTrack(m);if(x){var E=x.keyframes,M=E[E.length-1];S=M&&M.value,x.valType===qc&&S&&(S=sh(S))}else S=this._target[m];if(S==null)continue;a>0&&w.addKeyframe(0,ac(S),c),this._trackKeys.push(m)}w.addKeyframe(a,ac(i[m]),c)}return this._maxTime=Math.max(this._maxTime,a),this},s.prototype.pause=function(){this._clip.pause(),this._paused=!0},s.prototype.resume=function(){this._clip.resume(),this._paused=!1},s.prototype.isPaused=function(){return!!this._paused},s.prototype.duration=function(a){return this._maxTime=a,this._force=!0,this},s.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var a=this._doneCbs;if(a)for(var i=a.length,l=0;l<i;l++)a[l].call(this)},s.prototype._abortedCallback=function(){this._setTracksFinished();var a=this.animation,i=this._abortedCbs;if(a&&a.removeClip(this._clip),this._clip=null,i)for(var l=0;l<i.length;l++)i[l].call(this)},s.prototype._setTracksFinished=function(){for(var a=this._tracks,i=this._trackKeys,l=0;l<i.length;l++)a[i[l]].setFinished()},s.prototype._getAdditiveTrack=function(a){var i,l=this._additiveAnimators;if(l)for(var c=0;c<l.length;c++){var d=l[c].getTrack(a);d&&(i=d)}return i},s.prototype.start=function(a){if(!(this._started>0)){this._started=1;for(var i=this,l=[],c=this._maxTime||0,d=0;d<this._trackKeys.length;d++){var v=this._trackKeys[d],m=this._tracks[v],w=this._getAdditiveTrack(v),S=m.keyframes,x=S.length;if(m.prepare(c,w),m.needsAnimate())if(!this._allowDiscrete&&m.discrete){var E=S[x-1];E&&(i._target[m.propName]=E.rawValue),m.setFinished()}else l.push(m)}if(l.length||this._force){var M=new Kl({life:c,loop:this._loop,delay:this._delay||0,onframe:function(D){i._started=2;var k=i._additiveAnimators;if(k){for(var Q=!1,V=0;V<k.length;V++)if(k[V]._clip){Q=!0;break}Q||(i._additiveAnimators=null)}for(var V=0;V<l.length;V++)l[V].step(i._target,D);var $=i._onframeCbs;if($)for(var V=0;V<$.length;V++)$[V](i._target,D)},ondestroy:function(){i._doneCallback()}});this._clip=M,this.animation&&this.animation.addClip(M),a&&M.setEasing(a)}else this._doneCallback();return this}},s.prototype.stop=function(a){if(this._clip){var i=this._clip;a&&i.onframe(1),this._abortedCallback()}},s.prototype.delay=function(a){return this._delay=a,this},s.prototype.during=function(a){return a&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(a)),this},s.prototype.done=function(a){return a&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(a)),this},s.prototype.aborted=function(a){return a&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(a)),this},s.prototype.getClip=function(){return this._clip},s.prototype.getTrack=function(a){return this._tracks[a]},s.prototype.getTracks=function(){var a=this;return xe(this._trackKeys,function(i){return a._tracks[i]})},s.prototype.stopTracks=function(a,i){if(!a.length||!this._clip)return!0;for(var l=this._tracks,c=this._trackKeys,d=0;d<a.length;d++){var v=l[a[d]];v&&!v.isFinished()&&(i?v.step(this._target,1):this._started===1&&v.step(this._target,0),v.setFinished())}for(var m=!0,d=0;d<c.length;d++)if(!l[c[d]].isFinished()){m=!1;break}return m&&this._abortedCallback(),m},s.prototype.saveTo=function(a,i,l){if(a){i=i||this._trackKeys;for(var c=0;c<i.length;c++){var d=i[c],v=this._tracks[d];if(!(!v||v.isFinished())){var m=v.keyframes,w=m[l?0:m.length-1];w&&(a[d]=ac(w.rawValue))}}}},s.prototype.__changeFinalValue=function(a,i){i=i||Ne(a);for(var l=0;l<i.length;l++){var c=i[l],d=this._tracks[c];if(d){var v=d.keyframes;if(v.length>1){var m=v.pop();d.addKeyframe(m.time,a[c]),d.prepare(this._maxTime,d.getAdditiveTrack())}}}},s}();function Qo(){return new Date().getTime()}var Jo=function(s){o(a,s);function a(i){var l=s.call(this)||this;return l._running=!1,l._time=0,l._pausedTime=0,l._pauseStart=0,l._paused=!1,i=i||{},l.stage=i.stage||{},l}return a.prototype.addClip=function(i){i.animation&&this.removeClip(i),this._head?(this._tail.next=i,i.prev=this._tail,i.next=null,this._tail=i):this._head=this._tail=i,i.animation=this},a.prototype.addAnimator=function(i){i.animation=this;var l=i.getClip();l&&this.addClip(l)},a.prototype.removeClip=function(i){if(i.animation){var l=i.prev,c=i.next;l?l.next=c:this._head=c,c?c.prev=l:this._tail=l,i.next=i.prev=i.animation=null}},a.prototype.removeAnimator=function(i){var l=i.getClip();l&&this.removeClip(l),i.animation=null},a.prototype.update=function(i){for(var l=Qo()-this._pausedTime,c=l-this._time,d=this._head;d;){var v=d.next,m=d.step(l,c);m&&(d.ondestroy(),this.removeClip(d)),d=v}this._time=l,i||(this.trigger("frame",c),this.stage.update&&this.stage.update())},a.prototype._startLoop=function(){var i=this;this._running=!0;function l(){i._running&&(Qc(l),!i._paused&&i.update())}Qc(l)},a.prototype.start=function(){this._running||(this._time=Qo(),this._pausedTime=0,this._startLoop())},a.prototype.stop=function(){this._running=!1},a.prototype.pause=function(){this._paused||(this._pauseStart=Qo(),this._paused=!0)},a.prototype.resume=function(){this._paused&&(this._pausedTime+=Qo()-this._pauseStart,this._paused=!1)},a.prototype.clear=function(){for(var i=this._head;i;){var l=i.next;i.prev=i.next=i.animation=null,i=l}this._head=this._tail=null},a.prototype.isFinished=function(){return this._head==null},a.prototype.animate=function(i,l){l=l||{},this.start();var c=new Ef(i,l.loop);return this.addAnimator(c),c},a}(Da),Ps=300,Hh=h.domSupported,xl=function(){var s=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],a=["touchstart","touchend","touchmove"],i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},l=xe(s,function(c){var d=c.replace("mouse","pointer");return i.hasOwnProperty(d)?d:c});return{mouse:s,touch:a,pointer:l}}(),av={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ng=!1;function pp(s){var a=s.pointerType;return a==="pen"||a==="touch"}function gp(s){s.touching=!0,s.touchTimer!=null&&(clearTimeout(s.touchTimer),s.touchTimer=null),s.touchTimer=setTimeout(function(){s.touching=!1,s.touchTimer=null},700)}function Ug(s){s&&(s.zrByTouch=!0)}function ov(s,a){return oo(s.dom,new mp(s,a),!0)}function Wc(s,a){for(var i=a,l=!1;i&&i.nodeType!==9&&!(l=i.domBelongToZr||i!==a&&i===s.painterRoot);)i=i.parentNode;return l}var mp=function(){function s(a,i){this.stopPropagation=Ct,this.stopImmediatePropagation=Ct,this.preventDefault=Ct,this.type=i.type,this.target=this.currentTarget=a.dom,this.pointerType=i.pointerType,this.clientX=i.clientX,this.clientY=i.clientY}return s}(),Yl={mousedown:function(s){s=oo(this.dom,s),this.__mayPointerCapture=[s.zrX,s.zrY],this.trigger("mousedown",s)},mousemove:function(s){s=oo(this.dom,s);var a=this.__mayPointerCapture;a&&(s.zrX!==a[0]||s.zrY!==a[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",s)},mouseup:function(s){s=oo(this.dom,s),this.__togglePointerCapture(!1),this.trigger("mouseup",s)},mouseout:function(s){s=oo(this.dom,s);var a=s.toElement||s.relatedTarget;Wc(this,a)||(this.__pointerCapturing&&(s.zrEventControl="no_globalout"),this.trigger("mouseout",s))},wheel:function(s){Ng=!0,s=oo(this.dom,s),this.trigger("mousewheel",s)},mousewheel:function(s){Ng||(s=oo(this.dom,s),this.trigger("mousewheel",s))},touchstart:function(s){s=oo(this.dom,s),Ug(s),this.__lastTouchMoment=new Date,this.handler.processGesture(s,"start"),Yl.mousemove.call(this,s),Yl.mousedown.call(this,s)},touchmove:function(s){s=oo(this.dom,s),Ug(s),this.handler.processGesture(s,"change"),Yl.mousemove.call(this,s)},touchend:function(s){s=oo(this.dom,s),Ug(s),this.handler.processGesture(s,"end"),Yl.mouseup.call(this,s),+new Date-+this.__lastTouchMoment<Ps&&Yl.click.call(this,s)},pointerdown:function(s){Yl.mousedown.call(this,s)},pointermove:function(s){pp(s)||Yl.mousemove.call(this,s)},pointerup:function(s){Yl.mouseup.call(this,s)},pointerout:function(s){pp(s)||Yl.mouseout.call(this,s)}};ne(["click","dblclick","contextmenu"],function(s){Yl[s]=function(a){a=oo(this.dom,a),this.trigger(s,a)}});var yp={pointermove:function(s){pp(s)||yp.mousemove.call(this,s)},pointerup:function(s){yp.mouseup.call(this,s)},mousemove:function(s){this.trigger("mousemove",s)},mouseup:function(s){var a=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",s),a&&(s.zrEventControl="only_globalout",this.trigger("mouseout",s))}};function Cw(s,a){var i=a.domHandlers;h.pointerEventsSupported?ne(xl.pointer,function(l){sv(a,l,function(c){i[l].call(s,c)})}):(h.touchEventsSupported&&ne(xl.touch,function(l){sv(a,l,function(c){i[l].call(s,c),gp(a)})}),ne(xl.mouse,function(l){sv(a,l,function(c){c=Ql(c),a.touching||i[l].call(s,c)})}))}function Tw(s,a){h.pointerEventsSupported?ne(av.pointer,i):h.touchEventsSupported||ne(av.mouse,i);function i(l){function c(d){d=Ql(d),Wc(s,d.target)||(d=ov(s,d),a.domHandlers[l].call(s,d))}sv(a,l,c,{capture:!0})}}function sv(s,a,i,l){s.mounted[a]=i,s.listenerOpts[a]=l,bf(s.domTarget,a,i,l)}function Ry(s){var a=s.mounted;for(var i in a)a.hasOwnProperty(i)&&Kd(s.domTarget,i,a[i],s.listenerOpts[i]);s.mounted={}}var wp=function(){function s(a,i){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=a,this.domHandlers=i}return s}(),Ew=function(s){o(a,s);function a(i,l){var c=s.call(this)||this;return c.__pointerCapturing=!1,c.dom=i,c.painterRoot=l,c._localHandlerScope=new wp(i,Yl),Hh&&(c._globalHandlerScope=new wp(document,yp)),Cw(c,c._localHandlerScope),c}return a.prototype.dispose=function(){Ry(this._localHandlerScope),Hh&&Ry(this._globalHandlerScope)},a.prototype.setCursor=function(i){this.dom.style&&(this.dom.style.cursor=i||"default")},a.prototype.__togglePointerCapture=function(i){if(this.__mayPointerCapture=null,Hh&&+this.__pointerCapturing^+i){this.__pointerCapturing=i;var l=this._globalHandlerScope;i?Tw(this,l):Ry(l)}},a}(Da),Py=1;h.hasGlobalWindow&&(Py=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var lv=Py,Jd=.4,bp="#333",Oy="#ccc",Bf="#eee",J=ec,se=5e-5;function we(s){return s>se||s<-se}var Te=[],He=[],je=gn(),We=Math.abs,Xe=function(){function s(){}return s.prototype.getLocalTransform=function(a){return s.getLocalTransform(this,a)},s.prototype.setPosition=function(a){this.x=a[0],this.y=a[1]},s.prototype.setScale=function(a){this.scaleX=a[0],this.scaleY=a[1]},s.prototype.setSkew=function(a){this.skewX=a[0],this.skewY=a[1]},s.prototype.setOrigin=function(a){this.originX=a[0],this.originY=a[1]},s.prototype.needLocalTransform=function(){return we(this.rotation)||we(this.x)||we(this.y)||we(this.scaleX-1)||we(this.scaleY-1)||we(this.skewX)||we(this.skewY)},s.prototype.updateTransform=function(){var a=this.parent&&this.parent.transform,i=this.needLocalTransform(),l=this.transform;if(!(i||a)){l&&(J(l),this.invTransform=null);return}l=l||gn(),i?this.getLocalTransform(l):J(l),a&&(i?$s(l,a,l):Fc(l,a)),this.transform=l,this._resolveGlobalScaleRatio(l)},s.prototype._resolveGlobalScaleRatio=function(a){var i=this.globalScaleRatio;if(i!=null&&i!==1){this.getGlobalScale(Te);var l=Te[0]<0?-1:1,c=Te[1]<0?-1:1,d=((Te[0]-l)*i+l)/Te[0]||0,v=((Te[1]-c)*i+c)/Te[1]||0;a[0]*=d,a[1]*=d,a[2]*=v,a[3]*=v}this.invTransform=this.invTransform||gn(),zl(this.invTransform,a)},s.prototype.getComputedTransform=function(){for(var a=this,i=[];a;)i.push(a),a=a.parent;for(;a=i.pop();)a.updateTransform();return this.transform},s.prototype.setLocalTransform=function(a){if(a){var i=a[0]*a[0]+a[1]*a[1],l=a[2]*a[2]+a[3]*a[3],c=Math.atan2(a[1],a[0]),d=Math.PI/2+c-Math.atan2(a[3],a[2]);l=Math.sqrt(l)*Math.cos(d),i=Math.sqrt(i),this.skewX=d,this.skewY=0,this.rotation=-c,this.x=+a[4],this.y=+a[5],this.scaleX=i,this.scaleY=l,this.originX=0,this.originY=0}},s.prototype.decomposeTransform=function(){if(this.transform){var a=this.parent,i=this.transform;a&&a.transform&&(a.invTransform=a.invTransform||gn(),$s(He,a.invTransform,i),i=He);var l=this.originX,c=this.originY;(l||c)&&(je[4]=l,je[5]=c,$s(He,i,je),He[4]-=l,He[5]-=c,i=He),this.setLocalTransform(i)}},s.prototype.getGlobalScale=function(a){var i=this.transform;return a=a||[],i?(a[0]=Math.sqrt(i[0]*i[0]+i[1]*i[1]),a[1]=Math.sqrt(i[2]*i[2]+i[3]*i[3]),i[0]<0&&(a[0]=-a[0]),i[3]<0&&(a[1]=-a[1]),a):(a[0]=1,a[1]=1,a)},s.prototype.transformCoordToLocal=function(a,i){var l=[a,i],c=this.invTransform;return c&&Tn(l,l,c),l},s.prototype.transformCoordToGlobal=function(a,i){var l=[a,i],c=this.transform;return c&&Tn(l,l,c),l},s.prototype.getLineScale=function(){var a=this.transform;return a&&We(a[0]-1)>1e-10&&We(a[3]-1)>1e-10?Math.sqrt(We(a[0]*a[3]-a[2]*a[1])):1},s.prototype.copyTransform=function(a){ht(this,a)},s.getLocalTransform=function(a,i){i=i||[];var l=a.originX||0,c=a.originY||0,d=a.scaleX,v=a.scaleY,m=a.anchorX,w=a.anchorY,S=a.rotation||0,x=a.x,E=a.y,M=a.skewX?Math.tan(a.skewX):0,D=a.skewY?Math.tan(-a.skewY):0;if(l||c||m||w){var k=l+m,Q=c+w;i[4]=-k*d-M*Q*v,i[5]=-Q*v-D*k*d}else i[4]=i[5]=0;return i[0]=d,i[3]=v,i[1]=D*d,i[2]=M*v,S&&so(i,i,S),i[4]+=l+x,i[5]+=c+E,i},s.initDefaultProps=function(){var a=s.prototype;a.scaleX=a.scaleY=a.globalScaleRatio=1,a.x=a.y=a.originX=a.originY=a.skewX=a.skewY=a.rotation=a.anchorX=a.anchorY=0}(),s}(),tt=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ht(s,a){for(var i=0;i<tt.length;i++){var l=tt[i];s[l]=a[l]}}var Dt={};function Vt(s,a){a=a||y;var i=Dt[a];i||(i=Dt[a]=new ic(500));var l=i.get(s);return l==null&&(l=L.measureText(s,a).width,i.put(s,l)),l}function ut(s,a,i,l){var c=Vt(s,a),d=$t(a),v=Gt(0,c,i),m=rr(0,d,l),w=new Bn(v,m,c,d);return w}function Ot(s,a,i,l){var c=((s||"")+"").split(`
`),d=c.length;if(d===1)return ut(c[0],a,i,l);for(var v=new Bn(0,0,0,0),m=0;m<c.length;m++){var w=ut(c[m],a,i,l);m===0?v.copy(w):v.union(w)}return v}function Gt(s,a,i){return i==="right"?s-=a:i==="center"&&(s-=a/2),s}function rr(s,a,i){return i==="middle"?s-=a/2:i==="bottom"&&(s-=a),s}function $t(s){return Vt("国",s)}function tr(s,a){return typeof s=="string"?s.lastIndexOf("%")>=0?parseFloat(s)/100*a:parseFloat(s):s}function sr(s,a,i){var l=a.position||"inside",c=a.distance!=null?a.distance:5,d=i.height,v=i.width,m=d/2,w=i.x,S=i.y,x="left",E="top";if(l instanceof Array)w+=tr(l[0],i.width),S+=tr(l[1],i.height),x=null,E=null;else switch(l){case"left":w-=c,S+=m,x="right",E="middle";break;case"right":w+=c+v,S+=m,E="middle";break;case"top":w+=v/2,S-=c,x="center",E="bottom";break;case"bottom":w+=v/2,S+=d+c,x="center";break;case"inside":w+=v/2,S+=m,x="center",E="middle";break;case"insideLeft":w+=c,S+=m,E="middle";break;case"insideRight":w+=v-c,S+=m,x="right",E="middle";break;case"insideTop":w+=v/2,S+=c,x="center";break;case"insideBottom":w+=v/2,S+=d-c,x="center",E="bottom";break;case"insideTopLeft":w+=c,S+=c;break;case"insideTopRight":w+=v-c,S+=c,x="right";break;case"insideBottomLeft":w+=c,S+=d-c,E="bottom";break;case"insideBottomRight":w+=v-c,S+=d-c,x="right",E="bottom";break}return s=s||{},s.x=w,s.y=S,s.align=x,s.verticalAlign=E,s}var xr="__zr_normal__",dr=tt.concat(["ignore"]),bn=De(tt,function(s,a){return s[a]=!0,s},{ignore:!1}),an={},Bi=new Bn(0,0,0,0),sn=function(){function s(a){this.id=K(),this.animators=[],this.currentStates=[],this.states={},this._init(a)}return s.prototype._init=function(a){this.attr(a)},s.prototype.drift=function(a,i,l){switch(this.draggable){case"horizontal":i=0;break;case"vertical":a=0;break}var c=this.transform;c||(c=this.transform=[1,0,0,1,0,0]),c[4]+=a,c[5]+=i,this.decomposeTransform(),this.markRedraw()},s.prototype.beforeUpdate=function(){},s.prototype.afterUpdate=function(){},s.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},s.prototype.updateInnerText=function(a){var i=this._textContent;if(i&&(!i.ignore||a)){this.textConfig||(this.textConfig={});var l=this.textConfig,c=l.local,d=i.innerTransformable,v=void 0,m=void 0,w=!1;d.parent=c?this:null;var S=!1;if(d.copyTransform(i),l.position!=null){var x=Bi;l.layoutRect?x.copy(l.layoutRect):x.copy(this.getBoundingRect()),c||x.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(an,l,x):sr(an,l,x),d.x=an.x,d.y=an.y,v=an.align,m=an.verticalAlign;var E=l.origin;if(E&&l.rotation!=null){var M=void 0,D=void 0;E==="center"?(M=x.width*.5,D=x.height*.5):(M=tr(E[0],x.width),D=tr(E[1],x.height)),S=!0,d.originX=-d.x+M+(c?0:x.x),d.originY=-d.y+D+(c?0:x.y)}}l.rotation!=null&&(d.rotation=l.rotation);var k=l.offset;k&&(d.x+=k[0],d.y+=k[1],S||(d.originX=-k[0],d.originY=-k[1]));var Q=l.inside==null?typeof l.position=="string"&&l.position.indexOf("inside")>=0:l.inside,V=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),$=void 0,Z=void 0,ee=void 0;Q&&this.canBeInsideText()?($=l.insideFill,Z=l.insideStroke,($==null||$==="auto")&&($=this.getInsideTextFill()),(Z==null||Z==="auto")&&(Z=this.getInsideTextStroke($),ee=!0)):($=l.outsideFill,Z=l.outsideStroke,($==null||$==="auto")&&($=this.getOutsideFill()),(Z==null||Z==="auto")&&(Z=this.getOutsideStroke($),ee=!0)),$=$||"#000",($!==V.fill||Z!==V.stroke||ee!==V.autoStroke||v!==V.align||m!==V.verticalAlign)&&(w=!0,V.fill=$,V.stroke=Z,V.autoStroke=ee,V.align=v,V.verticalAlign=m,i.setDefaultTextStyle(V)),i.__dirty|=bi,w&&i.dirtyStyle(!0)}},s.prototype.canBeInsideText=function(){return!0},s.prototype.getInsideTextFill=function(){return"#fff"},s.prototype.getInsideTextStroke=function(a){return"#000"},s.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Oy:bp},s.prototype.getOutsideStroke=function(a){var i=this.__zr&&this.__zr.getBackgroundColor(),l=typeof i=="string"&&ar(i);l||(l=[255,255,255,1]);for(var c=l[3],d=this.__zr.isDarkMode(),v=0;v<3;v++)l[v]=l[v]*c+(d?0:255)*(1-c);return l[3]=1,Qr(l,"rgba")},s.prototype.traverse=function(a,i){},s.prototype.attrKV=function(a,i){a==="textConfig"?this.setTextConfig(i):a==="textContent"?this.setTextContent(i):a==="clipPath"?this.setClipPath(i):a==="extra"?(this.extra=this.extra||{},ie(this.extra,i)):this[a]=i},s.prototype.hide=function(){this.ignore=!0,this.markRedraw()},s.prototype.show=function(){this.ignore=!1,this.markRedraw()},s.prototype.attr=function(a,i){if(typeof a=="string")this.attrKV(a,i);else if(Pe(a))for(var l=a,c=Ne(l),d=0;d<c.length;d++){var v=c[d];this.attrKV(v,a[v])}return this.markRedraw(),this},s.prototype.saveCurrentToNormalState=function(a){this._innerSaveToNormal(a);for(var i=this._normalState,l=0;l<this.animators.length;l++){var c=this.animators[l],d=c.__fromStateTransition;if(!(c.getLoop()||d&&d!==xr)){var v=c.targetName,m=v?i[v]:i;c.saveTo(m)}}},s.prototype._innerSaveToNormal=function(a){var i=this._normalState;i||(i=this._normalState={}),a.textConfig&&!i.textConfig&&(i.textConfig=this.textConfig),this._savePrimaryToNormal(a,i,dr)},s.prototype._savePrimaryToNormal=function(a,i,l){for(var c=0;c<l.length;c++){var d=l[c];a[d]!=null&&!(d in i)&&(i[d]=this[d])}},s.prototype.hasState=function(){return this.currentStates.length>0},s.prototype.getState=function(a){return this.states[a]},s.prototype.ensureState=function(a){var i=this.states;return i[a]||(i[a]={}),i[a]},s.prototype.clearStates=function(a){this.useState(xr,!1,a)},s.prototype.useState=function(a,i,l,c){var d=a===xr,v=this.hasState();if(!(!v&&d)){var m=this.currentStates,w=this.stateTransition;if(!(oe(m,a)>=0&&(i||m.length===1))){var S;if(this.stateProxy&&!d&&(S=this.stateProxy(a)),S||(S=this.states&&this.states[a]),!S&&!d){ce("State "+a+" not exists.");return}d||this.saveCurrentToNormalState(S);var x=!!(S&&S.hoverLayer||c);x&&this._toggleHoverLayerFlag(!0),this._applyStateObj(a,S,this._normalState,i,!l&&!this.__inHover&&w&&w.duration>0,w);var E=this._textContent,M=this._textGuide;return E&&E.useState(a,i,l,x),M&&M.useState(a,i,l,x),d?(this.currentStates=[],this._normalState={}):i?this.currentStates.push(a):this.currentStates=[a],this._updateAnimationTargets(),this.markRedraw(),!x&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bi),S}}},s.prototype.useStates=function(a,i,l){if(!a.length)this.clearStates();else{var c=[],d=this.currentStates,v=a.length,m=v===d.length;if(m){for(var w=0;w<v;w++)if(a[w]!==d[w]){m=!1;break}}if(m)return;for(var w=0;w<v;w++){var S=a[w],x=void 0;this.stateProxy&&(x=this.stateProxy(S,a)),x||(x=this.states[S]),x&&c.push(x)}var E=c[v-1],M=!!(E&&E.hoverLayer||l);M&&this._toggleHoverLayerFlag(!0);var D=this._mergeStates(c),k=this.stateTransition;this.saveCurrentToNormalState(D),this._applyStateObj(a.join(","),D,this._normalState,!1,!i&&!this.__inHover&&k&&k.duration>0,k);var Q=this._textContent,V=this._textGuide;Q&&Q.useStates(a,i,M),V&&V.useStates(a,i,M),this._updateAnimationTargets(),this.currentStates=a.slice(),this.markRedraw(),!M&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bi)}},s.prototype.isSilent=function(){for(var a=this.silent,i=this.parent;!a&&i;){if(i.silent){a=!0;break}i=i.parent}return a},s.prototype._updateAnimationTargets=function(){for(var a=0;a<this.animators.length;a++){var i=this.animators[a];i.targetName&&i.changeTarget(this[i.targetName])}},s.prototype.removeState=function(a){var i=oe(this.currentStates,a);if(i>=0){var l=this.currentStates.slice();l.splice(i,1),this.useStates(l)}},s.prototype.replaceState=function(a,i,l){var c=this.currentStates.slice(),d=oe(c,a),v=oe(c,i)>=0;d>=0?v?c.splice(d,1):c[d]=i:l&&!v&&c.push(i),this.useStates(c)},s.prototype.toggleState=function(a,i){i?this.useState(a,!0):this.removeState(a)},s.prototype._mergeStates=function(a){for(var i={},l,c=0;c<a.length;c++){var d=a[c];ie(i,d),d.textConfig&&(l=l||{},ie(l,d.textConfig))}return l&&(i.textConfig=l),i},s.prototype._applyStateObj=function(a,i,l,c,d,v){var m=!(i&&c);i&&i.textConfig?(this.textConfig=ie({},c?this.textConfig:l.textConfig),ie(this.textConfig,i.textConfig)):m&&l.textConfig&&(this.textConfig=l.textConfig);for(var w={},S=!1,x=0;x<dr.length;x++){var E=dr[x],M=d&&bn[E];i&&i[E]!=null?M?(S=!0,w[E]=i[E]):this[E]=i[E]:m&&l[E]!=null&&(M?(S=!0,w[E]=l[E]):this[E]=l[E])}if(!d)for(var x=0;x<this.animators.length;x++){var D=this.animators[x],k=D.targetName;D.getLoop()||D.__changeFinalValue(k?(i||l)[k]:i||l)}S&&this._transitionState(a,w,v)},s.prototype._attachComponent=function(a){if(a.__zr&&!a.__hostTarget)throw new Error("Text element has been added to zrender.");if(a===this)throw new Error("Recursive component attachment.");var i=this.__zr;i&&a.addSelfToZr(i),a.__zr=i,a.__hostTarget=this},s.prototype._detachComponent=function(a){a.__zr&&a.removeSelfFromZr(a.__zr),a.__zr=null,a.__hostTarget=null},s.prototype.getClipPath=function(){return this._clipPath},s.prototype.setClipPath=function(a){this._clipPath&&this._clipPath!==a&&this.removeClipPath(),this._attachComponent(a),this._clipPath=a,this.markRedraw()},s.prototype.removeClipPath=function(){var a=this._clipPath;a&&(this._detachComponent(a),this._clipPath=null,this.markRedraw())},s.prototype.getTextContent=function(){return this._textContent},s.prototype.setTextContent=function(a){var i=this._textContent;if(i!==a){if(i&&i!==a&&this.removeTextContent(),a.__zr&&!a.__hostTarget)throw new Error("Text element has been added to zrender.");a.innerTransformable=new Xe,this._attachComponent(a),this._textContent=a,this.markRedraw()}},s.prototype.setTextConfig=function(a){this.textConfig||(this.textConfig={}),ie(this.textConfig,a),this.markRedraw()},s.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},s.prototype.removeTextContent=function(){var a=this._textContent;a&&(a.innerTransformable=null,this._detachComponent(a),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},s.prototype.getTextGuideLine=function(){return this._textGuide},s.prototype.setTextGuideLine=function(a){this._textGuide&&this._textGuide!==a&&this.removeTextGuideLine(),this._attachComponent(a),this._textGuide=a,this.markRedraw()},s.prototype.removeTextGuideLine=function(){var a=this._textGuide;a&&(this._detachComponent(a),this._textGuide=null,this.markRedraw())},s.prototype.markRedraw=function(){this.__dirty|=bi;var a=this.__zr;a&&(this.__inHover?a.refreshHover():a.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},s.prototype.dirty=function(){this.markRedraw()},s.prototype._toggleHoverLayerFlag=function(a){this.__inHover=a;var i=this._textContent,l=this._textGuide;i&&(i.__inHover=a),l&&(l.__inHover=a)},s.prototype.addSelfToZr=function(a){if(this.__zr!==a){this.__zr=a;var i=this.animators;if(i)for(var l=0;l<i.length;l++)a.animation.addAnimator(i[l]);this._clipPath&&this._clipPath.addSelfToZr(a),this._textContent&&this._textContent.addSelfToZr(a),this._textGuide&&this._textGuide.addSelfToZr(a)}},s.prototype.removeSelfFromZr=function(a){if(this.__zr){this.__zr=null;var i=this.animators;if(i)for(var l=0;l<i.length;l++)a.animation.removeAnimator(i[l]);this._clipPath&&this._clipPath.removeSelfFromZr(a),this._textContent&&this._textContent.removeSelfFromZr(a),this._textGuide&&this._textGuide.removeSelfFromZr(a)}},s.prototype.animate=function(a,i,l){var c=a?this[a]:this;if(!c){ce('Property "'+a+'" is not existed in element '+this.id);return}var d=new Ef(c,i,l);return a&&(d.targetName=a),this.addAnimator(d,a),d},s.prototype.addAnimator=function(a,i){var l=this.__zr,c=this;a.during(function(){c.updateDuringAnimation(i)}).done(function(){var d=c.animators,v=oe(d,a);v>=0&&d.splice(v,1)}),this.animators.push(a),l&&l.animation.addAnimator(a),l&&l.wakeUp()},s.prototype.updateDuringAnimation=function(a){this.markRedraw()},s.prototype.stopAnimation=function(a,i){for(var l=this.animators,c=l.length,d=[],v=0;v<c;v++){var m=l[v];!a||a===m.scope?m.stop(i):d.push(m)}return this.animators=d,this},s.prototype.animateTo=function(a,i,l){vi(this,a,i,l)},s.prototype.animateFrom=function(a,i,l){vi(this,a,i,l,!0)},s.prototype._transitionState=function(a,i,l,c){for(var d=vi(this,i,l,c),v=0;v<d.length;v++)d[v].__fromStateTransition=a},s.prototype.getBoundingRect=function(){return null},s.prototype.getPaintRect=function(){return null},s.initDefaultProps=function(){var a=s.prototype;a.type="element",a.name="",a.ignore=a.silent=a.isGroup=a.draggable=a.dragging=a.ignoreClip=a.__inHover=!1,a.__dirty=bi;var i={};function l(d,v,m){i[d+v+m]||(console.warn("DEPRECATED: '"+d+"' has been deprecated. use '"+v+"', '"+m+"' instead"),i[d+v+m]=!0)}function c(d,v,m,w){Object.defineProperty(a,d,{get:function(){if(l(d,m,w),!this[v]){var x=this[v]=[];S(this,x)}return this[v]},set:function(x){l(d,m,w),this[m]=x[0],this[w]=x[1],this[v]=x,S(this,x)}});function S(x,E){Object.defineProperty(E,0,{get:function(){return x[m]},set:function(M){x[m]=M}}),Object.defineProperty(E,1,{get:function(){return x[w]},set:function(M){x[w]=M}})}}Object.defineProperty&&(c("position","_legacyPos","x","y"),c("scale","_legacyScale","scaleX","scaleY"),c("origin","_legacyOrigin","originX","originY"))}(),s}();_e(sn,Da),_e(sn,Xe);function vi(s,a,i,l,c){i=i||{};var d=[];ai(s,"",s,a,i,l,d,c);var v=d.length,m=!1,w=i.done,S=i.aborted,x=function(){m=!0,v--,v<=0&&(m?w&&w():S&&S())},E=function(){v--,v<=0&&(m?w&&w():S&&S())};v||w&&w(),d.length>0&&i.during&&d[0].during(function(k,Q){i.during(Q)});for(var M=0;M<d.length;M++){var D=d[M];x&&D.done(x),E&&D.aborted(E),i.force&&D.duration(i.duration),D.start(i.easing)}return d}function Vo(s,a,i){for(var l=0;l<i;l++)s[l]=a[l]}function fi(s){return Ce(s[0])}function Ln(s,a,i){if(Ce(a[i]))if(Ce(s[i])||(s[i]=[]),Be(a[i])){var l=a[i].length;s[i].length!==l&&(s[i]=new a[i].constructor(l),Vo(s[i],a[i],l))}else{var c=a[i],d=s[i],v=c.length;if(fi(c))for(var m=c[0].length,w=0;w<v;w++)d[w]?Vo(d[w],c[w],m):d[w]=Array.prototype.slice.call(c[w]);else Vo(d,c,v);d.length=c.length}else s[i]=a[i]}function qr(s,a){return s===a||Ce(s)&&Ce(a)&&So(s,a)}function So(s,a){var i=s.length;if(i!==a.length)return!1;for(var l=0;l<i;l++)if(s[l]!==a[l])return!1;return!0}function ai(s,a,i,l,c,d,v,m){for(var w=Ne(l),S=c.duration,x=c.delay,E=c.additive,M=c.setToFinal,D=!Pe(d),k=s.animators,Q=[],V=0;V<w.length;V++){var $=w[V],Z=l[$];if(Z!=null&&i[$]!=null&&(D||d[$]))if(Pe(Z)&&!Ce(Z)&&!nt(Z)){if(a){m||(i[$]=Z,s.updateDuringAnimation(a));continue}ai(s,$,i[$],Z,c,d&&d[$],v,m)}else Q.push($);else m||(i[$]=Z,s.updateDuringAnimation(a),Q.push($))}var ee=Q.length;if(!E&&ee)for(var fe=0;fe<k.length;fe++){var ve=k[fe];if(ve.targetName===a){var ge=ve.stopTracks(Q);if(ge){var Se=oe(k,ve);k.splice(Se,1)}}}if(c.force||(Q=ze(Q,function(Fe){return!qr(l[Fe],i[Fe])}),ee=Q.length),ee>0||c.force&&!v.length){var Ee=void 0,Ie=void 0,Le=void 0;if(m){Ie={},M&&(Ee={});for(var fe=0;fe<ee;fe++){var $=Q[fe];Ie[$]=i[$],M?Ee[$]=l[$]:i[$]=l[$]}}else if(M){Le={};for(var fe=0;fe<ee;fe++){var $=Q[fe];Le[$]=ac(i[$]),Ln(i,l,$)}}var ve=new Ef(i,!1,!1,E?ze(k,function(Je){return Je.targetName===a}):null);ve.targetName=a,c.scope&&(ve.scope=c.scope),M&&Ee&&ve.whenWithKeys(0,Ee,Q),Le&&ve.whenWithKeys(0,Le,Q),ve.whenWithKeys(S??500,m?Ie:l,Q).delay(x||0),s.addAnimator(ve,a),v.push(ve)}}var Lr=function(s){o(a,s);function a(i){var l=s.call(this)||this;return l.isGroup=!0,l._children=[],l.attr(i),l}return a.prototype.childrenRef=function(){return this._children},a.prototype.children=function(){return this._children.slice()},a.prototype.childAt=function(i){return this._children[i]},a.prototype.childOfName=function(i){for(var l=this._children,c=0;c<l.length;c++)if(l[c].name===i)return l[c]},a.prototype.childCount=function(){return this._children.length},a.prototype.add=function(i){if(i&&(i!==this&&i.parent!==this&&(this._children.push(i),this._doAdd(i)),i.__hostTarget))throw"This elemenet has been used as an attachment";return this},a.prototype.addBefore=function(i,l){if(i&&i!==this&&i.parent!==this&&l&&l.parent===this){var c=this._children,d=c.indexOf(l);d>=0&&(c.splice(d,0,i),this._doAdd(i))}return this},a.prototype.replace=function(i,l){var c=oe(this._children,i);return c>=0&&this.replaceAt(l,c),this},a.prototype.replaceAt=function(i,l){var c=this._children,d=c[l];if(i&&i!==this&&i.parent!==this&&i!==d){c[l]=i,d.parent=null;var v=this.__zr;v&&d.removeSelfFromZr(v),this._doAdd(i)}return this},a.prototype._doAdd=function(i){i.parent&&i.parent.remove(i),i.parent=this;var l=this.__zr;l&&l!==i.__zr&&i.addSelfToZr(l),l&&l.refresh()},a.prototype.remove=function(i){var l=this.__zr,c=this._children,d=oe(c,i);return d<0?this:(c.splice(d,1),i.parent=null,l&&i.removeSelfFromZr(l),l&&l.refresh(),this)},a.prototype.removeAll=function(){for(var i=this._children,l=this.__zr,c=0;c<i.length;c++){var d=i[c];l&&d.removeSelfFromZr(l),d.parent=null}return i.length=0,this},a.prototype.eachChild=function(i,l){for(var c=this._children,d=0;d<c.length;d++){var v=c[d];i.call(l,v,d)}return this},a.prototype.traverse=function(i,l){for(var c=0;c<this._children.length;c++){var d=this._children[c],v=i.call(l,d);d.isGroup&&!v&&d.traverse(i,l)}return this},a.prototype.addSelfToZr=function(i){s.prototype.addSelfToZr.call(this,i);for(var l=0;l<this._children.length;l++){var c=this._children[l];c.addSelfToZr(i)}},a.prototype.removeSelfFromZr=function(i){s.prototype.removeSelfFromZr.call(this,i);for(var l=0;l<this._children.length;l++){var c=this._children[l];c.removeSelfFromZr(i)}},a.prototype.getBoundingRect=function(i){for(var l=new Bn(0,0,0,0),c=i||this._children,d=[],v=null,m=0;m<c.length;m++){var w=c[m];if(!(w.ignore||w.invisible)){var S=w.getBoundingRect(),x=w.getLocalTransform(d);x?(Bn.applyTransform(l,S,x),v=v||l.clone(),v.union(l)):(v=v||S.clone(),v.union(S))}}return v||l},a}(sn);Lr.prototype.type="group";/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var ba={},xo={};function tl(s){delete xo[s]}function co(s){if(!s)return!1;if(typeof s=="string")return En(s,1)<Jd;if(s.colorStops){for(var a=s.colorStops,i=0,l=a.length,c=0;c<l;c++)i+=En(a[c].color,1);return i/=l,i<Jd}return!1}var hs=function(){function s(a,i,l){var c=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,l=l||{},this.dom=i,this.id=a;var d=new Ap,v=l.renderer||"canvas";if(ba[v]||(v=Ne(ba)[0]),!ba[v])throw new Error("Renderer '"+v+"' is not imported. Please import it first.");l.useDirtyRect=l.useDirtyRect==null?!1:l.useDirtyRect;var m=new ba[v](i,d,l,a),w=l.ssr||m.ssrOnly;this.storage=d,this.painter=m;var S=!h.node&&!h.worker&&!w?new Ew(m.getViewportRoot(),m.root):null,x=l.useCoarsePointer,E=x==null||x==="auto"?h.touchEventsSupported:!!x,M=44,D;E&&(D=It(l.pointerSize,M)),this.handler=new me(d,m,S,m.root,D),this.animation=new Jo({stage:{update:w?null:function(){return c._flush(!0)}}}),w||this.animation.start()}return s.prototype.add=function(a){this._disposed||!a||(this.storage.addRoot(a),a.addSelfToZr(this),this.refresh())},s.prototype.remove=function(a){this._disposed||!a||(this.storage.delRoot(a),a.removeSelfFromZr(this),this.refresh())},s.prototype.configLayer=function(a,i){this._disposed||(this.painter.configLayer&&this.painter.configLayer(a,i),this.refresh())},s.prototype.setBackgroundColor=function(a){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(a),this.refresh(),this._backgroundColor=a,this._darkMode=co(a))},s.prototype.getBackgroundColor=function(){return this._backgroundColor},s.prototype.setDarkMode=function(a){this._darkMode=a},s.prototype.isDarkMode=function(){return this._darkMode},s.prototype.refreshImmediately=function(a){this._disposed||(a||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},s.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},s.prototype.flush=function(){this._disposed||this._flush(!1)},s.prototype._flush=function(a){var i,l=Qo();this._needsRefresh&&(i=!0,this.refreshImmediately(a)),this._needsRefreshHover&&(i=!0,this.refreshHoverImmediately());var c=Qo();i?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:c-l})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},s.prototype.setSleepAfterStill=function(a){this._sleepAfterStill=a},s.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},s.prototype.refreshHover=function(){this._needsRefreshHover=!0},s.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},s.prototype.resize=function(a){this._disposed||(a=a||{},this.painter.resize(a.width,a.height),this.handler.resize())},s.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},s.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},s.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},s.prototype.setCursorStyle=function(a){this._disposed||this.handler.setCursorStyle(a)},s.prototype.findHover=function(a,i){if(!this._disposed)return this.handler.findHover(a,i)},s.prototype.on=function(a,i,l){return this._disposed||this.handler.on(a,i,l),this},s.prototype.off=function(a,i){this._disposed||this.handler.off(a,i)},s.prototype.trigger=function(a,i){this._disposed||this.handler.trigger(a,i)},s.prototype.clear=function(){if(!this._disposed){for(var a=this.storage.getRoots(),i=0;i<a.length;i++)a[i]instanceof Lr&&a[i].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},s.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,tl(this.id))},s}();function ds(s,a){var i=new hs(K(),s,a);return xo[i.id]=i,i}function As(s){s.dispose()}function Ki(){for(var s in xo)xo.hasOwnProperty(s)&&xo[s].dispose();xo={}}function _a(s){return xo[s]}function Qa(s,a){ba[s]=a}var ki;function zo(s){if(typeof ki=="function")return ki(s)}function Cl(s){ki=s}var Va="5.6.1",Tl=Object.freeze({__proto__:null,init:ds,dispose:As,disposeAll:Ki,getInstance:_a,registerPainter:Qa,getElementSSRData:zo,registerSSRDataGetter:Cl,version:Va}),ia=1e-4,es=20;function Xl(s){return s.replace(/^\s+|\s+$/g,"")}function ln(s,a,i,l){var c=a[0],d=a[1],v=i[0],m=i[1],w=d-c,S=m-v;if(w===0)return S===0?v:(v+m)/2;if(l)if(w>0){if(s<=c)return v;if(s>=d)return m}else{if(s>=c)return v;if(s<=d)return m}else{if(s===c)return v;if(s===d)return m}return(s-c)/w*S+v}function vr(s,a){switch(s){case"center":case"middle":s="50%";break;case"left":case"top":s="0%";break;case"right":case"bottom":s="100%";break}return Re(s)?Xl(s).match(/%$/)?parseFloat(s)/100*a:parseFloat(s):s==null?NaN:+s}function pi(s,a,i){return a==null&&(a=10),a=Math.min(Math.max(0,a),es),s=(+s).toFixed(a),i?s:+s}function aa(s){return s.sort(function(a,i){return a-i}),s}function ua(s){if(s=+s,isNaN(s))return 0;if(s>1e-14){for(var a=1,i=0;i<15;i++,a*=10)if(Math.round(s*a)/a===s)return i}return Sa(s)}function Sa(s){var a=s.toString().toLowerCase(),i=a.indexOf("e"),l=i>0?+a.slice(i+1):0,c=i>0?i:a.length,d=a.indexOf("."),v=d<0?0:c-1-d;return Math.max(0,v-l)}function El(s,a){var i=Math.log,l=Math.LN10,c=Math.floor(i(s[1]-s[0])/l),d=Math.round(i(Math.abs(a[1]-a[0]))/l),v=Math.min(Math.max(-c+d,0),20);return isFinite(v)?v:20}function Mu(s,a,i){if(!s[a])return 0;var l=uh(s,i);return l[a]||0}function uh(s,a){var i=De(s,function(D,k){return D+(isNaN(k)?0:k)},0);if(i===0)return[];for(var l=Math.pow(10,a),c=xe(s,function(D){return(isNaN(D)?0:D)/i*l*100}),d=l*100,v=xe(c,function(D){return Math.floor(D)}),m=De(v,function(D,k){return D+k},0),w=xe(c,function(D,k){return D-v[k]});m<d;){for(var S=Number.NEGATIVE_INFINITY,x=null,E=0,M=w.length;E<M;++E)w[E]>S&&(S=w[E],x=E);++v[x],w[x]=0,++m}return xe(v,function(D){return D/l})}function oc(s,a){var i=Math.max(ua(s),ua(a)),l=s+a;return i>es?l:pi(l,i)}var ts=9007199254740991;function $c(s){var a=Math.PI*2;return(s%a+a)%a}function If(s){return s>-ia&&s<ia}var Qh=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Na(s){if(s instanceof Date)return s;if(Re(s)){var a=Qh.exec(s);if(!a)return new Date(NaN);if(a[8]){var i=+a[4]||0;return a[8].toUpperCase()!=="Z"&&(i-=+a[8].slice(0,3)),new Date(Date.UTC(+a[1],+(a[2]||1)-1,+a[3]||1,i,+(a[5]||0),+a[6]||0,a[7]?+a[7].substring(0,3):0))}else return new Date(+a[1],+(a[2]||1)-1,+a[3]||1,+a[4]||0,+(a[5]||0),+a[6]||0,a[7]?+a[7].substring(0,3):0)}else if(s==null)return new Date(NaN);return new Date(Math.round(s))}function uv(s){return Math.pow(10,fo(s))}function fo(s){if(s===0)return 0;var a=Math.floor(Math.log(s)/Math.LN10);return s/Math.pow(10,a)>=10&&a++,a}function vs(s,a){var i=fo(s),l=Math.pow(10,i),c=s/l,d;return a?c<1.5?d=1:c<2.5?d=2:c<4?d=3:c<7?d=5:d=10:c<1?d=1:c<2?d=2:c<3?d=3:c<5?d=5:d=10,s=d*l,i>=-20?+s.toFixed(i<0?-i:0):s}function za(s,a){var i=(s.length-1)*a+1,l=Math.floor(i),c=+s[l-1],d=i-l;return d?c+d*(s[l]-c):c}function cv(s){s.sort(function(w,S){return m(w,S,0)?-1:1});for(var a=-1/0,i=1,l=0;l<s.length;){for(var c=s[l].interval,d=s[l].close,v=0;v<2;v++)c[v]<=a&&(c[v]=a,d[v]=v?1:1-i),a=c[v],i=d[v];c[0]===c[1]&&d[0]*d[1]!==1?s.splice(l,1):l++}return s;function m(w,S,x){return w.interval[x]<S.interval[x]||w.interval[x]===S.interval[x]&&(w.close[x]-S.close[x]===(x?-1:1)||!x&&m(w,S,1))}}function yu(s){var a=parseFloat(s);return a==s&&(a!==0||!Re(s)||s.indexOf("x")<=0)?a:NaN}function rl(s){return!isNaN(yu(s))}function _p(){return Math.round(Math.random()*9)}function eA(s,a){return a===0?s:eA(a,s%a)}function ch(s,a){return s==null?a:a==null?s:s*a/eA(s,a)}var Vh="[ECharts] ",wu={},tA=typeof console<"u"&&console.warn&&console.log;function sc(s,a,i){if(tA){if(i){if(wu[a])return;wu[a]=!0}console[s](Vh+a)}}function ky(s,a){sc("log",s,a)}function Ya(s,a){sc("warn",s,a)}function rs(s,a){sc("error",s,a)}function nl(s){sc("warn","DEPRECATED: "+s,!0)}function Ga(s,a,i){nl((i?"["+i+"]":"")+(s+" is deprecated, use "+a+" instead."))}function Do(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var i="";{var l=function(c){return c===void 0?"undefined":c===1/0?"Infinity":c===-1/0?"-Infinity":Rt(c)?"NaN":c instanceof Date?"Date("+c.toISOString()+")":qe(c)?"function () { ... }":Mt(c)?c+"":null};i=xe(s,function(c){if(Re(c))return c;var d=l(c);if(d!=null)return d;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(c,function(v,m){var w=l(m);return w??m})}catch{return"?"}else return"?"}).join(" ")}return i}function Fi(s){throw new Error(s)}function Sp(s,a,i){return(a-s)*i+s}var Hg="series\0",Qg="\0_ec_\0";function Ni(s){return s instanceof Array?s:s==null?[]:[s]}function zh(s,a,i){if(s){s[a]=s[a]||{},s.emphasis=s.emphasis||{},s.emphasis[a]=s.emphasis[a]||{};for(var l=0,c=i.length;l<c;l++){var d=i[l];!s.emphasis[a].hasOwnProperty(d)&&s[a].hasOwnProperty(d)&&(s.emphasis[a][d]=s[a][d])}}}var Vg=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function rA(s){return Pe(s)&&!Qe(s)&&!(s instanceof Date)?s.value:s}function zg(s){return Pe(s)&&!(s instanceof Array)}function Fy(s,a,i){var l=i==="normalMerge",c=i==="replaceMerge",d=i==="replaceAll";s=s||[],a=(a||[]).slice();var v=Ht();ne(a,function(w,S){if(!Pe(w)){a[S]=null;return}w.id!=null&&!Cp(w.id)&&Zl(w.id),w.name!=null&&!Cp(w.name)&&Zl(w.name)});var m=fv(s,v,i);return(l||c)&&Ny(m,s,v,a),l&&hv(m,a),l||c?lc(m,a,c):d&&Gh(m,a),jh(m),m}function fv(s,a,i){var l=[];if(i==="replaceAll")return l;for(var c=0;c<s.length;c++){var d=s[c];d&&d.id!=null&&a.set(d.id,c),l.push({existing:i==="replaceMerge"||Tp(d)?null:d,newOption:null,keyInfo:null,brandNew:null})}return l}function Ny(s,a,i,l){ne(l,function(c,d){if(!(!c||c.id==null)){var v=nA(c.id),m=i.get(v);if(m!=null){var w=s[m];_t(!w.newOption,'Duplicated option on id "'+v+'".'),w.newOption=c,w.existing=a[m],l[d]=null}}})}function hv(s,a){ne(a,function(i,l){if(!(!i||i.name==null))for(var c=0;c<s.length;c++){var d=s[c].existing;if(!s[c].newOption&&d&&(d.id==null||i.id==null)&&!Tp(i)&&!Tp(d)&&xp("name",d,i)){s[c].newOption=i,a[l]=null;return}}})}function lc(s,a,i){ne(a,function(l){if(l){for(var c,d=0;(c=s[d])&&(c.newOption||Tp(c.existing)||c.existing&&l.id!=null&&!xp("id",l,c.existing));)d++;c?(c.newOption=l,c.brandNew=i):s.push({newOption:l,brandNew:i,existing:null,keyInfo:null}),d++}})}function Gh(s,a){ne(a,function(i){s.push({newOption:i,brandNew:!0,existing:null,keyInfo:null})})}function jh(s){var a=Ht();ne(s,function(i){var l=i.existing;l&&a.set(l.id,i)}),ne(s,function(i){var l=i.newOption;_t(!l||l.id==null||!a.get(l.id)||a.get(l.id)===i,"id duplicates: "+(l&&l.id)),l&&l.id!=null&&a.set(l.id,i),!i.keyInfo&&(i.keyInfo={})}),ne(s,function(i,l){var c=i.existing,d=i.newOption,v=i.keyInfo;if(Pe(d)){if(v.name=d.name!=null?nA(d.name):c?c.name:Hg+l,c)v.id=nA(c.id);else if(d.id!=null)v.id=nA(d.id);else{var m=0;do v.id="\0"+v.name+"\0"+m++;while(a.get(v.id))}a.set(v.id,i)}})}function xp(s,a,i){var l=va(a[s],null),c=va(i[s],null);return l!=null&&c!=null&&l===c}function nA(s){if(s==null)throw new Error;return va(s,"")}function va(s,a){return s==null?a:Re(s)?s:Ge(s)||Me(s)?s+"":a}function Zl(s){Ya("`"+s+"` is invalid id or name. Must be a string or number.")}function Cp(s){return Me(s)||rl(s)}function dv(s){var a=s.name;return!!(a&&a.indexOf(Hg))}function Tp(s){return s&&s.id!=null&&nA(s.id).indexOf(Qg)===0}function mx(s){return Qg+s}function FB(s,a,i){ne(s,function(l){var c=l.newOption;Pe(c)&&(l.keyInfo.mainType=a,l.keyInfo.subType=yx(a,c,l.existing,i))})}function yx(s,a,i,l){var c=a.type?a.type:i?i.subType:l.determineSubType(s,a);return c}function NB(s,a){var i={},l={};return c(s||[],i),c(a||[],l,i),[d(i),d(l)];function c(v,m,w){for(var S=0,x=v.length;S<x;S++){var E=va(v[S].seriesId,null);if(E==null)return;for(var M=Ni(v[S].dataIndex),D=w&&w[E],k=0,Q=M.length;k<Q;k++){var V=M[k];D&&D[V]?D[V]=null:(m[E]||(m[E]={}))[V]=1}}}function d(v,m){var w=[];for(var S in v)if(v.hasOwnProperty(S)&&v[S]!=null)if(m)w.push(+S);else{var x=d(v[S],!0);x.length&&w.push({seriesId:S,dataIndex:x})}return w}}function iA(s,a){if(a.dataIndexInside!=null)return a.dataIndexInside;if(a.dataIndex!=null)return Qe(a.dataIndex)?xe(a.dataIndex,function(i){return s.indexOfRawIndex(i)}):s.indexOfRawIndex(a.dataIndex);if(a.name!=null)return Qe(a.name)?xe(a.name,function(i){return s.indexOfName(i)}):s.indexOfName(a.name)}function Ri(){var s="__ec_inner_"+Bw++;return function(a){return a[s]||(a[s]={})}}var Bw=_p();function Gg(s,a,i){var l=Iw(a,i),c=l.mainTypeSpecified,d=l.queryOptionMap,v=l.others,m=v,w=i?i.defaultMainType:null;return!c&&w&&d.set(w,{}),d.each(function(S,x){var E=jg(s,x,S,{useDefault:w===x,enableAll:i&&i.enableAll!=null?i.enableAll:!0,enableNone:i&&i.enableNone!=null?i.enableNone:!0});m[x+"Models"]=E.models,m[x+"Model"]=E.models[0]}),m}function Iw(s,a){var i;if(Re(s)){var l={};l[s+"Index"]=0,i=l}else i=s;var c=Ht(),d={},v=!1;return ne(i,function(m,w){if(w==="dataIndex"||w==="dataIndexInside"){d[w]=m;return}var S=w.match(/^(\w+)(Index|Id|Name)$/)||[],x=S[1],E=(S[2]||"").toLowerCase();if(!(!x||!E||a&&a.includeMainTypes&&oe(a.includeMainTypes,x)<0)){v=v||!!x;var M=c.get(x)||c.set(x,{});M[E]=m}}),{mainTypeSpecified:v,queryOptionMap:c,others:d}}var ps={useDefault:!0,enableAll:!1,enableNone:!1},UB={useDefault:!1,enableAll:!0,enableNone:!0};function jg(s,a,i,l){l=l||ps;var c=i.index,d=i.id,v=i.name,m={models:null,specified:c!=null||d!=null||v!=null};if(!m.specified){var w=void 0;return m.models=l.useDefault&&(w=s.getComponent(a))?[w]:[],m}return c==="none"||c===!1?(_t(l.enableNone,'`"none"` or `false` is not a valid value on index option.'),m.models=[],m):(c==="all"&&(_t(l.enableAll,'`"all"` is not a valid value on index option.'),c=d=v=null),m.models=s.queryComponents({mainType:a,index:c,id:d,name:v}),m)}function Lw(s,a,i){s.setAttribute?s.setAttribute(a,i):s[a]=i}function HB(s,a){return s.getAttribute?s.getAttribute(a):s[a]}function aA(s){return s==="auto"?h.domSupported?"html":"richText":s||"html"}function Mw(s,a){var i=Ht(),l=[];return ne(s,function(c){var d=a(c);(i.get(d)||(l.push(d),i.set(d,[]))).push(c)}),{keys:l,buckets:i}}function Dw(s,a,i,l,c){var d=a==null||a==="auto";if(l==null)return l;if(Ge(l)){var v=Sp(i||0,l,c);return pi(v,d?Math.max(ua(i||0),ua(l)):a)}else{if(Re(l))return c<1?i:l;for(var m=[],w=i,S=l,x=Math.max(w?w.length:0,S.length),E=0;E<x;++E){var M=s.getDimensionInfo(E);if(M&&M.type==="ordinal")m[E]=(c<1&&w?w:S)[E];else{var D=w&&w[E]?w[E]:0,k=S[E],v=Sp(D,k,c);m[E]=pi(v,d?Math.max(ua(D),ua(k)):a)}}return m}}var QB=".",Av="___EC__COMPONENT__CONTAINER___",qg="___EC__EXTENDED_CLASS___";function qh(s){var a={main:"",sub:""};if(s){var i=s.split(QB);a.main=i[0]||"",a.sub=i[1]||""}return a}function cF(s){_t(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(s),'componentType "'+s+'" illegal')}function bx(s){return!!(s&&s[qg])}function Uy(s,a){s.$constructor=s,s.extend=function(i){ne(a,function(d){i[d]||console.warn("Method `"+d+"` should be implemented"+(i.type?" in "+i.type:"")+".")});var l=this,c;return fF(l)?c=function(d){o(v,d);function v(){return d.apply(this,arguments)||this}return v}(l):(c=function(){(i.$constructor||l).apply(this,arguments)},ye(c,this)),ie(c.prototype,i),c[qg]=!0,c.extend=this.extend,c.superCall=zB,c.superApply=dF,c.superClass=l,c}}function fF(s){return qe(s)&&/^class\s/.test(Function.prototype.toString.call(s))}function _x(s,a){s.extend=a.extend}var VB=Math.round(Math.random()*10);function hF(s){var a=["__\0is_clz",VB++].join("_");s.prototype[a]=!0,_t(!s.isInstance,'The method "is" can not be defined.'),s.isInstance=function(i){return!!(i&&i[a])}}function zB(s,a){for(var i=[],l=2;l<arguments.length;l++)i[l-2]=arguments[l];return this.superClass.prototype[a].apply(s,i)}function dF(s,a,i){return this.superClass.prototype[a].apply(s,i)}function Rw(s){var a={};s.registerClass=function(l){var c=l.type||l.prototype.type;if(c){cF(c),l.prototype.type=c;var d=qh(c);if(!d.sub)a[d.main]&&console.warn(d.main+" exists."),a[d.main]=l;else if(d.sub!==Av){var v=i(d);v[d.sub]=l}}return l},s.getClass=function(l,c,d){var v=a[l];if(v&&v[Av]&&(v=c?v[c]:null),d&&!v)throw new Error(c?"Component "+l+"."+(c||"")+" is used but not imported.":l+".type should be specified.");return v},s.getClassesByMainType=function(l){var c=qh(l),d=[],v=a[c.main];return v&&v[Av]?ne(v,function(m,w){w!==Av&&d.push(m)}):d.push(v),d},s.hasClass=function(l){var c=qh(l);return!!a[c.main]},s.getAllClassMainTypes=function(){var l=[];return ne(a,function(c,d){l.push(d)}),l},s.hasSubTypes=function(l){var c=qh(l),d=a[c.main];return d&&d[Av]};function i(l){var c=a[l.main];return(!c||!c[Av])&&(c=a[l.main]={},c[Av]=!0),c}}function vv(s,a){for(var i=0;i<s.length;i++)s[i][1]||(s[i][1]=s[i][0]);return a=a||!1,function(l,c,d){for(var v={},m=0;m<s.length;m++){var w=s[m][1];if(!(c&&oe(c,w)>=0||d&&oe(d,w)<0)){var S=l.getShallow(w,a);S!=null&&(v[s[m][0]]=S)}}return v}}var GB=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],jB=vv(GB),qB=function(){function s(){}return s.prototype.getAreaStyle=function(a,i){return jB(this,a,i)},s}(),Pw=new ic(50);function Sx(s){if(typeof s=="string"){var a=Pw.get(s);return a&&a.image}else return s}function Hy(s,a,i,l,c){if(s)if(typeof s=="string"){if(a&&a.__zrImageSrc===s||!i)return a;var d=Pw.get(s),v={hostEl:i,cb:l,cbPayload:c};return d?(a=d.image,!Wg(a)&&d.pending.push(v)):(a=L.loadImage(s,xx,xx),a.__zrImageSrc=s,Pw.put(s,a.__cachedImgObj={image:a,pending:[v]})),a}else return s;else return a}function xx(){var s=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var a=0;a<s.pending.length;a++){var i=s.pending[a],l=i.cb;l&&l(this,i.cbPayload),i.hostEl.dirty()}s.pending.length=0}function Wg(s){return s&&s.width&&s.height}var Ow=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function AF(s,a,i,l,c){var d={};return WB(d,s,a,i,l,c),d.text}function WB(s,a,i,l,c,d){if(!i){s.text="",s.isTruncated=!1;return}var v=(a+"").split(`
`);d=Qy(i,l,c,d);for(var m=!1,w={},S=0,x=v.length;S<x;S++)kw(w,v[S],d),v[S]=w.textLine,m=m||w.isTruncated;s.text=v.join(`
`),s.isTruncated=m}function Qy(s,a,i,l){l=l||{};var c=ie({},l);c.font=a,i=It(i,"..."),c.maxIterations=It(l.maxIterations,2);var d=c.minChar=It(l.minChar,0);c.cnCharWidth=Vt("国",a);var v=c.ascCharWidth=Vt("a",a);c.placeholder=It(l.placeholder,"");for(var m=s=Math.max(0,s-1),w=0;w<d&&m>=v;w++)m-=v;var S=Vt(i,a);return S>m&&(i="",S=0),m=s-S,c.ellipsis=i,c.ellipsisWidth=S,c.contentWidth=m,c.containerWidth=s,c}function kw(s,a,i){var l=i.containerWidth,c=i.font,d=i.contentWidth;if(!l){s.textLine="",s.isTruncated=!1;return}var v=Vt(a,c);if(v<=l){s.textLine=a,s.isTruncated=!1;return}for(var m=0;;m++){if(v<=d||m>=i.maxIterations){a+=i.ellipsis;break}var w=m===0?gi(a,d,i.ascCharWidth,i.cnCharWidth):v>0?Math.floor(a.length*d/v):0;a=a.substr(0,w),v=Vt(a,c)}a===""&&(a=i.placeholder),s.textLine=a,s.isTruncated=!0}function gi(s,a,i,l){for(var c=0,d=0,v=s.length;d<v&&c<a;d++){var m=s.charCodeAt(d);c+=0<=m&&m<=127?i:l}return d}function Du(s,a){s!=null&&(s+="");var i=a.overflow,l=a.padding,c=a.font,d=i==="truncate",v=$t(c),m=It(a.lineHeight,v),w=!!a.backgroundColor,S=a.lineOverflow==="truncate",x=!1,E=a.width,M;E!=null&&(i==="break"||i==="breakAll")?M=s?Bp(s,a.font,E,i==="breakAll",0).lines:[]:M=s?s.split(`
`):[];var D=M.length*m,k=It(a.height,D);if(D>k&&S){var Q=Math.floor(k/m);x=x||M.length>Q,M=M.slice(0,Q)}if(s&&d&&E!=null)for(var V=Qy(E,c,a.ellipsis,{minChar:a.truncateMinChar,placeholder:a.placeholder}),$={},Z=0;Z<M.length;Z++)kw($,M[Z],V),M[Z]=$.textLine,x=x||$.isTruncated;for(var ee=k,fe=0,Z=0;Z<M.length;Z++)fe=Math.max(Vt(M[Z],c),fe);E==null&&(E=fe);var ve=fe;return l&&(ee+=l[0]+l[2],ve+=l[1]+l[3],E+=l[1]+l[3]),w&&(ve=E),{lines:M,height:k,outerWidth:ve,outerHeight:ee,lineHeight:m,calculatedLineHeight:v,contentWidth:fe,contentHeight:D,width:E,isTruncated:x}}var il=function(){function s(){}return s}(),Jl=function(){function s(a){this.tokens=[],a&&(this.tokens=a)}return s}(),Ep=function(){function s(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return s}();function Cx(s,a){var i=new Ep;if(s!=null&&(s+=""),!s)return i;for(var l=a.width,c=a.height,d=a.overflow,v=(d==="break"||d==="breakAll")&&l!=null?{width:l,accumWidth:0,breakAll:d==="breakAll"}:null,m=Ow.lastIndex=0,w;(w=Ow.exec(s))!=null;){var S=w.index;S>m&&al(i,s.substring(m,S),a,v),al(i,w[2],a,v,w[1]),m=Ow.lastIndex}m<s.length&&al(i,s.substring(m,s.length),a,v);var x=[],E=0,M=0,D=a.padding,k=d==="truncate",Q=a.lineOverflow==="truncate",V={};function $(ur,wr,Or){ur.width=wr,ur.lineHeight=Or,E+=Or,M=Math.max(M,wr)}e:for(var Z=0;Z<i.lines.length;Z++){for(var ee=i.lines[Z],fe=0,ve=0,ge=0;ge<ee.tokens.length;ge++){var Se=ee.tokens[ge],Ee=Se.styleName&&a.rich[Se.styleName]||{},Ie=Se.textPadding=Ee.padding,Le=Ie?Ie[1]+Ie[3]:0,Fe=Se.font=Ee.font||a.font;Se.contentHeight=$t(Fe);var Je=It(Ee.height,Se.contentHeight);if(Se.innerHeight=Je,Ie&&(Je+=Ie[0]+Ie[2]),Se.height=Je,Se.lineHeight=qt(Ee.lineHeight,a.lineHeight,Je),Se.align=Ee&&Ee.align||a.align,Se.verticalAlign=Ee&&Ee.verticalAlign||"middle",Q&&c!=null&&E+Se.lineHeight>c){var rt=i.lines.length;ge>0?(ee.tokens=ee.tokens.slice(0,ge),$(ee,ve,fe),i.lines=i.lines.slice(0,Z+1)):i.lines=i.lines.slice(0,Z),i.isTruncated=i.isTruncated||i.lines.length<rt;break e}var at=Ee.width,dt=at==null||at==="auto";if(typeof at=="string"&&at.charAt(at.length-1)==="%")Se.percentWidth=at,x.push(Se),Se.contentWidth=Vt(Se.text,Fe);else{if(dt){var wt=Ee.backgroundColor,zt=wt&&wt.image;zt&&(zt=Sx(zt),Wg(zt)&&(Se.width=Math.max(Se.width,zt.width*Je/zt.height)))}var Ut=k&&l!=null?l-ve:null;Ut!=null&&Ut<Se.width?!dt||Ut<Le?(Se.text="",Se.width=Se.contentWidth=0):(WB(V,Se.text,Ut-Le,Fe,a.ellipsis,{minChar:a.truncateMinChar}),Se.text=V.text,i.isTruncated=i.isTruncated||V.isTruncated,Se.width=Se.contentWidth=Vt(Se.text,Fe)):Se.contentWidth=Vt(Se.text,Fe)}Se.width+=Le,ve+=Se.width,Ee&&(fe=Math.max(fe,Se.lineHeight))}$(ee,ve,fe)}i.outerWidth=i.width=It(l,M),i.outerHeight=i.height=It(c,E),i.contentHeight=E,i.contentWidth=M,D&&(i.outerWidth+=D[1]+D[3],i.outerHeight+=D[0]+D[2]);for(var Z=0;Z<x.length;Z++){var Se=x[Z],Yt=Se.percentWidth;Se.width=parseInt(Yt,10)/100*i.width}return i}function al(s,a,i,l,c){var d=a==="",v=c&&i.rich[c]||{},m=s.lines,w=v.font||i.font,S=!1,x,E;if(l){var M=v.padding,D=M?M[1]+M[3]:0;if(v.width!=null&&v.width!=="auto"){var k=tr(v.width,l.width)+D;m.length>0&&k+l.accumWidth>l.width&&(x=a.split(`
`),S=!0),l.accumWidth=k}else{var Q=Bp(a,w,l.width,l.breakAll,l.accumWidth);l.accumWidth=Q.accumWidth+D,E=Q.linesWidths,x=Q.lines}}else x=a.split(`
`);for(var V=0;V<x.length;V++){var $=x[V],Z=new il;if(Z.styleName=c,Z.text=$,Z.isLineHolder=!$&&!d,typeof v.width=="number"?Z.width=v.width:Z.width=E?E[V]:Vt($,w),!V&&!S){var ee=(m[m.length-1]||(m[0]=new Jl)).tokens,fe=ee.length;fe===1&&ee[0].isLineHolder?ee[0]=Z:($||!fe||d)&&ee.push(Z)}else m.push(new Jl([Z]))}}function Fw(s){var a=s.charCodeAt(0);return a>=32&&a<=591||a>=880&&a<=4351||a>=4608&&a<=5119||a>=7680&&a<=8303}var $g=De(",&?/;] ".split(""),function(s,a){return s[a]=!0,s},{});function Vy(s){return Fw(s)?!!$g[s]:!0}function Bp(s,a,i,l,c){for(var d=[],v=[],m="",w="",S=0,x=0,E=0;E<s.length;E++){var M=s.charAt(E);if(M===`
`){w&&(m+=w,x+=S),d.push(m),v.push(x),m="",w="",S=0,x=0;continue}var D=Vt(M,a),k=l?!1:!Vy(M);if(d.length?x+D>i:c+x+D>i){x?(m||w)&&(k?(m||(m=w,w="",S=0,x=S),d.push(m),v.push(x-S),w+=M,S+=D,m="",x=S):(w&&(m+=w,w="",S=0),d.push(m),v.push(x),m=M,x=D)):k?(d.push(w),v.push(S),w=M,S=D):(d.push(M),v.push(D));continue}x+=D,k?(w+=M,S+=D):(w&&(m+=w,w="",S=0),m+=M)}return!d.length&&!m&&(m=s,w="",S=0),w&&(m+=w),m&&(d.push(m),v.push(x)),d.length===1&&(x+=c),{accumWidth:x,lines:d,linesWidths:v}}var zy="__zr_style_"+Math.round(Math.random()*10),oA={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Kg={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};oA[zy]=!0;var Nw=["z","z2","invisible"],Yg=["invisible"],en=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype._init=function(i){for(var l=Ne(i),c=0;c<l.length;c++){var d=l[c];d==="style"?this.useStyle(i[d]):s.prototype.attrKV.call(this,d,i[d])}this.style||this.useStyle({})},a.prototype.beforeBrush=function(){},a.prototype.afterBrush=function(){},a.prototype.innerBeforeBrush=function(){},a.prototype.innerAfterBrush=function(){},a.prototype.shouldBePainted=function(i,l,c,d){var v=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Wh(this,i,l)||v&&!v[0]&&!v[3])return!1;if(c&&this.__clipPaths){for(var m=0;m<this.__clipPaths.length;++m)if(this.__clipPaths[m].isZeroArea())return!1}if(d&&this.parent)for(var w=this.parent;w;){if(w.ignore)return!1;w=w.parent}return!0},a.prototype.contain=function(i,l){return this.rectContain(i,l)},a.prototype.traverse=function(i,l){i.call(l,this)},a.prototype.rectContain=function(i,l){var c=this.transformCoordToLocal(i,l),d=this.getBoundingRect();return d.contain(c[0],c[1])},a.prototype.getPaintRect=function(){var i=this._paintRect;if(!this._paintRect||this.__dirty){var l=this.transform,c=this.getBoundingRect(),d=this.style,v=d.shadowBlur||0,m=d.shadowOffsetX||0,w=d.shadowOffsetY||0;i=this._paintRect||(this._paintRect=new Bn(0,0,0,0)),l?Bn.applyTransform(i,c,l):i.copy(c),(v||m||w)&&(i.width+=v*2+Math.abs(m),i.height+=v*2+Math.abs(w),i.x=Math.min(i.x,i.x+m-v),i.y=Math.min(i.y,i.y+w-v));var S=this.dirtyRectTolerance;i.isZero()||(i.x=Math.floor(i.x-S),i.y=Math.floor(i.y-S),i.width=Math.ceil(i.width+1+S*2),i.height=Math.ceil(i.height+1+S*2))}return i},a.prototype.setPrevPaintRect=function(i){i?(this._prevPaintRect=this._prevPaintRect||new Bn(0,0,0,0),this._prevPaintRect.copy(i)):this._prevPaintRect=null},a.prototype.getPrevPaintRect=function(){return this._prevPaintRect},a.prototype.animateStyle=function(i){return this.animate("style",i)},a.prototype.updateDuringAnimation=function(i){i==="style"?this.dirtyStyle():this.markRedraw()},a.prototype.attrKV=function(i,l){i!=="style"?s.prototype.attrKV.call(this,i,l):this.style?this.setStyle(l):this.useStyle(l)},a.prototype.setStyle=function(i,l){return typeof i=="string"?this.style[i]=l:ie(this.style,i),this.dirtyStyle(),this},a.prototype.dirtyStyle=function(i){i||this.markRedraw(),this.__dirty|=lo,this._rect&&(this._rect=null)},a.prototype.dirty=function(){this.dirtyStyle()},a.prototype.styleChanged=function(){return!!(this.__dirty&lo)},a.prototype.styleUpdated=function(){this.__dirty&=~lo},a.prototype.createStyle=function(i){return kn(oA,i)},a.prototype.useStyle=function(i){i[zy]||(i=this.createStyle(i)),this.__inHover?this.__hoverStyle=i:this.style=i,this.dirtyStyle()},a.prototype.isStyleObject=function(i){return i[zy]},a.prototype._innerSaveToNormal=function(i){s.prototype._innerSaveToNormal.call(this,i);var l=this._normalState;i.style&&!l.style&&(l.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(i,l,Nw)},a.prototype._applyStateObj=function(i,l,c,d,v,m){s.prototype._applyStateObj.call(this,i,l,c,d,v,m);var w=!(l&&d),S;if(l&&l.style?v?d?S=l.style:(S=this._mergeStyle(this.createStyle(),c.style),this._mergeStyle(S,l.style)):(S=this._mergeStyle(this.createStyle(),d?this.style:c.style),this._mergeStyle(S,l.style)):w&&(S=c.style),S)if(v){var x=this.style;if(this.style=this.createStyle(w?{}:x),w)for(var E=Ne(x),M=0;M<E.length;M++){var D=E[M];D in S&&(S[D]=S[D],this.style[D]=x[D])}for(var k=Ne(S),M=0;M<k.length;M++){var D=k[M];this.style[D]=this.style[D]}this._transitionState(i,{style:S},m,this.getAnimationStyleProps())}else this.useStyle(S);for(var Q=this.__inHover?Yg:Nw,M=0;M<Q.length;M++){var D=Q[M];l&&l[D]!=null?this[D]=l[D]:w&&c[D]!=null&&(this[D]=c[D])}},a.prototype._mergeStates=function(i){for(var l=s.prototype._mergeStates.call(this,i),c,d=0;d<i.length;d++){var v=i[d];v.style&&(c=c||{},this._mergeStyle(c,v.style))}return c&&(l.style=c),l},a.prototype._mergeStyle=function(i,l){return ie(i,l),i},a.prototype.getAnimationStyleProps=function(){return Kg},a.initDefaultProps=function(){var i=a.prototype;i.type="displayable",i.invisible=!1,i.z=0,i.z2=0,i.zlevel=0,i.culling=!1,i.cursor="pointer",i.rectHover=!1,i.incremental=!1,i._rect=null,i.dirtyRectTolerance=0,i.__dirty=bi|lo}(),a}(sn),Xg=new Bn(0,0,0,0),Gy=new Bn(0,0,0,0);function Wh(s,a,i){return Xg.copy(s.getBoundingRect()),s.transform&&Xg.applyTransform(s.transform),Gy.width=a,Gy.height=i,!Xg.intersect(Gy)}var xs=Math.min,Bl=Math.max,Ip=Math.sin,jy=Math.cos,sA=Math.PI*2,Lf=et(),pv=et(),Zg=et();function Lp(s,a,i){if(s.length!==0){for(var l=s[0],c=l[0],d=l[0],v=l[1],m=l[1],w=1;w<s.length;w++)l=s[w],c=xs(c,l[0]),d=Bl(d,l[0]),v=xs(v,l[1]),m=Bl(m,l[1]);a[0]=c,a[1]=v,i[0]=d,i[1]=m}}function $h(s,a,i,l,c,d){c[0]=xs(s,i),c[1]=xs(a,l),d[0]=Bl(s,i),d[1]=Bl(a,l)}var qy=[],Jg=[];function Uw(s,a,i,l,c,d,v,m,w,S){var x=kh,E=Oa,M=x(s,i,c,v,qy);w[0]=1/0,w[1]=1/0,S[0]=-1/0,S[1]=-1/0;for(var D=0;D<M;D++){var k=E(s,i,c,v,qy[D]);w[0]=xs(k,w[0]),S[0]=Bl(k,S[0])}M=x(a,l,d,m,Jg);for(var D=0;D<M;D++){var Q=E(a,l,d,m,Jg[D]);w[1]=xs(Q,w[1]),S[1]=Bl(Q,S[1])}w[0]=xs(s,w[0]),S[0]=Bl(s,S[0]),w[0]=xs(v,w[0]),S[0]=Bl(v,S[0]),w[1]=xs(a,w[1]),S[1]=Bl(a,S[1]),w[1]=xs(m,w[1]),S[1]=Bl(m,S[1])}function Kc(s,a,i,l,c,d,v,m){var w=mu,S=qi,x=Bl(xs(w(s,i,c),1),0),E=Bl(xs(w(a,l,d),1),0),M=S(s,i,c,x),D=S(a,l,d,E);v[0]=xs(s,c,M),v[1]=xs(a,d,D),m[0]=Bl(s,c,M),m[1]=Bl(a,d,D)}function gv(s,a,i,l,c,d,v,m,w){var S=Mi,x=Ka,E=Math.abs(c-d);if(E%sA<1e-4&&E>1e-4){m[0]=s-i,m[1]=a-l,w[0]=s+i,w[1]=a+l;return}if(Lf[0]=jy(c)*i+s,Lf[1]=Ip(c)*l+a,pv[0]=jy(d)*i+s,pv[1]=Ip(d)*l+a,S(m,Lf,pv),x(w,Lf,pv),c=c%sA,c<0&&(c=c+sA),d=d%sA,d<0&&(d=d+sA),c>d&&!v?d+=sA:c<d&&v&&(c+=sA),v){var M=d;d=c,c=M}for(var D=0;D<d;D+=Math.PI/2)D>c&&(Zg[0]=jy(D)*i+s,Zg[1]=Ip(D)*l+a,S(m,Zg,m),x(w,Zg,w))}var Zi={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Kh=[],Il=[],fh=[],Yc=[],Mf=[],Yh=[],Hw=Math.min,Qw=Math.max,Xh=Math.cos,lA=Math.sin,uc=Math.abs,Vw=Math.PI,uA=Vw*2,Mp=typeof Float32Array<"u",Wy=[];function Tx(s){var a=Math.round(s/Vw*1e8)/1e8;return a%2*Vw}function zw(s,a){var i=Tx(s[0]);i<0&&(i+=uA);var l=i-s[0],c=s[1];c+=l,!a&&c-i>=uA?c=i+uA:a&&i-c>=uA?c=i-uA:!a&&i>c?c=i+(uA-Tx(i-c)):a&&i<c&&(c=i-(uA-Tx(c-i))),s[0]=i,s[1]=c}var hh=function(){function s(a){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,a&&(this._saveData=!1),this._saveData&&(this.data=[])}return s.prototype.increaseVersion=function(){this._version++},s.prototype.getVersion=function(){return this._version},s.prototype.setScale=function(a,i,l){l=l||0,l>0&&(this._ux=uc(l/lv/a)||0,this._uy=uc(l/lv/i)||0)},s.prototype.setDPR=function(a){this.dpr=a},s.prototype.setContext=function(a){this._ctx=a},s.prototype.getContext=function(){return this._ctx},s.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},s.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},s.prototype.moveTo=function(a,i){return this._drawPendingPt(),this.addData(Zi.M,a,i),this._ctx&&this._ctx.moveTo(a,i),this._x0=a,this._y0=i,this._xi=a,this._yi=i,this},s.prototype.lineTo=function(a,i){var l=uc(a-this._xi),c=uc(i-this._yi),d=l>this._ux||c>this._uy;if(this.addData(Zi.L,a,i),this._ctx&&d&&this._ctx.lineTo(a,i),d)this._xi=a,this._yi=i,this._pendingPtDist=0;else{var v=l*l+c*c;v>this._pendingPtDist&&(this._pendingPtX=a,this._pendingPtY=i,this._pendingPtDist=v)}return this},s.prototype.bezierCurveTo=function(a,i,l,c,d,v){return this._drawPendingPt(),this.addData(Zi.C,a,i,l,c,d,v),this._ctx&&this._ctx.bezierCurveTo(a,i,l,c,d,v),this._xi=d,this._yi=v,this},s.prototype.quadraticCurveTo=function(a,i,l,c){return this._drawPendingPt(),this.addData(Zi.Q,a,i,l,c),this._ctx&&this._ctx.quadraticCurveTo(a,i,l,c),this._xi=l,this._yi=c,this},s.prototype.arc=function(a,i,l,c,d,v){this._drawPendingPt(),Wy[0]=c,Wy[1]=d,zw(Wy,v),c=Wy[0],d=Wy[1];var m=d-c;return this.addData(Zi.A,a,i,l,l,c,m,0,v?0:1),this._ctx&&this._ctx.arc(a,i,l,c,d,v),this._xi=Xh(d)*l+a,this._yi=lA(d)*l+i,this},s.prototype.arcTo=function(a,i,l,c,d){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(a,i,l,c,d),this},s.prototype.rect=function(a,i,l,c){return this._drawPendingPt(),this._ctx&&this._ctx.rect(a,i,l,c),this.addData(Zi.R,a,i,l,c),this},s.prototype.closePath=function(){this._drawPendingPt(),this.addData(Zi.Z);var a=this._ctx,i=this._x0,l=this._y0;return a&&a.closePath(),this._xi=i,this._yi=l,this},s.prototype.fill=function(a){a&&a.fill(),this.toStatic()},s.prototype.stroke=function(a){a&&a.stroke(),this.toStatic()},s.prototype.len=function(){return this._len},s.prototype.setData=function(a){var i=a.length;!(this.data&&this.data.length===i)&&Mp&&(this.data=new Float32Array(i));for(var l=0;l<i;l++)this.data[l]=a[l];this._len=i},s.prototype.appendPath=function(a){a instanceof Array||(a=[a]);for(var i=a.length,l=0,c=this._len,d=0;d<i;d++)l+=a[d].len();Mp&&this.data instanceof Float32Array&&(this.data=new Float32Array(c+l));for(var d=0;d<i;d++)for(var v=a[d].data,m=0;m<v.length;m++)this.data[c++]=v[m];this._len=c},s.prototype.addData=function(a,i,l,c,d,v,m,w,S){if(this._saveData){var x=this.data;this._len+arguments.length>x.length&&(this._expandData(),x=this.data);for(var E=0;E<arguments.length;E++)x[this._len++]=arguments[E]}},s.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},s.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var a=[],i=0;i<this._len;i++)a[i]=this.data[i];this.data=a}},s.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var a=this.data;a instanceof Array&&(a.length=this._len,Mp&&this._len>11&&(this.data=new Float32Array(a)))}},s.prototype.getBoundingRect=function(){fh[0]=fh[1]=Mf[0]=Mf[1]=Number.MAX_VALUE,Yc[0]=Yc[1]=Yh[0]=Yh[1]=-Number.MAX_VALUE;var a=this.data,i=0,l=0,c=0,d=0,v;for(v=0;v<this._len;){var m=a[v++],w=v===1;switch(w&&(i=a[v],l=a[v+1],c=i,d=l),m){case Zi.M:i=c=a[v++],l=d=a[v++],Mf[0]=c,Mf[1]=d,Yh[0]=c,Yh[1]=d;break;case Zi.L:$h(i,l,a[v],a[v+1],Mf,Yh),i=a[v++],l=a[v++];break;case Zi.C:Uw(i,l,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],Mf,Yh),i=a[v++],l=a[v++];break;case Zi.Q:Kc(i,l,a[v++],a[v++],a[v],a[v+1],Mf,Yh),i=a[v++],l=a[v++];break;case Zi.A:var S=a[v++],x=a[v++],E=a[v++],M=a[v++],D=a[v++],k=a[v++]+D;v+=1;var Q=!a[v++];w&&(c=Xh(D)*E+S,d=lA(D)*M+x),gv(S,x,E,M,D,k,Q,Mf,Yh),i=Xh(k)*E+S,l=lA(k)*M+x;break;case Zi.R:c=i=a[v++],d=l=a[v++];var V=a[v++],$=a[v++];$h(c,d,c+V,d+$,Mf,Yh);break;case Zi.Z:i=c,l=d;break}Mi(fh,fh,Mf),Ka(Yc,Yc,Yh)}return v===0&&(fh[0]=fh[1]=Yc[0]=Yc[1]=0),new Bn(fh[0],fh[1],Yc[0]-fh[0],Yc[1]-fh[1])},s.prototype._calculateLength=function(){var a=this.data,i=this._len,l=this._ux,c=this._uy,d=0,v=0,m=0,w=0;this._pathSegLen||(this._pathSegLen=[]);for(var S=this._pathSegLen,x=0,E=0,M=0;M<i;){var D=a[M++],k=M===1;k&&(d=a[M],v=a[M+1],m=d,w=v);var Q=-1;switch(D){case Zi.M:d=m=a[M++],v=w=a[M++];break;case Zi.L:{var V=a[M++],$=a[M++],Z=V-d,ee=$-v;(uc(Z)>l||uc(ee)>c||M===i-1)&&(Q=Math.sqrt(Z*Z+ee*ee),d=V,v=$);break}case Zi.C:{var fe=a[M++],ve=a[M++],V=a[M++],$=a[M++],ge=a[M++],Se=a[M++];Q=xf(d,v,fe,ve,V,$,ge,Se,10),d=ge,v=Se;break}case Zi.Q:{var fe=a[M++],ve=a[M++],V=a[M++],$=a[M++];Q=Gc(d,v,fe,ve,V,$,10),d=V,v=$;break}case Zi.A:var Ee=a[M++],Ie=a[M++],Le=a[M++],Fe=a[M++],Je=a[M++],rt=a[M++],at=rt+Je;M+=1,k&&(m=Xh(Je)*Le+Ee,w=lA(Je)*Fe+Ie),Q=Qw(Le,Fe)*Hw(uA,Math.abs(rt)),d=Xh(at)*Le+Ee,v=lA(at)*Fe+Ie;break;case Zi.R:{m=d=a[M++],w=v=a[M++];var dt=a[M++],wt=a[M++];Q=dt*2+wt*2;break}case Zi.Z:{var Z=m-d,ee=w-v;Q=Math.sqrt(Z*Z+ee*ee),d=m,v=w;break}}Q>=0&&(S[E++]=Q,x+=Q)}return this._pathLen=x,x},s.prototype.rebuildPath=function(a,i){var l=this.data,c=this._ux,d=this._uy,v=this._len,m,w,S,x,E,M,D=i<1,k,Q,V=0,$=0,Z,ee=0,fe,ve;if(!(D&&(this._pathSegLen||this._calculateLength(),k=this._pathSegLen,Q=this._pathLen,Z=i*Q,!Z)))e:for(var ge=0;ge<v;){var Se=l[ge++],Ee=ge===1;switch(Ee&&(S=l[ge],x=l[ge+1],m=S,w=x),Se!==Zi.L&&ee>0&&(a.lineTo(fe,ve),ee=0),Se){case Zi.M:m=S=l[ge++],w=x=l[ge++],a.moveTo(S,x);break;case Zi.L:{E=l[ge++],M=l[ge++];var Ie=uc(E-S),Le=uc(M-x);if(Ie>c||Le>d){if(D){var Fe=k[$++];if(V+Fe>Z){var Je=(Z-V)/Fe;a.lineTo(S*(1-Je)+E*Je,x*(1-Je)+M*Je);break e}V+=Fe}a.lineTo(E,M),S=E,x=M,ee=0}else{var rt=Ie*Ie+Le*Le;rt>ee&&(fe=E,ve=M,ee=rt)}break}case Zi.C:{var at=l[ge++],dt=l[ge++],wt=l[ge++],zt=l[ge++],Ut=l[ge++],Yt=l[ge++];if(D){var Fe=k[$++];if(V+Fe>Z){var Je=(Z-V)/Fe;gu(S,at,wt,Ut,Je,Kh),gu(x,dt,zt,Yt,Je,Il),a.bezierCurveTo(Kh[1],Il[1],Kh[2],Il[2],Kh[3],Il[3]);break e}V+=Fe}a.bezierCurveTo(at,dt,wt,zt,Ut,Yt),S=Ut,x=Yt;break}case Zi.Q:{var at=l[ge++],dt=l[ge++],wt=l[ge++],zt=l[ge++];if(D){var Fe=k[$++];if(V+Fe>Z){var Je=(Z-V)/Fe;$l(S,at,wt,Je,Kh),$l(x,dt,zt,Je,Il),a.quadraticCurveTo(Kh[1],Il[1],Kh[2],Il[2]);break e}V+=Fe}a.quadraticCurveTo(at,dt,wt,zt),S=wt,x=zt;break}case Zi.A:var ur=l[ge++],wr=l[ge++],Or=l[ge++],vn=l[ge++],wn=l[ge++],Un=l[ge++],Ha=l[ge++],Cs=!l[ge++],ei=Or>vn?Or:vn,Cn=uc(Or-vn)>.001,di=wn+Un,tn=!1;if(D){var Fe=k[$++];V+Fe>Z&&(di=wn+Un*(Z-V)/Fe,tn=!0),V+=Fe}if(Cn&&a.ellipse?a.ellipse(ur,wr,Or,vn,Ha,wn,di,Cs):a.arc(ur,wr,ei,wn,di,Cs),tn)break e;Ee&&(m=Xh(wn)*Or+ur,w=lA(wn)*vn+wr),S=Xh(di)*Or+ur,x=lA(di)*vn+wr;break;case Zi.R:m=S=l[ge],w=x=l[ge+1],E=l[ge++],M=l[ge++];var Hn=l[ge++],vo=l[ge++];if(D){var Fe=k[$++];if(V+Fe>Z){var Ca=Z-V;a.moveTo(E,M),a.lineTo(E+Hw(Ca,Hn),M),Ca-=Hn,Ca>0&&a.lineTo(E+Hn,M+Hw(Ca,vo)),Ca-=vo,Ca>0&&a.lineTo(E+Qw(Hn-Ca,0),M+vo),Ca-=Hn,Ca>0&&a.lineTo(E,M+Qw(vo-Ca,0));break e}V+=Fe}a.rect(E,M,Hn,vo);break;case Zi.Z:if(D){var Fe=k[$++];if(V+Fe>Z){var Je=(Z-V)/Fe;a.lineTo(S*(1-Je)+m*Je,x*(1-Je)+w*Je);break e}V+=Fe}a.closePath(),S=m,x=w}}},s.prototype.clone=function(){var a=new s,i=this.data;return a.data=i.slice?i.slice():Array.prototype.slice.call(i),a._len=this._len,a},s.CMD=Zi,s.initDefaultProps=function(){var a=s.prototype;a._saveData=!0,a._ux=0,a._uy=0,a._pendingPtDist=0,a._version=0}(),s}();function cc(s,a,i,l,c,d,v){if(c===0)return!1;var m=c,w=0,S=s;if(v>a+m&&v>l+m||v<a-m&&v<l-m||d>s+m&&d>i+m||d<s-m&&d<i-m)return!1;if(s!==i)w=(a-l)/(s-i),S=(s*l-i*a)/(s-i);else return Math.abs(d-s)<=m/2;var x=w*d-v+S,E=x*x/(w*w+1);return E<=m/2*m/2}function vF(s,a,i,l,c,d,v,m,w,S,x){if(w===0)return!1;var E=w;if(x>a+E&&x>l+E&&x>d+E&&x>m+E||x<a-E&&x<l-E&&x<d-E&&x<m-E||S>s+E&&S>i+E&&S>c+E&&S>v+E||S<s-E&&S<i-E&&S<c-E&&S<v-E)return!1;var M=zc(s,a,i,l,c,d,v,m,S,x,null);return M<=E/2}function $B(s,a,i,l,c,d,v,m,w){if(v===0)return!1;var S=v;if(w>a+S&&w>l+S&&w>d+S||w<a-S&&w<l-S&&w<d-S||m>s+S&&m>i+S&&m>c+S||m<s-S&&m<i-S&&m<c-S)return!1;var x=nc(s,a,i,l,c,d,m,w,null);return x<=S/2}var cA=Math.PI*2;function Xc(s){return s%=cA,s<0&&(s+=cA),s}var em=Math.PI*2;function pF(s,a,i,l,c,d,v,m,w){if(v===0)return!1;var S=v;m-=s,w-=a;var x=Math.sqrt(m*m+w*w);if(x-S>i||x+S<i)return!1;if(Math.abs(l-c)%em<1e-4)return!0;if(d){var E=l;l=Xc(c),c=Xc(E)}else l=Xc(l),c=Xc(c);l>c&&(c+=em);var M=Math.atan2(w,m);return M<0&&(M+=em),M>=l&&M<=c||M+em>=l&&M+em<=c}function Zh(s,a,i,l,c,d){if(d>a&&d>l||d<a&&d<l||l===a)return 0;var v=(d-a)/(l-a),m=l<a?1:-1;(v===1||v===0)&&(m=l<a?.5:-.5);var w=v*(i-s)+s;return w===c?1/0:w>c?m:0}var Ru=hh.CMD,Dp=Math.PI*2,gF=1e-4;function KB(s,a){return Math.abs(s-a)<gF}var Pu=[-1,-1,-1],ns=[-1,-1];function Ex(){var s=ns[0];ns[0]=ns[1],ns[1]=s}function mF(s,a,i,l,c,d,v,m,w,S){if(S>a&&S>l&&S>d&&S>m||S<a&&S<l&&S<d&&S<m)return 0;var x=Zs(a,l,d,m,S,Pu);if(x===0)return 0;for(var E=0,M=-1,D=void 0,k=void 0,Q=0;Q<x;Q++){var V=Pu[Q],$=V===0||V===1?.5:1,Z=Oa(s,i,c,v,V);Z<w||(M<0&&(M=kh(a,l,d,m,ns),ns[1]<ns[0]&&M>1&&Ex(),D=Oa(a,l,d,m,ns[0]),M>1&&(k=Oa(a,l,d,m,ns[1]))),M===2?V<ns[0]?E+=D<a?$:-$:V<ns[1]?E+=k<D?$:-$:E+=m<k?$:-$:V<ns[0]?E+=D<a?$:-$:E+=m<D?$:-$)}return E}function mv(s,a,i,l,c,d,v,m){if(m>a&&m>l&&m>d||m<a&&m<l&&m<d)return 0;var w=Cf(a,l,d,m,Pu);if(w===0)return 0;var S=mu(a,l,d);if(S>=0&&S<=1){for(var x=0,E=qi(a,l,d,S),M=0;M<w;M++){var D=Pu[M]===0||Pu[M]===1?.5:1,k=qi(s,i,c,Pu[M]);k<v||(Pu[M]<S?x+=E<a?D:-D:x+=d<E?D:-D)}return x}else{var D=Pu[0]===0||Pu[0]===1?.5:1,k=qi(s,i,c,Pu[0]);return k<v?0:d<a?D:-D}}function Gw(s,a,i,l,c,d,v,m){if(m-=a,m>i||m<-i)return 0;var w=Math.sqrt(i*i-m*m);Pu[0]=-w,Pu[1]=w;var S=Math.abs(l-c);if(S<1e-4)return 0;if(S>=Dp-1e-4){l=0,c=Dp;var x=d?1:-1;return v>=Pu[0]+s&&v<=Pu[1]+s?x:0}if(l>c){var E=l;l=c,c=E}l<0&&(l+=Dp,c+=Dp);for(var M=0,D=0;D<2;D++){var k=Pu[D];if(k+s>v){var Q=Math.atan2(m,k),x=d?1:-1;Q<0&&(Q=Dp+Q),(Q>=l&&Q<=c||Q+Dp>=l&&Q+Dp<=c)&&(Q>Math.PI/2&&Q<Math.PI*1.5&&(x=-x),M+=x)}}return M}function Rp(s,a,i,l,c){for(var d=s.data,v=s.len(),m=0,w=0,S=0,x=0,E=0,M,D,k=0;k<v;){var Q=d[k++],V=k===1;switch(Q===Ru.M&&k>1&&(i||(m+=Zh(w,S,x,E,l,c))),V&&(w=d[k],S=d[k+1],x=w,E=S),Q){case Ru.M:x=d[k++],E=d[k++],w=x,S=E;break;case Ru.L:if(i){if(cc(w,S,d[k],d[k+1],a,l,c))return!0}else m+=Zh(w,S,d[k],d[k+1],l,c)||0;w=d[k++],S=d[k++];break;case Ru.C:if(i){if(vF(w,S,d[k++],d[k++],d[k++],d[k++],d[k],d[k+1],a,l,c))return!0}else m+=mF(w,S,d[k++],d[k++],d[k++],d[k++],d[k],d[k+1],l,c)||0;w=d[k++],S=d[k++];break;case Ru.Q:if(i){if($B(w,S,d[k++],d[k++],d[k],d[k+1],a,l,c))return!0}else m+=mv(w,S,d[k++],d[k++],d[k],d[k+1],l,c)||0;w=d[k++],S=d[k++];break;case Ru.A:var $=d[k++],Z=d[k++],ee=d[k++],fe=d[k++],ve=d[k++],ge=d[k++];k+=1;var Se=!!(1-d[k++]);M=Math.cos(ve)*ee+$,D=Math.sin(ve)*fe+Z,V?(x=M,E=D):m+=Zh(w,S,M,D,l,c);var Ee=(l-$)*fe/ee+$;if(i){if(pF($,Z,fe,ve,ve+ge,Se,a,Ee,c))return!0}else m+=Gw($,Z,fe,ve,ve+ge,Se,Ee,c);w=Math.cos(ve+ge)*ee+$,S=Math.sin(ve+ge)*fe+Z;break;case Ru.R:x=w=d[k++],E=S=d[k++];var Ie=d[k++],Le=d[k++];if(M=x+Ie,D=E+Le,i){if(cc(x,E,M,E,a,l,c)||cc(M,E,M,D,a,l,c)||cc(M,D,x,D,a,l,c)||cc(x,D,x,E,a,l,c))return!0}else m+=Zh(M,E,M,D,l,c),m+=Zh(x,D,x,E,l,c);break;case Ru.Z:if(i){if(cc(w,S,x,E,a,l,c))return!0}else m+=Zh(w,S,x,E,l,c);w=x,S=E;break}}return!i&&!KB(S,E)&&(m+=Zh(w,S,x,E,l,c)||0),m!==0}function Bx(s,a,i){return Rp(s,0,!1,a,i)}function Ix(s,a,i,l){return Rp(s,a,!0,i,l)}var tm=he({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},oA),yF={style:he({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Kg.style)},Lx=tt.concat(["invisible","culling","z","z2","zlevel","parent"]),Yn=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype.update=function(){var i=this;s.prototype.update.call(this);var l=this.style;if(l.decal){var c=this._decalEl=this._decalEl||new a;c.buildPath===a.prototype.buildPath&&(c.buildPath=function(w){i.buildPath(w,i.shape)}),c.silent=!0;var d=c.style;for(var v in l)d[v]!==l[v]&&(d[v]=l[v]);d.fill=l.fill?l.decal:null,d.decal=null,d.shadowColor=null,l.strokeFirst&&(d.stroke=null);for(var m=0;m<Lx.length;++m)c[Lx[m]]=this[Lx[m]];c.__dirty|=bi}else this._decalEl&&(this._decalEl=null)},a.prototype.getDecalElement=function(){return this._decalEl},a.prototype._init=function(i){var l=Ne(i);this.shape=this.getDefaultShape();var c=this.getDefaultStyle();c&&this.useStyle(c);for(var d=0;d<l.length;d++){var v=l[d],m=i[v];v==="style"?this.style?ie(this.style,m):this.useStyle(m):v==="shape"?ie(this.shape,m):s.prototype.attrKV.call(this,v,m)}this.style||this.useStyle({})},a.prototype.getDefaultStyle=function(){return null},a.prototype.getDefaultShape=function(){return{}},a.prototype.canBeInsideText=function(){return this.hasFill()},a.prototype.getInsideTextFill=function(){var i=this.style.fill;if(i!=="none"){if(Re(i)){var l=En(i,0);return l>.5?bp:l>.2?Bf:Oy}else if(i)return Oy}return bp},a.prototype.getInsideTextStroke=function(i){var l=this.style.fill;if(Re(l)){var c=this.__zr,d=!!(c&&c.isDarkMode()),v=En(i,0)<Jd;if(d===v)return l}},a.prototype.buildPath=function(i,l,c){},a.prototype.pathUpdated=function(){this.__dirty&=~Pa},a.prototype.getUpdatedPathProxy=function(i){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,i),this.path},a.prototype.createPathProxy=function(){this.path=new hh(!1)},a.prototype.hasStroke=function(){var i=this.style,l=i.stroke;return!(l==null||l==="none"||!(i.lineWidth>0))},a.prototype.hasFill=function(){var i=this.style,l=i.fill;return l!=null&&l!=="none"},a.prototype.getBoundingRect=function(){var i=this._rect,l=this.style,c=!i;if(c){var d=!1;this.path||(d=!0,this.createPathProxy());var v=this.path;(d||this.__dirty&Pa)&&(v.beginPath(),this.buildPath(v,this.shape,!1),this.pathUpdated()),i=v.getBoundingRect()}if(this._rect=i,this.hasStroke()&&this.path&&this.path.len()>0){var m=this._rectStroke||(this._rectStroke=i.clone());if(this.__dirty||c){m.copy(i);var w=l.strokeNoScale?this.getLineScale():1,S=l.lineWidth;if(!this.hasFill()){var x=this.strokeContainThreshold;S=Math.max(S,x??4)}w>1e-10&&(m.width+=S/w,m.height+=S/w,m.x-=S/w/2,m.y-=S/w/2)}return m}return i},a.prototype.contain=function(i,l){var c=this.transformCoordToLocal(i,l),d=this.getBoundingRect(),v=this.style;if(i=c[0],l=c[1],d.contain(i,l)){var m=this.path;if(this.hasStroke()){var w=v.lineWidth,S=v.strokeNoScale?this.getLineScale():1;if(S>1e-10&&(this.hasFill()||(w=Math.max(w,this.strokeContainThreshold)),Ix(m,w/S,i,l)))return!0}if(this.hasFill())return Bx(m,i,l)}return!1},a.prototype.dirtyShape=function(){this.__dirty|=Pa,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},a.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},a.prototype.animateShape=function(i){return this.animate("shape",i)},a.prototype.updateDuringAnimation=function(i){i==="style"?this.dirtyStyle():i==="shape"?this.dirtyShape():this.markRedraw()},a.prototype.attrKV=function(i,l){i==="shape"?this.setShape(l):s.prototype.attrKV.call(this,i,l)},a.prototype.setShape=function(i,l){var c=this.shape;return c||(c=this.shape={}),typeof i=="string"?c[i]=l:ie(c,i),this.dirtyShape(),this},a.prototype.shapeChanged=function(){return!!(this.__dirty&Pa)},a.prototype.createStyle=function(i){return kn(tm,i)},a.prototype._innerSaveToNormal=function(i){s.prototype._innerSaveToNormal.call(this,i);var l=this._normalState;i.shape&&!l.shape&&(l.shape=ie({},this.shape))},a.prototype._applyStateObj=function(i,l,c,d,v,m){s.prototype._applyStateObj.call(this,i,l,c,d,v,m);var w=!(l&&d),S;if(l&&l.shape?v?d?S=l.shape:(S=ie({},c.shape),ie(S,l.shape)):(S=ie({},d?this.shape:c.shape),ie(S,l.shape)):w&&(S=c.shape),S)if(v){this.shape=ie({},this.shape);for(var x={},E=Ne(S),M=0;M<E.length;M++){var D=E[M];typeof S[D]=="object"?this.shape[D]=S[D]:x[D]=S[D]}this._transitionState(i,{shape:x},m)}else this.shape=S,this.dirtyShape()},a.prototype._mergeStates=function(i){for(var l=s.prototype._mergeStates.call(this,i),c,d=0;d<i.length;d++){var v=i[d];v.shape&&(c=c||{},this._mergeStyle(c,v.shape))}return c&&(l.shape=c),l},a.prototype.getAnimationStyleProps=function(){return yF},a.prototype.isZeroArea=function(){return!1},a.extend=function(i){var l=function(d){o(v,d);function v(m){var w=d.call(this,m)||this;return i.init&&i.init.call(w,m),w}return v.prototype.getDefaultStyle=function(){return ae(i.style)},v.prototype.getDefaultShape=function(){return ae(i.shape)},v}(a);for(var c in i)typeof i[c]=="function"&&(l.prototype[c]=i[c]);return l},a.initDefaultProps=function(){var i=a.prototype;i.type="path",i.strokeContainThreshold=5,i.segmentIgnoreThreshold=0,i.subPixelOptimize=!1,i.autoBatch=!1,i.__dirty=bi|lo|Pa}(),a}(en),Mx=he({strokeFirst:!0,font:y,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},tm),Pp=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.hasStroke=function(){var i=this.style,l=i.stroke;return l!=null&&l!=="none"&&i.lineWidth>0},a.prototype.hasFill=function(){var i=this.style,l=i.fill;return l!=null&&l!=="none"},a.prototype.createStyle=function(i){return kn(Mx,i)},a.prototype.setBoundingRect=function(i){this._rect=i},a.prototype.getBoundingRect=function(){var i=this.style;if(!this._rect){var l=i.text;l!=null?l+="":l="";var c=Ot(l,i.font,i.textAlign,i.textBaseline);if(c.x+=i.x||0,c.y+=i.y||0,this.hasStroke()){var d=i.lineWidth;c.x-=d/2,c.y-=d/2,c.width+=d,c.height+=d}this._rect=c}return this._rect},a.initDefaultProps=function(){var i=a.prototype;i.dirtyRectTolerance=10}(),a}(en);Pp.prototype.type="tspan";var Dx=he({x:0,y:0},oA),wF={style:he({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Kg.style)};function Rx(s){return!!(s&&typeof s!="string"&&s.width&&s.height)}var is=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.createStyle=function(i){return kn(Dx,i)},a.prototype._getSize=function(i){var l=this.style,c=l[i];if(c!=null)return c;var d=Rx(l.image)?l.image:this.__image;if(!d)return 0;var v=i==="width"?"height":"width",m=l[v];return m==null?d[i]:d[i]/d[v]*m},a.prototype.getWidth=function(){return this._getSize("width")},a.prototype.getHeight=function(){return this._getSize("height")},a.prototype.getAnimationStyleProps=function(){return wF},a.prototype.getBoundingRect=function(){var i=this.style;return this._rect||(this._rect=new Bn(i.x||0,i.y||0,this.getWidth(),this.getHeight())),this._rect},a}(en);is.prototype.type="image";function bF(s,a){var i=a.x,l=a.y,c=a.width,d=a.height,v=a.r,m,w,S,x;c<0&&(i=i+c,c=-c),d<0&&(l=l+d,d=-d),typeof v=="number"?m=w=S=x=v:v instanceof Array?v.length===1?m=w=S=x=v[0]:v.length===2?(m=S=v[0],w=x=v[1]):v.length===3?(m=v[0],w=x=v[1],S=v[2]):(m=v[0],w=v[1],S=v[2],x=v[3]):m=w=S=x=0;var E;m+w>c&&(E=m+w,m*=c/E,w*=c/E),S+x>c&&(E=S+x,S*=c/E,x*=c/E),w+S>d&&(E=w+S,w*=d/E,S*=d/E),m+x>d&&(E=m+x,m*=d/E,x*=d/E),s.moveTo(i+m,l),s.lineTo(i+c-w,l),w!==0&&s.arc(i+c-w,l+w,w,-Math.PI/2,0),s.lineTo(i+c,l+d-S),S!==0&&s.arc(i+c-S,l+d-S,S,0,Math.PI/2),s.lineTo(i+x,l+d),x!==0&&s.arc(i+x,l+d-x,x,Math.PI/2,Math.PI),s.lineTo(i,l+m),m!==0&&s.arc(i+m,l+m,m,Math.PI,Math.PI*1.5)}var fA=Math.round;function Px(s,a,i){if(a){var l=a.x1,c=a.x2,d=a.y1,v=a.y2;s.x1=l,s.x2=c,s.y1=d,s.y2=v;var m=i&&i.lineWidth;return m&&(fA(l*2)===fA(c*2)&&(s.x1=s.x2=dh(l,m,!0)),fA(d*2)===fA(v*2)&&(s.y1=s.y2=dh(d,m,!0))),s}}function YB(s,a,i){if(a){var l=a.x,c=a.y,d=a.width,v=a.height;s.x=l,s.y=c,s.width=d,s.height=v;var m=i&&i.lineWidth;return m&&(s.x=dh(l,m,!0),s.y=dh(c,m,!0),s.width=Math.max(dh(l+d,m,!1)-s.x,d===0?0:1),s.height=Math.max(dh(c+v,m,!1)-s.y,v===0?0:1)),s}}function dh(s,a,i){if(!a)return s;var l=fA(s*2);return(l+fA(a))%2===0?l/2:(l+(i?1:-1))/2}var _F=function(){function s(){this.x=0,this.y=0,this.width=0,this.height=0}return s}(),jw={},R=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype.getDefaultShape=function(){return new _F},a.prototype.buildPath=function(i,l){var c,d,v,m;if(this.subPixelOptimize){var w=YB(jw,l,this.style);c=w.x,d=w.y,v=w.width,m=w.height,w.r=l.r,l=w}else c=l.x,d=l.y,v=l.width,m=l.height;l.r?bF(i,l):i.rect(c,d,v,m)},a.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},a}(Yn);R.prototype.type="rect";var F={fill:"#000"},W=2,de={style:he({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},Kg.style)},be=function(s){o(a,s);function a(i){var l=s.call(this)||this;return l.type="text",l._children=[],l._defaultStyle=F,l.attr(i),l}return a.prototype.childrenRef=function(){return this._children},a.prototype.update=function(){s.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var i=0;i<this._children.length;i++){var l=this._children[i];l.zlevel=this.zlevel,l.z=this.z,l.z2=this.z2,l.culling=this.culling,l.cursor=this.cursor,l.invisible=this.invisible}},a.prototype.updateTransform=function(){var i=this.innerTransformable;i?(i.updateTransform(),i.transform&&(this.transform=i.transform)):s.prototype.updateTransform.call(this)},a.prototype.getLocalTransform=function(i){var l=this.innerTransformable;return l?l.getLocalTransform(i):s.prototype.getLocalTransform.call(this,i)},a.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),s.prototype.getComputedTransform.call(this)},a.prototype._updateSubTexts=function(){this._childCursor=0,_i(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},a.prototype.addSelfToZr=function(i){s.prototype.addSelfToZr.call(this,i);for(var l=0;l<this._children.length;l++)this._children[l].__zr=i},a.prototype.removeSelfFromZr=function(i){s.prototype.removeSelfFromZr.call(this,i);for(var l=0;l<this._children.length;l++)this._children[l].__zr=null},a.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var i=new Bn(0,0,0,0),l=this._children,c=[],d=null,v=0;v<l.length;v++){var m=l[v],w=m.getBoundingRect(),S=m.getLocalTransform(c);S?(i.copy(w),i.applyTransform(S),d=d||i.clone(),d.union(i)):(d=d||w.clone(),d.union(w))}this._rect=d||i}return this._rect},a.prototype.setDefaultTextStyle=function(i){this._defaultStyle=i||F},a.prototype.setTextContent=function(i){throw new Error("Can't attach text on another text")},a.prototype._mergeStyle=function(i,l){if(!l)return i;var c=l.rich,d=i.rich||c&&{};return ie(i,l),c&&d?(this._mergeRich(d,c),i.rich=d):d&&(i.rich=d),i},a.prototype._mergeRich=function(i,l){for(var c=Ne(l),d=0;d<c.length;d++){var v=c[d];i[v]=i[v]||{},ie(i[v],l[v])}},a.prototype.getAnimationStyleProps=function(){return de},a.prototype._getOrCreateChild=function(i){var l=this._children[this._childCursor];return(!l||!(l instanceof i))&&(l=new i),this._children[this._childCursor++]=l,l.__zr=this.__zr,l.parent=this,l},a.prototype._updatePlainTexts=function(){var i=this.style,l=i.font||y,c=i.padding,d=Kt(i),v=Du(d,i),m=kt(i),w=!!i.backgroundColor,S=v.outerHeight,x=v.outerWidth,E=v.contentWidth,M=v.lines,D=v.lineHeight,k=this._defaultStyle;this.isTruncated=!!v.isTruncated;var Q=i.x||0,V=i.y||0,$=i.align||k.align||"left",Z=i.verticalAlign||k.verticalAlign||"top",ee=Q,fe=rr(V,v.contentHeight,Z);if(m||c){var ve=Gt(Q,x,$),ge=rr(V,S,Z);m&&this._renderBackground(i,i,ve,ge,x,S)}fe+=D/2,c&&(ee=Jn(Q,$,c),Z==="top"?fe+=c[0]:Z==="bottom"&&(fe-=c[2]));for(var Se=0,Ee=!1,Ie=hi("fill"in i?i.fill:(Ee=!0,k.fill)),Le=Pn("stroke"in i?i.stroke:!w&&(!k.autoStroke||Ee)?(Se=W,k.stroke):null),Fe=i.textShadowBlur>0,Je=i.width!=null&&(i.overflow==="truncate"||i.overflow==="break"||i.overflow==="breakAll"),rt=v.calculatedLineHeight,at=0;at<M.length;at++){var dt=this._getOrCreateChild(Pp),wt=dt.createStyle();dt.useStyle(wt),wt.text=M[at],wt.x=ee,wt.y=fe,wt.textAlign=$,wt.textBaseline="middle",wt.opacity=i.opacity,wt.strokeFirst=!0,Fe&&(wt.shadowBlur=i.textShadowBlur||0,wt.shadowColor=i.textShadowColor||"transparent",wt.shadowOffsetX=i.textShadowOffsetX||0,wt.shadowOffsetY=i.textShadowOffsetY||0),wt.stroke=Le,wt.fill=Ie,Le&&(wt.lineWidth=i.lineWidth||Se,wt.lineDash=i.lineDash,wt.lineDashOffset=i.lineDashOffset||0),wt.font=l,Jt(wt,i),fe+=D,Je&&dt.setBoundingRect(new Bn(Gt(wt.x,E,wt.textAlign),rr(wt.y,rt,wt.textBaseline),E,rt))}},a.prototype._updateRichTexts=function(){var i=this.style,l=Kt(i),c=Cx(l,i),d=c.width,v=c.outerWidth,m=c.outerHeight,w=i.padding,S=i.x||0,x=i.y||0,E=this._defaultStyle,M=i.align||E.align,D=i.verticalAlign||E.verticalAlign;this.isTruncated=!!c.isTruncated;var k=Gt(S,v,M),Q=rr(x,m,D),V=k,$=Q;w&&(V+=w[3],$+=w[0]);var Z=V+d;kt(i)&&this._renderBackground(i,i,k,Q,v,m);for(var ee=!!i.backgroundColor,fe=0;fe<c.lines.length;fe++){for(var ve=c.lines[fe],ge=ve.tokens,Se=ge.length,Ee=ve.lineHeight,Ie=ve.width,Le=0,Fe=V,Je=Z,rt=Se-1,at=void 0;Le<Se&&(at=ge[Le],!at.align||at.align==="left");)this._placeToken(at,i,Ee,$,Fe,"left",ee),Ie-=at.width,Fe+=at.width,Le++;for(;rt>=0&&(at=ge[rt],at.align==="right");)this._placeToken(at,i,Ee,$,Je,"right",ee),Ie-=at.width,Je-=at.width,rt--;for(Fe+=(d-(Fe-V)-(Z-Je)-Ie)/2;Le<=rt;)at=ge[Le],this._placeToken(at,i,Ee,$,Fe+at.width/2,"center",ee),Fe+=at.width,Le++;$+=Ee}},a.prototype._placeToken=function(i,l,c,d,v,m,w){var S=l.rich[i.styleName]||{};S.text=i.text;var x=i.verticalAlign,E=d+c/2;x==="top"?E=d+i.height/2:x==="bottom"&&(E=d+c-i.height/2);var M=!i.isLineHolder&&kt(S);M&&this._renderBackground(S,l,m==="right"?v-i.width:m==="center"?v-i.width/2:v,E-i.height/2,i.width,i.height);var D=!!S.backgroundColor,k=i.textPadding;k&&(v=Jn(v,m,k),E-=i.height/2-k[0]-i.innerHeight/2);var Q=this._getOrCreateChild(Pp),V=Q.createStyle();Q.useStyle(V);var $=this._defaultStyle,Z=!1,ee=0,fe=hi("fill"in S?S.fill:"fill"in l?l.fill:(Z=!0,$.fill)),ve=Pn("stroke"in S?S.stroke:"stroke"in l?l.stroke:!D&&!w&&(!$.autoStroke||Z)?(ee=W,$.stroke):null),ge=S.textShadowBlur>0||l.textShadowBlur>0;V.text=i.text,V.x=v,V.y=E,ge&&(V.shadowBlur=S.textShadowBlur||l.textShadowBlur||0,V.shadowColor=S.textShadowColor||l.textShadowColor||"transparent",V.shadowOffsetX=S.textShadowOffsetX||l.textShadowOffsetX||0,V.shadowOffsetY=S.textShadowOffsetY||l.textShadowOffsetY||0),V.textAlign=m,V.textBaseline="middle",V.font=i.font||y,V.opacity=qt(S.opacity,l.opacity,1),Jt(V,S),ve&&(V.lineWidth=qt(S.lineWidth,l.lineWidth,ee),V.lineDash=It(S.lineDash,l.lineDash),V.lineDashOffset=l.lineDashOffset||0,V.stroke=ve),fe&&(V.fill=fe);var Se=i.contentWidth,Ee=i.contentHeight;Q.setBoundingRect(new Bn(Gt(V.x,Se,V.textAlign),rr(V.y,Ee,V.textBaseline),Se,Ee))},a.prototype._renderBackground=function(i,l,c,d,v,m){var w=i.backgroundColor,S=i.borderWidth,x=i.borderColor,E=w&&w.image,M=w&&!E,D=i.borderRadius,k=this,Q,V;if(M||i.lineHeight||S&&x){Q=this._getOrCreateChild(R),Q.useStyle(Q.createStyle()),Q.style.fill=null;var $=Q.shape;$.x=c,$.y=d,$.width=v,$.height=m,$.r=D,Q.dirtyShape()}if(M){var Z=Q.style;Z.fill=w||null,Z.fillOpacity=It(i.fillOpacity,1)}else if(E){V=this._getOrCreateChild(is),V.onload=function(){k.dirtyStyle()};var ee=V.style;ee.image=w.image,ee.x=c,ee.y=d,ee.width=v,ee.height=m}if(S&&x){var Z=Q.style;Z.lineWidth=S,Z.stroke=x,Z.strokeOpacity=It(i.strokeOpacity,1),Z.lineDash=i.borderDash,Z.lineDashOffset=i.borderDashOffset||0,Q.strokeContainThreshold=0,Q.hasFill()&&Q.hasStroke()&&(Z.strokeFirst=!0,Z.lineWidth*=2)}var fe=(Q||V).style;fe.shadowBlur=i.shadowBlur||0,fe.shadowColor=i.shadowColor||"transparent",fe.shadowOffsetX=i.shadowOffsetX||0,fe.shadowOffsetY=i.shadowOffsetY||0,fe.opacity=qt(i.opacity,l.opacity,1)},a.makeFont=function(i){var l="";return dn(i)&&(l=[i.fontStyle,i.fontWeight,Lt(i.fontSize),i.fontFamily||"sans-serif"].join(" ")),l&&br(l)||i.textFont||i.font},a}(en),Oe={left:!0,right:1,center:1},Ke={top:1,bottom:1,middle:1},ct=["fontStyle","fontWeight","fontSize","fontFamily"];function Lt(s){return typeof s=="string"&&(s.indexOf("px")!==-1||s.indexOf("rem")!==-1||s.indexOf("em")!==-1)?s:isNaN(+s)?p+"px":s+"px"}function Jt(s,a){for(var i=0;i<ct.length;i++){var l=ct[i],c=a[l];c!=null&&(s[l]=c)}}function dn(s){return s.fontSize!=null||s.fontFamily||s.fontWeight}function _i(s){return Mr(s),ne(s.rich,Mr),s}function Mr(s){if(s){s.font=be.makeFont(s);var a=s.align;a==="middle"&&(a="center"),s.align=a==null||Oe[a]?a:"left";var i=s.verticalAlign;i==="center"&&(i="middle"),s.verticalAlign=i==null||Ke[i]?i:"top";var l=s.padding;l&&(s.padding=lr(s.padding))}}function Pn(s,a){return s==null||a<=0||s==="transparent"||s==="none"?null:s.image||s.colorStops?"#000":s}function hi(s){return s==null||s==="none"?null:s.image||s.colorStops?"#000":s}function Jn(s,a,i){return a==="right"?s-i[1]:a==="center"?s+i[3]/2-i[1]/2:s+i[3]}function Kt(s){var a=s.text;return a!=null&&(a+=""),a}function kt(s){return!!(s.backgroundColor||s.lineHeight||s.borderWidth&&s.borderColor)}var bt=Ri(),mr=function(s,a,i,l){if(l){var c=bt(l);c.dataIndex=i,c.dataType=a,c.seriesIndex=s,c.ssrType="chart",l.type==="group"&&l.traverse(function(d){var v=bt(d);v.seriesIndex=s,v.dataIndex=i,v.dataType=a,v.ssrType="chart"})}},Sr=1,Si={},Mn=Ri(),mi=Ri(),Gi=0,yi=1,Ah=2,Ou=["emphasis","blur","select"],Ox=["normal","emphasis","blur","select"],qw=10,s4e=9,$y="highlight",XB="downplay",kx="select",ZB="unselect",Fx="toggleSelect";function Ww(s){return s!=null&&s!=="none"}function JB(s,a,i){s.onHoverStateChange&&(s.hoverState||0)!==i&&s.onHoverStateChange(a),s.hoverState=i}function OJ(s){JB(s,"emphasis",Ah)}function kJ(s){s.hoverState===Ah&&JB(s,"normal",Gi)}function SF(s){JB(s,"blur",yi)}function FJ(s){s.hoverState===yi&&JB(s,"normal",Gi)}function l4e(s){s.selected=!0}function u4e(s){s.selected=!1}function NJ(s,a,i){a(s,i)}function Op(s,a,i){NJ(s,a,i),s.isGroup&&s.traverse(function(l){NJ(l,a,i)})}function eI(s,a){switch(a){case"emphasis":s.hoverState=Ah;break;case"normal":s.hoverState=Gi;break;case"blur":s.hoverState=yi;break;case"select":s.selected=!0}}function c4e(s,a,i,l){for(var c=s.style,d={},v=0;v<a.length;v++){var m=a[v],w=c[m];d[m]=w??(l&&l[m])}for(var v=0;v<s.animators.length;v++){var S=s.animators[v];S.__fromStateTransition&&S.__fromStateTransition.indexOf(i)<0&&S.targetName==="style"&&S.saveTo(d,a)}return d}function f4e(s,a,i,l){var c=i&&oe(i,"select")>=0,d=!1;if(s instanceof Yn){var v=Mn(s),m=c&&v.selectFill||v.normalFill,w=c&&v.selectStroke||v.normalStroke;if(Ww(m)||Ww(w)){l=l||{};var S=l.style||{};S.fill==="inherit"?(d=!0,l=ie({},l),S=ie({},S),S.fill=m):!Ww(S.fill)&&Ww(m)?(d=!0,l=ie({},l),S=ie({},S),S.fill=$r(m)):!Ww(S.stroke)&&Ww(w)&&(d||(l=ie({},l),S=ie({},S)),S.stroke=$r(w)),l.style=S}}if(l&&l.z2==null){d||(l=ie({},l));var x=s.z2EmphasisLift;l.z2=s.z2+(x??qw)}return l}function h4e(s,a,i){if(i&&i.z2==null){i=ie({},i);var l=s.z2SelectLift;i.z2=s.z2+(l??s4e)}return i}function d4e(s,a,i){var l=oe(s.currentStates,a)>=0,c=s.style.opacity,d=l?null:c4e(s,["opacity"],a,{opacity:1});i=i||{};var v=i.style||{};return v.opacity==null&&(i=ie({},i),v=ie({opacity:l?c:d.opacity*.1},v),i.style=v),i}function xF(s,a){var i=this.states[s];if(this.style){if(s==="emphasis")return f4e(this,s,a,i);if(s==="blur")return d4e(this,s,i);if(s==="select")return h4e(this,s,i)}return i}function Ky(s){s.stateProxy=xF;var a=s.getTextContent(),i=s.getTextGuideLine();a&&(a.stateProxy=xF),i&&(i.stateProxy=xF)}function UJ(s,a){!GJ(s,a)&&!s.__highByOuter&&Op(s,OJ)}function HJ(s,a){!GJ(s,a)&&!s.__highByOuter&&Op(s,kJ)}function kp(s,a){s.__highByOuter|=1<<(a||0),Op(s,OJ)}function Fp(s,a){!(s.__highByOuter&=~(1<<(a||0)))&&Op(s,kJ)}function QJ(s){Op(s,SF)}function CF(s){Op(s,FJ)}function VJ(s){Op(s,l4e)}function zJ(s){Op(s,u4e)}function GJ(s,a){return s.__highDownSilentOnTouch&&a.zrByTouch}function jJ(s){var a=s.getModel(),i=[],l=[];a.eachComponent(function(c,d){var v=mi(d),m=c==="series",w=m?s.getViewOfSeriesModel(d):s.getViewOfComponentModel(d);!m&&l.push(w),v.isBlured&&(w.group.traverse(function(S){FJ(S)}),m&&i.push(d)),v.isBlured=!1}),ne(l,function(c){c&&c.toggleBlurSeries&&c.toggleBlurSeries(i,!1,a)})}function TF(s,a,i,l){var c=l.getModel();i=i||"coordinateSystem";function d(S,x){for(var E=0;E<x.length;E++){var M=S.getItemGraphicEl(x[E]);M&&CF(M)}}if(s!=null&&!(!a||a==="none")){var v=c.getSeriesByIndex(s),m=v.coordinateSystem;m&&m.master&&(m=m.master);var w=[];c.eachSeries(function(S){var x=v===S,E=S.coordinateSystem;E&&E.master&&(E=E.master);var M=E&&m?E===m:x;if(!(i==="series"&&!x||i==="coordinateSystem"&&!M||a==="series"&&x)){var D=l.getViewOfSeriesModel(S);if(D.group.traverse(function(V){V.__highByOuter&&x&&a==="self"||SF(V)}),Ce(a))d(S.getData(),a);else if(Pe(a))for(var k=Ne(a),Q=0;Q<k.length;Q++)d(S.getData(k[Q]),a[k[Q]]);w.push(S),mi(S).isBlured=!0}}),c.eachComponent(function(S,x){if(S!=="series"){var E=l.getViewOfComponentModel(x);E&&E.toggleBlurSeries&&E.toggleBlurSeries(w,!0,c)}})}}function EF(s,a,i){if(!(s==null||a==null)){var l=i.getModel().getComponent(s,a);if(l){mi(l).isBlured=!0;var c=i.getViewOfComponentModel(l);!c||!c.focusBlurEnabled||c.group.traverse(function(d){SF(d)})}}}function A4e(s,a,i){var l=s.seriesIndex,c=s.getData(a.dataType);if(!c){rs("Unknown dataType "+a.dataType);return}var d=iA(c,a);d=(Qe(d)?d[0]:d)||0;var v=c.getItemGraphicEl(d);if(!v)for(var m=c.count(),w=0;!v&&w<m;)v=c.getItemGraphicEl(w++);if(v){var S=bt(v);TF(l,S.focus,S.blurScope,i)}else{var x=s.get(["emphasis","focus"]),E=s.get(["emphasis","blurScope"]);x!=null&&TF(l,x,E,i)}}function BF(s,a,i,l){var c={focusSelf:!1,dispatchers:null};if(s==null||s==="series"||a==null||i==null)return c;var d=l.getModel().getComponent(s,a);if(!d)return c;var v=l.getViewOfComponentModel(d);if(!v||!v.findHighDownDispatchers)return c;for(var m=v.findHighDownDispatchers(i),w,S=0;S<m.length;S++)if(nm(m[S])||rs("param should be highDownDispatcher"),bt(m[S]).focus==="self"){w=!0;break}return{focusSelf:w,dispatchers:m}}function v4e(s,a,i){nm(s)||rs("param should be highDownDispatcher");var l=bt(s),c=BF(l.componentMainType,l.componentIndex,l.componentHighDownName,i),d=c.dispatchers,v=c.focusSelf;d?(v&&EF(l.componentMainType,l.componentIndex,i),ne(d,function(m){return UJ(m,a)})):(TF(l.seriesIndex,l.focus,l.blurScope,i),l.focus==="self"&&EF(l.componentMainType,l.componentIndex,i),UJ(s,a))}function p4e(s,a,i){nm(s)||rs("param should be highDownDispatcher"),jJ(i);var l=bt(s),c=BF(l.componentMainType,l.componentIndex,l.componentHighDownName,i).dispatchers;c?ne(c,function(d){return HJ(d,a)}):HJ(s,a)}function g4e(s,a,i){if(LF(a)){var l=a.dataType,c=s.getData(l),d=iA(c,a);Qe(d)||(d=[d]),s[a.type===Fx?"toggleSelect":a.type===kx?"select":"unselect"](d,l)}}function qJ(s){var a=s.getAllData();ne(a,function(i){var l=i.data,c=i.type;l.eachItemGraphicEl(function(d,v){s.isSelected(v,c)?VJ(d):zJ(d)})})}function m4e(s){var a=[];return s.eachSeries(function(i){var l=i.getAllData();ne(l,function(c){c.data;var d=c.type,v=i.getSelectedDataIndices();if(v.length>0){var m={dataIndex:v,seriesIndex:i.seriesIndex};d!=null&&(m.dataType=d),a.push(m)}})}),a}function rm(s,a,i){Yy(s,!0),Op(s,Ky),IF(s,a,i)}function y4e(s){Yy(s,!1)}function as(s,a,i,l){l?y4e(s):rm(s,a,i)}function IF(s,a,i){var l=bt(s);a!=null?(l.focus=a,l.blurScope=i):l.focus&&(l.focus=null)}var WJ=["emphasis","blur","select"],w4e={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ku(s,a,i,l){i=i||"itemStyle";for(var c=0;c<WJ.length;c++){var d=WJ[c],v=a.getModel([d,i]),m=s.ensureState(d);m.style=l?l(v):v[w4e[i]]()}}function Yy(s,a){var i=a===!1,l=s;s.highDownSilentOnTouch&&(l.__highDownSilentOnTouch=s.highDownSilentOnTouch),(!i||l.__highDownDispatcher)&&(l.__highByOuter=l.__highByOuter||0,l.__highDownDispatcher=!i)}function nm(s){return!!(s&&s.__highDownDispatcher)}function b4e(s,a,i){var l=bt(s);l.componentMainType=a.mainType,l.componentIndex=a.componentIndex,l.componentHighDownName=i}function _4e(s){var a=Si[s];return a==null&&Sr<=32&&(a=Si[s]=Sr++),a}function LF(s){var a=s.type;return a===kx||a===ZB||a===Fx}function $J(s){var a=s.type;return a===$y||a===XB}function S4e(s){var a=Mn(s);a.normalFill=s.style.fill,a.normalStroke=s.style.stroke;var i=s.states.select||{};a.selectFill=i.style&&i.style.fill||null,a.selectStroke=i.style&&i.style.stroke||null}var $w=hh.CMD,x4e=[[],[],[]],KJ=Math.sqrt,C4e=Math.atan2;function YJ(s,a){if(a){var i=s.data,l=s.len(),c,d,v,m,w,S,x=$w.M,E=$w.C,M=$w.L,D=$w.R,k=$w.A,Q=$w.Q;for(v=0,m=0;v<l;){switch(c=i[v++],m=v,d=0,c){case x:d=1;break;case M:d=1;break;case E:d=3;break;case Q:d=2;break;case k:var V=a[4],$=a[5],Z=KJ(a[0]*a[0]+a[1]*a[1]),ee=KJ(a[2]*a[2]+a[3]*a[3]),fe=C4e(-a[1]/ee,a[0]/Z);i[v]*=Z,i[v++]+=V,i[v]*=ee,i[v++]+=$,i[v++]*=Z,i[v++]*=ee,i[v++]+=fe,i[v++]+=fe,v+=2,m=v;break;case D:S[0]=i[v++],S[1]=i[v++],Tn(S,S,a),i[m++]=S[0],i[m++]=S[1],S[0]+=i[v++],S[1]+=i[v++],Tn(S,S,a),i[m++]=S[0],i[m++]=S[1]}for(w=0;w<d;w++){var ve=x4e[w];ve[0]=i[v++],ve[1]=i[v++],Tn(ve,ve,a),i[m++]=ve[0],i[m++]=ve[1]}}s.increaseVersion()}}var MF=Math.sqrt,tI=Math.sin,rI=Math.cos,Nx=Math.PI;function XJ(s){return Math.sqrt(s[0]*s[0]+s[1]*s[1])}function DF(s,a){return(s[0]*a[0]+s[1]*a[1])/(XJ(s)*XJ(a))}function ZJ(s,a){return(s[0]*a[1]<s[1]*a[0]?-1:1)*Math.acos(DF(s,a))}function JJ(s,a,i,l,c,d,v,m,w,S,x){var E=w*(Nx/180),M=rI(E)*(s-i)/2+tI(E)*(a-l)/2,D=-1*tI(E)*(s-i)/2+rI(E)*(a-l)/2,k=M*M/(v*v)+D*D/(m*m);k>1&&(v*=MF(k),m*=MF(k));var Q=(c===d?-1:1)*MF((v*v*(m*m)-v*v*(D*D)-m*m*(M*M))/(v*v*(D*D)+m*m*(M*M)))||0,V=Q*v*D/m,$=Q*-m*M/v,Z=(s+i)/2+rI(E)*V-tI(E)*$,ee=(a+l)/2+tI(E)*V+rI(E)*$,fe=ZJ([1,0],[(M-V)/v,(D-$)/m]),ve=[(M-V)/v,(D-$)/m],ge=[(-1*M-V)/v,(-1*D-$)/m],Se=ZJ(ve,ge);if(DF(ve,ge)<=-1&&(Se=Nx),DF(ve,ge)>=1&&(Se=0),Se<0){var Ee=Math.round(Se/Nx*1e6)/1e6;Se=Nx*2+Ee%2*Nx}x.addData(S,Z,ee,v,m,fe,Se,E,d)}var T4e=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,E4e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function B4e(s){var a=new hh;if(!s)return a;var i=0,l=0,c=i,d=l,v,m=hh.CMD,w=s.match(T4e);if(!w)return a;for(var S=0;S<w.length;S++){for(var x=w[S],E=x.charAt(0),M=void 0,D=x.match(E4e)||[],k=D.length,Q=0;Q<k;Q++)D[Q]=parseFloat(D[Q]);for(var V=0;V<k;){var $=void 0,Z=void 0,ee=void 0,fe=void 0,ve=void 0,ge=void 0,Se=void 0,Ee=i,Ie=l,Le=void 0,Fe=void 0;switch(E){case"l":i+=D[V++],l+=D[V++],M=m.L,a.addData(M,i,l);break;case"L":i=D[V++],l=D[V++],M=m.L,a.addData(M,i,l);break;case"m":i+=D[V++],l+=D[V++],M=m.M,a.addData(M,i,l),c=i,d=l,E="l";break;case"M":i=D[V++],l=D[V++],M=m.M,a.addData(M,i,l),c=i,d=l,E="L";break;case"h":i+=D[V++],M=m.L,a.addData(M,i,l);break;case"H":i=D[V++],M=m.L,a.addData(M,i,l);break;case"v":l+=D[V++],M=m.L,a.addData(M,i,l);break;case"V":l=D[V++],M=m.L,a.addData(M,i,l);break;case"C":M=m.C,a.addData(M,D[V++],D[V++],D[V++],D[V++],D[V++],D[V++]),i=D[V-2],l=D[V-1];break;case"c":M=m.C,a.addData(M,D[V++]+i,D[V++]+l,D[V++]+i,D[V++]+l,D[V++]+i,D[V++]+l),i+=D[V-2],l+=D[V-1];break;case"S":$=i,Z=l,Le=a.len(),Fe=a.data,v===m.C&&($+=i-Fe[Le-4],Z+=l-Fe[Le-3]),M=m.C,Ee=D[V++],Ie=D[V++],i=D[V++],l=D[V++],a.addData(M,$,Z,Ee,Ie,i,l);break;case"s":$=i,Z=l,Le=a.len(),Fe=a.data,v===m.C&&($+=i-Fe[Le-4],Z+=l-Fe[Le-3]),M=m.C,Ee=i+D[V++],Ie=l+D[V++],i+=D[V++],l+=D[V++],a.addData(M,$,Z,Ee,Ie,i,l);break;case"Q":Ee=D[V++],Ie=D[V++],i=D[V++],l=D[V++],M=m.Q,a.addData(M,Ee,Ie,i,l);break;case"q":Ee=D[V++]+i,Ie=D[V++]+l,i+=D[V++],l+=D[V++],M=m.Q,a.addData(M,Ee,Ie,i,l);break;case"T":$=i,Z=l,Le=a.len(),Fe=a.data,v===m.Q&&($+=i-Fe[Le-4],Z+=l-Fe[Le-3]),i=D[V++],l=D[V++],M=m.Q,a.addData(M,$,Z,i,l);break;case"t":$=i,Z=l,Le=a.len(),Fe=a.data,v===m.Q&&($+=i-Fe[Le-4],Z+=l-Fe[Le-3]),i+=D[V++],l+=D[V++],M=m.Q,a.addData(M,$,Z,i,l);break;case"A":ee=D[V++],fe=D[V++],ve=D[V++],ge=D[V++],Se=D[V++],Ee=i,Ie=l,i=D[V++],l=D[V++],M=m.A,JJ(Ee,Ie,i,l,ge,Se,ee,fe,ve,M,a);break;case"a":ee=D[V++],fe=D[V++],ve=D[V++],ge=D[V++],Se=D[V++],Ee=i,Ie=l,i+=D[V++],l+=D[V++],M=m.A,JJ(Ee,Ie,i,l,ge,Se,ee,fe,ve,M,a);break}}(E==="z"||E==="Z")&&(M=m.Z,a.addData(M),i=c,l=d),v=M}return a.toStatic(),a}var eee=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.applyTransform=function(i){},a}(Yn);function tee(s){return s.setData!=null}function ree(s,a){var i=B4e(s),l=ie({},a);return l.buildPath=function(c){if(tee(c)){c.setData(i.data);var d=c.getContext();d&&c.rebuildPath(d,1)}else{var d=c;i.rebuildPath(d,1)}},l.applyTransform=function(c){YJ(i,c),this.dirtyShape()},l}function nee(s,a){return new eee(ree(s,a))}function I4e(s,a){var i=ree(s,a),l=function(c){o(d,c);function d(v){var m=c.call(this,v)||this;return m.applyTransform=i.applyTransform,m.buildPath=i.buildPath,m}return d}(eee);return l}function L4e(s,a){for(var i=[],l=s.length,c=0;c<l;c++){var d=s[c];i.push(d.getUpdatedPathProxy(!0))}var v=new Yn(a);return v.createPathProxy(),v.buildPath=function(m){if(tee(m)){m.appendPath(i);var w=m.getContext();w&&m.rebuildPath(w,1)}},v}function RF(s,a){a=a||{};var i=new Yn;return s.shape&&i.setShape(s.shape),i.setStyle(s.style),a.bakeTransform?YJ(i.path,s.getComputedTransform()):a.toLocal?i.setLocalTransform(s.getComputedTransform()):i.copyTransform(s),i.buildPath=s.buildPath,i.applyTransform=i.applyTransform,i.z=s.z,i.z2=s.z2,i.zlevel=s.zlevel,i}var M4e=function(){function s(){this.cx=0,this.cy=0,this.r=0}return s}(),yv=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype.getDefaultShape=function(){return new M4e},a.prototype.buildPath=function(i,l){i.moveTo(l.cx+l.r,l.cy),i.arc(l.cx,l.cy,l.r,0,Math.PI*2)},a}(Yn);yv.prototype.type="circle";var D4e=function(){function s(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return s}(),Ux=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype.getDefaultShape=function(){return new D4e},a.prototype.buildPath=function(i,l){var c=.5522848,d=l.cx,v=l.cy,m=l.rx,w=l.ry,S=m*c,x=w*c;i.moveTo(d-m,v),i.bezierCurveTo(d-m,v-x,d-S,v-w,d,v-w),i.bezierCurveTo(d+S,v-w,d+m,v-x,d+m,v),i.bezierCurveTo(d+m,v+x,d+S,v+w,d,v+w),i.bezierCurveTo(d-S,v+w,d-m,v+x,d-m,v),i.closePath()},a}(Yn);Ux.prototype.type="ellipse";var iee=Math.PI,PF=iee*2,Xy=Math.sin,Kw=Math.cos,R4e=Math.acos,fc=Math.atan2,aee=Math.abs,Hx=Math.sqrt,Qx=Math.max,wv=Math.min,hA=1e-4;function P4e(s,a,i,l,c,d,v,m){var w=i-s,S=l-a,x=v-c,E=m-d,M=E*w-x*S;if(!(M*M<hA))return M=(x*(a-d)-E*(s-c))/M,[s+M*w,a+M*S]}function nI(s,a,i,l,c,d,v){var m=s-i,w=a-l,S=(v?d:-d)/Hx(m*m+w*w),x=S*w,E=-S*m,M=s+x,D=a+E,k=i+x,Q=l+E,V=(M+k)/2,$=(D+Q)/2,Z=k-M,ee=Q-D,fe=Z*Z+ee*ee,ve=c-d,ge=M*Q-k*D,Se=(ee<0?-1:1)*Hx(Qx(0,ve*ve*fe-ge*ge)),Ee=(ge*ee-Z*Se)/fe,Ie=(-ge*Z-ee*Se)/fe,Le=(ge*ee+Z*Se)/fe,Fe=(-ge*Z+ee*Se)/fe,Je=Ee-V,rt=Ie-$,at=Le-V,dt=Fe-$;return Je*Je+rt*rt>at*at+dt*dt&&(Ee=Le,Ie=Fe),{cx:Ee,cy:Ie,x0:-x,y0:-E,x1:Ee*(c/ve-1),y1:Ie*(c/ve-1)}}function O4e(s){var a;if(Qe(s)){var i=s.length;if(!i)return s;i===1?a=[s[0],s[0],0,0]:i===2?a=[s[0],s[0],s[1],s[1]]:i===3?a=s.concat(s[2]):a=s}else a=[s,s,s,s];return a}function k4e(s,a){var i,l=Qx(a.r,0),c=Qx(a.r0||0,0),d=l>0,v=c>0;if(!(!d&&!v)){if(d||(l=c,c=0),c>l){var m=l;l=c,c=m}var w=a.startAngle,S=a.endAngle;if(!(isNaN(w)||isNaN(S))){var x=a.cx,E=a.cy,M=!!a.clockwise,D=aee(S-w),k=D>PF&&D%PF;if(k>hA&&(D=k),!(l>hA))s.moveTo(x,E);else if(D>PF-hA)s.moveTo(x+l*Kw(w),E+l*Xy(w)),s.arc(x,E,l,w,S,!M),c>hA&&(s.moveTo(x+c*Kw(S),E+c*Xy(S)),s.arc(x,E,c,S,w,M));else{var Q=void 0,V=void 0,$=void 0,Z=void 0,ee=void 0,fe=void 0,ve=void 0,ge=void 0,Se=void 0,Ee=void 0,Ie=void 0,Le=void 0,Fe=void 0,Je=void 0,rt=void 0,at=void 0,dt=l*Kw(w),wt=l*Xy(w),zt=c*Kw(S),Ut=c*Xy(S),Yt=D>hA;if(Yt){var ur=a.cornerRadius;ur&&(i=O4e(ur),Q=i[0],V=i[1],$=i[2],Z=i[3]);var wr=aee(l-c)/2;if(ee=wv(wr,$),fe=wv(wr,Z),ve=wv(wr,Q),ge=wv(wr,V),Ie=Se=Qx(ee,fe),Le=Ee=Qx(ve,ge),(Se>hA||Ee>hA)&&(Fe=l*Kw(S),Je=l*Xy(S),rt=c*Kw(w),at=c*Xy(w),D<iee)){var Or=P4e(dt,wt,rt,at,Fe,Je,zt,Ut);if(Or){var vn=dt-Or[0],wn=wt-Or[1],Un=Fe-Or[0],Ha=Je-Or[1],Cs=1/Xy(R4e((vn*Un+wn*Ha)/(Hx(vn*vn+wn*wn)*Hx(Un*Un+Ha*Ha)))/2),ei=Hx(Or[0]*Or[0]+Or[1]*Or[1]);Ie=wv(Se,(l-ei)/(Cs+1)),Le=wv(Ee,(c-ei)/(Cs-1))}}}if(!Yt)s.moveTo(x+dt,E+wt);else if(Ie>hA){var Cn=wv($,Ie),di=wv(Z,Ie),tn=nI(rt,at,dt,wt,l,Cn,M),Hn=nI(Fe,Je,zt,Ut,l,di,M);s.moveTo(x+tn.cx+tn.x0,E+tn.cy+tn.y0),Ie<Se&&Cn===di?s.arc(x+tn.cx,E+tn.cy,Ie,fc(tn.y0,tn.x0),fc(Hn.y0,Hn.x0),!M):(Cn>0&&s.arc(x+tn.cx,E+tn.cy,Cn,fc(tn.y0,tn.x0),fc(tn.y1,tn.x1),!M),s.arc(x,E,l,fc(tn.cy+tn.y1,tn.cx+tn.x1),fc(Hn.cy+Hn.y1,Hn.cx+Hn.x1),!M),di>0&&s.arc(x+Hn.cx,E+Hn.cy,di,fc(Hn.y1,Hn.x1),fc(Hn.y0,Hn.x0),!M))}else s.moveTo(x+dt,E+wt),s.arc(x,E,l,w,S,!M);if(!(c>hA)||!Yt)s.lineTo(x+zt,E+Ut);else if(Le>hA){var Cn=wv(Q,Le),di=wv(V,Le),tn=nI(zt,Ut,Fe,Je,c,-di,M),Hn=nI(dt,wt,rt,at,c,-Cn,M);s.lineTo(x+tn.cx+tn.x0,E+tn.cy+tn.y0),Le<Ee&&Cn===di?s.arc(x+tn.cx,E+tn.cy,Le,fc(tn.y0,tn.x0),fc(Hn.y0,Hn.x0),!M):(di>0&&s.arc(x+tn.cx,E+tn.cy,di,fc(tn.y0,tn.x0),fc(tn.y1,tn.x1),!M),s.arc(x,E,c,fc(tn.cy+tn.y1,tn.cx+tn.x1),fc(Hn.cy+Hn.y1,Hn.cx+Hn.x1),M),Cn>0&&s.arc(x+Hn.cx,E+Hn.cy,Cn,fc(Hn.y1,Hn.x1),fc(Hn.y0,Hn.x0),!M))}else s.lineTo(x+zt,E+Ut),s.arc(x,E,c,S,w,M)}s.closePath()}}}var F4e=function(){function s(){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 s}(),hc=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype.getDefaultShape=function(){return new F4e},a.prototype.buildPath=function(i,l){k4e(i,l)},a.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},a}(Yn);hc.prototype.type="sector";var N4e=function(){function s(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return s}(),Yw=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype.getDefaultShape=function(){return new N4e},a.prototype.buildPath=function(i,l){var c=l.cx,d=l.cy,v=Math.PI*2;i.moveTo(c+l.r,d),i.arc(c,d,l.r,0,v,!1),i.moveTo(c+l.r0,d),i.arc(c,d,l.r0,0,v,!0)},a}(Yn);Yw.prototype.type="ring";function U4e(s,a,i,l){var c=[],d=[],v=[],m=[],w,S,x,E;if(l){x=[1/0,1/0],E=[-1/0,-1/0];for(var M=0,D=s.length;M<D;M++)Mi(x,x,s[M]),Ka(E,E,s[M]);Mi(x,x,l[0]),Ka(E,E,l[1])}for(var M=0,D=s.length;M<D;M++){var k=s[M];if(i)w=s[M?M-1:D-1],S=s[(M+1)%D];else if(M===0||M===D-1){c.push(mt(s[M]));continue}else w=s[M-1],S=s[M+1];Pr(d,S,w),_r(d,d,a);var Q=or(k,w),V=or(k,S),$=Q+V;$!==0&&(Q/=$,V/=$),_r(v,d,-Q),_r(m,d,V);var Z=nr([],k,v),ee=nr([],k,m);l&&(Ka(Z,Z,x),Mi(Z,Z,E),Ka(ee,ee,x),Mi(ee,ee,E)),c.push(Z),c.push(ee)}return i&&c.push(c.shift()),c}function oee(s,a,i){var l=a.smooth,c=a.points;if(c&&c.length>=2){if(l){var d=U4e(c,l,i,a.smoothConstraint);s.moveTo(c[0][0],c[0][1]);for(var v=c.length,m=0;m<(i?v:v-1);m++){var w=d[m*2],S=d[m*2+1],x=c[(m+1)%v];s.bezierCurveTo(w[0],w[1],S[0],S[1],x[0],x[1])}}else{s.moveTo(c[0][0],c[0][1]);for(var m=1,E=c.length;m<E;m++)s.lineTo(c[m][0],c[m][1])}i&&s.closePath()}}var H4e=function(){function s(){this.points=null,this.smooth=0,this.smoothConstraint=null}return s}(),dc=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype.getDefaultShape=function(){return new H4e},a.prototype.buildPath=function(i,l){oee(i,l,!0)},a}(Yn);dc.prototype.type="polygon";var Q4e=function(){function s(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return s}(),Ac=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},a.prototype.getDefaultShape=function(){return new Q4e},a.prototype.buildPath=function(i,l){oee(i,l,!1)},a}(Yn);Ac.prototype.type="polyline";var V4e={},z4e=function(){function s(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return s}(),Ll=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},a.prototype.getDefaultShape=function(){return new z4e},a.prototype.buildPath=function(i,l){var c,d,v,m;if(this.subPixelOptimize){var w=Px(V4e,l,this.style);c=w.x1,d=w.y1,v=w.x2,m=w.y2}else c=l.x1,d=l.y1,v=l.x2,m=l.y2;var S=l.percent;S!==0&&(i.moveTo(c,d),S<1&&(v=c*(1-S)+v*S,m=d*(1-S)+m*S),i.lineTo(v,m))},a.prototype.pointAt=function(i){var l=this.shape;return[l.x1*(1-i)+l.x2*i,l.y1*(1-i)+l.y2*i]},a}(Yn);Ll.prototype.type="line";var Df=[],G4e=function(){function s(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return s}();function see(s,a,i){var l=s.cpx2,c=s.cpy2;return l!=null||c!=null?[(i?uo:Oa)(s.x1,s.cpx1,s.cpx2,s.x2,a),(i?uo:Oa)(s.y1,s.cpy1,s.cpy2,s.y2,a)]:[(i?Ds:qi)(s.x1,s.cpx1,s.x2,a),(i?Ds:qi)(s.y1,s.cpy1,s.y2,a)]}var Xw=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},a.prototype.getDefaultShape=function(){return new G4e},a.prototype.buildPath=function(i,l){var c=l.x1,d=l.y1,v=l.x2,m=l.y2,w=l.cpx1,S=l.cpy1,x=l.cpx2,E=l.cpy2,M=l.percent;M!==0&&(i.moveTo(c,d),x==null||E==null?(M<1&&($l(c,w,v,M,Df),w=Df[1],v=Df[2],$l(d,S,m,M,Df),S=Df[1],m=Df[2]),i.quadraticCurveTo(w,S,v,m)):(M<1&&(gu(c,w,x,v,M,Df),w=Df[1],x=Df[2],v=Df[3],gu(d,S,E,m,M,Df),S=Df[1],E=Df[2],m=Df[3]),i.bezierCurveTo(w,S,x,E,v,m)))},a.prototype.pointAt=function(i){return see(this.shape,i,!1)},a.prototype.tangentAt=function(i){var l=see(this.shape,i,!0);return pt(l,l)},a}(Yn);Xw.prototype.type="bezier-curve";var j4e=function(){function s(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return s}(),Vx=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},a.prototype.getDefaultShape=function(){return new j4e},a.prototype.buildPath=function(i,l){var c=l.cx,d=l.cy,v=Math.max(l.r,0),m=l.startAngle,w=l.endAngle,S=l.clockwise,x=Math.cos(m),E=Math.sin(m);i.moveTo(x*v+c,E*v+d),i.arc(c,d,v,m,w,!S)},a}(Yn);Vx.prototype.type="arc";var iI=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type="compound",i}return a.prototype._updatePathDirty=function(){for(var i=this.shape.paths,l=this.shapeChanged(),c=0;c<i.length;c++)l=l||i[c].shapeChanged();l&&this.dirtyShape()},a.prototype.beforeBrush=function(){this._updatePathDirty();for(var i=this.shape.paths||[],l=this.getGlobalScale(),c=0;c<i.length;c++)i[c].path||i[c].createPathProxy(),i[c].path.setScale(l[0],l[1],i[c].segmentIgnoreThreshold)},a.prototype.buildPath=function(i,l){for(var c=l.paths||[],d=0;d<c.length;d++)c[d].buildPath(i,c[d].shape,!0)},a.prototype.afterBrush=function(){for(var i=this.shape.paths||[],l=0;l<i.length;l++)i[l].pathUpdated()},a.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Yn.prototype.getBoundingRect.call(this)},a}(Yn),lee=function(){function s(a){this.colorStops=a||[]}return s.prototype.addColorStop=function(a,i){this.colorStops.push({offset:a,color:i})},s}(),Zw=function(s){o(a,s);function a(i,l,c,d,v,m){var w=s.call(this,v)||this;return w.x=i??0,w.y=l??0,w.x2=c??1,w.y2=d??0,w.type="linear",w.global=m||!1,w}return a}(lee),OF=function(s){o(a,s);function a(i,l,c,d,v){var m=s.call(this,d)||this;return m.x=i??.5,m.y=l??.5,m.r=c??.5,m.type="radial",m.global=v||!1,m}return a}(lee),Zy=[0,0],Jy=[0,0],aI=new xn,oI=new xn,sI=function(){function s(a,i){this._corners=[],this._axes=[],this._origin=[0,0];for(var l=0;l<4;l++)this._corners[l]=new xn;for(var l=0;l<2;l++)this._axes[l]=new xn;a&&this.fromBoundingRect(a,i)}return s.prototype.fromBoundingRect=function(a,i){var l=this._corners,c=this._axes,d=a.x,v=a.y,m=d+a.width,w=v+a.height;if(l[0].set(d,v),l[1].set(m,v),l[2].set(m,w),l[3].set(d,w),i)for(var S=0;S<4;S++)l[S].transform(i);xn.sub(c[0],l[1],l[0]),xn.sub(c[1],l[3],l[0]),c[0].normalize(),c[1].normalize();for(var S=0;S<2;S++)this._origin[S]=c[S].dot(l[0])},s.prototype.intersect=function(a,i){var l=!0,c=!i;return aI.set(1/0,1/0),oI.set(0,0),!this._intersectCheckOneSide(this,a,aI,oI,c,1)&&(l=!1,c)||!this._intersectCheckOneSide(a,this,aI,oI,c,-1)&&(l=!1,c)||c||xn.copy(i,l?aI:oI),l},s.prototype._intersectCheckOneSide=function(a,i,l,c,d,v){for(var m=!0,w=0;w<2;w++){var S=this._axes[w];if(this._getProjMinMaxOnAxis(w,a._corners,Zy),this._getProjMinMaxOnAxis(w,i._corners,Jy),Zy[1]<Jy[0]||Zy[0]>Jy[1]){if(m=!1,d)return m;var x=Math.abs(Jy[0]-Zy[1]),E=Math.abs(Zy[0]-Jy[1]);Math.min(x,E)>c.len()&&(x<E?xn.scale(c,S,-x*v):xn.scale(c,S,E*v))}else if(l){var x=Math.abs(Jy[0]-Zy[1]),E=Math.abs(Zy[0]-Jy[1]);Math.min(x,E)<l.len()&&(x<E?xn.scale(l,S,x*v):xn.scale(l,S,-E*v))}}return m},s.prototype._getProjMinMaxOnAxis=function(a,i,l){for(var c=this._axes[a],d=this._origin,v=i[0].dot(c)+d[a],m=v,w=v,S=1;S<i.length;S++){var x=i[S].dot(c)+d[a];m=Math.min(x,m),w=Math.max(x,w)}l[0]=m,l[1]=w},s}(),q4e=[],uee=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.notClear=!0,i.incremental=!0,i._displayables=[],i._temporaryDisplayables=[],i._cursor=0,i}return a.prototype.traverse=function(i,l){i.call(l,this)},a.prototype.useStyle=function(){this.style={}},a.prototype.getCursor=function(){return this._cursor},a.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},a.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},a.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},a.prototype.addDisplayable=function(i,l){l?this._temporaryDisplayables.push(i):this._displayables.push(i),this.markRedraw()},a.prototype.addDisplayables=function(i,l){l=l||!1;for(var c=0;c<i.length;c++)this.addDisplayable(i[c],l)},a.prototype.getDisplayables=function(){return this._displayables},a.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},a.prototype.eachPendingDisplayable=function(i){for(var l=this._cursor;l<this._displayables.length;l++)i&&i(this._displayables[l]);for(var l=0;l<this._temporaryDisplayables.length;l++)i&&i(this._temporaryDisplayables[l])},a.prototype.update=function(){this.updateTransform();for(var i=this._cursor;i<this._displayables.length;i++){var l=this._displayables[i];l.parent=this,l.update(),l.parent=null}for(var i=0;i<this._temporaryDisplayables.length;i++){var l=this._temporaryDisplayables[i];l.parent=this,l.update(),l.parent=null}},a.prototype.getBoundingRect=function(){if(!this._rect){for(var i=new Bn(1/0,1/0,-1/0,-1/0),l=0;l<this._displayables.length;l++){var c=this._displayables[l],d=c.getBoundingRect().clone();c.needLocalTransform()&&d.applyTransform(c.getLocalTransform(q4e)),i.union(d)}this._rect=i}return this._rect},a.prototype.contain=function(i,l){var c=this.transformCoordToLocal(i,l),d=this.getBoundingRect();if(d.contain(c[0],c[1]))for(var v=0;v<this._displayables.length;v++){var m=this._displayables[v];if(m.contain(i,l))return!0}return!1},a}(en),cee=Ri();function Jw(s,a,i,l,c){var d;if(a&&a.ecModel){var v=a.ecModel.getUpdatePayload();d=v&&v.animation}var m=a&&a.isAnimationEnabled(),w=s==="update";if(m){var S=void 0,x=void 0,E=void 0;l?(S=It(l.duration,200),x=It(l.easing,"cubicOut"),E=0):(S=a.getShallow(w?"animationDurationUpdate":"animationDuration"),x=a.getShallow(w?"animationEasingUpdate":"animationEasing"),E=a.getShallow(w?"animationDelayUpdate":"animationDelay")),d&&(d.duration!=null&&(S=d.duration),d.easing!=null&&(x=d.easing),d.delay!=null&&(E=d.delay)),qe(E)&&(E=E(i,c)),qe(S)&&(S=S(i));var M={duration:S||0,delay:E,easing:x};return M}else return null}function kF(s,a,i,l,c,d,v){var m=!1,w;qe(c)?(v=d,d=c,c=null):Pe(c)&&(d=c.cb,v=c.during,m=c.isFrom,w=c.removeOpt,c=c.dataIndex);var S=s==="leave";S||a.stopAnimation("leave");var x=Jw(s,l,c,S?w||{}:null,l&&l.getAnimationDelayParams?l.getAnimationDelayParams(a,c):null);if(x&&x.duration>0){var E=x.duration,M=x.delay,D=x.easing,k={duration:E,delay:M||0,easing:D,done:d,force:!!d||!!v,setToFinal:!S,scope:s,during:v};m?a.animateFrom(i,k):a.animateTo(i,k)}else a.stopAnimation(),!m&&a.attr(i),v&&v(1),d&&d()}function Yi(s,a,i,l,c,d){kF("update",s,a,i,l,c,d)}function Co(s,a,i,l,c,d){kF("enter",s,a,i,l,c,d)}function eb(s){if(!s.__zr)return!0;for(var a=0;a<s.animators.length;a++){var i=s.animators[a];if(i.scope==="leave")return!0}return!1}function im(s,a,i,l,c,d){eb(s)||kF("leave",s,a,i,l,c,d)}function fee(s,a,i,l){s.removeTextContent(),s.removeTextGuideLine(),im(s,{style:{opacity:0}},a,i,l)}function zx(s,a,i){function l(){s.parent&&s.parent.remove(s)}s.isGroup?s.traverse(function(c){c.isGroup||fee(c,a,i,l)}):fee(s,a,i,l)}function dA(s){cee(s).oldStyle=s.style}function W4e(s){return cee(s).oldStyle}var lI=Math.max,uI=Math.min,FF={};function hee(s){return Yn.extend(s)}var $4e=I4e;function dee(s,a){return $4e(s,a)}function Jh(s,a){FF[s]=a}function cI(s){if(FF.hasOwnProperty(s))return FF[s]}function Gx(s,a,i,l){var c=nee(s,a);return i&&(l==="center"&&(i=Aee(i,c.getBoundingRect())),UF(c,i)),c}function NF(s,a,i){var l=new is({style:{image:s,x:a.x,y:a.y,width:a.width,height:a.height},onload:function(c){if(i==="center"){var d={width:c.width,height:c.height};l.setStyle(Aee(a,d))}}});return l}function Aee(s,a){var i=a.width/a.height,l=s.height*i,c;l<=s.width?c=s.height:(l=s.width,c=l/i);var d=s.x+s.width/2,v=s.y+s.height/2;return{x:d-l/2,y:v-c/2,width:l,height:c}}var vh=L4e;function UF(s,a){if(s.applyTransform){var i=s.getBoundingRect(),l=i.calculateTransform(a);s.applyTransform(l)}}function tb(s,a){return Px(s,s,{lineWidth:a}),s}function K4e(s){return YB(s.shape,s.shape,s.style),s}var fI=dh;function am(s,a){for(var i=ec([]);s&&s!==a;)$s(i,s.getLocalTransform(),i),s=s.parent;return i}function AA(s,a,i){return a&&!Ce(a)&&(a=Xe.getLocalTransform(a)),i&&(a=zl([],a)),Tn([],s,a)}function hI(s,a,i){var l=a[4]===0||a[5]===0||a[0]===0?1:Math.abs(2*a[4]/a[0]),c=a[4]===0||a[5]===0||a[2]===0?1:Math.abs(2*a[4]/a[2]),d=[s==="left"?-l:s==="right"?l:0,s==="top"?-c:s==="bottom"?c:0];return d=AA(d,a,i),Math.abs(d[0])>Math.abs(d[1])?d[0]>0?"right":"left":d[1]>0?"bottom":"top"}function vee(s){return!s.isGroup}function Y4e(s){return s.shape!=null}function jx(s,a,i){if(!s||!a)return;function l(v){var m={};return v.traverse(function(w){vee(w)&&w.anid&&(m[w.anid]=w)}),m}function c(v){var m={x:v.x,y:v.y,rotation:v.rotation};return Y4e(v)&&(m.shape=ie({},v.shape)),m}var d=l(s);a.traverse(function(v){if(vee(v)&&v.anid){var m=d[v.anid];if(m){var w=c(v);v.attr(c(m)),Yi(v,w,i,bt(v).dataIndex)}}})}function HF(s,a){return xe(s,function(i){var l=i[0];l=lI(l,a.x),l=uI(l,a.x+a.width);var c=i[1];return c=lI(c,a.y),c=uI(c,a.y+a.height),[l,c]})}function pee(s,a){var i=lI(s.x,a.x),l=uI(s.x+s.width,a.x+a.width),c=lI(s.y,a.y),d=uI(s.y+s.height,a.y+a.height);if(l>=i&&d>=c)return{x:i,y:c,width:l-i,height:d-c}}function rb(s,a,i){var l=ie({rectHover:!0},a),c=l.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},s)return s.indexOf("image://")===0?(c.image=s.slice(8),he(c,i),new is(l)):Gx(s.replace("path://",""),l,i,"center")}function qx(s,a,i,l,c){for(var d=0,v=c[c.length-1];d<c.length;d++){var m=c[d];if(gee(s,a,i,l,m[0],m[1],v[0],v[1]))return!0;v=m}}function gee(s,a,i,l,c,d,v,m){var w=i-s,S=l-a,x=v-c,E=m-d,M=QF(x,E,w,S);if(X4e(M))return!1;var D=s-c,k=a-d,Q=QF(D,k,w,S)/M;if(Q<0||Q>1)return!1;var V=QF(D,k,x,E)/M;return!(V<0||V>1)}function QF(s,a,i,l){return s*l-i*a}function X4e(s){return s<=1e-6&&s>=-1e-6}function e0(s){var a=s.itemTooltipOption,i=s.componentModel,l=s.itemName,c=Re(a)?{formatter:a}:a,d=i.mainType,v=i.componentIndex,m={componentType:d,name:l,$vars:["name"]};m[d+"Index"]=v;var w=s.formatterParamsExtra;w&&ne(Ne(w),function(x){At(m,x)||(m[x]=w[x],m.$vars.push(x))});var S=bt(s.el);S.componentMainType=d,S.componentIndex=v,S.tooltipConfig={name:l,option:he({content:l,encodeHTMLContent:!0,formatterParams:m},c)}}function mee(s,a){var i;s.isGroup&&(i=a(s)),i||s.traverse(a)}function om(s,a){if(s)if(Qe(s))for(var i=0;i<s.length;i++)mee(s[i],a);else mee(s,a)}Jh("circle",yv),Jh("ellipse",Ux),Jh("sector",hc),Jh("ring",Yw),Jh("polygon",dc),Jh("polyline",Ac),Jh("rect",R),Jh("line",Ll),Jh("bezierCurve",Xw),Jh("arc",Vx);var t0=Object.freeze({__proto__:null,updateProps:Yi,initProps:Co,removeElement:im,removeElementWithFadeOut:zx,isElementRemoved:eb,extendShape:hee,extendPath:dee,registerShape:Jh,getShapeClass:cI,makePath:Gx,makeImage:NF,mergePath:vh,resizePath:UF,subPixelOptimizeLine:tb,subPixelOptimizeRect:K4e,subPixelOptimize:fI,getTransform:am,applyTransform:AA,transformDirection:hI,groupTransition:jx,clipPointsByRect:HF,clipRectByRect:pee,createIcon:rb,linePolygonIntersect:qx,lineLineIntersect:gee,setTooltipConfig:e0,traverseElements:om,Group:Lr,Image:is,Text:be,Circle:yv,Ellipse:Ux,Sector:hc,Ring:Yw,Polygon:dc,Polyline:Ac,Rect:R,Line:Ll,BezierCurve:Xw,Arc:Vx,IncrementalDisplayable:uee,CompoundPath:iI,LinearGradient:Zw,RadialGradient:OF,BoundingRect:Bn,OrientedBoundingRect:sI,Point:xn,Path:Yn}),dI={};function yee(s,a){for(var i=0;i<Ou.length;i++){var l=Ou[i],c=a[l],d=s.ensureState(l);d.style=d.style||{},d.style.text=c}var v=s.currentStates.slice();s.clearStates(!0),s.setStyle({text:a.normal}),s.useStates(v,!0)}function VF(s,a,i){var l=s.labelFetcher,c=s.labelDataIndex,d=s.labelDimIndex,v=a.normal,m;l&&(m=l.getFormattedLabel(c,"normal",null,d,v&&v.get("formatter"),i!=null?{interpolatedValue:i}:null)),m==null&&(m=qe(s.defaultText)?s.defaultText(c,s,i):s.defaultText);for(var w={normal:m},S=0;S<Ou.length;S++){var x=Ou[S],E=a[x];w[x]=It(l?l.getFormattedLabel(c,x,null,d,E&&E.get("formatter")):null,m)}return w}function Fu(s,a,i,l){i=i||dI;for(var c=s instanceof be,d=!1,v=0;v<Ox.length;v++){var m=a[Ox[v]];if(m&&m.getShallow("show")){d=!0;break}}var w=c?s:s.getTextContent();if(d){c||(w||(w=new be,s.setTextContent(w)),s.stateProxy&&(w.stateProxy=s.stateProxy));var S=VF(i,a),x=a.normal,E=!!x.getShallow("show"),M=Xa(x,l&&l.normal,i,!1,!c);M.text=S.normal,c||s.setTextConfig(AI(x,i,!1));for(var v=0;v<Ou.length;v++){var D=Ou[v],m=a[D];if(m){var k=w.ensureState(D),Q=!!It(m.getShallow("show"),E);if(Q!==E&&(k.ignore=!Q),k.style=Xa(m,l&&l[D],i,!0,!c),k.style.text=S[D],!c){var V=s.ensureState(D);V.textConfig=AI(m,i,!0)}}}w.silent=!!x.getShallow("silent"),w.style.x!=null&&(M.x=w.style.x),w.style.y!=null&&(M.y=w.style.y),w.ignore=!E,w.useStyle(M),w.dirty(),i.enableTextSetter&&(nb(w).setLabelText=function($){var Z=VF(i,a,$);yee(w,Z)})}else w&&(w.ignore=!0);s.dirty()}function eu(s,a){a=a||"label";for(var i={normal:s.getModel(a)},l=0;l<Ou.length;l++){var c=Ou[l];i[c]=s.getModel([c,a])}return i}function Xa(s,a,i,l,c){var d={};return Z4e(d,s,i,l,c),a&&ie(d,a),d}function AI(s,a,i){a=a||{};var l={},c,d=s.getShallow("rotate"),v=It(s.getShallow("distance"),i?null:5),m=s.getShallow("offset");return c=s.getShallow("position")||(i?null:"inside"),c==="outside"&&(c=a.defaultOutsidePosition||"top"),c!=null&&(l.position=c),m!=null&&(l.offset=m),d!=null&&(d*=Math.PI/180,l.rotation=d),v!=null&&(l.distance=v),l.outsideFill=s.get("color")==="inherit"?a.inheritColor||null:"auto",l}function Z4e(s,a,i,l,c){i=i||dI;var d=a.ecModel,v=d&&d.option.textStyle,m=J4e(a),w;if(m){w={};for(var S in m)if(m.hasOwnProperty(S)){var x=a.getModel(["rich",S]);See(w[S]={},x,v,i,l,c,!1,!0)}}w&&(s.rich=w);var E=a.get("overflow");E&&(s.overflow=E);var M=a.get("minMargin");M!=null&&(s.margin=M),See(s,a,v,i,l,c,!0,!1)}function J4e(s){for(var a;s&&s!==s.ecModel;){var i=(s.option||dI).rich;if(i){a=a||{};for(var l=Ne(i),c=0;c<l.length;c++){var d=l[c];a[d]=1}}s=s.parentModel}return a}var wee=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],bee=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],_ee=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function See(s,a,i,l,c,d,v,m){i=!c&&i||dI;var w=l&&l.inheritColor,S=a.getShallow("color"),x=a.getShallow("textBorderColor"),E=It(a.getShallow("opacity"),i.opacity);(S==="inherit"||S==="auto")&&(S==="auto"&&Ga("color: 'auto'","color: 'inherit'"),w?S=w:S=null),(x==="inherit"||x==="auto")&&(x==="auto"&&Ga("color: 'auto'","color: 'inherit'"),w?x=w:x=null),d||(S=S||i.color,x=x||i.textBorderColor),S!=null&&(s.fill=S),x!=null&&(s.stroke=x);var M=It(a.getShallow("textBorderWidth"),i.textBorderWidth);M!=null&&(s.lineWidth=M);var D=It(a.getShallow("textBorderType"),i.textBorderType);D!=null&&(s.lineDash=D);var k=It(a.getShallow("textBorderDashOffset"),i.textBorderDashOffset);k!=null&&(s.lineDashOffset=k),!c&&E==null&&!m&&(E=l&&l.defaultOpacity),E!=null&&(s.opacity=E),!c&&!d&&s.fill==null&&l.inheritColor&&(s.fill=l.inheritColor);for(var Q=0;Q<wee.length;Q++){var V=wee[Q],$=It(a.getShallow(V),i[V]);$!=null&&(s[V]=$)}for(var Q=0;Q<bee.length;Q++){var V=bee[Q],$=a.getShallow(V);$!=null&&(s[V]=$)}if(s.verticalAlign==null){var Z=a.getShallow("baseline");Z!=null&&(s.verticalAlign=Z)}if(!v||!l.disableBox){for(var Q=0;Q<_ee.length;Q++){var V=_ee[Q],$=a.getShallow(V);$!=null&&(s[V]=$)}var ee=a.getShallow("borderType");ee!=null&&(s.borderDash=ee),(s.backgroundColor==="auto"||s.backgroundColor==="inherit")&&w&&(s.backgroundColor==="auto"&&Ga("backgroundColor: 'auto'","backgroundColor: 'inherit'"),s.backgroundColor=w),(s.borderColor==="auto"||s.borderColor==="inherit")&&w&&(s.borderColor==="auto"&&Ga("borderColor: 'auto'","borderColor: 'inherit'"),s.borderColor=w)}}function zF(s,a){var i=a&&a.getModel("textStyle");return br([s.fontStyle||i&&i.getShallow("fontStyle")||"",s.fontWeight||i&&i.getShallow("fontWeight")||"",(s.fontSize||i&&i.getShallow("fontSize")||12)+"px",s.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}var nb=Ri();function xee(s,a,i,l){if(s){var c=nb(s);c.prevValue=c.value,c.value=i;var d=a.normal;c.valueAnimation=d.get("valueAnimation"),c.valueAnimation&&(c.precision=d.get("precision"),c.defaultInterpolatedText=l,c.statesModels=a)}}function Cee(s,a,i,l,c){var d=nb(s);if(!d.valueAnimation||d.prevValue===d.value)return;var v=d.defaultInterpolatedText,m=It(d.interpolatedValue,d.prevValue),w=d.value;function S(x){var E=Dw(i,d.precision,m,w,x);d.interpolatedValue=x===1?null:E;var M=VF({labelDataIndex:a,labelFetcher:c,defaultText:v?v(E):E+""},d.statesModels,E);yee(s,M)}s.percent=0,(d.prevValue==null?Co:Yi)(s,{percent:1},l,a,null,S)}var e6e=["textStyle","color"],GF=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],jF=new be,t6e=function(){function s(){}return s.prototype.getTextColor=function(a){var i=this.ecModel;return this.getShallow("color")||(!a&&i?i.get(e6e):null)},s.prototype.getFont=function(){return zF({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},s.prototype.getTextRect=function(a){for(var i={text:a,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},l=0;l<GF.length;l++)i[GF[l]]=this.getShallow(GF[l]);return jF.useStyle(i),jF.update(),jF.getBoundingRect()},s}(),Tee=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],r6e=vv(Tee),n6e=function(){function s(){}return s.prototype.getLineStyle=function(a){return r6e(this,a)},s}(),Eee=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],i6e=vv(Eee),a6e=function(){function s(){}return s.prototype.getItemStyle=function(a,i){return i6e(this,a,i)},s}(),ta=function(){function s(a,i,l){this.parentModel=i,this.ecModel=l,this.option=a}return s.prototype.init=function(a,i,l){},s.prototype.mergeOption=function(a,i){le(this.option,a,!0)},s.prototype.get=function(a,i){return a==null?this.option:this._doGet(this.parsePath(a),!i&&this.parentModel)},s.prototype.getShallow=function(a,i){var l=this.option,c=l==null?l:l[a];if(c==null&&!i){var d=this.parentModel;d&&(c=d.getShallow(a))}return c},s.prototype.getModel=function(a,i){var l=a!=null,c=l?this.parsePath(a):null,d=l?this._doGet(c):this.option;return i=i||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(c)),new s(d,i,this.ecModel)},s.prototype.isEmpty=function(){return this.option==null},s.prototype.restoreData=function(){},s.prototype.clone=function(){var a=this.constructor;return new a(ae(this.option))},s.prototype.parsePath=function(a){return typeof a=="string"?a.split("."):a},s.prototype.resolveParentPath=function(a){return a},s.prototype.isAnimationEnabled=function(){if(!h.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},s.prototype._doGet=function(a,i){var l=this.option;if(!a)return l;for(var c=0;c<a.length&&!(a[c]&&(l=l&&typeof l=="object"?l[a[c]]:null,l==null));c++);return l==null&&i&&(l=i._doGet(this.resolveParentPath(a),i.parentModel)),l},s}();Uy(ta),hF(ta),_e(ta,n6e),_e(ta,a6e),_e(ta,qB),_e(ta,t6e);var o6e=Math.round(Math.random()*10);function ib(s){return[s||"",o6e++].join("_")}function s6e(s){var a={};s.registerSubTypeDefaulter=function(i,l){var c=qh(i);a[c.main]=l},s.determineSubType=function(i,l){var c=l.type;if(!c){var d=qh(i).main;s.hasSubTypes(i)&&a[d]&&(c=a[d](l))}return c}}function l6e(s,a){s.topologicalTravel=function(d,v,m,w){if(!d.length)return;var S=i(v),x=S.graph,E=S.noEntryList,M={};for(ne(d,function(Z){M[Z]=!0});E.length;){var D=E.pop(),k=x[D],Q=!!M[D];Q&&(m.call(w,D,k.originalDeps.slice()),delete M[D]),ne(k.successor,Q?$:V)}ne(M,function(){var Z="";throw Z=Do("Circular dependency may exists: ",M,d,v),new Error(Z)});function V(Z){x[Z].entryCount--,x[Z].entryCount===0&&E.push(Z)}function $(Z){M[Z]=!0,V(Z)}};function i(d){var v={},m=[];return ne(d,function(w){var S=l(v,w),x=S.originalDeps=a(w),E=c(x,d);S.entryCount=E.length,S.entryCount===0&&m.push(w),ne(E,function(M){oe(S.predecessor,M)<0&&S.predecessor.push(M);var D=l(v,M);oe(D.successor,M)<0&&D.successor.push(w)})}),{graph:v,noEntryList:m}}function l(d,v){return d[v]||(d[v]={predecessor:[],successor:[]}),d[v]}function c(d,v){var m=[];return ne(d,function(w){oe(v,w)>=0&&m.push(w)}),m}}function sm(s,a){return le(le({},s,!0),a,!0)}var u6e={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},c6e={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},vI="ZH",qF="EN",ab=qF,pI={},WF={},Bee=h.domSupported?function(){var s=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ab).toUpperCase();return s.indexOf(vI)>-1?vI:ab}():ab;function $F(s,a){s=s.toUpperCase(),WF[s]=new ta(a),pI[s]=a}function f6e(s){if(Re(s)){var a=pI[s.toUpperCase()]||{};return s===vI||s===qF?ae(a):le(ae(a),ae(pI[ab]),!1)}else return le(ae(s),ae(pI[ab]),!1)}function KF(s){return WF[s]}function h6e(){return WF[ab]}$F(qF,u6e),$F(vI,c6e);var YF=1e3,XF=YF*60,Wx=XF*60,ed=Wx*24,Iee=ed*365,$x={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}"},gI="{yyyy}-{MM}-{dd}",Lee={year:"{yyyy}",month:"{yyyy}-{MM}",day:gI,hour:gI+" "+$x.hour,minute:gI+" "+$x.minute,second:gI+" "+$x.second,millisecond:$x.none},ZF=["year","month","day","hour","minute","second","millisecond"],Mee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Zc(s,a){return s+="","0000".substr(0,a-s.length)+s}function ob(s){switch(s){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return s}}function d6e(s){return s===ob(s)}function A6e(s){switch(s){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Kx(s,a,i,l){var c=Na(s),d=c[JF(i)](),v=c[sb(i)]()+1,m=Math.floor((v-1)/3)+1,w=c[mI(i)](),S=c["get"+(i?"UTC":"")+"Day"](),x=c[Yx(i)](),E=(x-1)%12+1,M=c[yI(i)](),D=c[wI(i)](),k=c[bI(i)](),Q=x>=12?"pm":"am",V=Q.toUpperCase(),$=l instanceof ta?l:KF(l||Bee)||h6e(),Z=$.getModel("time"),ee=Z.get("month"),fe=Z.get("monthAbbr"),ve=Z.get("dayOfWeek"),ge=Z.get("dayOfWeekAbbr");return(a||"").replace(/{a}/g,Q+"").replace(/{A}/g,V+"").replace(/{yyyy}/g,d+"").replace(/{yy}/g,Zc(d%100+"",2)).replace(/{Q}/g,m+"").replace(/{MMMM}/g,ee[v-1]).replace(/{MMM}/g,fe[v-1]).replace(/{MM}/g,Zc(v,2)).replace(/{M}/g,v+"").replace(/{dd}/g,Zc(w,2)).replace(/{d}/g,w+"").replace(/{eeee}/g,ve[S]).replace(/{ee}/g,ge[S]).replace(/{e}/g,S+"").replace(/{HH}/g,Zc(x,2)).replace(/{H}/g,x+"").replace(/{hh}/g,Zc(E+"",2)).replace(/{h}/g,E+"").replace(/{mm}/g,Zc(M,2)).replace(/{m}/g,M+"").replace(/{ss}/g,Zc(D,2)).replace(/{s}/g,D+"").replace(/{SSS}/g,Zc(k,3)).replace(/{S}/g,k+"")}function v6e(s,a,i,l,c){var d=null;if(Re(i))d=i;else if(qe(i))d=i(s.value,a,{level:s.level});else{var v=ie({},$x);if(s.level>0)for(var m=0;m<ZF.length;++m)v[ZF[m]]="{primary|"+v[ZF[m]]+"}";var w=i?i.inherit===!1?i:he(i,v):v,S=Dee(s.value,c);if(w[S])d=w[S];else if(w.inherit){for(var x=Mee.indexOf(S),m=x-1;m>=0;--m)if(w[S]){d=w[S];break}d=d||v.none}if(Qe(d)){var E=s.level==null?0:s.level>=0?s.level:d.length+s.level;E=Math.min(E,d.length-1),d=d[E]}}return Kx(new Date(s.value),d,c,l)}function Dee(s,a){var i=Na(s),l=i[sb(a)]()+1,c=i[mI(a)](),d=i[Yx(a)](),v=i[yI(a)](),m=i[wI(a)](),w=i[bI(a)](),S=w===0,x=S&&m===0,E=x&&v===0,M=E&&d===0,D=M&&c===1,k=D&&l===1;return k?"year":D?"month":M?"day":E?"hour":x?"minute":S?"second":"millisecond"}function Ree(s,a,i){var l=Ge(s)?Na(s):s;switch(a=a||Dee(s,i),a){case"year":return l[JF(i)]();case"half-year":return l[sb(i)]()>=6?1:0;case"quarter":return Math.floor((l[sb(i)]()+1)/4);case"month":return l[sb(i)]();case"day":return l[mI(i)]();case"half-day":return l[Yx(i)]()/24;case"hour":return l[Yx(i)]();case"minute":return l[yI(i)]();case"second":return l[wI(i)]();case"millisecond":return l[bI(i)]()}}function JF(s){return s?"getUTCFullYear":"getFullYear"}function sb(s){return s?"getUTCMonth":"getMonth"}function mI(s){return s?"getUTCDate":"getDate"}function Yx(s){return s?"getUTCHours":"getHours"}function yI(s){return s?"getUTCMinutes":"getMinutes"}function wI(s){return s?"getUTCSeconds":"getSeconds"}function bI(s){return s?"getUTCMilliseconds":"getMilliseconds"}function p6e(s){return s?"setUTCFullYear":"setFullYear"}function Pee(s){return s?"setUTCMonth":"setMonth"}function Oee(s){return s?"setUTCDate":"setDate"}function kee(s){return s?"setUTCHours":"setHours"}function Fee(s){return s?"setUTCMinutes":"setMinutes"}function Nee(s){return s?"setUTCSeconds":"setSeconds"}function Uee(s){return s?"setUTCMilliseconds":"setMilliseconds"}function g6e(s,a,i,l,c,d,v,m){var w=new be({style:{text:s,font:a,align:i,verticalAlign:l,padding:c,rich:d,overflow:v?"truncate":null,lineHeight:m}});return w.getBoundingRect()}function eN(s){if(!rl(s))return Re(s)?s:"-";var a=(s+"").split(".");return a[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(a.length>1?"."+a[1]:"")}function tN(s,a){return s=(s||"").toLowerCase().replace(/-(.)/g,function(i,l){return l.toUpperCase()}),a&&s&&(s=s.charAt(0).toUpperCase()+s.slice(1)),s}var r0=lr;function rN(s,a,i){var l="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function c(x){return x&&br(x)?x:"-"}function d(x){return!!(x!=null&&!isNaN(x)&&isFinite(x))}var v=a==="time",m=s instanceof Date;if(v||m){var w=v?Na(s):s;if(isNaN(+w)){if(m)return"-"}else return Kx(w,l,i)}if(a==="ordinal")return Me(s)?c(s):Ge(s)&&d(s)?s+"":"-";var S=yu(s);return d(S)?eN(S):Me(s)?c(s):typeof s=="boolean"?s+"":"-"}var Hee=["a","b","c","d","e","f","g"],nN=function(s,a){return"{"+s+(a??"")+"}"};function iN(s,a,i){Qe(a)||(a=[a]);var l=a.length;if(!l)return"";for(var c=a[0].$vars||[],d=0;d<c.length;d++){var v=Hee[d];s=s.replace(nN(v),nN(v,0))}for(var m=0;m<l;m++)for(var w=0;w<c.length;w++){var S=a[m][c[w]];s=s.replace(nN(Hee[w],m),i?yo(S):S)}return s}function m6e(s,a,i){return ne(a,function(l,c){s=s.replace("{"+c+"}",l)}),s}function Qee(s,a){var i=Re(s)?{color:s,extraCssText:a}:s||{},l=i.color,c=i.type;a=i.extraCssText;var d=i.renderMode||"html";if(!l)return"";if(d==="html")return c==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+yo(l)+";"+(a||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+yo(l)+";"+(a||"")+'"></span>';var v=i.markerId||"markerX";return{renderMode:d,content:"{"+v+"|} ",style:c==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:l}:{width:10,height:10,borderRadius:5,backgroundColor:l}}}function y6e(s,a,i){Ga("echarts.format.formatTime","echarts.time.format"),(s==="week"||s==="month"||s==="quarter"||s==="half-year"||s==="year")&&(s=`MM-dd
yyyy`);var l=Na(a),c=i?"getUTC":"get",d=l[c+"FullYear"](),v=l[c+"Month"]()+1,m=l[c+"Date"](),w=l[c+"Hours"](),S=l[c+"Minutes"](),x=l[c+"Seconds"](),E=l[c+"Milliseconds"]();return s=s.replace("MM",Zc(v,2)).replace("M",v).replace("yyyy",d).replace("yy",Zc(d%100+"",2)).replace("dd",Zc(m,2)).replace("d",m).replace("hh",Zc(w,2)).replace("h",w).replace("mm",Zc(S,2)).replace("m",S).replace("ss",Zc(x,2)).replace("s",x).replace("SSS",Zc(E,3)),s}function w6e(s){return s&&s.charAt(0).toUpperCase()+s.substr(1)}function n0(s,a){return a=a||"transparent",Re(s)?s:Pe(s)&&s.colorStops&&(s.colorStops[0]||{}).color||a}function _I(s,a){if(a==="_blank"||a==="blank"){var i=window.open();i.opener=null,i.location.href=s}else window.open(s,a)}var SI=ne,Vee=["left","right","top","bottom","width","height"],i0=[["width","left","right"],["height","top","bottom"]];function aN(s,a,i,l,c){var d=0,v=0;l==null&&(l=1/0),c==null&&(c=1/0);var m=0;a.eachChild(function(w,S){var x=w.getBoundingRect(),E=a.childAt(S+1),M=E&&E.getBoundingRect(),D,k;if(s==="horizontal"){var Q=x.width+(M?-M.x+x.x:0);D=d+Q,D>l||w.newline?(d=0,D=Q,v+=m+i,m=x.height):m=Math.max(m,x.height)}else{var V=x.height+(M?-M.y+x.y:0);k=v+V,k>c||w.newline?(d+=m+i,v=0,k=V,m=x.width):m=Math.max(m,x.width)}w.newline||(w.x=d,w.y=v,w.markRedraw(),s==="horizontal"?d=D+i:v=k+i)})}var a0=aN;ue(aN,"vertical"),ue(aN,"horizontal");function b6e(s,a,i){var l=a.width,c=a.height,d=vr(s.left,l),v=vr(s.top,c),m=vr(s.right,l),w=vr(s.bottom,c);return(isNaN(d)||isNaN(parseFloat(s.left)))&&(d=0),(isNaN(m)||isNaN(parseFloat(s.right)))&&(m=l),(isNaN(v)||isNaN(parseFloat(s.top)))&&(v=0),(isNaN(w)||isNaN(parseFloat(s.bottom)))&&(w=c),i=r0(i||0),{width:Math.max(m-d-i[1]-i[3],0),height:Math.max(w-v-i[0]-i[2],0)}}function ol(s,a,i){i=r0(i||0);var l=a.width,c=a.height,d=vr(s.left,l),v=vr(s.top,c),m=vr(s.right,l),w=vr(s.bottom,c),S=vr(s.width,l),x=vr(s.height,c),E=i[2]+i[0],M=i[1]+i[3],D=s.aspect;switch(isNaN(S)&&(S=l-m-M-d),isNaN(x)&&(x=c-w-E-v),D!=null&&(isNaN(S)&&isNaN(x)&&(D>l/c?S=l*.8:x=c*.8),isNaN(S)&&(S=D*x),isNaN(x)&&(x=S/D)),isNaN(d)&&(d=l-m-S-M),isNaN(v)&&(v=c-w-x-E),s.left||s.right){case"center":d=l/2-S/2-i[3];break;case"right":d=l-S-M;break}switch(s.top||s.bottom){case"middle":case"center":v=c/2-x/2-i[0];break;case"bottom":v=c-x-E;break}d=d||0,v=v||0,isNaN(S)&&(S=l-M-d-(m||0)),isNaN(x)&&(x=c-E-v-(w||0));var k=new Bn(d+i[3],v+i[0],S,x);return k.margin=i,k}function xI(s,a,i,l,c,d){var v=!c||!c.hv||c.hv[0],m=!c||!c.hv||c.hv[1],w=c&&c.boundingMode||"all";if(d=d||s,d.x=s.x,d.y=s.y,!v&&!m)return!1;var S;if(w==="raw")S=s.type==="group"?new Bn(0,0,+a.width||0,+a.height||0):s.getBoundingRect();else if(S=s.getBoundingRect(),s.needLocalTransform()){var x=s.getLocalTransform();S=S.clone(),S.applyTransform(x)}var E=ol(he({width:S.width,height:S.height},a),i,l),M=v?E.x-S.x:0,D=m?E.y-S.y:0;return w==="raw"?(d.x=M,d.y=D):(d.x+=M,d.y+=D),d===s&&s.markRedraw(),!0}function _6e(s,a){return s[i0[a][0]]!=null||s[i0[a][1]]!=null&&s[i0[a][2]]!=null}function Xx(s){var a=s.layoutMode||s.constructor.layoutMode;return Pe(a)?a:a?{type:a}:null}function lm(s,a,i){var l=i&&i.ignoreSize;!Qe(l)&&(l=[l,l]);var c=v(i0[0],0),d=v(i0[1],1);S(i0[0],s,c),S(i0[1],s,d);function v(x,E){var M={},D=0,k={},Q=0,V=2;if(SI(x,function(ee){k[ee]=s[ee]}),SI(x,function(ee){m(a,ee)&&(M[ee]=k[ee]=a[ee]),w(M,ee)&&D++,w(k,ee)&&Q++}),l[E])return w(a,x[1])?k[x[2]]=null:w(a,x[2])&&(k[x[1]]=null),k;if(Q===V||!D)return k;if(D>=V)return M;for(var $=0;$<x.length;$++){var Z=x[$];if(!m(M,Z)&&m(s,Z)){M[Z]=s[Z];break}}return M}function m(x,E){return x.hasOwnProperty(E)}function w(x,E){return x[E]!=null&&x[E]!=="auto"}function S(x,E,M){SI(x,function(D){E[D]=M[D]})}}function lb(s){return zee({},s)}function zee(s,a){return a&&s&&SI(Vee,function(i){a.hasOwnProperty(i)&&(s[i]=a[i])}),s}var S6e=Ri(),li=function(s){o(a,s);function a(i,l,c){var d=s.call(this,i,l,c)||this;return d.uid=ib("ec_cpt_model"),d}return a.prototype.init=function(i,l,c){this.mergeDefaultAndTheme(i,c)},a.prototype.mergeDefaultAndTheme=function(i,l){var c=Xx(this),d=c?lb(i):{},v=l.getTheme();le(i,v.get(this.mainType)),le(i,this.getDefaultOption()),c&&lm(i,d,c)},a.prototype.mergeOption=function(i,l){le(this.option,i,!0);var c=Xx(this);c&&lm(this.option,i,c)},a.prototype.optionUpdated=function(i,l){},a.prototype.getDefaultOption=function(){var i=this.constructor;if(!bx(i))return i.defaultOption;var l=S6e(this);if(!l.defaultOption){for(var c=[],d=i;d;){var v=d.prototype.defaultOption;v&&c.push(v),d=d.superClass}for(var m={},w=c.length-1;w>=0;w--)m=le(m,c[w],!0);l.defaultOption=m}return l.defaultOption},a.prototype.getReferringComponents=function(i,l){var c=i+"Index",d=i+"Id";return jg(this.ecModel,i,{index:this.get(c,!0),id:this.get(d,!0)},l)},a.prototype.getBoxLayoutParams=function(){var i=this;return{left:i.get("left"),top:i.get("top"),right:i.get("right"),bottom:i.get("bottom"),width:i.get("width"),height:i.get("height")}},a.prototype.getZLevelKey=function(){return""},a.prototype.setZLevel=function(i){this.option.zlevel=i},a.protoInitialize=function(){var i=a.prototype;i.type="component",i.id="",i.name="",i.mainType="",i.subType="",i.componentIndex=0}(),a}(ta);_x(li,ta),Rw(li),s6e(li),l6e(li,x6e);function x6e(s){var a=[];return ne(li.getClassesByMainType(s),function(i){a=a.concat(i.dependencies||i.prototype.dependencies||[])}),a=xe(a,function(i){return qh(i).main}),s!=="dataset"&&oe(a,"dataset")<=0&&a.unshift("dataset"),a}var Gee="";typeof navigator<"u"&&(Gee=navigator.platform||"");var ub="rgba(0, 0, 0, 0.2)",C6e={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ub,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ub,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ub,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ub,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ub,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ub,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Gee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},oN=Ht(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),td="original",vc="arrayRows",rd="objectRows",bv="keyedColumns",Np="typedArray",jee="unknown",_v="column",cb="row",Nu={Must:1,Might:2,Not:3},qee=Ri();function T6e(s){qee(s).datasetMap=Ht()}function Wee(s,a,i){var l={},c=lN(a);if(!c||!s)return l;var d=[],v=[],m=a.ecModel,w=qee(m).datasetMap,S=c.uid+"_"+i.seriesLayoutBy,x,E;s=s.slice(),ne(s,function(Q,V){var $=Pe(Q)?Q:s[V]={name:Q};$.type==="ordinal"&&x==null&&(x=V,E=k($)),l[$.name]=[]});var M=w.get(S)||w.set(S,{categoryWayDim:E,valueWayDim:0});ne(s,function(Q,V){var $=Q.name,Z=k(Q);if(x==null){var ee=M.valueWayDim;D(l[$],ee,Z),D(v,ee,Z),M.valueWayDim+=Z}else if(x===V)D(l[$],0,Z),D(d,0,Z);else{var ee=M.categoryWayDim;D(l[$],ee,Z),D(v,ee,Z),M.categoryWayDim+=Z}});function D(Q,V,$){for(var Z=0;Z<$;Z++)Q.push(V+Z)}function k(Q){var V=Q.dimsDef;return V?V.length:1}return d.length&&(l.itemName=d),v.length&&(l.seriesName=v),l}function sN(s,a,i){var l={},c=lN(s);if(!c)return l;var d=a.sourceFormat,v=a.dimensionsDefine,m;(d===rd||d===bv)&&ne(v,function(x,E){(Pe(x)?x.name:x)==="name"&&(m=E)});var w=function(){for(var x={},E={},M=[],D=0,k=Math.min(5,i);D<k;D++){var Q=Kee(a.data,d,a.seriesLayoutBy,v,a.startIndex,D);M.push(Q);var V=Q===Nu.Not;if(V&&x.v==null&&D!==m&&(x.v=D),(x.n==null||x.n===x.v||!V&&M[x.n]===Nu.Not)&&(x.n=D),$(x)&&M[x.n]!==Nu.Not)return x;V||(Q===Nu.Might&&E.v==null&&D!==m&&(E.v=D),(E.n==null||E.n===E.v)&&(E.n=D))}function $(Z){return Z.v!=null&&Z.n!=null}return $(x)?x:$(E)?E:null}();if(w){l.value=[w.v];var S=m??w.n;l.itemName=[S],l.seriesName=[S]}return l}function lN(s){var a=s.get("data",!0);if(!a)return jg(s.ecModel,"dataset",{index:s.get("datasetIndex",!0),id:s.get("datasetId",!0)},ps).models[0]}function E6e(s){return!s.get("transform",!0)&&!s.get("fromTransformResult",!0)?[]:jg(s.ecModel,"dataset",{index:s.get("fromDatasetIndex",!0),id:s.get("fromDatasetId",!0)},ps).models}function $ee(s,a){return Kee(s.data,s.sourceFormat,s.seriesLayoutBy,s.dimensionsDefine,s.startIndex,a)}function Kee(s,a,i,l,c,d){var v,m=5;if(Be(s))return Nu.Not;var w,S;if(l){var x=l[d];Pe(x)?(w=x.name,S=x.type):Re(x)&&(w=x)}if(S!=null)return S==="ordinal"?Nu.Must:Nu.Not;if(a===vc){var E=s;if(i===cb){for(var M=E[d],D=0;D<(M||[]).length&&D<m;D++)if((v=fe(M[c+D]))!=null)return v}else for(var D=0;D<E.length&&D<m;D++){var k=E[c+D];if(k&&(v=fe(k[d]))!=null)return v}}else if(a===rd){var Q=s;if(!w)return Nu.Not;for(var D=0;D<Q.length&&D<m;D++){var V=Q[D];if(V&&(v=fe(V[w]))!=null)return v}}else if(a===bv){var $=s;if(!w)return Nu.Not;var M=$[w];if(!M||Be(M))return Nu.Not;for(var D=0;D<M.length&&D<m;D++)if((v=fe(M[D]))!=null)return v}else if(a===td)for(var Z=s,D=0;D<Z.length&&D<m;D++){var V=Z[D],ee=rA(V);if(!Qe(ee))return Nu.Not;if((v=fe(ee[d]))!=null)return v}function fe(ve){var ge=Re(ve);if(ve!=null&&Number.isFinite(Number(ve))&&ve!=="")return ge?Nu.Might:Nu.Not;if(ge&&ve!=="-")return Nu.Must}return Nu.Not}var uN=Ht();function B6e(s,a){_t(uN.get(s)==null&&a),uN.set(s,a)}function I6e(s,a,i){var l=uN.get(a);if(!l)return i;var c=l(s);if(!c)return i;for(var d=0;d<c.length;d++)_t(Tp(c[d]));return i.concat(c)}var Yee=Ri(),L6e=Ri(),cN=function(){function s(){}return s.prototype.getColorFromPalette=function(a,i,l){var c=Ni(this.get("color",!0)),d=this.get("colorLayer",!0);return Xee(this,Yee,c,d,a,i,l)},s.prototype.clearColorPalette=function(){D6e(this,Yee)},s}();function fN(s,a,i,l){var c=Ni(s.get(["aria","decal","decals"]));return Xee(s,L6e,c,null,a,i,l)}function M6e(s,a){for(var i=s.length,l=0;l<i;l++)if(s[l].length>a)return s[l];return s[i-1]}function Xee(s,a,i,l,c,d,v){d=d||s;var m=a(d),w=m.paletteIdx||0,S=m.paletteNameMap=m.paletteNameMap||{};if(S.hasOwnProperty(c))return S[c];var x=v==null||!l?i:M6e(l,v);if(x=x||i,!(!x||!x.length)){var E=x[w];return c&&(S[c]=E),m.paletteIdx=(w+1)%x.length,E}}function D6e(s,a){a(s).paletteIdx=0,a(s).paletteNameMap={}}var CI,Zx,Zee,hN="\0_ec_inner",Jee=1,R6e={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},P6e={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},TI={};function O6e(s){ne(s,function(a,i){if(!li.hasClass(i)){var l=R6e[i];l&&!TI[l]&&(rs("Component "+i+` is used but not imported.
import { `+l+` } from 'echarts/components';
echarts.use([`+l+"]);"),TI[l]=!0)}})}var dN=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.init=function(i,l,c,d,v,m){d=d||{},this.option=null,this._theme=new ta(d),this._locale=new ta(v),this._optionManager=m},a.prototype.setOption=function(i,l,c){_t(i!=null,"option is null/undefined"),_t(i[hN]!==Jee,"please use chart.getOption()");var d=rte(l);this._optionManager.setOption(i,c,d),this._resetOption(null,d)},a.prototype.resetOption=function(i,l){return this._resetOption(i,rte(l))},a.prototype._resetOption=function(i,l){var c=!1,d=this._optionManager;if(!i||i==="recreate"){var v=d.mountOption(i==="recreate");O6e(v),!this.option||i==="recreate"?Zee(this,v):(this.restoreData(),this._mergeOption(v,l)),c=!0}if((i==="timeline"||i==="media")&&this.restoreData(),!i||i==="recreate"||i==="timeline"){var m=d.getTimelineOption(this);m&&(c=!0,this._mergeOption(m,l))}if(!i||i==="recreate"||i==="media"){var w=d.getMediaOption(this);w.length&&ne(w,function(S){c=!0,this._mergeOption(S,l)},this)}return c},a.prototype.mergeOption=function(i){this._mergeOption(i,null)},a.prototype._mergeOption=function(i,l){var c=this.option,d=this._componentsMap,v=this._componentsCount,m=[],w=Ht(),S=l&&l.replaceMergeMainTypeMap;T6e(this),ne(i,function(E,M){E!=null&&(li.hasClass(M)?M&&(m.push(M),w.set(M,!0)):c[M]=c[M]==null?ae(E):le(c[M],E,!0))}),S&&S.each(function(E,M){li.hasClass(M)&&!w.get(M)&&(m.push(M),w.set(M,!0))}),li.topologicalTravel(m,li.getAllClassMainTypes(),x,this);function x(E){var M=I6e(this,E,Ni(i[E])),D=d.get(E),k=D?S&&S.get(E)?"replaceMerge":"normalMerge":"replaceAll",Q=Fy(D,M,k);FB(Q,E,li),c[E]=null,d.set(E,null),v.set(E,0);var V=[],$=[],Z=0,ee,fe;ne(Q,function(ve,ge){var Se=ve.existing,Ee=ve.newOption;if(!Ee)Se&&(Se.mergeOption({},this),Se.optionUpdated({},!1));else{var Ie=E==="series",Le=li.getClass(E,ve.keyInfo.subType,!Ie);if(!Le){{var Fe=ve.keyInfo.subType,Je=P6e[Fe];TI[Fe]||(TI[Fe]=!0,rs(Je?"Series "+Fe+` is used but not imported.
import { `+Je+` } from 'echarts/charts';
echarts.use([`+Je+"]);":"Unknown series "+Fe))}return}if(E==="tooltip"){if(ee){fe||(Ya("Currently only one tooltip component is allowed."),fe=!0);return}ee=!0}if(Se&&Se.constructor===Le)Se.name=ve.keyInfo.name,Se.mergeOption(Ee,this),Se.optionUpdated(Ee,!1);else{var rt=ie({componentIndex:ge},ve.keyInfo);Se=new Le(Ee,this,this,rt),ie(Se,rt),ve.brandNew&&(Se.__requireNewView=!0),Se.init(Ee,this,this),Se.optionUpdated(null,!0)}}Se?(V.push(Se.option),$.push(Se),Z++):(V.push(void 0),$.push(void 0))},this),c[E]=V,d.set(E,$),v.set(E,Z),E==="series"&&CI(this)}this._seriesIndices||CI(this)},a.prototype.getOption=function(){var i=ae(this.option);return ne(i,function(l,c){if(li.hasClass(c)){for(var d=Ni(l),v=d.length,m=!1,w=v-1;w>=0;w--)d[w]&&!Tp(d[w])?m=!0:(d[w]=null,!m&&v--);d.length=v,i[c]=d}}),delete i[hN],i},a.prototype.getTheme=function(){return this._theme},a.prototype.getLocaleModel=function(){return this._locale},a.prototype.setUpdatePayload=function(i){this._payload=i},a.prototype.getUpdatePayload=function(){return this._payload},a.prototype.getComponent=function(i,l){var c=this._componentsMap.get(i);if(c){var d=c[l||0];if(d)return d;if(l==null){for(var v=0;v<c.length;v++)if(c[v])return c[v]}}},a.prototype.queryComponents=function(i){var l=i.mainType;if(!l)return[];var c=i.index,d=i.id,v=i.name,m=this._componentsMap.get(l);if(!m||!m.length)return[];var w;return c!=null?(w=[],ne(Ni(c),function(S){m[S]&&w.push(m[S])})):d!=null?w=ete("id",d,m):v!=null?w=ete("name",v,m):w=ze(m,function(S){return!!S}),tte(w,i)},a.prototype.findComponents=function(i){var l=i.query,c=i.mainType,d=m(l),v=d?this.queryComponents(d):ze(this._componentsMap.get(c),function(S){return!!S});return w(tte(v,i));function m(S){var x=c+"Index",E=c+"Id",M=c+"Name";return S&&(S[x]!=null||S[E]!=null||S[M]!=null)?{mainType:c,index:S[x],id:S[E],name:S[M]}:null}function w(S){return i.filter?ze(S,i.filter):S}},a.prototype.eachComponent=function(i,l,c){var d=this._componentsMap;if(qe(i)){var v=l,m=i;d.each(function(E,M){for(var D=0;E&&D<E.length;D++){var k=E[D];k&&m.call(v,M,k,k.componentIndex)}})}else for(var w=Re(i)?d.get(i):Pe(i)?this.findComponents(i):null,S=0;w&&S<w.length;S++){var x=w[S];x&&l.call(c,x,x.componentIndex)}},a.prototype.getSeriesByName=function(i){var l=va(i,null);return ze(this._componentsMap.get("series"),function(c){return!!c&&l!=null&&c.name===l})},a.prototype.getSeriesByIndex=function(i){return this._componentsMap.get("series")[i]},a.prototype.getSeriesByType=function(i){return ze(this._componentsMap.get("series"),function(l){return!!l&&l.subType===i})},a.prototype.getSeries=function(){return ze(this._componentsMap.get("series"),function(i){return!!i})},a.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},a.prototype.eachSeries=function(i,l){Zx(this),ne(this._seriesIndices,function(c){var d=this._componentsMap.get("series")[c];i.call(l,d,c)},this)},a.prototype.eachRawSeries=function(i,l){ne(this._componentsMap.get("series"),function(c){c&&i.call(l,c,c.componentIndex)})},a.prototype.eachSeriesByType=function(i,l,c){Zx(this),ne(this._seriesIndices,function(d){var v=this._componentsMap.get("series")[d];v.subType===i&&l.call(c,v,d)},this)},a.prototype.eachRawSeriesByType=function(i,l,c){return ne(this.getSeriesByType(i),l,c)},a.prototype.isSeriesFiltered=function(i){return Zx(this),this._seriesIndicesMap.get(i.componentIndex)==null},a.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},a.prototype.filterSeries=function(i,l){Zx(this);var c=[];ne(this._seriesIndices,function(d){var v=this._componentsMap.get("series")[d];i.call(l,v,d)&&c.push(d)},this),this._seriesIndices=c,this._seriesIndicesMap=Ht(c)},a.prototype.restoreData=function(i){CI(this);var l=this._componentsMap,c=[];l.each(function(d,v){li.hasClass(v)&&c.push(v)}),li.topologicalTravel(c,li.getAllClassMainTypes(),function(d){ne(l.get(d),function(v){v&&(d!=="series"||!k6e(v,i))&&v.restoreData()})})},a.internalField=function(){CI=function(i){var l=i._seriesIndices=[];ne(i._componentsMap.get("series"),function(c){c&&l.push(c.componentIndex)}),i._seriesIndicesMap=Ht(l)},Zx=function(i){if(!i._seriesIndices)throw new Error("Option should contains series.")},Zee=function(i,l){i.option={},i.option[hN]=Jee,i._componentsMap=Ht({series:[]}),i._componentsCount=Ht();var c=l.aria;Pe(c)&&c.enabled==null&&(c.enabled=!0),F6e(l,i._theme.option),le(l,C6e,!1),i._mergeOption(l,null)}}(),a}(ta);function k6e(s,a){if(a){var i=a.seriesIndex,l=a.seriesId,c=a.seriesName;return i!=null&&s.componentIndex!==i||l!=null&&s.id!==l||c!=null&&s.name!==c}}function F6e(s,a){var i=s.color&&!s.colorLayer;ne(a,function(l,c){c==="colorLayer"&&i||li.hasClass(c)||(typeof l=="object"?s[c]=s[c]?le(s[c],l,!1):ae(l):s[c]==null&&(s[c]=l))})}function ete(s,a,i){if(Qe(a)){var l=Ht();return ne(a,function(d){if(d!=null){var v=va(d,null);v!=null&&l.set(d,!0)}}),ze(i,function(d){return d&&l.get(d[s])})}else{var c=va(a,null);return ze(i,function(d){return d&&c!=null&&d[s]===c})}}function tte(s,a){return a.hasOwnProperty("subType")?ze(s,function(i){return i&&i.subType===a.subType}):s}function rte(s){var a=Ht();return s&&ne(Ni(s.replaceMerge),function(i){_t(li.hasClass(i),'"'+i+'" is not valid component main type in "replaceMerge"'),a.set(i,!0)}),{replaceMergeMainTypeMap:a}}_e(dN,cN);var N6e=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],nte=function(){function s(a){ne(N6e,function(i){this[i]=Ue(a[i],a)},this)}return s}(),AN={},o0=function(){function s(){this._coordinateSystems=[]}return s.prototype.create=function(a,i){var l=[];ne(AN,function(c,d){var v=c.create(a,i);l=l.concat(v||[])}),this._coordinateSystems=l},s.prototype.update=function(a,i){ne(this._coordinateSystems,function(l){l.update&&l.update(a,i)})},s.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},s.register=function(a,i){AN[a]=i},s.get=function(a){return AN[a]},s}(),U6e=/^(min|max)?(.+)$/,H6e=function(){function s(a){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=a}return s.prototype.setOption=function(a,i,l){a&&(ne(Ni(a.series),function(v){v&&v.data&&Be(v.data)&&Br(v.data)}),ne(Ni(a.dataset),function(v){v&&v.source&&Be(v.source)&&Br(v.source)})),a=ae(a);var c=this._optionBackup,d=Q6e(a,i,!c);this._newBaseOption=d.baseOption,c?(d.timelineOptions.length&&(c.timelineOptions=d.timelineOptions),d.mediaList.length&&(c.mediaList=d.mediaList),d.mediaDefault&&(c.mediaDefault=d.mediaDefault)):this._optionBackup=d},s.prototype.mountOption=function(a){var i=this._optionBackup;return this._timelineOptions=i.timelineOptions,this._mediaList=i.mediaList,this._mediaDefault=i.mediaDefault,this._currentMediaIndices=[],ae(a?i.baseOption:this._newBaseOption)},s.prototype.getTimelineOption=function(a){var i,l=this._timelineOptions;if(l.length){var c=a.getComponent("timeline");c&&(i=ae(l[c.getCurrentIndex()]))}return i},s.prototype.getMediaOption=function(a){var i=this._api.getWidth(),l=this._api.getHeight(),c=this._mediaList,d=this._mediaDefault,v=[],m=[];if(!c.length&&!d)return m;for(var w=0,S=c.length;w<S;w++)V6e(c[w].query,i,l)&&v.push(w);return!v.length&&d&&(v=[-1]),v.length&&!G6e(v,this._currentMediaIndices)&&(m=xe(v,function(x){return ae(x===-1?d.option:c[x].option)})),this._currentMediaIndices=v,m},s}();function Q6e(s,a,i){var l=[],c,d,v=s.baseOption,m=s.timeline,w=s.options,S=s.media,x=!!s.media,E=!!(w||m||v&&v.timeline);v?(d=v,d.timeline||(d.timeline=m)):((E||x)&&(s.options=s.media=null),d=s),x&&(Qe(S)?ne(S,function(D){D&&!D.option&&Pe(D.query)&&Pe(D.query.option)&&rs("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),D&&D.option&&(D.query?l.push(D):c||(c=D))}):rs("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),M(d),ne(w,function(D){return M(D)}),ne(l,function(D){return M(D.option)});function M(D){ne(a,function(k){k(D,i)})}return{baseOption:d,timelineOptions:w||[],mediaDefault:c,mediaList:l}}function V6e(s,a,i){var l={width:a,height:i,aspectratio:a/i},c=!0;return ne(s,function(d,v){var m=v.match(U6e);if(!(!m||!m[1]||!m[2])){var w=m[1],S=m[2].toLowerCase();z6e(l[S],d,w)||(c=!1)}}),c}function z6e(s,a,i){return i==="min"?s>=a:i==="max"?s<=a:s===a}function G6e(s,a){return s.join(",")===a.join(",")}var nd=ne,Jx=Pe,ite=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function vN(s){var a=s&&s.itemStyle;if(a)for(var i=0,l=ite.length;i<l;i++){var c=ite[i],d=a.normal,v=a.emphasis;d&&d[c]&&(Ga("itemStyle.normal."+c,c),s[c]=s[c]||{},s[c].normal?le(s[c].normal,d[c]):s[c].normal=d[c],d[c]=null),v&&v[c]&&(Ga("itemStyle.emphasis."+c,"emphasis."+c),s[c]=s[c]||{},s[c].emphasis?le(s[c].emphasis,v[c]):s[c].emphasis=v[c],v[c]=null)}}function pc(s,a,i){if(s&&s[a]&&(s[a].normal||s[a].emphasis)){var l=s[a].normal,c=s[a].emphasis;l&&(nl("'normal' hierarchy in "+a+" has been removed since 4.0. All style properties are configured in "+a+" directly now."),i?(s[a].normal=s[a].emphasis=null,he(s[a],l)):s[a]=l),c&&(nl(a+".emphasis has been changed to emphasis."+a+" since 4.0"),s.emphasis=s.emphasis||{},s.emphasis[a]=c,c.focus&&(s.emphasis.focus=c.focus),c.blurScope&&(s.emphasis.blurScope=c.blurScope))}}function eC(s){pc(s,"itemStyle"),pc(s,"lineStyle"),pc(s,"areaStyle"),pc(s,"label"),pc(s,"labelLine"),pc(s,"upperLabel"),pc(s,"edgeLabel")}function sl(s,a){var i=Jx(s)&&s[a],l=Jx(i)&&i.textStyle;if(l){nl("textStyle hierarchy in "+a+" has been removed since 4.0. All textStyle properties are configured in "+a+" directly now.");for(var c=0,d=Vg.length;c<d;c++){var v=Vg[c];l.hasOwnProperty(v)&&(i[v]=l[v])}}}function id(s){s&&(eC(s),sl(s,"label"),s.emphasis&&sl(s.emphasis,"label"))}function j6e(s){if(Jx(s)){vN(s),eC(s),sl(s,"label"),sl(s,"upperLabel"),sl(s,"edgeLabel"),s.emphasis&&(sl(s.emphasis,"label"),sl(s.emphasis,"upperLabel"),sl(s.emphasis,"edgeLabel"));var a=s.markPoint;a&&(vN(a),id(a));var i=s.markLine;i&&(vN(i),id(i));var l=s.markArea;l&&id(l);var c=s.data;if(s.type==="graph"){c=c||s.nodes;var d=s.links||s.edges;if(d&&!Be(d))for(var v=0;v<d.length;v++)id(d[v]);ne(s.categories,function(S){eC(S)})}if(c&&!Be(c))for(var v=0;v<c.length;v++)id(c[v]);if(a=s.markPoint,a&&a.data)for(var m=a.data,v=0;v<m.length;v++)id(m[v]);if(i=s.markLine,i&&i.data)for(var w=i.data,v=0;v<w.length;v++)Qe(w[v])?(id(w[v][0]),id(w[v][1])):id(w[v]);s.type==="gauge"?(sl(s,"axisLabel"),sl(s,"title"),sl(s,"detail")):s.type==="treemap"?(pc(s.breadcrumb,"itemStyle"),ne(s.levels,function(S){eC(S)})):s.type==="tree"&&eC(s.leaves)}}function Up(s){return Qe(s)?s:s?[s]:[]}function ate(s){return(Qe(s)?s[0]:s)||{}}function q6e(s,a){nd(Up(s.series),function(l){Jx(l)&&j6e(l)});var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];a&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),nd(i,function(l){nd(Up(s[l]),function(c){c&&(sl(c,"axisLabel"),sl(c.axisPointer,"label"))})}),nd(Up(s.parallel),function(l){var c=l&&l.parallelAxisDefault;sl(c,"axisLabel"),sl(c&&c.axisPointer,"label")}),nd(Up(s.calendar),function(l){pc(l,"itemStyle"),sl(l,"dayLabel"),sl(l,"monthLabel"),sl(l,"yearLabel")}),nd(Up(s.radar),function(l){sl(l,"name"),l.name&&l.axisName==null&&(l.axisName=l.name,delete l.name,nl("name property in radar component has been changed to axisName")),l.nameGap!=null&&l.axisNameGap==null&&(l.axisNameGap=l.nameGap,delete l.nameGap,nl("nameGap property in radar component has been changed to axisNameGap")),nd(l.indicator,function(c){c.text&&Ga("text","name","radar.indicator")})}),nd(Up(s.geo),function(l){Jx(l)&&(id(l),nd(Up(l.regions),function(c){id(c)}))}),nd(Up(s.timeline),function(l){id(l),pc(l,"label"),pc(l,"itemStyle"),pc(l,"controlStyle",!0);var c=l.data;Qe(c)&&ne(c,function(d){Pe(d)&&(pc(d,"label"),pc(d,"itemStyle"))})}),nd(Up(s.toolbox),function(l){pc(l,"iconStyle"),nd(l.feature,function(c){pc(c,"iconStyle")})}),sl(ate(s.axisPointer),"label"),sl(ate(s.tooltip).axisPointer,"label")}function W6e(s,a){for(var i=a.split(","),l=s,c=0;c<i.length&&(l=l&&l[i[c]],l!=null);c++);return l}function $6e(s,a,i,l){for(var c=a.split(","),d=s,v,m=0;m<c.length-1;m++)v=c[m],d[v]==null&&(d[v]={}),d=d[v];d[c[m]]==null&&(d[c[m]]=i)}function ote(s){s&&ne(K6e,function(a){a[0]in s&&!(a[1]in s)&&(s[a[1]]=s[a[0]])})}var K6e=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Y6e=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],pN=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function tC(s){var a=s&&s.itemStyle;if(a)for(var i=0;i<pN.length;i++){var l=pN[i][1],c=pN[i][0];a[l]!=null&&(a[c]=a[l],Ga(l,c))}}function ste(s){s&&s.alignTo==="edge"&&s.margin!=null&&s.edgeDistance==null&&(Ga("label.margin","label.edgeDistance","pie"),s.edgeDistance=s.margin)}function lte(s){s&&s.downplay&&!s.blur&&(s.blur=s.downplay,Ga("downplay","blur","sunburst"))}function X6e(s){s&&s.focusNodeAdjacency!=null&&(s.emphasis=s.emphasis||{},s.emphasis.focus==null&&(Ga("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),s.emphasis.focus="adjacency"))}function ute(s,a){if(s)for(var i=0;i<s.length;i++)a(s[i]),s[i]&&ute(s[i].children,a)}function cte(s,a){q6e(s,a),s.series=Ni(s.series),ne(s.series,function(i){if(Pe(i)){var l=i.type;if(l==="line")i.clipOverflow!=null&&(i.clip=i.clipOverflow,Ga("clipOverflow","clip","line"));else if(l==="pie"||l==="gauge"){i.clockWise!=null&&(i.clockwise=i.clockWise,Ga("clockWise","clockwise")),ste(i.label);var c=i.data;if(c&&!Be(c))for(var d=0;d<c.length;d++)ste(c[d]);i.hoverOffset!=null&&(i.emphasis=i.emphasis||{},(i.emphasis.scaleSize=null)&&(Ga("hoverOffset","emphasis.scaleSize"),i.emphasis.scaleSize=i.hoverOffset))}else if(l==="gauge"){var v=W6e(i,"pointer.color");v!=null&&$6e(i,"itemStyle.color",v)}else if(l==="bar"){tC(i),tC(i.backgroundStyle),tC(i.emphasis);var c=i.data;if(c&&!Be(c))for(var d=0;d<c.length;d++)typeof c[d]=="object"&&(tC(c[d]),tC(c[d]&&c[d].emphasis))}else if(l==="sunburst"){var m=i.highlightPolicy;m&&(i.emphasis=i.emphasis||{},i.emphasis.focus||(i.emphasis.focus=m,Ga("highlightPolicy","emphasis.focus","sunburst"))),lte(i),ute(i.data,lte)}else l==="graph"||l==="sankey"?X6e(i):l==="map"&&(i.mapType&&!i.map&&(Ga("mapType","map","map"),i.map=i.mapType),i.mapLocation&&(nl("`mapLocation` is not used anymore."),he(i,i.mapLocation)));i.hoverAnimation!=null&&(i.emphasis=i.emphasis||{},i.emphasis&&i.emphasis.scale==null&&(Ga("hoverAnimation","emphasis.scale"),i.emphasis.scale=i.hoverAnimation)),ote(i)}}),s.dataRange&&(s.visualMap=s.dataRange),ne(Y6e,function(i){var l=s[i];l&&(Qe(l)||(l=[l]),ne(l,function(c){ote(c)}))})}function Z6e(s){var a=Ht();s.eachSeries(function(i){var l=i.get("stack");if(l){var c=a.get(l)||a.set(l,[]),d=i.getData(),v={stackResultDimension:d.getCalculationInfo("stackResultDimension"),stackedOverDimension:d.getCalculationInfo("stackedOverDimension"),stackedDimension:d.getCalculationInfo("stackedDimension"),stackedByDimension:d.getCalculationInfo("stackedByDimension"),isStackedByIndex:d.getCalculationInfo("isStackedByIndex"),data:d,seriesModel:i};if(!v.stackedDimension||!(v.isStackedByIndex||v.stackedByDimension))return;c.length&&d.setCalculationInfo("stackedOnSeries",c[c.length-1].seriesModel),c.push(v)}}),a.each(J6e)}function J6e(s){ne(s,function(a,i){var l=[],c=[NaN,NaN],d=[a.stackResultDimension,a.stackedOverDimension],v=a.data,m=a.isStackedByIndex,w=a.seriesModel.get("stackStrategy")||"samesign";v.modify(d,function(S,x,E){var M=v.get(a.stackedDimension,E);if(isNaN(M))return c;var D,k;m?k=v.getRawIndex(E):D=v.get(a.stackedByDimension,E);for(var Q=NaN,V=i-1;V>=0;V--){var $=s[V];if(m||(k=$.data.rawIndexOf($.stackedByDimension,D)),k>=0){var Z=$.data.getByRawIndex($.stackResultDimension,k);if(w==="all"||w==="positive"&&Z>0||w==="negative"&&Z<0||w==="samesign"&&M>=0&&Z>0||w==="samesign"&&M<=0&&Z<0){M=oc(M,Z),Q=Z;break}}}return l[0]=M,l[1]=Q,l})})}var EI=function(){function s(a){this.data=a.data||(a.sourceFormat===bv?{}:[]),this.sourceFormat=a.sourceFormat||jee,this.seriesLayoutBy=a.seriesLayoutBy||_v,this.startIndex=a.startIndex||0,this.dimensionsDetectedCount=a.dimensionsDetectedCount,this.metaRawOption=a.metaRawOption;var i=this.dimensionsDefine=a.dimensionsDefine;if(i)for(var l=0;l<i.length;l++){var c=i[l];c.type==null&&$ee(this,l)===Nu.Must&&(c.type="ordinal")}}return s}();function gN(s){return s instanceof EI}function mN(s,a,i){i=i||fte(s);var l=a.seriesLayoutBy,c=tHe(s,i,l,a.sourceHeader,a.dimensions),d=new EI({data:s,sourceFormat:i,seriesLayoutBy:l,dimensionsDefine:c.dimensionsDefine,startIndex:c.startIndex,dimensionsDetectedCount:c.dimensionsDetectedCount,metaRawOption:ae(a)});return d}function yN(s){return new EI({data:s,sourceFormat:Be(s)?Np:td})}function eHe(s){return new EI({data:s.data,sourceFormat:s.sourceFormat,seriesLayoutBy:s.seriesLayoutBy,dimensionsDefine:ae(s.dimensionsDefine),startIndex:s.startIndex,dimensionsDetectedCount:s.dimensionsDetectedCount})}function fte(s){var a=jee;if(Be(s))a=Np;else if(Qe(s)){s.length===0&&(a=vc);for(var i=0,l=s.length;i<l;i++){var c=s[i];if(c!=null){if(Qe(c)||Be(c)){a=vc;break}else if(Pe(c)){a=rd;break}}}}else if(Pe(s)){for(var d in s)if(At(s,d)&&Ce(s[d])){a=bv;break}}return a}function tHe(s,a,i,l,c){var d,v;if(!s)return{dimensionsDefine:hte(c),startIndex:v,dimensionsDetectedCount:d};if(a===vc){var m=s;l==="auto"||l==null?dte(function(S){S!=null&&S!=="-"&&(Re(S)?v==null&&(v=1):v=0)},i,m,10):v=Ge(l)?l:l?1:0,!c&&v===1&&(c=[],dte(function(S,x){c[x]=S!=null?S+"":""},i,m,1/0)),d=c?c.length:i===cb?m.length:m[0]?m[0].length:null}else if(a===rd)c||(c=rHe(s));else if(a===bv)c||(c=[],ne(s,function(S,x){c.push(x)}));else if(a===td){var w=rA(s[0]);d=Qe(w)&&w.length||1}else a===Np&&_t(!!c,"dimensions must be given if data is TypedArray.");return{startIndex:v,dimensionsDefine:hte(c),dimensionsDetectedCount:d}}function rHe(s){for(var a=0,i;a<s.length&&!(i=s[a++]););if(i)return Ne(i)}function hte(s){if(s){var a=Ht();return xe(s,function(i,l){i=Pe(i)?i:{name:i};var c={name:i.name,displayName:i.displayName,type:i.type};if(c.name==null)return c;c.name+="",c.displayName==null&&(c.displayName=c.name);var d=a.get(c.name);return d?c.name+="-"+d.count++:a.set(c.name,{count:1}),c})}}function dte(s,a,i,l){if(a===cb)for(var c=0;c<i.length&&c<l;c++)s(i[c]?i[c][0]:null,c);else for(var d=i[0]||[],c=0;c<d.length&&c<l;c++)s(d[c],c)}function Ate(s){var a=s.sourceFormat;return a===rd||a===bv}var s0,l0,u0,vte,pte,gte=function(){function s(a,i){var l=gN(a)?a:yN(a);this._source=l;var c=this._data=l.data;if(l.sourceFormat===Np){if(i==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=i,this._data=c}pte(this,c,l)}return s.prototype.getSource=function(){return this._source},s.prototype.count=function(){return 0},s.prototype.getItem=function(a,i){},s.prototype.appendData=function(a){},s.prototype.clean=function(){},s.protoInitialize=function(){var a=s.prototype;a.pure=!1,a.persistent=!0}(),s.internalField=function(){var a;pte=function(v,m,w){var S=w.sourceFormat,x=w.seriesLayoutBy,E=w.startIndex,M=w.dimensionsDefine,D=vte[bN(S,x)];if(_t(D,"Invalide sourceFormat: "+S),ie(v,D),S===Np)v.getItem=i,v.count=c,v.fillStorage=l;else{var k=yte(S,x);v.getItem=Ue(k,null,m,E,M);var Q=bte(S,x);v.count=Ue(Q,null,m,E,M)}};var i=function(v,m){v=v-this._offset,m=m||[];for(var w=this._data,S=this._dimSize,x=S*v,E=0;E<S;E++)m[E]=w[x+E];return m},l=function(v,m,w,S){for(var x=this._data,E=this._dimSize,M=0;M<E;M++){for(var D=S[M],k=D[0]==null?1/0:D[0],Q=D[1]==null?-1/0:D[1],V=m-v,$=w[M],Z=0;Z<V;Z++){var ee=x[Z*E+M];$[v+Z]=ee,ee<k&&(k=ee),ee>Q&&(Q=ee)}D[0]=k,D[1]=Q}},c=function(){return this._data?this._data.length/this._dimSize:0};vte=(a={},a[vc+"_"+_v]={pure:!0,appendData:d},a[vc+"_"+cb]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},a[rd]={pure:!0,appendData:d},a[bv]={pure:!0,appendData:function(v){var m=this._data;ne(v,function(w,S){for(var x=m[S]||(m[S]=[]),E=0;E<(w||[]).length;E++)x.push(w[E])})}},a[td]={appendData:d},a[Np]={persistent:!1,pure:!0,appendData:function(v){_t(Be(v),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=v},clean:function(){this._offset+=this.count(),this._data=null}},a);function d(v){for(var m=0;m<v.length;m++)this._data.push(v[m])}}(),s}(),mte=function(s,a,i,l){return s[l]},nHe=(s0={},s0[vc+"_"+_v]=function(s,a,i,l){return s[l+a]},s0[vc+"_"+cb]=function(s,a,i,l,c){l+=a;for(var d=c||[],v=s,m=0;m<v.length;m++){var w=v[m];d[m]=w?w[l]:null}return d},s0[rd]=mte,s0[bv]=function(s,a,i,l,c){for(var d=c||[],v=0;v<i.length;v++){var m=i[v].name;if(m==null)throw new Error;var w=s[m];d[v]=w?w[l]:null}return d},s0[td]=mte,s0);function yte(s,a){var i=nHe[bN(s,a)];return _t(i,'Do not support get item on "'+s+'", "'+a+'".'),i}var wte=function(s,a,i){return s.length},iHe=(l0={},l0[vc+"_"+_v]=function(s,a,i){return Math.max(0,s.length-a)},l0[vc+"_"+cb]=function(s,a,i){var l=s[0];return l?Math.max(0,l.length-a):0},l0[rd]=wte,l0[bv]=function(s,a,i){var l=i[0].name;if(l==null)throw new Error;var c=s[l];return c?c.length:0},l0[td]=wte,l0);function bte(s,a){var i=iHe[bN(s,a)];return _t(i,'Do not support count on "'+s+'", "'+a+'".'),i}var wN=function(s,a,i){return s[a]},aHe=(u0={},u0[vc]=wN,u0[rd]=function(s,a,i){return s[i]},u0[bv]=wN,u0[td]=function(s,a,i){var l=rA(s);return l instanceof Array?l[a]:l},u0[Np]=wN,u0);function _te(s){var a=aHe[s];return _t(a,'Do not support get value on "'+s+'".'),a}function bN(s,a){return s===vc?s+"_"+a:s}function fb(s,a,i){if(s){var l=s.getRawDataItem(a);if(l!=null){var c=s.getStore(),d=c.getSource().sourceFormat;if(i!=null){var v=s.getDimensionIndex(i),m=c.getDimensionProperty(v);return _te(d)(l,v,m)}else{var w=l;return d===td&&(w=rA(l)),w}}}}var oHe=/\{@(.+?)\}/g,BI=function(){function s(){}return s.prototype.getDataParams=function(a,i){var l=this.getData(i),c=this.getRawValue(a,i),d=l.getRawIndex(a),v=l.getName(a),m=l.getRawDataItem(a),w=l.getItemVisual(a,"style"),S=w&&w[l.getItemVisual(a,"drawType")||"fill"],x=w&&w.stroke,E=this.mainType,M=E==="series",D=l.userOutput&&l.userOutput.get();return{componentType:E,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:M?this.subType:null,seriesIndex:this.seriesIndex,seriesId:M?this.id:null,seriesName:M?this.name:null,name:v,dataIndex:d,data:m,dataType:i,value:c,color:S,borderColor:x,dimensionNames:D?D.fullDimensions:null,encode:D?D.encode:null,$vars:["seriesName","name","value"]}},s.prototype.getFormattedLabel=function(a,i,l,c,d,v){i=i||"normal";var m=this.getData(l),w=this.getDataParams(a,l);if(v&&(w.value=v.interpolatedValue),c!=null&&Qe(w.value)&&(w.value=w.value[c]),!d){var S=m.getItemModel(a);d=S.get(i==="normal"?["label","formatter"]:[i,"label","formatter"])}if(qe(d))return w.status=i,w.dimensionIndex=c,d(w);if(Re(d)){var x=iN(d,w);return x.replace(oHe,function(E,M){var D=M.length,k=M;k.charAt(0)==="["&&k.charAt(D-1)==="]"&&(k=+k.slice(1,D-1),isNaN(k)&&rs("Invalide label formatter: @"+M+", only support @[0], @[1], @[2], ..."));var Q=fb(m,a,k);if(v&&Qe(v.interpolatedValue)){var V=m.getDimensionIndex(k);V>=0&&(Q=v.interpolatedValue[V])}return Q!=null?Q+"":""})}},s.prototype.getRawValue=function(a,i){return fb(this.getData(i),a)},s.prototype.formatTooltip=function(a,i,l){},s}();function Ste(s){var a,i;return Pe(s)?s.type?i=s:console.warn("The return type of `formatTooltip` is not supported: "+Do(s)):a=s,{text:a,frag:i}}function rC(s){return new sHe(s)}var sHe=function(){function s(a){a=a||{},this._reset=a.reset,this._plan=a.plan,this._count=a.count,this._onDirty=a.onDirty,this._dirty=!0}return s.prototype.perform=function(a){var i=this._upstream,l=a&&a.skip;if(this._dirty&&i){var c=this.context;c.data=c.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var d;this._plan&&!l&&(d=this._plan(this.context));var v=x(this._modBy),m=this._modDataCount||0,w=x(a&&a.modBy),S=a&&a.modDataCount||0;(v!==w||m!==S)&&(d="reset");function x(Z){return!(Z>=1)&&(Z=1),Z}var E;(this._dirty||d==="reset")&&(this._dirty=!1,E=this._doReset(l)),this._modBy=w,this._modDataCount=S;var M=a&&a.step;if(i?(_t(i._outputDueEnd!=null),this._dueEnd=i._outputDueEnd):(_t(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var D=this._dueIndex,k=Math.min(M!=null?this._dueIndex+M:1/0,this._dueEnd);if(!l&&(E||D<k)){var Q=this._progress;if(Qe(Q))for(var V=0;V<Q.length;V++)this._doProgress(Q[V],D,k,w,S);else this._doProgress(Q,D,k,w,S)}this._dueIndex=k;var $=this._settedOutputEnd!=null?this._settedOutputEnd:k;_t($>=this._outputDueEnd),this._outputDueEnd=$}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},s.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},s.prototype._doProgress=function(a,i,l,c,d){xte.reset(i,l,c,d),this._callingProgress=a,this._callingProgress({start:i,end:l,count:l-i,next:xte.next},this.context)},s.prototype._doReset=function(a){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var i,l;!a&&this._reset&&(i=this._reset(this.context),i&&i.progress&&(l=i.forceFirstProgress,i=i.progress),Qe(i)&&!i.length&&(i=null)),this._progress=i,this._modBy=this._modDataCount=null;var c=this._downstream;return c&&c.dirty(),l},s.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},s.prototype.pipe=function(a){_t(a&&!a._disposed&&a!==this),(this._downstream!==a||this._dirty)&&(this._downstream=a,a._upstream=this,a.dirty())},s.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},s.prototype.getUpstream=function(){return this._upstream},s.prototype.getDownstream=function(){return this._downstream},s.prototype.setOutputEnd=function(a){this._outputDueEnd=this._settedOutputEnd=a},s}(),xte=function(){var s,a,i,l,c,d={reset:function(w,S,x,E){a=w,s=S,i=x,l=E,c=Math.ceil(l/i),d.next=i>1&&l>0?m:v}};return d;function v(){return a<s?a++:null}function m(){var w=a%c*i+Math.ceil(a/c),S=a>=s?null:w<l?w:a;return a++,S}}();function um(s,a){var i=a&&a.type;return i==="ordinal"?s:(i==="time"&&!Ge(s)&&s!=null&&s!=="-"&&(s=+Na(s)),s==null||s===""?NaN:Number(s))}var lHe=Ht({number:function(s){return parseFloat(s)},time:function(s){return+Na(s)},trim:function(s){return Re(s)?br(s):s}});function Cte(s){return lHe.get(s)}var Tte={lt:function(s,a){return s<a},lte:function(s,a){return s<=a},gt:function(s,a){return s>a},gte:function(s,a){return s>=a}},uHe=function(){function s(a,i){if(!Ge(i)){var l="";l='rvalue of "<", ">", "<=", ">=" can only be number in filter.',Fi(l)}this._opFn=Tte[a],this._rvalFloat=yu(i)}return s.prototype.evaluate=function(a){return Ge(a)?this._opFn(a,this._rvalFloat):this._opFn(yu(a),this._rvalFloat)},s}(),Ete=function(){function s(a,i){var l=a==="desc";this._resultLT=l?1:-1,i==null&&(i=l?"min":"max"),this._incomparable=i==="min"?-1/0:1/0}return s.prototype.evaluate=function(a,i){var l=Ge(a)?a:yu(a),c=Ge(i)?i:yu(i),d=isNaN(l),v=isNaN(c);if(d&&(l=this._incomparable),v&&(c=this._incomparable),d&&v){var m=Re(a),w=Re(i);m&&(l=w?a:0),w&&(c=m?i:0)}return l<c?this._resultLT:l>c?-this._resultLT:0},s}(),cHe=function(){function s(a,i){this._rval=i,this._isEQ=a,this._rvalTypeof=typeof i,this._rvalFloat=yu(i)}return s.prototype.evaluate=function(a){var i=a===this._rval;if(!i){var l=typeof a;l!==this._rvalTypeof&&(l==="number"||this._rvalTypeof==="number")&&(i=yu(a)===this._rvalFloat)}return this._isEQ?i:!i},s}();function fHe(s,a){return s==="eq"||s==="ne"?new cHe(s==="eq",a):At(Tte,s)?new uHe(s,a):null}var hHe=function(){function s(){}return s.prototype.getRawData=function(){throw new Error("not supported")},s.prototype.getRawDataItem=function(a){throw new Error("not supported")},s.prototype.cloneRawData=function(){},s.prototype.getDimensionInfo=function(a){},s.prototype.cloneAllDimensionInfo=function(){},s.prototype.count=function(){},s.prototype.retrieveValue=function(a,i){},s.prototype.retrieveValueFromItem=function(a,i){},s.prototype.convertValue=function(a,i){return um(a,i)},s}();function dHe(s,a){var i=new hHe,l=s.data,c=i.sourceFormat=s.sourceFormat,d=s.startIndex,v="";s.seriesLayoutBy!==_v&&(v='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.',Fi(v));var m=[],w={},S=s.dimensionsDefine;if(S)ne(S,function(Q,V){var $=Q.name,Z={index:V,name:$,displayName:Q.displayName};if(m.push(Z),$!=null){var ee="";At(w,$)&&(ee='dimension name "'+$+'" duplicated.',Fi(ee)),w[$]=Z}});else for(var x=0;x<s.dimensionsDetectedCount;x++)m.push({index:x});var E=yte(c,_v);a.__isBuiltIn&&(i.getRawDataItem=function(Q){return E(l,d,m,Q)},i.getRawData=Ue(AHe,null,s)),i.cloneRawData=Ue(vHe,null,s);var M=bte(c,_v);i.count=Ue(M,null,l,d,m);var D=_te(c);i.retrieveValue=function(Q,V){var $=E(l,d,m,Q);return k($,V)};var k=i.retrieveValueFromItem=function(Q,V){if(Q!=null){var $=m[V];if($)return D(Q,V,$.name)}};return i.getDimensionInfo=Ue(pHe,null,m,w),i.cloneAllDimensionInfo=Ue(gHe,null,m),i}function AHe(s){var a=s.sourceFormat;if(!_N(a)){var i="";i="`getRawData` is not supported in source format "+a,Fi(i)}return s.data}function vHe(s){var a=s.sourceFormat,i=s.data;if(!_N(a)){var l="";l="`cloneRawData` is not supported in source format "+a,Fi(l)}if(a===vc){for(var c=[],d=0,v=i.length;d<v;d++)c.push(i[d].slice());return c}else if(a===rd){for(var c=[],d=0,v=i.length;d<v;d++)c.push(ie({},i[d]));return c}}function pHe(s,a,i){if(i!=null){if(Ge(i)||!isNaN(i)&&!At(a,i))return s[i];if(At(a,i))return a[i]}}function gHe(s){return ae(s)}var Bte=Ht();function mHe(s){s=ae(s);var a=s.type,i="";a||(i="Must have a `type` when `registerTransform`.",Fi(i));var l=a.split(":");l.length!==2&&(i='Name must include namespace like "ns:regression".',Fi(i));var c=!1;l[0]==="echarts"&&(a=l[1],c=!0),s.__isBuiltIn=c,Bte.set(a,s)}function yHe(s,a,i){var l=Ni(s),c=l.length,d="";c||(d="If `transform` declared, it should at least contain one transform.",Fi(d));for(var v=0,m=c;v<m;v++){var w=l[v];a=wHe(w,a,i,c===1?null:v),v!==m-1&&(a.length=Math.max(a.length,1))}return a}function wHe(s,a,i,l){var c="";a.length||(c="Must have at least one upstream dataset.",Fi(c)),Pe(s)||(c="transform declaration must be an object rather than "+typeof s+".",Fi(c));var d=s.type,v=Bte.get(d);v||(c='Can not find transform on type "'+d+'".',Fi(c));var m=xe(a,function(x){return dHe(x,v)}),w=Ni(v.transform({upstream:m[0],upstreamList:m,config:ae(s.config)}));if(s.print){var S=xe(w,function(x){var E=l!=null?" === pipe index: "+l:"";return["=== dataset index: "+i.datasetIndex+E+" ===","- transform result data:",Do(x.data),"- transform result dimensions:",Do(x.dimensions)].join(`
`)}).join(`
`);ky(S)}return xe(w,function(x,E){var M="";Pe(x)||(M="A transform should not return some empty results.",Fi(M)),x.data||(M="Transform result data should be not be null or undefined",Fi(M));var D=fte(x.data);_N(D)||(M="Transform result data should be array rows or object rows.",Fi(M));var k,Q=a[0];if(Q&&E===0&&!x.dimensions){var V=Q.startIndex;V&&(x.data=Q.data.slice(0,V).concat(x.data)),k={seriesLayoutBy:_v,sourceHeader:V,dimensions:Q.metaRawOption.dimensions}}else k={seriesLayoutBy:_v,sourceHeader:0,dimensions:x.dimensions};return mN(x.data,k,null)})}function _N(s){return s===vc||s===rd}var II="undefined",bHe=typeof Uint32Array===II?Array:Uint32Array,_He=typeof Uint16Array===II?Array:Uint16Array,Ite=typeof Int32Array===II?Array:Int32Array,Lte=typeof Float64Array===II?Array:Float64Array,Mte={float:Lte,int:Ite,ordinal:Array,number:Array,time:Lte},SN;function hb(s){return s>65535?bHe:_He}function db(){return[1/0,-1/0]}function SHe(s){var a=s.constructor;return a===Array?s.slice():new a(s)}function Dte(s,a,i,l,c){var d=Mte[i||"float"];if(c){var v=s[a],m=v&&v.length;if(m!==l){for(var w=new d(l),S=0;S<m;S++)w[S]=v[S];s[a]=w}}else s[a]=new d(l)}var xN=function(){function s(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Ht()}return s.prototype.initData=function(a,i,l){_t(qe(a.getItem)&&qe(a.count),"Invalid data provider."),this._provider=a,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var c=a.getSource(),d=this.defaultDimValueGetter=SN[c.sourceFormat];this._dimValueGetter=l||d,this._rawExtent=[];var v=Ate(c);this._dimensions=xe(i,function(m){return v&&_t(m.property!=null),{type:m.type,property:m.property}}),this._initDataFromProvider(0,a.count())},s.prototype.getProvider=function(){return this._provider},s.prototype.getSource=function(){return this._provider.getSource()},s.prototype.ensureCalculationDimension=function(a,i){var l=this._calcDimNameToIdx,c=this._dimensions,d=l.get(a);if(d!=null){if(c[d].type===i)return d}else d=c.length;return c[d]={type:i},l.set(a,d),this._chunks[d]=new Mte[i||"float"](this._rawCount),this._rawExtent[d]=db(),d},s.prototype.collectOrdinalMeta=function(a,i){var l=this._chunks[a],c=this._dimensions[a],d=this._rawExtent,v=c.ordinalOffset||0,m=l.length;v===0&&(d[a]=db());for(var w=d[a],S=v;S<m;S++){var x=l[S]=i.parseAndCollect(l[S]);isNaN(x)||(w[0]=Math.min(x,w[0]),w[1]=Math.max(x,w[1]))}c.ordinalMeta=i,c.ordinalOffset=m,c.type="ordinal"},s.prototype.getOrdinalMeta=function(a){var i=this._dimensions[a],l=i.ordinalMeta;return l},s.prototype.getDimensionProperty=function(a){var i=this._dimensions[a];return i&&i.property},s.prototype.appendData=function(a){_t(!this._indices,"appendData can only be called on raw data.");var i=this._provider,l=this.count();i.appendData(a);var c=i.count();return i.persistent||(c+=l),l<c&&this._initDataFromProvider(l,c,!0),[l,c]},s.prototype.appendValues=function(a,i){for(var l=this._chunks,c=this._dimensions,d=c.length,v=this._rawExtent,m=this.count(),w=m+Math.max(a.length,i||0),S=0;S<d;S++){var x=c[S];Dte(l,S,x.type,w,!0)}for(var E=[],M=m;M<w;M++)for(var D=M-m,k=0;k<d;k++){var x=c[k],Q=SN.arrayRows.call(this,a[D]||E,x.property,D,k);l[k][M]=Q;var V=v[k];Q<V[0]&&(V[0]=Q),Q>V[1]&&(V[1]=Q)}return this._rawCount=this._count=w,{start:m,end:w}},s.prototype._initDataFromProvider=function(a,i,l){for(var c=this._provider,d=this._chunks,v=this._dimensions,m=v.length,w=this._rawExtent,S=xe(v,function(Z){return Z.property}),x=0;x<m;x++){var E=v[x];w[x]||(w[x]=db()),Dte(d,x,E.type,i,l)}if(c.fillStorage)c.fillStorage(a,i,d,w);else for(var M=[],D=a;D<i;D++){M=c.getItem(D,M);for(var k=0;k<m;k++){var Q=d[k],V=this._dimValueGetter(M,S[k],D,k);Q[D]=V;var $=w[k];V<$[0]&&($[0]=V),V>$[1]&&($[1]=V)}}!c.persistent&&c.clean&&c.clean(),this._rawCount=this._count=i,this._extent=[]},s.prototype.count=function(){return this._count},s.prototype.get=function(a,i){if(!(i>=0&&i<this._count))return NaN;var l=this._chunks[a];return l?l[this.getRawIndex(i)]:NaN},s.prototype.getValues=function(a,i){var l=[],c=[];if(i==null){i=a,a=[];for(var d=0;d<this._dimensions.length;d++)c.push(d)}else c=a;for(var d=0,v=c.length;d<v;d++)l.push(this.get(c[d],i));return l},s.prototype.getByRawIndex=function(a,i){if(!(i>=0&&i<this._rawCount))return NaN;var l=this._chunks[a];return l?l[i]:NaN},s.prototype.getSum=function(a){var i=this._chunks[a],l=0;if(i)for(var c=0,d=this.count();c<d;c++){var v=this.get(a,c);isNaN(v)||(l+=v)}return l},s.prototype.getMedian=function(a){var i=[];this.each([a],function(d){isNaN(d)||i.push(d)});var l=i.sort(function(d,v){return d-v}),c=this.count();return c===0?0:c%2===1?l[(c-1)/2]:(l[c/2]+l[c/2-1])/2},s.prototype.indexOfRawIndex=function(a){if(a>=this._rawCount||a<0)return-1;if(!this._indices)return a;var i=this._indices,l=i[a];if(l!=null&&l<this._count&&l===a)return a;for(var c=0,d=this._count-1;c<=d;){var v=(c+d)/2|0;if(i[v]<a)c=v+1;else if(i[v]>a)d=v-1;else return v}return-1},s.prototype.indicesOfNearest=function(a,i,l){var c=this._chunks,d=c[a],v=[];if(!d)return v;l==null&&(l=1/0);for(var m=1/0,w=-1,S=0,x=0,E=this.count();x<E;x++){var M=this.getRawIndex(x),D=i-d[M],k=Math.abs(D);k<=l&&((k<m||k===m&&D>=0&&w<0)&&(m=k,w=D,S=0),D===w&&(v[S++]=x))}return v.length=S,v},s.prototype.getIndices=function(){var a,i=this._indices;if(i){var l=i.constructor,c=this._count;if(l===Array){a=new l(c);for(var d=0;d<c;d++)a[d]=i[d]}else a=new l(i.buffer,0,c)}else{var l=hb(this._rawCount);a=new l(this.count());for(var d=0;d<a.length;d++)a[d]=d}return a},s.prototype.filter=function(a,i){if(!this._count)return this;for(var l=this.clone(),c=l.count(),d=hb(l._rawCount),v=new d(c),m=[],w=a.length,S=0,x=a[0],E=l._chunks,M=0;M<c;M++){var D=void 0,k=l.getRawIndex(M);if(w===0)D=i(M);else if(w===1){var Q=E[x][k];D=i(Q,M)}else{for(var V=0;V<w;V++)m[V]=E[a[V]][k];m[V]=M,D=i.apply(null,m)}D&&(v[S++]=k)}return S<c&&(l._indices=v),l._count=S,l._extent=[],l._updateGetRawIdx(),l},s.prototype.selectRange=function(a){var i=this.clone(),l=i._count;if(!l)return this;var c=Ne(a),d=c.length;if(!d)return this;var v=i.count(),m=hb(i._rawCount),w=new m(v),S=0,x=c[0],E=a[x][0],M=a[x][1],D=i._chunks,k=!1;if(!i._indices){var Q=0;if(d===1){for(var V=D[c[0]],$=0;$<l;$++){var Z=V[$];(Z>=E&&Z<=M||isNaN(Z))&&(w[S++]=Q),Q++}k=!0}else if(d===2){for(var V=D[c[0]],ee=D[c[1]],fe=a[c[1]][0],ve=a[c[1]][1],$=0;$<l;$++){var Z=V[$],ge=ee[$];(Z>=E&&Z<=M||isNaN(Z))&&(ge>=fe&&ge<=ve||isNaN(ge))&&(w[S++]=Q),Q++}k=!0}}if(!k)if(d===1)for(var $=0;$<v;$++){var Se=i.getRawIndex($),Z=D[c[0]][Se];(Z>=E&&Z<=M||isNaN(Z))&&(w[S++]=Se)}else for(var $=0;$<v;$++){for(var Ee=!0,Se=i.getRawIndex($),Ie=0;Ie<d;Ie++){var Le=c[Ie],Z=D[Le][Se];(Z<a[Le][0]||Z>a[Le][1])&&(Ee=!1)}Ee&&(w[S++]=i.getRawIndex($))}return S<v&&(i._indices=w),i._count=S,i._extent=[],i._updateGetRawIdx(),i},s.prototype.map=function(a,i){var l=this.clone(a);return this._updateDims(l,a,i),l},s.prototype.modify=function(a,i){this._updateDims(this,a,i)},s.prototype._updateDims=function(a,i,l){for(var c=a._chunks,d=[],v=i.length,m=a.count(),w=[],S=a._rawExtent,x=0;x<i.length;x++)S[i[x]]=db();for(var E=0;E<m;E++){for(var M=a.getRawIndex(E),D=0;D<v;D++)w[D]=c[i[D]][M];w[v]=E;var k=l&&l.apply(null,w);if(k!=null){typeof k!="object"&&(d[0]=k,k=d);for(var x=0;x<k.length;x++){var Q=i[x],V=k[x],$=S[Q],Z=c[Q];Z&&(Z[M]=V),V<$[0]&&($[0]=V),V>$[1]&&($[1]=V)}}}},s.prototype.lttbDownSample=function(a,i){var l=this.clone([a],!0),c=l._chunks,d=c[a],v=this.count(),m=0,w=Math.floor(1/i),S=this.getRawIndex(0),x,E,M,D=new(hb(this._rawCount))(Math.min((Math.ceil(v/w)+2)*2,v));D[m++]=S;for(var k=1;k<v-1;k+=w){for(var Q=Math.min(k+w,v-1),V=Math.min(k+w*2,v),$=(V+Q)/2,Z=0,ee=Q;ee<V;ee++){var fe=this.getRawIndex(ee),ve=d[fe];isNaN(ve)||(Z+=ve)}Z/=V-Q;var ge=k,Se=Math.min(k+w,v),Ee=k-1,Ie=d[S];x=-1,M=ge;for(var Le=-1,Fe=0,ee=ge;ee<Se;ee++){var fe=this.getRawIndex(ee),ve=d[fe];if(isNaN(ve)){Fe++,Le<0&&(Le=fe);continue}E=Math.abs((Ee-$)*(ve-Ie)-(Ee-ee)*(Z-Ie)),E>x&&(x=E,M=fe)}Fe>0&&Fe<Se-ge&&(D[m++]=Math.min(Le,M),M=Math.max(Le,M)),D[m++]=M,S=M}return D[m++]=this.getRawIndex(v-1),l._count=m,l._indices=D,l.getRawIndex=this._getRawIdx,l},s.prototype.minmaxDownSample=function(a,i){for(var l=this.clone([a],!0),c=l._chunks,d=Math.floor(1/i),v=c[a],m=this.count(),w=new(hb(this._rawCount))(Math.ceil(m/d)*2),S=0,x=0;x<m;x+=d){var E=x,M=v[this.getRawIndex(E)],D=x,k=v[this.getRawIndex(D)],Q=d;x+d>m&&(Q=m-x);for(var V=0;V<Q;V++){var $=this.getRawIndex(x+V),Z=v[$];Z<M&&(M=Z,E=x+V),Z>k&&(k=Z,D=x+V)}var ee=this.getRawIndex(E),fe=this.getRawIndex(D);E<D?(w[S++]=ee,w[S++]=fe):(w[S++]=fe,w[S++]=ee)}return l._count=S,l._indices=w,l._updateGetRawIdx(),l},s.prototype.downSample=function(a,i,l,c){for(var d=this.clone([a],!0),v=d._chunks,m=[],w=Math.floor(1/i),S=v[a],x=this.count(),E=d._rawExtent[a]=db(),M=new(hb(this._rawCount))(Math.ceil(x/w)),D=0,k=0;k<x;k+=w){w>x-k&&(w=x-k,m.length=w);for(var Q=0;Q<w;Q++){var V=this.getRawIndex(k+Q);m[Q]=S[V]}var $=l(m),Z=this.getRawIndex(Math.min(k+c(m,$)||0,x-1));S[Z]=$,$<E[0]&&(E[0]=$),$>E[1]&&(E[1]=$),M[D++]=Z}return d._count=D,d._indices=M,d._updateGetRawIdx(),d},s.prototype.each=function(a,i){if(this._count)for(var l=a.length,c=this._chunks,d=0,v=this.count();d<v;d++){var m=this.getRawIndex(d);switch(l){case 0:i(d);break;case 1:i(c[a[0]][m],d);break;case 2:i(c[a[0]][m],c[a[1]][m],d);break;default:for(var w=0,S=[];w<l;w++)S[w]=c[a[w]][m];S[w]=d,i.apply(null,S)}}},s.prototype.getDataExtent=function(a){var i=this._chunks[a],l=db();if(!i)return l;var c=this.count(),d=!this._indices,v;if(d)return this._rawExtent[a].slice();if(v=this._extent[a],v)return v.slice();v=l;for(var m=v[0],w=v[1],S=0;S<c;S++){var x=this.getRawIndex(S),E=i[x];E<m&&(m=E),E>w&&(w=E)}return v=[m,w],this._extent[a]=v,v},s.prototype.getRawDataItem=function(a){var i=this.getRawIndex(a);if(this._provider.persistent)return this._provider.getItem(i);for(var l=[],c=this._chunks,d=0;d<c.length;d++)l.push(c[d][i]);return l},s.prototype.clone=function(a,i){var l=new s,c=this._chunks,d=a&&De(a,function(m,w){return m[w]=!0,m},{});if(d)for(var v=0;v<c.length;v++)l._chunks[v]=d[v]?SHe(c[v]):c[v];else l._chunks=c;return this._copyCommonProps(l),i||(l._indices=this._cloneIndices()),l._updateGetRawIdx(),l},s.prototype._copyCommonProps=function(a){a._count=this._count,a._rawCount=this._rawCount,a._provider=this._provider,a._dimensions=this._dimensions,a._extent=ae(this._extent),a._rawExtent=ae(this._rawExtent)},s.prototype._cloneIndices=function(){if(this._indices){var a=this._indices.constructor,i=void 0;if(a===Array){var l=this._indices.length;i=new a(l);for(var c=0;c<l;c++)i[c]=this._indices[c]}else i=new a(this._indices);return i}return null},s.prototype._getRawIdxIdentity=function(a){return a},s.prototype._getRawIdx=function(a){return a<this._count&&a>=0?this._indices[a]:-1},s.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},s.internalField=function(){function a(i,l,c,d){return um(i[d],this._dimensions[d])}SN={arrayRows:a,objectRows:function(i,l,c,d){return um(i[l],this._dimensions[d])},keyedColumns:a,original:function(i,l,c,d){var v=i&&(i.value==null?i:i.value);return um(v instanceof Array?v[d]:v,this._dimensions[d])},typedArray:function(i,l,c,d){return i[d]}}}(),s}(),Rte=function(){function s(a){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=a}return s.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},s.prototype._setLocalSource=function(a,i){this._sourceList=a,this._upstreamSignList=i,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},s.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},s.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},s.prototype._createSource=function(){this._setLocalSource([],[]);var a=this._sourceHost,i=this._getUpstreamSourceManagers(),l=!!i.length,c,d;if(nC(a)){var v=a,m=void 0,w=void 0,S=void 0;if(l){var x=i[0];x.prepareSource(),S=x.getSource(),m=S.data,w=S.sourceFormat,d=[x._getVersionSign()]}else m=v.get("data",!0),w=Be(m)?Np:td,d=[];var E=this._getSourceMetaRawOption()||{},M=S&&S.metaRawOption||{},D=It(E.seriesLayoutBy,M.seriesLayoutBy)||null,k=It(E.sourceHeader,M.sourceHeader),Q=It(E.dimensions,M.dimensions),V=D!==M.seriesLayoutBy||!!k!=!!M.sourceHeader||Q;c=V?[mN(m,{seriesLayoutBy:D,sourceHeader:k,dimensions:Q},w)]:[]}else{var $=a;if(l){var Z=this._applyTransform(i);c=Z.sourceList,d=Z.upstreamSignList}else{var ee=$.get("source",!0);c=[mN(ee,this._getSourceMetaRawOption(),null)],d=[]}}_t(c&&d),this._setLocalSource(c,d)},s.prototype._applyTransform=function(a){var i=this._sourceHost,l=i.get("transform",!0),c=i.get("fromTransformResult",!0);if(_t(c!=null||l!=null),c!=null){var d="";a.length!==1&&(d="When using `fromTransformResult`, there should be only one upstream dataset",Ote(d))}var v,m=[],w=[];return ne(a,function(S){S.prepareSource();var x=S.getSource(c||0),E="";c!=null&&!x&&(E="Can not retrieve result by `fromTransformResult`: "+c,Ote(E)),m.push(x),w.push(S._getVersionSign())}),l?v=yHe(l,m,{datasetIndex:i.componentIndex}):c!=null&&(v=[eHe(m[0])]),{sourceList:v,upstreamSignList:w}},s.prototype._isDirty=function(){if(this._dirty)return!0;for(var a=this._getUpstreamSourceManagers(),i=0;i<a.length;i++){var l=a[i];if(l._isDirty()||this._upstreamSignList[i]!==l._getVersionSign())return!0}},s.prototype.getSource=function(a){a=a||0;var i=this._sourceList[a];if(!i){var l=this._getUpstreamSourceManagers();return l[0]&&l[0].getSource(a)}return i},s.prototype.getSharedDataStore=function(a){_t(nC(this._sourceHost),"Can only call getDataStore on series source manager.");var i=a.makeStoreSchema();return this._innerGetDataStore(i.dimensions,a.source,i.hash)},s.prototype._innerGetDataStore=function(a,i,l){var c=0,d=this._storeList,v=d[c];v||(v=d[c]={});var m=v[l];if(!m){var w=this._getUpstreamSourceManagers()[0];nC(this._sourceHost)&&w?m=w._innerGetDataStore(a,i,l):(m=new xN,m.initData(new gte(i,a.length),a)),v[l]=m}return m},s.prototype._getUpstreamSourceManagers=function(){var a=this._sourceHost;if(nC(a)){var i=lN(a);return i?[i.getSourceManager()]:[]}else return xe(E6e(a),function(l){return l.getSourceManager()})},s.prototype._getSourceMetaRawOption=function(){var a=this._sourceHost,i,l,c;if(nC(a))i=a.get("seriesLayoutBy",!0),l=a.get("sourceHeader",!0),c=a.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var d=a;i=d.get("seriesLayoutBy",!0),l=d.get("sourceHeader",!0),c=d.get("dimensions",!0)}return{seriesLayoutBy:i,sourceHeader:l,dimensions:c}},s}();function Pte(s){var a=s.option.transform;a&&Br(s.option.transform)}function nC(s){return s.mainType==="series"}function Ote(s){throw new Error(s)}var xHe="line-height:1";function kte(s){var a=s.lineHeight;return a==null?xHe:"line-height:"+yo(a+"")+"px"}function Fte(s,a){var i=s.color||"#6e7079",l=s.fontSize||12,c=s.fontWeight||"400",d=s.color||"#464646",v=s.fontSize||14,m=s.fontWeight||"900";return a==="html"?{nameStyle:"font-size:"+yo(l+"")+"px;color:"+yo(i)+";font-weight:"+yo(c+""),valueStyle:"font-size:"+yo(v+"")+"px;color:"+yo(d)+";font-weight:"+yo(m+"")}:{nameStyle:{fontSize:l,fill:i,fontWeight:c},valueStyle:{fontSize:v,fill:d,fontWeight:m}}}var CHe=[0,10,20,30],THe=["",`
`,`
`,`
`];function tu(s,a){return a.type=s,a}function CN(s){return s.type==="section"}function Nte(s){return CN(s)?EHe:BHe}function Ute(s){if(CN(s)){var a=0,i=s.blocks.length,l=i>1||i>0&&!s.noHeader;return ne(s.blocks,function(c){var d=Ute(c);d>=a&&(a=d+ +(l&&(!d||CN(c)&&!c.noHeader)))}),a}return 0}function EHe(s,a,i,l){var c=a.noHeader,d=IHe(Ute(a)),v=[],m=a.blocks||[];_t(!m||Qe(m)),m=m||[];var w=s.orderMode;if(a.sortBlocks&&w){m=m.slice();var S={valueAsc:"asc",valueDesc:"desc"};if(At(S,w)){var x=new Ete(S[w],null);m.sort(function(Q,V){return x.evaluate(Q.sortParam,V.sortParam)})}else w==="seriesDesc"&&m.reverse()}ne(m,function(Q,V){var $=a.valueFormatter,Z=Nte(Q)($?ie(ie({},s),{valueFormatter:$}):s,Q,V>0?d.html:0,l);Z!=null&&v.push(Z)});var E=s.renderMode==="richText"?v.join(d.richText):TN(l,v.join(""),c?i:d.html);if(c)return E;var M=rN(a.header,"ordinal",s.useUTC),D=Fte(l,s.renderMode).nameStyle,k=kte(l);return s.renderMode==="richText"?Qte(s,M,D)+d.richText+E:TN(l,'<div style="'+D+";"+k+';">'+yo(M)+"</div>"+E,i)}function BHe(s,a,i,l){var c=s.renderMode,d=a.noName,v=a.noValue,m=!a.markerType,w=a.name,S=s.useUTC,x=a.valueFormatter||s.valueFormatter||function(fe){return fe=Qe(fe)?fe:[fe],xe(fe,function(ve,ge){return rN(ve,Qe(D)?D[ge]:D,S)})};if(!(d&&v)){var E=m?"":s.markupStyleCreator.makeTooltipMarker(a.markerType,a.markerColor||"#333",c),M=d?"":rN(w,"ordinal",S),D=a.valueType,k=v?[]:x(a.value,a.dataIndex),Q=!m||!d,V=!m&&d,$=Fte(l,c),Z=$.nameStyle,ee=$.valueStyle;return c==="richText"?(m?"":E)+(d?"":Qte(s,M,Z))+(v?"":DHe(s,k,Q,V,ee)):TN(l,(m?"":E)+(d?"":LHe(M,!m,Z))+(v?"":MHe(k,Q,V,ee)),i)}}function Hte(s,a,i,l,c,d){if(s){var v=Nte(s),m={useUTC:c,renderMode:i,orderMode:l,markupStyleCreator:a,valueFormatter:s.valueFormatter};return v(m,s,0,d)}}function IHe(s){return{html:CHe[s],richText:THe[s]}}function TN(s,a,i){var l='<div style="clear:both"></div>',c="margin: "+i+"px 0 0",d=kte(s);return'<div style="'+c+";"+d+';">'+a+l+"</div>"}function LHe(s,a,i){var l=a?"margin-left:2px":"";return'<span style="'+i+";"+l+'">'+yo(s)+"</span>"}function MHe(s,a,i,l){var c=i?"10px":"20px",d=a?"float:right;margin-left:"+c:"";return s=Qe(s)?s:[s],'<span style="'+d+";"+l+'">'+xe(s,function(v){return yo(v)}).join(" ")+"</span>"}function Qte(s,a,i){return s.markupStyleCreator.wrapRichTextStyle(a,i)}function DHe(s,a,i,l,c){var d=[c],v=l?10:20;return i&&d.push({padding:[0,0,0,v],align:"right"}),s.markupStyleCreator.wrapRichTextStyle(Qe(a)?a.join(" "):a,d)}function Vte(s,a){var i=s.getData().getItemVisual(a,"style"),l=i[s.visualDrawType];return n0(l)}function zte(s,a){var i=s.get("padding");return i??(a==="richText"?[8,10]:10)}var EN=function(){function s(){this.richTextStyles={},this._nextStyleNameId=_p()}return s.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},s.prototype.makeTooltipMarker=function(a,i,l){var c=l==="richText"?this._generateStyleName():null,d=Qee({color:i,type:a,renderMode:l,markerId:c});return Re(d)?d:(_t(c),this.richTextStyles[c]=d.style,d.content)},s.prototype.wrapRichTextStyle=function(a,i){var l={};Qe(i)?ne(i,function(d){return ie(l,d)}):ie(l,i);var c=this._generateStyleName();return this.richTextStyles[c]=l,"{"+c+"|"+a+"}"},s}();function Gte(s){var a=s.series,i=s.dataIndex,l=s.multipleSeries,c=a.getData(),d=c.mapDimensionsAll("defaultedTooltip"),v=d.length,m=a.getRawValue(i),w=Qe(m),S=Vte(a,i),x,E,M,D;if(v>1||w&&!v){var k=RHe(m,a,i,d,S);x=k.inlineValues,E=k.inlineValueTypes,M=k.blocks,D=k.inlineValues[0]}else if(v){var Q=c.getDimensionInfo(d[0]);D=x=fb(c,i,d[0]),E=Q.type}else D=x=w?m[0]:m;var V=dv(a),$=V&&a.name||"",Z=c.getName(i),ee=l?$:Z;return tu("section",{header:$,noHeader:l||!V,sortParam:D,blocks:[tu("nameValue",{markerType:"item",markerColor:S,name:ee,noName:!br(ee),value:x,valueType:E,dataIndex:i})].concat(M||[])})}function RHe(s,a,i,l,c){var d=a.getData(),v=De(s,function(E,M,D){var k=d.getDimensionInfo(D);return E=E||k&&k.tooltip!==!1&&k.displayName!=null},!1),m=[],w=[],S=[];l.length?ne(l,function(E){x(fb(d,i,E),E)}):ne(s,x);function x(E,M){var D=d.getDimensionInfo(M);!D||D.otherDims.tooltip===!1||(v?S.push(tu("nameValue",{markerType:"subItem",markerColor:c,name:D.displayName,value:E,valueType:D.type})):(m.push(E),w.push(D.type)))}return{inlineValues:m,inlineValueTypes:w,blocks:S}}var cm=Ri();function LI(s,a){return s.getName(a)||s.getId(a)}var MI="__universalTransitionEnabled",Ua=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i._selectedDataIndicesMap={},i}return a.prototype.init=function(i,l,c){this.seriesIndex=this.componentIndex,this.dataTask=rC({count:OHe,reset:kHe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(i,c);var d=cm(this).sourceManager=new Rte(this);d.prepareSource();var v=this.getInitialData(i,c);qte(v,this),this.dataTask.context.data=v,_t(v,"getInitialData returned invalid data."),cm(this).dataBeforeProcessed=v,jte(this),this._initSelectedMapFromData(v)},a.prototype.mergeDefaultAndTheme=function(i,l){var c=Xx(this),d=c?lb(i):{},v=this.subType;li.hasClass(v)&&(v+="Series"),le(i,l.getTheme().get(this.subType)),le(i,this.getDefaultOption()),zh(i,"label",["show"]),this.fillDataTextStyle(i.data),c&&lm(i,d,c)},a.prototype.mergeOption=function(i,l){i=le(this.option,i,!0),this.fillDataTextStyle(i.data);var c=Xx(this);c&&lm(this.option,i,c);var d=cm(this).sourceManager;d.dirty(),d.prepareSource();var v=this.getInitialData(i,l);qte(v,this),this.dataTask.dirty(),this.dataTask.context.data=v,cm(this).dataBeforeProcessed=v,jte(this),this._initSelectedMapFromData(v)},a.prototype.fillDataTextStyle=function(i){if(i&&!Be(i))for(var l=["show"],c=0;c<i.length;c++)i[c]&&i[c].label&&zh(i[c],"label",l)},a.prototype.getInitialData=function(i,l){},a.prototype.appendData=function(i){var l=this.getRawData();l.appendData(i.data)},a.prototype.getData=function(i){var l=BN(this);if(l){var c=l.context.data;return i==null||!c.getLinkedData?c:c.getLinkedData(i)}else return cm(this).data},a.prototype.getAllData=function(){var i=this.getData();return i&&i.getLinkedDataAll?i.getLinkedDataAll():[{data:i}]},a.prototype.setData=function(i){var l=BN(this);if(l){var c=l.context;c.outputData=i,l!==this.dataTask&&(c.data=i)}cm(this).data=i},a.prototype.getEncode=function(){var i=this.get("encode",!0);if(i)return Ht(i)},a.prototype.getSourceManager=function(){return cm(this).sourceManager},a.prototype.getSource=function(){return this.getSourceManager().getSource()},a.prototype.getRawData=function(){return cm(this).dataBeforeProcessed},a.prototype.getColorBy=function(){var i=this.get("colorBy");return i||"series"},a.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},a.prototype.getBaseAxis=function(){var i=this.coordinateSystem;return i&&i.getBaseAxis&&i.getBaseAxis()},a.prototype.formatTooltip=function(i,l,c){return Gte({series:this,dataIndex:i,multipleSeries:l})},a.prototype.isAnimationEnabled=function(){var i=this.ecModel;if(h.node&&!(i&&i.ssr))return!1;var l=this.getShallow("animation");return l&&this.getData().count()>this.getShallow("animationThreshold")&&(l=!1),!!l},a.prototype.restoreData=function(){this.dataTask.dirty()},a.prototype.getColorFromPalette=function(i,l,c){var d=this.ecModel,v=cN.prototype.getColorFromPalette.call(this,i,l,c);return v||(v=d.getColorFromPalette(i,l,c)),v},a.prototype.coordDimToDataDim=function(i){return this.getRawData().mapDimensionsAll(i)},a.prototype.getProgressive=function(){return this.get("progressive")},a.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},a.prototype.select=function(i,l){this._innerSelect(this.getData(l),i)},a.prototype.unselect=function(i,l){var c=this.option.selectedMap;if(c){var d=this.option.selectedMode,v=this.getData(l);if(d==="series"||c==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var m=0;m<i.length;m++){var w=i[m],S=LI(v,w);c[S]=!1,this._selectedDataIndicesMap[S]=-1}}},a.prototype.toggleSelect=function(i,l){for(var c=[],d=0;d<i.length;d++)c[0]=i[d],this.isSelected(i[d],l)?this.unselect(c,l):this.select(c,l)},a.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var i=this._selectedDataIndicesMap,l=Ne(i),c=[],d=0;d<l.length;d++){var v=i[l[d]];v>=0&&c.push(v)}return c},a.prototype.isSelected=function(i,l){var c=this.option.selectedMap;if(!c)return!1;var d=this.getData(l);return(c==="all"||c[LI(d,i)])&&!d.getItemModel(i).get(["select","disabled"])},a.prototype.isUniversalTransitionEnabled=function(){if(this[MI])return!0;var i=this.option.universalTransition;return i?i===!0?!0:i&&i.enabled:!1},a.prototype._innerSelect=function(i,l){var c,d,v=this.option,m=v.selectedMode,w=l.length;if(!(!m||!w)){if(m==="series")v.selectedMap="all";else if(m==="multiple"){Pe(v.selectedMap)||(v.selectedMap={});for(var S=v.selectedMap,x=0;x<w;x++){var E=l[x],M=LI(i,E);S[M]=!0,this._selectedDataIndicesMap[M]=i.getRawIndex(E)}}else if(m==="single"||m===!0){var D=l[w-1],M=LI(i,D);v.selectedMap=(c={},c[M]=!0,c),this._selectedDataIndicesMap=(d={},d[M]=i.getRawIndex(D),d)}}},a.prototype._initSelectedMapFromData=function(i){if(!this.option.selectedMap){var l=[];i.hasItemOption&&i.each(function(c){var d=i.getRawDataItem(c);d&&d.selected&&l.push(c)}),l.length>0&&this._innerSelect(i,l)}},a.registerClass=function(i){return li.registerClass(i)},a.protoInitialize=function(){var i=a.prototype;i.type="series.__base__",i.seriesIndex=0,i.ignoreStyleOnData=!1,i.hasSymbolVisual=!1,i.defaultSymbol="circle",i.visualStyleAccessPath="itemStyle",i.visualDrawType="fill"}(),a}(li);_e(Ua,BI),_e(Ua,cN),_x(Ua,li);function jte(s){var a=s.name;dv(s)||(s.name=PHe(s)||a)}function PHe(s){var a=s.getRawData(),i=a.mapDimensionsAll("seriesName"),l=[];return ne(i,function(c){var d=a.getDimensionInfo(c);d.displayName&&l.push(d.displayName)}),l.join(" ")}function OHe(s){return s.model.getRawData().count()}function kHe(s){var a=s.model;return a.setData(a.getRawData().cloneShallow()),FHe}function FHe(s,a){a.outputData&&s.end>a.outputData.count()&&a.model.getRawData().cloneShallow(a.outputData)}function qte(s,a){ne(zr(s.CHANGABLE_METHODS,s.DOWNSAMPLE_METHODS),function(i){s.wrapMethod(i,ue(NHe,a))})}function NHe(s,a){var i=BN(s);return i&&i.setOutputEnd((a||this).count()),a}function BN(s){var a=(s.ecModel||{}).scheduler,i=a&&a.getPipeline(s.uid);if(i){var l=i.currentTask;if(l){var c=l.agentStubMap;c&&(l=c.get(s.uid))}return l}}var ho=function(){function s(){this.group=new Lr,this.uid=ib("viewComponent")}return s.prototype.init=function(a,i){},s.prototype.render=function(a,i,l,c){},s.prototype.dispose=function(a,i){},s.prototype.updateView=function(a,i,l,c){},s.prototype.updateLayout=function(a,i,l,c){},s.prototype.updateVisual=function(a,i,l,c){},s.prototype.toggleBlurSeries=function(a,i,l){},s.prototype.eachRendered=function(a){var i=this.group;i&&i.traverse(a)},s}();Uy(ho),Rw(ho);function Ab(){var s=Ri();return function(a){var i=s(a),l=a.pipelineContext,c=!!i.large,d=!!i.progressiveRender,v=i.large=!!(l&&l.large),m=i.progressiveRender=!!(l&&l.progressiveRender);return(c!==v||d!==m)&&"reset"}}var Wte=Ri(),UHe=Ab(),xa=function(){function s(){this.group=new Lr,this.uid=ib("viewChart"),this.renderTask=rC({plan:HHe,reset:QHe}),this.renderTask.context={view:this}}return s.prototype.init=function(a,i){},s.prototype.render=function(a,i,l,c){throw new Error("render method must been implemented")},s.prototype.highlight=function(a,i,l,c){var d=a.getData(c&&c.dataType);if(!d){rs("Unknown dataType "+c.dataType);return}Kte(d,c,"emphasis")},s.prototype.downplay=function(a,i,l,c){var d=a.getData(c&&c.dataType);if(!d){rs("Unknown dataType "+c.dataType);return}Kte(d,c,"normal")},s.prototype.remove=function(a,i){this.group.removeAll()},s.prototype.dispose=function(a,i){},s.prototype.updateView=function(a,i,l,c){this.render(a,i,l,c)},s.prototype.updateLayout=function(a,i,l,c){this.render(a,i,l,c)},s.prototype.updateVisual=function(a,i,l,c){this.render(a,i,l,c)},s.prototype.eachRendered=function(a){om(this.group,a)},s.markUpdateMethod=function(a,i){Wte(a).updateMethod=i},s.protoInitialize=function(){var a=s.prototype;a.type="chart"}(),s}();function $te(s,a,i){s&&nm(s)&&(a==="emphasis"?kp:Fp)(s,i)}function Kte(s,a,i){var l=iA(s,a),c=a&&a.highlightKey!=null?_4e(a.highlightKey):null;l!=null?ne(Ni(l),function(d){$te(s.getItemGraphicEl(d),i,c)}):s.eachItemGraphicEl(function(d){$te(d,i,c)})}Uy(xa,["dispose"]),Rw(xa);function HHe(s){return UHe(s.model)}function QHe(s){var a=s.model,i=s.ecModel,l=s.api,c=s.payload,d=a.pipelineContext.progressiveRender,v=s.view,m=c&&Wte(c).updateMethod,w=d?"incrementalPrepareRender":m&&v[m]?m:"render";return w!=="render"&&v[w](a,i,l,c),VHe[w]}var VHe={incrementalPrepareRender:{progress:function(s,a){a.view.incrementalRender(s,a.model,a.ecModel,a.api,a.payload)}},render:{forceFirstProgress:!0,progress:function(s,a){a.view.render(a.model,a.ecModel,a.api,a.payload)}}},DI="\0__throttleOriginMethod",Yte="\0__throttleRate",Xte="\0__throttleType";function RI(s,a,i){var l,c=0,d=0,v=null,m,w,S,x;a=a||0;function E(){d=new Date().getTime(),v=null,s.apply(w,S||[])}var M=function(){for(var D=[],k=0;k<arguments.length;k++)D[k]=arguments[k];l=new Date().getTime(),w=this,S=D;var Q=x||a,V=x||i;x=null,m=l-(V?c:d)-Q,clearTimeout(v),V?v=setTimeout(E,Q):m>=0?E():v=setTimeout(E,-m),c=l};return M.clear=function(){v&&(clearTimeout(v),v=null)},M.debounceNextCall=function(D){x=D},M}function vb(s,a,i,l){var c=s[a];if(c){var d=c[DI]||c,v=c[Xte],m=c[Yte];if(m!==i||v!==l){if(i==null||!l)return s[a]=d;c=s[a]=RI(d,i,l==="debounce"),c[DI]=d,c[Xte]=l,c[Yte]=i}return c}}function iC(s,a){var i=s[a];i&&i[DI]&&(i.clear&&i.clear(),s[a]=i[DI])}var Zte=Ri(),Jte={itemStyle:vv(Eee,!0),lineStyle:vv(Tee,!0)},zHe={lineStyle:"stroke",itemStyle:"fill"};function ere(s,a){var i=s.visualStyleMapper||Jte[a];return i||(console.warn("Unknown style type '"+a+"'."),Jte.itemStyle)}function tre(s,a){var i=s.visualDrawType||zHe[a];return i||(console.warn("Unknown style type '"+a+"'."),"fill")}var GHe={createOnAllSeries:!0,performRawSeries:!0,reset:function(s,a){var i=s.getData(),l=s.visualStyleAccessPath||"itemStyle",c=s.getModel(l),d=ere(s,l),v=d(c),m=c.getShallow("decal");m&&(i.setVisual("decal",m),m.dirty=!0);var w=tre(s,l),S=v[w],x=qe(S)?S:null,E=v.fill==="auto"||v.stroke==="auto";if(!v[w]||x||E){var M=s.getColorFromPalette(s.name,null,a.getSeriesCount());v[w]||(v[w]=M,i.setVisual("colorFromPalette",!0)),v.fill=v.fill==="auto"||qe(v.fill)?M:v.fill,v.stroke=v.stroke==="auto"||qe(v.stroke)?M:v.stroke}if(i.setVisual("style",v),i.setVisual("drawType",w),!a.isSeriesFiltered(s)&&x)return i.setVisual("colorFromPalette",!1),{dataEach:function(D,k){var Q=s.getDataParams(k),V=ie({},v);V[w]=x(Q),D.setItemVisual(k,"style",V)}}}},aC=new ta,jHe={createOnAllSeries:!0,performRawSeries:!0,reset:function(s,a){if(!(s.ignoreStyleOnData||a.isSeriesFiltered(s))){var i=s.getData(),l=s.visualStyleAccessPath||"itemStyle",c=ere(s,l),d=i.getVisual("drawType");return{dataEach:i.hasItemOption?function(v,m){var w=v.getRawDataItem(m);if(w&&w[l]){aC.option=w[l];var S=c(aC),x=v.ensureUniqueItemVisual(m,"style");ie(x,S),aC.option.decal&&(v.setItemVisual(m,"decal",aC.option.decal),aC.option.decal.dirty=!0),d in S&&v.setItemVisual(m,"colorFromPalette",!1)}}:null}}}},qHe={performRawSeries:!0,overallReset:function(s){var a=Ht();s.eachSeries(function(i){var l=i.getColorBy();if(!i.isColorBySeries()){var c=i.type+"-"+l,d=a.get(c);d||(d={},a.set(c,d)),Zte(i).scope=d}}),s.eachSeries(function(i){if(!(i.isColorBySeries()||s.isSeriesFiltered(i))){var l=i.getRawData(),c={},d=i.getData(),v=Zte(i).scope,m=i.visualStyleAccessPath||"itemStyle",w=tre(i,m);d.each(function(S){var x=d.getRawIndex(S);c[x]=S}),l.each(function(S){var x=c[S],E=d.getItemVisual(x,"colorFromPalette");if(E){var M=d.ensureUniqueItemVisual(x,"style"),D=l.getName(S)||S+"",k=l.count();M[w]=i.getColorFromPalette(D,v,k)}})}})}},PI=Math.PI;function WHe(s,a){a=a||{},he(a,{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 i=new Lr,l=new R({style:{fill:a.maskColor},zlevel:a.zlevel,z:1e4});i.add(l);var c=new be({style:{text:a.text,fill:a.textColor,fontSize:a.fontSize,fontWeight:a.fontWeight,fontStyle:a.fontStyle,fontFamily:a.fontFamily},zlevel:a.zlevel,z:10001}),d=new R({style:{fill:"none"},textContent:c,textConfig:{position:"right",distance:10},zlevel:a.zlevel,z:10001});i.add(d);var v;return a.showSpinner&&(v=new Vx({shape:{startAngle:-PI/2,endAngle:-PI/2+.1,r:a.spinnerRadius},style:{stroke:a.color,lineCap:"round",lineWidth:a.lineWidth},zlevel:a.zlevel,z:10001}),v.animateShape(!0).when(1e3,{endAngle:PI*3/2}).start("circularInOut"),v.animateShape(!0).when(1e3,{startAngle:PI*3/2}).delay(300).start("circularInOut"),i.add(v)),i.resize=function(){var m=c.getBoundingRect().width,w=a.showSpinner?a.spinnerRadius:0,S=(s.getWidth()-w*2-(a.showSpinner&&m?10:0)-m)/2-(a.showSpinner&&m?0:5+m/2)+(a.showSpinner?0:m/2)+(m?0:w),x=s.getHeight()/2;a.showSpinner&&v.setShape({cx:S,cy:x}),d.setShape({x:S-w,y:x-w,width:w*2,height:w*2}),l.setShape({x:0,y:0,width:s.getWidth(),height:s.getHeight()})},i.resize(),i}var rre=function(){function s(a,i,l,c){this._stageTaskMap=Ht(),this.ecInstance=a,this.api=i,l=this._dataProcessorHandlers=l.slice(),c=this._visualHandlers=c.slice(),this._allHandlers=l.concat(c)}return s.prototype.restoreData=function(a,i){a.restoreData(i),this._stageTaskMap.each(function(l){var c=l.overallTask;c&&c.dirty()})},s.prototype.getPerformArgs=function(a,i){if(a.__pipeline){var l=this._pipelineMap.get(a.__pipeline.id),c=l.context,d=!i&&l.progressiveEnabled&&(!c||c.progressiveRender)&&a.__idxInPipeline>l.blockIndex,v=d?l.step:null,m=c&&c.modDataCount,w=m!=null?Math.ceil(m/v):null;return{step:v,modBy:w,modDataCount:m}}},s.prototype.getPipeline=function(a){return this._pipelineMap.get(a)},s.prototype.updateStreamModes=function(a,i){var l=this._pipelineMap.get(a.uid),c=a.getData(),d=c.count(),v=l.progressiveEnabled&&i.incrementalPrepareRender&&d>=l.threshold,m=a.get("large")&&d>=a.get("largeThreshold"),w=a.get("progressiveChunkMode")==="mod"?d:null;a.pipelineContext=l.context={progressiveRender:v,modDataCount:w,large:m}},s.prototype.restorePipelines=function(a){var i=this,l=i._pipelineMap=Ht();a.eachSeries(function(c){var d=c.getProgressive(),v=c.uid;l.set(v,{id:v,head:null,tail:null,threshold:c.getProgressiveThreshold(),progressiveEnabled:d&&!(c.preventIncremental&&c.preventIncremental()),blockIndex:-1,step:Math.round(d||700),count:0}),i._pipe(c,c.dataTask)})},s.prototype.prepareStageTasks=function(){var a=this._stageTaskMap,i=this.api.getModel(),l=this.api;ne(this._allHandlers,function(c){var d=a.get(c.uid)||a.set(c.uid,{}),v="";v='"reset" and "overallReset" must not be both specified.',_t(!(c.reset&&c.overallReset),v),c.reset&&this._createSeriesStageTask(c,d,i,l),c.overallReset&&this._createOverallStageTask(c,d,i,l)},this)},s.prototype.prepareView=function(a,i,l,c){var d=a.renderTask,v=d.context;v.model=i,v.ecModel=l,v.api=c,d.__block=!a.incrementalPrepareRender,this._pipe(i,d)},s.prototype.performDataProcessorTasks=function(a,i){this._performStageTasks(this._dataProcessorHandlers,a,i,{block:!0})},s.prototype.performVisualTasks=function(a,i,l){this._performStageTasks(this._visualHandlers,a,i,l)},s.prototype._performStageTasks=function(a,i,l,c){c=c||{};var d=!1,v=this;ne(a,function(w,S){if(!(c.visualType&&c.visualType!==w.visualType)){var x=v._stageTaskMap.get(w.uid),E=x.seriesTaskMap,M=x.overallTask;if(M){var D,k=M.agentStubMap;k.each(function(V){m(c,V)&&(V.dirty(),D=!0)}),D&&M.dirty(),v.updatePayload(M,l);var Q=v.getPerformArgs(M,c.block);k.each(function(V){V.perform(Q)}),M.perform(Q)&&(d=!0)}else E&&E.each(function(V,$){m(c,V)&&V.dirty();var Z=v.getPerformArgs(V,c.block);Z.skip=!w.performRawSeries&&i.isSeriesFiltered(V.context.model),v.updatePayload(V,l),V.perform(Z)&&(d=!0)})}});function m(w,S){return w.setDirty&&(!w.dirtyMap||w.dirtyMap.get(S.__pipeline.id))}this.unfinished=d||this.unfinished},s.prototype.performSeriesTasks=function(a){var i;a.eachSeries(function(l){i=l.dataTask.perform()||i}),this.unfinished=i||this.unfinished},s.prototype.plan=function(){this._pipelineMap.each(function(a){var i=a.tail;do{if(i.__block){a.blockIndex=i.__idxInPipeline;break}i=i.getUpstream()}while(i)})},s.prototype.updatePayload=function(a,i){i!=="remain"&&(a.context.payload=i)},s.prototype._createSeriesStageTask=function(a,i,l,c){var d=this,v=i.seriesTaskMap,m=i.seriesTaskMap=Ht(),w=a.seriesType,S=a.getTargetSeries;a.createOnAllSeries?l.eachRawSeries(x):w?l.eachRawSeriesByType(w,x):S&&S(l,c).each(x);function x(E){var M=E.uid,D=m.set(M,v&&v.get(M)||rC({plan:ZHe,reset:JHe,count:t8e}));D.context={model:E,ecModel:l,api:c,useClearVisual:a.isVisual&&!a.isLayout,plan:a.plan,reset:a.reset,scheduler:d},d._pipe(E,D)}},s.prototype._createOverallStageTask=function(a,i,l,c){var d=this,v=i.overallTask=i.overallTask||rC({reset:$He});v.context={ecModel:l,api:c,overallReset:a.overallReset,scheduler:d};var m=v.agentStubMap,w=v.agentStubMap=Ht(),S=a.seriesType,x=a.getTargetSeries,E=!0,M=!1,D="";D='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.',_t(!a.createOnAllSeries,D),S?l.eachRawSeriesByType(S,k):x?x(l,c).each(k):(E=!1,ne(l.getSeries(),k));function k(Q){var V=Q.uid,$=w.set(V,m&&m.get(V)||(M=!0,rC({reset:KHe,onDirty:XHe})));$.context={model:Q,overallProgress:E},$.agent=v,$.__block=E,d._pipe(Q,$)}M&&v.dirty()},s.prototype._pipe=function(a,i){var l=a.uid,c=this._pipelineMap.get(l);!c.head&&(c.head=i),c.tail&&c.tail.pipe(i),c.tail=i,i.__idxInPipeline=c.count++,i.__pipeline=c},s.wrapStageHandler=function(a,i){return qe(a)&&(a={overallReset:a,seriesType:r8e(a)}),a.uid=ib("stageHandler"),i&&(a.visualType=i),a},s}();function $He(s){s.overallReset(s.ecModel,s.api,s.payload)}function KHe(s){return s.overallProgress&&YHe}function YHe(){this.agent.dirty(),this.getDownstream().dirty()}function XHe(){this.agent&&this.agent.dirty()}function ZHe(s){return s.plan?s.plan(s.model,s.ecModel,s.api,s.payload):null}function JHe(s){s.useClearVisual&&s.data.clearAllVisual();var a=s.resetDefines=Ni(s.reset(s.model,s.ecModel,s.api,s.payload));return a.length>1?xe(a,function(i,l){return nre(l)}):e8e}var e8e=nre(0);function nre(s){return function(a,i){var l=i.data,c=i.resetDefines[s];if(c&&c.dataEach)for(var d=a.start;d<a.end;d++)c.dataEach(l,d);else c&&c.progress&&c.progress(a,l)}}function t8e(s){return s.data.count()}function r8e(s){OI=null;try{s(oC,ire)}catch{}return OI}var oC={},ire={},OI;are(oC,dN),are(ire,nte),oC.eachSeriesByType=oC.eachRawSeriesByType=function(s){OI=s},oC.eachComponent=function(s){s.mainType==="series"&&s.subType&&(OI=s.subType)};function are(s,a){for(var i in a.prototype)s[i]=Ct}var ore=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],n8e={color:ore,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],ore]},gc="#B9B8CE",sre="#100C2A",kI=function(){return{axisLine:{lineStyle:{color:gc}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},lre=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ure={darkMode:!0,color:lre,backgroundColor:sre,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:gc},pageTextStyle:{color:gc}},textStyle:{color:gc},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:gc}},dataZoom:{borderColor:"#71708A",textStyle:{color:gc},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:gc}},timeline:{lineStyle:{color:gc},label:{color:gc},controlStyle:{color:gc,borderColor:gc}},calendar:{itemStyle:{color:sre},dayLabel:{color:gc},monthLabel:{color:gc},yearLabel:{color:gc}},timeAxis:kI(),logAxis:kI(),valueAxis:kI(),categoryAxis:kI(),line:{symbol:"circle"},graph:{color:lre},gauge:{title:{color:gc},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:gc},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};ure.categoryAxis.splitLine.show=!1;var i8e=function(){function s(){}return s.prototype.normalizeQuery=function(a){var i={},l={},c={};if(Re(a)){var d=qh(a);i.mainType=d.main||null,i.subType=d.sub||null}else{var v=["Index","Name","Id"],m={name:1,dataIndex:1,dataType:1};ne(a,function(w,S){for(var x=!1,E=0;E<v.length;E++){var M=v[E],D=S.lastIndexOf(M);if(D>0&&D===S.length-M.length){var k=S.slice(0,D);k!=="data"&&(i.mainType=k,i[M.toLowerCase()]=w,x=!0)}}m.hasOwnProperty(S)&&(l[S]=w,x=!0),x||(c[S]=w)})}return{cptQuery:i,dataQuery:l,otherQuery:c}},s.prototype.filter=function(a,i){var l=this.eventInfo;if(!l)return!0;var c=l.targetEl,d=l.packedEvent,v=l.model,m=l.view;if(!v||!m)return!0;var w=i.cptQuery,S=i.dataQuery;return x(w,v,"mainType")&&x(w,v,"subType")&&x(w,v,"index","componentIndex")&&x(w,v,"name")&&x(w,v,"id")&&x(S,d,"name")&&x(S,d,"dataIndex")&&x(S,d,"dataType")&&(!m.filterForExposedEvent||m.filterForExposedEvent(a,i.otherQuery,c,d));function x(E,M,D,k){return E[D]==null||M[k||D]===E[D]}},s.prototype.afterTrigger=function(){this.eventInfo=null},s}(),IN=["symbol","symbolSize","symbolRotate","symbolOffset"],cre=IN.concat(["symbolKeepAspect"]),a8e={createOnAllSeries:!0,performRawSeries:!0,reset:function(s,a){var i=s.getData();if(s.legendIcon&&i.setVisual("legendIcon",s.legendIcon),!s.hasSymbolVisual)return;for(var l={},c={},d=!1,v=0;v<IN.length;v++){var m=IN[v],w=s.get(m);qe(w)?(d=!0,c[m]=w):l[m]=w}if(l.symbol=l.symbol||s.defaultSymbol,i.setVisual(ie({legendIcon:s.legendIcon||l.symbol,symbolKeepAspect:s.get("symbolKeepAspect")},l)),a.isSeriesFiltered(s))return;var S=Ne(c);function x(E,M){for(var D=s.getRawValue(M),k=s.getDataParams(M),Q=0;Q<S.length;Q++){var V=S[Q];E.setItemVisual(M,V,c[V](D,k))}}return{dataEach:d?x:null}}},o8e={createOnAllSeries:!0,performRawSeries:!0,reset:function(s,a){if(!s.hasSymbolVisual||a.isSeriesFiltered(s))return;var i=s.getData();function l(c,d){for(var v=c.getItemModel(d),m=0;m<cre.length;m++){var w=cre[m],S=v.getShallow(w,!0);S!=null&&c.setItemVisual(d,w,S)}}return{dataEach:i.hasItemOption?l:null}}};function LN(s,a,i){switch(i){case"color":var l=s.getItemVisual(a,"style");return l[s.getVisual("drawType")];case"opacity":return s.getItemVisual(a,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return s.getItemVisual(a,i);default:console.warn("Unknown visual type "+i)}}function sC(s,a){switch(a){case"color":var i=s.getVisual("style");return i[s.getVisual("drawType")];case"opacity":return s.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return s.getVisual(a);default:console.warn("Unknown visual type "+a)}}function fre(s,a,i,l){switch(i){case"color":var c=s.ensureUniqueItemVisual(a,"style");c[s.getVisual("drawType")]=l,s.setItemVisual(a,"colorFromPalette",!1);break;case"opacity":s.ensureUniqueItemVisual(a,"style").opacity=l;break;case"symbol":case"symbolSize":case"liftZ":s.setItemVisual(a,i,l);break;default:console.warn("Unknown visual type "+i)}}function hre(s,a){function i(l,c){var d=[];return l.eachComponent({mainType:"series",subType:s,query:c},function(v){d.push(v.seriesIndex)}),d}ne([[s+"ToggleSelect","toggleSelect"],[s+"Select","select"],[s+"UnSelect","unselect"]],function(l){a(l[0],function(c,d,v){c=ie({},c),Ga(c.type,l[1]),v.dispatchAction(ie(c,{type:l[1],seriesIndex:i(d,c)}))})})}function pb(s,a,i,l,c){var d=s+a;i.isSilent(d)||(nl("event "+d+" is deprecated."),l.eachComponent({mainType:"series",subType:"pie"},function(v){for(var m=v.seriesIndex,w=v.option.selectedMap,S=c.selected,x=0;x<S.length;x++)if(S[x].seriesIndex===m){var E=v.getData(),M=iA(E,c.fromActionPayload);i.trigger(d,{type:d,seriesId:v.id,name:Qe(M)?E.getName(M[0]):E.getName(M),selected:Re(w)?w:ie({},w)})}}))}function s8e(s,a,i){s.on("selectchanged",function(l){var c=i.getModel();l.isFromClick?(pb("map","selectchanged",a,c,l),pb("pie","selectchanged",a,c,l)):l.fromAction==="select"?(pb("map","selected",a,c,l),pb("pie","selected",a,c,l)):l.fromAction==="unselect"&&(pb("map","unselected",a,c,l),pb("pie","unselected",a,c,l))})}function c0(s,a,i){for(var l;s&&!(a(s)&&(l=s,i));)s=s.__hostTarget||s.parent;return l}var l8e=Math.round(Math.random()*9),u8e=typeof Object.defineProperty=="function",c8e=function(){function s(){this._id="__ec_inner_"+l8e++}return s.prototype.get=function(a){return this._guard(a)[this._id]},s.prototype.set=function(a,i){var l=this._guard(a);return u8e?Object.defineProperty(l,this._id,{value:i,enumerable:!1,configurable:!0}):l[this._id]=i,this},s.prototype.delete=function(a){return this.has(a)?(delete this._guard(a)[this._id],!0):!1},s.prototype.has=function(a){return!!this._guard(a)[this._id]},s.prototype._guard=function(a){if(a!==Object(a))throw TypeError("Value of WeakMap is not a non-null object.");return a},s}(),f8e=Yn.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(s,a){var i=a.cx,l=a.cy,c=a.width/2,d=a.height/2;s.moveTo(i,l-d),s.lineTo(i+c,l+d),s.lineTo(i-c,l+d),s.closePath()}}),h8e=Yn.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(s,a){var i=a.cx,l=a.cy,c=a.width/2,d=a.height/2;s.moveTo(i,l-d),s.lineTo(i+c,l),s.lineTo(i,l+d),s.lineTo(i-c,l),s.closePath()}}),d8e=Yn.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(s,a){var i=a.x,l=a.y,c=a.width/5*3,d=Math.max(c,a.height),v=c/2,m=v*v/(d-v),w=l-d+v+m,S=Math.asin(m/v),x=Math.cos(S)*v,E=Math.sin(S),M=Math.cos(S),D=v*.6,k=v*.7;s.moveTo(i-x,w+m),s.arc(i,w,v,Math.PI-S,Math.PI*2+S),s.bezierCurveTo(i+x-E*D,w+m+M*D,i,l-k,i,l),s.bezierCurveTo(i,l-k,i-x+E*D,w+m+M*D,i-x,w+m),s.closePath()}}),A8e=Yn.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(s,a){var i=a.height,l=a.width,c=a.x,d=a.y,v=l/3*2;s.moveTo(c,d),s.lineTo(c+v,d+i),s.lineTo(c,d+i/4*3),s.lineTo(c-v,d+i),s.lineTo(c,d),s.closePath()}}),v8e={line:Ll,rect:R,roundRect:R,square:R,circle:yv,diamond:h8e,pin:d8e,arrow:A8e,triangle:f8e},p8e={line:function(s,a,i,l,c){c.x1=s,c.y1=a+l/2,c.x2=s+i,c.y2=a+l/2},rect:function(s,a,i,l,c){c.x=s,c.y=a,c.width=i,c.height=l},roundRect:function(s,a,i,l,c){c.x=s,c.y=a,c.width=i,c.height=l,c.r=Math.min(i,l)/4},square:function(s,a,i,l,c){var d=Math.min(i,l);c.x=s,c.y=a,c.width=d,c.height=d},circle:function(s,a,i,l,c){c.cx=s+i/2,c.cy=a+l/2,c.r=Math.min(i,l)/2},diamond:function(s,a,i,l,c){c.cx=s+i/2,c.cy=a+l/2,c.width=i,c.height=l},pin:function(s,a,i,l,c){c.x=s+i/2,c.y=a+l/2,c.width=i,c.height=l},arrow:function(s,a,i,l,c){c.x=s+i/2,c.y=a+l/2,c.width=i,c.height=l},triangle:function(s,a,i,l,c){c.cx=s+i/2,c.cy=a+l/2,c.width=i,c.height=l}},FI={};ne(v8e,function(s,a){FI[a]=new s});var g8e=Yn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(s,a,i){var l=sr(s,a,i),c=this.shape;return c&&c.symbolType==="pin"&&a.position==="inside"&&(l.y=i.y+i.height*.4),l},buildPath:function(s,a,i){var l=a.symbolType;if(l!=="none"){var c=FI[l];c||(l="rect",c=FI[l]),p8e[l](a.x,a.y,a.width,a.height,c.shape),c.buildPath(s,c.shape,i)}}});function m8e(s,a){if(this.type!=="image"){var i=this.style;this.__isEmptyBrush?(i.stroke=s,i.fill=a||"#fff",i.lineWidth=2):this.shape.symbolType==="line"?i.stroke=s:i.fill=s,this.markRedraw()}}function Os(s,a,i,l,c,d,v){var m=s.indexOf("empty")===0;m&&(s=s.substr(5,1).toLowerCase()+s.substr(6));var w;return s.indexOf("image://")===0?w=NF(s.slice(8),new Bn(a,i,l,c),v?"center":"cover"):s.indexOf("path://")===0?w=Gx(s.slice(7),{},new Bn(a,i,l,c),v?"center":"cover"):w=new g8e({shape:{symbolType:s,x:a,y:i,width:l,height:c}}),w.__isEmptyBrush=m,w.setColor=m8e,d&&w.setColor(d),w}function gb(s){return Qe(s)||(s=[+s,+s]),[s[0]||0,s[1]||0]}function f0(s,a){if(s!=null)return Qe(s)||(s=[s,s]),[vr(s[0],a[0])||0,vr(It(s[1],s[0]),a[1])||0]}function h0(s){return isFinite(s)}function y8e(s,a,i){var l=a.x==null?0:a.x,c=a.x2==null?1:a.x2,d=a.y==null?0:a.y,v=a.y2==null?0:a.y2;a.global||(l=l*i.width+i.x,c=c*i.width+i.x,d=d*i.height+i.y,v=v*i.height+i.y),l=h0(l)?l:0,c=h0(c)?c:1,d=h0(d)?d:0,v=h0(v)?v:0;var m=s.createLinearGradient(l,d,c,v);return m}function w8e(s,a,i){var l=i.width,c=i.height,d=Math.min(l,c),v=a.x==null?.5:a.x,m=a.y==null?.5:a.y,w=a.r==null?.5:a.r;a.global||(v=v*l+i.x,m=m*c+i.y,w=w*d),v=h0(v)?v:.5,m=h0(m)?m:.5,w=w>=0&&h0(w)?w:.5;var S=s.createRadialGradient(v,m,0,v,m,w);return S}function MN(s,a,i){for(var l=a.type==="radial"?w8e(s,a,i):y8e(s,a,i),c=a.colorStops,d=0;d<c.length;d++)l.addColorStop(c[d].offset,c[d].color);return l}function b8e(s,a){if(s===a||!s&&!a)return!1;if(!s||!a||s.length!==a.length)return!0;for(var i=0;i<s.length;i++)if(s[i]!==a[i])return!0;return!1}function NI(s){return parseInt(s,10)}function mb(s,a,i){var l=["width","height"][a],c=["clientWidth","clientHeight"][a],d=["paddingLeft","paddingTop"][a],v=["paddingRight","paddingBottom"][a];if(i[l]!=null&&i[l]!=="auto")return parseFloat(i[l]);var m=document.defaultView.getComputedStyle(s);return(s[c]||NI(m[l])||NI(s.style[l]))-(NI(m[d])||0)-(NI(m[v])||0)|0}function _8e(s,a){return!s||s==="solid"||!(a>0)?null:s==="dashed"?[4*a,2*a]:s==="dotted"?[a]:Ge(s)?[s]:Qe(s)?s:null}function DN(s){var a=s.style,i=a.lineDash&&a.lineWidth>0&&_8e(a.lineDash,a.lineWidth),l=a.lineDashOffset;if(i){var c=a.strokeNoScale&&s.getLineScale?s.getLineScale():1;c&&c!==1&&(i=xe(i,function(d){return d/c}),l/=c)}return[i,l]}var S8e=new hh(!0);function UI(s){var a=s.stroke;return!(a==null||a==="none"||!(s.lineWidth>0))}function dre(s){return typeof s=="string"&&s!=="none"}function HI(s){var a=s.fill;return a!=null&&a!=="none"}function Are(s,a){if(a.fillOpacity!=null&&a.fillOpacity!==1){var i=s.globalAlpha;s.globalAlpha=a.fillOpacity*a.opacity,s.fill(),s.globalAlpha=i}else s.fill()}function vre(s,a){if(a.strokeOpacity!=null&&a.strokeOpacity!==1){var i=s.globalAlpha;s.globalAlpha=a.strokeOpacity*a.opacity,s.stroke(),s.globalAlpha=i}else s.stroke()}function RN(s,a,i){var l=Hy(a.image,a.__image,i);if(Wg(l)){var c=s.createPattern(l,a.repeat||"repeat");if(typeof DOMMatrix=="function"&&c&&c.setTransform){var d=new DOMMatrix;d.translateSelf(a.x||0,a.y||0),d.rotateSelf(0,0,(a.rotation||0)*Tt),d.scaleSelf(a.scaleX||1,a.scaleY||1),c.setTransform(d)}return c}}function x8e(s,a,i,l){var c,d=UI(i),v=HI(i),m=i.strokePercent,w=m<1,S=!a.path;(!a.silent||w)&&S&&a.createPathProxy();var x=a.path||S8e,E=a.__dirty;if(!l){var M=i.fill,D=i.stroke,k=v&&!!M.colorStops,Q=d&&!!D.colorStops,V=v&&!!M.image,$=d&&!!D.image,Z=void 0,ee=void 0,fe=void 0,ve=void 0,ge=void 0;(k||Q)&&(ge=a.getBoundingRect()),k&&(Z=E?MN(s,M,ge):a.__canvasFillGradient,a.__canvasFillGradient=Z),Q&&(ee=E?MN(s,D,ge):a.__canvasStrokeGradient,a.__canvasStrokeGradient=ee),V&&(fe=E||!a.__canvasFillPattern?RN(s,M,a):a.__canvasFillPattern,a.__canvasFillPattern=fe),$&&(ve=E||!a.__canvasStrokePattern?RN(s,D,a):a.__canvasStrokePattern,a.__canvasStrokePattern=fe),k?s.fillStyle=Z:V&&(fe?s.fillStyle=fe:v=!1),Q?s.strokeStyle=ee:$&&(ve?s.strokeStyle=ve:d=!1)}var Se=a.getGlobalScale();x.setScale(Se[0],Se[1],a.segmentIgnoreThreshold);var Ee,Ie;s.setLineDash&&i.lineDash&&(c=DN(a),Ee=c[0],Ie=c[1]);var Le=!0;(S||E&Pa)&&(x.setDPR(s.dpr),w?x.setContext(null):(x.setContext(s),Le=!1),x.reset(),a.buildPath(x,a.shape,l),x.toStatic(),a.pathUpdated()),Le&&x.rebuildPath(s,w?m:1),Ee&&(s.setLineDash(Ee),s.lineDashOffset=Ie),l||(i.strokeFirst?(d&&vre(s,i),v&&Are(s,i)):(v&&Are(s,i),d&&vre(s,i))),Ee&&s.setLineDash([])}function C8e(s,a,i){var l=a.__image=Hy(i.image,a.__image,a,a.onload);if(!(!l||!Wg(l))){var c=i.x||0,d=i.y||0,v=a.getWidth(),m=a.getHeight(),w=l.width/l.height;if(v==null&&m!=null?v=m*w:m==null&&v!=null?m=v/w:v==null&&m==null&&(v=l.width,m=l.height),i.sWidth&&i.sHeight){var S=i.sx||0,x=i.sy||0;s.drawImage(l,S,x,i.sWidth,i.sHeight,c,d,v,m)}else if(i.sx&&i.sy){var S=i.sx,x=i.sy,E=v-S,M=m-x;s.drawImage(l,S,x,E,M,c,d,v,m)}else s.drawImage(l,c,d,v,m)}}function T8e(s,a,i){var l,c=i.text;if(c!=null&&(c+=""),c){s.font=i.font||y,s.textAlign=i.textAlign,s.textBaseline=i.textBaseline;var d=void 0,v=void 0;s.setLineDash&&i.lineDash&&(l=DN(a),d=l[0],v=l[1]),d&&(s.setLineDash(d),s.lineDashOffset=v),i.strokeFirst?(UI(i)&&s.strokeText(c,i.x,i.y),HI(i)&&s.fillText(c,i.x,i.y)):(HI(i)&&s.fillText(c,i.x,i.y),UI(i)&&s.strokeText(c,i.x,i.y)),d&&s.setLineDash([])}}var pre=["shadowBlur","shadowOffsetX","shadowOffsetY"],gre=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function mre(s,a,i,l,c){var d=!1;if(!l&&(i=i||{},a===i))return!1;if(l||a.opacity!==i.opacity){Rf(s,c),d=!0;var v=Math.max(Math.min(a.opacity,1),0);s.globalAlpha=isNaN(v)?oA.opacity:v}(l||a.blend!==i.blend)&&(d||(Rf(s,c),d=!0),s.globalCompositeOperation=a.blend||oA.blend);for(var m=0;m<pre.length;m++){var w=pre[m];(l||a[w]!==i[w])&&(d||(Rf(s,c),d=!0),s[w]=s.dpr*(a[w]||0))}return(l||a.shadowColor!==i.shadowColor)&&(d||(Rf(s,c),d=!0),s.shadowColor=a.shadowColor||oA.shadowColor),d}function yre(s,a,i,l,c){var d=lC(a,c.inHover),v=l?null:i&&lC(i,c.inHover)||{};if(d===v)return!1;var m=mre(s,d,v,l,c);if((l||d.fill!==v.fill)&&(m||(Rf(s,c),m=!0),dre(d.fill)&&(s.fillStyle=d.fill)),(l||d.stroke!==v.stroke)&&(m||(Rf(s,c),m=!0),dre(d.stroke)&&(s.strokeStyle=d.stroke)),(l||d.opacity!==v.opacity)&&(m||(Rf(s,c),m=!0),s.globalAlpha=d.opacity==null?1:d.opacity),a.hasStroke()){var w=d.lineWidth,S=w/(d.strokeNoScale&&a.getLineScale?a.getLineScale():1);s.lineWidth!==S&&(m||(Rf(s,c),m=!0),s.lineWidth=S)}for(var x=0;x<gre.length;x++){var E=gre[x],M=E[0];(l||d[M]!==v[M])&&(m||(Rf(s,c),m=!0),s[M]=d[M]||E[1])}return m}function E8e(s,a,i,l,c){return mre(s,lC(a,c.inHover),i&&lC(i,c.inHover),l,c)}function wre(s,a){var i=a.transform,l=s.dpr||1;i?s.setTransform(l*i[0],l*i[1],l*i[2],l*i[3],l*i[4],l*i[5]):s.setTransform(l,0,0,l,0,0)}function B8e(s,a,i){for(var l=!1,c=0;c<s.length;c++){var d=s[c];l=l||d.isZeroArea(),wre(a,d),a.beginPath(),d.buildPath(a,d.shape),a.clip()}i.allClipped=l}function I8e(s,a){return s&&a?s[0]!==a[0]||s[1]!==a[1]||s[2]!==a[2]||s[3]!==a[3]||s[4]!==a[4]||s[5]!==a[5]:!(!s&&!a)}var bre=1,_re=2,Sre=3,xre=4;function L8e(s){var a=HI(s),i=UI(s);return!(s.lineDash||!(+a^+i)||a&&typeof s.fill!="string"||i&&typeof s.stroke!="string"||s.strokePercent<1||s.strokeOpacity<1||s.fillOpacity<1)}function Rf(s,a){a.batchFill&&s.fill(),a.batchStroke&&s.stroke(),a.batchFill="",a.batchStroke=""}function lC(s,a){return a&&s.__hoverStyle||s.style}function PN(s,a){d0(s,a,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function d0(s,a,i,l){var c=a.transform;if(!a.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1)){a.__dirty&=~bi,a.__isRendered=!1;return}var d=a.__clipPaths,v=i.prevElClipPaths,m=!1,w=!1;if((!v||b8e(d,v))&&(v&&v.length&&(Rf(s,i),s.restore(),w=m=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),d&&d.length&&(Rf(s,i),s.save(),B8e(d,s,i),m=!0),i.prevElClipPaths=d),i.allClipped){a.__isRendered=!1;return}a.beforeBrush&&a.beforeBrush(),a.innerBeforeBrush();var S=i.prevEl;S||(w=m=!0);var x=a instanceof Yn&&a.autoBatch&&L8e(a.style);m||I8e(c,S.transform)?(Rf(s,i),wre(s,a)):x||Rf(s,i);var E=lC(a,i.inHover);a instanceof Yn?(i.lastDrawType!==bre&&(w=!0,i.lastDrawType=bre),yre(s,a,S,w,i),(!x||!i.batchFill&&!i.batchStroke)&&s.beginPath(),x8e(s,a,E,x),x&&(i.batchFill=E.fill||"",i.batchStroke=E.stroke||"")):a instanceof Pp?(i.lastDrawType!==Sre&&(w=!0,i.lastDrawType=Sre),yre(s,a,S,w,i),T8e(s,a,E)):a instanceof is?(i.lastDrawType!==_re&&(w=!0,i.lastDrawType=_re),E8e(s,a,S,w,i),C8e(s,a,E)):a.getTemporalDisplayables&&(i.lastDrawType!==xre&&(w=!0,i.lastDrawType=xre),M8e(s,a,i)),x&&l&&Rf(s,i),a.innerAfterBrush(),a.afterBrush&&a.afterBrush(),i.prevEl=a,a.__dirty=0,a.__isRendered=!0}function M8e(s,a,i){var l=a.getDisplayables(),c=a.getTemporalDisplayables();s.save();var d={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover},v,m;for(v=a.getCursor(),m=l.length;v<m;v++){var w=l[v];w.beforeBrush&&w.beforeBrush(),w.innerBeforeBrush(),d0(s,w,d,v===m-1),w.innerAfterBrush(),w.afterBrush&&w.afterBrush(),d.prevEl=w}for(var S=0,x=c.length;S<x;S++){var w=c[S];w.beforeBrush&&w.beforeBrush(),w.innerBeforeBrush(),d0(s,w,d,S===x-1),w.innerAfterBrush(),w.afterBrush&&w.afterBrush(),d.prevEl=w}a.clearTemporalDisplayables(),a.notClear=!0,s.restore()}var ON=new c8e,Cre=new ic(100),Tre=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function yb(s,a){if(s==="none")return null;var i=a.getDevicePixelRatio(),l=a.getZr(),c=l.painter.type==="svg";s.dirty&&ON.delete(s);var d=ON.get(s);if(d)return d;var v=he(s,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});v.backgroundColor==="none"&&(v.backgroundColor=null);var m={repeat:"repeat"};return w(m),m.rotation=v.rotation,m.scaleX=m.scaleY=c?1:1/i,ON.set(s,m),s.dirty=!1,m;function w(S){for(var x=[i],E=!0,M=0;M<Tre.length;++M){var D=v[Tre[M]];if(D!=null&&!Qe(D)&&!Re(D)&&!Ge(D)&&typeof D!="boolean"){E=!1;break}x.push(D)}var k;if(E){k=x.join(",")+(c?"-svg":"");var Q=Cre.get(k);Q&&(c?S.svgElement=Q:S.image=Q)}var V=Bre(v.dashArrayX),$=D8e(v.dashArrayY),Z=Ere(v.symbol),ee=R8e(V),fe=Ire($),ve=!c&&L.createCanvas(),ge=c&&{tag:"g",attrs:{},key:"dcl",children:[]},Se=Ie(),Ee;ve&&(ve.width=Se.width*i,ve.height=Se.height*i,Ee=ve.getContext("2d")),Le(),E&&Cre.put(k,ve||ge),S.image=ve,S.svgElement=ge,S.svgWidth=Se.width,S.svgHeight=Se.height;function Ie(){for(var Fe=1,Je=0,rt=ee.length;Je<rt;++Je)Fe=ch(Fe,ee[Je]);for(var at=1,Je=0,rt=Z.length;Je<rt;++Je)at=ch(at,Z[Je].length);Fe*=at;var dt=fe*ee.length*Z.length;{var wt=function(zt){console.warn("Calculated decal size is greater than "+zt+" due to decal option settings so "+zt+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+zt+" to be larger to avoid incontinuity.")};Fe>v.maxTileWidth&&wt("maxTileWidth"),dt>v.maxTileHeight&&wt("maxTileHeight")}return{width:Math.max(1,Math.min(Fe,v.maxTileWidth)),height:Math.max(1,Math.min(dt,v.maxTileHeight))}}function Le(){Ee&&(Ee.clearRect(0,0,ve.width,ve.height),v.backgroundColor&&(Ee.fillStyle=v.backgroundColor,Ee.fillRect(0,0,ve.width,ve.height)));for(var Fe=0,Je=0;Je<$.length;++Je)Fe+=$[Je];if(Fe<=0)return;for(var rt=-fe,at=0,dt=0,wt=0;rt<Se.height;){if(at%2===0){for(var zt=dt/2%Z.length,Ut=0,Yt=0,ur=0;Ut<Se.width*2;){for(var wr=0,Je=0;Je<V[wt].length;++Je)wr+=V[wt][Je];if(wr<=0)break;if(Yt%2===0){var Or=(1-v.symbolSize)*.5,vn=Ut+V[wt][Yt]*Or,wn=rt+$[at]*Or,Un=V[wt][Yt]*v.symbolSize,Ha=$[at]*v.symbolSize,Cs=ur/2%Z[zt].length;ei(vn,wn,Un,Ha,Z[zt][Cs])}Ut+=V[wt][Yt],++ur,++Yt,Yt===V[wt].length&&(Yt=0)}++wt,wt===V.length&&(wt=0)}rt+=$[at],++dt,++at,at===$.length&&(at=0)}function ei(Cn,di,tn,Hn,vo){var Ca=c?1:i,Za=Os(vo,Cn*Ca,di*Ca,tn*Ca,Hn*Ca,v.color,v.symbolKeepAspect);if(c){var Go=l.painter.renderOneToVNode(Za);Go&&ge.children.push(Go)}else PN(Ee,Za)}}}}function Ere(s){if(!s||s.length===0)return[["rect"]];if(Re(s))return[[s]];for(var a=!0,i=0;i<s.length;++i)if(!Re(s[i])){a=!1;break}if(a)return Ere([s]);for(var l=[],i=0;i<s.length;++i)Re(s[i])?l.push([s[i]]):l.push(s[i]);return l}function Bre(s){if(!s||s.length===0)return[[0,0]];if(Ge(s)){var a=Math.ceil(s);return[[a,a]]}for(var i=!0,l=0;l<s.length;++l)if(!Ge(s[l])){i=!1;break}if(i)return Bre([s]);for(var c=[],l=0;l<s.length;++l)if(Ge(s[l])){var a=Math.ceil(s[l]);c.push([a,a])}else{var a=xe(s[l],function(m){return Math.ceil(m)});a.length%2===1?c.push(a.concat(a)):c.push(a)}return c}function D8e(s){if(!s||typeof s=="object"&&s.length===0)return[0,0];if(Ge(s)){var a=Math.ceil(s);return[a,a]}var i=xe(s,function(l){return Math.ceil(l)});return s.length%2?i.concat(i):i}function R8e(s){return xe(s,function(a){return Ire(a)})}function Ire(s){for(var a=0,i=0;i<s.length;++i)a+=s[i];return s.length%2===1?a*2:a}function P8e(s,a){s.eachRawSeries(function(i){if(!s.isSeriesFiltered(i)){var l=i.getData();l.hasItemVisual()&&l.each(function(v){var m=l.getItemVisual(v,"decal");if(m){var w=l.ensureUniqueItemVisual(v,"style");w.decal=yb(m,a)}});var c=l.getVisual("decal");if(c){var d=l.getVisual("style");d.decal=yb(c,a)}}})}var vA=new Da,QI={};function O8e(s,a){QI[s]&&rs("Already has an implementation of "+s+"."),QI[s]=a}function Lre(s){return QI[s]||rs("Implementation of "+s+" doesn't exists."),QI[s]}var k8e="5.6.0",F8e={zrender:"5.6.1"},N8e=1,U8e=800,H8e=900,Q8e=1e3,V8e=2e3,z8e=5e3,Mre=1e3,G8e=1100,kN=2e3,Dre=3e3,j8e=4e3,VI=4500,q8e=4600,W8e=5e3,$8e=6e3,Rre=7e3,Pre={PROCESSOR:{FILTER:Q8e,SERIES_FILTER:U8e,STATISTIC:z8e},VISUAL:{LAYOUT:Mre,PROGRESSIVE_LAYOUT:G8e,GLOBAL:kN,CHART:Dre,POST_CHART_LAYOUT:q8e,COMPONENT:j8e,BRUSH:W8e,CHART_ITEM:VI,ARIA:$8e,DECAL:Rre}},mc="__flagInMainProcess",Pf="__pendingUpdate",FN="__needsUpdateStatus",Ore=/^[a-zA-Z0-9_]+$/,NN="__connectUpdateStatus",kre=0,K8e=1,Y8e=2;function Fre(s){return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(this.isDisposed()){ph(this.id);return}return Ure(this,s,a)}}function Nre(s){return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];return Ure(this,s,a)}}function Ure(s,a,i){return i[0]=i[0]&&i[0].toLowerCase(),Da.prototype[a].apply(s,i)}var Hre=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a}(Da),Qre=Hre.prototype;Qre.on=Nre("on"),Qre.off=Nre("off");var wb,UN,zI,fm,HN,QN,VN,uC,cC,Vre,zre,zN,Gre,GI,jre,qre,ad,Wre,jI=function(s){o(a,s);function a(i,l,c){var d=s.call(this,new i8e)||this;d._chartsViews=[],d._chartsMap={},d._componentsViews=[],d._componentsMap={},d._pendingActions=[],c=c||{},Re(l)&&(l=$re[l]),d._dom=i;var v="canvas",m="auto",w=!1;{var S=h.hasGlobalWindow?window:Gf;S&&(v=It(S.__ECHARTS__DEFAULT__RENDERER__,v),m=It(S.__ECHARTS__DEFAULT__COARSE_POINTER,m),w=It(S.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,w))}c.ssr&&Cl(function(D){var k=bt(D),Q=k.dataIndex;if(Q!=null){var V=Ht();return V.set("series_index",k.seriesIndex),V.set("data_index",Q),k.ssrType&&V.set("ssr_type",k.ssrType),V}});var x=d._zr=ds(i,{renderer:c.renderer||v,devicePixelRatio:c.devicePixelRatio,width:c.width,height:c.height,ssr:c.ssr,useDirtyRect:It(c.useDirtyRect,w),useCoarsePointer:It(c.useCoarsePointer,m),pointerSize:c.pointerSize});d._ssr=c.ssr,d._throttledZrFlush=RI(Ue(x.flush,x),17),l=ae(l),l&&cte(l,!0),d._theme=l,d._locale=f6e(c.locale||Bee),d._coordSysMgr=new o0;var E=d._api=jre(d);function M(D,k){return D.__prio-k.__prio}return Ra(WI,M),Ra(jN,M),d._scheduler=new rre(d,E,jN,WI),d._messageCenter=new Hre,d._initEvents(),d.resize=Ue(d.resize,d),x.animation.on("frame",d._onframe,d),Vre(x,d),zre(x,d),Br(d),d}return a.prototype._onframe=function(){if(!this._disposed){Wre(this);var i=this._scheduler;if(this[Pf]){var l=this[Pf].silent;this[mc]=!0;try{wb(this),fm.update.call(this,null,this[Pf].updateParams)}catch(w){throw this[mc]=!1,this[Pf]=null,w}this._zr.flush(),this[mc]=!1,this[Pf]=null,uC.call(this,l),cC.call(this,l)}else if(i.unfinished){var c=N8e,d=this._model,v=this._api;i.unfinished=!1;do{var m=+new Date;i.performSeriesTasks(d),i.performDataProcessorTasks(d),QN(this,d),i.performVisualTasks(d),GI(this,this._model,v,"remain",{}),c-=+new Date-m}while(c>0&&i.unfinished);i.unfinished||this._zr.flush()}}},a.prototype.getDom=function(){return this._dom},a.prototype.getId=function(){return this.id},a.prototype.getZr=function(){return this._zr},a.prototype.isSSR=function(){return this._ssr},a.prototype.setOption=function(i,l,c){if(this[mc]){rs("`setOption` should not be called during main process.");return}if(this._disposed){ph(this.id);return}var d,v,m;if(Pe(l)&&(c=l.lazyUpdate,d=l.silent,v=l.replaceMerge,m=l.transition,l=l.notMerge),this[mc]=!0,!this._model||l){var w=new H6e(this._api),S=this._theme,x=this._model=new dN;x.scheduler=this._scheduler,x.ssr=this._ssr,x.init(null,null,null,S,this._locale,w)}this._model.setOption(i,{replaceMerge:v},qN);var E={seriesTransition:m,optionChanged:!0};if(c)this[Pf]={silent:d,updateParams:E},this[mc]=!1,this.getZr().wakeUp();else{try{wb(this),fm.update.call(this,null,E)}catch(M){throw this[Pf]=null,this[mc]=!1,M}this._ssr||this._zr.flush(),this[Pf]=null,this[mc]=!1,uC.call(this,d),cC.call(this,d)}},a.prototype.setTheme=function(){nl("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},a.prototype.getModel=function(){return this._model},a.prototype.getOption=function(){return this._model&&this._model.getOption()},a.prototype.getWidth=function(){return this._zr.getWidth()},a.prototype.getHeight=function(){return this._zr.getHeight()},a.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||h.hasGlobalWindow&&window.devicePixelRatio||1},a.prototype.getRenderedCanvas=function(i){return Ga("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(i)},a.prototype.renderToCanvas=function(i){i=i||{};var l=this._zr.painter;if(l.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return l.getRenderedCanvas({backgroundColor:i.backgroundColor||this._model.get("backgroundColor"),pixelRatio:i.pixelRatio||this.getDevicePixelRatio()})},a.prototype.renderToSVGString=function(i){i=i||{};var l=this._zr.painter;if(l.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return l.renderToString({useViewBox:i.useViewBox})},a.prototype.getSvgDataURL=function(){if(h.svgSupported){var i=this._zr,l=i.storage.getDisplayList();return ne(l,function(c){c.stopAnimation(null,!0)}),i.painter.toDataURL()}},a.prototype.getDataURL=function(i){if(this._disposed){ph(this.id);return}i=i||{};var l=i.excludeComponents,c=this._model,d=[],v=this;ne(l,function(w){c.eachComponent({mainType:w},function(S){var x=v._componentsMap[S.__viewId];x.group.ignore||(d.push(x),x.group.ignore=!0)})});var m=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(i).toDataURL("image/"+(i&&i.type||"png"));return ne(d,function(w){w.group.ignore=!1}),m},a.prototype.getConnectedDataURL=function(i){if(this._disposed){ph(this.id);return}var l=i.type==="svg",c=this.group,d=Math.min,v=Math.max,m=1/0;if($I[c]){var w=m,S=m,x=-m,E=-m,M=[],D=i&&i.pixelRatio||this.getDevicePixelRatio();ne(A0,function(ee,fe){if(ee.group===c){var ve=l?ee.getZr().painter.getSvgDom().innerHTML:ee.renderToCanvas(ae(i)),ge=ee.getDom().getBoundingClientRect();w=d(ge.left,w),S=d(ge.top,S),x=v(ge.right,x),E=v(ge.bottom,E),M.push({dom:ve,left:ge.left,top:ge.top})}}),w*=D,S*=D,x*=D,E*=D;var k=x-w,Q=E-S,V=L.createCanvas(),$=ds(V,{renderer:l?"svg":"canvas"});if($.resize({width:k,height:Q}),l){var Z="";return ne(M,function(ee){var fe=ee.left-w,ve=ee.top-S;Z+='<g transform="translate('+fe+","+ve+')">'+ee.dom+"</g>"}),$.painter.getSvgRoot().innerHTML=Z,i.connectedBackgroundColor&&$.painter.setBackgroundColor(i.connectedBackgroundColor),$.refreshImmediately(),$.painter.toDataURL()}else return i.connectedBackgroundColor&&$.add(new R({shape:{x:0,y:0,width:k,height:Q},style:{fill:i.connectedBackgroundColor}})),ne(M,function(ee){var fe=new is({style:{x:ee.left*D-w,y:ee.top*D-S,image:ee.dom}});$.add(fe)}),$.refreshImmediately(),V.toDataURL("image/"+(i&&i.type||"png"))}else return this.getDataURL(i)},a.prototype.convertToPixel=function(i,l){return HN(this,"convertToPixel",i,l)},a.prototype.convertFromPixel=function(i,l){return HN(this,"convertFromPixel",i,l)},a.prototype.containPixel=function(i,l){if(this._disposed){ph(this.id);return}var c=this._model,d,v=Gg(c,i);return ne(v,function(m,w){w.indexOf("Models")>=0&&ne(m,function(S){var x=S.coordinateSystem;if(x&&x.containPoint)d=d||!!x.containPoint(l);else if(w==="seriesModels"){var E=this._chartsMap[S.__viewId];E&&E.containPoint?d=d||E.containPoint(l,S):Ya(w+": "+(E?"The found component do not support containPoint.":"No view mapping to the found component."))}else Ya(w+": containPoint is not supported")},this)},this),!!d},a.prototype.getVisual=function(i,l){var c=this._model,d=Gg(c,i,{defaultMainType:"series"}),v=d.seriesModel;v||Ya("There is no specified series model");var m=v.getData(),w=d.hasOwnProperty("dataIndexInside")?d.dataIndexInside:d.hasOwnProperty("dataIndex")?m.indexOfRawIndex(d.dataIndex):null;return w!=null?LN(m,w,l):sC(m,l)},a.prototype.getViewOfComponentModel=function(i){return this._componentsMap[i.__viewId]},a.prototype.getViewOfSeriesModel=function(i){return this._chartsMap[i.__viewId]},a.prototype._initEvents=function(){var i=this;ne(X8e,function(l){var c=function(d){var v=i.getModel(),m=d.target,w,S=l==="globalout";if(S?w={}:m&&c0(m,function(k){var Q=bt(k);if(Q&&Q.dataIndex!=null){var V=Q.dataModel||v.getSeriesByIndex(Q.seriesIndex);return w=V&&V.getDataParams(Q.dataIndex,Q.dataType,m)||{},!0}else if(Q.eventData)return w=ie({},Q.eventData),!0},!0),w){var x=w.componentType,E=w.componentIndex;(x==="markLine"||x==="markPoint"||x==="markArea")&&(x="series",E=w.seriesIndex);var M=x&&E!=null&&v.getComponent(x,E),D=M&&i[M.mainType==="series"?"_chartsMap":"_componentsMap"][M.__viewId];!S&&!(M&&D)&&Ya("model or view can not be found by params"),w.event=d,w.type=l,i._$eventProcessor.eventInfo={targetEl:m,packedEvent:w,model:M,view:D},i.trigger(l,w)}};c.zrEventfulCallAtLast=!0,i._zr.on(l,c,i)}),ne(fC,function(l,c){i._messageCenter.on(c,function(d){this.trigger(c,d)},i)}),ne(["selectchanged"],function(l){i._messageCenter.on(l,function(c){this.trigger(l,c)},i)}),s8e(this._messageCenter,this,this._api)},a.prototype.isDisposed=function(){return this._disposed},a.prototype.clear=function(){if(this._disposed){ph(this.id);return}this.setOption({series:[]},!0)},a.prototype.dispose=function(){if(this._disposed){ph(this.id);return}this._disposed=!0;var i=this.getDom();i&&Lw(this.getDom(),$N,"");var l=this,c=l._api,d=l._model;ne(l._componentsViews,function(v){v.dispose(d,c)}),ne(l._chartsViews,function(v){v.dispose(d,c)}),l._zr.dispose(),l._dom=l._model=l._chartsMap=l._componentsMap=l._chartsViews=l._componentsViews=l._scheduler=l._api=l._zr=l._throttledZrFlush=l._theme=l._coordSysMgr=l._messageCenter=null,delete A0[l.id]},a.prototype.resize=function(i){if(this[mc]){rs("`resize` should not be called during main process.");return}if(this._disposed){ph(this.id);return}this._zr.resize(i);var l=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!l){var c=l.resetOption("media"),d=i&&i.silent;this[Pf]&&(d==null&&(d=this[Pf].silent),c=!0,this[Pf]=null),this[mc]=!0;try{c&&wb(this),fm.update.call(this,{type:"resize",animation:ie({duration:0},i&&i.animation)})}catch(v){throw this[mc]=!1,v}this[mc]=!1,uC.call(this,d),cC.call(this,d)}},a.prototype.showLoading=function(i,l){if(this._disposed){ph(this.id);return}if(Pe(i)&&(l=i,i=""),i=i||"default",this.hideLoading(),!WN[i]){Ya("Loading effects "+i+" not exists.");return}var c=WN[i](this._api,l),d=this._zr;this._loadingFX=c,d.add(c)},a.prototype.hideLoading=function(){if(this._disposed){ph(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},a.prototype.makeActionFromEvent=function(i){var l=ie({},i);return l.type=fC[i.type],l},a.prototype.dispatchAction=function(i,l){if(this._disposed){ph(this.id);return}if(Pe(l)||(l={silent:!!l}),!!qI[i.type]&&this._model){if(this[mc]){this._pendingActions.push(i);return}var c=l.silent;VN.call(this,i,c);var d=l.flush;d?this._zr.flush():d!==!1&&h.browser.weChat&&this._throttledZrFlush(),uC.call(this,c),cC.call(this,c)}},a.prototype.updateLabelLayout=function(){vA.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},a.prototype.appendData=function(i){if(this._disposed){ph(this.id);return}var l=i.seriesIndex,c=this.getModel(),d=c.getSeriesByIndex(l);_t(i.data&&d),d.appendData(i),this._scheduler.unfinished=!0,this.getZr().wakeUp()},a.internalField=function(){wb=function(E){var M=E._scheduler;M.restorePipelines(E._model),M.prepareStageTasks(),UN(E,!0),UN(E,!1),M.plan()},UN=function(E,M){for(var D=E._model,k=E._scheduler,Q=M?E._componentsViews:E._chartsViews,V=M?E._componentsMap:E._chartsMap,$=E._zr,Z=E._api,ee=0;ee<Q.length;ee++)Q[ee].__alive=!1;M?D.eachComponent(function(ge,Se){ge!=="series"&&fe(Se)}):D.eachSeries(fe);function fe(ge){var Se=ge.__requireNewView;ge.__requireNewView=!1;var Ee="_ec_"+ge.id+"_"+ge.type,Ie=!Se&&V[Ee];if(!Ie){var Le=qh(ge.type),Fe=M?ho.getClass(Le.main,Le.sub):xa.getClass(Le.sub);_t(Fe,Le.sub+" does not exist."),Ie=new Fe,Ie.init(D,Z),V[Ee]=Ie,Q.push(Ie),$.add(Ie.group)}ge.__viewId=Ie.__id=Ee,Ie.__alive=!0,Ie.__model=ge,Ie.group.__ecComponentInfo={mainType:ge.mainType,index:ge.componentIndex},!M&&k.prepareView(Ie,ge,D,Z)}for(var ee=0;ee<Q.length;){var ve=Q[ee];ve.__alive?ee++:(!M&&ve.renderTask.dispose(),$.remove(ve.group),ve.dispose(D,Z),Q.splice(ee,1),V[ve.__id]===ve&&delete V[ve.__id],ve.__id=ve.group.__ecComponentInfo=null)}},zI=function(E,M,D,k,Q){var V=E._model;if(V.setUpdatePayload(D),!k){ne([].concat(E._componentsViews).concat(E._chartsViews),ve);return}var $={};$[k+"Id"]=D[k+"Id"],$[k+"Index"]=D[k+"Index"],$[k+"Name"]=D[k+"Name"];var Z={mainType:k,query:$};Q&&(Z.subType=Q);var ee=D.excludeSeriesId,fe;ee!=null&&(fe=Ht(),ne(Ni(ee),function(ge){var Se=va(ge,null);Se!=null&&fe.set(Se,!0)})),V&&V.eachComponent(Z,function(ge){var Se=fe&&fe.get(ge.id)!=null;if(!Se)if($J(D))if(ge instanceof Ua)D.type===$y&&!D.notBlur&&!ge.get(["emphasis","disabled"])&&A4e(ge,D,E._api);else{var Ee=BF(ge.mainType,ge.componentIndex,D.name,E._api),Ie=Ee.focusSelf,Le=Ee.dispatchers;D.type===$y&&Ie&&!D.notBlur&&EF(ge.mainType,ge.componentIndex,E._api),Le&&ne(Le,function(Fe){D.type===$y?kp(Fe):Fp(Fe)})}else LF(D)&&ge instanceof Ua&&(g4e(ge,D,E._api),qJ(ge),ad(E))},E),V&&V.eachComponent(Z,function(ge){var Se=fe&&fe.get(ge.id)!=null;Se||ve(E[k==="series"?"_chartsMap":"_componentsMap"][ge.__viewId])},E);function ve(ge){ge&&ge.__alive&&ge[M]&&ge[M](ge.__model,V,E._api,D)}},fm={prepareAndUpdate:function(E){wb(this),fm.update.call(this,E,{optionChanged:E.newOption!=null})},update:function(E,M){var D=this._model,k=this._api,Q=this._zr,V=this._coordSysMgr,$=this._scheduler;if(D){D.setUpdatePayload(E),$.restoreData(D,E),$.performSeriesTasks(D),V.create(D,k),$.performDataProcessorTasks(D,E),QN(this,D),V.update(D,k),i(D),$.performVisualTasks(D,E),zN(this,D,k,E,M);var Z=D.get("backgroundColor")||"transparent",ee=D.get("darkMode");Q.setBackgroundColor(Z),ee!=null&&ee!=="auto"&&Q.setDarkMode(ee),vA.trigger("afterupdate",D,k)}},updateTransform:function(E){var M=this,D=this._model,k=this._api;if(D){D.setUpdatePayload(E);var Q=[];D.eachComponent(function($,Z){if($!=="series"){var ee=M.getViewOfComponentModel(Z);if(ee&&ee.__alive)if(ee.updateTransform){var fe=ee.updateTransform(Z,D,k,E);fe&&fe.update&&Q.push(ee)}else Q.push(ee)}});var V=Ht();D.eachSeries(function($){var Z=M._chartsMap[$.__viewId];if(Z.updateTransform){var ee=Z.updateTransform($,D,k,E);ee&&ee.update&&V.set($.uid,1)}else V.set($.uid,1)}),i(D),this._scheduler.performVisualTasks(D,E,{setDirty:!0,dirtyMap:V}),GI(this,D,k,E,{},V),vA.trigger("afterupdate",D,k)}},updateView:function(E){var M=this._model;M&&(M.setUpdatePayload(E),xa.markUpdateMethod(E,"updateView"),i(M),this._scheduler.performVisualTasks(M,E,{setDirty:!0}),zN(this,M,this._api,E,{}),vA.trigger("afterupdate",M,this._api))},updateVisual:function(E){var M=this,D=this._model;D&&(D.setUpdatePayload(E),D.eachSeries(function(k){k.getData().clearAllVisual()}),xa.markUpdateMethod(E,"updateVisual"),i(D),this._scheduler.performVisualTasks(D,E,{visualType:"visual",setDirty:!0}),D.eachComponent(function(k,Q){if(k!=="series"){var V=M.getViewOfComponentModel(Q);V&&V.__alive&&V.updateVisual(Q,D,M._api,E)}}),D.eachSeries(function(k){var Q=M._chartsMap[k.__viewId];Q.updateVisual(k,D,M._api,E)}),vA.trigger("afterupdate",D,this._api))},updateLayout:function(E){fm.update.call(this,E)}},HN=function(E,M,D,k){if(E._disposed){ph(E.id);return}for(var Q=E._model,V=E._coordSysMgr.getCoordinateSystems(),$,Z=Gg(Q,D),ee=0;ee<V.length;ee++){var fe=V[ee];if(fe[M]&&($=fe[M](Q,Z,k))!=null)return $}Ya("No coordinate system that supports "+M+" found by the given finder.")},QN=function(E,M){var D=E._chartsMap,k=E._scheduler;M.eachSeries(function(Q){k.updateStreamModes(Q,D[Q.__viewId])})},VN=function(E,M){var D=this,k=this.getModel(),Q=E.type,V=E.escapeConnect,$=qI[Q],Z=$.actionInfo,ee=(Z.update||"update").split(":"),fe=ee.pop(),ve=ee[0]!=null&&qh(ee[0]);this[mc]=!0;var ge=[E],Se=!1;E.batch&&(Se=!0,ge=xe(E.batch,function(at){return at=he(ie({},at),E),at.batch=null,at}));var Ee=[],Ie,Le=LF(E),Fe=$J(E);if(Fe&&jJ(this._api),ne(ge,function(at){if(Ie=$.action(at,D._model,D._api),Ie=Ie||ie({},at),Ie.type=Z.event||Ie.type,Ee.push(Ie),Fe){var dt=Iw(E),wt=dt.queryOptionMap,zt=dt.mainTypeSpecified,Ut=zt?wt.keys()[0]:"series";zI(D,fe,at,Ut),ad(D)}else Le?(zI(D,fe,at,"series"),ad(D)):ve&&zI(D,fe,at,ve.main,ve.sub)}),fe!=="none"&&!Fe&&!Le&&!ve)try{this[Pf]?(wb(this),fm.update.call(this,E),this[Pf]=null):fm[fe].call(this,E)}catch(at){throw this[mc]=!1,at}if(Se?Ie={type:Z.event||Q,escapeConnect:V,batch:Ee}:Ie=Ee[0],this[mc]=!1,!M){var Je=this._messageCenter;if(Je.trigger(Ie.type,Ie),Le){var rt={type:"selectchanged",escapeConnect:V,selected:m4e(k),isFromClick:E.isFromClick||!1,fromAction:E.type,fromActionPayload:E};Je.trigger(rt.type,rt)}}},uC=function(E){for(var M=this._pendingActions;M.length;){var D=M.shift();VN.call(this,D,E)}},cC=function(E){!E&&this.trigger("updated")},Vre=function(E,M){E.on("rendered",function(D){M.trigger("rendered",D),E.animation.isFinished()&&!M[Pf]&&!M._scheduler.unfinished&&!M._pendingActions.length&&M.trigger("finished")})},zre=function(E,M){E.on("mouseover",function(D){var k=D.target,Q=c0(k,nm);Q&&(v4e(Q,D,M._api),ad(M))}).on("mouseout",function(D){var k=D.target,Q=c0(k,nm);Q&&(p4e(Q,D,M._api),ad(M))}).on("click",function(D){var k=D.target,Q=c0(k,function(Z){return bt(Z).dataIndex!=null},!0);if(Q){var V=Q.selected?"unselect":"select",$=bt(Q);M._api.dispatchAction({type:V,dataType:$.dataType,dataIndexInside:$.dataIndex,seriesIndex:$.seriesIndex,isFromClick:!0})}})};function i(E){E.clearColorPalette(),E.eachSeries(function(M){M.clearColorPalette()})}function l(E){var M=[],D=[],k=!1;if(E.eachComponent(function(Z,ee){var fe=ee.get("zlevel")||0,ve=ee.get("z")||0,ge=ee.getZLevelKey();k=k||!!ge,(Z==="series"?D:M).push({zlevel:fe,z:ve,idx:ee.componentIndex,type:Z,key:ge})}),k){var Q=M.concat(D),V,$;Ra(Q,function(Z,ee){return Z.zlevel===ee.zlevel?Z.z-ee.z:Z.zlevel-ee.zlevel}),ne(Q,function(Z){var ee=E.getComponent(Z.type,Z.idx),fe=Z.zlevel,ve=Z.key;V!=null&&(fe=Math.max(V,fe)),ve?(fe===V&&ve!==$&&fe++,$=ve):$&&(fe===V&&fe++,$=""),V=fe,ee.setZLevel(fe)})}}zN=function(E,M,D,k,Q){l(M),Gre(E,M,D,k,Q),ne(E._chartsViews,function(V){V.__alive=!1}),GI(E,M,D,k,Q),ne(E._chartsViews,function(V){V.__alive||V.remove(M,D)})},Gre=function(E,M,D,k,Q,V){ne(V||E._componentsViews,function($){var Z=$.__model;S(Z,$),$.render(Z,M,D,k),m(Z,$),x(Z,$)})},GI=function(E,M,D,k,Q,V){var $=E._scheduler;Q=ie(Q||{},{updatedSeries:M.getSeries()}),vA.trigger("series:beforeupdate",M,D,Q);var Z=!1;M.eachSeries(function(ee){var fe=E._chartsMap[ee.__viewId];fe.__alive=!0;var ve=fe.renderTask;$.updatePayload(ve,k),S(ee,fe),V&&V.get(ee.uid)&&ve.dirty(),ve.perform($.getPerformArgs(ve))&&(Z=!0),fe.group.silent=!!ee.get("silent"),v(ee,fe),qJ(ee)}),$.unfinished=Z||$.unfinished,vA.trigger("series:layoutlabels",M,D,Q),vA.trigger("series:transition",M,D,Q),M.eachSeries(function(ee){var fe=E._chartsMap[ee.__viewId];m(ee,fe),x(ee,fe)}),d(E,M),vA.trigger("series:afterupdate",M,D,Q)},ad=function(E){E[FN]=!0,E.getZr().wakeUp()},Wre=function(E){E[FN]&&(E.getZr().storage.traverse(function(M){eb(M)||c(M)}),E[FN]=!1)};function c(E){for(var M=[],D=E.currentStates,k=0;k<D.length;k++){var Q=D[k];Q==="emphasis"||Q==="blur"||Q==="select"||M.push(Q)}E.selected&&E.states.select&&M.push("select"),E.hoverState===Ah&&E.states.emphasis?M.push("emphasis"):E.hoverState===yi&&E.states.blur&&M.push("blur"),E.useStates(M)}function d(E,M){var D=E._zr,k=D.storage,Q=0;k.traverse(function(V){V.isGroup||Q++}),Q>M.get("hoverLayerThreshold")&&!h.node&&!h.worker&&M.eachSeries(function(V){if(!V.preventUsingHoverLayer){var $=E._chartsMap[V.__viewId];$.__alive&&$.eachRendered(function(Z){Z.states.emphasis&&(Z.states.emphasis.hoverLayer=!0)})}})}function v(E,M){var D=E.get("blendMode")||null;M.eachRendered(function(k){k.isGroup||(k.style.blend=D)})}function m(E,M){if(!E.preventAutoZ){var D=E.get("z")||0,k=E.get("zlevel")||0;M.eachRendered(function(Q){return w(Q,D,k,-1/0),!0})}}function w(E,M,D,k){var Q=E.getTextContent(),V=E.getTextGuideLine(),$=E.isGroup;if($)for(var Z=E.childrenRef(),ee=0;ee<Z.length;ee++)k=Math.max(w(Z[ee],M,D,k),k);else E.z=M,E.zlevel=D,k=Math.max(E.z2,k);if(Q&&(Q.z=M,Q.zlevel=D,isFinite(k)&&(Q.z2=k+2)),V){var fe=E.textGuideLineConfig;V.z=M,V.zlevel=D,isFinite(k)&&(V.z2=k+(fe&&fe.showAbove?1:-1))}return k}function S(E,M){M.eachRendered(function(D){if(!eb(D)){var k=D.getTextContent(),Q=D.getTextGuideLine();D.stateTransition&&(D.stateTransition=null),k&&k.stateTransition&&(k.stateTransition=null),Q&&Q.stateTransition&&(Q.stateTransition=null),D.hasState()?(D.prevStates=D.currentStates,D.clearStates()):D.prevStates&&(D.prevStates=null)}})}function x(E,M){var D=E.getModel("stateAnimation"),k=E.isAnimationEnabled(),Q=D.get("duration"),V=Q>0?{duration:Q,delay:D.get("delay"),easing:D.get("easing")}:null;M.eachRendered(function($){if($.states&&$.states.emphasis){if(eb($))return;if($ instanceof Yn&&S4e($),$.__dirty){var Z=$.prevStates;Z&&$.useStates(Z)}if(k){$.stateTransition=V;var ee=$.getTextContent(),fe=$.getTextGuideLine();ee&&(ee.stateTransition=V),fe&&(fe.stateTransition=V)}$.__dirty&&c($)}})}jre=function(E){return new(function(M){o(D,M);function D(){return M!==null&&M.apply(this,arguments)||this}return D.prototype.getCoordinateSystems=function(){return E._coordSysMgr.getCoordinateSystems()},D.prototype.getComponentByElement=function(k){for(;k;){var Q=k.__ecComponentInfo;if(Q!=null)return E._model.getComponent(Q.mainType,Q.index);k=k.parent}},D.prototype.enterEmphasis=function(k,Q){kp(k,Q),ad(E)},D.prototype.leaveEmphasis=function(k,Q){Fp(k,Q),ad(E)},D.prototype.enterBlur=function(k){QJ(k),ad(E)},D.prototype.leaveBlur=function(k){CF(k),ad(E)},D.prototype.enterSelect=function(k){VJ(k),ad(E)},D.prototype.leaveSelect=function(k){zJ(k),ad(E)},D.prototype.getModel=function(){return E.getModel()},D.prototype.getViewOfComponentModel=function(k){return E.getViewOfComponentModel(k)},D.prototype.getViewOfSeriesModel=function(k){return E.getViewOfSeriesModel(k)},D}(nte))(E)},qre=function(E){function M(D,k){for(var Q=0;Q<D.length;Q++){var V=D[Q];V[NN]=k}}ne(fC,function(D,k){E._messageCenter.on(k,function(Q){if($I[E.group]&&E[NN]!==kre){if(Q&&Q.escapeConnect)return;var V=E.makeActionFromEvent(Q),$=[];ne(A0,function(Z){Z!==E&&Z.group===E.group&&$.push(Z)}),M($,kre),ne($,function(Z){Z[NN]!==K8e&&Z.dispatchAction(V)}),M($,Y8e)}})})}}(),a}(Da),GN=jI.prototype;GN.on=Fre("on"),GN.off=Fre("off"),GN.one=function(s,a,i){var l=this;nl("ECharts#one is deprecated.");function c(){for(var d=[],v=0;v<arguments.length;v++)d[v]=arguments[v];a&&a.apply&&a.apply(this,d),l.off(s,c)}this.on.call(this,s,c,i)};var X8e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ph(s){Ya("Instance "+s+" has been disposed")}var qI={},fC={},jN=[],qN=[],WI=[],$re={},WN={},A0={},$I={},Z8e=+new Date-0,J8e=+new Date-0,$N="_echarts_instance_";function eQe(s,a,i){var l=!(i&&i.ssr);if(l){if(!s)throw new Error("Initialize failed: invalid dom.");var c=KN(s);if(c)return Ya("There is a chart instance already initialized on the dom."),c;$e(s)&&s.nodeName.toUpperCase()!=="CANVAS"&&(!s.clientWidth&&(!i||i.width==null)||!s.clientHeight&&(!i||i.height==null))&&Ya("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var d=new jI(s,a,i);return d.id="ec_"+Z8e++,A0[d.id]=d,l&&Lw(s,$N,d.id),qre(d),vA.trigger("afterinit",d),d}function tQe(s){if(Qe(s)){var a=s;s=null,ne(a,function(i){i.group!=null&&(s=i.group)}),s=s||"g_"+J8e++,ne(a,function(i){i.group=s})}return $I[s]=!0,s}function Kre(s){$I[s]=!1}var rQe=Kre;function nQe(s){Re(s)?s=A0[s]:s instanceof jI||(s=KN(s)),s instanceof jI&&!s.isDisposed()&&s.dispose()}function KN(s){return A0[HB(s,$N)]}function iQe(s){return A0[s]}function YN(s,a){$re[s]=a}function XN(s){oe(qN,s)<0&&qN.push(s)}function ZN(s,a){JN(jN,s,a,V8e)}function Yre(s){KI("afterinit",s)}function Xre(s){KI("afterupdate",s)}function KI(s,a){vA.on(s,a)}function pA(s,a,i){qe(a)&&(i=a,a="");var l=Pe(s)?s.type:[s,s={event:a}][0];s.event=(s.event||l).toLowerCase(),a=s.event,!fC[a]&&(_t(Ore.test(l)&&Ore.test(a)),qI[l]||(qI[l]={action:i,actionInfo:s}),fC[a]=l)}function Zre(s,a){o0.register(s,a)}function aQe(s){var a=o0.get(s);if(a)return a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice()}function Jre(s,a){JN(WI,s,a,Mre,"layout")}function hm(s,a){JN(WI,s,a,Dre,"visual")}var ene=[];function JN(s,a,i,l,c){(qe(a)||Pe(a))&&(i=a,a=l);{if(isNaN(a)||a==null)throw new Error("Illegal priority");ne(s,function(v){_t(v.__raw!==i)})}if(!(oe(ene,i)>=0)){ene.push(i);var d=rre.wrapStageHandler(i,c);d.__prio=a,d.__raw=i,s.push(d)}}function eU(s,a){WN[s]=a}function oQe(s){nl("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),P({createCanvas:s})}function tne(s,a,i){var l=Lre("registerMap");l&&l(s,a,i)}function sQe(s){var a=Lre("getMap");return a&&a(s)}var rne=mHe;hm(kN,GHe),hm(VI,jHe),hm(VI,qHe),hm(kN,a8e),hm(VI,o8e),hm(Rre,P8e),XN(cte),ZN(H8e,Z6e),eU("default",WHe),pA({type:$y,event:$y,update:$y},Ct),pA({type:XB,event:XB,update:XB},Ct),pA({type:kx,event:kx,update:kx},Ct),pA({type:ZB,event:ZB,update:ZB},Ct),pA({type:Fx,event:Fx,update:Fx},Ct),YN("light",n8e),YN("dark",ure);var lQe={},nne=[],uQe={registerPreprocessor:XN,registerProcessor:ZN,registerPostInit:Yre,registerPostUpdate:Xre,registerUpdateLifecycle:KI,registerAction:pA,registerCoordinateSystem:Zre,registerLayout:Jre,registerVisual:hm,registerTransform:rne,registerLoading:eU,registerMap:tne,registerImpl:O8e,PRIORITY:Pre,ComponentModel:li,ComponentView:ho,SeriesModel:Ua,ChartView:xa,registerComponentModel:function(s){li.registerClass(s)},registerComponentView:function(s){ho.registerClass(s)},registerSeriesModel:function(s){Ua.registerClass(s)},registerChartView:function(s){xa.registerClass(s)},registerSubTypeDefaulter:function(s,a){li.registerSubTypeDefaulter(s,a)},registerPainter:function(s,a){Qa(s,a)}};function ui(s){if(Qe(s)){ne(s,function(a){ui(a)});return}oe(nne,s)>=0||(nne.push(s),qe(s)&&(s={install:s}),s.install(uQe))}function hC(s){return s==null?0:s.length||1}function ine(s){return s}var Hp=function(){function s(a,i,l,c,d,v){this._old=a,this._new=i,this._oldKeyGetter=l||ine,this._newKeyGetter=c||ine,this.context=d,this._diffModeMultiple=v==="multiple"}return s.prototype.add=function(a){return this._add=a,this},s.prototype.update=function(a){return this._update=a,this},s.prototype.updateManyToOne=function(a){return this._updateManyToOne=a,this},s.prototype.updateOneToMany=function(a){return this._updateOneToMany=a,this},s.prototype.updateManyToMany=function(a){return this._updateManyToMany=a,this},s.prototype.remove=function(a){return this._remove=a,this},s.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},s.prototype._executeOneToOne=function(){var a=this._old,i=this._new,l={},c=new Array(a.length),d=new Array(i.length);this._initIndexMap(a,null,c,"_oldKeyGetter"),this._initIndexMap(i,l,d,"_newKeyGetter");for(var v=0;v<a.length;v++){var m=c[v],w=l[m],S=hC(w);if(S>1){var x=w.shift();w.length===1&&(l[m]=w[0]),this._update&&this._update(x,v)}else S===1?(l[m]=null,this._update&&this._update(w,v)):this._remove&&this._remove(v)}this._performRestAdd(d,l)},s.prototype._executeMultiple=function(){var a=this._old,i=this._new,l={},c={},d=[],v=[];this._initIndexMap(a,l,d,"_oldKeyGetter"),this._initIndexMap(i,c,v,"_newKeyGetter");for(var m=0;m<d.length;m++){var w=d[m],S=l[w],x=c[w],E=hC(S),M=hC(x);if(E>1&&M===1)this._updateManyToOne&&this._updateManyToOne(x,S),c[w]=null;else if(E===1&&M>1)this._updateOneToMany&&this._updateOneToMany(x,S),c[w]=null;else if(E===1&&M===1)this._update&&this._update(x,S),c[w]=null;else if(E>1&&M>1)this._updateManyToMany&&this._updateManyToMany(x,S),c[w]=null;else if(E>1)for(var D=0;D<E;D++)this._remove&&this._remove(S[D]);else this._remove&&this._remove(S)}this._performRestAdd(v,c)},s.prototype._performRestAdd=function(a,i){for(var l=0;l<a.length;l++){var c=a[l],d=i[c],v=hC(d);if(v>1)for(var m=0;m<v;m++)this._add&&this._add(d[m]);else v===1&&this._add&&this._add(d);i[c]=null}},s.prototype._initIndexMap=function(a,i,l,c){for(var d=this._diffModeMultiple,v=0;v<a.length;v++){var m="_ec_"+this[c](a[v],v);if(d||(l[v]=m),!!i){var w=i[m],S=hC(w);S===0?(i[m]=v,d&&l.push(m)):S===1?i[m]=[w,v]:w.push(v)}}},s}(),cQe=function(){function s(a,i){this._encode=a,this._schema=i}return s.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},s.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},s}();function fQe(s,a){var i={},l=i.encode={},c=Ht(),d=[],v=[],m={};ne(s.dimensions,function(M){var D=s.getDimensionInfo(M),k=D.coordDim;if(k){_t(oN.get(k)==null);var Q=D.coordDimIndex;tU(l,k)[Q]=M,D.isExtraCoord||(c.set(k,1),hQe(D.type)&&(d[0]=M),tU(m,k)[Q]=s.getDimensionIndex(D.name)),D.defaultTooltip&&v.push(M)}oN.each(function(V,$){var Z=tU(l,$),ee=D.otherDims[$];ee!=null&&ee!==!1&&(Z[ee]=D.name)})});var w=[],S={};c.each(function(M,D){var k=l[D];S[D]=k[0],w=w.concat(k)}),i.dataDimsOnCoord=w,i.dataDimIndicesOnCoord=xe(w,function(M){return s.getDimensionInfo(M).storeDimIndex}),i.encodeFirstDimNotExtra=S;var x=l.label;x&&x.length&&(d=x.slice());var E=l.tooltip;return E&&E.length?v=E.slice():v.length||(v=d.slice()),l.defaultedLabel=d,l.defaultedTooltip=v,i.userOutput=new cQe(m,a),i}function tU(s,a){return s.hasOwnProperty(a)||(s[a]=[]),s[a]}function YI(s){return s==="category"?"ordinal":s==="time"?"time":"float"}function hQe(s){return!(s==="ordinal"||s==="time")}var XI=function(){function s(a){this.otherDims={},a!=null&&ie(this,a)}return s}(),dQe=Ri(),AQe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ane=function(){function s(a){this.dimensions=a.dimensions,this._dimOmitted=a.dimensionOmitted,this.source=a.source,this._fullDimCount=a.fullDimensionCount,this._updateDimOmitted(a.dimensionOmitted)}return s.prototype.isDimensionOmitted=function(){return this._dimOmitted},s.prototype._updateDimOmitted=function(a){this._dimOmitted=a,a&&(this._dimNameMap||(this._dimNameMap=lne(this.source)))},s.prototype.getSourceDimensionIndex=function(a){return It(this._dimNameMap.get(a),-1)},s.prototype.getSourceDimension=function(a){var i=this.source.dimensionsDefine;if(i)return i[a]},s.prototype.makeStoreSchema=function(){for(var a=this._fullDimCount,i=Ate(this.source),l=!une(a),c="",d=[],v=0,m=0;v<a;v++){var w=void 0,S=void 0,x=void 0,E=this.dimensions[m];if(E&&E.storeDimIndex===v)w=i?E.name:null,S=E.type,x=E.ordinalMeta,m++;else{var M=this.getSourceDimension(v);M&&(w=i?M.name:null,S=M.type)}d.push({property:w,type:S,ordinalMeta:x}),i&&w!=null&&(!E||!E.isCalculationCoord)&&(c+=l?w.replace(/\`/g,"`1").replace(/\$/g,"`2"):w),c+="$",c+=AQe[S]||"f",x&&(c+=x.uid),c+="$"}var D=this.source,k=[D.seriesLayoutBy,D.startIndex,c].join("$$");return{dimensions:d,hash:k}},s.prototype.makeOutputDimensionNames=function(){for(var a=[],i=0,l=0;i<this._fullDimCount;i++){var c=void 0,d=this.dimensions[l];if(d&&d.storeDimIndex===i)d.isCalculationCoord||(c=d.name),l++;else{var v=this.getSourceDimension(i);v&&(c=v.name)}a.push(c)}return a},s.prototype.appendCalculationDimension=function(a){this.dimensions.push(a),a.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},s}();function one(s){return s instanceof ane}function sne(s){for(var a=Ht(),i=0;i<(s||[]).length;i++){var l=s[i],c=Pe(l)?l.name:l;c!=null&&a.get(c)==null&&a.set(c,i)}return a}function lne(s){var a=dQe(s);return a.dimNameMap||(a.dimNameMap=sne(s.dimensionsDefine))}function une(s){return s>30}var dC=Pe,dm=xe,vQe=typeof Int32Array>"u"?Array:Int32Array,pQe="e\0\0",cne=-1,gQe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],mQe=["_approximateExtent"],fne,ZI,AC,bb,rU,vC,nU,yc=function(){function s(a,i){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var l,c=!1;one(a)?(l=a.dimensions,this._dimOmitted=a.isDimensionOmitted(),this._schema=a):(c=!0,l=a),l=l||["x","y"];for(var d={},v=[],m={},w=!1,S={},x=0;x<l.length;x++){var E=l[x],M=Re(E)?new XI({name:E}):E instanceof XI?E:new XI(E),D=M.name;M.type=M.type||"float",M.coordDim||(M.coordDim=D,M.coordDimIndex=0);var k=M.otherDims=M.otherDims||{};v.push(D),d[D]=M,S[D]!=null&&(w=!0),M.createInvertedIndices&&(m[D]=[]),k.itemName===0&&(this._nameDimIdx=x),k.itemId===0&&(this._idDimIdx=x),_t(c||M.storeDimIndex>=0),c&&(M.storeDimIndex=x)}if(this.dimensions=v,this._dimInfos=d,this._initGetDimensionInfo(w),this.hostModel=i,this._invertedIndicesMap=m,this._dimOmitted){var Q=this._dimIdxToName=Ht();ne(v,function(V){Q.set(d[V].storeDimIndex,V)})}}return s.prototype.getDimension=function(a){var i=this._recognizeDimIndex(a);if(i==null)return a;if(i=a,!this._dimOmitted)return this.dimensions[i];var l=this._dimIdxToName.get(i);if(l!=null)return l;var c=this._schema.getSourceDimension(i);if(c)return c.name},s.prototype.getDimensionIndex=function(a){var i=this._recognizeDimIndex(a);if(i!=null)return i;if(a==null)return-1;var l=this._getDimInfo(a);return l?l.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(a):-1},s.prototype._recognizeDimIndex=function(a){if(Ge(a)||a!=null&&!isNaN(a)&&!this._getDimInfo(a)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(a)<0))return+a},s.prototype._getStoreDimIndex=function(a){var i=this.getDimensionIndex(a);if(i==null)throw new Error("Unknown dimension "+a);return i},s.prototype.getDimensionInfo=function(a){return this._getDimInfo(this.getDimension(a))},s.prototype._initGetDimensionInfo=function(a){var i=this._dimInfos;this._getDimInfo=a?function(l){return i.hasOwnProperty(l)?i[l]:void 0}:function(l){return i[l]}},s.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},s.prototype.mapDimension=function(a,i){var l=this._dimSummary;if(i==null)return l.encodeFirstDimNotExtra[a];var c=l.encode[a];return c?c[i]:null},s.prototype.mapDimensionsAll=function(a){var i=this._dimSummary,l=i.encode[a];return(l||[]).slice()},s.prototype.getStore=function(){return this._store},s.prototype.initData=function(a,i,l){var c=this,d;if(a instanceof xN&&(d=a),!d){var v=this.dimensions,m=gN(a)||Ce(a)?new gte(a,v.length):a;d=new xN;var w=dm(v,function(S){return{type:c._dimInfos[S].type,property:S}});d.initData(m,w,l)}this._store=d,this._nameList=(i||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,d.count()),this._dimSummary=fQe(this,this._schema),this.userOutput=this._dimSummary.userOutput},s.prototype.appendData=function(a){var i=this._store.appendData(a);this._doInit(i[0],i[1])},s.prototype.appendValues=function(a,i){var l=this._store.appendValues(a,i&&i.length),c=l.start,d=l.end,v=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),i)for(var m=c;m<d;m++){var w=m-c;this._nameList[m]=i[w],v&&nU(this,m)}},s.prototype._updateOrdinalMeta=function(){for(var a=this._store,i=this.dimensions,l=0;l<i.length;l++){var c=this._dimInfos[i[l]];c.ordinalMeta&&a.collectOrdinalMeta(c.storeDimIndex,c.ordinalMeta)}},s.prototype._shouldMakeIdFromName=function(){var a=this._store.getProvider();return this._idDimIdx==null&&a.getSource().sourceFormat!==Np&&!a.fillStorage},s.prototype._doInit=function(a,i){if(!(a>=i)){var l=this._store,c=l.getProvider();this._updateOrdinalMeta();var d=this._nameList,v=this._idList,m=c.getSource().sourceFormat,w=m===td;if(w&&!c.pure)for(var S=[],x=a;x<i;x++){var E=c.getItem(x,S);if(!this.hasItemOption&&zg(E)&&(this.hasItemOption=!0),E){var M=E.name;d[x]==null&&M!=null&&(d[x]=va(M,null));var D=E.id;v[x]==null&&D!=null&&(v[x]=va(D,null))}}if(this._shouldMakeIdFromName())for(var x=a;x<i;x++)nU(this,x);fne(this)}},s.prototype.getApproximateExtent=function(a){return this._approximateExtent[a]||this._store.getDataExtent(this._getStoreDimIndex(a))},s.prototype.setApproximateExtent=function(a,i){i=this.getDimension(i),this._approximateExtent[i]=a.slice()},s.prototype.getCalculationInfo=function(a){return this._calculationInfo[a]},s.prototype.setCalculationInfo=function(a,i){dC(a)?ie(this._calculationInfo,a):this._calculationInfo[a]=i},s.prototype.getName=function(a){var i=this.getRawIndex(a),l=this._nameList[i];return l==null&&this._nameDimIdx!=null&&(l=AC(this,this._nameDimIdx,i)),l==null&&(l=""),l},s.prototype._getCategory=function(a,i){var l=this._store.get(a,i),c=this._store.getOrdinalMeta(a);return c?c.categories[l]:l},s.prototype.getId=function(a){return ZI(this,this.getRawIndex(a))},s.prototype.count=function(){return this._store.count()},s.prototype.get=function(a,i){var l=this._store,c=this._dimInfos[a];if(c)return l.get(c.storeDimIndex,i)},s.prototype.getByRawIndex=function(a,i){var l=this._store,c=this._dimInfos[a];if(c)return l.getByRawIndex(c.storeDimIndex,i)},s.prototype.getIndices=function(){return this._store.getIndices()},s.prototype.getDataExtent=function(a){return this._store.getDataExtent(this._getStoreDimIndex(a))},s.prototype.getSum=function(a){return this._store.getSum(this._getStoreDimIndex(a))},s.prototype.getMedian=function(a){return this._store.getMedian(this._getStoreDimIndex(a))},s.prototype.getValues=function(a,i){var l=this,c=this._store;return Qe(a)?c.getValues(dm(a,function(d){return l._getStoreDimIndex(d)}),i):c.getValues(a)},s.prototype.hasValue=function(a){for(var i=this._dimSummary.dataDimIndicesOnCoord,l=0,c=i.length;l<c;l++)if(isNaN(this._store.get(i[l],a)))return!1;return!0},s.prototype.indexOfName=function(a){for(var i=0,l=this._store.count();i<l;i++)if(this.getName(i)===a)return i;return-1},s.prototype.getRawIndex=function(a){return this._store.getRawIndex(a)},s.prototype.indexOfRawIndex=function(a){return this._store.indexOfRawIndex(a)},s.prototype.rawIndexOf=function(a,i){var l=a&&this._invertedIndicesMap[a];if(!l)throw new Error("Do not supported yet");var c=l&&l[i];return c==null||isNaN(c)?cne:c},s.prototype.indicesOfNearest=function(a,i,l){return this._store.indicesOfNearest(this._getStoreDimIndex(a),i,l)},s.prototype.each=function(a,i,l){qe(a)&&(l=i,i=a,a=[]);var c=l||this,d=dm(bb(a),this._getStoreDimIndex,this);this._store.each(d,c?Ue(i,c):i)},s.prototype.filterSelf=function(a,i,l){qe(a)&&(l=i,i=a,a=[]);var c=l||this,d=dm(bb(a),this._getStoreDimIndex,this);return this._store=this._store.filter(d,c?Ue(i,c):i),this},s.prototype.selectRange=function(a){var i=this,l={},c=Ne(a);return ne(c,function(d){var v=i._getStoreDimIndex(d);l[v]=a[d]}),this._store=this._store.selectRange(l),this},s.prototype.mapArray=function(a,i,l){qe(a)&&(l=i,i=a,a=[]),l=l||this;var c=[];return this.each(a,function(){c.push(i&&i.apply(this,arguments))},l),c},s.prototype.map=function(a,i,l,c){var d=l||c||this,v=dm(bb(a),this._getStoreDimIndex,this),m=vC(this);return m._store=this._store.map(v,d?Ue(i,d):i),m},s.prototype.modify=function(a,i,l,c){var d=this,v=l||c||this;ne(bb(a),function(w){var S=d.getDimensionInfo(w);S.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var m=dm(bb(a),this._getStoreDimIndex,this);this._store.modify(m,v?Ue(i,v):i)},s.prototype.downSample=function(a,i,l,c){var d=vC(this);return d._store=this._store.downSample(this._getStoreDimIndex(a),i,l,c),d},s.prototype.minmaxDownSample=function(a,i){var l=vC(this);return l._store=this._store.minmaxDownSample(this._getStoreDimIndex(a),i),l},s.prototype.lttbDownSample=function(a,i){var l=vC(this);return l._store=this._store.lttbDownSample(this._getStoreDimIndex(a),i),l},s.prototype.getRawDataItem=function(a){return this._store.getRawDataItem(a)},s.prototype.getItemModel=function(a){var i=this.hostModel,l=this.getRawDataItem(a);return new ta(l,i,i&&i.ecModel)},s.prototype.diff=function(a){var i=this;return new Hp(a?a.getStore().getIndices():[],this.getStore().getIndices(),function(l){return ZI(a,l)},function(l){return ZI(i,l)})},s.prototype.getVisual=function(a){var i=this._visual;return i&&i[a]},s.prototype.setVisual=function(a,i){this._visual=this._visual||{},dC(a)?ie(this._visual,a):this._visual[a]=i},s.prototype.getItemVisual=function(a,i){var l=this._itemVisuals[a],c=l&&l[i];return c??this.getVisual(i)},s.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},s.prototype.ensureUniqueItemVisual=function(a,i){var l=this._itemVisuals,c=l[a];c||(c=l[a]={});var d=c[i];return d==null&&(d=this.getVisual(i),Qe(d)?d=d.slice():dC(d)&&(d=ie({},d)),c[i]=d),d},s.prototype.setItemVisual=function(a,i,l){var c=this._itemVisuals[a]||{};this._itemVisuals[a]=c,dC(i)?ie(c,i):c[i]=l},s.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},s.prototype.setLayout=function(a,i){dC(a)?ie(this._layout,a):this._layout[a]=i},s.prototype.getLayout=function(a){return this._layout[a]},s.prototype.getItemLayout=function(a){return this._itemLayouts[a]},s.prototype.setItemLayout=function(a,i,l){this._itemLayouts[a]=l?ie(this._itemLayouts[a]||{},i):i},s.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},s.prototype.setItemGraphicEl=function(a,i){var l=this.hostModel&&this.hostModel.seriesIndex;mr(l,this.dataType,a,i),this._graphicEls[a]=i},s.prototype.getItemGraphicEl=function(a){return this._graphicEls[a]},s.prototype.eachItemGraphicEl=function(a,i){ne(this._graphicEls,function(l,c){l&&a&&a.call(i,l,c)})},s.prototype.cloneShallow=function(a){return a||(a=new s(this._schema?this._schema:dm(this.dimensions,this._getDimInfo,this),this.hostModel)),rU(a,this),a._store=this._store,a},s.prototype.wrapMethod=function(a,i){var l=this[a];qe(l)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(a),this[a]=function(){var c=l.apply(this,arguments);return i.apply(this,[c].concat(fr(arguments)))})},s.internalField=function(){fne=function(a){var i=a._invertedIndicesMap;ne(i,function(l,c){var d=a._dimInfos[c],v=d.ordinalMeta,m=a._store;if(v){l=i[c]=new vQe(v.categories.length);for(var w=0;w<l.length;w++)l[w]=cne;for(var w=0;w<m.count();w++)l[m.get(d.storeDimIndex,w)]=w}})},AC=function(a,i,l){return va(a._getCategory(i,l),null)},ZI=function(a,i){var l=a._idList[i];return l==null&&a._idDimIdx!=null&&(l=AC(a,a._idDimIdx,i)),l==null&&(l=pQe+i),l},bb=function(a){return Qe(a)||(a=a!=null?[a]:[]),a},vC=function(a){var i=new s(a._schema?a._schema:dm(a.dimensions,a._getDimInfo,a),a.hostModel);return rU(i,a),i},rU=function(a,i){ne(gQe.concat(i.__wrappedMethods||[]),function(l){i.hasOwnProperty(l)&&(a[l]=i[l])}),a.__wrappedMethods=i.__wrappedMethods,ne(mQe,function(l){a[l]=ae(i[l])}),a._calculationInfo=ie({},i._calculationInfo)},nU=function(a,i){var l=a._nameList,c=a._idList,d=a._nameDimIdx,v=a._idDimIdx,m=l[i],w=c[i];if(m==null&&d!=null&&(l[i]=m=AC(a,d,i)),w==null&&v!=null&&(c[i]=w=AC(a,v,i)),w==null&&m!=null){var S=a._nameRepeatCount,x=S[m]=(S[m]||0)+1;w=m,x>1&&(w+="__ec__"+x),c[i]=w}}}(),s}();function yQe(s,a){return _b(s,a).dimensions}function _b(s,a){gN(s)||(s=yN(s)),a=a||{};var i=a.coordDimensions||[],l=a.dimensionsDefine||s.dimensionsDefine||[],c=Ht(),d=[],v=bQe(s,i,l,a.dimensionsCount),m=a.canOmitUnusedDimensions&&une(v),w=l===s.dimensionsDefine,S=w?lne(s):sne(l),x=a.encodeDefine;!x&&a.encodeDefaulter&&(x=a.encodeDefaulter(s,v));for(var E=Ht(x),M=new Ite(v),D=0;D<M.length;D++)M[D]=-1;function k(Ie){var Le=M[Ie];if(Le<0){var Fe=l[Ie],Je=Pe(Fe)?Fe:{name:Fe},rt=new XI,at=Je.name;at!=null&&S.get(at)!=null&&(rt.name=rt.displayName=at),Je.type!=null&&(rt.type=Je.type),Je.displayName!=null&&(rt.displayName=Je.displayName);var dt=d.length;return M[Ie]=dt,rt.storeDimIndex=Ie,d.push(rt),rt}return d[Le]}if(!m)for(var D=0;D<v;D++)k(D);E.each(function(Ie,Le){var Fe=Ni(Ie).slice();if(Fe.length===1&&!Re(Fe[0])&&Fe[0]<0){E.set(Le,!1);return}var Je=E.set(Le,[]);ne(Fe,function(rt,at){var dt=Re(rt)?S.get(rt):rt;dt!=null&&dt<v&&(Je[at]=dt,V(k(dt),Le,at))})});var Q=0;ne(i,function(Ie){var Le,Fe,Je,rt;if(Re(Ie))Le=Ie,rt={};else{rt=Ie,Le=rt.name;var at=rt.ordinalMeta;rt.ordinalMeta=null,rt=ie({},rt),rt.ordinalMeta=at,Fe=rt.dimsDef,Je=rt.otherDims,rt.name=rt.coordDim=rt.coordDimIndex=rt.dimsDef=rt.otherDims=null}var dt=E.get(Le);if(dt!==!1){if(dt=Ni(dt),!dt.length)for(var wt=0;wt<(Fe&&Fe.length||1);wt++){for(;Q<v&&k(Q).coordDim!=null;)Q++;Q<v&&dt.push(Q++)}ne(dt,function(zt,Ut){var Yt=k(zt);if(w&&rt.type!=null&&(Yt.type=rt.type),V(he(Yt,rt),Le,Ut),Yt.name==null&&Fe){var ur=Fe[Ut];!Pe(ur)&&(ur={name:ur}),Yt.name=Yt.displayName=ur.name,Yt.defaultTooltip=ur.defaultTooltip}Je&&he(Yt.otherDims,Je)})}});function V(Ie,Le,Fe){oN.get(Le)!=null?Ie.otherDims[Le]=Fe:(Ie.coordDim=Le,Ie.coordDimIndex=Fe,c.set(Le,!0))}var $=a.generateCoord,Z=a.generateCoordCount,ee=Z!=null;Z=$?Z||1:0;var fe=$||"value";function ve(Ie){Ie.name==null&&(Ie.name=Ie.coordDim)}if(m)ne(d,function(Ie){ve(Ie)}),d.sort(function(Ie,Le){return Ie.storeDimIndex-Le.storeDimIndex});else for(var ge=0;ge<v;ge++){var Se=k(ge),Ee=Se.coordDim;Ee==null&&(Se.coordDim=_Qe(fe,c,ee),Se.coordDimIndex=0,(!$||Z<=0)&&(Se.isExtraCoord=!0),Z--),ve(Se),Se.type==null&&($ee(s,ge)===Nu.Must||Se.isExtraCoord&&(Se.otherDims.itemName!=null||Se.otherDims.seriesName!=null))&&(Se.type="ordinal")}return wQe(d),new ane({source:s,dimensions:d,fullDimensionCount:v,dimensionOmitted:m})}function wQe(s){for(var a=Ht(),i=0;i<s.length;i++){var l=s[i],c=l.name,d=a.get(c)||0;d>0&&(l.name=c+(d-1)),d++,a.set(c,d)}}function bQe(s,a,i,l){var c=Math.max(s.dimensionsDetectedCount||1,a.length,i.length,l||0);return ne(a,function(d){var v;Pe(d)&&(v=d.dimsDef)&&(c=Math.max(c,v.length))}),c}function _Qe(s,a,i){if(i||a.hasKey(s)){for(var l=0;a.hasKey(s+l);)l++;s+=l}return a.set(s,!0),s}var SQe=function(){function s(a){this.coordSysDims=[],this.axisMap=Ht(),this.categoryAxisMap=Ht(),this.coordSysName=a}return s}();function xQe(s){var a=s.get("coordinateSystem"),i=new SQe(a),l=CQe[a];if(l)return l(s,i,i.axisMap,i.categoryAxisMap),i}var CQe={cartesian2d:function(s,a,i,l){var c=s.getReferringComponents("xAxis",ps).models[0],d=s.getReferringComponents("yAxis",ps).models[0];{if(!c)throw new Error('xAxis "'+Bt(s.get("xAxisIndex"),s.get("xAxisId"),0)+'" not found');if(!d)throw new Error('yAxis "'+Bt(s.get("xAxisIndex"),s.get("yAxisId"),0)+'" not found')}a.coordSysDims=["x","y"],i.set("x",c),i.set("y",d),Sb(c)&&(l.set("x",c),a.firstCategoryDimIndex=0),Sb(d)&&(l.set("y",d),a.firstCategoryDimIndex==null&&(a.firstCategoryDimIndex=1))},singleAxis:function(s,a,i,l){var c=s.getReferringComponents("singleAxis",ps).models[0];if(!c)throw new Error("singleAxis should be specified.");a.coordSysDims=["single"],i.set("single",c),Sb(c)&&(l.set("single",c),a.firstCategoryDimIndex=0)},polar:function(s,a,i,l){var c=s.getReferringComponents("polar",ps).models[0],d=c.findAxisModel("radiusAxis"),v=c.findAxisModel("angleAxis");{if(!v)throw new Error("angleAxis option not found");if(!d)throw new Error("radiusAxis option not found")}a.coordSysDims=["radius","angle"],i.set("radius",d),i.set("angle",v),Sb(d)&&(l.set("radius",d),a.firstCategoryDimIndex=0),Sb(v)&&(l.set("angle",v),a.firstCategoryDimIndex==null&&(a.firstCategoryDimIndex=1))},geo:function(s,a,i,l){a.coordSysDims=["lng","lat"]},parallel:function(s,a,i,l){var c=s.ecModel,d=c.getComponent("parallel",s.get("parallelIndex")),v=a.coordSysDims=d.dimensions.slice();ne(d.parallelAxisIndex,function(m,w){var S=c.getComponent("parallelAxis",m),x=v[w];i.set(x,S),Sb(S)&&(l.set(x,S),a.firstCategoryDimIndex==null&&(a.firstCategoryDimIndex=w))})}};function Sb(s){return s.get("type")==="category"}function hne(s,a,i){i=i||{};var l=i.byIndex,c=i.stackedCoordDimension,d,v,m;TQe(a)?d=a:(v=a.schema,d=v.dimensions,m=a.store);var w=!!(s&&s.get("stack")),S,x,E,M;if(ne(d,function(Z,ee){Re(Z)&&(d[ee]=Z={name:Z}),w&&!Z.isExtraCoord&&(!l&&!S&&Z.ordinalMeta&&(S=Z),!x&&Z.type!=="ordinal"&&Z.type!=="time"&&(!c||c===Z.coordDim)&&(x=Z))}),x&&!l&&!S&&(l=!0),x){E="__\0ecstackresult_"+s.id,M="__\0ecstackedover_"+s.id,S&&(S.createInvertedIndices=!0);var D=x.coordDim,k=x.type,Q=0;ne(d,function(Z){Z.coordDim===D&&Q++});var V={name:E,coordDim:D,coordDimIndex:Q,type:k,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:d.length},$={name:M,coordDim:M,coordDimIndex:Q+1,type:k,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:d.length+1};v?(m&&(V.storeDimIndex=m.ensureCalculationDimension(M,k),$.storeDimIndex=m.ensureCalculationDimension(E,k)),v.appendCalculationDimension(V),v.appendCalculationDimension($)):(d.push(V),d.push($))}return{stackedDimension:x&&x.name,stackedByDimension:S&&S.name,isStackedByIndex:l,stackedOverDimension:M,stackResultDimension:E}}function TQe(s){return!one(s.schema)}function Qp(s,a){return!!a&&a===s.getCalculationInfo("stackedDimension")}function iU(s,a){return Qp(s,a)?s.getCalculationInfo("stackResultDimension"):a}function EQe(s,a){var i=s.get("coordinateSystem"),l=o0.get(i),c;return a&&a.coordSysDims&&(c=xe(a.coordSysDims,function(d){var v={name:d},m=a.axisMap.get(d);if(m){var w=m.get("type");v.type=YI(w)}return v})),c||(c=l&&(l.getDimensionsInfo?l.getDimensionsInfo():l.dimensions.slice())||["x","y"]),c}function BQe(s,a,i){var l,c;return i&&ne(s,function(d,v){var m=d.coordDim,w=i.categoryAxisMap.get(m);w&&(l==null&&(l=v),d.ordinalMeta=w.getOrdinalMeta(),a&&(d.createInvertedIndices=!0)),d.otherDims.itemName!=null&&(c=!0)}),!c&&l!=null&&(s[l].otherDims.itemName=0),l}function Sv(s,a,i){i=i||{};var l=a.getSourceManager(),c,d=!1;s?(d=!0,c=yN(s)):(c=l.getSource(),d=c.sourceFormat===td);var v=xQe(a),m=EQe(a,v),w=i.useEncodeDefaulter,S=qe(w)?w:w?ue(Wee,m,a):null,x={coordDimensions:m,generateCoord:i.generateCoord,encodeDefine:a.getEncode(),encodeDefaulter:S,canOmitUnusedDimensions:!d},E=_b(c,x),M=BQe(E.dimensions,i.createInvertedIndices,v),D=d?null:l.getSharedDataStore(E),k=hne(a,{schema:E,store:D}),Q=new yc(E,a);Q.setCalculationInfo(k);var V=M!=null&&IQe(c)?function($,Z,ee,fe){return fe===M?ee:this.defaultDimValueGetter($,Z,ee,fe)}:null;return Q.hasItemOption=!1,Q.initData(d?c:D,null,V),Q}function IQe(s){if(s.sourceFormat===td){var a=LQe(s.data||[]);return!Qe(rA(a))}}function LQe(s){for(var a=0;a<s.length&&s[a]==null;)a++;return s[a]}var xv=function(){function s(a){this._setting=a||{},this._extent=[1/0,-1/0]}return s.prototype.getSetting=function(a){return this._setting[a]},s.prototype.unionExtent=function(a){var i=this._extent;a[0]<i[0]&&(i[0]=a[0]),a[1]>i[1]&&(i[1]=a[1])},s.prototype.unionExtentFromData=function(a,i){this.unionExtent(a.getApproximateExtent(i))},s.prototype.getExtent=function(){return this._extent.slice()},s.prototype.setExtent=function(a,i){var l=this._extent;isNaN(a)||(l[0]=a),isNaN(i)||(l[1]=i)},s.prototype.isInExtentRange=function(a){return this._extent[0]<=a&&this._extent[1]>=a},s.prototype.isBlank=function(){return this._isBlank},s.prototype.setBlank=function(a){this._isBlank=a},s}();Rw(xv);var MQe=0,aU=function(){function s(a){this.categories=a.categories||[],this._needCollect=a.needCollect,this._deduplication=a.deduplication,this.uid=++MQe}return s.createByAxisModel=function(a){var i=a.option,l=i.data,c=l&&xe(l,DQe);return new s({categories:c,needCollect:!c,deduplication:i.dedplication!==!1})},s.prototype.getOrdinal=function(a){return this._getOrCreateMap().get(a)},s.prototype.parseAndCollect=function(a){var i,l=this._needCollect;if(!Re(a)&&!l)return a;if(l&&!this._deduplication)return i=this.categories.length,this.categories[i]=a,i;var c=this._getOrCreateMap();return i=c.get(a),i==null&&(l?(i=this.categories.length,this.categories[i]=a,c.set(a,i)):i=NaN),i},s.prototype._getOrCreateMap=function(){return this._map||(this._map=Ht(this.categories))},s}();function DQe(s){return Pe(s)&&s.value!=null?s.value:s+""}function RQe(s){var a=Math.pow(10,fo(Math.abs(s))),i=Math.abs(s/a);return i===0||i===1||i===2||i===3||i===5}function oU(s){return s.type==="interval"||s.type==="log"}function PQe(s,a,i,l){var c={},d=s[1]-s[0],v=c.interval=vs(d/a,!0);i!=null&&v<i&&(v=c.interval=i),l!=null&&v>l&&(v=c.interval=l);var m=c.intervalPrecision=dne(v),w=c.niceTickExtent=[pi(Math.ceil(s[0]/v)*v,m),pi(Math.floor(s[1]/v)*v,m)];return OQe(w,s),c}function sU(s){var a=Math.pow(10,fo(s)),i=s/a;return i?i===2?i=3:i===3?i=5:i*=2:i=1,pi(i*a)}function dne(s){return ua(s)+2}function Ane(s,a,i){s[a]=Math.max(Math.min(s[a],i[1]),i[0])}function OQe(s,a){!isFinite(s[0])&&(s[0]=a[0]),!isFinite(s[1])&&(s[1]=a[1]),Ane(s,0,a),Ane(s,1,a),s[0]>s[1]&&(s[0]=s[1])}function JI(s,a){return s>=a[0]&&s<=a[1]}function eL(s,a){return a[1]===a[0]?.5:(s-a[0])/(a[1]-a[0])}function tL(s,a){return s*(a[1]-a[0])+a[0]}var rL=function(s){o(a,s);function a(i){var l=s.call(this,i)||this;l.type="ordinal";var c=l.getSetting("ordinalMeta");return c||(c=new aU({})),Qe(c)&&(c=new aU({categories:xe(c,function(d){return Pe(d)?d.value:d})})),l._ordinalMeta=c,l._extent=l.getSetting("extent")||[0,c.categories.length-1],l}return a.prototype.parse=function(i){return i==null?NaN:Re(i)?this._ordinalMeta.getOrdinal(i):Math.round(i)},a.prototype.contain=function(i){return i=this.parse(i),JI(i,this._extent)&&this._ordinalMeta.categories[i]!=null},a.prototype.normalize=function(i){return i=this._getTickNumber(this.parse(i)),eL(i,this._extent)},a.prototype.scale=function(i){return i=Math.round(tL(i,this._extent)),this.getRawOrdinalNumber(i)},a.prototype.getTicks=function(){for(var i=[],l=this._extent,c=l[0];c<=l[1];)i.push({value:c}),c++;return i},a.prototype.getMinorTicks=function(i){},a.prototype.setSortInfo=function(i){if(i==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var l=i.ordinalNumbers,c=this._ordinalNumbersByTick=[],d=this._ticksByOrdinalNumber=[],v=0,m=this._ordinalMeta.categories.length,w=Math.min(m,l.length);v<w;++v){var S=l[v];c[v]=S,d[S]=v}for(var x=0;v<m;++v){for(;d[x]!=null;)x++;c.push(x),d[x]=v}},a.prototype._getTickNumber=function(i){var l=this._ticksByOrdinalNumber;return l&&i>=0&&i<l.length?l[i]:i},a.prototype.getRawOrdinalNumber=function(i){var l=this._ordinalNumbersByTick;return l&&i>=0&&i<l.length?l[i]:i},a.prototype.getLabel=function(i){if(!this.isBlank()){var l=this.getRawOrdinalNumber(i.value),c=this._ordinalMeta.categories[l];return c==null?"":c+""}},a.prototype.count=function(){return this._extent[1]-this._extent[0]+1},a.prototype.unionExtentFromData=function(i,l){this.unionExtent(i.getApproximateExtent(l))},a.prototype.isInExtentRange=function(i){return i=this._getTickNumber(i),this._extent[0]<=i&&this._extent[1]>=i},a.prototype.getOrdinalMeta=function(){return this._ordinalMeta},a.prototype.calcNiceTicks=function(){},a.prototype.calcNiceExtent=function(){},a.type="ordinal",a}(xv);xv.registerClass(rL);var v0=pi,Vp=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type="interval",i._interval=0,i._intervalPrecision=2,i}return a.prototype.parse=function(i){return i},a.prototype.contain=function(i){return JI(i,this._extent)},a.prototype.normalize=function(i){return eL(i,this._extent)},a.prototype.scale=function(i){return tL(i,this._extent)},a.prototype.setExtent=function(i,l){var c=this._extent;isNaN(i)||(c[0]=parseFloat(i)),isNaN(l)||(c[1]=parseFloat(l))},a.prototype.unionExtent=function(i){var l=this._extent;i[0]<l[0]&&(l[0]=i[0]),i[1]>l[1]&&(l[1]=i[1]),this.setExtent(l[0],l[1])},a.prototype.getInterval=function(){return this._interval},a.prototype.setInterval=function(i){this._interval=i,this._niceExtent=this._extent.slice(),this._intervalPrecision=dne(i)},a.prototype.getTicks=function(i){var l=this._interval,c=this._extent,d=this._niceExtent,v=this._intervalPrecision,m=[];if(!l)return m;var w=1e4;c[0]<d[0]&&(i?m.push({value:v0(d[0]-l,v)}):m.push({value:c[0]}));for(var S=d[0];S<=d[1]&&(m.push({value:S}),S=v0(S+l,v),S!==m[m.length-1].value);)if(m.length>w)return[];var x=m.length?m[m.length-1].value:d[1];return c[1]>x&&(i?m.push({value:v0(x+l,v)}):m.push({value:c[1]})),m},a.prototype.getMinorTicks=function(i){for(var l=this.getTicks(!0),c=[],d=this.getExtent(),v=1;v<l.length;v++){for(var m=l[v],w=l[v-1],S=0,x=[],E=m.value-w.value,M=E/i;S<i-1;){var D=v0(w.value+(S+1)*M);D>d[0]&&D<d[1]&&x.push(D),S++}c.push(x)}return c},a.prototype.getLabel=function(i,l){if(i==null)return"";var c=l&&l.precision;c==null?c=ua(i.value)||0:c==="auto"&&(c=this._intervalPrecision);var d=v0(i.value,c,!0);return eN(d)},a.prototype.calcNiceTicks=function(i,l,c){i=i||5;var d=this._extent,v=d[1]-d[0];if(isFinite(v)){v<0&&(v=-v,d.reverse());var m=PQe(d,i,l,c);this._intervalPrecision=m.intervalPrecision,this._interval=m.interval,this._niceExtent=m.niceTickExtent}},a.prototype.calcNiceExtent=function(i){var l=this._extent;if(l[0]===l[1])if(l[0]!==0){var c=Math.abs(l[0]);i.fixMax||(l[1]+=c/2),l[0]-=c/2}else l[1]=1;var d=l[1]-l[0];isFinite(d)||(l[0]=0,l[1]=1),this.calcNiceTicks(i.splitNumber,i.minInterval,i.maxInterval);var v=this._interval;i.fixMin||(l[0]=v0(Math.floor(l[0]/v)*v)),i.fixMax||(l[1]=v0(Math.ceil(l[1]/v)*v))},a.prototype.setNiceExtent=function(i,l){this._niceExtent=[i,l]},a.type="interval",a}(xv);xv.registerClass(Vp);var vne=typeof Float32Array<"u",kQe=vne?Float32Array:Array;function Cv(s){return Qe(s)?vne?new Float32Array(s):s:new kQe(s)}var lU="__ec_stack_";function pne(s){return s.get("stack")||lU+s.seriesIndex}function uU(s){return s.dim+s.index}function FQe(s){var a=[],i=s.axis,l="axis0";if(i.type==="category"){for(var c=i.getBandWidth(),d=0;d<s.count;d++)a.push(he({bandWidth:c,axisKey:l,stackId:lU+d},s));for(var v=yne(a),m=[],d=0;d<s.count;d++){var w=v[l][lU+d];w.offsetCenter=w.offset+w.width/2,m.push(w)}return m}}function gne(s,a){var i=[];return a.eachSeriesByType(s,function(l){_ne(l)&&i.push(l)}),i}function NQe(s){var a={};ne(s,function(w){var S=w.coordinateSystem,x=S.getBaseAxis();if(!(x.type!=="time"&&x.type!=="value"))for(var E=w.getData(),M=x.dim+"_"+x.index,D=E.getDimensionIndex(E.mapDimension(x.dim)),k=E.getStore(),Q=0,V=k.count();Q<V;++Q){var $=k.get(D,Q);a[M]?a[M].push($):a[M]=[$]}});var i={};for(var l in a)if(a.hasOwnProperty(l)){var c=a[l];if(c){c.sort(function(w,S){return w-S});for(var d=null,v=1;v<c.length;++v){var m=c[v]-c[v-1];m>0&&(d=d===null?m:Math.min(d,m))}i[l]=d}}return i}function mne(s){var a=NQe(s),i=[];return ne(s,function(l){var c=l.coordinateSystem,d=c.getBaseAxis(),v=d.getExtent(),m;if(d.type==="category")m=d.getBandWidth();else if(d.type==="value"||d.type==="time"){var w=d.dim+"_"+d.index,S=a[w],x=Math.abs(v[1]-v[0]),E=d.scale.getExtent(),M=Math.abs(E[1]-E[0]);m=S?x/M*S:x}else{var D=l.getData();m=Math.abs(v[1]-v[0])/D.count()}var k=vr(l.get("barWidth"),m),Q=vr(l.get("barMaxWidth"),m),V=vr(l.get("barMinWidth")||(Sne(l)?.5:1),m),$=l.get("barGap"),Z=l.get("barCategoryGap");i.push({bandWidth:m,barWidth:k,barMaxWidth:Q,barMinWidth:V,barGap:$,barCategoryGap:Z,axisKey:uU(d),stackId:pne(l)})}),yne(i)}function yne(s){var a={};ne(s,function(l,c){var d=l.axisKey,v=l.bandWidth,m=a[d]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},w=m.stacks;a[d]=m;var S=l.stackId;w[S]||m.autoWidthCount++,w[S]=w[S]||{width:0,maxWidth:0};var x=l.barWidth;x&&!w[S].width&&(w[S].width=x,x=Math.min(m.remainedWidth,x),m.remainedWidth-=x);var E=l.barMaxWidth;E&&(w[S].maxWidth=E);var M=l.barMinWidth;M&&(w[S].minWidth=M);var D=l.barGap;D!=null&&(m.gap=D);var k=l.barCategoryGap;k!=null&&(m.categoryGap=k)});var i={};return ne(a,function(l,c){i[c]={};var d=l.stacks,v=l.bandWidth,m=l.categoryGap;if(m==null){var w=Ne(d).length;m=Math.max(35-w*4,15)+"%"}var S=vr(m,v),x=vr(l.gap,1),E=l.remainedWidth,M=l.autoWidthCount,D=(E-S)/(M+(M-1)*x);D=Math.max(D,0),ne(d,function($){var Z=$.maxWidth,ee=$.minWidth;if($.width){var fe=$.width;Z&&(fe=Math.min(fe,Z)),ee&&(fe=Math.max(fe,ee)),$.width=fe,E-=fe+x*fe,M--}else{var fe=D;Z&&Z<fe&&(fe=Math.min(Z,E)),ee&&ee>fe&&(fe=ee),fe!==D&&($.width=fe,E-=fe+x*fe,M--)}}),D=(E-S)/(M+(M-1)*x),D=Math.max(D,0);var k=0,Q;ne(d,function($,Z){$.width||($.width=D),Q=$,k+=$.width*(1+x)}),Q&&(k-=Q.width*x);var V=-k/2;ne(d,function($,Z){i[c][Z]=i[c][Z]||{bandWidth:v,offset:V,width:$.width},V+=$.width*(1+x)})}),i}function UQe(s,a,i){if(s&&a){var l=s[uU(a)];return l}}function wne(s,a){var i=gne(s,a),l=mne(i);ne(i,function(c){var d=c.getData(),v=c.coordinateSystem,m=v.getBaseAxis(),w=pne(c),S=l[uU(m)][w],x=S.offset,E=S.width;d.setLayout({bandWidth:S.bandWidth,offset:x,size:E})})}function bne(s){return{seriesType:s,plan:Ab(),reset:function(a){if(_ne(a)){var i=a.getData(),l=a.coordinateSystem,c=l.getBaseAxis(),d=l.getOtherAxis(c),v=i.getDimensionIndex(i.mapDimension(d.dim)),m=i.getDimensionIndex(i.mapDimension(c.dim)),w=a.get("showBackground",!0),S=i.mapDimension(d.dim),x=i.getCalculationInfo("stackResultDimension"),E=Qp(i,S)&&!!i.getCalculationInfo("stackedOnSeries"),M=d.isHorizontal(),D=HQe(c,d),k=Sne(a),Q=a.get("barMinHeight")||0,V=x&&i.getDimensionIndex(x),$=i.getLayout("size"),Z=i.getLayout("offset");return{progress:function(ee,fe){for(var ve=ee.count,ge=k&&Cv(ve*3),Se=k&&w&&Cv(ve*3),Ee=k&&Cv(ve),Ie=l.master.getRect(),Le=M?Ie.width:Ie.height,Fe,Je=fe.getStore(),rt=0;(Fe=ee.next())!=null;){var at=Je.get(E?V:v,Fe),dt=Je.get(m,Fe),wt=D,zt=void 0;E&&(zt=+at-Je.get(v,Fe));var Ut=void 0,Yt=void 0,ur=void 0,wr=void 0;if(M){var Or=l.dataToPoint([at,dt]);if(E){var vn=l.dataToPoint([zt,dt]);wt=vn[0]}Ut=wt,Yt=Or[1]+Z,ur=Or[0]-wt,wr=$,Math.abs(ur)<Q&&(ur=(ur<0?-1:1)*Q)}else{var Or=l.dataToPoint([dt,at]);if(E){var vn=l.dataToPoint([dt,zt]);wt=vn[1]}Ut=Or[0]+Z,Yt=wt,ur=$,wr=Or[1]-wt,Math.abs(wr)<Q&&(wr=(wr<=0?-1:1)*Q)}k?(ge[rt]=Ut,ge[rt+1]=Yt,ge[rt+2]=M?ur:wr,Se&&(Se[rt]=M?Ie.x:Ut,Se[rt+1]=M?Yt:Ie.y,Se[rt+2]=Le),Ee[Fe]=Fe):fe.setItemLayout(Fe,{x:Ut,y:Yt,width:ur,height:wr}),rt+=3}k&&fe.setLayout({largePoints:ge,largeDataIndices:Ee,largeBackgroundPoints:Se,valueAxisHorizontal:M})}}}}}}function _ne(s){return s.coordinateSystem&&s.coordinateSystem.type==="cartesian2d"}function Sne(s){return s.pipelineContext&&s.pipelineContext.large}function HQe(s,a){var i=a.model.get("startValue");return i||(i=0),a.toGlobalCoord(a.dataToCoord(a.type==="log"?i>0?i:1:i))}var QQe=function(s,a,i,l){for(;i<l;){var c=i+l>>>1;s[c][1]<a?i=c+1:l=c}return i},cU=function(s){o(a,s);function a(i){var l=s.call(this,i)||this;return l.type="time",l}return a.prototype.getLabel=function(i){var l=this.getSetting("useUTC");return Kx(i.value,Lee[A6e(ob(this._minLevelUnit))]||Lee.second,l,this.getSetting("locale"))},a.prototype.getFormattedLabel=function(i,l,c){var d=this.getSetting("useUTC"),v=this.getSetting("locale");return v6e(i,l,c,v,d)},a.prototype.getTicks=function(){var i=this._interval,l=this._extent,c=[];if(!i)return c;c.push({value:l[0],level:0});var d=this.getSetting("useUTC"),v=$Qe(this._minLevelUnit,this._approxInterval,d,l);return c=c.concat(v),c.push({value:l[1],level:0}),c},a.prototype.calcNiceExtent=function(i){var l=this._extent;if(l[0]===l[1]&&(l[0]-=ed,l[1]+=ed),l[1]===-1/0&&l[0]===1/0){var c=new Date;l[1]=+new Date(c.getFullYear(),c.getMonth(),c.getDate()),l[0]=l[1]-ed}this.calcNiceTicks(i.splitNumber,i.minInterval,i.maxInterval)},a.prototype.calcNiceTicks=function(i,l,c){i=i||10;var d=this._extent,v=d[1]-d[0];this._approxInterval=v/i,l!=null&&this._approxInterval<l&&(this._approxInterval=l),c!=null&&this._approxInterval>c&&(this._approxInterval=c);var m=nL.length,w=Math.min(QQe(nL,this._approxInterval,0,m),m-1);this._interval=nL[w][1],this._minLevelUnit=nL[Math.max(w-1,0)][0]},a.prototype.parse=function(i){return Ge(i)?i:+Na(i)},a.prototype.contain=function(i){return JI(this.parse(i),this._extent)},a.prototype.normalize=function(i){return eL(this.parse(i),this._extent)},a.prototype.scale=function(i){return tL(i,this._extent)},a.type="time",a}(Vp),nL=[["second",YF],["minute",XF],["hour",Wx],["quarter-day",Wx*6],["half-day",Wx*12],["day",ed*1.2],["half-week",ed*3.5],["week",ed*7],["month",ed*31],["quarter",ed*95],["half-year",Iee/2],["year",Iee]];function VQe(s,a,i,l){var c=Na(a),d=Na(i),v=function(k){return Ree(c,k,l)===Ree(d,k,l)},m=function(){return v("year")},w=function(){return m()&&v("month")},S=function(){return w()&&v("day")},x=function(){return S()&&v("hour")},E=function(){return x()&&v("minute")},M=function(){return E()&&v("second")},D=function(){return M()&&v("millisecond")};switch(s){case"year":return m();case"month":return w();case"day":return S();case"hour":return x();case"minute":return E();case"second":return M();case"millisecond":return D()}}function zQe(s,a){return s/=ed,s>16?16:s>7.5?7:s>3.5?4:s>1.5?2:1}function GQe(s){var a=30*ed;return s/=a,s>6?6:s>3?3:s>2?2:1}function jQe(s){return s/=Wx,s>12?12:s>6?6:s>3.5?4:s>2?2:1}function xne(s,a){return s/=a?XF:YF,s>30?30:s>20?20:s>15?15:s>10?10:s>5?5:s>2?2:1}function qQe(s){return vs(s,!0)}function WQe(s,a,i){var l=new Date(s);switch(ob(a)){case"year":case"month":l[Pee(i)](0);case"day":l[Oee(i)](1);case"hour":l[kee(i)](0);case"minute":l[Fee(i)](0);case"second":l[Nee(i)](0),l[Uee(i)](0)}return l.getTime()}function $Qe(s,a,i,l){var c=1e4,d=Mee,v=0;function m(Le,Fe,Je,rt,at,dt,wt){for(var zt=new Date(Fe),Ut=Fe,Yt=zt[rt]();Ut<Je&&Ut<=l[1];)wt.push({value:Ut}),Yt+=Le,zt[at](Yt),Ut=zt.getTime();wt.push({value:Ut,notAdd:!0})}function w(Le,Fe,Je){var rt=[],at=!Fe.length;if(!VQe(ob(Le),l[0],l[1],i)){at&&(Fe=[{value:WQe(new Date(l[0]),Le,i)},{value:l[1]}]);for(var dt=0;dt<Fe.length-1;dt++){var wt=Fe[dt].value,zt=Fe[dt+1].value;if(wt!==zt){var Ut=void 0,Yt=void 0,ur=void 0,wr=!1;switch(Le){case"year":Ut=Math.max(1,Math.round(a/ed/365)),Yt=JF(i),ur=p6e(i);break;case"half-year":case"quarter":case"month":Ut=GQe(a),Yt=sb(i),ur=Pee(i);break;case"week":case"half-week":case"day":Ut=zQe(a),Yt=mI(i),ur=Oee(i),wr=!0;break;case"half-day":case"quarter-day":case"hour":Ut=jQe(a),Yt=Yx(i),ur=kee(i);break;case"minute":Ut=xne(a,!0),Yt=yI(i),ur=Fee(i);break;case"second":Ut=xne(a,!1),Yt=wI(i),ur=Nee(i);break;case"millisecond":Ut=qQe(a),Yt=bI(i),ur=Uee(i);break}m(Ut,wt,zt,Yt,ur,wr,rt),Le==="year"&&Je.length>1&&dt===0&&Je.unshift({value:Je[0].value-Ut})}}for(var dt=0;dt<rt.length;dt++)Je.push(rt[dt]);return rt}}for(var S=[],x=[],E=0,M=0,D=0;D<d.length&&v++<c;++D){var k=ob(d[D]);if(d6e(d[D])){w(d[D],S[S.length-1]||[],x);var Q=d[D+1]?ob(d[D+1]):null;if(k!==Q){if(x.length){M=E,x.sort(function(Le,Fe){return Le.value-Fe.value});for(var V=[],$=0;$<x.length;++$){var Z=x[$].value;($===0||x[$-1].value!==Z)&&(V.push(x[$]),Z>=l[0]&&Z<=l[1]&&E++)}var ee=(l[1]-l[0])/a;if(E>ee*1.5&&M>ee/1.5||(S.push(V),E>ee||s===d[D]))break}x=[]}}}v>=c&&Ya("Exceed safe limit.");for(var fe=ze(xe(S,function(Le){return ze(Le,function(Fe){return Fe.value>=l[0]&&Fe.value<=l[1]&&!Fe.notAdd})}),function(Le){return Le.length>0}),ve=[],ge=fe.length-1,D=0;D<fe.length;++D)for(var Se=fe[D],Ee=0;Ee<Se.length;++Ee)ve.push({value:Se[Ee].value,level:ge-D});ve.sort(function(Le,Fe){return Le.value-Fe.value});for(var Ie=[],D=0;D<ve.length;++D)(D===0||ve[D].value!==ve[D-1].value)&&Ie.push(ve[D]);return Ie}xv.registerClass(cU);var Cne=xv.prototype,pC=Vp.prototype,KQe=pi,YQe=Math.floor,XQe=Math.ceil,iL=Math.pow,gA=Math.log,fU=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type="log",i.base=10,i._originalScale=new Vp,i._interval=0,i}return a.prototype.getTicks=function(i){var l=this._originalScale,c=this._extent,d=l.getExtent(),v=pC.getTicks.call(this,i);return xe(v,function(m){var w=m.value,S=pi(iL(this.base,w));return S=w===c[0]&&this._fixMin?aL(S,d[0]):S,S=w===c[1]&&this._fixMax?aL(S,d[1]):S,{value:S}},this)},a.prototype.setExtent=function(i,l){var c=gA(this.base);i=gA(Math.max(0,i))/c,l=gA(Math.max(0,l))/c,pC.setExtent.call(this,i,l)},a.prototype.getExtent=function(){var i=this.base,l=Cne.getExtent.call(this);l[0]=iL(i,l[0]),l[1]=iL(i,l[1]);var c=this._originalScale,d=c.getExtent();return this._fixMin&&(l[0]=aL(l[0],d[0])),this._fixMax&&(l[1]=aL(l[1],d[1])),l},a.prototype.unionExtent=function(i){this._originalScale.unionExtent(i);var l=this.base;i[0]=gA(i[0])/gA(l),i[1]=gA(i[1])/gA(l),Cne.unionExtent.call(this,i)},a.prototype.unionExtentFromData=function(i,l){this.unionExtent(i.getApproximateExtent(l))},a.prototype.calcNiceTicks=function(i){i=i||10;var l=this._extent,c=l[1]-l[0];if(!(c===1/0||c<=0)){var d=uv(c),v=i/c*d;for(v<=.5&&(d*=10);!isNaN(d)&&Math.abs(d)<1&&Math.abs(d)>0;)d*=10;var m=[pi(XQe(l[0]/d)*d),pi(YQe(l[1]/d)*d)];this._interval=d,this._niceExtent=m}},a.prototype.calcNiceExtent=function(i){pC.calcNiceExtent.call(this,i),this._fixMin=i.fixMin,this._fixMax=i.fixMax},a.prototype.parse=function(i){return i},a.prototype.contain=function(i){return i=gA(i)/gA(this.base),JI(i,this._extent)},a.prototype.normalize=function(i){return i=gA(i)/gA(this.base),eL(i,this._extent)},a.prototype.scale=function(i){return i=tL(i,this._extent),iL(this.base,i)},a.type="log",a}(xv),Tne=fU.prototype;Tne.getMinorTicks=pC.getMinorTicks,Tne.getLabel=pC.getLabel;function aL(s,a){return KQe(s,ua(a))}xv.registerClass(fU);var ZQe=function(){function s(a,i,l){this._prepareParams(a,i,l)}return s.prototype._prepareParams=function(a,i,l){l[1]<l[0]&&(l=[NaN,NaN]),this._dataMin=l[0],this._dataMax=l[1];var c=this._isOrdinal=a.type==="ordinal";this._needCrossZero=a.type==="interval"&&i.getNeedCrossZero&&i.getNeedCrossZero();var d=i.get("min",!0);d==null&&(d=i.get("startValue",!0));var v=this._modelMinRaw=d;qe(v)?this._modelMinNum=oL(a,v({min:l[0],max:l[1]})):v!=="dataMin"&&(this._modelMinNum=oL(a,v));var m=this._modelMaxRaw=i.get("max",!0);if(qe(m)?this._modelMaxNum=oL(a,m({min:l[0],max:l[1]})):m!=="dataMax"&&(this._modelMaxNum=oL(a,m)),c)this._axisDataLen=i.getCategories().length;else{var w=i.get("boundaryGap"),S=Qe(w)?w:[w||0,w||0];typeof S[0]=="boolean"||typeof S[1]=="boolean"?(console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[tr(S[0],1),tr(S[1],1)]}},s.prototype.calculate=function(){var a=this._isOrdinal,i=this._dataMin,l=this._dataMax,c=this._axisDataLen,d=this._boundaryGapInner,v=a?null:l-i||Math.abs(i),m=this._modelMinRaw==="dataMin"?i:this._modelMinNum,w=this._modelMaxRaw==="dataMax"?l:this._modelMaxNum,S=m!=null,x=w!=null;m==null&&(m=a?c?0:NaN:i-d[0]*v),w==null&&(w=a?c?c-1:NaN:l+d[1]*v),(m==null||!isFinite(m))&&(m=NaN),(w==null||!isFinite(w))&&(w=NaN);var E=Rt(m)||Rt(w)||a&&!c;this._needCrossZero&&(m>0&&w>0&&!S&&(m=0),m<0&&w<0&&!x&&(w=0));var M=this._determinedMin,D=this._determinedMax;return M!=null&&(m=M,S=!0),D!=null&&(w=D,x=!0),{min:m,max:w,minFixed:S,maxFixed:x,isBlank:E}},s.prototype.modifyDataMinMax=function(a,i){_t(!this.frozen),this[eVe[a]]=i},s.prototype.setDeterminedMinMax=function(a,i){var l=JQe[a];_t(!this.frozen&&this[l]==null),this[l]=i},s.prototype.freeze=function(){this.frozen=!0},s}(),JQe={min:"_determinedMin",max:"_determinedMax"},eVe={min:"_dataMin",max:"_dataMax"};function Ene(s,a,i){var l=s.rawExtentInfo;return l||(l=new ZQe(s,a,i),s.rawExtentInfo=l,l)}function oL(s,a){return a==null?null:Rt(a)?NaN:s.parse(a)}function Bne(s,a){var i=s.type,l=Ene(s,a,s.getExtent()).calculate();s.setBlank(l.isBlank);var c=l.min,d=l.max,v=a.ecModel;if(v&&i==="time"){var m=gne("bar",v),w=!1;if(ne(m,function(E){w=w||E.getBaseAxis()===a.axis}),w){var S=mne(m),x=tVe(c,d,a,S);c=x.min,d=x.max}}return{extent:[c,d],fixMin:l.minFixed,fixMax:l.maxFixed}}function tVe(s,a,i,l){var c=i.axis.getExtent(),d=Math.abs(c[1]-c[0]),v=UQe(l,i.axis);if(v===void 0)return{min:s,max:a};var m=1/0;ne(v,function(D){m=Math.min(D.offset,m)});var w=-1/0;ne(v,function(D){w=Math.max(D.offset+D.width,w)}),m=Math.abs(m),w=Math.abs(w);var S=m+w,x=a-s,E=1-(m+w)/d,M=x/E-x;return a+=M*(w/S),s-=M*(m/S),{min:s,max:a}}function p0(s,a){var i=a,l=Bne(s,i),c=l.extent,d=i.get("splitNumber");s instanceof fU&&(s.base=i.get("logBase"));var v=s.type,m=i.get("interval"),w=v==="interval"||v==="time";s.setExtent(c[0],c[1]),s.calcNiceExtent({splitNumber:d,fixMin:l.fixMin,fixMax:l.fixMax,minInterval:w?i.get("minInterval"):null,maxInterval:w?i.get("maxInterval"):null}),m!=null&&s.setInterval&&s.setInterval(m)}function gC(s,a){if(a=a||s.get("type"),a)switch(a){case"category":return new rL({ordinalMeta:s.getOrdinalMeta?s.getOrdinalMeta():s.getCategories(),extent:[1/0,-1/0]});case"time":return new cU({locale:s.ecModel.getLocaleModel(),useUTC:s.ecModel.get("useUTC")});default:return new(xv.getClass(a)||Vp)}}function rVe(s){var a=s.scale.getExtent(),i=a[0],l=a[1];return!(i>0&&l>0||i<0&&l<0)}function xb(s){var a=s.getLabelModel().get("formatter"),i=s.type==="category"?s.scale.getExtent()[0]:null;return s.scale.type==="time"?function(l){return function(c,d){return s.scale.getFormattedLabel(c,d,l)}}(a):Re(a)?function(l){return function(c){var d=s.scale.getLabel(c),v=l.replace("{value}",d??"");return v}}(a):qe(a)?function(l){return function(c,d){return i!=null&&(d=c.value-i),l(hU(s,c),d,c.level!=null?{level:c.level}:null)}}(a):function(l){return s.scale.getLabel(l)}}function hU(s,a){return s.type==="category"?s.scale.getLabel(a):a.value}function nVe(s){var a=s.model,i=s.scale;if(!(!a.get(["axisLabel","show"])||i.isBlank())){var l,c,d=i.getExtent();i instanceof rL?c=i.count():(l=i.getTicks(),c=l.length);var v=s.getLabelModel(),m=xb(s),w,S=1;c>40&&(S=Math.ceil(c/40));for(var x=0;x<c;x+=S){var E=l?l[x]:{value:d[0]+x},M=m(E,x),D=v.getTextRect(M),k=iVe(D,v.get("rotate")||0);w?w.union(k):w=k}return w}}function iVe(s,a){var i=a*Math.PI/180,l=s.width,c=s.height,d=l*Math.abs(Math.cos(i))+Math.abs(c*Math.sin(i)),v=l*Math.abs(Math.sin(i))+Math.abs(c*Math.cos(i)),m=new Bn(s.x,s.y,d,v);return m}function dU(s){var a=s.get("interval");return a??"auto"}function Ine(s){return s.type==="category"&&dU(s.getLabelModel())===0}function sL(s,a){var i={};return ne(s.mapDimensionsAll(a),function(l){i[iU(s,l)]=!0}),Ne(i)}function aVe(s,a,i){a&&ne(sL(a,i),function(l){var c=a.getApproximateExtent(l);c[0]<s[0]&&(s[0]=c[0]),c[1]>s[1]&&(s[1]=c[1])})}var Cb=function(){function s(){}return s.prototype.getNeedCrossZero=function(){var a=this.option;return!a.scale},s.prototype.getCoordSysModel=function(){},s}();function oVe(s){return Sv(null,s)}var sVe={isDimensionStacked:Qp,enableDataStack:hne,getStackedDimension:iU};function lVe(s,a){var i=a;a instanceof ta||(i=new ta(a));var l=gC(i);return l.setExtent(s[0],s[1]),p0(l,i),l}function uVe(s){_e(s,Cb)}function cVe(s,a){return a=a||{},Xa(s,null,null,a.state!=="normal")}var fVe=Object.freeze({__proto__:null,createList:oVe,getLayoutRect:ol,dataStack:sVe,createScale:lVe,mixinAxisModelCommonMethods:uVe,getECData:bt,createTextStyle:cVe,createDimensions:yQe,createSymbol:Os,enableHoverEmphasis:rm}),hVe=1e-8;function Lne(s,a){return Math.abs(s-a)<hVe}function g0(s,a,i){var l=0,c=s[0];if(!c)return!1;for(var d=1;d<s.length;d++){var v=s[d];l+=Zh(c[0],c[1],v[0],v[1],a,i),c=v}var m=s[0];return(!Lne(c[0],m[0])||!Lne(c[1],m[1]))&&(l+=Zh(c[0],c[1],m[0],m[1],a,i)),l!==0}var dVe=[];function AU(s,a){for(var i=0;i<s.length;i++)Tn(s[i],s[i],a)}function Mne(s,a,i,l){for(var c=0;c<s.length;c++){var d=s[c];l&&(d=l.project(d)),d&&isFinite(d[0])&&isFinite(d[1])&&(Mi(a,a,d),Ka(i,i,d))}}function AVe(s){for(var a=0,i=0,l=0,c=s.length,d=s[c-1][0],v=s[c-1][1],m=0;m<c;m++){var w=s[m][0],S=s[m][1],x=d*S-w*v;a+=x,i+=(d+w)*x,l+=(v+S)*x,d=w,v=S}return a?[i/a/3,l/a/3,a]:[s[0][0]||0,s[0][1]||0]}var Dne=function(){function s(a){this.name=a}return s.prototype.setCenter=function(a){this._center=a},s.prototype.getCenter=function(){var a=this._center;return a||(a=this._center=this.calcCenter()),a},s}(),Rne=function(){function s(a,i){this.type="polygon",this.exterior=a,this.interiors=i}return s}(),Pne=function(){function s(a){this.type="linestring",this.points=a}return s}(),One=function(s){o(a,s);function a(i,l,c){var d=s.call(this,i)||this;return d.type="geoJSON",d.geometries=l,d._center=c&&[c[0],c[1]],d}return a.prototype.calcCenter=function(){for(var i=this.geometries,l,c=0,d=0;d<i.length;d++){var v=i[d],m=v.exterior,w=m&&m.length;w>c&&(l=v,c=w)}if(l)return AVe(l.exterior);var S=this.getBoundingRect();return[S.x+S.width/2,S.y+S.height/2]},a.prototype.getBoundingRect=function(i){var l=this._rect;if(l&&!i)return l;var c=[1/0,1/0],d=[-1/0,-1/0],v=this.geometries;return ne(v,function(m){m.type==="polygon"?Mne(m.exterior,c,d,i):ne(m.points,function(w){Mne(w,c,d,i)})}),isFinite(c[0])&&isFinite(c[1])&&isFinite(d[0])&&isFinite(d[1])||(c[0]=c[1]=d[0]=d[1]=0),l=new Bn(c[0],c[1],d[0]-c[0],d[1]-c[1]),i||(this._rect=l),l},a.prototype.contain=function(i){var l=this.getBoundingRect(),c=this.geometries;if(!l.contain(i[0],i[1]))return!1;e:for(var d=0,v=c.length;d<v;d++){var m=c[d];if(m.type==="polygon"){var w=m.exterior,S=m.interiors;if(g0(w,i[0],i[1])){for(var x=0;x<(S?S.length:0);x++)if(g0(S[x],i[0],i[1]))continue e;return!0}}}return!1},a.prototype.transformTo=function(i,l,c,d){var v=this.getBoundingRect(),m=v.width/v.height;c?d||(d=c/m):c=m*d;for(var w=new Bn(i,l,c,d),S=v.calculateTransform(w),x=this.geometries,E=0;E<x.length;E++){var M=x[E];M.type==="polygon"?(AU(M.exterior,S),ne(M.interiors,function(D){AU(D,S)})):ne(M.points,function(D){AU(D,S)})}v=this._rect,v.copy(w),this._center=[v.x+v.width/2,v.y+v.height/2]},a.prototype.cloneShallow=function(i){i==null&&(i=this.name);var l=new a(i,this.geometries,this._center);return l._rect=this._rect,l.transformTo=null,l},a}(Dne),vVe=function(s){o(a,s);function a(i,l){var c=s.call(this,i)||this;return c.type="geoSVG",c._elOnlyForCalculate=l,c}return a.prototype.calcCenter=function(){for(var i=this._elOnlyForCalculate,l=i.getBoundingRect(),c=[l.x+l.width/2,l.y+l.height/2],d=ec(dVe),v=i;v&&!v.isGeoSVGGraphicRoot;)$s(d,v.getLocalTransform(),d),v=v.parent;return zl(d,d),Tn(c,c,d),c},a}(Dne);function pVe(s){if(!s.UTF8Encoding)return s;var a=s,i=a.UTF8Scale;i==null&&(i=1024);var l=a.features;return ne(l,function(c){var d=c.geometry,v=d.encodeOffsets,m=d.coordinates;if(v)switch(d.type){case"LineString":d.coordinates=kne(m,v,i);break;case"Polygon":vU(m,v,i);break;case"MultiLineString":vU(m,v,i);break;case"MultiPolygon":ne(m,function(w,S){return vU(w,v[S],i)})}}),a.UTF8Encoding=!1,a}function vU(s,a,i){for(var l=0;l<s.length;l++)s[l]=kne(s[l],a[l],i)}function kne(s,a,i){for(var l=[],c=a[0],d=a[1],v=0;v<s.length;v+=2){var m=s.charCodeAt(v)-64,w=s.charCodeAt(v+1)-64;m=m>>1^-(m&1),w=w>>1^-(w&1),m+=c,w+=d,c=m,d=w,l.push([m/i,w/i])}return l}function pU(s,a){return s=pVe(s),xe(ze(s.features,function(i){return i.geometry&&i.properties&&i.geometry.coordinates.length>0}),function(i){var l=i.properties,c=i.geometry,d=[];switch(c.type){case"Polygon":var v=c.coordinates;d.push(new Rne(v[0],v.slice(1)));break;case"MultiPolygon":ne(c.coordinates,function(w){w[0]&&d.push(new Rne(w[0],w.slice(1)))});break;case"LineString":d.push(new Pne([c.coordinates]));break;case"MultiLineString":d.push(new Pne(c.coordinates))}var m=new One(l[a||"name"],d,l.cp);return m.properties=l,m})}var gVe=Object.freeze({__proto__:null,linearMap:ln,round:pi,asc:aa,getPrecision:ua,getPrecisionSafe:Sa,getPixelPrecision:El,getPercentWithPrecision:Mu,MAX_SAFE_INTEGER:ts,remRadian:$c,isRadianAroundZero:If,parseDate:Na,quantity:uv,quantityExponent:fo,nice:vs,quantile:za,reformIntervals:cv,isNumeric:rl,numericToNumber:yu}),mVe=Object.freeze({__proto__:null,parse:Na,format:Kx}),yVe=Object.freeze({__proto__:null,extendShape:hee,extendPath:dee,makePath:Gx,makeImage:NF,mergePath:vh,resizePath:UF,createIcon:rb,updateProps:Yi,initProps:Co,getTransform:am,clipPointsByRect:HF,clipRectByRect:pee,registerShape:Jh,getShapeClass:cI,Group:Lr,Image:is,Text:be,Circle:yv,Ellipse:Ux,Sector:hc,Ring:Yw,Polygon:dc,Polyline:Ac,Rect:R,Line:Ll,BezierCurve:Xw,Arc:Vx,IncrementalDisplayable:uee,CompoundPath:iI,LinearGradient:Zw,RadialGradient:OF,BoundingRect:Bn}),wVe=Object.freeze({__proto__:null,addCommas:eN,toCamelCase:tN,normalizeCssArray:r0,encodeHTML:yo,formatTpl:iN,getTooltipMarker:Qee,formatTime:y6e,capitalFirst:w6e,truncateText:AF,getTextRect:g6e}),bVe=Object.freeze({__proto__:null,map:xe,each:ne,indexOf:oe,inherits:ye,reduce:De,filter:ze,bind:Ue,curry:ue,isArray:Qe,isString:Re,isObject:Pe,isFunction:qe,extend:ie,defaults:he,clone:ae,merge:le}),mC=Ri();function Fne(s,a){var i=xe(a,function(l){return s.scale.parse(l)});return s.type==="time"&&i.length>0&&(i.sort(),i.unshift(i[0]),i.push(i[i.length-1])),i}function _Ve(s){var a=s.getLabelModel().get("customValues");if(a){var i=xb(s),l=s.scale.getExtent(),c=Fne(s,a),d=ze(c,function(v){return v>=l[0]&&v<=l[1]});return{labels:xe(d,function(v){var m={value:v};return{formattedLabel:i(m),rawLabel:s.scale.getLabel(m),tickValue:v}})}}return s.type==="category"?xVe(s):TVe(s)}function SVe(s,a){var i=s.getTickModel().get("customValues");if(i){var l=s.scale.getExtent(),c=Fne(s,i);return{ticks:ze(c,function(d){return d>=l[0]&&d<=l[1]})}}return s.type==="category"?CVe(s,a):{ticks:xe(s.scale.getTicks(),function(d){return d.value})}}function xVe(s){var a=s.getLabelModel(),i=Nne(s,a);return!a.get("show")||s.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function Nne(s,a){var i=Une(s,"labels"),l=dU(a),c=Hne(i,l);if(c)return c;var d,v;return qe(l)?d=zne(s,l):(v=l==="auto"?EVe(s):l,d=Vne(s,v)),Qne(i,l,{labels:d,labelCategoryInterval:v})}function CVe(s,a){var i=Une(s,"ticks"),l=dU(a),c=Hne(i,l);if(c)return c;var d,v;if((!a.get("show")||s.scale.isBlank())&&(d=[]),qe(l))d=zne(s,l,!0);else if(l==="auto"){var m=Nne(s,s.getLabelModel());v=m.labelCategoryInterval,d=xe(m.labels,function(w){return w.tickValue})}else v=l,d=Vne(s,v,!0);return Qne(i,l,{ticks:d,tickCategoryInterval:v})}function TVe(s){var a=s.scale.getTicks(),i=xb(s);return{labels:xe(a,function(l,c){return{level:l.level,formattedLabel:i(l,c),rawLabel:s.scale.getLabel(l),tickValue:l.value}})}}function Une(s,a){return mC(s)[a]||(mC(s)[a]=[])}function Hne(s,a){for(var i=0;i<s.length;i++)if(s[i].key===a)return s[i].value}function Qne(s,a,i){return s.push({key:a,value:i}),i}function EVe(s){var a=mC(s).autoInterval;return a??(mC(s).autoInterval=s.calculateCategoryInterval())}function BVe(s){var a=IVe(s),i=xb(s),l=(a.axisRotate-a.labelRotate)/180*Math.PI,c=s.scale,d=c.getExtent(),v=c.count();if(d[1]-d[0]<1)return 0;var m=1;v>40&&(m=Math.max(1,Math.floor(v/40)));for(var w=d[0],S=s.dataToCoord(w+1)-s.dataToCoord(w),x=Math.abs(S*Math.cos(l)),E=Math.abs(S*Math.sin(l)),M=0,D=0;w<=d[1];w+=m){var k=0,Q=0,V=Ot(i({value:w}),a.font,"center","top");k=V.width*1.3,Q=V.height*1.3,M=Math.max(M,k,7),D=Math.max(D,Q,7)}var $=M/x,Z=D/E;isNaN($)&&($=1/0),isNaN(Z)&&(Z=1/0);var ee=Math.max(0,Math.floor(Math.min($,Z))),fe=mC(s.model),ve=s.getExtent(),ge=fe.lastAutoInterval,Se=fe.lastTickCount;return ge!=null&&Se!=null&&Math.abs(ge-ee)<=1&&Math.abs(Se-v)<=1&&ge>ee&&fe.axisExtent0===ve[0]&&fe.axisExtent1===ve[1]?ee=ge:(fe.lastTickCount=v,fe.lastAutoInterval=ee,fe.axisExtent0=ve[0],fe.axisExtent1=ve[1]),ee}function IVe(s){var a=s.getLabelModel();return{axisRotate:s.getRotate?s.getRotate():s.isHorizontal&&!s.isHorizontal()?90:0,labelRotate:a.get("rotate")||0,font:a.getFont()}}function Vne(s,a,i){var l=xb(s),c=s.scale,d=c.getExtent(),v=s.getLabelModel(),m=[],w=Math.max((a||0)+1,1),S=d[0],x=c.count();S!==0&&w>1&&x/w>2&&(S=Math.round(Math.ceil(S/w)*w));var E=Ine(s),M=v.get("showMinLabel")||E,D=v.get("showMaxLabel")||E;M&&S!==d[0]&&Q(d[0]);for(var k=S;k<=d[1];k+=w)Q(k);D&&k-w!==d[1]&&Q(d[1]);function Q(V){var $={value:V};m.push(i?V:{formattedLabel:l($),rawLabel:c.getLabel($),tickValue:V})}return m}function zne(s,a,i){var l=s.scale,c=xb(s),d=[];return ne(l.getTicks(),function(v){var m=l.getLabel(v),w=v.value;a(v.value,m)&&d.push(i?w:{formattedLabel:c(v),rawLabel:m,tickValue:w})}),d}var Gne=[0,1],od=function(){function s(a,i,l){this.onBand=!1,this.inverse=!1,this.dim=a,this.scale=i,this._extent=l||[0,0]}return s.prototype.contain=function(a){var i=this._extent,l=Math.min(i[0],i[1]),c=Math.max(i[0],i[1]);return a>=l&&a<=c},s.prototype.containData=function(a){return this.scale.contain(a)},s.prototype.getExtent=function(){return this._extent.slice()},s.prototype.getPixelPrecision=function(a){return El(a||this.scale.getExtent(),this._extent)},s.prototype.setExtent=function(a,i){var l=this._extent;l[0]=a,l[1]=i},s.prototype.dataToCoord=function(a,i){var l=this._extent,c=this.scale;return a=c.normalize(a),this.onBand&&c.type==="ordinal"&&(l=l.slice(),jne(l,c.count())),ln(a,Gne,l,i)},s.prototype.coordToData=function(a,i){var l=this._extent,c=this.scale;this.onBand&&c.type==="ordinal"&&(l=l.slice(),jne(l,c.count()));var d=ln(a,l,Gne,i);return this.scale.scale(d)},s.prototype.pointToData=function(a,i){},s.prototype.getTicksCoords=function(a){a=a||{};var i=a.tickModel||this.getTickModel(),l=SVe(this,i),c=l.ticks,d=xe(c,function(m){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(m):m),tickValue:m}},this),v=i.get("alignWithLabel");return LVe(this,d,v,a.clamp),d},s.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var a=this.model.getModel("minorTick"),i=a.get("splitNumber");i>0&&i<100||(i=5);var l=this.scale.getMinorTicks(i),c=xe(l,function(d){return xe(d,function(v){return{coord:this.dataToCoord(v),tickValue:v}},this)},this);return c},s.prototype.getViewLabels=function(){return _Ve(this).labels},s.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},s.prototype.getTickModel=function(){return this.model.getModel("axisTick")},s.prototype.getBandWidth=function(){var a=this._extent,i=this.scale.getExtent(),l=i[1]-i[0]+(this.onBand?1:0);l===0&&(l=1);var c=Math.abs(a[1]-a[0]);return Math.abs(c)/l},s.prototype.calculateCategoryInterval=function(){return BVe(this)},s}();function jne(s,a){var i=s[1]-s[0],l=a,c=i/l/2;s[0]+=c,s[1]-=c}function LVe(s,a,i,l){var c=a.length;if(!s.onBand||i||!c)return;var d=s.getExtent(),v,m;if(c===1)a[0].coord=d[0],v=a[1]={coord:d[1],tickValue:a[0].tickValue};else{var w=a[c-1].tickValue-a[0].tickValue,S=(a[c-1].coord-a[0].coord)/w;ne(a,function(D){D.coord-=S/2});var x=s.scale.getExtent();m=1+x[1]-a[c-1].tickValue,v={coord:a[c-1].coord+S*m,tickValue:x[1]+1},a.push(v)}var E=d[0]>d[1];M(a[0].coord,d[0])&&(l?a[0].coord=d[0]:a.shift()),l&&M(d[0],a[0].coord)&&a.unshift({coord:d[0]}),M(d[1],v.coord)&&(l?v.coord=d[1]:a.pop()),l&&M(v.coord,d[1])&&a.push({coord:d[1]});function M(D,k){return D=pi(D),k=pi(k),E?D>k:D<k}}function MVe(s){var a=li.extend(s);return li.registerClass(a),a}function DVe(s){var a=ho.extend(s);return ho.registerClass(a),a}function RVe(s){var a=Ua.extend(s);return Ua.registerClass(a),a}function PVe(s){var a=xa.extend(s);return xa.registerClass(a),a}var yC=Math.PI*2,m0=hh.CMD,OVe=["top","right","bottom","left"];function kVe(s,a,i,l,c){var d=i.width,v=i.height;switch(s){case"top":l.set(i.x+d/2,i.y-a),c.set(0,-1);break;case"bottom":l.set(i.x+d/2,i.y+v+a),c.set(0,1);break;case"left":l.set(i.x-a,i.y+v/2),c.set(-1,0);break;case"right":l.set(i.x+d+a,i.y+v/2),c.set(1,0);break}}function FVe(s,a,i,l,c,d,v,m,w){v-=s,m-=a;var S=Math.sqrt(v*v+m*m);v/=S,m/=S;var x=v*i+s,E=m*i+a;if(Math.abs(l-c)%yC<1e-4)return w[0]=x,w[1]=E,S-i;if(d){var M=l;l=Xc(c),c=Xc(M)}else l=Xc(l),c=Xc(c);l>c&&(c+=yC);var D=Math.atan2(m,v);if(D<0&&(D+=yC),D>=l&&D<=c||D+yC>=l&&D+yC<=c)return w[0]=x,w[1]=E,S-i;var k=i*Math.cos(l)+s,Q=i*Math.sin(l)+a,V=i*Math.cos(c)+s,$=i*Math.sin(c)+a,Z=(k-v)*(k-v)+(Q-m)*(Q-m),ee=(V-v)*(V-v)+($-m)*($-m);return Z<ee?(w[0]=k,w[1]=Q,Math.sqrt(Z)):(w[0]=V,w[1]=$,Math.sqrt(ee))}function lL(s,a,i,l,c,d,v,m){var w=c-s,S=d-a,x=i-s,E=l-a,M=Math.sqrt(x*x+E*E);x/=M,E/=M;var D=w*x+S*E,k=D/M;m&&(k=Math.min(Math.max(k,0),1)),k*=M;var Q=v[0]=s+k*x,V=v[1]=a+k*E;return Math.sqrt((Q-c)*(Q-c)+(V-d)*(V-d))}function qne(s,a,i,l,c,d,v){i<0&&(s=s+i,i=-i),l<0&&(a=a+l,l=-l);var m=s+i,w=a+l,S=v[0]=Math.min(Math.max(c,s),m),x=v[1]=Math.min(Math.max(d,a),w);return Math.sqrt((S-c)*(S-c)+(x-d)*(x-d))}var mA=[];function NVe(s,a,i){var l=qne(a.x,a.y,a.width,a.height,s.x,s.y,mA);return i.set(mA[0],mA[1]),l}function UVe(s,a,i){for(var l=0,c=0,d=0,v=0,m,w,S=1/0,x=a.data,E=s.x,M=s.y,D=0;D<x.length;){var k=x[D++];D===1&&(l=x[D],c=x[D+1],d=l,v=c);var Q=S;switch(k){case m0.M:d=x[D++],v=x[D++],l=d,c=v;break;case m0.L:Q=lL(l,c,x[D],x[D+1],E,M,mA,!0),l=x[D++],c=x[D++];break;case m0.C:Q=zc(l,c,x[D++],x[D++],x[D++],x[D++],x[D],x[D+1],E,M,mA),l=x[D++],c=x[D++];break;case m0.Q:Q=nc(l,c,x[D++],x[D++],x[D],x[D+1],E,M,mA),l=x[D++],c=x[D++];break;case m0.A:var V=x[D++],$=x[D++],Z=x[D++],ee=x[D++],fe=x[D++],ve=x[D++];D+=1;var ge=!!(1-x[D++]);m=Math.cos(fe)*Z+V,w=Math.sin(fe)*ee+$,D<=1&&(d=m,v=w);var Se=(E-V)*ee/Z+V;Q=FVe(V,$,ee,fe,fe+ve,ge,Se,M,mA),l=Math.cos(fe+ve)*Z+V,c=Math.sin(fe+ve)*ee+$;break;case m0.R:d=l=x[D++],v=c=x[D++];var Ee=x[D++],Ie=x[D++];Q=qne(d,v,Ee,Ie,E,M,mA);break;case m0.Z:Q=lL(l,c,d,v,E,M,mA,!0),l=d,c=v;break}Q<S&&(S=Q,i.set(mA[0],mA[1]))}return S}var yA=new xn,Ao=new xn,ks=new xn,Tv=new xn,Ev=new xn;function Wne(s,a){if(s){var i=s.getTextGuideLine(),l=s.getTextContent();if(l&&i){var c=s.textGuideLineConfig||{},d=[[0,0],[0,0],[0,0]],v=c.candidates||OVe,m=l.getBoundingRect().clone();m.applyTransform(l.getComputedTransform());var w=1/0,S=c.anchor,x=s.getComputedTransform(),E=x&&zl([],x),M=a.get("length2")||0;S&&ks.copy(S);for(var D=0;D<v.length;D++){var k=v[D];kVe(k,0,m,yA,Tv),xn.scaleAndAdd(Ao,yA,Tv,M),Ao.transform(E);var Q=s.getBoundingRect(),V=S?S.distance(Ao):s instanceof Yn?UVe(Ao,s.path,ks):NVe(Ao,Q,ks);V<w&&(w=V,Ao.transform(x),ks.transform(x),ks.toArray(d[0]),Ao.toArray(d[1]),yA.toArray(d[2]))}$ne(d,a.get("minTurnAngle")),i.setShape({points:d})}}}var uL=[],Jc=new xn;function $ne(s,a){if(a<=180&&a>0){a=a/180*Math.PI,yA.fromArray(s[0]),Ao.fromArray(s[1]),ks.fromArray(s[2]),xn.sub(Tv,yA,Ao),xn.sub(Ev,ks,Ao);var i=Tv.len(),l=Ev.len();if(!(i<.001||l<.001)){Tv.scale(1/i),Ev.scale(1/l);var c=Tv.dot(Ev),d=Math.cos(a);if(d<c){var v=lL(Ao.x,Ao.y,ks.x,ks.y,yA.x,yA.y,uL,!1);Jc.fromArray(uL),Jc.scaleAndAdd(Ev,v/Math.tan(Math.PI-a));var m=ks.x!==Ao.x?(Jc.x-Ao.x)/(ks.x-Ao.x):(Jc.y-Ao.y)/(ks.y-Ao.y);if(isNaN(m))return;m<0?xn.copy(Jc,Ao):m>1&&xn.copy(Jc,ks),Jc.toArray(s[1])}}}}function HVe(s,a,i){if(i<=180&&i>0){i=i/180*Math.PI,yA.fromArray(s[0]),Ao.fromArray(s[1]),ks.fromArray(s[2]),xn.sub(Tv,Ao,yA),xn.sub(Ev,ks,Ao);var l=Tv.len(),c=Ev.len();if(!(l<.001||c<.001)){Tv.scale(1/l),Ev.scale(1/c);var d=Tv.dot(a),v=Math.cos(i);if(d<v){var m=lL(Ao.x,Ao.y,ks.x,ks.y,yA.x,yA.y,uL,!1);Jc.fromArray(uL);var w=Math.PI/2,S=Math.acos(Ev.dot(a)),x=w+S-i;if(x>=w)xn.copy(Jc,ks);else{Jc.scaleAndAdd(Ev,m/Math.tan(Math.PI/2-x));var E=ks.x!==Ao.x?(Jc.x-Ao.x)/(ks.x-Ao.x):(Jc.y-Ao.y)/(ks.y-Ao.y);if(isNaN(E))return;E<0?xn.copy(Jc,Ao):E>1&&xn.copy(Jc,ks)}Jc.toArray(s[1])}}}}function gU(s,a,i,l){var c=i==="normal",d=c?s:s.ensureState(i);d.ignore=a;var v=l.get("smooth");v&&v===!0&&(v=.3),d.shape=d.shape||{},v>0&&(d.shape.smooth=v);var m=l.getModel("lineStyle").getLineStyle();c?s.useStyle(m):d.style=m}function QVe(s,a){var i=a.smooth,l=a.points;if(l)if(s.moveTo(l[0][0],l[0][1]),i>0&&l.length>=3){var c=Ur(l[0],l[1]),d=Ur(l[1],l[2]);if(!c||!d){s.lineTo(l[1][0],l[1][1]),s.lineTo(l[2][0],l[2][1]);return}var v=Math.min(c,d)*i,m=ea([],l[1],l[0],v/c),w=ea([],l[1],l[2],v/d),S=ea([],m,w,.5);s.bezierCurveTo(m[0],m[1],m[0],m[1],S[0],S[1]),s.bezierCurveTo(w[0],w[1],w[0],w[1],l[2][0],l[2][1])}else for(var x=1;x<l.length;x++)s.lineTo(l[x][0],l[x][1])}function mU(s,a,i){var l=s.getTextGuideLine(),c=s.getTextContent();if(!c){l&&s.removeTextGuideLine();return}for(var d=a.normal,v=d.get("show"),m=c.ignore,w=0;w<Ox.length;w++){var S=Ox[w],x=a[S],E=S==="normal";if(x){var M=x.get("show"),D=E?m:It(c.states[S]&&c.states[S].ignore,m);if(D||!It(M,v)){var k=E?l:l&&l.states[S];k&&(k.ignore=!0),l&&gU(l,!0,S,x);continue}l||(l=new Ac,s.setTextGuideLine(l),!E&&(m||!v)&&gU(l,!0,"normal",a.normal),s.stateProxy&&(l.stateProxy=s.stateProxy)),gU(l,!1,S,x)}}if(l){he(l.style,i),l.style.fill=null;var Q=d.get("showAbove"),V=s.textGuideLineConfig=s.textGuideLineConfig||{};V.showAbove=Q||!1,l.buildPath=QVe}}function yU(s,a){a=a||"labelLine";for(var i={normal:s.getModel(a)},l=0;l<Ou.length;l++){var c=Ou[l];i[c]=s.getModel([c,a])}return i}function Kne(s){for(var a=[],i=0;i<s.length;i++){var l=s[i];if(!l.defaultAttr.ignore){var c=l.label,d=c.getComputedTransform(),v=c.getBoundingRect(),m=!d||d[1]<1e-5&&d[2]<1e-5,w=c.style.margin||0,S=v.clone();S.applyTransform(d),S.x-=w/2,S.y-=w/2,S.width+=w,S.height+=w;var x=m?new sI(v,d):null;a.push({label:c,labelLine:l.labelLine,rect:S,localRect:v,obb:x,priority:l.priority,defaultAttr:l.defaultAttr,layoutOption:l.computedLayoutOption,axisAligned:m,transform:d})}}return a}function Yne(s,a,i,l,c,d){var v=s.length;if(v<2)return;s.sort(function(ge,Se){return ge.rect[a]-Se.rect[a]});for(var m=0,w,S=!1,x=0;x<v;x++){var E=s[x],M=E.rect;w=M[a]-m,w<0&&(M[a]-=w,E.label[a]-=w,S=!0),m=M[a]+M[i]}var D=s[0],k=s[v-1],Q,V;$(),Q<0&&fe(-Q,.8),V<0&&fe(V,.8),$(),Z(Q,V,1),Z(V,Q,-1),$(),Q<0&&ve(-Q),V<0&&ve(V);function $(){Q=D.rect[a]-l,V=c-k.rect[a]-k.rect[i]}function Z(ge,Se,Ee){if(ge<0){var Ie=Math.min(Se,-ge);if(Ie>0){ee(Ie*Ee,0,v);var Le=Ie+ge;Le<0&&fe(-Le*Ee,1)}else fe(-ge*Ee,1)}}function ee(ge,Se,Ee){ge!==0&&(S=!0);for(var Ie=Se;Ie<Ee;Ie++){var Le=s[Ie],Fe=Le.rect;Fe[a]+=ge,Le.label[a]+=ge}}function fe(ge,Se){for(var Ee=[],Ie=0,Le=1;Le<v;Le++){var Fe=s[Le-1].rect,Je=Math.max(s[Le].rect[a]-Fe[a]-Fe[i],0);Ee.push(Je),Ie+=Je}if(Ie){var rt=Math.min(Math.abs(ge)/Ie,Se);if(ge>0)for(var Le=0;Le<v-1;Le++){var at=Ee[Le]*rt;ee(at,0,Le+1)}else for(var Le=v-1;Le>0;Le--){var at=Ee[Le-1]*rt;ee(-at,Le,v)}}}function ve(ge){var Se=ge<0?-1:1;ge=Math.abs(ge);for(var Ee=Math.ceil(ge/(v-1)),Ie=0;Ie<v-1;Ie++)if(Se>0?ee(Ee,0,Ie+1):ee(-Ee,v-Ie-1,v),ge-=Ee,ge<=0)return}return S}function VVe(s,a,i,l){return Yne(s,"x","width",a,i)}function Xne(s,a,i,l){return Yne(s,"y","height",a,i)}function Zne(s){var a=[];s.sort(function(Q,V){return V.priority-Q.priority});var i=new Bn(0,0,0,0);function l(Q){if(!Q.ignore){var V=Q.ensureState("emphasis");V.ignore==null&&(V.ignore=!1)}Q.ignore=!0}for(var c=0;c<s.length;c++){var d=s[c],v=d.axisAligned,m=d.localRect,w=d.transform,S=d.label,x=d.labelLine;i.copy(d.rect),i.width-=.1,i.height-=.1,i.x+=.05,i.y+=.05;for(var E=d.obb,M=!1,D=0;D<a.length;D++){var k=a[D];if(i.intersect(k.rect)){if(v&&k.axisAligned){M=!0;break}if(k.obb||(k.obb=new sI(k.localRect,k.transform)),E||(E=new sI(m,w)),E.intersect(k.obb)){M=!0;break}}}M?(l(S),x&&l(x)):(S.attr("ignore",d.defaultAttr.ignore),x&&x.attr("ignore",d.defaultAttr.labelGuideIgnore),a.push(d))}}function zVe(s){if(s){for(var a=[],i=0;i<s.length;i++)a.push(s[i].slice());return a}}function GVe(s,a){var i=s.label,l=a&&a.getTextGuideLine();return{dataIndex:s.dataIndex,dataType:s.dataType,seriesIndex:s.seriesModel.seriesIndex,text:s.label.style.text,rect:s.hostRect,labelRect:s.rect,align:i.style.align,verticalAlign:i.style.verticalAlign,labelLinePoints:zVe(l&&l.shape.points)}}var Jne=["align","verticalAlign","width","height","fontSize"],ef=new Xe,wU=Ri(),jVe=Ri();function cL(s,a,i){for(var l=0;l<i.length;l++){var c=i[l];a[c]!=null&&(s[c]=a[c])}}var fL=["x","y","rotation"],qVe=function(){function s(){this._labelList=[],this._chartViewList=[]}return s.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},s.prototype._addLabel=function(a,i,l,c,d){var v=c.style,m=c.__hostTarget,w=m.textConfig||{},S=c.getComputedTransform(),x=c.getBoundingRect().plain();Bn.applyTransform(x,x,S),S?ef.setLocalTransform(S):(ef.x=ef.y=ef.rotation=ef.originX=ef.originY=0,ef.scaleX=ef.scaleY=1),ef.rotation=Xc(ef.rotation);var E=c.__hostTarget,M;if(E){M=E.getBoundingRect().plain();var D=E.getComputedTransform();Bn.applyTransform(M,M,D)}var k=M&&E.getTextGuideLine();this._labelList.push({label:c,labelLine:k,seriesModel:l,dataIndex:a,dataType:i,layoutOption:d,computedLayoutOption:null,rect:x,hostRect:M,priority:M?M.width*M.height:0,defaultAttr:{ignore:c.ignore,labelGuideIgnore:k&&k.ignore,x:ef.x,y:ef.y,scaleX:ef.scaleX,scaleY:ef.scaleY,rotation:ef.rotation,style:{x:v.x,y:v.y,align:v.align,verticalAlign:v.verticalAlign,width:v.width,height:v.height,fontSize:v.fontSize},cursor:c.cursor,attachedPos:w.position,attachedRot:w.rotation}})},s.prototype.addLabelsOfSeries=function(a){var i=this;this._chartViewList.push(a);var l=a.__model,c=l.get("labelLayout");(qe(c)||Ne(c).length)&&a.group.traverse(function(d){if(d.ignore)return!0;var v=d.getTextContent(),m=bt(d);v&&!v.disableLabelLayout&&i._addLabel(m.dataIndex,m.dataType,l,v,c)})},s.prototype.updateLayoutConfig=function(a){var i=a.getWidth(),l=a.getHeight();function c(ee,fe){return function(){Wne(ee,fe)}}for(var d=0;d<this._labelList.length;d++){var v=this._labelList[d],m=v.label,w=m.__hostTarget,S=v.defaultAttr,x=void 0;qe(v.layoutOption)?x=v.layoutOption(GVe(v,w)):x=v.layoutOption,x=x||{},v.computedLayoutOption=x;var E=Math.PI/180;w&&w.setTextConfig({local:!1,position:x.x!=null||x.y!=null?null:S.attachedPos,rotation:x.rotate!=null?x.rotate*E:S.attachedRot,offset:[x.dx||0,x.dy||0]});var M=!1;if(x.x!=null?(m.x=vr(x.x,i),m.setStyle("x",0),M=!0):(m.x=S.x,m.setStyle("x",S.style.x)),x.y!=null?(m.y=vr(x.y,l),m.setStyle("y",0),M=!0):(m.y=S.y,m.setStyle("y",S.style.y)),x.labelLinePoints){var D=w.getTextGuideLine();D&&(D.setShape({points:x.labelLinePoints}),M=!1)}var k=wU(m);k.needsUpdateLabelLine=M,m.rotation=x.rotate!=null?x.rotate*E:S.rotation,m.scaleX=S.scaleX,m.scaleY=S.scaleY;for(var Q=0;Q<Jne.length;Q++){var V=Jne[Q];m.setStyle(V,x[V]!=null?x[V]:S.style[V])}if(x.draggable){if(m.draggable=!0,m.cursor="move",w){var $=v.seriesModel;if(v.dataIndex!=null){var Z=v.seriesModel.getData(v.dataType);$=Z.getItemModel(v.dataIndex)}m.on("drag",c(w,$.getModel("labelLine")))}}else m.off("drag"),m.cursor=S.cursor}},s.prototype.layout=function(a){var i=a.getWidth(),l=a.getHeight(),c=Kne(this._labelList),d=ze(c,function(w){return w.layoutOption.moveOverlap==="shiftX"}),v=ze(c,function(w){return w.layoutOption.moveOverlap==="shiftY"});VVe(d,0,i),Xne(v,0,l);var m=ze(c,function(w){return w.layoutOption.hideOverlap});Zne(m)},s.prototype.processLabelsOverall=function(){var a=this;ne(this._chartViewList,function(i){var l=i.__model,c=i.ignoreLabelLineUpdate,d=l.isAnimationEnabled();i.group.traverse(function(v){if(v.ignore&&!v.forceLabelAnimation)return!0;var m=!c,w=v.getTextContent();!m&&w&&(m=wU(w).needsUpdateLabelLine),m&&a._updateLabelLine(v,l),d&&a._animateLabels(v,l)})})},s.prototype._updateLabelLine=function(a,i){var l=a.getTextContent(),c=bt(a),d=c.dataIndex;if(l&&d!=null){var v=i.getData(c.dataType),m=v.getItemModel(d),w={},S=v.getItemVisual(d,"style");if(S){var x=v.getVisual("drawType");w.stroke=S[x]}var E=m.getModel("labelLine");mU(a,yU(m),w),Wne(a,E)}},s.prototype._animateLabels=function(a,i){var l=a.getTextContent(),c=a.getTextGuideLine();if(l&&(a.forceLabelAnimation||!l.ignore&&!l.invisible&&!a.disableLabelAnimation&&!eb(a))){var d=wU(l),v=d.oldLayout,m=bt(a),w=m.dataIndex,S={x:l.x,y:l.y,rotation:l.rotation},x=i.getData(m.dataType);if(v){l.attr(v);var M=a.prevStates;M&&(oe(M,"select")>=0&&l.attr(d.oldLayoutSelect),oe(M,"emphasis")>=0&&l.attr(d.oldLayoutEmphasis)),Yi(l,S,i,w)}else if(l.attr(S),!nb(l).valueAnimation){var E=It(l.style.opacity,1);l.style.opacity=0,Co(l,{style:{opacity:E}},i,w)}if(d.oldLayout=S,l.states.select){var D=d.oldLayoutSelect={};cL(D,S,fL),cL(D,l.states.select,fL)}if(l.states.emphasis){var k=d.oldLayoutEmphasis={};cL(k,S,fL),cL(k,l.states.emphasis,fL)}Cee(l,w,x,i,i)}if(c&&!c.ignore&&!c.invisible){var d=jVe(c),v=d.oldLayout,Q={points:c.shape.points};v?(c.attr({shape:v}),Yi(c,{shape:Q},i)):(c.setShape(Q),c.style.strokePercent=0,Co(c,{style:{strokePercent:1}},i)),d.oldLayout=Q}},s}(),bU=Ri();function WVe(s){s.registerUpdateLifecycle("series:beforeupdate",function(a,i,l){var c=bU(i).labelManager;c||(c=bU(i).labelManager=new qVe),c.clearLabels()}),s.registerUpdateLifecycle("series:layoutlabels",function(a,i,l){var c=bU(i).labelManager;l.updatedSeries.forEach(function(d){c.addLabelsOfSeries(i.getViewOfSeriesModel(d))}),c.updateLayoutConfig(i),c.layout(i),c.processLabelsOverall()})}var _U=Math.sin,SU=Math.cos,eie=Math.PI,y0=Math.PI*2,$Ve=180/eie,tie=function(){function s(){}return s.prototype.reset=function(a){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,a||4)},s.prototype.moveTo=function(a,i){this._add("M",a,i)},s.prototype.lineTo=function(a,i){this._add("L",a,i)},s.prototype.bezierCurveTo=function(a,i,l,c,d,v){this._add("C",a,i,l,c,d,v)},s.prototype.quadraticCurveTo=function(a,i,l,c){this._add("Q",a,i,l,c)},s.prototype.arc=function(a,i,l,c,d,v){this.ellipse(a,i,l,l,0,c,d,v)},s.prototype.ellipse=function(a,i,l,c,d,v,m,w){var S=m-v,x=!w,E=Math.abs(S),M=da(E-y0)||(x?S>=y0:-S>=y0),D=S>0?S%y0:S%y0+y0,k=!1;M?k=!0:da(E)?k=!1:k=D>=eie==!!x;var Q=a+l*SU(v),V=i+c*_U(v);this._start&&this._add("M",Q,V);var $=Math.round(d*$Ve);if(M){var Z=1/this._p,ee=(x?1:-1)*(y0-Z);this._add("A",l,c,$,1,+x,a+l*SU(v+ee),i+c*_U(v+ee)),Z>.01&&this._add("A",l,c,$,0,+x,Q,V)}else{var fe=a+l*SU(m),ve=i+c*_U(m);this._add("A",l,c,$,+k,+x,fe,ve)}},s.prototype.rect=function(a,i,l,c){this._add("M",a,i),this._add("l",l,0),this._add("l",0,c),this._add("l",-l,0),this._add("Z")},s.prototype.closePath=function(){this._d.length>0&&this._add("Z")},s.prototype._add=function(a,i,l,c,d,v,m,w,S){for(var x=[],E=this._p,M=1;M<arguments.length;M++){var D=arguments[M];if(isNaN(D)){this._invalid=!0;return}x.push(Math.round(D*E)/E)}this._d.push(a+x.join(" ")),this._start=a==="Z"},s.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},s.prototype.getStr=function(){return this._str},s}(),xU="none",KVe=Math.round;function YVe(s){var a=s.fill;return a!=null&&a!==xU}function XVe(s){var a=s.stroke;return a!=null&&a!==xU}var CU=["lineCap","miterLimit","lineJoin"],ZVe=xe(CU,function(s){return"stroke-"+s.toLowerCase()});function JVe(s,a,i,l){var c=a.opacity==null?1:a.opacity;if(i instanceof is){s("opacity",c);return}if(YVe(a)){var d=Kn(a.fill);s("fill",d.color);var v=a.fillOpacity!=null?a.fillOpacity*d.opacity*c:d.opacity*c;v<1&&s("fill-opacity",v)}else s("fill",xU);if(XVe(a)){var m=Kn(a.stroke);s("stroke",m.color);var w=a.strokeNoScale?i.getLineScale():1,S=w?(a.lineWidth||0)/w:0,x=a.strokeOpacity!=null?a.strokeOpacity*m.opacity*c:m.opacity*c,E=a.strokeFirst;if(S!==1&&s("stroke-width",S),E&&s("paint-order",E?"stroke":"fill"),x<1&&s("stroke-opacity",x),a.lineDash){var M=DN(i),D=M[0],k=M[1];D&&(k=KVe(k||0),s("stroke-dasharray",D.join(",")),(k||l)&&s("stroke-dashoffset",k))}for(var Q=0;Q<CU.length;Q++){var V=CU[Q];if(a[V]!==tm[V]){var $=a[V]||tm[V];$&&s(ZVe[Q],$)}}}}var rie="http://www.w3.org/2000/svg",nie="http://www.w3.org/1999/xlink",eze="http://www.w3.org/2000/xmlns/",tze="http://www.w3.org/XML/1998/namespace",iie="ecmeta_";function aie(s){return document.createElementNS(rie,s)}function ru(s,a,i,l,c){return{tag:s,attrs:i||{},children:l,text:c,key:a}}function rze(s,a){var i=[];if(a)for(var l in a){var c=a[l],d=l;c!==!1&&(c!==!0&&c!=null&&(d+='="'+c+'"'),i.push(d))}return"<"+s+" "+i.join(" ")+">"}function nze(s){return"</"+s+">"}function TU(s,a){a=a||{};var i=a.newline?`
`:"";function l(c){var d=c.children,v=c.tag,m=c.attrs,w=c.text;return rze(v,m)+(v!=="style"?yo(w):w||"")+(d?""+i+xe(d,function(S){return l(S)}).join(i)+i:"")+nze(v)}return l(s)}function ize(s,a,i){i=i||{};var l=i.newline?`
`:"",c=" {"+l,d=l+"}",v=xe(Ne(s),function(w){return w+c+xe(Ne(s[w]),function(S){return S+":"+s[w][S]+";"}).join(l)+d}).join(l),m=xe(Ne(a),function(w){return"@keyframes "+w+c+xe(Ne(a[w]),function(S){return S+c+xe(Ne(a[w][S]),function(x){var E=a[w][S][x];return x==="d"&&(E='path("'+E+'")'),x+":"+E+";"}).join(l)+d}).join(l)+d}).join(l);return!v&&!m?"":["<![CDATA[",v,m,"]]>"].join(l)}function EU(s){return{zrId:s,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function oie(s,a,i,l){return ru("svg","root",{width:s,height:a,xmlns:rie,"xmlns:xlink":nie,version:"1.1",baseProfile:"full",viewBox:l?"0 0 "+s+" "+a:!1},i)}var aze=0;function sie(){return aze++}var lie={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"},w0="transform-origin";function oze(s,a,i){var l=ie({},s.shape);ie(l,a),s.buildPath(i,l);var c=new tie;return c.reset(Fh(s)),i.rebuildPath(c,1),c.generateStr(),c.getStr()}function sze(s,a){var i=a.originX,l=a.originY;(i||l)&&(s[w0]=i+"px "+l+"px")}var lze={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function uie(s,a){var i=a.zrId+"-ani-"+a.cssAnimIdx++;return a.cssAnims[i]=s,i}function uze(s,a,i){var l=s.shape.paths,c={},d,v;if(ne(l,function(w){var S=EU(i.zrId);S.animation=!0,hL(w,{},S,!0);var x=S.cssAnims,E=S.cssNodes,M=Ne(x),D=M.length;if(D){v=M[D-1];var k=x[v];for(var Q in k){var V=k[Q];c[Q]=c[Q]||{d:""},c[Q].d+=V.d||""}for(var $ in E){var Z=E[$].animation;Z.indexOf(v)>=0&&(d=Z)}}}),!!d){a.d=!1;var m=uie(c,i);return d.replace(v,m)}}function cie(s){return Re(s)?lie[s]?"cubic-bezier("+lie[s]+")":Xd(s)?s:"":""}function hL(s,a,i,l){var c=s.animators,d=c.length,v=[];if(s instanceof iI){var m=uze(s,a,i);if(m)v.push(m);else if(!d)return}else if(!d)return;for(var w={},S=0;S<d;S++){var x=c[S],E=[x.getMaxTime()/1e3+"s"],M=cie(x.getClip().easing),D=x.getDelay();M?E.push(M):E.push("linear"),D&&E.push(D/1e3+"s"),x.getLoop()&&E.push("infinite");var k=E.join(" ");w[k]=w[k]||[k,[]],w[k][1].push(x)}function Q(Z){var ee=Z[1],fe=ee.length,ve={},ge={},Se={},Ee="animation-timing-function";function Ie(ei,Cn,di){for(var tn=ei.getTracks(),Hn=ei.getMaxTime(),vo=0;vo<tn.length;vo++){var Ca=tn[vo];if(Ca.needsAnimate()){var Za=Ca.keyframes,Go=Ca.propName;if(di&&(Go=di(Go)),Go)for(var iu=0;iu<Za.length;iu++){var mh=Za[iu],Of=Math.round(mh.time/Hn*100)+"%",U0=cie(mh.easing),Cm=mh.rawValue;(Re(Cm)||Ge(Cm))&&(Cn[Of]=Cn[Of]||{},Cn[Of][Go]=mh.rawValue,U0&&(Cn[Of][Ee]=U0))}}}}for(var Le=0;Le<fe;Le++){var Fe=ee[Le],Je=Fe.targetName;Je?Je==="shape"&&Ie(Fe,ge):!l&&Ie(Fe,ve)}for(var rt in ve){var at={};ht(at,s),ie(at,ve[rt]);var dt=Nh(at),wt=ve[rt][Ee];Se[rt]=dt?{transform:dt}:{},sze(Se[rt],at),wt&&(Se[rt][Ee]=wt)}var zt,Ut=!0;for(var rt in ge){Se[rt]=Se[rt]||{};var Yt=!zt,wt=ge[rt][Ee];Yt&&(zt=new hh);var ur=zt.len();zt.reset(),Se[rt].d=oze(s,ge[rt],zt);var wr=zt.len();if(!Yt&&ur!==wr){Ut=!1;break}wt&&(Se[rt][Ee]=wt)}if(!Ut)for(var rt in Se)delete Se[rt].d;if(!l)for(var Le=0;Le<fe;Le++){var Fe=ee[Le],Je=Fe.targetName;Je==="style"&&Ie(Fe,Se,function(tn){return lze[tn]})}for(var Or=Ne(Se),vn=!0,wn,Le=1;Le<Or.length;Le++){var Un=Or[Le-1],Ha=Or[Le];if(Se[Un][w0]!==Se[Ha][w0]){vn=!1;break}wn=Se[Un][w0]}if(vn&&wn){for(var rt in Se)Se[rt][w0]&&delete Se[rt][w0];a[w0]=wn}if(ze(Or,function(ei){return Ne(Se[ei]).length>0}).length){var Cs=uie(Se,i);return Cs+" "+Z[0]+" both"}}for(var V in w){var m=Q(w[V]);m&&v.push(m)}if(v.length){var $=i.zrId+"-cls-"+sie();i.cssNodes["."+$]={animation:v.join(",")},a.class=$}}function cze(s,a,i){if(!s.ignore)if(s.isSilent()){var l={"pointer-events":"none"};fie(l,a,i)}else{var c=s.states.emphasis&&s.states.emphasis.style?s.states.emphasis.style:{},d=c.fill;if(!d){var v=s.style&&s.style.fill,m=s.states.select&&s.states.select.style&&s.states.select.style.fill,w=s.currentStates.indexOf("select")>=0&&m||v;w&&(d=$r(w))}var S=c.lineWidth;if(S){var x=!c.strokeNoScale&&s.transform?s.transform[0]:1;S=S/x}var l={cursor:"pointer"};d&&(l.fill=d),c.stroke&&(l.stroke=c.stroke),S&&(l["stroke-width"]=S),fie(l,a,i)}}function fie(s,a,i,l){var c=JSON.stringify(s),d=i.cssStyleCache[c];d||(d=i.zrId+"-cls-"+sie(),i.cssStyleCache[c]=d,i.cssNodes["."+d+":hover"]=s),a.class=a.class?a.class+" "+d:d}var wC=Math.round;function hie(s){return s&&Re(s.src)}function die(s){return s&&qe(s.toDataURL)}function BU(s,a,i,l){JVe(function(c,d){var v=c==="fill"||c==="stroke";v&&Fa(d)?yie(a,s,c,l):v&&jr(d)?wie(i,s,c,l):s[c]=d,v&&l.ssr&&d==="none"&&(s["pointer-events"]="visible")},a,i,!1),gze(i,s,l)}function IU(s,a){var i=zo(a);i&&(i.each(function(l,c){l!=null&&(s[(iie+c).toLowerCase()]=l+"")}),a.isSilent()&&(s[iie+"silent"]="true"))}function Aie(s){return da(s[0]-1)&&da(s[1])&&da(s[2])&&da(s[3]-1)}function fze(s){return da(s[4])&&da(s[5])}function LU(s,a,i){if(a&&!(fze(a)&&Aie(a))){var l=1e4;s.transform=Aie(a)?"translate("+wC(a[4]*l)/l+" "+wC(a[5]*l)/l+")":Zr(a)}}function vie(s,a,i){for(var l=s.points,c=[],d=0;d<l.length;d++)c.push(wC(l[d][0]*i)/i),c.push(wC(l[d][1]*i)/i);a.points=c.join(" ")}function pie(s){return!s.smooth}function hze(s){var a=xe(s,function(i){return typeof i=="string"?[i,i]:i});return function(i,l,c){for(var d=0;d<a.length;d++){var v=a[d],m=i[v[0]];m!=null&&(l[v[1]]=wC(m*c)/c)}}}var dze={circle:[hze(["cx","cy","r"])],polyline:[vie,pie],polygon:[vie,pie]};function Aze(s){for(var a=s.animators,i=0;i<a.length;i++)if(a[i].targetName==="shape")return!0;return!1}function gie(s,a){var i=s.style,l=s.shape,c=dze[s.type],d={},v=a.animation,m="path",w=s.style.strokePercent,S=a.compress&&Fh(s)||4;if(c&&!a.willUpdate&&!(c[1]&&!c[1](l))&&!(v&&Aze(s))&&!(w<1)){m=s.type;var x=Math.pow(10,S);c[0](l,d,x)}else{var E=!s.path||s.shapeChanged();s.path||s.createPathProxy();var M=s.path;E&&(M.beginPath(),s.buildPath(M,s.shape),s.pathUpdated());var D=M.getVersion(),k=s,Q=k.__svgPathBuilder;(k.__svgPathVersion!==D||!Q||w!==k.__svgPathStrokePercent)&&(Q||(Q=k.__svgPathBuilder=new tie),Q.reset(S),M.rebuildPath(Q,w),Q.generateStr(),k.__svgPathVersion=D,k.__svgPathStrokePercent=w),d.d=Q.getStr()}return LU(d,s.transform),BU(d,i,s,a),IU(d,s),a.animation&&hL(s,d,a),a.emphasis&&cze(s,d,a),ru(m,s.id+"",d)}function vze(s,a){var i=s.style,l=i.image;if(l&&!Re(l)&&(hie(l)?l=l.src:die(l)&&(l=l.toDataURL())),!!l){var c=i.x||0,d=i.y||0,v=i.width,m=i.height,w={href:l,width:v,height:m};return c&&(w.x=c),d&&(w.y=d),LU(w,s.transform),BU(w,i,s,a),IU(w,s),a.animation&&hL(s,w,a),ru("image",s.id+"",w)}}function pze(s,a){var i=s.style,l=i.text;if(l!=null&&(l+=""),!(!l||isNaN(i.x)||isNaN(i.y))){var c=i.font||y,d=i.x||0,v=Fn(i.y||0,$t(c),i.textBaseline),m=Xr[i.textAlign]||i.textAlign,w={"dominant-baseline":"central","text-anchor":m};if(dn(i)){var S="",x=i.fontStyle,E=Lt(i.fontSize);if(!parseFloat(E))return;var M=i.fontFamily||g,D=i.fontWeight;S+="font-size:"+E+";font-family:"+M+";",x&&x!=="normal"&&(S+="font-style:"+x+";"),D&&D!=="normal"&&(S+="font-weight:"+D+";"),w.style=S}else w.style="font: "+c;return l.match(/\s/)&&(w["xml:space"]="preserve"),d&&(w.x=d),v&&(w.y=v),LU(w,s.transform),BU(w,i,s,a),IU(w,s),a.animation&&hL(s,w,a),ru("text",s.id+"",w,void 0,l)}}function mie(s,a){if(s instanceof Yn)return gie(s,a);if(s instanceof is)return vze(s,a);if(s instanceof Pp)return pze(s,a)}function gze(s,a,i){var l=s.style;if(si(l)){var c=ya(s),d=i.shadowCache,v=d[c];if(!v){var m=s.getGlobalScale(),w=m[0],S=m[1];if(!w||!S)return;var x=l.shadowOffsetX||0,E=l.shadowOffsetY||0,M=l.shadowBlur,D=Kn(l.shadowColor),k=D.opacity,Q=D.color,V=M/2/w,$=M/2/S,Z=V+" "+$;v=i.zrId+"-s"+i.shadowIdx++,i.defs[v]=ru("filter",v,{id:v,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ru("feDropShadow","",{dx:x/w,dy:E/S,stdDeviation:Z,"flood-color":Q,"flood-opacity":k})]),d[c]=v}a.filter=Mo(v)}}function yie(s,a,i,l){var c=s[i],d,v={gradientUnits:c.global?"userSpaceOnUse":"objectBoundingBox"};if(Wi(c))d="linearGradient",v.x1=c.x,v.y1=c.y,v.x2=c.x2,v.y2=c.y2;else if(Zo(c))d="radialGradient",v.cx=It(c.x,.5),v.cy=It(c.y,.5),v.r=It(c.r,.5);else{ce("Illegal gradient type.");return}for(var m=c.colorStops,w=[],S=0,x=m.length;S<x;++S){var E=Zn(m[S].offset)*100+"%",M=m[S].color,D=Kn(M),k=D.color,Q=D.opacity,V={offset:E};V["stop-color"]=k,Q<1&&(V["stop-opacity"]=Q),w.push(ru("stop",S+"",V))}var $=ru(d,"",v,w),Z=TU($),ee=l.gradientCache,fe=ee[Z];fe||(fe=l.zrId+"-g"+l.gradientIdx++,ee[Z]=fe,v.id=fe,l.defs[fe]=ru(d,fe,v,w)),a[i]=Mo(fe)}function wie(s,a,i,l){var c=s.style[i],d=s.getBoundingRect(),v={},m=c.repeat,w=m==="no-repeat",S=m==="repeat-x",x=m==="repeat-y",E;if(_o(c)){var M=c.imageWidth,D=c.imageHeight,k=void 0,Q=c.image;if(Re(Q)?k=Q:hie(Q)?k=Q.src:die(Q)&&(k=Q.toDataURL()),typeof Image>"u"){var V="Image width/height must been given explictly in svg-ssr renderer.";_t(M,V),_t(D,V)}else if(M==null||D==null){var $=function(Le,Fe){if(Le){var Je=Le.elm,rt=M||Fe.width,at=D||Fe.height;Le.tag==="pattern"&&(S?(at=1,rt/=d.width):x&&(rt=1,at/=d.height)),Le.attrs.width=rt,Le.attrs.height=at,Je&&(Je.setAttribute("width",rt),Je.setAttribute("height",at))}},Z=Hy(k,null,s,function(Le){w||$(ge,Le),$(E,Le)});Z&&Z.width&&Z.height&&(M=M||Z.width,D=D||Z.height)}E=ru("image","img",{href:k,width:M,height:D}),v.width=M,v.height=D}else c.svgElement&&(E=ae(c.svgElement),v.width=c.svgWidth,v.height=c.svgHeight);if(E){var ee,fe;w?ee=fe=1:S?(fe=1,ee=v.width/d.width):x?(ee=1,fe=v.height/d.height):v.patternUnits="userSpaceOnUse",ee!=null&&!isNaN(ee)&&(v.width=ee),fe!=null&&!isNaN(fe)&&(v.height=fe);var ve=Nh(c);ve&&(v.patternTransform=ve);var ge=ru("pattern","",v,[E]),Se=TU(ge),Ee=l.patternCache,Ie=Ee[Se];Ie||(Ie=l.zrId+"-p"+l.patternIdx++,Ee[Se]=Ie,v.id=Ie,ge=l.defs[Ie]=ru("pattern",Ie,v,[E])),a[i]=Mo(Ie)}}function mze(s,a,i){var l=i.clipPathCache,c=i.defs,d=l[s.id];if(!d){d=i.zrId+"-c"+i.clipPathIdx++;var v={id:d};l[s.id]=d,c[d]=ru("clipPath",d,v,[gie(s,i)])}a["clip-path"]=Mo(d)}function bie(s){return document.createTextNode(s)}function b0(s,a,i){s.insertBefore(a,i)}function _ie(s,a){s.removeChild(a)}function Sie(s,a){s.appendChild(a)}function xie(s){return s.parentNode}function Cie(s){return s.nextSibling}function MU(s,a){s.textContent=a}var Tie=58,yze=120,wze=ru("","");function DU(s){return s===void 0}function Bv(s){return s!==void 0}function bze(s,a,i){for(var l={},c=a;c<=i;++c){var d=s[c].key;d!==void 0&&(l[d]!=null&&console.error("Duplicate key "+d),l[d]=c)}return l}function bC(s,a){var i=s.key===a.key,l=s.tag===a.tag;return l&&i}function _C(s){var a,i=s.children,l=s.tag;if(Bv(l)){var c=s.elm=aie(l);if(RU(wze,s),Qe(i))for(a=0;a<i.length;++a){var d=i[a];d!=null&&Sie(c,_C(d))}else Bv(s.text)&&!Pe(s.text)&&Sie(c,bie(s.text))}else s.elm=bie(s.text);return s.elm}function Eie(s,a,i,l,c){for(;l<=c;++l){var d=i[l];d!=null&&b0(s,_C(d),a)}}function dL(s,a,i,l){for(;i<=l;++i){var c=a[i];if(c!=null)if(Bv(c.tag)){var d=xie(c.elm);_ie(d,c.elm)}else _ie(s,c.elm)}}function RU(s,a){var i,l=a.elm,c=s&&s.attrs||{},d=a.attrs||{};if(c!==d){for(i in d){var v=d[i],m=c[i];m!==v&&(v===!0?l.setAttribute(i,""):v===!1?l.removeAttribute(i):i==="style"?l.style.cssText=v:i.charCodeAt(0)!==yze?l.setAttribute(i,v):i==="xmlns:xlink"||i==="xmlns"?l.setAttributeNS(eze,i,v):i.charCodeAt(3)===Tie?l.setAttributeNS(tze,i,v):i.charCodeAt(5)===Tie?l.setAttributeNS(nie,i,v):l.setAttribute(i,v))}for(i in c)i in d||l.removeAttribute(i)}}function _ze(s,a,i){for(var l=0,c=0,d=a.length-1,v=a[0],m=a[d],w=i.length-1,S=i[0],x=i[w],E,M,D,k;l<=d&&c<=w;)v==null?v=a[++l]:m==null?m=a[--d]:S==null?S=i[++c]:x==null?x=i[--w]:bC(v,S)?(Tb(v,S),v=a[++l],S=i[++c]):bC(m,x)?(Tb(m,x),m=a[--d],x=i[--w]):bC(v,x)?(Tb(v,x),b0(s,v.elm,Cie(m.elm)),v=a[++l],x=i[--w]):bC(m,S)?(Tb(m,S),b0(s,m.elm,v.elm),m=a[--d],S=i[++c]):(DU(E)&&(E=bze(a,l,d)),M=E[S.key],DU(M)?b0(s,_C(S),v.elm):(D=a[M],D.tag!==S.tag?b0(s,_C(S),v.elm):(Tb(D,S),a[M]=void 0,b0(s,D.elm,v.elm))),S=i[++c]);(l<=d||c<=w)&&(l>d?(k=i[w+1]==null?null:i[w+1].elm,Eie(s,k,i,c,w)):dL(s,a,l,d))}function Tb(s,a){var i=a.elm=s.elm,l=s.children,c=a.children;s!==a&&(RU(s,a),DU(a.text)?Bv(l)&&Bv(c)?l!==c&&_ze(i,l,c):Bv(c)?(Bv(s.text)&&MU(i,""),Eie(i,null,c,0,c.length-1)):Bv(l)?dL(i,l,0,l.length-1):Bv(s.text)&&MU(i,""):s.text!==a.text&&(Bv(l)&&dL(i,l,0,l.length-1),MU(i,a.text)))}function Sze(s,a){if(bC(s,a))Tb(s,a);else{var i=s.elm,l=xie(i);_C(a),l!==null&&(b0(l,a.elm,Cie(i)),dL(l,[s],0,0))}return a}var xze=0,Cze=function(){function s(a,i,l){if(this.type="svg",this.refreshHover=Bie("refreshHover"),this.configLayer=Bie("configLayer"),this.storage=i,this._opts=l=ie({},l),this.root=a,this._id="zr"+xze++,this._oldVNode=oie(l.width,l.height),a&&!l.ssr){var c=this._viewport=document.createElement("div");c.style.cssText="position:relative;overflow:hidden";var d=this._svgDom=this._oldVNode.elm=aie("svg");RU(null,this._oldVNode),c.appendChild(d),a.appendChild(c)}this.resize(l.width,l.height)}return s.prototype.getType=function(){return this.type},s.prototype.getViewportRoot=function(){return this._viewport},s.prototype.getViewportRootOffset=function(){var a=this.getViewportRoot();if(a)return{offsetLeft:a.offsetLeft||0,offsetTop:a.offsetTop||0}},s.prototype.getSvgDom=function(){return this._svgDom},s.prototype.refresh=function(){if(this.root){var a=this.renderToVNode({willUpdate:!0});a.attrs.style="position:absolute;left:0;top:0;user-select:none",Sze(this._oldVNode,a),this._oldVNode=a}},s.prototype.renderOneToVNode=function(a){return mie(a,EU(this._id))},s.prototype.renderToVNode=function(a){a=a||{};var i=this.storage.getDisplayList(!0),l=this._width,c=this._height,d=EU(this._id);d.animation=a.animation,d.willUpdate=a.willUpdate,d.compress=a.compress,d.emphasis=a.emphasis,d.ssr=this._opts.ssr;var v=[],m=this._bgVNode=Tze(l,c,this._backgroundColor,d);m&&v.push(m);var w=a.compress?null:this._mainVNode=ru("g","main",{},[]);this._paintList(i,d,w?w.children:v),w&&v.push(w);var S=xe(Ne(d.defs),function(M){return d.defs[M]});if(S.length&&v.push(ru("defs","defs",{},S)),a.animation){var x=ize(d.cssNodes,d.cssAnims,{newline:!0});if(x){var E=ru("style","stl",{},[],x);v.push(E)}}return oie(l,c,v,a.useViewBox)},s.prototype.renderToString=function(a){return a=a||{},TU(this.renderToVNode({animation:It(a.cssAnimation,!0),emphasis:It(a.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:It(a.useViewBox,!0)}),{newline:!0})},s.prototype.setBackgroundColor=function(a){this._backgroundColor=a},s.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},s.prototype._paintList=function(a,i,l){for(var c=a.length,d=[],v=0,m,w,S=0,x=0;x<c;x++){var E=a[x];if(!E.invisible){var M=E.__clipPaths,D=M&&M.length||0,k=w&&w.length||0,Q=void 0;for(Q=Math.max(D-1,k-1);Q>=0&&!(M&&w&&M[Q]===w[Q]);Q--);for(var V=k-1;V>Q;V--)v--,m=d[v-1];for(var $=Q+1;$<D;$++){var Z={};mze(M[$],Z,i);var ee=ru("g","clip-g-"+S++,Z,[]);(m?m.children:l).push(ee),d[v++]=ee,m=ee}w=M;var fe=mie(E,i);fe&&(m?m.children:l).push(fe)}}},s.prototype.resize=function(a,i){var l=this._opts,c=this.root,d=this._viewport;if(a!=null&&(l.width=a),i!=null&&(l.height=i),c&&d&&(d.style.display="none",a=mb(c,0,l),i=mb(c,1,l),d.style.display=""),this._width!==a||this._height!==i){if(this._width=a,this._height=i,d){var v=d.style;v.width=a+"px",v.height=i+"px"}if(jr(this._backgroundColor))this.refresh();else{var m=this._svgDom;m&&(m.setAttribute("width",a),m.setAttribute("height",i));var w=this._bgVNode&&this._bgVNode.elm;w&&(w.setAttribute("width",a),w.setAttribute("height",i))}}},s.prototype.getWidth=function(){return this._width},s.prototype.getHeight=function(){return this._height},s.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},s.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},s.prototype.toDataURL=function(a){var i=this.renderToString(),l="data:image/svg+xml;";return a?(i=yn(i),i&&l+"base64,"+i):l+"charset=UTF-8,"+encodeURIComponent(i)},s}();function Bie(s){return function(){ce('In SVG mode painter not support method "'+s+'"')}}function Tze(s,a,i,l){var c;if(i&&i!=="none")if(c=ru("rect","bg",{width:s,height:a,x:"0",y:"0"}),Fa(i))yie({fill:i},c.attrs,"fill",l);else if(jr(i))wie({style:{fill:i},dirty:Ct,getBoundingRect:function(){return{width:s,height:a}}},c.attrs,"fill",l);else{var d=Kn(i),v=d.color,m=d.opacity;c.attrs.fill=v,m<1&&(c.attrs["fill-opacity"]=m)}return c}function Eze(s){s.registerPainter("svg",Cze)}function Iie(s,a,i){var l=L.createCanvas(),c=a.getWidth(),d=a.getHeight(),v=l.style;return v&&(v.position="absolute",v.left="0",v.top="0",v.width=c+"px",v.height=d+"px",l.setAttribute("data-zr-dom-id",s)),l.width=c*i,l.height=d*i,l}var PU=function(s){o(a,s);function a(i,l,c){var d=s.call(this)||this;d.motionBlur=!1,d.lastFrameAlpha=.7,d.dpr=1,d.virtual=!1,d.config={},d.incremental=!1,d.zlevel=0,d.maxRepaintRectCount=5,d.__dirty=!0,d.__firstTimePaint=!0,d.__used=!1,d.__drawIndex=0,d.__startIndex=0,d.__endIndex=0,d.__prevStartIndex=null,d.__prevEndIndex=null;var v;c=c||lv,typeof i=="string"?v=Iie(i,l,c):Pe(i)&&(v=i,i=v.id),d.id=i,d.dom=v;var m=v.style;return m&&(vt(v),v.onselectstart=function(){return!1},m.padding="0",m.margin="0",m.borderWidth="0"),d.painter=l,d.dpr=c,d}return a.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},a.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},a.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},a.prototype.setUnpainted=function(){this.__firstTimePaint=!0},a.prototype.createBackBuffer=function(){var i=this.dpr;this.domBack=Iie("back-"+this.id,this.painter,i),this.ctxBack=this.domBack.getContext("2d"),i!==1&&this.ctxBack.scale(i,i)},a.prototype.createRepaintRects=function(i,l,c,d){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var v=[],m=this.maxRepaintRectCount,w=!1,S=new Bn(0,0,0,0);function x(Z){if(!(!Z.isFinite()||Z.isZero()))if(v.length===0){var ee=new Bn(0,0,0,0);ee.copy(Z),v.push(ee)}else{for(var fe=!1,ve=1/0,ge=0,Se=0;Se<v.length;++Se){var Ee=v[Se];if(Ee.intersect(Z)){var Ie=new Bn(0,0,0,0);Ie.copy(Ee),Ie.union(Z),v[Se]=Ie,fe=!0;break}else if(w){S.copy(Z),S.union(Ee);var Le=Z.width*Z.height,Fe=Ee.width*Ee.height,Je=S.width*S.height,rt=Je-Le-Fe;rt<ve&&(ve=rt,ge=Se)}}if(w&&(v[ge].union(Z),fe=!0),!fe){var ee=new Bn(0,0,0,0);ee.copy(Z),v.push(ee)}w||(w=v.length>=m)}}for(var E=this.__startIndex;E<this.__endIndex;++E){var M=i[E];if(M){var D=M.shouldBePainted(c,d,!0,!0),k=M.__isRendered&&(M.__dirty&bi||!D)?M.getPrevPaintRect():null;k&&x(k);var Q=D&&(M.__dirty&bi||!M.__isRendered)?M.getPaintRect():null;Q&&x(Q)}}for(var E=this.__prevStartIndex;E<this.__prevEndIndex;++E){var M=l[E],D=M&&M.shouldBePainted(c,d,!0,!0);if(M&&(!D||!M.__zr)&&M.__isRendered){var k=M.getPrevPaintRect();k&&x(k)}}var V;do{V=!1;for(var E=0;E<v.length;){if(v[E].isZero()){v.splice(E,1);continue}for(var $=E+1;$<v.length;)v[E].intersect(v[$])?(V=!0,v[E].union(v[$]),v.splice($,1)):$++;E++}}while(V);return this._paintRects=v,v},a.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},a.prototype.resize=function(i,l){var c=this.dpr,d=this.dom,v=d.style,m=this.domBack;v&&(v.width=i+"px",v.height=l+"px"),d.width=i*c,d.height=l*c,m&&(m.width=i*c,m.height=l*c,c!==1&&this.ctxBack.scale(c,c))},a.prototype.clear=function(i,l,c){var d=this.dom,v=this.ctx,m=d.width,w=d.height;l=l||this.clearColor;var S=this.motionBlur&&!i,x=this.lastFrameAlpha,E=this.dpr,M=this;S&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(d,0,0,m/E,w/E));var D=this.domBack;function k(Q,V,$,Z){if(v.clearRect(Q,V,$,Z),l&&l!=="transparent"){var ee=void 0;if(nt(l)){var fe=l.global||l.__width===$&&l.__height===Z;ee=fe&&l.__canvasGradient||MN(v,l,{x:0,y:0,width:$,height:Z}),l.__canvasGradient=ee,l.__width=$,l.__height=Z}else ft(l)&&(l.scaleX=l.scaleX||E,l.scaleY=l.scaleY||E,ee=RN(v,l,{dirty:function(){M.setUnpainted(),M.painter.refresh()}}));v.save(),v.fillStyle=ee||l,v.fillRect(Q,V,$,Z),v.restore()}S&&(v.save(),v.globalAlpha=x,v.drawImage(D,Q,V,$,Z),v.restore())}!c||S?k(0,0,m,w):c.length&&ne(c,function(Q){k(Q.x*E,Q.y*E,Q.width*E,Q.height*E)})},a}(Da),Lie=1e5,_0=314159,AL=.01,Bze=.001;function Ize(s){return s?s.__builtin__?!0:!(typeof s.resize!="function"||typeof s.refresh!="function"):!1}function Lze(s,a){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+s+"px","height:"+a+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}var Mze=function(){function s(a,i,l,c){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var d=!a.nodeName||a.nodeName.toUpperCase()==="CANVAS";this._opts=l=ie({},l||{}),this.dpr=l.devicePixelRatio||lv,this._singleCanvas=d,this.root=a;var v=a.style;v&&(vt(a),a.innerHTML=""),this.storage=i;var m=this._zlevelList;this._prevDisplayList=[];var w=this._layers;if(d){var x=a,E=x.width,M=x.height;l.width!=null&&(E=l.width),l.height!=null&&(M=l.height),this.dpr=l.devicePixelRatio||1,x.width=E*this.dpr,x.height=M*this.dpr,this._width=E,this._height=M;var D=new PU(x,this,this.dpr);D.__builtin__=!0,D.initContext(),w[_0]=D,D.zlevel=_0,m.push(_0),this._domRoot=a}else{this._width=mb(a,0,l),this._height=mb(a,1,l);var S=this._domRoot=Lze(this._width,this._height);a.appendChild(S)}}return s.prototype.getType=function(){return"canvas"},s.prototype.isSingleCanvas=function(){return this._singleCanvas},s.prototype.getViewportRoot=function(){return this._domRoot},s.prototype.getViewportRootOffset=function(){var a=this.getViewportRoot();if(a)return{offsetLeft:a.offsetLeft||0,offsetTop:a.offsetTop||0}},s.prototype.refresh=function(a){var i=this.storage.getDisplayList(!0),l=this._prevDisplayList,c=this._zlevelList;this._redrawId=Math.random(),this._paintList(i,l,a,this._redrawId);for(var d=0;d<c.length;d++){var v=c[d],m=this._layers[v];if(!m.__builtin__&&m.refresh){var w=d===0?this._backgroundColor:null;m.refresh(w)}}return this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},s.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},s.prototype._paintHoverList=function(a){var i=a.length,l=this._hoverlayer;if(l&&l.clear(),!!i){for(var c={inHover:!0,viewWidth:this._width,viewHeight:this._height},d,v=0;v<i;v++){var m=a[v];m.__inHover&&(l||(l=this._hoverlayer=this.getLayer(Lie)),d||(d=l.ctx,d.save()),d0(d,m,c,v===i-1))}d&&d.restore()}},s.prototype.getHoverLayer=function(){return this.getLayer(Lie)},s.prototype.paintOne=function(a,i){PN(a,i)},s.prototype._paintList=function(a,i,l,c){if(this._redrawId===c){l=l||!1,this._updateLayerStatus(a);var d=this._doPaintList(a,i,l),v=d.finished,m=d.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),m&&this._paintHoverList(a),v)this.eachLayer(function(S){S.afterBrush&&S.afterBrush()});else{var w=this;Qc(function(){w._paintList(a,i,l,c)})}}},s.prototype._compositeManually=function(){var a=this.getLayer(_0).ctx,i=this._domRoot.width,l=this._domRoot.height;a.clearRect(0,0,i,l),this.eachBuiltinLayer(function(c){c.virtual&&a.drawImage(c.dom,0,0,i,l)})},s.prototype._doPaintList=function(a,i,l){for(var c=this,d=[],v=this._opts.useDirtyRect,m=0;m<this._zlevelList.length;m++){var w=this._zlevelList[m],S=this._layers[w];S.__builtin__&&S!==this._hoverlayer&&(S.__dirty||l)&&d.push(S)}for(var x=!0,E=!1,M=function(Q){var V=d[Q],$=V.ctx,Z=v&&V.createRepaintRects(a,i,D._width,D._height),ee=l?V.__startIndex:V.__drawIndex,fe=!l&&V.incremental&&Date.now,ve=fe&&Date.now(),ge=V.zlevel===D._zlevelList[0]?D._backgroundColor:null;if(V.__startIndex===V.__endIndex)V.clear(!1,ge,Z);else if(ee===V.__startIndex){var Se=a[ee];(!Se.incremental||!Se.notClear||l)&&V.clear(!1,ge,Z)}ee===-1&&(console.error("For some unknown reason. drawIndex is -1"),ee=V.__startIndex);var Ee,Ie=function(rt){var at={inHover:!1,allClipped:!1,prevEl:null,viewWidth:c._width,viewHeight:c._height};for(Ee=ee;Ee<V.__endIndex;Ee++){var dt=a[Ee];if(dt.__inHover&&(E=!0),c._doPaintEl(dt,V,v,rt,at,Ee===V.__endIndex-1),fe){var wt=Date.now()-ve;if(wt>15)break}}at.prevElClipPaths&&$.restore()};if(Z)if(Z.length===0)Ee=V.__endIndex;else for(var Le=D.dpr,Fe=0;Fe<Z.length;++Fe){var Je=Z[Fe];$.save(),$.beginPath(),$.rect(Je.x*Le,Je.y*Le,Je.width*Le,Je.height*Le),$.clip(),Ie(Je),$.restore()}else $.save(),Ie(),$.restore();V.__drawIndex=Ee,V.__drawIndex<V.__endIndex&&(x=!1)},D=this,k=0;k<d.length;k++)M(k);return h.wxa&&ne(this._layers,function(Q){Q&&Q.ctx&&Q.ctx.draw&&Q.ctx.draw()}),{finished:x,needsRefreshHover:E}},s.prototype._doPaintEl=function(a,i,l,c,d,v){var m=i.ctx;if(l){var w=a.getPaintRect();(!c||w&&w.intersect(c))&&(d0(m,a,d,v),a.setPrevPaintRect(w))}else d0(m,a,d,v)},s.prototype.getLayer=function(a,i){this._singleCanvas&&!this._needsManuallyCompositing&&(a=_0);var l=this._layers[a];return l||(l=new PU("zr_"+a,this,this.dpr),l.zlevel=a,l.__builtin__=!0,this._layerConfig[a]?le(l,this._layerConfig[a],!0):this._layerConfig[a-AL]&&le(l,this._layerConfig[a-AL],!0),i&&(l.virtual=i),this.insertLayer(a,l),l.initContext()),l},s.prototype.insertLayer=function(a,i){var l=this._layers,c=this._zlevelList,d=c.length,v=this._domRoot,m=null,w=-1;if(l[a]){ce("ZLevel "+a+" has been used already");return}if(!Ize(i)){ce("Layer of zlevel "+a+" is not valid");return}if(d>0&&a>c[0]){for(w=0;w<d-1&&!(c[w]<a&&c[w+1]>a);w++);m=l[c[w]]}if(c.splice(w+1,0,a),l[a]=i,!i.virtual)if(m){var S=m.dom;S.nextSibling?v.insertBefore(i.dom,S.nextSibling):v.appendChild(i.dom)}else v.firstChild?v.insertBefore(i.dom,v.firstChild):v.appendChild(i.dom);i.painter||(i.painter=this)},s.prototype.eachLayer=function(a,i){for(var l=this._zlevelList,c=0;c<l.length;c++){var d=l[c];a.call(i,this._layers[d],d)}},s.prototype.eachBuiltinLayer=function(a,i){for(var l=this._zlevelList,c=0;c<l.length;c++){var d=l[c],v=this._layers[d];v.__builtin__&&a.call(i,v,d)}},s.prototype.eachOtherLayer=function(a,i){for(var l=this._zlevelList,c=0;c<l.length;c++){var d=l[c],v=this._layers[d];v.__builtin__||a.call(i,v,d)}},s.prototype.getLayers=function(){return this._layers},s.prototype._updateLayerStatus=function(a){this.eachBuiltinLayer(function(E,M){E.__dirty=E.__used=!1});function i(E){d&&(d.__endIndex!==E&&(d.__dirty=!0),d.__endIndex=E)}if(this._singleCanvas)for(var l=1;l<a.length;l++){var c=a[l];if(c.zlevel!==a[l-1].zlevel||c.incremental){this._needsManuallyCompositing=!0;break}}var d=null,v=0,m,w;for(w=0;w<a.length;w++){var c=a[w],S=c.zlevel,x=void 0;m!==S&&(m=S,v=0),c.incremental?(x=this.getLayer(S+Bze,this._needsManuallyCompositing),x.incremental=!0,v=1):x=this.getLayer(S+(v>0?AL:0),this._needsManuallyCompositing),x.__builtin__||ce("ZLevel "+S+" has been used by unkown layer "+x.id),x!==d&&(x.__used=!0,x.__startIndex!==w&&(x.__dirty=!0),x.__startIndex=w,x.incremental?x.__drawIndex=-1:x.__drawIndex=w,i(w),d=x),c.__dirty&bi&&!c.__inHover&&(x.__dirty=!0,x.incremental&&x.__drawIndex<0&&(x.__drawIndex=w))}i(w),this.eachBuiltinLayer(function(E,M){!E.__used&&E.getElementCount()>0&&(E.__dirty=!0,E.__startIndex=E.__endIndex=E.__drawIndex=0),E.__dirty&&E.__drawIndex<0&&(E.__drawIndex=E.__startIndex)})},s.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},s.prototype._clearLayer=function(a){a.clear()},s.prototype.setBackgroundColor=function(a){this._backgroundColor=a,ne(this._layers,function(i){i.setUnpainted()})},s.prototype.configLayer=function(a,i){if(i){var l=this._layerConfig;l[a]?le(l[a],i,!0):l[a]=i;for(var c=0;c<this._zlevelList.length;c++){var d=this._zlevelList[c];if(d===a||d===a+AL){var v=this._layers[d];le(v,l[a],!0)}}}},s.prototype.delLayer=function(a){var i=this._layers,l=this._zlevelList,c=i[a];c&&(c.dom.parentNode.removeChild(c.dom),delete i[a],l.splice(oe(l,a),1))},s.prototype.resize=function(a,i){if(this._domRoot.style){var l=this._domRoot;l.style.display="none";var c=this._opts,d=this.root;if(a!=null&&(c.width=a),i!=null&&(c.height=i),a=mb(d,0,c),i=mb(d,1,c),l.style.display="",this._width!==a||i!==this._height){l.style.width=a+"px",l.style.height=i+"px";for(var v in this._layers)this._layers.hasOwnProperty(v)&&this._layers[v].resize(a,i);this.refresh(!0)}this._width=a,this._height=i}else{if(a==null||i==null)return;this._width=a,this._height=i,this.getLayer(_0).resize(a,i)}return this},s.prototype.clearLayer=function(a){var i=this._layers[a];i&&i.clear()},s.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},s.prototype.getRenderedCanvas=function(a){if(a=a||{},this._singleCanvas&&!this._compositeManually)return this._layers[_0].dom;var i=new PU("image",this,a.pixelRatio||this.dpr);i.initContext(),i.clear(!1,a.backgroundColor||this._backgroundColor);var l=i.ctx;if(a.pixelRatio<=this.dpr){this.refresh();var c=i.dom.width,d=i.dom.height;this.eachLayer(function(E){E.__builtin__?l.drawImage(E.dom,0,0,c,d):E.renderToCanvas&&(l.save(),E.renderToCanvas(l),l.restore())})}else for(var v={inHover:!1,viewWidth:this._width,viewHeight:this._height},m=this.storage.getDisplayList(!0),w=0,S=m.length;w<S;w++){var x=m[w];d0(l,x,v,w===S-1)}return i.dom},s.prototype.getWidth=function(){return this._width},s.prototype.getHeight=function(){return this._height},s}();function Dze(s){s.registerPainter("canvas",Mze)}var Rze=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.hasSymbolVisual=!0,i}return a.prototype.getInitialData=function(i){{var l=i.coordinateSystem;if(l!=="polar"&&l!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Sv(null,this,{useEncodeDefaulter:!0})},a.prototype.getLegendIcon=function(i){var l=new Lr,c=Os("line",0,i.itemHeight/2,i.itemWidth,0,i.lineStyle.stroke,!1);l.add(c),c.setStyle(i.lineStyle);var d=this.getData().getVisual("symbol"),v=this.getData().getVisual("symbolRotate"),m=d==="none"?"circle":d,w=i.itemHeight*.8,S=Os(m,(i.itemWidth-w)/2,(i.itemHeight-w)/2,w,w,i.itemStyle.fill);l.add(S),S.setStyle(i.itemStyle);var x=i.iconRotate==="inherit"?v:i.iconRotate||0;return S.rotation=x*Math.PI/180,S.setOrigin([i.itemWidth/2,i.itemHeight/2]),m.indexOf("empty")>-1&&(S.style.stroke=S.style.fill,S.style.fill="#fff",S.style.lineWidth=2),l},a.type="series.line",a.dependencies=["grid","polar"],a.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},a}(Ua);function Eb(s,a){var i=s.mapDimensionsAll("defaultedLabel"),l=i.length;if(l===1){var c=fb(s,a,i[0]);return c!=null?c+"":null}else if(l){for(var d=[],v=0;v<i.length;v++)d.push(fb(s,a,i[v]));return d.join(" ")}}function Mie(s,a){var i=s.mapDimensionsAll("defaultedLabel");if(!Qe(a))return a+"";for(var l=[],c=0;c<i.length;c++){var d=s.getDimensionIndex(i[c]);d>=0&&l.push(a[d])}return l.join(" ")}var SC=function(s){o(a,s);function a(i,l,c,d){var v=s.call(this)||this;return v.updateData(i,l,c,d),v}return a.prototype._createSymbol=function(i,l,c,d,v){this.removeAll();var m=Os(i,-1,-1,2,2,null,v);m.attr({z2:100,culling:!0,scaleX:d[0]/2,scaleY:d[1]/2}),m.drift=Pze,this._symbolType=i,this.add(m)},a.prototype.stopSymbolAnimation=function(i){this.childAt(0).stopAnimation(null,i)},a.prototype.getSymbolType=function(){return this._symbolType},a.prototype.getSymbolPath=function(){return this.childAt(0)},a.prototype.highlight=function(){kp(this.childAt(0))},a.prototype.downplay=function(){Fp(this.childAt(0))},a.prototype.setZ=function(i,l){var c=this.childAt(0);c.zlevel=i,c.z=l},a.prototype.setDraggable=function(i,l){var c=this.childAt(0);c.draggable=i,c.cursor=!l&&i?"move":c.cursor},a.prototype.updateData=function(i,l,c,d){this.silent=!1;var v=i.getItemVisual(l,"symbol")||"circle",m=i.hostModel,w=a.getSymbolSize(i,l),S=v!==this._symbolType,x=d&&d.disableAnimation;if(S){var E=i.getItemVisual(l,"symbolKeepAspect");this._createSymbol(v,i,l,w,E)}else{var M=this.childAt(0);M.silent=!1;var D={scaleX:w[0]/2,scaleY:w[1]/2};x?M.attr(D):Yi(M,D,m,l),dA(M)}if(this._updateCommon(i,l,w,c,d),S){var M=this.childAt(0);if(!x){var D={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:M.style.opacity}};M.scaleX=M.scaleY=0,M.style.opacity=0,Co(M,D,m,l)}}x&&this.childAt(0).stopAnimation("leave")},a.prototype._updateCommon=function(i,l,c,d,v){var m=this.childAt(0),w=i.hostModel,S,x,E,M,D,k,Q,V,$;if(d&&(S=d.emphasisItemStyle,x=d.blurItemStyle,E=d.selectItemStyle,M=d.focus,D=d.blurScope,Q=d.labelStatesModels,V=d.hoverScale,$=d.cursorStyle,k=d.emphasisDisabled),!d||i.hasItemOption){var Z=d&&d.itemModel?d.itemModel:i.getItemModel(l),ee=Z.getModel("emphasis");S=ee.getModel("itemStyle").getItemStyle(),E=Z.getModel(["select","itemStyle"]).getItemStyle(),x=Z.getModel(["blur","itemStyle"]).getItemStyle(),M=ee.get("focus"),D=ee.get("blurScope"),k=ee.get("disabled"),Q=eu(Z),V=ee.getShallow("scale"),$=Z.getShallow("cursor")}var fe=i.getItemVisual(l,"symbolRotate");m.attr("rotation",(fe||0)*Math.PI/180||0);var ve=f0(i.getItemVisual(l,"symbolOffset"),c);ve&&(m.x=ve[0],m.y=ve[1]),$&&m.attr("cursor",$);var ge=i.getItemVisual(l,"style"),Se=ge.fill;if(m instanceof is){var Ee=m.style;m.useStyle(ie({image:Ee.image,x:Ee.x,y:Ee.y,width:Ee.width,height:Ee.height},ge))}else m.__isEmptyBrush?m.useStyle(ie({},ge)):m.useStyle(ge),m.style.decal=null,m.setColor(Se,v&&v.symbolInnerColor),m.style.strokeNoScale=!0;var Ie=i.getItemVisual(l,"liftZ"),Le=this._z2;Ie!=null?Le==null&&(this._z2=m.z2,m.z2+=Ie):Le!=null&&(m.z2=Le,this._z2=null);var Fe=v&&v.useNameLabel;Fu(m,Q,{labelFetcher:w,labelDataIndex:l,defaultText:Je,inheritColor:Se,defaultOpacity:ge.opacity});function Je(dt){return Fe?i.getName(dt):Eb(i,dt)}this._sizeX=c[0]/2,this._sizeY=c[1]/2;var rt=m.ensureState("emphasis");rt.style=S,m.ensureState("select").style=E,m.ensureState("blur").style=x;var at=V==null||V===!0?Math.max(1.1,3/this._sizeY):isFinite(V)&&V>0?+V:1;rt.scaleX=this._sizeX*at,rt.scaleY=this._sizeY*at,this.setSymbolScale(1),as(this,M,D,k)},a.prototype.setSymbolScale=function(i){this.scaleX=this.scaleY=i},a.prototype.fadeOut=function(i,l,c){var d=this.childAt(0),v=bt(this).dataIndex,m=c&&c.animation;if(this.silent=d.silent=!0,c&&c.fadeLabel){var w=d.getTextContent();w&&im(w,{style:{opacity:0}},l,{dataIndex:v,removeOpt:m,cb:function(){d.removeTextContent()}})}else d.removeTextContent();im(d,{style:{opacity:0},scaleX:0,scaleY:0},l,{dataIndex:v,cb:i,removeOpt:m})},a.getSymbolSize=function(i,l){return gb(i.getItemVisual(l,"symbolSize"))},a}(Lr);function Pze(s,a){this.parent.drift(s,a)}function OU(s,a,i,l){return a&&!isNaN(a[0])&&!isNaN(a[1])&&!(l.isIgnore&&l.isIgnore(i))&&!(l.clipShape&&!l.clipShape.contain(a[0],a[1]))&&s.getItemVisual(i,"symbol")!=="none"}function Die(s){return s!=null&&!Pe(s)&&(s={isIgnore:s}),s||{}}function Rie(s){var a=s.hostModel,i=a.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:a.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:a.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),emphasisDisabled:i.get("disabled"),hoverScale:i.get("scale"),labelStatesModels:eu(a),cursorStyle:a.get("cursor")}}var xC=function(){function s(a){this.group=new Lr,this._SymbolCtor=a||SC}return s.prototype.updateData=function(a,i){this._progressiveEls=null,i=Die(i);var l=this.group,c=a.hostModel,d=this._data,v=this._SymbolCtor,m=i.disableAnimation,w=Rie(a),S={disableAnimation:m},x=i.getSymbolPoint||function(E){return a.getItemLayout(E)};d||l.removeAll(),a.diff(d).add(function(E){var M=x(E);if(OU(a,M,E,i)){var D=new v(a,E,w,S);D.setPosition(M),a.setItemGraphicEl(E,D),l.add(D)}}).update(function(E,M){var D=d.getItemGraphicEl(M),k=x(E);if(!OU(a,k,E,i)){l.remove(D);return}var Q=a.getItemVisual(E,"symbol")||"circle",V=D&&D.getSymbolType&&D.getSymbolType();if(!D||V&&V!==Q)l.remove(D),D=new v(a,E,w,S),D.setPosition(k);else{D.updateData(a,E,w,S);var $={x:k[0],y:k[1]};m?D.attr($):Yi(D,$,c)}l.add(D),a.setItemGraphicEl(E,D)}).remove(function(E){var M=d.getItemGraphicEl(E);M&&M.fadeOut(function(){l.remove(M)},c)}).execute(),this._getSymbolPoint=x,this._data=a},s.prototype.updateLayout=function(){var a=this,i=this._data;i&&i.eachItemGraphicEl(function(l,c){var d=a._getSymbolPoint(c);l.setPosition(d),l.markRedraw()})},s.prototype.incrementalPrepareUpdate=function(a){this._seriesScope=Rie(a),this._data=null,this.group.removeAll()},s.prototype.incrementalUpdate=function(a,i,l){this._progressiveEls=[],l=Die(l);function c(w){w.isGroup||(w.incremental=!0,w.ensureState("emphasis").hoverLayer=!0)}for(var d=a.start;d<a.end;d++){var v=i.getItemLayout(d);if(OU(i,v,d,l)){var m=new this._SymbolCtor(i,d,this._seriesScope);m.traverse(c),m.setPosition(v),this.group.add(m),i.setItemGraphicEl(d,m),this._progressiveEls.push(m)}}},s.prototype.eachRendered=function(a){om(this._progressiveEls||this.group,a)},s.prototype.remove=function(a){var i=this.group,l=this._data;l&&a?l.eachItemGraphicEl(function(c){c.fadeOut(function(){i.remove(c)},l.hostModel)}):i.removeAll()},s}();function Pie(s,a,i){var l=s.getBaseAxis(),c=s.getOtherAxis(l),d=Oze(c,i),v=l.dim,m=c.dim,w=a.mapDimension(m),S=a.mapDimension(v),x=m==="x"||m==="radius"?1:0,E=xe(s.dimensions,function(k){return a.mapDimension(k)}),M=!1,D=a.getCalculationInfo("stackResultDimension");return Qp(a,E[0])&&(M=!0,E[0]=D),Qp(a,E[1])&&(M=!0,E[1]=D),{dataDimsForPoint:E,valueStart:d,valueAxisDim:m,baseAxisDim:v,stacked:!!M,valueDim:w,baseDim:S,baseDataOffset:x,stackedOverDimension:a.getCalculationInfo("stackedOverDimension")}}function Oze(s,a){var i=0,l=s.scale.getExtent();return a==="start"?i=l[0]:a==="end"?i=l[1]:Ge(a)&&!isNaN(a)?i=a:l[0]>0?i=l[0]:l[1]<0&&(i=l[1]),i}function Oie(s,a,i,l){var c=NaN;s.stacked&&(c=i.get(i.getCalculationInfo("stackedOverDimension"),l)),isNaN(c)&&(c=s.valueStart);var d=s.baseDataOffset,v=[];return v[d]=i.get(s.baseDim,l),v[1-d]=c,a.dataToPoint(v)}function kze(s,a){var i=[];return a.diff(s).add(function(l){i.push({cmd:"+",idx:l})}).update(function(l,c){i.push({cmd:"=",idx:c,idx1:l})}).remove(function(l){i.push({cmd:"-",idx:l})}).execute(),i}function Fze(s,a,i,l,c,d,v,m){for(var w=kze(s,a),S=[],x=[],E=[],M=[],D=[],k=[],Q=[],V=Pie(c,a,v),$=s.getLayout("points")||[],Z=a.getLayout("points")||[],ee=0;ee<w.length;ee++){var fe=w[ee],ve=!0,ge=void 0,Se=void 0;switch(fe.cmd){case"=":ge=fe.idx*2,Se=fe.idx1*2;var Ee=$[ge],Ie=$[ge+1],Le=Z[Se],Fe=Z[Se+1];(isNaN(Ee)||isNaN(Ie))&&(Ee=Le,Ie=Fe),S.push(Ee,Ie),x.push(Le,Fe),E.push(i[ge],i[ge+1]),M.push(l[Se],l[Se+1]),Q.push(a.getRawIndex(fe.idx1));break;case"+":var Je=fe.idx,rt=V.dataDimsForPoint,at=c.dataToPoint([a.get(rt[0],Je),a.get(rt[1],Je)]);Se=Je*2,S.push(at[0],at[1]),x.push(Z[Se],Z[Se+1]);var dt=Oie(V,c,a,Je);E.push(dt[0],dt[1]),M.push(l[Se],l[Se+1]),Q.push(a.getRawIndex(Je));break;case"-":ve=!1}ve&&(D.push(fe),k.push(k.length))}k.sort(function(Un,Ha){return Q[Un]-Q[Ha]});for(var wt=S.length,zt=Cv(wt),Ut=Cv(wt),Yt=Cv(wt),ur=Cv(wt),wr=[],ee=0;ee<k.length;ee++){var Or=k[ee],vn=ee*2,wn=Or*2;zt[vn]=S[wn],zt[vn+1]=S[wn+1],Ut[vn]=x[wn],Ut[vn+1]=x[wn+1],Yt[vn]=E[wn],Yt[vn+1]=E[wn+1],ur[vn]=M[wn],ur[vn+1]=M[wn+1],wr[ee]=D[Or]}return{current:zt,next:Ut,stackedOnCurrent:Yt,stackedOnNext:ur,status:wr}}var Am=Math.min,vm=Math.max;function S0(s,a){return isNaN(s)||isNaN(a)}function kU(s,a,i,l,c,d,v,m,w){for(var S,x,E,M,D,k,Q=i,V=0;V<l;V++){var $=a[Q*2],Z=a[Q*2+1];if(Q>=c||Q<0)break;if(S0($,Z)){if(w){Q+=d;continue}break}if(Q===i)s[d>0?"moveTo":"lineTo"]($,Z),E=$,M=Z;else{var ee=$-S,fe=Z-x;if(ee*ee+fe*fe<.5){Q+=d;continue}if(v>0){for(var ve=Q+d,ge=a[ve*2],Se=a[ve*2+1];ge===$&&Se===Z&&V<l;)V++,ve+=d,Q+=d,ge=a[ve*2],Se=a[ve*2+1],$=a[Q*2],Z=a[Q*2+1],ee=$-S,fe=Z-x;var Ee=V+1;if(w)for(;S0(ge,Se)&&Ee<l;)Ee++,ve+=d,ge=a[ve*2],Se=a[ve*2+1];var Ie=.5,Le=0,Fe=0,Je=void 0,rt=void 0;if(Ee>=l||S0(ge,Se))D=$,k=Z;else{Le=ge-S,Fe=Se-x;var at=$-S,dt=ge-$,wt=Z-x,zt=Se-Z,Ut=void 0,Yt=void 0;if(m==="x"){Ut=Math.abs(at),Yt=Math.abs(dt);var ur=Le>0?1:-1;D=$-ur*Ut*v,k=Z,Je=$+ur*Yt*v,rt=Z}else if(m==="y"){Ut=Math.abs(wt),Yt=Math.abs(zt);var wr=Fe>0?1:-1;D=$,k=Z-wr*Ut*v,Je=$,rt=Z+wr*Yt*v}else Ut=Math.sqrt(at*at+wt*wt),Yt=Math.sqrt(dt*dt+zt*zt),Ie=Yt/(Yt+Ut),D=$-Le*v*(1-Ie),k=Z-Fe*v*(1-Ie),Je=$+Le*v*Ie,rt=Z+Fe*v*Ie,Je=Am(Je,vm(ge,$)),rt=Am(rt,vm(Se,Z)),Je=vm(Je,Am(ge,$)),rt=vm(rt,Am(Se,Z)),Le=Je-$,Fe=rt-Z,D=$-Le*Ut/Yt,k=Z-Fe*Ut/Yt,D=Am(D,vm(S,$)),k=Am(k,vm(x,Z)),D=vm(D,Am(S,$)),k=vm(k,Am(x,Z)),Le=$-D,Fe=Z-k,Je=$+Le*Yt/Ut,rt=Z+Fe*Yt/Ut}s.bezierCurveTo(E,M,D,k,$,Z),E=Je,M=rt}else s.lineTo($,Z)}S=$,x=Z,Q+=d}return V}var kie=function(){function s(){this.smooth=0,this.smoothConstraint=!0}return s}(),Nze=function(s){o(a,s);function a(i){var l=s.call(this,i)||this;return l.type="ec-polyline",l}return a.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},a.prototype.getDefaultShape=function(){return new kie},a.prototype.buildPath=function(i,l){var c=l.points,d=0,v=c.length/2;if(l.connectNulls){for(;v>0&&S0(c[v*2-2],c[v*2-1]);v--);for(;d<v&&S0(c[d*2],c[d*2+1]);d++);}for(;d<v;)d+=kU(i,c,d,v,v,1,l.smooth,l.smoothMonotone,l.connectNulls)+1},a.prototype.getPointOn=function(i,l){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var c=this.path,d=c.data,v=hh.CMD,m,w,S=l==="x",x=[],E=0;E<d.length;){var M=d[E++],D=void 0,k=void 0,Q=void 0,V=void 0,$=void 0,Z=void 0,ee=void 0;switch(M){case v.M:m=d[E++],w=d[E++];break;case v.L:if(D=d[E++],k=d[E++],ee=S?(i-m)/(D-m):(i-w)/(k-w),ee<=1&&ee>=0){var fe=S?(k-w)*ee+w:(D-m)*ee+m;return S?[i,fe]:[fe,i]}m=D,w=k;break;case v.C:D=d[E++],k=d[E++],Q=d[E++],V=d[E++],$=d[E++],Z=d[E++];var ve=S?Zs(m,D,Q,$,i,x):Zs(w,k,V,Z,i,x);if(ve>0)for(var ge=0;ge<ve;ge++){var Se=x[ge];if(Se<=1&&Se>=0){var fe=S?Oa(w,k,V,Z,Se):Oa(m,D,Q,$,Se);return S?[i,fe]:[fe,i]}}m=$,w=Z;break}}},a}(Yn),Uze=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a}(kie),Fie=function(s){o(a,s);function a(i){var l=s.call(this,i)||this;return l.type="ec-polygon",l}return a.prototype.getDefaultShape=function(){return new Uze},a.prototype.buildPath=function(i,l){var c=l.points,d=l.stackedOnPoints,v=0,m=c.length/2,w=l.smoothMonotone;if(l.connectNulls){for(;m>0&&S0(c[m*2-2],c[m*2-1]);m--);for(;v<m&&S0(c[v*2],c[v*2+1]);v++);}for(;v<m;){var S=kU(i,c,v,m,m,1,l.smooth,w,l.connectNulls);kU(i,d,v+S-1,S,m,-1,l.stackedOnSmooth,w,l.connectNulls),v+=S+1,i.closePath()}},a}(Yn);function Nie(s,a,i,l,c){var d=s.getArea(),v=d.x,m=d.y,w=d.width,S=d.height,x=i.get(["lineStyle","width"])||0;v-=x/2,m-=x/2,w+=x,S+=x,w=Math.ceil(w),v!==Math.floor(v)&&(v=Math.floor(v),w++);var E=new R({shape:{x:v,y:m,width:w,height:S}});if(a){var M=s.getBaseAxis(),D=M.isHorizontal(),k=M.inverse;D?(k&&(E.shape.x+=w),E.shape.width=0):(k||(E.shape.y+=S),E.shape.height=0);var Q=qe(c)?function(V){c(V,E)}:null;Co(E,{shape:{width:w,height:S,x:v,y:m}},i,null,l,Q)}return E}function Uie(s,a,i){var l=s.getArea(),c=pi(l.r0,1),d=pi(l.r,1),v=new hc({shape:{cx:pi(s.cx,1),cy:pi(s.cy,1),r0:c,r:d,startAngle:l.startAngle,endAngle:l.endAngle,clockwise:l.clockwise}});if(a){var m=s.getBaseAxis().dim==="angle";m?v.shape.endAngle=l.startAngle:v.shape.r=c,Co(v,{shape:{endAngle:l.endAngle,r:d}},i)}return v}function CC(s,a,i,l,c){if(s){if(s.type==="polar")return Uie(s,a,i);if(s.type==="cartesian2d")return Nie(s,a,i,l,c)}else return null;return null}function x0(s,a){return s.type===a}function Hie(s,a){if(s.length===a.length){for(var i=0;i<s.length;i++)if(s[i]!==a[i])return;return!0}}function Qie(s){for(var a=1/0,i=1/0,l=-1/0,c=-1/0,d=0;d<s.length;){var v=s[d++],m=s[d++];isNaN(v)||(a=Math.min(v,a),l=Math.max(v,l)),isNaN(m)||(i=Math.min(m,i),c=Math.max(m,c))}return[[a,i],[l,c]]}function Vie(s,a){var i=Qie(s),l=i[0],c=i[1],d=Qie(a),v=d[0],m=d[1];return Math.max(Math.abs(l[0]-v[0]),Math.abs(l[1]-v[1]),Math.abs(c[0]-m[0]),Math.abs(c[1]-m[1]))}function zie(s){return Ge(s)?s:s?.5:0}function Hze(s,a,i){if(!i.valueDim)return[];for(var l=a.count(),c=Cv(l*2),d=0;d<l;d++){var v=Oie(i,s,a,d);c[d*2]=v[0],c[d*2+1]=v[1]}return c}function pm(s,a,i,l,c){var d=i.getBaseAxis(),v=d.dim==="x"||d.dim==="radius"?0:1,m=[],w=0,S=[],x=[],E=[],M=[];if(c){for(w=0;w<s.length;w+=2){var D=a||s;!isNaN(D[w])&&!isNaN(D[w+1])&&M.push(s[w],s[w+1])}s=M}for(w=0;w<s.length-2;w+=2)switch(E[0]=s[w+2],E[1]=s[w+3],x[0]=s[w],x[1]=s[w+1],m.push(x[0],x[1]),l){case"end":S[v]=E[v],S[1-v]=x[1-v],m.push(S[0],S[1]);break;case"middle":var k=(x[v]+E[v])/2,Q=[];S[v]=Q[v]=k,S[1-v]=x[1-v],Q[1-v]=E[1-v],m.push(S[0],S[1]),m.push(Q[0],Q[1]);break;default:S[v]=x[v],S[1-v]=E[1-v],m.push(S[0],S[1])}return m.push(s[w++],s[w++]),m}function Qze(s,a){var i=[],l=s.length,c,d;function v(x,E,M){var D=x.coord,k=(M-D)/(E.coord-D),Q=Vr(k,[x.color,E.color]);return{coord:M,color:Q}}for(var m=0;m<l;m++){var w=s[m],S=w.coord;if(S<0)c=w;else if(S>a){d?i.push(v(d,w,a)):c&&i.push(v(c,w,0),v(c,w,a));break}else c&&(i.push(v(c,w,0)),c=null),i.push(w),d=w}return i}function Vze(s,a,i){var l=s.getVisual("visualMeta");if(!(!l||!l.length||!s.count())){if(a.type!=="cartesian2d"){console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var c,d,v=l.length-1;v>=0;v--){var m=s.getDimensionInfo(l[v].dimension);if(c=m&&m.coordDim,c==="x"||c==="y"){d=l[v];break}}if(!d){console.warn("Visual map on line style only support x or y dimension.");return}var w=a.getAxis(c),S=xe(d.stops,function(ee){return{coord:w.toGlobalCoord(w.dataToCoord(ee.value)),color:ee.color}}),x=S.length,E=d.outerColors.slice();x&&S[0].coord>S[x-1].coord&&(S.reverse(),E.reverse());var M=Qze(S,c==="x"?i.getWidth():i.getHeight()),D=M.length;if(!D&&x)return S[0].coord<0?E[1]?E[1]:S[x-1].color:E[0]?E[0]:S[0].color;var k=10,Q=M[0].coord-k,V=M[D-1].coord+k,$=V-Q;if($<.001)return"transparent";ne(M,function(ee){ee.offset=(ee.coord-Q)/$}),M.push({offset:D?M[D-1].offset:.5,color:E[1]||"transparent"}),M.unshift({offset:D?M[0].offset:.5,color:E[0]||"transparent"});var Z=new Zw(0,0,0,0,M,!0);return Z[c]=Q,Z[c+"2"]=V,Z}}function zze(s,a,i){var l=s.get("showAllSymbol"),c=l==="auto";if(!(l&&!c)){var d=i.getAxesByScale("ordinal")[0];if(d&&!(c&&Gze(d,a))){var v=a.mapDimension(d.dim),m={};return ne(d.getViewLabels(),function(w){var S=d.scale.getRawOrdinalNumber(w.tickValue);m[S]=1}),function(w){return!m.hasOwnProperty(a.get(v,w))}}}}function Gze(s,a){var i=s.getExtent(),l=Math.abs(i[1]-i[0])/s.scale.count();isNaN(l)&&(l=0);for(var c=a.count(),d=Math.max(1,Math.round(c/5)),v=0;v<c;v+=d)if(SC.getSymbolSize(a,v)[s.isHorizontal()?1:0]*1.5>l)return!1;return!0}function jze(s,a){return isNaN(s)||isNaN(a)}function qze(s){for(var a=s.length/2;a>0&&jze(s[a*2-2],s[a*2-1]);a--);return a-1}function Gie(s,a){return[s[a*2],s[a*2+1]]}function Wze(s,a,i){for(var l=s.length/2,c=i==="x"?0:1,d,v,m=0,w=-1,S=0;S<l;S++)if(v=s[S*2+c],!(isNaN(v)||isNaN(s[S*2+1-c]))){if(S===0){d=v;continue}if(d<=a&&v>=a||d>=a&&v<=a){w=S;break}m=S,d=v}return{range:[m,w],t:(a-d)/(v-d)}}function jie(s){if(s.get(["endLabel","show"]))return!0;for(var a=0;a<Ou.length;a++)if(s.get([Ou[a],"endLabel","show"]))return!0;return!1}function FU(s,a,i,l){if(x0(a,"cartesian2d")){var c=l.getModel("endLabel"),d=c.get("valueAnimation"),v=l.getData(),m={lastFrameIndex:0},w=jie(l)?function(D,k){s._endLabelOnDuring(D,k,v,m,d,c,a)}:null,S=a.getBaseAxis().isHorizontal(),x=Nie(a,i,l,function(){var D=s._endLabel;D&&i&&m.originalX!=null&&D.attr({x:m.originalX,y:m.originalY})},w);if(!l.get("clip",!0)){var E=x.shape,M=Math.max(E.width,E.height);S?(E.y-=M,E.height+=M*2):(E.x-=M,E.width+=M*2)}return w&&w(1,x),x}else return l.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),Uie(a,i,l)}function $ze(s,a){var i=a.getBaseAxis(),l=i.isHorizontal(),c=i.inverse,d=l?c?"right":"left":"center",v=l?"middle":c?"top":"bottom";return{normal:{align:s.get("align")||d,verticalAlign:s.get("verticalAlign")||v}}}var Kze=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.init=function(){var i=new Lr,l=new xC;this.group.add(l.group),this._symbolDraw=l,this._lineGroup=i,this._changePolyState=Ue(this._changePolyState,this)},a.prototype.render=function(i,l,c){var d=i.coordinateSystem,v=this.group,m=i.getData(),w=i.getModel("lineStyle"),S=i.getModel("areaStyle"),x=m.getLayout("points")||[],E=d.type==="polar",M=this._coordSys,D=this._symbolDraw,k=this._polyline,Q=this._polygon,V=this._lineGroup,$=!l.ssr&&i.get("animation"),Z=!S.isEmpty(),ee=S.get("origin"),fe=Pie(d,m,ee),ve=Z&&Hze(d,m,fe),ge=i.get("showSymbol"),Se=i.get("connectNulls"),Ee=ge&&!E&&zze(i,m,d),Ie=this._data;Ie&&Ie.eachItemGraphicEl(function(Un,Ha){Un.__temp&&(v.remove(Un),Ie.setItemGraphicEl(Ha,null))}),ge||D.remove(),v.add(V);var Le=E?!1:i.get("step"),Fe;d&&d.getArea&&i.get("clip",!0)&&(Fe=d.getArea(),Fe.width!=null?(Fe.x-=.1,Fe.y-=.1,Fe.width+=.2,Fe.height+=.2):Fe.r0&&(Fe.r0-=.5,Fe.r+=.5)),this._clipShapeForSymbol=Fe;var Je=Vze(m,d,c)||m.getVisual("style")[m.getVisual("drawType")];if(!(k&&M.type===d.type&&Le===this._step))ge&&D.updateData(m,{isIgnore:Ee,clipShape:Fe,disableAnimation:!0,getSymbolPoint:function(Un){return[x[Un*2],x[Un*2+1]]}}),$&&this._initSymbolLabelAnimation(m,d,Fe),Le&&(ve&&(ve=pm(ve,x,d,Le,Se)),x=pm(x,null,d,Le,Se)),k=this._newPolyline(x),Z?Q=this._newPolygon(x,ve):Q&&(V.remove(Q),Q=this._polygon=null),E||this._initOrUpdateEndLabel(i,d,n0(Je)),V.setClipPath(FU(this,d,!0,i));else{Z&&!Q?Q=this._newPolygon(x,ve):Q&&!Z&&(V.remove(Q),Q=this._polygon=null),E||this._initOrUpdateEndLabel(i,d,n0(Je));var rt=V.getClipPath();if(rt){var at=FU(this,d,!1,i);Co(rt,{shape:at.shape},i)}else V.setClipPath(FU(this,d,!0,i));ge&&D.updateData(m,{isIgnore:Ee,clipShape:Fe,disableAnimation:!0,getSymbolPoint:function(Un){return[x[Un*2],x[Un*2+1]]}}),(!Hie(this._stackedOnPoints,ve)||!Hie(this._points,x))&&($?this._doUpdateAnimation(m,ve,d,c,Le,ee,Se):(Le&&(ve&&(ve=pm(ve,x,d,Le,Se)),x=pm(x,null,d,Le,Se)),k.setShape({points:x}),Q&&Q.setShape({points:x,stackedOnPoints:ve})))}var dt=i.getModel("emphasis"),wt=dt.get("focus"),zt=dt.get("blurScope"),Ut=dt.get("disabled");if(k.useStyle(he(w.getLineStyle(),{fill:"none",stroke:Je,lineJoin:"bevel"})),ku(k,i,"lineStyle"),k.style.lineWidth>0&&i.get(["emphasis","lineStyle","width"])==="bolder"){var Yt=k.getState("emphasis").style;Yt.lineWidth=+k.style.lineWidth+1}bt(k).seriesIndex=i.seriesIndex,as(k,wt,zt,Ut);var ur=zie(i.get("smooth")),wr=i.get("smoothMonotone");if(k.setShape({smooth:ur,smoothMonotone:wr,connectNulls:Se}),Q){var Or=m.getCalculationInfo("stackedOnSeries"),vn=0;Q.useStyle(he(S.getAreaStyle(),{fill:Je,opacity:.7,lineJoin:"bevel",decal:m.getVisual("style").decal})),Or&&(vn=zie(Or.get("smooth"))),Q.setShape({smooth:ur,stackedOnSmooth:vn,smoothMonotone:wr,connectNulls:Se}),ku(Q,i,"areaStyle"),bt(Q).seriesIndex=i.seriesIndex,as(Q,wt,zt,Ut)}var wn=this._changePolyState;m.eachItemGraphicEl(function(Un){Un&&(Un.onHoverStateChange=wn)}),this._polyline.onHoverStateChange=wn,this._data=m,this._coordSys=d,this._stackedOnPoints=ve,this._points=x,this._step=Le,this._valueOrigin=ee,i.get("triggerLineEvent")&&(this.packEventData(i,k),Q&&this.packEventData(i,Q))},a.prototype.packEventData=function(i,l){bt(l).eventData={componentType:"series",componentSubType:"line",componentIndex:i.componentIndex,seriesIndex:i.seriesIndex,seriesName:i.name,seriesType:"line"}},a.prototype.highlight=function(i,l,c,d){var v=i.getData(),m=iA(v,d);if(this._changePolyState("emphasis"),!(m instanceof Array)&&m!=null&&m>=0){var w=v.getLayout("points"),S=v.getItemGraphicEl(m);if(!S){var x=w[m*2],E=w[m*2+1];if(isNaN(x)||isNaN(E)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(x,E))return;var M=i.get("zlevel")||0,D=i.get("z")||0;S=new SC(v,m),S.x=x,S.y=E,S.setZ(M,D);var k=S.getSymbolPath().getTextContent();k&&(k.zlevel=M,k.z=D,k.z2=this._polyline.z2+1),S.__temp=!0,v.setItemGraphicEl(m,S),S.stopSymbolAnimation(!0),this.group.add(S)}S.highlight()}else xa.prototype.highlight.call(this,i,l,c,d)},a.prototype.downplay=function(i,l,c,d){var v=i.getData(),m=iA(v,d);if(this._changePolyState("normal"),m!=null&&m>=0){var w=v.getItemGraphicEl(m);w&&(w.__temp?(v.setItemGraphicEl(m,null),this.group.remove(w)):w.downplay())}else xa.prototype.downplay.call(this,i,l,c,d)},a.prototype._changePolyState=function(i){var l=this._polygon;eI(this._polyline,i),l&&eI(l,i)},a.prototype._newPolyline=function(i){var l=this._polyline;return l&&this._lineGroup.remove(l),l=new Nze({shape:{points:i},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(l),this._polyline=l,l},a.prototype._newPolygon=function(i,l){var c=this._polygon;return c&&this._lineGroup.remove(c),c=new Fie({shape:{points:i,stackedOnPoints:l},segmentIgnoreThreshold:2}),this._lineGroup.add(c),this._polygon=c,c},a.prototype._initSymbolLabelAnimation=function(i,l,c){var d,v,m=l.getBaseAxis(),w=m.inverse;l.type==="cartesian2d"?(d=m.isHorizontal(),v=!1):l.type==="polar"&&(d=m.dim==="angle",v=!0);var S=i.hostModel,x=S.get("animationDuration");qe(x)&&(x=x(null));var E=S.get("animationDelay")||0,M=qe(E)?E(null):E;i.eachItemGraphicEl(function(D,k){var Q=D;if(Q){var V=[D.x,D.y],$=void 0,Z=void 0,ee=void 0;if(c)if(v){var fe=c,ve=l.pointToCoord(V);d?($=fe.startAngle,Z=fe.endAngle,ee=-ve[1]/180*Math.PI):($=fe.r0,Z=fe.r,ee=ve[0])}else{var ge=c;d?($=ge.x,Z=ge.x+ge.width,ee=D.x):($=ge.y+ge.height,Z=ge.y,ee=D.y)}var Se=Z===$?0:(ee-$)/(Z-$);w&&(Se=1-Se);var Ee=qe(E)?E(k):x*Se+M,Ie=Q.getSymbolPath(),Le=Ie.getTextContent();Q.attr({scaleX:0,scaleY:0}),Q.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:Ee}),Le&&Le.animateFrom({style:{opacity:0}},{duration:300,delay:Ee}),Ie.disableLabelAnimation=!0}})},a.prototype._initOrUpdateEndLabel=function(i,l,c){var d=i.getModel("endLabel");if(jie(i)){var v=i.getData(),m=this._polyline,w=v.getLayout("points");if(!w){m.removeTextContent(),this._endLabel=null;return}var S=this._endLabel;S||(S=this._endLabel=new be({z2:200}),S.ignoreClip=!0,m.setTextContent(this._endLabel),m.disableLabelAnimation=!0);var x=qze(w);x>=0&&(Fu(m,eu(i,"endLabel"),{inheritColor:c,labelFetcher:i,labelDataIndex:x,defaultText:function(E,M,D){return D!=null?Mie(v,D):Eb(v,E)},enableTextSetter:!0},$ze(d,l)),m.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},a.prototype._endLabelOnDuring=function(i,l,c,d,v,m,w){var S=this._endLabel,x=this._polyline;if(S){i<1&&d.originalX==null&&(d.originalX=S.x,d.originalY=S.y);var E=c.getLayout("points"),M=c.hostModel,D=M.get("connectNulls"),k=m.get("precision"),Q=m.get("distance")||0,V=w.getBaseAxis(),$=V.isHorizontal(),Z=V.inverse,ee=l.shape,fe=Z?$?ee.x:ee.y+ee.height:$?ee.x+ee.width:ee.y,ve=($?Q:0)*(Z?-1:1),ge=($?0:-Q)*(Z?-1:1),Se=$?"x":"y",Ee=Wze(E,fe,Se),Ie=Ee.range,Le=Ie[1]-Ie[0],Fe=void 0;if(Le>=1){if(Le>1&&!D){var Je=Gie(E,Ie[0]);S.attr({x:Je[0]+ve,y:Je[1]+ge}),v&&(Fe=M.getRawValue(Ie[0]))}else{var Je=x.getPointOn(fe,Se);Je&&S.attr({x:Je[0]+ve,y:Je[1]+ge});var rt=M.getRawValue(Ie[0]),at=M.getRawValue(Ie[1]);v&&(Fe=Dw(c,k,rt,at,Ee.t))}d.lastFrameIndex=Ie[0]}else{var dt=i===1||d.lastFrameIndex>0?Ie[0]:0,Je=Gie(E,dt);v&&(Fe=M.getRawValue(dt)),S.attr({x:Je[0]+ve,y:Je[1]+ge})}if(v){var wt=nb(S);typeof wt.setLabelText=="function"&&wt.setLabelText(Fe)}}},a.prototype._doUpdateAnimation=function(i,l,c,d,v,m,w){var S=this._polyline,x=this._polygon,E=i.hostModel,M=Fze(this._data,i,this._stackedOnPoints,l,this._coordSys,c,this._valueOrigin),D=M.current,k=M.stackedOnCurrent,Q=M.next,V=M.stackedOnNext;if(v&&(k=pm(M.stackedOnCurrent,M.current,c,v,w),D=pm(M.current,null,c,v,w),V=pm(M.stackedOnNext,M.next,c,v,w),Q=pm(M.next,null,c,v,w)),Vie(D,Q)>3e3||x&&Vie(k,V)>3e3){S.stopAnimation(),S.setShape({points:Q}),x&&(x.stopAnimation(),x.setShape({points:Q,stackedOnPoints:V}));return}S.shape.__points=M.current,S.shape.points=D;var $={shape:{points:Q}};M.current!==D&&($.shape.__points=M.next),S.stopAnimation(),Yi(S,$,E),x&&(x.setShape({points:D,stackedOnPoints:k}),x.stopAnimation(),Yi(x,{shape:{stackedOnPoints:V}},E),S.shape.points!==x.shape.points&&(x.shape.points=S.shape.points));for(var Z=[],ee=M.status,fe=0;fe<ee.length;fe++){var ve=ee[fe].cmd;if(ve==="="){var ge=i.getItemGraphicEl(ee[fe].idx1);ge&&Z.push({el:ge,ptIdx:fe})}}S.animators&&S.animators.length&&S.animators[0].during(function(){x&&x.dirtyShape();for(var Se=S.shape.__points,Ee=0;Ee<Z.length;Ee++){var Ie=Z[Ee].el,Le=Z[Ee].ptIdx*2;Ie.x=Se[Le],Ie.y=Se[Le+1],Ie.markRedraw()}})},a.prototype.remove=function(i){var l=this.group,c=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),c&&c.eachItemGraphicEl(function(d,v){d.__temp&&(l.remove(d),c.setItemGraphicEl(v,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},a.type="line",a}(xa);function TC(s,a){return{seriesType:s,plan:Ab(),reset:function(i){var l=i.getData(),c=i.coordinateSystem,d=i.pipelineContext,v=a||d.large;if(c){var m=xe(c.dimensions,function(D){return l.mapDimension(D)}).slice(0,2),w=m.length,S=l.getCalculationInfo("stackResultDimension");Qp(l,m[0])&&(m[0]=S),Qp(l,m[1])&&(m[1]=S);var x=l.getStore(),E=l.getDimensionIndex(m[0]),M=l.getDimensionIndex(m[1]);return w&&{progress:function(D,k){for(var Q=D.end-D.start,V=v&&Cv(Q*w),$=[],Z=[],ee=D.start,fe=0;ee<D.end;ee++){var ve=void 0;if(w===1){var ge=x.get(E,ee);ve=c.dataToPoint(ge,null,Z)}else $[0]=x.get(E,ee),$[1]=x.get(M,ee),ve=c.dataToPoint($,null,Z);v?(V[fe++]=ve[0],V[fe++]=ve[1]):k.setItemLayout(ee,ve.slice())}v&&k.setLayout("points",V)}}}}}}var Yze={average:function(s){for(var a=0,i=0,l=0;l<s.length;l++)isNaN(s[l])||(a+=s[l],i++);return i===0?NaN:a/i},sum:function(s){for(var a=0,i=0;i<s.length;i++)a+=s[i]||0;return a},max:function(s){for(var a=-1/0,i=0;i<s.length;i++)s[i]>a&&(a=s[i]);return isFinite(a)?a:NaN},min:function(s){for(var a=1/0,i=0;i<s.length;i++)s[i]<a&&(a=s[i]);return isFinite(a)?a:NaN},nearest:function(s){return s[0]}},Xze=function(s){return Math.round(s.length/2)};function qie(s){return{seriesType:s,reset:function(a,i,l){var c=a.getData(),d=a.get("sampling"),v=a.coordinateSystem,m=c.count();if(m>10&&v.type==="cartesian2d"&&d){var w=v.getBaseAxis(),S=v.getOtherAxis(w),x=w.getExtent(),E=l.getDevicePixelRatio(),M=Math.abs(x[1]-x[0])*(E||1),D=Math.round(m/M);if(isFinite(D)&&D>1){d==="lttb"?a.setData(c.lttbDownSample(c.mapDimension(S.dim),1/D)):d==="minmax"&&a.setData(c.minmaxDownSample(c.mapDimension(S.dim),1/D));var k=void 0;Re(d)?k=Yze[d]:qe(d)&&(k=d),k&&a.setData(c.downSample(c.mapDimension(S.dim),1/D,k,Xze))}}}}}function Zze(s){s.registerChartView(Kze),s.registerSeriesModel(Rze),s.registerLayout(TC("line",!0)),s.registerVisual({seriesType:"line",reset:function(a){var i=a.getData(),l=a.getModel("lineStyle").getLineStyle();l&&!l.stroke&&(l.stroke=i.getVisual("style").fill),i.setVisual("legendLineStyle",l)}}),s.registerProcessor(s.PRIORITY.PROCESSOR.STATISTIC,qie("line"))}var EC=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.getInitialData=function(i,l){return Sv(null,this,{useEncodeDefaulter:!0})},a.prototype.getMarkerPosition=function(i,l,c){var d=this.coordinateSystem;if(d&&d.clampData){var v=d.clampData(i),m=d.dataToPoint(v);if(c)ne(d.getAxes(),function(M,D){if(M.type==="category"&&l!=null){var k=M.getTicksCoords(),Q=M.getTickModel().get("alignWithLabel"),V=v[D],$=l[D]==="x1"||l[D]==="y1";if($&&!Q&&(V+=1),k.length<2)return;if(k.length===2){m[D]=M.toGlobalCoord(M.getExtent()[$?1:0]);return}for(var Z=void 0,ee=void 0,fe=1,ve=0;ve<k.length;ve++){var ge=k[ve].coord,Se=ve===k.length-1?k[ve-1].tickValue+fe:k[ve].tickValue;if(Se===V){ee=ge;break}else if(Se<V)Z=ge;else if(Z!=null&&Se>V){ee=(ge+Z)/2;break}ve===1&&(fe=Se-k[0].tickValue)}ee==null&&(Z?Z&&(ee=k[k.length-1].coord):ee=k[0].coord),m[D]=M.toGlobalCoord(ee)}});else{var w=this.getData(),S=w.getLayout("offset"),x=w.getLayout("size"),E=d.getBaseAxis().isHorizontal()?0:1;m[E]+=S+x/2}return m}return[NaN,NaN]},a.type="series.__base_bar__",a.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},a}(Ua);Ua.registerClass(EC);var Jze=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.getInitialData=function(){return Sv(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},a.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},a.prototype.getProgressiveThreshold=function(){var i=this.get("progressiveThreshold"),l=this.get("largeThreshold");return l>i&&(i=l),i},a.prototype.brushSelector=function(i,l,c){return c.rect(l.getItemLayout(i))},a.type="series.bar",a.dependencies=["grid","polar"],a.defaultOption=sm(EC.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}),a}(EC),e7e=function(){function s(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return s}(),vL=function(s){o(a,s);function a(i){var l=s.call(this,i)||this;return l.type="sausage",l}return a.prototype.getDefaultShape=function(){return new e7e},a.prototype.buildPath=function(i,l){var c=l.cx,d=l.cy,v=Math.max(l.r0||0,0),m=Math.max(l.r,0),w=(m-v)*.5,S=v+w,x=l.startAngle,E=l.endAngle,M=l.clockwise,D=Math.PI*2,k=M?E-x<D:x-E<D;k||(x=E-(M?D:-D));var Q=Math.cos(x),V=Math.sin(x),$=Math.cos(E),Z=Math.sin(E);k?(i.moveTo(Q*v+c,V*v+d),i.arc(Q*S+c,V*S+d,w,-Math.PI+x,x,!M)):i.moveTo(Q*m+c,V*m+d),i.arc(c,d,m,x,E,!M),i.arc($*S+c,Z*S+d,w,E-Math.PI*2,E-Math.PI,!M),v!==0&&i.arc(c,d,v,E,x,M)},a}(Yn);function t7e(s,a){a=a||{};var i=a.isRoundCap;return function(l,c,d){var v=c.position;if(!v||v instanceof Array)return sr(l,c,d);var m=s(v),w=c.distance!=null?c.distance:5,S=this.shape,x=S.cx,E=S.cy,M=S.r,D=S.r0,k=(M+D)/2,Q=S.startAngle,V=S.endAngle,$=(Q+V)/2,Z=i?Math.abs(M-D)/2:0,ee=Math.cos,fe=Math.sin,ve=x+M*ee(Q),ge=E+M*fe(Q),Se="left",Ee="top";switch(m){case"startArc":ve=x+(D-w)*ee($),ge=E+(D-w)*fe($),Se="center",Ee="top";break;case"insideStartArc":ve=x+(D+w)*ee($),ge=E+(D+w)*fe($),Se="center",Ee="bottom";break;case"startAngle":ve=x+k*ee(Q)+pL(Q,w+Z,!1),ge=E+k*fe(Q)+gL(Q,w+Z,!1),Se="right",Ee="middle";break;case"insideStartAngle":ve=x+k*ee(Q)+pL(Q,-w+Z,!1),ge=E+k*fe(Q)+gL(Q,-w+Z,!1),Se="left",Ee="middle";break;case"middle":ve=x+k*ee($),ge=E+k*fe($),Se="center",Ee="middle";break;case"endArc":ve=x+(M+w)*ee($),ge=E+(M+w)*fe($),Se="center",Ee="bottom";break;case"insideEndArc":ve=x+(M-w)*ee($),ge=E+(M-w)*fe($),Se="center",Ee="top";break;case"endAngle":ve=x+k*ee(V)+pL(V,w+Z,!0),ge=E+k*fe(V)+gL(V,w+Z,!0),Se="left",Ee="middle";break;case"insideEndAngle":ve=x+k*ee(V)+pL(V,-w+Z,!0),ge=E+k*fe(V)+gL(V,-w+Z,!0),Se="right",Ee="middle";break;default:return sr(l,c,d)}return l=l||{},l.x=ve,l.y=ge,l.align=Se,l.verticalAlign=Ee,l}}function r7e(s,a,i,l){if(Ge(l)){s.setTextConfig({rotation:l});return}else if(Qe(a)){s.setTextConfig({rotation:0});return}var c=s.shape,d=c.clockwise?c.startAngle:c.endAngle,v=c.clockwise?c.endAngle:c.startAngle,m=(d+v)/2,w,S=i(a);switch(S){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":w=m;break;case"startAngle":case"insideStartAngle":w=d;break;case"endAngle":case"insideEndAngle":w=v;break;default:s.setTextConfig({rotation:0});return}var x=Math.PI*1.5-w;S==="middle"&&x>Math.PI/2&&x<Math.PI*1.5&&(x-=Math.PI),s.setTextConfig({rotation:x})}function pL(s,a,i){return a*Math.sin(s)*(i?-1:1)}function gL(s,a,i){return a*Math.cos(s)*(i?1:-1)}function C0(s,a,i){var l=s.get("borderRadius");if(l==null)return i?{cornerRadius:0}:null;Qe(l)||(l=[l,l,l,l]);var c=Math.abs(a.r||0-a.r0||0);return{cornerRadius:xe(l,function(d){return tr(d,c)})}}var NU=Math.max,UU=Math.min;function n7e(s,a){var i=s.getArea&&s.getArea();if(x0(s,"cartesian2d")){var l=s.getBaseAxis();if(l.type!=="category"||!l.onBand){var c=a.getLayout("bandWidth");l.isHorizontal()?(i.x-=c,i.width+=c*2):(i.y-=c,i.height+=c*2)}}return i}var i7e=function(s){o(a,s);function a(){var i=s.call(this)||this;return i.type=a.type,i._isFirstFrame=!0,i}return a.prototype.render=function(i,l,c,d){this._model=i,this._removeOnRenderedListener(c),this._updateDrawMode(i);var v=i.get("coordinateSystem");v==="cartesian2d"||v==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(i,l,c):this._renderNormal(i,l,c,d)):Ya("Only cartesian2d and polar supported for bar.")},a.prototype.incrementalPrepareRender=function(i){this._clear(),this._updateDrawMode(i),this._updateLargeClip(i)},a.prototype.incrementalRender=function(i,l){this._progressiveEls=[],this._incrementalRenderLarge(i,l)},a.prototype.eachRendered=function(i){om(this._progressiveEls||this.group,i)},a.prototype._updateDrawMode=function(i){var l=i.pipelineContext.large;(this._isLargeDraw==null||l!==this._isLargeDraw)&&(this._isLargeDraw=l,this._clear())},a.prototype._renderNormal=function(i,l,c,d){var v=this.group,m=i.getData(),w=this._data,S=i.coordinateSystem,x=S.getBaseAxis(),E;S.type==="cartesian2d"?E=x.isHorizontal():S.type==="polar"&&(E=x.dim==="angle");var M=i.isAnimationEnabled()?i:null,D=a7e(i,S);D&&this._enableRealtimeSort(D,m,c);var k=i.get("clip",!0)||D,Q=n7e(S,m);v.removeClipPath();var V=i.get("roundCap",!0),$=i.get("showBackground",!0),Z=i.getModel("backgroundStyle"),ee=Z.get("borderRadius")||0,fe=[],ve=this._backgroundEls,ge=d&&d.isInitSort,Se=d&&d.type==="changeAxisOrder";function Ee(Fe){var Je=mL[S.type](m,Fe),rt=h7e(S,E,Je);return rt.useStyle(Z.getItemStyle()),S.type==="cartesian2d"?rt.setShape("r",ee):rt.setShape("cornerRadius",ee),fe[Fe]=rt,rt}m.diff(w).add(function(Fe){var Je=m.getItemModel(Fe),rt=mL[S.type](m,Fe,Je);if($&&Ee(Fe),!(!m.hasValue(Fe)||!Xie[S.type](rt))){var at=!1;k&&(at=Wie[S.type](Q,rt));var dt=$ie[S.type](i,m,Fe,rt,E,M,x.model,!1,V);D&&(dt.forceLabelAnimation=!0),Jie(dt,m,Fe,Je,rt,i,E,S.type==="polar"),ge?dt.attr({shape:rt}):D?Kie(D,M,dt,rt,Fe,E,!1,!1):Co(dt,{shape:rt},i,Fe),m.setItemGraphicEl(Fe,dt),v.add(dt),dt.ignore=at}}).update(function(Fe,Je){var rt=m.getItemModel(Fe),at=mL[S.type](m,Fe,rt);if($){var dt=void 0;ve.length===0?dt=Ee(Je):(dt=ve[Je],dt.useStyle(Z.getItemStyle()),S.type==="cartesian2d"?dt.setShape("r",ee):dt.setShape("cornerRadius",ee),fe[Fe]=dt);var wt=mL[S.type](m,Fe),zt=nae(E,wt,S);Yi(dt,{shape:zt},M,Fe)}var Ut=w.getItemGraphicEl(Je);if(!m.hasValue(Fe)||!Xie[S.type](at)){v.remove(Ut);return}var Yt=!1;if(k&&(Yt=Wie[S.type](Q,at),Yt&&v.remove(Ut)),Ut?dA(Ut):Ut=$ie[S.type](i,m,Fe,at,E,M,x.model,!!Ut,V),D&&(Ut.forceLabelAnimation=!0),Se){var ur=Ut.getTextContent();if(ur){var wr=nb(ur);wr.prevValue!=null&&(wr.prevValue=wr.value)}}else Jie(Ut,m,Fe,rt,at,i,E,S.type==="polar");ge?Ut.attr({shape:at}):D?Kie(D,M,Ut,at,Fe,E,!0,Se):Yi(Ut,{shape:at},i,Fe,null),m.setItemGraphicEl(Fe,Ut),Ut.ignore=Yt,v.add(Ut)}).remove(function(Fe){var Je=w.getItemGraphicEl(Fe);Je&&zx(Je,i,Fe)}).execute();var Ie=this._backgroundGroup||(this._backgroundGroup=new Lr);Ie.removeAll();for(var Le=0;Le<fe.length;++Le)Ie.add(fe[Le]);v.add(Ie),this._backgroundEls=fe,this._data=m},a.prototype._renderLarge=function(i,l,c){this._clear(),tae(i,this.group),this._updateLargeClip(i)},a.prototype._incrementalRenderLarge=function(i,l){this._removeBackground(),tae(l,this.group,this._progressiveEls,!0)},a.prototype._updateLargeClip=function(i){var l=i.get("clip",!0)&&CC(i.coordinateSystem,!1,i),c=this.group;l?c.setClipPath(l):c.removeClipPath()},a.prototype._enableRealtimeSort=function(i,l,c){var d=this;if(l.count()){var v=i.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(l,i,c),this._isFirstFrame=!1;else{var m=function(w){var S=l.getItemGraphicEl(w),x=S&&S.shape;return x&&Math.abs(v.isHorizontal()?x.height:x.width)||0};this._onRendered=function(){d._updateSortWithinSameData(l,m,v,c)},c.getZr().on("rendered",this._onRendered)}}},a.prototype._dataSort=function(i,l,c){var d=[];return i.each(i.mapDimension(l.dim),function(v,m){var w=c(m);w=w??NaN,d.push({dataIndex:m,mappedValue:w,ordinalNumber:v})}),d.sort(function(v,m){return m.mappedValue-v.mappedValue}),{ordinalNumbers:xe(d,function(v){return v.ordinalNumber})}},a.prototype._isOrderChangedWithinSameData=function(i,l,c){for(var d=c.scale,v=i.mapDimension(c.dim),m=Number.MAX_VALUE,w=0,S=d.getOrdinalMeta().categories.length;w<S;++w){var x=i.rawIndexOf(v,d.getRawOrdinalNumber(w)),E=x<0?Number.MIN_VALUE:l(i.indexOfRawIndex(x));if(E>m)return!0;m=E}return!1},a.prototype._isOrderDifferentInView=function(i,l){for(var c=l.scale,d=c.getExtent(),v=Math.max(0,d[0]),m=Math.min(d[1],c.getOrdinalMeta().categories.length-1);v<=m;++v)if(i.ordinalNumbers[v]!==c.getRawOrdinalNumber(v))return!0},a.prototype._updateSortWithinSameData=function(i,l,c,d){if(this._isOrderChangedWithinSameData(i,l,c)){var v=this._dataSort(i,c,l);this._isOrderDifferentInView(v,c)&&(this._removeOnRenderedListener(d),d.dispatchAction({type:"changeAxisOrder",componentType:c.dim+"Axis",axisId:c.index,sortInfo:v}))}},a.prototype._dispatchInitSort=function(i,l,c){var d=l.baseAxis,v=this._dataSort(i,d,function(m){return i.get(i.mapDimension(l.otherAxis.dim),m)});c.dispatchAction({type:"changeAxisOrder",componentType:d.dim+"Axis",isInitSort:!0,axisId:d.index,sortInfo:v})},a.prototype.remove=function(i,l){this._clear(this._model),this._removeOnRenderedListener(l)},a.prototype.dispose=function(i,l){this._removeOnRenderedListener(l)},a.prototype._removeOnRenderedListener=function(i){this._onRendered&&(i.getZr().off("rendered",this._onRendered),this._onRendered=null)},a.prototype._clear=function(i){var l=this.group,c=this._data;i&&i.isAnimationEnabled()&&c&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],c.eachItemGraphicEl(function(d){zx(d,i,bt(d).dataIndex)})):l.removeAll(),this._data=null,this._isFirstFrame=!0},a.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},a.type="bar",a}(xa),Wie={cartesian2d:function(s,a){var i=a.width<0?-1:1,l=a.height<0?-1:1;i<0&&(a.x+=a.width,a.width=-a.width),l<0&&(a.y+=a.height,a.height=-a.height);var c=s.x+s.width,d=s.y+s.height,v=NU(a.x,s.x),m=UU(a.x+a.width,c),w=NU(a.y,s.y),S=UU(a.y+a.height,d),x=m<v,E=S<w;return a.x=x&&v>c?m:v,a.y=E&&w>d?S:w,a.width=x?0:m-v,a.height=E?0:S-w,i<0&&(a.x+=a.width,a.width=-a.width),l<0&&(a.y+=a.height,a.height=-a.height),x||E},polar:function(s,a){var i=a.r0<=a.r?1:-1;if(i<0){var l=a.r;a.r=a.r0,a.r0=l}var c=UU(a.r,s.r),d=NU(a.r0,s.r0);a.r=c,a.r0=d;var v=c-d<0;if(i<0){var l=a.r;a.r=a.r0,a.r0=l}return v}},$ie={cartesian2d:function(s,a,i,l,c,d,v,m,w){var S=new R({shape:ie({},l),z2:1});if(S.__dataIndex=i,S.name="item",d){var x=S.shape,E=c?"height":"width";x[E]=0}return S},polar:function(s,a,i,l,c,d,v,m,w){var S=!c&&w?vL:hc,x=new S({shape:l,z2:1});x.name="item";var E=Zie(c);if(x.calculateTextPosition=t7e(E,{isRoundCap:S===vL}),d){var M=x.shape,D=c?"r":"endAngle",k={};M[D]=c?l.r0:l.startAngle,k[D]=l[D],(m?Yi:Co)(x,{shape:k},d)}return x}};function a7e(s,a){var i=s.get("realtimeSort",!0),l=a.getBaseAxis();if(i&&(l.type!=="category"&&Ya("`realtimeSort` will not work because this bar series is not based on a category axis."),a.type!=="cartesian2d"&&Ya("`realtimeSort` will not work because this bar series is not on cartesian2d.")),i&&l.type==="category"&&a.type==="cartesian2d")return{baseAxis:l,otherAxis:a.getOtherAxis(l)}}function Kie(s,a,i,l,c,d,v,m){var w,S;d?(S={x:l.x,width:l.width},w={y:l.y,height:l.height}):(S={y:l.y,height:l.height},w={x:l.x,width:l.width}),m||(v?Yi:Co)(i,{shape:w},a,c,null);var x=a?s.baseAxis.model:null;(v?Yi:Co)(i,{shape:S},x,c)}function Yie(s,a){for(var i=0;i<a.length;i++)if(!isFinite(s[a[i]]))return!0;return!1}var o7e=["x","y","width","height"],s7e=["cx","cy","r","startAngle","endAngle"],Xie={cartesian2d:function(s){return!Yie(s,o7e)},polar:function(s){return!Yie(s,s7e)}},mL={cartesian2d:function(s,a,i){var l=s.getItemLayout(a),c=i?u7e(i,l):0,d=l.width>0?1:-1,v=l.height>0?1:-1;return{x:l.x+d*c/2,y:l.y+v*c/2,width:l.width-d*c,height:l.height-v*c}},polar:function(s,a,i){var l=s.getItemLayout(a);return{cx:l.cx,cy:l.cy,r0:l.r0,r:l.r,startAngle:l.startAngle,endAngle:l.endAngle,clockwise:l.clockwise}}};function l7e(s){return s.startAngle!=null&&s.endAngle!=null&&s.startAngle===s.endAngle}function Zie(s){return function(a){var i=a?"Arc":"Angle";return function(l){switch(l){case"start":case"insideStart":case"end":case"insideEnd":return l+i;default:return l}}}(s)}function Jie(s,a,i,l,c,d,v,m){var w=a.getItemVisual(i,"style");if(m){if(!d.get("roundCap")){var x=s.shape,E=C0(l.getModel("itemStyle"),x,!0);ie(x,E),s.setShape(x)}}else{var S=l.get(["itemStyle","borderRadius"])||0;s.setShape("r",S)}s.useStyle(w);var M=l.getShallow("cursor");M&&s.attr("cursor",M);var D=m?v?c.r>=c.r0?"endArc":"startArc":c.endAngle>=c.startAngle?"endAngle":"startAngle":v?c.height>=0?"bottom":"top":c.width>=0?"right":"left",k=eu(l);Fu(s,k,{labelFetcher:d,labelDataIndex:i,defaultText:Eb(d.getData(),i),inheritColor:w.fill,defaultOpacity:w.opacity,defaultOutsidePosition:D});var Q=s.getTextContent();if(m&&Q){var V=l.get(["label","position"]);s.textConfig.inside=V==="middle"?!0:null,r7e(s,V==="outside"?D:V,Zie(v),l.get(["label","rotate"]))}xee(Q,k,d.getRawValue(i),function(Z){return Mie(a,Z)});var $=l.getModel(["emphasis"]);as(s,$.get("focus"),$.get("blurScope"),$.get("disabled")),ku(s,l),l7e(c)&&(s.style.fill="none",s.style.stroke="none",ne(s.states,function(Z){Z.style&&(Z.style.fill=Z.style.stroke="none")}))}function u7e(s,a){var i=s.get(["itemStyle","borderColor"]);if(!i||i==="none")return 0;var l=s.get(["itemStyle","borderWidth"])||0,c=isNaN(a.width)?Number.MAX_VALUE:Math.abs(a.width),d=isNaN(a.height)?Number.MAX_VALUE:Math.abs(a.height);return Math.min(l,c,d)}var c7e=function(){function s(){}return s}(),eae=function(s){o(a,s);function a(i){var l=s.call(this,i)||this;return l.type="largeBar",l}return a.prototype.getDefaultShape=function(){return new c7e},a.prototype.buildPath=function(i,l){for(var c=l.points,d=this.baseDimIdx,v=1-this.baseDimIdx,m=[],w=[],S=this.barWidth,x=0;x<c.length;x+=3)w[d]=S,w[v]=c[x+2],m[d]=c[x+d],m[v]=c[x+v],i.rect(m[0],m[1],w[0],w[1])},a}(Yn);function tae(s,a,i,l){var c=s.getData(),d=c.getLayout("valueAxisHorizontal")?1:0,v=c.getLayout("largeDataIndices"),m=c.getLayout("size"),w=s.getModel("backgroundStyle"),S=c.getLayout("largeBackgroundPoints");if(S){var x=new eae({shape:{points:S},incremental:!!l,silent:!0,z2:0});x.baseDimIdx=d,x.largeDataIndices=v,x.barWidth=m,x.useStyle(w.getItemStyle()),a.add(x),i&&i.push(x)}var E=new eae({shape:{points:c.getLayout("largePoints")},incremental:!!l,ignoreCoarsePointer:!0,z2:1});E.baseDimIdx=d,E.largeDataIndices=v,E.barWidth=m,a.add(E),E.useStyle(c.getVisual("style")),E.style.stroke=null,bt(E).seriesIndex=s.seriesIndex,s.get("silent")||(E.on("mousedown",rae),E.on("mousemove",rae)),i&&i.push(E)}var rae=RI(function(s){var a=this,i=f7e(a,s.offsetX,s.offsetY);bt(a).dataIndex=i>=0?i:null},30,!1);function f7e(s,a,i){for(var l=s.baseDimIdx,c=1-l,d=s.shape.points,v=s.largeDataIndices,m=[],w=[],S=s.barWidth,x=0,E=d.length/3;x<E;x++){var M=x*3;if(w[l]=S,w[c]=d[M+2],m[l]=d[M+l],m[c]=d[M+c],w[c]<0&&(m[c]+=w[c],w[c]=-w[c]),a>=m[0]&&a<=m[0]+w[0]&&i>=m[1]&&i<=m[1]+w[1])return v[x]}return-1}function nae(s,a,i){if(x0(i,"cartesian2d")){var l=a,c=i.getArea();return{x:s?l.x:c.x,y:s?c.y:l.y,width:s?l.width:c.width,height:s?c.height:l.height}}else{var c=i.getArea(),d=a;return{cx:c.cx,cy:c.cy,r0:s?c.r0:d.r0,r:s?c.r:d.r,startAngle:s?d.startAngle:0,endAngle:s?d.endAngle:Math.PI*2}}}function h7e(s,a,i){var l=s.type==="polar"?hc:R;return new l({shape:nae(a,i,s),silent:!0,z2:0})}function d7e(s){s.registerChartView(i7e),s.registerSeriesModel(Jze),s.registerLayout(s.PRIORITY.VISUAL.LAYOUT,ue(wne,"bar")),s.registerLayout(s.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bne("bar")),s.registerProcessor(s.PRIORITY.PROCESSOR.STATISTIC,qie("bar")),s.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(a,i){var l=a.componentType||"series";i.eachComponent({mainType:l,query:a},function(c){a.sortInfo&&c.axis.setCategorySortInfo(a.sortInfo)})})}var iae=Math.PI*2,yL=Math.PI/180;function aae(s,a){return ol(s.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function oae(s,a){var i=aae(s,a),l=s.get("center"),c=s.get("radius");Qe(c)||(c=[0,c]);var d=vr(i.width,a.getWidth()),v=vr(i.height,a.getHeight()),m=Math.min(d,v),w=vr(c[0],m/2),S=vr(c[1],m/2),x,E,M=s.coordinateSystem;if(M){var D=M.dataToPoint(l);x=D[0]||0,E=D[1]||0}else Qe(l)||(l=[l,l]),x=vr(l[0],d)+i.x,E=vr(l[1],v)+i.y;return{cx:x,cy:E,r0:w,r:S}}function A7e(s,a,i){a.eachSeriesByType(s,function(l){var c=l.getData(),d=c.mapDimension("value"),v=aae(l,i),m=oae(l,i),w=m.cx,S=m.cy,x=m.r,E=m.r0,M=-l.get("startAngle")*yL,D=l.get("endAngle"),k=l.get("padAngle")*yL;D=D==="auto"?M-iae:-D*yL;var Q=l.get("minAngle")*yL,V=Q+k,$=0;c.each(d,function(zt){!isNaN(zt)&&$++});var Z=c.getSum(d),ee=Math.PI/(Z||$)*2,fe=l.get("clockwise"),ve=l.get("roseType"),ge=l.get("stillShowZeroSum"),Se=c.getDataExtent(d);Se[0]=0;var Ee=fe?1:-1,Ie=[M,D],Le=Ee*k/2;zw(Ie,!fe),M=Ie[0],D=Ie[1];var Fe=sae(l);Fe.startAngle=M,Fe.endAngle=D,Fe.clockwise=fe;var Je=Math.abs(D-M),rt=Je,at=0,dt=M;if(c.setLayout({viewRect:v,r:x}),c.each(d,function(zt,Ut){var Yt;if(isNaN(zt)){c.setItemLayout(Ut,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:fe,cx:w,cy:S,r0:E,r:ve?NaN:x});return}ve!=="area"?Yt=Z===0&&ge?ee:zt*ee:Yt=Je/$,Yt<V?(Yt=V,rt-=V):at+=zt;var ur=dt+Ee*Yt,wr=0,Or=0;k>Yt?(wr=dt+Ee*Yt/2,Or=wr):(wr=dt+Le,Or=ur-Le),c.setItemLayout(Ut,{angle:Yt,startAngle:wr,endAngle:Or,clockwise:fe,cx:w,cy:S,r0:E,r:ve?ln(zt,Se,[E,x]):x}),dt=ur}),rt<iae&&$)if(rt<=.001){var wt=Je/$;c.each(d,function(zt,Ut){if(!isNaN(zt)){var Yt=c.getItemLayout(Ut);Yt.angle=wt;var ur=0,wr=0;wt<k?(ur=M+Ee*(Ut+1/2)*wt,wr=ur):(ur=M+Ee*Ut*wt+Le,wr=M+Ee*(Ut+1)*wt-Le),Yt.startAngle=ur,Yt.endAngle=wr}})}else ee=rt/at,dt=M,c.each(d,function(zt,Ut){if(!isNaN(zt)){var Yt=c.getItemLayout(Ut),ur=Yt.angle===V?V:zt*ee,wr=0,Or=0;ur<k?(wr=dt+Ee*ur/2,Or=wr):(wr=dt+Le,Or=dt+Ee*ur-Le),Yt.startAngle=wr,Yt.endAngle=Or,dt+=Ee*ur}})})}var sae=Ri();function BC(s){return{seriesType:s,reset:function(a,i){var l=i.findComponents({mainType:"legend"});if(!(!l||!l.length)){var c=a.getData();c.filterSelf(function(d){for(var v=c.getName(d),m=0;m<l.length;m++)if(!l[m].isSelected(v))return!1;return!0})}}}}var v7e=Math.PI/180;function lae(s,a,i,l,c,d,v,m,w,S){if(s.length<2)return;function x(Q){for(var V=Q.rB,$=V*V,Z=0;Z<Q.list.length;Z++){var ee=Q.list[Z],fe=Math.abs(ee.label.y-i),ve=l+ee.len,ge=ve*ve,Se=Math.sqrt(Math.abs((1-fe*fe/$)*ge)),Ee=a+(Se+ee.len2)*c,Ie=Ee-ee.label.x,Le=ee.targetTextWidth-Ie*c;uae(ee,Le,!0),ee.label.x=Ee}}function E(Q){for(var V={list:[],maxY:0},$={list:[],maxY:0},Z=0;Z<Q.length;Z++)if(Q[Z].labelAlignTo==="none"){var ee=Q[Z],fe=ee.label.y>i?$:V,ve=Math.abs(ee.label.y-i);if(ve>=fe.maxY){var ge=ee.label.x-a-ee.len2*c,Se=l+ee.len,Ee=Math.abs(ge)<Se?Math.sqrt(ve*ve/(1-ge*ge/Se/Se)):Se;fe.rB=Ee,fe.maxY=ve}fe.list.push(ee)}x(V),x($)}for(var M=s.length,D=0;D<M;D++)if(s[D].position==="outer"&&s[D].labelAlignTo==="labelLine"){var k=s[D].label.x-S;s[D].linePoints[1][0]+=k,s[D].label.x=S}Xne(s,w,w+v)&&E(s)}function p7e(s,a,i,l,c,d,v,m){for(var w=[],S=[],x=Number.MAX_VALUE,E=-Number.MAX_VALUE,M=0;M<s.length;M++){var D=s[M].label;HU(s[M])||(D.x<a?(x=Math.min(x,D.x),w.push(s[M])):(E=Math.max(E,D.x),S.push(s[M])))}for(var M=0;M<s.length;M++){var k=s[M];if(!HU(k)&&k.linePoints){if(k.labelStyleWidth!=null)continue;var D=k.label,Q=k.linePoints,V=void 0;k.labelAlignTo==="edge"?D.x<a?V=Q[2][0]-k.labelDistance-v-k.edgeDistance:V=v+c-k.edgeDistance-Q[2][0]-k.labelDistance:k.labelAlignTo==="labelLine"?D.x<a?V=x-v-k.bleedMargin:V=v+c-E-k.bleedMargin:D.x<a?V=D.x-v-k.bleedMargin:V=v+c-D.x-k.bleedMargin,k.targetTextWidth=V,uae(k,V)}}lae(S,a,i,l,1,c,d,v,m,E),lae(w,a,i,l,-1,c,d,v,m,x);for(var M=0;M<s.length;M++){var k=s[M];if(!HU(k)&&k.linePoints){var D=k.label,Q=k.linePoints,$=k.labelAlignTo==="edge",Z=D.style.padding,ee=Z?Z[1]+Z[3]:0,fe=D.style.backgroundColor?0:ee,ve=k.rect.width+fe,ge=Q[1][0]-Q[2][0];$?D.x<a?Q[2][0]=v+k.edgeDistance+ve+k.labelDistance:Q[2][0]=v+c-k.edgeDistance-ve-k.labelDistance:(D.x<a?Q[2][0]=D.x+k.labelDistance:Q[2][0]=D.x-k.labelDistance,Q[1][0]=Q[2][0]+ge),Q[1][1]=Q[2][1]=D.y}}}function uae(s,a,i){if(i===void 0&&(i=!1),s.labelStyleWidth==null){var l=s.label,c=l.style,d=s.rect,v=c.backgroundColor,m=c.padding,w=m?m[1]+m[3]:0,S=c.overflow,x=d.width+(v?0:w);if(a<x||i){var E=d.height;if(S&&S.match("break")){l.setStyle("backgroundColor",null),l.setStyle("width",a-w);var M=l.getBoundingRect();l.setStyle("width",Math.ceil(M.width)),l.setStyle("backgroundColor",v)}else{var D=a-w,k=a<x?D:i?D>s.unconstrainedWidth?null:D:null;l.setStyle("width",k)}var Q=l.getBoundingRect();d.width=Q.width;var V=(l.style.margin||0)+2.1;d.height=Q.height+V,d.y-=(d.height-E)/2}}}function HU(s){return s.position==="center"}function g7e(s){var a=s.getData(),i=[],l,c,d=!1,v=(s.get("minShowLabelAngle")||0)*v7e,m=a.getLayout("viewRect"),w=a.getLayout("r"),S=m.width,x=m.x,E=m.y,M=m.height;function D(ge){ge.ignore=!0}function k(ge){if(!ge.ignore)return!0;for(var Se in ge.states)if(ge.states[Se].ignore===!1)return!0;return!1}a.each(function(ge){var Se=a.getItemGraphicEl(ge),Ee=Se.shape,Ie=Se.getTextContent(),Le=Se.getTextGuideLine(),Fe=a.getItemModel(ge),Je=Fe.getModel("label"),rt=Je.get("position")||Fe.get(["emphasis","label","position"]),at=Je.get("distanceToLabelLine"),dt=Je.get("alignTo"),wt=vr(Je.get("edgeDistance"),S),zt=Je.get("bleedMargin"),Ut=Fe.getModel("labelLine"),Yt=Ut.get("length");Yt=vr(Yt,S);var ur=Ut.get("length2");if(ur=vr(ur,S),Math.abs(Ee.endAngle-Ee.startAngle)<v){ne(Ie.states,D),Ie.ignore=!0,Le&&(ne(Le.states,D),Le.ignore=!0);return}if(k(Ie)){var wr=(Ee.startAngle+Ee.endAngle)/2,Or=Math.cos(wr),vn=Math.sin(wr),wn,Un,Ha,Cs;l=Ee.cx,c=Ee.cy;var ei=rt==="inside"||rt==="inner";if(rt==="center")wn=Ee.cx,Un=Ee.cy,Cs="center";else{var Cn=(ei?(Ee.r+Ee.r0)/2*Or:Ee.r*Or)+l,di=(ei?(Ee.r+Ee.r0)/2*vn:Ee.r*vn)+c;if(wn=Cn+Or*3,Un=di+vn*3,!ei){var tn=Cn+Or*(Yt+w-Ee.r),Hn=di+vn*(Yt+w-Ee.r),vo=tn+(Or<0?-1:1)*ur,Ca=Hn;dt==="edge"?wn=Or<0?x+wt:x+S-wt:wn=vo+(Or<0?-at:at),Un=Ca,Ha=[[Cn,di],[tn,Hn],[vo,Ca]]}Cs=ei?"center":dt==="edge"?Or>0?"right":"left":Or>0?"left":"right"}var Za=Math.PI,Go=0,iu=Je.get("rotate");if(Ge(iu))Go=iu*(Za/180);else if(rt==="center")Go=0;else if(iu==="radial"||iu===!0){var mh=Or<0?-wr+Za:-wr;Go=mh}else if(iu==="tangential"&&rt!=="outside"&&rt!=="outer"){var Of=Math.atan2(Or,vn);Of<0&&(Of=Za*2+Of);var U0=vn>0;U0&&(Of=Za+Of),Go=Of-Za}if(d=!!Go,Ie.x=wn,Ie.y=Un,Ie.rotation=Go,Ie.setStyle({verticalAlign:"middle"}),ei){Ie.setStyle({align:Cs});var BH=Ie.states.select;BH&&(BH.x+=Ie.x,BH.y+=Ie.y)}else{var Cm=Ie.getBoundingRect().clone();Cm.applyTransform(Ie.getComputedTransform());var mfe=(Ie.style.margin||0)+2.1;Cm.y-=mfe/2,Cm.height+=mfe,i.push({label:Ie,labelLine:Le,position:rt,len:Yt,len2:ur,minTurnAngle:Ut.get("minTurnAngle"),maxSurfaceAngle:Ut.get("maxSurfaceAngle"),surfaceNormal:new xn(Or,vn),linePoints:Ha,textAlign:Cs,labelDistance:at,labelAlignTo:dt,edgeDistance:wt,bleedMargin:zt,rect:Cm,unconstrainedWidth:Cm.width,labelStyleWidth:Ie.style.width})}Se.setTextConfig({inside:ei})}}),!d&&s.get("avoidLabelOverlap")&&p7e(i,l,c,w,S,M,x,E);for(var Q=0;Q<i.length;Q++){var V=i[Q],$=V.label,Z=V.labelLine,ee=isNaN($.x)||isNaN($.y);if($){$.setStyle({align:V.textAlign}),ee&&(ne($.states,D),$.ignore=!0);var fe=$.states.select;fe&&(fe.x+=$.x,fe.y+=$.y)}if(Z){var ve=V.linePoints;ee||!ve?(ne(Z.states,D),Z.ignore=!0):($ne(ve,V.minTurnAngle),HVe(ve,V.surfaceNormal,V.maxSurfaceAngle),Z.setShape({points:ve}),$.__hostTarget.textGuideLineConfig={anchor:new xn(ve[0][0],ve[0][1])})}}}var m7e=function(s){o(a,s);function a(i,l,c){var d=s.call(this)||this;d.z2=2;var v=new be;return d.setTextContent(v),d.updateData(i,l,c,!0),d}return a.prototype.updateData=function(i,l,c,d){var v=this,m=i.hostModel,w=i.getItemModel(l),S=w.getModel("emphasis"),x=i.getItemLayout(l),E=ie(C0(w.getModel("itemStyle"),x,!0),x);if(isNaN(E.startAngle)){v.setShape(E);return}if(d){v.setShape(E);var M=m.getShallow("animationType");m.ecModel.ssr?(Co(v,{scaleX:0,scaleY:0},m,{dataIndex:l,isFrom:!0}),v.originX=E.cx,v.originY=E.cy):M==="scale"?(v.shape.r=x.r0,Co(v,{shape:{r:x.r}},m,l)):c!=null?(v.setShape({startAngle:c,endAngle:c}),Co(v,{shape:{startAngle:x.startAngle,endAngle:x.endAngle}},m,l)):(v.shape.endAngle=x.startAngle,Yi(v,{shape:{endAngle:x.endAngle}},m,l))}else dA(v),Yi(v,{shape:E},m,l);v.useStyle(i.getItemVisual(l,"style")),ku(v,w);var D=(x.startAngle+x.endAngle)/2,k=m.get("selectedOffset"),Q=Math.cos(D)*k,V=Math.sin(D)*k,$=w.getShallow("cursor");$&&v.attr("cursor",$),this._updateLabel(m,i,l),v.ensureState("emphasis").shape=ie({r:x.r+(S.get("scale")&&S.get("scaleSize")||0)},C0(S.getModel("itemStyle"),x)),ie(v.ensureState("select"),{x:Q,y:V,shape:C0(w.getModel(["select","itemStyle"]),x)}),ie(v.ensureState("blur"),{shape:C0(w.getModel(["blur","itemStyle"]),x)});var Z=v.getTextGuideLine(),ee=v.getTextContent();Z&&ie(Z.ensureState("select"),{x:Q,y:V}),ie(ee.ensureState("select"),{x:Q,y:V}),as(this,S.get("focus"),S.get("blurScope"),S.get("disabled"))},a.prototype._updateLabel=function(i,l,c){var d=this,v=l.getItemModel(c),m=v.getModel("labelLine"),w=l.getItemVisual(c,"style"),S=w&&w.fill,x=w&&w.opacity;Fu(d,eu(v),{labelFetcher:l.hostModel,labelDataIndex:c,inheritColor:S,defaultOpacity:x,defaultText:i.getFormattedLabel(c,"normal")||l.getName(c)});var E=d.getTextContent();d.setTextConfig({position:null,rotation:null}),E.attr({z2:10});var M=i.get(["label","position"]);if(M!=="outside"&&M!=="outer")d.removeTextGuideLine();else{var D=this.getTextGuideLine();D||(D=new Ac,this.setTextGuideLine(D)),mU(this,yU(v),{stroke:S,opacity:qt(m.get(["lineStyle","opacity"]),x,1)})}},a}(hc),y7e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.ignoreLabelLineUpdate=!0,i}return a.prototype.render=function(i,l,c,d){var v=i.getData(),m=this._data,w=this.group,S;if(!m&&v.count()>0){for(var x=v.getItemLayout(0),E=1;isNaN(x&&x.startAngle)&&E<v.count();++E)x=v.getItemLayout(E);x&&(S=x.startAngle)}if(this._emptyCircleSector&&w.remove(this._emptyCircleSector),v.count()===0&&i.get("showEmptyCircle")){var M=sae(i),D=new hc({shape:ie(oae(i,c),M)});D.useStyle(i.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=D,w.add(D)}v.diff(m).add(function(k){var Q=new m7e(v,k,S);v.setItemGraphicEl(k,Q),w.add(Q)}).update(function(k,Q){var V=m.getItemGraphicEl(Q);V.updateData(v,k,S),V.off("click"),w.add(V),v.setItemGraphicEl(k,V)}).remove(function(k){var Q=m.getItemGraphicEl(k);zx(Q,i,k)}).execute(),g7e(i),i.get("animationTypeUpdate")!=="expansion"&&(this._data=v)},a.prototype.dispose=function(){},a.prototype.containPoint=function(i,l){var c=l.getData(),d=c.getItemLayout(0);if(d){var v=i[0]-d.cx,m=i[1]-d.cy,w=Math.sqrt(v*v+m*m);return w<=d.r&&w>=d.r0}},a.type="pie",a}(xa);function Bb(s,a,i){a=Qe(a)&&{coordDimensions:a}||ie({encodeDefine:s.getEncode()},a);var l=s.getSource(),c=_b(l,a).dimensions,d=new yc(c,s);return d.initData(l,i),d}var IC=function(){function s(a,i){this._getDataWithEncodedVisual=a,this._getRawData=i}return s.prototype.getAllNames=function(){var a=this._getRawData();return a.mapArray(a.getName)},s.prototype.containName=function(a){var i=this._getRawData();return i.indexOfName(a)>=0},s.prototype.indexOfName=function(a){var i=this._getDataWithEncodedVisual();return i.indexOfName(a)},s.prototype.getItemVisual=function(a,i){var l=this._getDataWithEncodedVisual();return l.getItemVisual(a,i)},s}(),w7e=Ri(),b7e=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.init=function(i){s.prototype.init.apply(this,arguments),this.legendVisualProvider=new IC(Ue(this.getData,this),Ue(this.getRawData,this)),this._defaultLabelLine(i)},a.prototype.mergeOption=function(){s.prototype.mergeOption.apply(this,arguments)},a.prototype.getInitialData=function(){return Bb(this,{coordDimensions:["value"],encodeDefaulter:ue(sN,this)})},a.prototype.getDataParams=function(i){var l=this.getData(),c=w7e(l),d=c.seats;if(!d){var v=[];l.each(l.mapDimension("value"),function(w){v.push(w)}),d=c.seats=uh(v,l.hostModel.get("percentPrecision"))}var m=s.prototype.getDataParams.call(this,i);return m.percent=d[i]||0,m.$vars.push("percent"),m},a.prototype._defaultLabelLine=function(i){zh(i,"labelLine",["show"]);var l=i.labelLine,c=i.emphasis.labelLine;l.show=l.show&&i.label.show,c.show=c.show&&i.emphasis.label.show},a.type="series.pie",a.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,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"},a}(Ua);function _7e(s){return{seriesType:s,reset:function(a,i){var l=a.getData();l.filterSelf(function(c){var d=l.mapDimension("value"),v=l.get(d,c);return!(Ge(v)&&!isNaN(v)&&v<0)})}}}function S7e(s){s.registerChartView(y7e),s.registerSeriesModel(b7e),hre("pie",s.registerAction),s.registerLayout(ue(A7e,"pie")),s.registerProcessor(BC("pie")),s.registerProcessor(_7e("pie"))}var x7e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.hasSymbolVisual=!0,i}return a.prototype.getInitialData=function(i,l){return Sv(null,this,{useEncodeDefaulter:!0})},a.prototype.getProgressive=function(){var i=this.option.progressive;return i??(this.option.large?5e3:this.get("progressive"))},a.prototype.getProgressiveThreshold=function(){var i=this.option.progressiveThreshold;return i??(this.option.large?1e4:this.get("progressiveThreshold"))},a.prototype.brushSelector=function(i,l,c){return c.point(l.getItemLayout(i))},a.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},a.type="series.scatter",a.dependencies=["grid","polar","geo","singleAxis","calendar"],a.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"}},a}(Ua),cae=4,C7e=function(){function s(){}return s}(),T7e=function(s){o(a,s);function a(i){var l=s.call(this,i)||this;return l._off=0,l.hoverDataIdx=-1,l}return a.prototype.getDefaultShape=function(){return new C7e},a.prototype.reset=function(){this.notClear=!1,this._off=0},a.prototype.buildPath=function(i,l){var c=l.points,d=l.size,v=this.symbolProxy,m=v.shape,w=i.getContext?i.getContext():i,S=w&&d[0]<cae,x=this.softClipShape,E;if(S){this._ctx=w;return}for(this._ctx=null,E=this._off;E<c.length;){var M=c[E++],D=c[E++];isNaN(M)||isNaN(D)||x&&!x.contain(M,D)||(m.x=M-d[0]/2,m.y=D-d[1]/2,m.width=d[0],m.height=d[1],v.buildPath(i,m,!0))}this.incremental&&(this._off=E,this.notClear=!0)},a.prototype.afterBrush=function(){var i=this.shape,l=i.points,c=i.size,d=this._ctx,v=this.softClipShape,m;if(d){for(m=this._off;m<l.length;){var w=l[m++],S=l[m++];isNaN(w)||isNaN(S)||v&&!v.contain(w,S)||d.fillRect(w-c[0]/2,S-c[1]/2,c[0],c[1])}this.incremental&&(this._off=m,this.notClear=!0)}},a.prototype.findDataIndex=function(i,l){for(var c=this.shape,d=c.points,v=c.size,m=Math.max(v[0],4),w=Math.max(v[1],4),S=d.length/2-1;S>=0;S--){var x=S*2,E=d[x]-m/2,M=d[x+1]-w/2;if(i>=E&&l>=M&&i<=E+m&&l<=M+w)return S}return-1},a.prototype.contain=function(i,l){var c=this.transformCoordToLocal(i,l),d=this.getBoundingRect();if(i=c[0],l=c[1],d.contain(i,l)){var v=this.hoverDataIdx=this.findDataIndex(i,l);return v>=0}return this.hoverDataIdx=-1,!1},a.prototype.getBoundingRect=function(){var i=this._rect;if(!i){for(var l=this.shape,c=l.points,d=l.size,v=d[0],m=d[1],w=1/0,S=1/0,x=-1/0,E=-1/0,M=0;M<c.length;){var D=c[M++],k=c[M++];w=Math.min(D,w),x=Math.max(D,x),S=Math.min(k,S),E=Math.max(k,E)}i=this._rect=new Bn(w-v/2,S-m/2,x-w+v,E-S+m)}return i},a}(Yn),E7e=function(){function s(){this.group=new Lr}return s.prototype.updateData=function(a,i){this._clear();var l=this._create();l.setShape({points:a.getLayout("points")}),this._setCommon(l,a,i)},s.prototype.updateLayout=function(a){var i=a.getLayout("points");this.group.eachChild(function(l){if(l.startIndex!=null){var c=(l.endIndex-l.startIndex)*2,d=l.startIndex*4*2;i=new Float32Array(i.buffer,d,c)}l.setShape("points",i),l.reset()})},s.prototype.incrementalPrepareUpdate=function(a){this._clear()},s.prototype.incrementalUpdate=function(a,i,l){var c=this._newAdded[0],d=i.getLayout("points"),v=c&&c.shape.points;if(v&&v.length<2e4){var m=v.length,w=new Float32Array(m+d.length);w.set(v),w.set(d,m),c.endIndex=a.end,c.setShape({points:w})}else{this._newAdded=[];var S=this._create();S.startIndex=a.start,S.endIndex=a.end,S.incremental=!0,S.setShape({points:d}),this._setCommon(S,i,l)}},s.prototype.eachRendered=function(a){this._newAdded[0]&&a(this._newAdded[0])},s.prototype._create=function(){var a=new T7e({cursor:"default"});return a.ignoreCoarsePointer=!0,this.group.add(a),this._newAdded.push(a),a},s.prototype._setCommon=function(a,i,l){var c=i.hostModel;l=l||{};var d=i.getVisual("symbolSize");a.setShape("size",d instanceof Array?d:[d,d]),a.softClipShape=l.clipShape||null,a.symbolProxy=Os(i.getVisual("symbol"),0,0,0,0),a.setColor=a.symbolProxy.setColor;var v=a.shape.size[0]<cae;a.useStyle(c.getModel("itemStyle").getItemStyle(v?["color","shadowBlur","shadowColor"]:["color"]));var m=i.getVisual("style"),w=m&&m.fill;w&&a.setColor(w);var S=bt(a);S.seriesIndex=c.seriesIndex,a.on("mousemove",function(x){S.dataIndex=null;var E=a.hoverDataIdx;E>=0&&(S.dataIndex=E+(a.startIndex||0))})},s.prototype.remove=function(){this._clear()},s.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},s}(),B7e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c){var d=i.getData(),v=this._updateSymbolDraw(d,i);v.updateData(d,{clipShape:this._getClipShape(i)}),this._finished=!0},a.prototype.incrementalPrepareRender=function(i,l,c){var d=i.getData(),v=this._updateSymbolDraw(d,i);v.incrementalPrepareUpdate(d),this._finished=!1},a.prototype.incrementalRender=function(i,l,c){this._symbolDraw.incrementalUpdate(i,l.getData(),{clipShape:this._getClipShape(l)}),this._finished=i.end===l.getData().count()},a.prototype.updateTransform=function(i,l,c){var d=i.getData();if(this.group.dirty(),!this._finished||d.count()>1e4)return{update:!0};var v=TC("").reset(i,l,c);v.progress&&v.progress({start:0,end:d.count(),count:d.count()},d),this._symbolDraw.updateLayout(d)},a.prototype.eachRendered=function(i){this._symbolDraw&&this._symbolDraw.eachRendered(i)},a.prototype._getClipShape=function(i){if(i.get("clip",!0)){var l=i.coordinateSystem;return l&&l.getArea&&l.getArea(.1)}},a.prototype._updateSymbolDraw=function(i,l){var c=this._symbolDraw,d=l.pipelineContext,v=d.large;return(!c||v!==this._isLargeDraw)&&(c&&c.remove(),c=this._symbolDraw=v?new E7e:new xC,this._isLargeDraw=v,this.group.removeAll()),this.group.add(c.group),c},a.prototype.remove=function(i,l){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},a.prototype.dispose=function(){},a.type="scatter",a}(xa),I7e=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.type="grid",a.dependencies=["xAxis","yAxis"],a.layoutMode="box",a.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"},a}(li),QU=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ps).models[0]},a.type="cartesian2dAxis",a}(li);_e(QU,Cb);var fae={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,showMinLine:!0,showMaxLine:!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)"]}}},L7e=le({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},fae),VU=le({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}}},fae),M7e=le({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},VU),D7e=he({logBase:10},VU),hae={category:L7e,value:VU,time:M7e,log:D7e},R7e={value:1,category:1,time:1,log:1};function Ib(s,a,i,l){ne(R7e,function(c,d){var v=le(le({},hae[d],!0),l,!0),m=function(w){o(S,w);function S(){var x=w!==null&&w.apply(this,arguments)||this;return x.type=a+"Axis."+d,x}return S.prototype.mergeDefaultAndTheme=function(x,E){var M=Xx(this),D=M?lb(x):{},k=E.getTheme();le(x,k.get(d+"Axis")),le(x,this.getDefaultOption()),x.type=dae(x),M&&lm(x,D,M)},S.prototype.optionUpdated=function(){var x=this.option;x.type==="category"&&(this.__ordinalMeta=aU.createByAxisModel(this))},S.prototype.getCategories=function(x){var E=this.option;if(E.type==="category")return x?E.data:this.__ordinalMeta.categories},S.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},S.type=a+"Axis."+d,S.defaultOption=v,S}(i);s.registerComponentModel(m)}),s.registerSubTypeDefaulter(a+"Axis",dae)}function dae(s){return s.type||(s.data?"category":"value")}var P7e=function(){function s(a){this.type="cartesian",this._dimList=[],this._axes={},this.name=a||""}return s.prototype.getAxis=function(a){return this._axes[a]},s.prototype.getAxes=function(){return xe(this._dimList,function(a){return this._axes[a]},this)},s.prototype.getAxesByScale=function(a){return a=a.toLowerCase(),ze(this.getAxes(),function(i){return i.scale.type===a})},s.prototype.addAxis=function(a){var i=a.dim;this._axes[i]=a,this._dimList.push(i)},s}(),zU=["x","y"];function Aae(s){return s.type==="interval"||s.type==="time"}var O7e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type="cartesian2d",i.dimensions=zU,i}return a.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var i=this.getAxis("x").scale,l=this.getAxis("y").scale;if(!(!Aae(i)||!Aae(l))){var c=i.getExtent(),d=l.getExtent(),v=this.dataToPoint([c[0],d[0]]),m=this.dataToPoint([c[1],d[1]]),w=c[1]-c[0],S=d[1]-d[0];if(!(!w||!S)){var x=(m[0]-v[0])/w,E=(m[1]-v[1])/S,M=v[0]-c[0]*x,D=v[1]-d[0]*E,k=this._transform=[x,0,0,E,M,D];this._invTransform=zl([],k)}}},a.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},a.prototype.containPoint=function(i){var l=this.getAxis("x"),c=this.getAxis("y");return l.contain(l.toLocalCoord(i[0]))&&c.contain(c.toLocalCoord(i[1]))},a.prototype.containData=function(i){return this.getAxis("x").containData(i[0])&&this.getAxis("y").containData(i[1])},a.prototype.containZone=function(i,l){var c=this.dataToPoint(i),d=this.dataToPoint(l),v=this.getArea(),m=new Bn(c[0],c[1],d[0]-c[0],d[1]-c[1]);return v.intersect(m)},a.prototype.dataToPoint=function(i,l,c){c=c||[];var d=i[0],v=i[1];if(this._transform&&d!=null&&isFinite(d)&&v!=null&&isFinite(v))return Tn(c,i,this._transform);var m=this.getAxis("x"),w=this.getAxis("y");return c[0]=m.toGlobalCoord(m.dataToCoord(d,l)),c[1]=w.toGlobalCoord(w.dataToCoord(v,l)),c},a.prototype.clampData=function(i,l){var c=this.getAxis("x").scale,d=this.getAxis("y").scale,v=c.getExtent(),m=d.getExtent(),w=c.parse(i[0]),S=d.parse(i[1]);return l=l||[],l[0]=Math.min(Math.max(Math.min(v[0],v[1]),w),Math.max(v[0],v[1])),l[1]=Math.min(Math.max(Math.min(m[0],m[1]),S),Math.max(m[0],m[1])),l},a.prototype.pointToData=function(i,l){var c=[];if(this._invTransform)return Tn(c,i,this._invTransform);var d=this.getAxis("x"),v=this.getAxis("y");return c[0]=d.coordToData(d.toLocalCoord(i[0]),l),c[1]=v.coordToData(v.toLocalCoord(i[1]),l),c},a.prototype.getOtherAxis=function(i){return this.getAxis(i.dim==="x"?"y":"x")},a.prototype.getArea=function(i){i=i||0;var l=this.getAxis("x").getGlobalExtent(),c=this.getAxis("y").getGlobalExtent(),d=Math.min(l[0],l[1])-i,v=Math.min(c[0],c[1])-i,m=Math.max(l[0],l[1])-d+i,w=Math.max(c[0],c[1])-v+i;return new Bn(d,v,m,w)},a}(P7e),k7e=function(s){o(a,s);function a(i,l,c,d,v){var m=s.call(this,i,l,c)||this;return m.index=0,m.type=d||"value",m.position=v||"bottom",m}return a.prototype.isHorizontal=function(){var i=this.position;return i==="top"||i==="bottom"},a.prototype.getGlobalExtent=function(i){var l=this.getExtent();return l[0]=this.toGlobalCoord(l[0]),l[1]=this.toGlobalCoord(l[1]),i&&l[0]>l[1]&&l.reverse(),l},a.prototype.pointToData=function(i,l){return this.coordToData(this.toLocalCoord(i[this.dim==="x"?0:1]),l)},a.prototype.setCategorySortInfo=function(i){if(this.type!=="category")return!1;this.model.option.categorySortInfo=i,this.scale.setSortInfo(i)},a}(od);function GU(s,a,i){i=i||{};var l=s.coordinateSystem,c=a.axis,d={},v=c.getAxesOnZeroOf()[0],m=c.position,w=v?"onZero":m,S=c.dim,x=l.getRect(),E=[x.x,x.x+x.width,x.y,x.y+x.height],M={left:0,right:1,top:0,bottom:1,onZero:2},D=a.get("offset")||0,k=S==="x"?[E[2]-D,E[3]+D]:[E[0]-D,E[1]+D];if(v){var Q=v.toGlobalCoord(v.dataToCoord(0));k[M.onZero]=Math.max(Math.min(Q,k[1]),k[0])}d.position=[S==="y"?k[M[w]]:E[0],S==="x"?k[M[w]]:E[3]],d.rotation=Math.PI/2*(S==="x"?0:1);var V={top:-1,bottom:1,left:-1,right:1};d.labelDirection=d.tickDirection=d.nameDirection=V[m],d.labelOffset=v?k[M[m]]-k[M.onZero]:0,a.get(["axisTick","inside"])&&(d.tickDirection=-d.tickDirection),Bt(i.labelInside,a.get(["axisLabel","inside"]))&&(d.labelDirection=-d.labelDirection);var $=a.get(["axisLabel","rotate"]);return d.labelRotate=w==="top"?-$:$,d.z2=1,d}function vae(s){return s.get("coordinateSystem")==="cartesian2d"}function pae(s){var a={xAxisModel:null,yAxisModel:null};return ne(a,function(i,l){var c=l.replace(/Model$/,""),d=s.getReferringComponents(c,ps).models[0];if(!d)throw new Error(c+' "'+qt(s.get(c+"Index"),s.get(c+"Id"),0)+'" not found');a[l]=d}),a}var jU=Math.log;function gae(s,a,i){var l=Vp.prototype,c=l.getTicks.call(i),d=l.getTicks.call(i,!0),v=c.length-1,m=l.getInterval.call(i),w=Bne(s,a),S=w.extent,x=w.fixMin,E=w.fixMax;if(s.type==="log"){var M=jU(s.base);S=[jU(S[0])/M,jU(S[1])/M]}s.setExtent(S[0],S[1]),s.calcNiceExtent({splitNumber:v,fixMin:x,fixMax:E});var D=l.getExtent.call(s);x&&(S[0]=D[0]),E&&(S[1]=D[1]);var k=l.getInterval.call(s),Q=S[0],V=S[1];if(x&&E)k=(V-Q)/v;else if(x)for(V=S[0]+k*v;V<S[1]&&isFinite(V)&&isFinite(S[1]);)k=sU(k),V=S[0]+k*v;else if(E)for(Q=S[1]-k*v;Q>S[0]&&isFinite(Q)&&isFinite(S[0]);)k=sU(k),Q=S[1]-k*v;else{var $=s.getTicks().length-1;$>v&&(k=sU(k));var Z=k*v;V=Math.ceil(S[1]/k)*k,Q=pi(V-Z),Q<0&&S[0]>=0?(Q=0,V=pi(Z)):V>0&&S[1]<=0&&(V=0,Q=-pi(Z))}var ee=(c[0].value-d[0].value)/m,fe=(c[v].value-d[v].value)/m;l.setExtent.call(s,Q+k*ee,V+k*fe),l.setInterval.call(s,k),(ee||fe)&&l.setNiceExtent.call(s,Q+k,V-k);{var ve=l.getTicks.call(s);ve[1]&&(!RQe(k)||Sa(ve[1].value)>Sa(k))&&Ya("The ticks may be not readable when set min: "+a.get("min")+", max: "+a.get("max")+" and alignTicks: true")}}var F7e=function(){function s(a,i,l){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=zU,this._initCartesian(a,i,l),this.model=a}return s.prototype.getRect=function(){return this._rect},s.prototype.update=function(a,i){var l=this._axesMap;this._updateScale(a,this.model);function c(v){var m,w=Ne(v),S=w.length;if(S){for(var x=[],E=S-1;E>=0;E--){var M=+w[E],D=v[M],k=D.model,Q=D.scale;oU(Q)&&k.get("alignTicks")&&k.get("interval")==null?x.push(D):(p0(Q,k),oU(Q)&&(m=D))}x.length&&(m||(m=x.pop(),p0(m.scale,m.model)),ne(x,function(V){gae(V.scale,V.model,m.scale)}))}}c(l.x),c(l.y);var d={};ne(l.x,function(v){mae(l,"y",v,d)}),ne(l.y,function(v){mae(l,"x",v,d)}),this.resize(this.model,i)},s.prototype.resize=function(a,i,l){var c=a.getBoxLayoutParams(),d=!l&&a.get("containLabel"),v=ol(c,{width:i.getWidth(),height:i.getHeight()});this._rect=v;var m=this._axesList;w(),d&&(ne(m,function(S){if(!S.model.get(["axisLabel","inside"])){var x=nVe(S);if(x){var E=S.isHorizontal()?"height":"width",M=S.model.get(["axisLabel","margin"]);v[E]-=x[E]+M,S.position==="top"?v.y+=x.height+M:S.position==="left"&&(v.x+=x.width+M)}}}),w()),ne(this._coordsList,function(S){S.calcAffineTransform()});function w(){ne(m,function(S){var x=S.isHorizontal(),E=x?[0,v.width]:[0,v.height],M=S.inverse?1:0;S.setExtent(E[M],E[1-M]),N7e(S,x?v.x:v.y)})}},s.prototype.getAxis=function(a,i){var l=this._axesMap[a];if(l!=null)return l[i||0]},s.prototype.getAxes=function(){return this._axesList.slice()},s.prototype.getCartesian=function(a,i){if(a!=null&&i!=null){var l="x"+a+"y"+i;return this._coordsMap[l]}Pe(a)&&(i=a.yAxisIndex,a=a.xAxisIndex);for(var c=0,d=this._coordsList;c<d.length;c++)if(d[c].getAxis("x").index===a||d[c].getAxis("y").index===i)return d[c]},s.prototype.getCartesians=function(){return this._coordsList.slice()},s.prototype.convertToPixel=function(a,i,l){var c=this._findConvertTarget(i);return c.cartesian?c.cartesian.dataToPoint(l):c.axis?c.axis.toGlobalCoord(c.axis.dataToCoord(l)):null},s.prototype.convertFromPixel=function(a,i,l){var c=this._findConvertTarget(i);return c.cartesian?c.cartesian.pointToData(l):c.axis?c.axis.coordToData(c.axis.toLocalCoord(l)):null},s.prototype._findConvertTarget=function(a){var i=a.seriesModel,l=a.xAxisModel||i&&i.getReferringComponents("xAxis",ps).models[0],c=a.yAxisModel||i&&i.getReferringComponents("yAxis",ps).models[0],d=a.gridModel,v=this._coordsList,m,w;if(i)m=i.coordinateSystem,oe(v,m)<0&&(m=null);else if(l&&c)m=this.getCartesian(l.componentIndex,c.componentIndex);else if(l)w=this.getAxis("x",l.componentIndex);else if(c)w=this.getAxis("y",c.componentIndex);else if(d){var S=d.coordinateSystem;S===this&&(m=this._coordsList[0])}return{cartesian:m,axis:w}},s.prototype.containPoint=function(a){var i=this._coordsList[0];if(i)return i.containPoint(a)},s.prototype._initCartesian=function(a,i,l){var c=this,d=this,v={left:!1,right:!1,top:!1,bottom:!1},m={x:{},y:{}},w={x:0,y:0};if(i.eachComponent("xAxis",S("x"),this),i.eachComponent("yAxis",S("y"),this),!w.x||!w.y){this._axesMap={},this._axesList=[];return}this._axesMap=m,ne(m.x,function(x,E){ne(m.y,function(M,D){var k="x"+E+"y"+D,Q=new O7e(k);Q.master=c,Q.model=a,c._coordsMap[k]=Q,c._coordsList.push(Q),Q.addAxis(x),Q.addAxis(M)})});function S(x){return function(E,M){if(qU(E,a)){var D=E.get("position");x==="x"?D!=="top"&&D!=="bottom"&&(D=v.bottom?"top":"bottom"):D!=="left"&&D!=="right"&&(D=v.left?"right":"left"),v[D]=!0;var k=new k7e(x,gC(E),[0,0],E.get("type"),D),Q=k.type==="category";k.onBand=Q&&E.get("boundaryGap"),k.inverse=E.get("inverse"),E.axis=k,k.model=E,k.grid=d,k.index=M,d._axesList.push(k),m[x][M]=k,w[x]++}}}},s.prototype._updateScale=function(a,i){ne(this._axesList,function(c){if(c.scale.setExtent(1/0,-1/0),c.type==="category"){var d=c.model.get("categorySortInfo");c.scale.setSortInfo(d)}}),a.eachSeries(function(c){if(vae(c)){var d=pae(c),v=d.xAxisModel,m=d.yAxisModel;if(!qU(v,i)||!qU(m,i))return;var w=this.getCartesian(v.componentIndex,m.componentIndex),S=c.getData(),x=w.getAxis("x"),E=w.getAxis("y");l(S,x),l(S,E)}},this);function l(c,d){ne(sL(c,d.dim),function(v){d.scale.unionExtentFromData(c,v)})}},s.prototype.getTooltipAxes=function(a){var i=[],l=[];return ne(this.getCartesians(),function(c){var d=a!=null&&a!=="auto"?c.getAxis(a):c.getBaseAxis(),v=c.getOtherAxis(d);oe(i,d)<0&&i.push(d),oe(l,v)<0&&l.push(v)}),{baseAxes:i,otherAxes:l}},s.create=function(a,i){var l=[];return a.eachComponent("grid",function(c,d){var v=new s(c,a,i);v.name="grid_"+d,v.resize(c,i,!0),c.coordinateSystem=v,l.push(v)}),a.eachSeries(function(c){if(vae(c)){var d=pae(c),v=d.xAxisModel,m=d.yAxisModel,w=v.getCoordSysModel();{if(!w)throw new Error('Grid "'+qt(v.get("gridIndex"),v.get("gridId"),0)+'" not found');if(v.getCoordSysModel()!==m.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var S=w.coordinateSystem;c.coordinateSystem=S.getCartesian(v.componentIndex,m.componentIndex)}}),l},s.dimensions=zU,s}();function qU(s,a){return s.getCoordSysModel()===a}function mae(s,a,i,l){i.getAxesOnZeroOf=function(){return d?[d]:[]};var c=s[a],d,v=i.model,m=v.get(["axisLine","onZero"]),w=v.get(["axisLine","onZeroAxisIndex"]);if(!m)return;if(w!=null)yae(c[w])&&(d=c[w]);else for(var S in c)if(c.hasOwnProperty(S)&&yae(c[S])&&!l[x(c[S])]){d=c[S];break}d&&(l[x(d)]=!0);function x(E){return E.dim+"_"+E.index}}function yae(s){return s&&s.type!=="category"&&s.type!=="time"&&rVe(s)}function N7e(s,a){var i=s.getExtent(),l=i[0]+i[1];s.toGlobalCoord=s.dim==="x"?function(c){return c+a}:function(c){return l-c+a},s.toLocalCoord=s.dim==="x"?function(c){return c-a}:function(c){return l-c+a}}var gm=Math.PI,tf=function(){function s(a,i){this.group=new Lr,this.opt=i,this.axisModel=a,he(i,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var l=new Lr({x:i.position[0],y:i.position[1],rotation:i.rotation});l.updateTransform(),this._transformGroup=l}return s.prototype.hasBuilder=function(a){return!!wae[a]},s.prototype.add=function(a){wae[a](this.opt,this.axisModel,this.group,this._transformGroup)},s.prototype.getGroup=function(){return this.group},s.innerTextLayout=function(a,i,l){var c=$c(i-a),d,v;return If(c)?(v=l>0?"top":"bottom",d="center"):If(c-gm)?(v=l>0?"bottom":"top",d="center"):(v="middle",c>0&&c<gm?d=l>0?"right":"left":d=l>0?"left":"right"),{rotation:c,textAlign:d,textVerticalAlign:v}},s.makeAxisEventDataBase=function(a){var i={componentType:a.mainType,componentIndex:a.componentIndex};return i[a.mainType+"Index"]=a.componentIndex,i},s.isLabelSilent=function(a){var i=a.get("tooltip");return a.get("silent")||!(a.get("triggerEvent")||i&&i.show)},s}(),wae={axisLine:function(s,a,i,l){var c=a.get(["axisLine","show"]);if(c==="auto"&&s.handleAutoShown&&(c=s.handleAutoShown("axisLine")),!!c){var d=a.axis.getExtent(),v=l.transform,m=[d[0],0],w=[d[1],0],S=m[0]>w[0];v&&(Tn(m,m,v),Tn(w,w,v));var x=ie({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),E=new Ll({shape:{x1:m[0],y1:m[1],x2:w[0],y2:w[1]},style:x,strokeContainThreshold:s.strokeContainThreshold||5,silent:!0,z2:1});tb(E.shape,E.style.lineWidth),E.anid="line",i.add(E);var M=a.get(["axisLine","symbol"]);if(M!=null){var D=a.get(["axisLine","symbolSize"]);Re(M)&&(M=[M,M]),(Re(D)||Ge(D))&&(D=[D,D]);var k=f0(a.get(["axisLine","symbolOffset"])||0,D),Q=D[0],V=D[1];ne([{rotate:s.rotation+Math.PI/2,offset:k[0],r:0},{rotate:s.rotation-Math.PI/2,offset:k[1],r:Math.sqrt((m[0]-w[0])*(m[0]-w[0])+(m[1]-w[1])*(m[1]-w[1]))}],function($,Z){if(M[Z]!=="none"&&M[Z]!=null){var ee=Os(M[Z],-Q/2,-V/2,Q,V,x.stroke,!0),fe=$.r+$.offset,ve=S?w:m;ee.attr({rotation:$.rotate,x:ve[0]+fe*Math.cos(s.rotation),y:ve[1]-fe*Math.sin(s.rotation),silent:!0,z2:11}),i.add(ee)}})}}},axisTickLabel:function(s,a,i,l){var c=Q7e(i,l,a,s),d=z7e(i,l,a,s);if(H7e(a,d,c),V7e(i,l,a,s.tickDirection),a.get(["axisLabel","hideOverlap"])){var v=Kne(xe(d,function(m){return{label:m,priority:m.z2,defaultAttr:{ignore:m.ignore}}}));Zne(v)}},axisName:function(s,a,i,l){var c=Bt(s.axisName,a.get("name"));if(c){var d=a.get("nameLocation"),v=s.nameDirection,m=a.getModel("nameTextStyle"),w=a.get("nameGap")||0,S=a.axis.getExtent(),x=S[0]>S[1]?-1:1,E=[d==="start"?S[0]-x*w:d==="end"?S[1]+x*w:(S[0]+S[1])/2,_ae(d)?s.labelOffset+v*w:0],M,D=a.get("nameRotate");D!=null&&(D=D*gm/180);var k;_ae(d)?M=tf.innerTextLayout(s.rotation,D??s.rotation,v):(M=U7e(s.rotation,d,D||0,S),k=s.axisNameAvailableWidth,k!=null&&(k=Math.abs(k/Math.sin(M.rotation)),!isFinite(k)&&(k=null)));var Q=m.getFont(),V=a.get("nameTruncate",!0)||{},$=V.ellipsis,Z=Bt(s.nameTruncateMaxWidth,V.maxWidth,k),ee=new be({x:E[0],y:E[1],rotation:M.rotation,silent:tf.isLabelSilent(a),style:Xa(m,{text:c,font:Q,overflow:"truncate",width:Z,ellipsis:$,fill:m.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:m.get("align")||M.textAlign,verticalAlign:m.get("verticalAlign")||M.textVerticalAlign}),z2:1});if(e0({el:ee,componentModel:a,itemName:c}),ee.__fullText=c,ee.anid="name",a.get("triggerEvent")){var fe=tf.makeAxisEventDataBase(a);fe.targetType="axisName",fe.name=c,bt(ee).eventData=fe}l.add(ee),ee.updateTransform(),i.add(ee),ee.decomposeTransform()}}};function U7e(s,a,i,l){var c=$c(i-s),d,v,m=l[0]>l[1],w=a==="start"&&!m||a!=="start"&&m;return If(c-gm/2)?(v=w?"bottom":"top",d="center"):If(c-gm*1.5)?(v=w?"top":"bottom",d="center"):(v="middle",c<gm*1.5&&c>gm/2?d=w?"left":"right":d=w?"right":"left"),{rotation:c,textAlign:d,textVerticalAlign:v}}function H7e(s,a,i){if(!Ine(s.axis)){var l=s.get(["axisLabel","showMinLabel"]),c=s.get(["axisLabel","showMaxLabel"]);a=a||[],i=i||[];var d=a[0],v=a[1],m=a[a.length-1],w=a[a.length-2],S=i[0],x=i[1],E=i[i.length-1],M=i[i.length-2];l===!1?(sd(d),sd(S)):bae(d,v)&&(l?(sd(v),sd(x)):(sd(d),sd(S))),c===!1?(sd(m),sd(E)):bae(w,m)&&(c?(sd(w),sd(M)):(sd(m),sd(E)))}}function sd(s){s&&(s.ignore=!0)}function bae(s,a){var i=s&&s.getBoundingRect().clone(),l=a&&a.getBoundingRect().clone();if(!(!i||!l)){var c=ec([]);return so(c,c,-s.rotation),i.applyTransform($s([],c,s.getLocalTransform())),l.applyTransform($s([],c,a.getLocalTransform())),i.intersect(l)}}function _ae(s){return s==="middle"||s==="center"}function Sae(s,a,i,l,c){for(var d=[],v=[],m=[],w=0;w<s.length;w++){var S=s[w].coord;v[0]=S,v[1]=0,m[0]=S,m[1]=i,a&&(Tn(v,v,a),Tn(m,m,a));var x=new Ll({shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:l,z2:2,autoBatch:!0,silent:!0});tb(x.shape,x.style.lineWidth),x.anid=c+"_"+s[w].tickValue,d.push(x)}return d}function Q7e(s,a,i,l){var c=i.axis,d=i.getModel("axisTick"),v=d.get("show");if(v==="auto"&&l.handleAutoShown&&(v=l.handleAutoShown("axisTick")),!(!v||c.scale.isBlank())){for(var m=d.getModel("lineStyle"),w=l.tickDirection*d.get("length"),S=c.getTicksCoords(),x=Sae(S,a.transform,w,he(m.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),E=0;E<x.length;E++)s.add(x[E]);return x}}function V7e(s,a,i,l){var c=i.axis,d=i.getModel("minorTick");if(!(!d.get("show")||c.scale.isBlank())){var v=c.getMinorTicksCoords();if(v.length)for(var m=d.getModel("lineStyle"),w=l*d.get("length"),S=he(m.getLineStyle(),he(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),x=0;x<v.length;x++)for(var E=Sae(v[x],a.transform,w,S,"minorticks_"+x),M=0;M<E.length;M++)s.add(E[M])}}function z7e(s,a,i,l){var c=i.axis,d=Bt(l.axisLabelShow,i.get(["axisLabel","show"]));if(!(!d||c.scale.isBlank())){var v=i.getModel("axisLabel"),m=v.get("margin"),w=c.getViewLabels(),S=(Bt(l.labelRotate,v.get("rotate"))||0)*gm/180,x=tf.innerTextLayout(l.rotation,S,l.labelDirection),E=i.getCategories&&i.getCategories(!0),M=[],D=tf.isLabelSilent(i),k=i.get("triggerEvent");return ne(w,function(Q,V){var $=c.scale.type==="ordinal"?c.scale.getRawOrdinalNumber(Q.tickValue):Q.tickValue,Z=Q.formattedLabel,ee=Q.rawLabel,fe=v;if(E&&E[$]){var ve=E[$];Pe(ve)&&ve.textStyle&&(fe=new ta(ve.textStyle,v,i.ecModel))}var ge=fe.getTextColor()||i.get(["axisLine","lineStyle","color"]),Se=c.dataToCoord($),Ee=fe.getShallow("align",!0)||x.textAlign,Ie=It(fe.getShallow("alignMinLabel",!0),Ee),Le=It(fe.getShallow("alignMaxLabel",!0),Ee),Fe=fe.getShallow("verticalAlign",!0)||fe.getShallow("baseline",!0)||x.textVerticalAlign,Je=It(fe.getShallow("verticalAlignMinLabel",!0),Fe),rt=It(fe.getShallow("verticalAlignMaxLabel",!0),Fe),at=new be({x:Se,y:l.labelOffset+l.labelDirection*m,rotation:x.rotation,silent:D,z2:10+(Q.level||0),style:Xa(fe,{text:Z,align:V===0?Ie:V===w.length-1?Le:Ee,verticalAlign:V===0?Je:V===w.length-1?rt:Fe,fill:qe(ge)?ge(c.type==="category"?ee:c.type==="value"?$+"":$,V):ge})});if(at.anid="label_"+$,e0({el:at,componentModel:i,itemName:Z,formatterParamsExtra:{isTruncated:function(){return at.isTruncated},value:ee,tickIndex:V}}),k){var dt=tf.makeAxisEventDataBase(i);dt.targetType="axisLabel",dt.value=ee,dt.tickIndex=V,c.type==="category"&&(dt.dataIndex=$),bt(at).eventData=dt}a.add(at),at.updateTransform(),M.push(at),s.add(at),at.decomposeTransform()}),M}}function G7e(s,a){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return j7e(i,s,a),i.seriesInvolved&&W7e(i,s),i}function j7e(s,a,i){var l=a.getComponent("tooltip"),c=a.getComponent("axisPointer"),d=c.get("link",!0)||[],v=[];ne(i.getCoordinateSystems(),function(m){if(!m.axisPointerEnabled)return;var w=LC(m.model),S=s.coordSysAxesInfo[w]={};s.coordSysMap[w]=m;var x=m.model,E=x.getModel("tooltip",l);if(ne(m.getAxes(),ue(Q,!1,null)),m.getTooltipAxes&&l&&E.get("show")){var M=E.get("trigger")==="axis",D=E.get(["axisPointer","type"])==="cross",k=m.getTooltipAxes(E.get(["axisPointer","axis"]));(M||D)&&ne(k.baseAxes,ue(Q,D?"cross":!0,M)),D&&ne(k.otherAxes,ue(Q,"cross",!1))}function Q(V,$,Z){var ee=Z.model.getModel("axisPointer",c),fe=ee.get("show");if(!(!fe||fe==="auto"&&!V&&!KU(ee))){$==null&&($=ee.get("triggerTooltip")),ee=V?q7e(Z,E,c,a,V,$):ee;var ve=ee.get("snap"),ge=ee.get("triggerEmphasis"),Se=LC(Z.model),Ee=$||ve||Z.type==="category",Ie=s.axesInfo[Se]={key:Se,axis:Z,coordSys:m,axisPointerModel:ee,triggerTooltip:$,triggerEmphasis:ge,involveSeries:Ee,snap:ve,useHandle:KU(ee),seriesModels:[],linkGroup:null};S[Se]=Ie,s.seriesInvolved=s.seriesInvolved||Ee;var Le=$7e(d,Z);if(Le!=null){var Fe=v[Le]||(v[Le]={axesInfo:{}});Fe.axesInfo[Se]=Ie,Fe.mapper=d[Le].mapper,Ie.linkGroup=Fe}}}})}function q7e(s,a,i,l,c,d){var v=a.getModel("axisPointer"),m=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],w={};ne(m,function(M){w[M]=ae(v.get(M))}),w.snap=s.type!=="category"&&!!d,v.get("type")==="cross"&&(w.type="line");var S=w.label||(w.label={});if(S.show==null&&(S.show=!1),c==="cross"){var x=v.get(["label","show"]);if(S.show=x??!0,!d){var E=w.lineStyle=v.get("crossStyle");E&&he(S,E.textStyle)}}return s.model.getModel("axisPointer",new ta(w,i,l))}function W7e(s,a){a.eachSeries(function(i){var l=i.coordinateSystem,c=i.get(["tooltip","trigger"],!0),d=i.get(["tooltip","show"],!0);!l||c==="none"||c===!1||c==="item"||d===!1||i.get(["axisPointer","show"],!0)===!1||ne(s.coordSysAxesInfo[LC(l.model)],function(v){var m=v.axis;l.getAxis(m.dim)===m&&(v.seriesModels.push(i),v.seriesDataCount==null&&(v.seriesDataCount=0),v.seriesDataCount+=i.getData().count())})})}function $7e(s,a){for(var i=a.model,l=a.dim,c=0;c<s.length;c++){var d=s[c]||{};if(WU(d[l+"AxisId"],i.id)||WU(d[l+"AxisIndex"],i.componentIndex)||WU(d[l+"AxisName"],i.name))return c}}function WU(s,a){return s==="all"||Qe(s)&&oe(s,a)>=0||s===a}function K7e(s){var a=$U(s);if(a){var i=a.axisPointerModel,l=a.axis.scale,c=i.option,d=i.get("status"),v=i.get("value");v!=null&&(v=l.parse(v));var m=KU(i);d==null&&(c.status=m?"show":"hide");var w=l.getExtent().slice();w[0]>w[1]&&w.reverse(),(v==null||v>w[1])&&(v=w[1]),v<w[0]&&(v=w[0]),c.value=v,m&&(c.status=a.axis.scale.isBlank()?"hide":"show")}}function $U(s){var a=(s.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return a&&a.axesInfo[LC(s)]}function Y7e(s){var a=$U(s);return a&&a.axisPointerModel}function KU(s){return!!s.get(["handle","show"])}function LC(s){return s.type+"||"+s.id}var YU={},T0=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c,d){this.axisPointerClass&&K7e(i),s.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(i,c,!0)},a.prototype.updateAxisPointer=function(i,l,c,d){this._doUpdateAxisPointerClass(i,c,!1)},a.prototype.remove=function(i,l){var c=this._axisPointer;c&&c.remove(l)},a.prototype.dispose=function(i,l){this._disposeAxisPointer(l),s.prototype.dispose.apply(this,arguments)},a.prototype._doUpdateAxisPointerClass=function(i,l,c){var d=a.getAxisPointerClass(this.axisPointerClass);if(d){var v=Y7e(i);v?(this._axisPointer||(this._axisPointer=new d)).render(i,v,l,c):this._disposeAxisPointer(l)}},a.prototype._disposeAxisPointer=function(i){this._axisPointer&&this._axisPointer.dispose(i),this._axisPointer=null},a.registerAxisPointerClass=function(i,l){if(YU[i])throw new Error("axisPointer "+i+" exists");YU[i]=l},a.getAxisPointerClass=function(i){return i&&YU[i]},a.type="axis",a}(ho),XU=Ri();function xae(s,a,i,l){var c=i.axis;if(!c.scale.isBlank()){var d=i.getModel("splitArea"),v=d.getModel("areaStyle"),m=v.get("color"),w=l.coordinateSystem.getRect(),S=c.getTicksCoords({tickModel:d,clamp:!0});if(S.length){var x=m.length,E=XU(s).splitAreaColors,M=Ht(),D=0;if(E)for(var k=0;k<S.length;k++){var Q=E.get(S[k].tickValue);if(Q!=null){D=(Q+(x-1)*k)%x;break}}var V=c.toGlobalCoord(S[0].coord),$=v.getAreaStyle();m=Qe(m)?m:[m];for(var k=1;k<S.length;k++){var Z=c.toGlobalCoord(S[k].coord),ee=void 0,fe=void 0,ve=void 0,ge=void 0;c.isHorizontal()?(ee=V,fe=w.y,ve=Z-ee,ge=w.height,V=ee+ve):(ee=w.x,fe=V,ve=w.width,ge=Z-fe,V=fe+ge);var Se=S[k-1].tickValue;Se!=null&&M.set(Se,D),a.add(new R({anid:Se!=null?"area_"+Se:null,shape:{x:ee,y:fe,width:ve,height:ge},style:he({fill:m[D]},$),autoBatch:!0,silent:!0})),D=(D+1)%x}XU(s).splitAreaColors=M}}}function Cae(s){XU(s).splitAreaColors=null}var X7e=["axisLine","axisTickLabel","axisName"],Z7e=["splitArea","splitLine","minorSplitLine"],Tae=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.axisPointerClass="CartesianAxisPointer",i}return a.prototype.render=function(i,l,c,d){this.group.removeAll();var v=this._axisGroup;if(this._axisGroup=new Lr,this.group.add(this._axisGroup),!!i.get("show")){var m=i.getCoordSysModel(),w=GU(m,i),S=new tf(i,ie({handleAutoShown:function(E){for(var M=m.coordinateSystem.getCartesians(),D=0;D<M.length;D++)if(oU(M[D].getOtherAxis(i.axis).scale))return!0;return!1}},w));ne(X7e,S.add,S),this._axisGroup.add(S.getGroup()),ne(Z7e,function(E){i.get([E,"show"])&&J7e[E](this,this._axisGroup,i,m)},this);var x=d&&d.type==="changeAxisOrder"&&d.isInitSort;x||jx(v,this._axisGroup,i),s.prototype.render.call(this,i,l,c,d)}},a.prototype.remove=function(){Cae(this)},a.type="cartesianAxis",a}(T0),J7e={splitLine:function(s,a,i,l){var c=i.axis;if(!c.scale.isBlank()){var d=i.getModel("splitLine"),v=d.getModel("lineStyle"),m=v.get("color"),w=d.get("showMinLine")!==!1,S=d.get("showMaxLine")!==!1;m=Qe(m)?m:[m];for(var x=l.coordinateSystem.getRect(),E=c.isHorizontal(),M=0,D=c.getTicksCoords({tickModel:d}),k=[],Q=[],V=v.getLineStyle(),$=0;$<D.length;$++){var Z=c.toGlobalCoord(D[$].coord);if(!($===0&&!w||$===D.length-1&&!S)){var ee=D[$].tickValue;E?(k[0]=Z,k[1]=x.y,Q[0]=Z,Q[1]=x.y+x.height):(k[0]=x.x,k[1]=Z,Q[0]=x.x+x.width,Q[1]=Z);var fe=M++%m.length,ve=new Ll({anid:ee!=null?"line_"+ee:null,autoBatch:!0,shape:{x1:k[0],y1:k[1],x2:Q[0],y2:Q[1]},style:he({stroke:m[fe]},V),silent:!0});tb(ve.shape,V.lineWidth),a.add(ve)}}}},minorSplitLine:function(s,a,i,l){var c=i.axis,d=i.getModel("minorSplitLine"),v=d.getModel("lineStyle"),m=l.coordinateSystem.getRect(),w=c.isHorizontal(),S=c.getMinorTicksCoords();if(S.length)for(var x=[],E=[],M=v.getLineStyle(),D=0;D<S.length;D++)for(var k=0;k<S[D].length;k++){var Q=c.toGlobalCoord(S[D][k].coord);w?(x[0]=Q,x[1]=m.y,E[0]=Q,E[1]=m.y+m.height):(x[0]=m.x,x[1]=Q,E[0]=m.x+m.width,E[1]=Q);var V=new Ll({anid:"minor_line_"+S[D][k].tickValue,autoBatch:!0,shape:{x1:x[0],y1:x[1],x2:E[0],y2:E[1]},style:M,silent:!0});tb(V.shape,M.lineWidth),a.add(V)}},splitArea:function(s,a,i,l){xae(s,a,i,l)}},Eae=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.type="xAxis",a}(Tae),e9e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=Eae.type,i}return a.type="yAxis",a}(Tae),t9e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type="grid",i}return a.prototype.render=function(i,l){this.group.removeAll(),i.get("show")&&this.group.add(new R({shape:i.coordinateSystem.getRect(),style:he({fill:i.get("backgroundColor")},i.getItemStyle()),silent:!0,z2:-1}))},a.type="grid",a}(ho),Bae={offset:0};function Iae(s){s.registerComponentView(t9e),s.registerComponentModel(I7e),s.registerCoordinateSystem("cartesian2d",F7e),Ib(s,"x",QU,Bae),Ib(s,"y",QU,Bae),s.registerComponentView(Eae),s.registerComponentView(e9e),s.registerPreprocessor(function(a){a.xAxis&&a.yAxis&&!a.grid&&(a.grid={})})}function r9e(s){ui(Iae),s.registerSeriesModel(x7e),s.registerChartView(B7e),s.registerLayout(TC("scatter"))}function n9e(s){s.eachSeriesByType("radar",function(a){var i=a.getData(),l=[],c=a.coordinateSystem;if(c){var d=c.getIndicatorAxes();ne(d,function(v,m){i.each(i.mapDimension(d[m].dim),function(w,S){l[S]=l[S]||[];var x=c.dataToPoint(w,m);l[S][m]=Lae(x)?x:Mae(c)})}),i.each(function(v){var m=Ye(l[v],function(w){return Lae(w)})||Mae(c);l[v].push(m.slice()),i.setItemLayout(v,l[v])})}})}function Lae(s){return!isNaN(s[0])&&!isNaN(s[1])}function Mae(s){return[s.cx,s.cy]}function i9e(s){var a=s.polar;if(a){Qe(a)||(a=[a]);var i=[];ne(a,function(l,c){l.indicator?(l.type&&!l.shape&&(l.shape=l.type),s.radar=s.radar||[],Qe(s.radar)||(s.radar=[s.radar]),s.radar.push(l)):i.push(l)}),s.polar=i}ne(s.series,function(l){l&&l.type==="radar"&&l.polarIndex&&(l.radarIndex=l.polarIndex)})}var a9e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c){var d=i.coordinateSystem,v=this.group,m=i.getData(),w=this._data;function S(M,D){var k=M.getItemVisual(D,"symbol")||"circle";if(k!=="none"){var Q=gb(M.getItemVisual(D,"symbolSize")),V=Os(k,-1,-1,2,2),$=M.getItemVisual(D,"symbolRotate")||0;return V.attr({style:{strokeNoScale:!0},z2:100,scaleX:Q[0]/2,scaleY:Q[1]/2,rotation:$*Math.PI/180||0}),V}}function x(M,D,k,Q,V,$){k.removeAll();for(var Z=0;Z<D.length-1;Z++){var ee=S(Q,V);ee&&(ee.__dimIdx=Z,M[Z]?(ee.setPosition(M[Z]),t0[$?"initProps":"updateProps"](ee,{x:D[Z][0],y:D[Z][1]},i,V)):ee.setPosition(D[Z]),k.add(ee))}}function E(M){return xe(M,function(D){return[d.cx,d.cy]})}m.diff(w).add(function(M){var D=m.getItemLayout(M);if(D){var k=new dc,Q=new Ac,V={shape:{points:D}};k.shape.points=E(D),Q.shape.points=E(D),Co(k,V,i,M),Co(Q,V,i,M);var $=new Lr,Z=new Lr;$.add(Q),$.add(k),$.add(Z),x(Q.shape.points,D,Z,m,M,!0),m.setItemGraphicEl(M,$)}}).update(function(M,D){var k=w.getItemGraphicEl(D),Q=k.childAt(0),V=k.childAt(1),$=k.childAt(2),Z={shape:{points:m.getItemLayout(M)}};Z.shape.points&&(x(Q.shape.points,Z.shape.points,$,m,M,!1),dA(V),dA(Q),Yi(Q,Z,i),Yi(V,Z,i),m.setItemGraphicEl(M,k))}).remove(function(M){v.remove(w.getItemGraphicEl(M))}).execute(),m.eachItemGraphicEl(function(M,D){var k=m.getItemModel(D),Q=M.childAt(0),V=M.childAt(1),$=M.childAt(2),Z=m.getItemVisual(D,"style"),ee=Z.fill;v.add(M),Q.useStyle(he(k.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:ee})),ku(Q,k,"lineStyle"),ku(V,k,"areaStyle");var fe=k.getModel("areaStyle"),ve=fe.isEmpty()&&fe.parentModel.isEmpty();V.ignore=ve,ne(["emphasis","select","blur"],function(Ee){var Ie=k.getModel([Ee,"areaStyle"]),Le=Ie.isEmpty()&&Ie.parentModel.isEmpty();V.ensureState(Ee).ignore=Le&&ve}),V.useStyle(he(fe.getAreaStyle(),{fill:ee,opacity:.7,decal:Z.decal}));var ge=k.getModel("emphasis"),Se=ge.getModel("itemStyle").getItemStyle();$.eachChild(function(Ee){if(Ee instanceof is){var Ie=Ee.style;Ee.useStyle(ie({image:Ie.image,x:Ie.x,y:Ie.y,width:Ie.width,height:Ie.height},Z))}else Ee.useStyle(Z),Ee.setColor(ee),Ee.style.strokeNoScale=!0;var Le=Ee.ensureState("emphasis");Le.style=ae(Se);var Fe=m.getStore().get(m.getDimensionIndex(Ee.__dimIdx),D);(Fe==null||isNaN(Fe))&&(Fe=""),Fu(Ee,eu(k),{labelFetcher:m.hostModel,labelDataIndex:D,labelDimIndex:Ee.__dimIdx,defaultText:Fe,inheritColor:ee,defaultOpacity:Z.opacity})}),as(M,ge.get("focus"),ge.get("blurScope"),ge.get("disabled"))}),this._data=m},a.prototype.remove=function(){this.group.removeAll(),this._data=null},a.type="radar",a}(xa),o9e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.hasSymbolVisual=!0,i}return a.prototype.init=function(i){s.prototype.init.apply(this,arguments),this.legendVisualProvider=new IC(Ue(this.getData,this),Ue(this.getRawData,this))},a.prototype.getInitialData=function(i,l){return Bb(this,{generateCoord:"indicator_",generateCoordCount:1/0})},a.prototype.formatTooltip=function(i,l,c){var d=this.getData(),v=this.coordinateSystem,m=v.getIndicatorAxes(),w=this.getData().getName(i),S=w===""?this.name:w,x=Vte(this,i);return tu("section",{header:S,sortBlocks:!0,blocks:xe(m,function(E){var M=d.get(d.mapDimension(E.dim),i);return tu("nameValue",{markerType:"subItem",markerColor:x,name:E.name,value:M,sortParam:M})})})},a.prototype.getTooltipPosition=function(i){if(i!=null){for(var l=this.getData(),c=this.coordinateSystem,d=l.getValues(xe(c.dimensions,function(S){return l.mapDimension(S)}),i),v=0,m=d.length;v<m;v++)if(!isNaN(d[v])){var w=c.getIndicatorAxes();return c.coordToPoint(w[v].dataToCoord(d[v]),v)}}},a.type="series.radar",a.dependencies=["radar"],a.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},a}(Ua),MC=hae.value;function wL(s,a){return he({show:a},s)}var s9e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.optionUpdated=function(){var i=this.get("boundaryGap"),l=this.get("splitNumber"),c=this.get("scale"),d=this.get("axisLine"),v=this.get("axisTick"),m=this.get("axisLabel"),w=this.get("axisName"),S=this.get(["axisName","show"]),x=this.get(["axisName","formatter"]),E=this.get("axisNameGap"),M=this.get("triggerEvent"),D=xe(this.get("indicator")||[],function(k){k.max!=null&&k.max>0&&!k.min?k.min=0:k.min!=null&&k.min<0&&!k.max&&(k.max=0);var Q=w;k.color!=null&&(Q=he({color:k.color},w));var V=le(ae(k),{boundaryGap:i,splitNumber:l,scale:c,axisLine:d,axisTick:v,axisLabel:m,name:k.text,showName:S,nameLocation:"end",nameGap:E,nameTextStyle:Q,triggerEvent:M},!1);if(Re(x)){var $=V.name;V.name=x.replace("{value}",$??"")}else qe(x)&&(V.name=x(V.name,V));var Z=new ta(V,null,this.ecModel);return _e(Z,Cb.prototype),Z.mainType="radar",Z.componentIndex=this.componentIndex,Z},this);this._indicatorModels=D},a.prototype.getIndicatorModels=function(){return this._indicatorModels},a.type="radar",a.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:le({lineStyle:{color:"#bbb"}},MC.axisLine),axisLabel:wL(MC.axisLabel,!1),axisTick:wL(MC.axisTick,!1),splitLine:wL(MC.splitLine,!0),splitArea:wL(MC.splitArea,!0),indicator:[]},a}(li),l9e=["axisLine","axisTickLabel","axisName"],u9e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c){var d=this.group;d.removeAll(),this._buildAxes(i),this._buildSplitLineAndArea(i)},a.prototype._buildAxes=function(i){var l=i.coordinateSystem,c=l.getIndicatorAxes(),d=xe(c,function(v){var m=v.model.get("showName")?v.name:"",w=new tf(v.model,{axisName:m,position:[l.cx,l.cy],rotation:v.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return w});ne(d,function(v){ne(l9e,v.add,v),this.group.add(v.getGroup())},this)},a.prototype._buildSplitLineAndArea=function(i){var l=i.coordinateSystem,c=l.getIndicatorAxes();if(!c.length)return;var d=i.get("shape"),v=i.getModel("splitLine"),m=i.getModel("splitArea"),w=v.getModel("lineStyle"),S=m.getModel("areaStyle"),x=v.get("show"),E=m.get("show"),M=w.get("color"),D=S.get("color"),k=Qe(M)?M:[M],Q=Qe(D)?D:[D],V=[],$=[];function Z(dt,wt,zt){var Ut=zt%wt.length;return dt[Ut]=dt[Ut]||[],Ut}if(d==="circle")for(var ee=c[0].getTicksCoords(),fe=l.cx,ve=l.cy,ge=0;ge<ee.length;ge++){if(x){var Se=Z(V,k,ge);V[Se].push(new yv({shape:{cx:fe,cy:ve,r:ee[ge].coord}}))}if(E&&ge<ee.length-1){var Se=Z($,Q,ge);$[Se].push(new Yw({shape:{cx:fe,cy:ve,r0:ee[ge].coord,r:ee[ge+1].coord}}))}}else for(var Ee,Ie=xe(c,function(dt,wt){var zt=dt.getTicksCoords();return Ee=Ee==null?zt.length-1:Math.min(zt.length-1,Ee),xe(zt,function(Ut){return l.coordToPoint(Ut.coord,wt)})}),Le=[],ge=0;ge<=Ee;ge++){for(var Fe=[],Je=0;Je<c.length;Je++)Fe.push(Ie[Je][ge]);if(Fe[0]?Fe.push(Fe[0].slice()):console.error("Can't draw value axis "+ge),x){var Se=Z(V,k,ge);V[Se].push(new Ac({shape:{points:Fe}}))}if(E&&Le){var Se=Z($,Q,ge-1);$[Se].push(new dc({shape:{points:Fe.concat(Le)}}))}Le=Fe.slice().reverse()}var rt=w.getLineStyle(),at=S.getAreaStyle();ne($,function(dt,wt){this.group.add(vh(dt,{style:he({stroke:"none",fill:Q[wt%Q.length]},at),silent:!0}))},this),ne(V,function(dt,wt){this.group.add(vh(dt,{style:he({fill:"none",stroke:k[wt%k.length]},rt),silent:!0}))},this)},a.type="radar",a}(ho),c9e=function(s){o(a,s);function a(i,l,c){var d=s.call(this,i,l,c)||this;return d.type="value",d.angle=0,d.name="",d}return a}(od),f9e=function(){function s(a,i,l){this.dimensions=[],this._model=a,this._indicatorAxes=xe(a.getIndicatorModels(),function(c,d){var v="indicator_"+d,m=new c9e(v,new Vp);return m.name=c.get("name"),m.model=c,c.axis=m,this.dimensions.push(v),m},this),this.resize(a,l)}return s.prototype.getIndicatorAxes=function(){return this._indicatorAxes},s.prototype.dataToPoint=function(a,i){var l=this._indicatorAxes[i];return this.coordToPoint(l.dataToCoord(a),i)},s.prototype.coordToPoint=function(a,i){var l=this._indicatorAxes[i],c=l.angle,d=this.cx+a*Math.cos(c),v=this.cy-a*Math.sin(c);return[d,v]},s.prototype.pointToData=function(a){var i=a[0]-this.cx,l=a[1]-this.cy,c=Math.sqrt(i*i+l*l);i/=c,l/=c;for(var d=Math.atan2(-l,i),v=1/0,m,w=-1,S=0;S<this._indicatorAxes.length;S++){var x=this._indicatorAxes[S],E=Math.abs(d-x.angle);E<v&&(m=x,w=S,v=E)}return[w,+(m&&m.coordToData(c))]},s.prototype.resize=function(a,i){var l=a.get("center"),c=i.getWidth(),d=i.getHeight(),v=Math.min(c,d)/2;this.cx=vr(l[0],c),this.cy=vr(l[1],d),this.startAngle=a.get("startAngle")*Math.PI/180;var m=a.get("radius");(Re(m)||Ge(m))&&(m=[0,m]),this.r0=vr(m[0],v),this.r=vr(m[1],v),ne(this._indicatorAxes,function(w,S){w.setExtent(this.r0,this.r);var x=this.startAngle+S*Math.PI*2/this._indicatorAxes.length;x=Math.atan2(Math.sin(x),Math.cos(x)),w.angle=x},this)},s.prototype.update=function(a,i){var l=this._indicatorAxes,c=this._model;ne(l,function(m){m.scale.setExtent(1/0,-1/0)}),a.eachSeriesByType("radar",function(m,w){if(!(m.get("coordinateSystem")!=="radar"||a.getComponent("radar",m.get("radarIndex"))!==c)){var S=m.getData();ne(l,function(x){x.scale.unionExtentFromData(S,S.mapDimension(x.dim))})}},this);var d=c.get("splitNumber"),v=new Vp;v.setExtent(0,d),v.setInterval(1),ne(l,function(m,w){gae(m.scale,m.model,v)})},s.prototype.convertToPixel=function(a,i,l){return console.warn("Not implemented."),null},s.prototype.convertFromPixel=function(a,i,l){return console.warn("Not implemented."),null},s.prototype.containPoint=function(a){return console.warn("Not implemented."),!1},s.create=function(a,i){var l=[];return a.eachComponent("radar",function(c){var d=new s(c,a,i);l.push(d),c.coordinateSystem=d}),a.eachSeriesByType("radar",function(c){c.get("coordinateSystem")==="radar"&&(c.coordinateSystem=l[c.get("radarIndex")||0])}),l},s.dimensions=[],s}();function h9e(s){s.registerCoordinateSystem("radar",f9e),s.registerComponentModel(s9e),s.registerComponentView(u9e),s.registerVisual({seriesType:"radar",reset:function(a){var i=a.getData();i.each(function(l){i.setItemVisual(l,"legendIcon","roundRect")}),i.setVisual("legendIcon","roundRect")}})}function d9e(s){ui(h9e),s.registerChartView(a9e),s.registerSeriesModel(o9e),s.registerLayout(n9e),s.registerProcessor(BC("radar")),s.registerPreprocessor(i9e)}var Dae="\0_ec_interaction_mutex";function A9e(s,a,i){var l=ZU(s);l[a]=i}function v9e(s,a,i){var l=ZU(s),c=l[a];c===i&&(l[a]=null)}function Rae(s,a){return!!ZU(s)[a]}function ZU(s){return s[Dae]||(s[Dae]={})}pA({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ct);var DC=function(s){o(a,s);function a(i){var l=s.call(this)||this;l._zr=i;var c=Ue(l._mousedownHandler,l),d=Ue(l._mousemoveHandler,l),v=Ue(l._mouseupHandler,l),m=Ue(l._mousewheelHandler,l),w=Ue(l._pinchHandler,l);return l.enable=function(S,x){this.disable(),this._opt=he(ae(x)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),S==null&&(S=!0),(S===!0||S==="move"||S==="pan")&&(i.on("mousedown",c),i.on("mousemove",d),i.on("mouseup",v)),(S===!0||S==="scale"||S==="zoom")&&(i.on("mousewheel",m),i.on("pinch",w))},l.disable=function(){i.off("mousedown",c),i.off("mousemove",d),i.off("mouseup",v),i.off("mousewheel",m),i.off("pinch",w)},l}return a.prototype.isDragging=function(){return this._dragging},a.prototype.isPinching=function(){return this._pinching},a.prototype.setPointerChecker=function(i){this.pointerChecker=i},a.prototype.dispose=function(){this.disable()},a.prototype._mousedownHandler=function(i){if(!cs(i)){for(var l=i.target;l;){if(l.draggable)return;l=l.__hostTarget||l.parent}var c=i.offsetX,d=i.offsetY;this.pointerChecker&&this.pointerChecker(i,c,d)&&(this._x=c,this._y=d,this._dragging=!0)}},a.prototype._mousemoveHandler=function(i){if(!(!this._dragging||!bL("moveOnMouseMove",i,this._opt)||i.gestureEvent==="pinch"||Rae(this._zr,"globalPan"))){var l=i.offsetX,c=i.offsetY,d=this._x,v=this._y,m=l-d,w=c-v;this._x=l,this._y=c,this._opt.preventDefaultMouseMove&&us(i.event),Pae(this,"pan","moveOnMouseMove",i,{dx:m,dy:w,oldX:d,oldY:v,newX:l,newY:c,isAvailableBehavior:null})}},a.prototype._mouseupHandler=function(i){cs(i)||(this._dragging=!1)},a.prototype._mousewheelHandler=function(i){var l=bL("zoomOnMouseWheel",i,this._opt),c=bL("moveOnMouseWheel",i,this._opt),d=i.wheelDelta,v=Math.abs(d),m=i.offsetX,w=i.offsetY;if(!(d===0||!l&&!c)){if(l){var S=v>3?1.4:v>1?1.2:1.1,x=d>0?S:1/S;JU(this,"zoom","zoomOnMouseWheel",i,{scale:x,originX:m,originY:w,isAvailableBehavior:null})}if(c){var E=Math.abs(d),M=(d>0?1:-1)*(E>3?.4:E>1?.15:.05);JU(this,"scrollMove","moveOnMouseWheel",i,{scrollDelta:M,originX:m,originY:w,isAvailableBehavior:null})}}},a.prototype._pinchHandler=function(i){if(!Rae(this._zr,"globalPan")){var l=i.pinchScale>1?1.1:1/1.1;JU(this,"zoom",null,i,{scale:l,originX:i.pinchX,originY:i.pinchY,isAvailableBehavior:null})}},a}(Da);function JU(s,a,i,l,c){s.pointerChecker&&s.pointerChecker(l,c.originX,c.originY)&&(us(l.event),Pae(s,a,i,l,c))}function Pae(s,a,i,l,c){c.isAvailableBehavior=Ue(bL,null,i,l),s.trigger(a,c)}function bL(s,a,i){var l=i[s];return!s||l&&(!Re(l)||a.event[l+"Key"])}function e4(s,a,i){var l=s.target;l.x+=a,l.y+=i,l.dirty()}function t4(s,a,i,l){var c=s.target,d=s.zoomLimit,v=s.zoom=s.zoom||1;if(v*=a,d){var m=d.min||0,w=d.max||1/0;v=Math.max(Math.min(w,v),m)}var S=v/s.zoom;s.zoom=v,c.x-=(i-c.x)*(S-1),c.y-=(l-c.y)*(S-1),c.scaleX*=S,c.scaleY*=S,c.dirty()}var p9e={axisPointer:1,tooltip:1,brush:1};function _L(s,a,i){var l=a.getComponentByElement(s.topTarget),c=l&&l.coordinateSystem;return l&&l!==i&&!p9e.hasOwnProperty(l.mainType)&&c&&c.model!==i}function Oae(s){if(Re(s)){var a=new DOMParser;s=a.parseFromString(s,"text/xml")}var i=s;for(i.nodeType===9&&(i=i.firstChild);i.nodeName.toLowerCase()!=="svg"||i.nodeType!==1;)i=i.nextSibling;return i}var r4,SL={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"},kae=Ne(SL),xL={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Fae=Ne(xL),g9e=function(){function s(){this._defs={},this._root=null}return s.prototype.parse=function(a,i){i=i||{};var l=Oae(a);if(!l)throw new Error("Illegal svg");this._defsUsePending=[];var c=new Lr;this._root=c;var d=[],v=l.getAttribute("viewBox")||"",m=parseFloat(l.getAttribute("width")||i.width),w=parseFloat(l.getAttribute("height")||i.height);isNaN(m)&&(m=null),isNaN(w)&&(w=null),gh(l,c,null,!0,!1);for(var S=l.firstChild;S;)this._parseNode(S,c,d,null,!1,!1),S=S.nextSibling;w9e(this._defs,this._defsUsePending),this._defsUsePending=[];var x,E;if(v){var M=CL(v);M.length>=4&&(x={x:parseFloat(M[0]||0),y:parseFloat(M[1]||0),width:parseFloat(M[2]),height:parseFloat(M[3])})}if(x&&m!=null&&w!=null&&(E=jae(x,{x:0,y:0,width:m,height:w}),!i.ignoreViewBox)){var D=c;c=new Lr,c.add(D),D.scaleX=D.scaleY=E.scale,D.x=E.x,D.y=E.y}return!i.ignoreRootClip&&m!=null&&w!=null&&c.setClipPath(new R({shape:{x:0,y:0,width:m,height:w}})),{root:c,width:m,height:w,viewBoxRect:x,viewBoxTransform:E,named:d}},s.prototype._parseNode=function(a,i,l,c,d,v){var m=a.nodeName.toLowerCase(),w,S=c;if(m==="defs"&&(d=!0),m==="text"&&(v=!0),m==="defs"||m==="switch")w=i;else{if(!d){var x=r4[m];if(x&&At(r4,m)){w=x.call(this,a,i);var E=a.getAttribute("name");if(E){var M={name:E,namedFrom:null,svgNodeTagLower:m,el:w};l.push(M),m==="g"&&(S=M)}else c&&l.push({name:c.name,namedFrom:c,svgNodeTagLower:m,el:w});i.add(w)}}var D=Nae[m];if(D&&At(Nae,m)){var k=D.call(this,a),Q=a.getAttribute("id");Q&&(this._defs[Q]=k)}}if(w&&w.isGroup)for(var V=a.firstChild;V;)V.nodeType===1?this._parseNode(V,w,l,S,d,v):V.nodeType===3&&v&&this._parseText(V,w),V=V.nextSibling},s.prototype._parseText=function(a,i){var l=new Pp({style:{text:a.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ld(i,l),gh(a,l,this._defsUsePending,!1,!1),m9e(l,i);var c=l.style,d=c.fontSize;d&&d<9&&(c.fontSize=9,l.scaleX*=d/9,l.scaleY*=d/9);var v=(c.fontSize||c.fontFamily)&&[c.fontStyle,c.fontWeight,(c.fontSize||12)+"px",c.fontFamily||"sans-serif"].join(" ");c.font=v;var m=l.getBoundingRect();return this._textX+=m.width,i.add(l),l},s.internalField=function(){r4={g:function(a,i){var l=new Lr;return ld(i,l),gh(a,l,this._defsUsePending,!1,!1),l},rect:function(a,i){var l=new R;return ld(i,l),gh(a,l,this._defsUsePending,!1,!1),l.setShape({x:parseFloat(a.getAttribute("x")||"0"),y:parseFloat(a.getAttribute("y")||"0"),width:parseFloat(a.getAttribute("width")||"0"),height:parseFloat(a.getAttribute("height")||"0")}),l.silent=!0,l},circle:function(a,i){var l=new yv;return ld(i,l),gh(a,l,this._defsUsePending,!1,!1),l.setShape({cx:parseFloat(a.getAttribute("cx")||"0"),cy:parseFloat(a.getAttribute("cy")||"0"),r:parseFloat(a.getAttribute("r")||"0")}),l.silent=!0,l},line:function(a,i){var l=new Ll;return ld(i,l),gh(a,l,this._defsUsePending,!1,!1),l.setShape({x1:parseFloat(a.getAttribute("x1")||"0"),y1:parseFloat(a.getAttribute("y1")||"0"),x2:parseFloat(a.getAttribute("x2")||"0"),y2:parseFloat(a.getAttribute("y2")||"0")}),l.silent=!0,l},ellipse:function(a,i){var l=new Ux;return ld(i,l),gh(a,l,this._defsUsePending,!1,!1),l.setShape({cx:parseFloat(a.getAttribute("cx")||"0"),cy:parseFloat(a.getAttribute("cy")||"0"),rx:parseFloat(a.getAttribute("rx")||"0"),ry:parseFloat(a.getAttribute("ry")||"0")}),l.silent=!0,l},polygon:function(a,i){var l=a.getAttribute("points"),c;l&&(c=Qae(l));var d=new dc({shape:{points:c||[]},silent:!0});return ld(i,d),gh(a,d,this._defsUsePending,!1,!1),d},polyline:function(a,i){var l=a.getAttribute("points"),c;l&&(c=Qae(l));var d=new Ac({shape:{points:c||[]},silent:!0});return ld(i,d),gh(a,d,this._defsUsePending,!1,!1),d},image:function(a,i){var l=new is;return ld(i,l),gh(a,l,this._defsUsePending,!1,!1),l.setStyle({image:a.getAttribute("xlink:href")||a.getAttribute("href"),x:+a.getAttribute("x"),y:+a.getAttribute("y"),width:+a.getAttribute("width"),height:+a.getAttribute("height")}),l.silent=!0,l},text:function(a,i){var l=a.getAttribute("x")||"0",c=a.getAttribute("y")||"0",d=a.getAttribute("dx")||"0",v=a.getAttribute("dy")||"0";this._textX=parseFloat(l)+parseFloat(d),this._textY=parseFloat(c)+parseFloat(v);var m=new Lr;return ld(i,m),gh(a,m,this._defsUsePending,!1,!0),m},tspan:function(a,i){var l=a.getAttribute("x"),c=a.getAttribute("y");l!=null&&(this._textX=parseFloat(l)),c!=null&&(this._textY=parseFloat(c));var d=a.getAttribute("dx")||"0",v=a.getAttribute("dy")||"0",m=new Lr;return ld(i,m),gh(a,m,this._defsUsePending,!1,!0),this._textX+=parseFloat(d),this._textY+=parseFloat(v),m},path:function(a,i){var l=a.getAttribute("d")||"",c=nee(l);return ld(i,c),gh(a,c,this._defsUsePending,!1,!1),c.silent=!0,c}}}(),s}(),Nae={lineargradient:function(s){var a=parseInt(s.getAttribute("x1")||"0",10),i=parseInt(s.getAttribute("y1")||"0",10),l=parseInt(s.getAttribute("x2")||"10",10),c=parseInt(s.getAttribute("y2")||"0",10),d=new Zw(a,i,l,c);return Uae(s,d),Hae(s,d),d},radialgradient:function(s){var a=parseInt(s.getAttribute("cx")||"0",10),i=parseInt(s.getAttribute("cy")||"0",10),l=parseInt(s.getAttribute("r")||"0",10),c=new OF(a,i,l);return Uae(s,c),Hae(s,c),c}};function Uae(s,a){var i=s.getAttribute("gradientUnits");i==="userSpaceOnUse"&&(a.global=!0)}function Hae(s,a){for(var i=s.firstChild;i;){if(i.nodeType===1&&i.nodeName.toLocaleLowerCase()==="stop"){var l=i.getAttribute("offset"),c=void 0;l&&l.indexOf("%")>0?c=parseInt(l,10)/100:l?c=parseFloat(l):c=0;var d={};Gae(i,d,d);var v=d.stopColor||i.getAttribute("stop-color")||"#000000";a.colorStops.push({offset:c,color:v})}i=i.nextSibling}}function ld(s,a){s&&s.__inheritedStyle&&(a.__inheritedStyle||(a.__inheritedStyle={}),he(a.__inheritedStyle,s.__inheritedStyle))}function Qae(s){for(var a=CL(s),i=[],l=0;l<a.length;l+=2){var c=parseFloat(a[l]),d=parseFloat(a[l+1]);i.push([c,d])}return i}function gh(s,a,i,l,c){var d=a,v=d.__inheritedStyle=d.__inheritedStyle||{},m={};s.nodeType===1&&(S9e(s,a),Gae(s,v,m),l||x9e(s,v,m)),d.style=d.style||{},v.fill!=null&&(d.style.fill=Vae(d,"fill",v.fill,i)),v.stroke!=null&&(d.style.stroke=Vae(d,"stroke",v.stroke,i)),ne(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(w){v[w]!=null&&(d.style[w]=parseFloat(v[w]))}),ne(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(w){v[w]!=null&&(d.style[w]=v[w])}),c&&(d.__selfStyle=m),v.lineDash&&(d.style.lineDash=xe(CL(v.lineDash),function(w){return parseFloat(w)})),(v.visibility==="hidden"||v.visibility==="collapse")&&(d.invisible=!0),v.display==="none"&&(d.ignore=!0)}function m9e(s,a){var i=a.__selfStyle;if(i){var l=i.textBaseline,c=l;!l||l==="auto"||l==="baseline"?c="alphabetic":l==="before-edge"||l==="text-before-edge"?c="top":l==="after-edge"||l==="text-after-edge"?c="bottom":(l==="central"||l==="mathematical")&&(c="middle"),s.style.textBaseline=c}var d=a.__inheritedStyle;if(d){var v=d.textAlign,m=v;v&&(v==="middle"&&(m="center"),s.style.textAlign=m)}}var y9e=/^url\(\s*#(.*?)\)/;function Vae(s,a,i,l){var c=i&&i.match(y9e);if(c){var d=br(c[1]);l.push([s,a,d]);return}return i==="none"&&(i=null),i}function w9e(s,a){for(var i=0;i<a.length;i++){var l=a[i];l[0].style[l[1]]=s[l[2]]}}var b9e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function CL(s){return s.match(b9e)||[]}var _9e=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,n4=Math.PI/180;function S9e(s,a){var i=s.getAttribute("transform");if(i){i=i.replace(/,/g," ");var l=[],c=null;i.replace(_9e,function(E,M,D){return l.push(M,D),""});for(var d=l.length-1;d>0;d-=2){var v=l[d],m=l[d-1],w=CL(v);switch(c=c||gn(),m){case"translate":Ai(c,c,[parseFloat(w[0]),parseFloat(w[1]||"0")]);break;case"scale":_l(c,c,[parseFloat(w[0]),parseFloat(w[1]||w[0])]);break;case"rotate":so(c,c,-parseFloat(w[0])*n4,[parseFloat(w[1]||"0"),parseFloat(w[2]||"0")]);break;case"skewX":var S=Math.tan(parseFloat(w[0])*n4);$s(c,[1,0,S,1,0,0],c);break;case"skewY":var x=Math.tan(parseFloat(w[0])*n4);$s(c,[1,x,0,1,0,0],c);break;case"matrix":c[0]=parseFloat(w[0]),c[1]=parseFloat(w[1]),c[2]=parseFloat(w[2]),c[3]=parseFloat(w[3]),c[4]=parseFloat(w[4]),c[5]=parseFloat(w[5]);break}}a.setLocalTransform(c)}}var zae=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Gae(s,a,i){var l=s.getAttribute("style");if(l){zae.lastIndex=0;for(var c;(c=zae.exec(l))!=null;){var d=c[1],v=At(SL,d)?SL[d]:null;v&&(a[v]=c[2]);var m=At(xL,d)?xL[d]:null;m&&(i[m]=c[2])}}}function x9e(s,a,i){for(var l=0;l<kae.length;l++){var c=kae[l],d=s.getAttribute(c);d!=null&&(a[SL[c]]=d)}for(var l=0;l<Fae.length;l++){var c=Fae[l],d=s.getAttribute(c);d!=null&&(i[xL[c]]=d)}}function jae(s,a){var i=a.width/s.width,l=a.height/s.height,c=Math.min(i,l);return{scale:c,x:-(s.x+s.width/2)*c+(a.x+a.width/2),y:-(s.y+s.height/2)*c+(a.y+a.height/2)}}function C9e(s,a){var i=new g9e;return i.parse(s,a)}var T9e=Ht(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),E9e=function(){function s(a,i){this.type="geoSVG",this._usedGraphicMap=Ht(),this._freedGraphics=[],this._mapName=a,this._parsedXML=Oae(i)}return s.prototype.load=function(){var a=this._firstGraphic;if(!a){a=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(a),this._boundingRect=this._firstGraphic.boundingRect.clone();var i=I9e(a.named),l=i.regions,c=i.regionsMap;this._regions=l,this._regionsMap=c}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},s.prototype._buildGraphic=function(a){var i,l;try{i=a&&C9e(a,{ignoreViewBox:!0,ignoreRootClip:!0})||{},l=i.root,_t(l!=null)}catch(V){throw new Error(`Invalid svg format
`+V.message)}var c=new Lr;c.add(l),c.isGeoSVGGraphicRoot=!0;var d=i.width,v=i.height,m=i.viewBoxRect,w=this._boundingRect;if(!w){var S=void 0,x=void 0,E=void 0,M=void 0;if(d!=null?(S=0,E=d):m&&(S=m.x,E=m.width),v!=null?(x=0,M=v):m&&(x=m.y,M=m.height),S==null||x==null){var D=l.getBoundingRect();S==null&&(S=D.x,E=D.width),x==null&&(x=D.y,M=D.height)}w=this._boundingRect=new Bn(S,x,E,M)}if(m){var k=jae(m,w);l.scaleX=l.scaleY=k.scale,l.x=k.x,l.y=k.y}c.setClipPath(new R({shape:w.plain()}));var Q=[];return ne(i.named,function(V){T9e.get(V.svgNodeTagLower)!=null&&(Q.push(V),B9e(V.el))}),{root:c,boundingRect:w,named:Q}},s.prototype.useGraphic=function(a){var i=this._usedGraphicMap,l=i.get(a);return l||(l=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),i.set(a,l),l)},s.prototype.freeGraphic=function(a){var i=this._usedGraphicMap,l=i.get(a);l&&(i.removeKey(a),this._freedGraphics.push(l))},s}();function B9e(s){s.silent=!1,s.isGroup&&s.traverse(function(a){a.silent=!1})}function I9e(s){var a=[],i=Ht();return ne(s,function(l){if(l.namedFrom==null){var c=new vVe(l.name,l.el);a.push(c),i.set(l.name,c)}}),{regions:a,regionsMap:i}}for(var i4=[126,25],qae="南海诸岛",E0=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],B0=0;B0<E0.length;B0++)for(var Lb=0;Lb<E0[B0].length;Lb++)E0[B0][Lb][0]/=10.5,E0[B0][Lb][1]/=-10.5/.75,E0[B0][Lb][0]+=i4[0],E0[B0][Lb][1]+=i4[1];function L9e(s,a){if(s==="china"){for(var i=0;i<a.length;i++)if(a[i].name===qae)return;a.push(new One(qae,xe(E0,function(l){return{type:"polygon",exterior:l}}),i4))}}var M9e={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function D9e(s,a){if(s==="china"){var i=M9e[a.name];if(i){var l=a.getCenter();l[0]+=i[0]/10.5,l[1]+=-i[1]/(10.5/.75),a.setCenter(l)}}}var R9e=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function P9e(s,a){s==="china"&&a.name==="台湾"&&a.geometries.push({type:"polygon",exterior:R9e[0]})}var O9e="name",k9e=function(){function s(a,i,l){this.type="geoJSON",this._parsedMap=Ht(),this._mapName=a,this._specialAreas=l,this._geoJSON=N9e(i)}return s.prototype.load=function(a,i){i=i||O9e;var l=this._parsedMap.get(i);if(!l){var c=this._parseToRegions(i);l=this._parsedMap.set(i,{regions:c,boundingRect:F9e(c)})}var d=Ht(),v=[];return ne(l.regions,function(m){var w=m.name;a&&At(a,w)&&(m=m.cloneShallow(w=a[w])),v.push(m),d.set(w,m)}),{regions:v,boundingRect:l.boundingRect||new Bn(0,0,0,0),regionsMap:d}},s.prototype._parseToRegions=function(a){var i=this._mapName,l=this._geoJSON,c;try{c=l?pU(l,a):[]}catch(d){throw new Error(`Invalid geoJson format
`+d.message)}return L9e(i,c),ne(c,function(d){var v=d.name;D9e(i,d),P9e(i,d);var m=this._specialAreas&&this._specialAreas[v];m&&d.transformTo(m.left,m.top,m.width,m.height)},this),c},s.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},s}();function F9e(s){for(var a,i=0;i<s.length;i++){var l=s[i].getBoundingRect();a=a||l.clone(),a.union(l)}return a}function N9e(s){return Re(s)?typeof JSON<"u"&&JSON.parse?JSON.parse(s):new Function("return ("+s+");")():s}var RC=Ht(),zp={registerMap:function(s,a,i){if(a.svg){var l=new E9e(s,a.svg);RC.set(s,l)}else{var c=a.geoJson||a.geoJSON;c&&!a.features?i=a.specialAreas:c=a;var l=new k9e(s,c,i);RC.set(s,l)}},getGeoResource:function(s){return RC.get(s)},getMapForUser:function(s){var a=RC.get(s);return a&&a.type==="geoJSON"&&a.getMapForUser()},load:function(s,a,i){var l=RC.get(s);if(!l){console.error("Map "+s+" not exists. The GeoJSON of the map must be provided.");return}return l.load(a,i)}},a4=["rect","circle","line","ellipse","polygon","polyline","path"],U9e=Ht(a4),H9e=Ht(a4.concat(["g"])),Q9e=Ht(a4.concat(["g"])),Wae=Ri();function TL(s){var a=s.getItemStyle(),i=s.get("areaColor");return i!=null&&(a.fill=i),a}function $ae(s){var a=s.style;a&&(a.stroke=a.stroke||a.fill,a.fill=null)}var Kae=function(){function s(a){var i=new Lr;this.uid=ib("ec_map_draw"),this._controller=new DC(a.getZr()),this._controllerHost={target:i},this.group=i,i.add(this._regionsGroup=new Lr),i.add(this._svgGroup=new Lr)}return s.prototype.draw=function(a,i,l,c,d){var v=a.mainType==="geo",m=a.getData&&a.getData();v&&i.eachComponent({mainType:"series",subType:"map"},function($){!m&&$.getHostGeoModel()===a&&(m=$.getData())});var w=a.coordinateSystem,S=this._regionsGroup,x=this.group,E=w.getTransformInfo(),M=E.raw,D=E.roam,k=!S.childAt(0)||d;k?(x.x=D.x,x.y=D.y,x.scaleX=D.scaleX,x.scaleY=D.scaleY,x.dirty()):Yi(x,D,a);var Q=m&&m.getVisual("visualMeta")&&m.getVisual("visualMeta").length>0,V={api:l,geo:w,mapOrGeoModel:a,data:m,isVisualEncodedByVisualMap:Q,isGeo:v,transformInfoRaw:M};w.resourceType==="geoJSON"?this._buildGeoJSON(V):w.resourceType==="geoSVG"&&this._buildSVG(V),this._updateController(a,i,l),this._updateMapSelectHandler(a,S,l,c)},s.prototype._buildGeoJSON=function(a){var i=this._regionsGroupByName=Ht(),l=Ht(),c=this._regionsGroup,d=a.transformInfoRaw,v=a.mapOrGeoModel,m=a.data,w=a.geo.projection,S=w&&w.stream;function x(D,k){return k&&(D=k(D)),D&&[D[0]*d.scaleX+d.x,D[1]*d.scaleY+d.y]}function E(D){for(var k=[],Q=!S&&w&&w.project,V=0;V<D.length;++V){var $=x(D[V],Q);$&&k.push($)}return k}function M(D){return{shape:{points:E(D)}}}c.removeAll(),ne(a.geo.regions,function(D){var k=D.name,Q=i.get(k),V=l.get(k)||{},$=V.dataIdx,Z=V.regionModel;if(!Q){Q=i.set(k,new Lr),c.add(Q),$=m?m.indexOfName(k):null,Z=a.isGeo?v.getRegionModel(k):m?m.getItemModel($):null;var ee=Z.get("silent",!0);ee!=null&&(Q.silent=ee),l.set(k,{dataIdx:$,regionModel:Z})}var fe=[],ve=[];ne(D.geometries,function(Ee){if(Ee.type==="polygon"){var Ie=[Ee.exterior].concat(Ee.interiors||[]);S&&(Ie=toe(Ie,S)),ne(Ie,function(Fe){fe.push(new dc(M(Fe)))})}else{var Le=Ee.points;S&&(Le=toe(Le,S,!0)),ne(Le,function(Fe){ve.push(new Ac(M(Fe)))})}});var ge=x(D.getCenter(),w&&w.project);function Se(Ee,Ie){if(Ee.length){var Le=new iI({culling:!0,segmentIgnoreThreshold:1,shape:{paths:Ee}});Q.add(Le),Yae(a,Le,$,Z),Xae(a,Le,k,Z,v,$,ge),Ie&&($ae(Le),ne(Le.states,$ae))}}Se(fe),Se(ve,!0)}),i.each(function(D,k){var Q=l.get(k),V=Q.dataIdx,$=Q.regionModel;Zae(a,D,k,$,v,V),Jae(a,D,k,$,v),eoe(a,D,k,$,v)},this)},s.prototype._buildSVG=function(a){var i=a.geo.map,l=a.transformInfoRaw;this._svgGroup.x=l.x,this._svgGroup.y=l.y,this._svgGroup.scaleX=l.scaleX,this._svgGroup.scaleY=l.scaleY,this._svgResourceChanged(i)&&(this._freeSVG(),this._useSVG(i));var c=this._svgDispatcherMap=Ht(),d=!1;ne(this._svgGraphicRecord.named,function(v){var m=v.name,w=a.mapOrGeoModel,S=a.data,x=v.svgNodeTagLower,E=v.el,M=S?S.indexOfName(m):null,D=w.getRegionModel(m);U9e.get(x)!=null&&E instanceof en&&Yae(a,E,M,D),E instanceof en&&(E.culling=!0);var k=D.get("silent",!0);if(k!=null&&(E.silent=k),E.z2EmphasisLift=0,!v.namedFrom&&(Q9e.get(x)!=null&&Xae(a,E,m,D,w,M,null),Zae(a,E,m,D,w,M),Jae(a,E,m,D,w),H9e.get(x)!=null)){var Q=eoe(a,E,m,D,w);Q==="self"&&(d=!0);var V=c.get(m)||c.set(m,[]);V.push(E)}},this),this._enableBlurEntireSVG(d,a)},s.prototype._enableBlurEntireSVG=function(a,i){if(a&&i.isGeo){var l=i.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),c=l.opacity;this._svgGraphicRecord.root.traverse(function(d){if(!d.isGroup){Ky(d);var v=d.ensureState("blur").style||{};v.opacity==null&&c!=null&&(v.opacity=c),d.ensureState("emphasis")}})}},s.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},s.prototype.findHighDownDispatchers=function(a,i){if(a==null)return[];var l=i.coordinateSystem;if(l.resourceType==="geoJSON"){var c=this._regionsGroupByName;if(c){var d=c.get(a);return d?[d]:[]}}else if(l.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(a)||[]},s.prototype._svgResourceChanged=function(a){return this._svgMapName!==a},s.prototype._useSVG=function(a){var i=zp.getGeoResource(a);if(i&&i.type==="geoSVG"){var l=i.useGraphic(this.uid);this._svgGroup.add(l.root),this._svgGraphicRecord=l,this._svgMapName=a}},s.prototype._freeSVG=function(){var a=this._svgMapName;if(a!=null){var i=zp.getGeoResource(a);i&&i.type==="geoSVG"&&i.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},s.prototype._updateController=function(a,i,l){var c=a.coordinateSystem,d=this._controller,v=this._controllerHost;v.zoomLimit=a.get("scaleLimit"),v.zoom=c.getZoom(),d.enable(a.get("roam")||!1);var m=a.mainType;function w(){var S={type:"geoRoam",componentType:m};return S[m+"Id"]=a.id,S}d.off("pan").on("pan",function(S){this._mouseDownFlag=!1,e4(v,S.dx,S.dy),l.dispatchAction(ie(w(),{dx:S.dx,dy:S.dy,animation:{duration:0}}))},this),d.off("zoom").on("zoom",function(S){this._mouseDownFlag=!1,t4(v,S.scale,S.originX,S.originY),l.dispatchAction(ie(w(),{totalZoom:v.zoom,zoom:S.scale,originX:S.originX,originY:S.originY,animation:{duration:0}}))},this),d.setPointerChecker(function(S,x,E){return c.containPoint([x,E])&&!_L(S,l,a)})},s.prototype.resetForLabelLayout=function(){this.group.traverse(function(a){var i=a.getTextContent();i&&(i.ignore=Wae(i).ignore)})},s.prototype._updateMapSelectHandler=function(a,i,l,c){var d=this;i.off("mousedown"),i.off("click"),a.get("selectedMode")&&(i.on("mousedown",function(){d._mouseDownFlag=!0}),i.on("click",function(v){d._mouseDownFlag&&(d._mouseDownFlag=!1)}))},s}();function Yae(s,a,i,l){var c=l.getModel("itemStyle"),d=l.getModel(["emphasis","itemStyle"]),v=l.getModel(["blur","itemStyle"]),m=l.getModel(["select","itemStyle"]),w=TL(c),S=TL(d),x=TL(m),E=TL(v),M=s.data;if(M){var D=M.getItemVisual(i,"style"),k=M.getItemVisual(i,"decal");s.isVisualEncodedByVisualMap&&D.fill&&(w.fill=D.fill),k&&(w.decal=yb(k,s.api))}a.setStyle(w),a.style.strokeNoScale=!0,a.ensureState("emphasis").style=S,a.ensureState("select").style=x,a.ensureState("blur").style=E,Ky(a)}function Xae(s,a,i,l,c,d,v){var m=s.data,w=s.isGeo,S=m&&isNaN(m.get(m.mapDimension("value"),d)),x=m&&m.getItemLayout(d);if(w||S||x&&x.showLabel){var E=w?i:d,M=void 0;(!m||d>=0)&&(M=c);var D=v?{normal:{align:"center",verticalAlign:"middle"}}:null;Fu(a,eu(l),{labelFetcher:M,labelDataIndex:E,defaultText:i},D);var k=a.getTextContent();if(k&&(Wae(k).ignore=k.ignore,a.textConfig&&v)){var Q=a.getBoundingRect().clone();a.textConfig.layoutRect=Q,a.textConfig.position=[(v[0]-Q.x)/Q.width*100+"%",(v[1]-Q.y)/Q.height*100+"%"]}a.disableLabelAnimation=!0}else a.removeTextContent(),a.removeTextConfig(),a.disableLabelAnimation=null}function Zae(s,a,i,l,c,d){s.data?s.data.setItemGraphicEl(d,a):bt(a).eventData={componentType:"geo",componentIndex:c.componentIndex,geoIndex:c.componentIndex,name:i,region:l&&l.option||{}}}function Jae(s,a,i,l,c){s.data||e0({el:a,componentModel:c,itemName:i,itemTooltipOption:l.get("tooltip")})}function eoe(s,a,i,l,c){a.highDownSilentOnTouch=!!c.get("selectedMode");var d=l.getModel("emphasis"),v=d.get("focus");return as(a,v,d.get("blurScope"),d.get("disabled")),s.isGeo&&b4e(a,c,i),v}function toe(s,a,i){var l=[],c;function d(){c=[]}function v(){c.length&&(l.push(c),c=[])}var m=a({polygonStart:d,polygonEnd:v,lineStart:d,lineEnd:v,point:function(w,S){isFinite(w)&&isFinite(S)&&c.push([w,S])},sphere:function(){}});return!i&&m.polygonStart(),ne(s,function(w){m.lineStart();for(var S=0;S<w.length;S++)m.point(w[S][0],w[S][1]);m.lineEnd()}),!i&&m.polygonEnd(),l}var V9e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c,d){if(!(d&&d.type==="mapToggleSelect"&&d.from===this.uid)){var v=this.group;if(v.removeAll(),!i.getHostGeoModel()){if(this._mapDraw&&d&&d.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),d&&d.type==="geoRoam"&&d.componentType==="series"&&d.seriesId===i.id){var m=this._mapDraw;m&&v.add(m.group)}else if(i.needsDrawMap){var m=this._mapDraw||new Kae(c);v.add(m.group),m.draw(i,l,c,this,d),this._mapDraw=m}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;i.get("showLegendSymbol")&&l.getComponent("legend")&&this._renderSymbols(i,l,c)}}},a.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},a.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},a.prototype._renderSymbols=function(i,l,c){var d=i.originalData,v=this.group;d.each(d.mapDimension("value"),function(m,w){if(!isNaN(m)){var S=d.getItemLayout(w);if(!(!S||!S.point)){var x=S.point,E=S.offset,M=new yv({style:{fill:i.getData().getVisual("style").fill},shape:{cx:x[0]+E*9,cy:x[1],r:3},silent:!0,z2:8+(E?0:qw+1)});if(!E){var D=i.mainSeries.getData(),k=d.getName(w),Q=D.indexOfName(k),V=d.getItemModel(w),$=V.getModel("label"),Z=D.getItemGraphicEl(Q);Fu(M,eu(V),{labelFetcher:{getFormattedLabel:function(ee,fe){return i.getFormattedLabel(Q,fe)}},defaultText:k}),M.disableLabelAnimation=!0,$.get("position")||M.setTextConfig({position:"bottom"}),Z.onHoverStateChange=function(ee){eI(M,ee)}}v.add(M)}}})},a.type="map",a}(xa),z9e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.needsDrawMap=!1,i.seriesGroup=[],i.getTooltipPosition=function(l){if(l!=null){var c=this.getData().getName(l),d=this.coordinateSystem,v=d.getRegion(c);return v&&d.dataToPoint(v.getCenter())}},i}return a.prototype.getInitialData=function(i){for(var l=Bb(this,{coordDimensions:["value"],encodeDefaulter:ue(sN,this)}),c=Ht(),d=[],v=0,m=l.count();v<m;v++){var w=l.getName(v);c.set(w,v)}var S=zp.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return ne(S.regions,function(x){var E=x.name,M=c.get(E),D=x.properties&&x.properties.echartsStyle,k;M==null?(k={name:E},d.push(k)):k=l.getRawDataItem(M),D&&le(k,D)}),l.appendData(d),l},a.prototype.getHostGeoModel=function(){var i=this.option.geoIndex;return i!=null?this.ecModel.getComponent("geo",i):null},a.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},a.prototype.getRawValue=function(i){var l=this.getData();return l.get(l.mapDimension("value"),i)},a.prototype.getRegionModel=function(i){var l=this.getData();return l.getItemModel(l.indexOfName(i))},a.prototype.formatTooltip=function(i,l,c){for(var d=this.getData(),v=this.getRawValue(i),m=d.getName(i),w=this.seriesGroup,S=[],x=0;x<w.length;x++){var E=w[x].originalData.indexOfName(m),M=d.mapDimension("value");isNaN(w[x].originalData.get(M,E))||S.push(w[x].name)}return tu("section",{header:S.join(", "),noHeader:!S.length,blocks:[tu("nameValue",{name:m,value:v})]})},a.prototype.setZoom=function(i){this.option.zoom=i},a.prototype.setCenter=function(i){this.option.center=i},a.prototype.getLegendIcon=function(i){var l=i.icon||"roundRect",c=Os(l,0,0,i.itemWidth,i.itemHeight,i.itemStyle.fill);return c.setStyle(i.itemStyle),c.style.stroke="none",l.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),c},a.type="series.map",a.dependencies=["geo"],a.layoutMode="box",a.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"},a}(Ua);function G9e(s,a){var i={};return ne(s,function(l){l.each(l.mapDimension("value"),function(c,d){var v="ec-"+l.getName(d);i[v]=i[v]||[],isNaN(c)||i[v].push(c)})}),s[0].map(s[0].mapDimension("value"),function(l,c){for(var d="ec-"+s[0].getName(c),v=0,m=1/0,w=-1/0,S=i[d].length,x=0;x<S;x++)m=Math.min(m,i[d][x]),w=Math.max(w,i[d][x]),v+=i[d][x];var E;return a==="min"?E=m:a==="max"?E=w:a==="average"?E=v/S:E=v,S===0?NaN:E})}function j9e(s){var a={};s.eachSeriesByType("map",function(i){var l=i.getHostGeoModel(),c=l?"o"+l.id:"i"+i.getMapType();(a[c]=a[c]||[]).push(i)}),ne(a,function(i,l){for(var c=G9e(xe(i,function(v){return v.getData()}),i[0].get("mapValueCalculation")),d=0;d<i.length;d++)i[d].originalData=i[d].getData();for(var d=0;d<i.length;d++)i[d].seriesGroup=i,i[d].needsDrawMap=d===0&&!i[d].getHostGeoModel(),i[d].setData(c.cloneShallow()),i[d].mainSeries=i[0]})}function q9e(s){var a={};s.eachSeriesByType("map",function(i){var l=i.getMapType();if(!(i.getHostGeoModel()||a[l])){var c={};ne(i.seriesGroup,function(v){var m=v.coordinateSystem,w=v.originalData;v.get("showLegendSymbol")&&s.getComponent("legend")&&w.each(w.mapDimension("value"),function(S,x){var E=w.getName(x),M=m.getRegion(E);if(!(!M||isNaN(S))){var D=c[E]||0,k=m.dataToPoint(M.getCenter());c[E]=D+1,w.setItemLayout(x,{point:k,offset:D})}})});var d=i.getData();d.each(function(v){var m=d.getName(v),w=d.getItemLayout(v)||{};w.showLabel=!c[m],d.setItemLayout(v,w)}),a[l]=!0}})}var roe=Tn,PC=function(s){o(a,s);function a(i){var l=s.call(this)||this;return l.type="view",l.dimensions=["x","y"],l._roamTransformable=new Xe,l._rawTransformable=new Xe,l.name=i,l}return a.prototype.setBoundingRect=function(i,l,c,d){return this._rect=new Bn(i,l,c,d),this._rect},a.prototype.getBoundingRect=function(){return this._rect},a.prototype.setViewRect=function(i,l,c,d){this._transformTo(i,l,c,d),this._viewRect=new Bn(i,l,c,d)},a.prototype._transformTo=function(i,l,c,d){var v=this.getBoundingRect(),m=this._rawTransformable;m.transform=v.calculateTransform(new Bn(i,l,c,d));var w=m.parent;m.parent=null,m.decomposeTransform(),m.parent=w,this._updateTransform()},a.prototype.setCenter=function(i,l){i&&(this._center=[vr(i[0],l.getWidth()),vr(i[1],l.getHeight())],this._updateCenterAndZoom())},a.prototype.setZoom=function(i){i=i||1;var l=this.zoomLimit;l&&(l.max!=null&&(i=Math.min(l.max,i)),l.min!=null&&(i=Math.max(l.min,i))),this._zoom=i,this._updateCenterAndZoom()},a.prototype.getDefaultCenter=function(){var i=this.getBoundingRect(),l=i.x+i.width/2,c=i.y+i.height/2;return[l,c]},a.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},a.prototype.getZoom=function(){return this._zoom||1},a.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},a.prototype._updateCenterAndZoom=function(){var i=this._rawTransformable.getLocalTransform(),l=this._roamTransformable,c=this.getDefaultCenter(),d=this.getCenter(),v=this.getZoom();d=Tn([],d,i),c=Tn([],c,i),l.originX=d[0],l.originY=d[1],l.x=c[0]-d[0],l.y=c[1]-d[1],l.scaleX=l.scaleY=v,this._updateTransform()},a.prototype._updateTransform=function(){var i=this._roamTransformable,l=this._rawTransformable;l.parent=i,i.updateTransform(),l.updateTransform(),Fc(this.transform||(this.transform=[]),l.transform||gn()),this._rawTransform=l.getLocalTransform(),this.invTransform=this.invTransform||[],zl(this.invTransform,this.transform),this.decomposeTransform()},a.prototype.getTransformInfo=function(){var i=this._rawTransformable,l=this._roamTransformable,c=new Xe;return c.transform=l.transform,c.decomposeTransform(),{roam:{x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY},raw:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY}}},a.prototype.getViewRect=function(){return this._viewRect},a.prototype.getViewRectAfterRoam=function(){var i=this.getBoundingRect().clone();return i.applyTransform(this.transform),i},a.prototype.dataToPoint=function(i,l,c){var d=l?this._rawTransform:this.transform;return c=c||[],d?roe(c,i,d):ot(c,i)},a.prototype.pointToData=function(i){var l=this.invTransform;return l?roe([],i,l):[i[0],i[1]]},a.prototype.convertToPixel=function(i,l,c){var d=noe(l);return d===this?d.dataToPoint(c):null},a.prototype.convertFromPixel=function(i,l,c){var d=noe(l);return d===this?d.pointToData(c):null},a.prototype.containPoint=function(i){return this.getViewRectAfterRoam().contain(i[0],i[1])},a.dimensions=["x","y"],a}(Xe);function noe(s){var a=s.seriesModel;return a?a.coordinateSystem:null}var W9e={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},ioe=["lng","lat"],o4=function(s){o(a,s);function a(i,l,c){var d=s.call(this,i)||this;d.dimensions=ioe,d.type="geo",d._nameCoordMap=Ht(),d.map=l;var v=c.projection,m=zp.load(l,c.nameMap,c.nameProperty),w=zp.getGeoResource(l),S=d.resourceType=w?w.type:null,x=d.regions=m.regions,E=W9e[w.type];d._regionsMap=m.regionsMap,d.regions=m.regions,v&&(S==="geoSVG"&&(Ya("Map "+l+" with SVG source can't use projection. Only GeoJSON source supports projection."),v=null),v.project&&v.unproject||(Ya("project and unproject must be both provided in the projeciton."),v=null)),d.projection=v;var M;if(v)for(var D=0;D<x.length;D++){var k=x[D].getBoundingRect(v);M=M||k.clone(),M.union(k)}else M=m.boundingRect;return d.setBoundingRect(M.x,M.y,M.width,M.height),d.aspectScale=v?1:It(c.aspectScale,E.aspectScale),d._invertLongitute=v?!1:E.invertLongitute,d}return a.prototype._transformTo=function(i,l,c,d){var v=this.getBoundingRect(),m=this._invertLongitute;v=v.clone(),m&&(v.y=-v.y-v.height);var w=this._rawTransformable;w.transform=v.calculateTransform(new Bn(i,l,c,d));var S=w.parent;w.parent=null,w.decomposeTransform(),w.parent=S,m&&(w.scaleY=-w.scaleY),this._updateTransform()},a.prototype.getRegion=function(i){return this._regionsMap.get(i)},a.prototype.getRegionByCoord=function(i){for(var l=this.regions,c=0;c<l.length;c++){var d=l[c];if(d.type==="geoJSON"&&d.contain(i))return l[c]}},a.prototype.addGeoCoord=function(i,l){this._nameCoordMap.set(i,l)},a.prototype.getGeoCoord=function(i){var l=this._regionsMap.get(i);return this._nameCoordMap.get(i)||l&&l.getCenter()},a.prototype.dataToPoint=function(i,l,c){if(Re(i)&&(i=this.getGeoCoord(i)),i){var d=this.projection;return d&&(i=d.project(i)),i&&this.projectedToPoint(i,l,c)}},a.prototype.pointToData=function(i){var l=this.projection;return l&&(i=l.unproject(i)),i&&this.pointToProjected(i)},a.prototype.pointToProjected=function(i){return s.prototype.pointToData.call(this,i)},a.prototype.projectedToPoint=function(i,l,c){return s.prototype.dataToPoint.call(this,i,l,c)},a.prototype.convertToPixel=function(i,l,c){var d=aoe(l);return d===this?d.dataToPoint(c):null},a.prototype.convertFromPixel=function(i,l,c){var d=aoe(l);return d===this?d.pointToData(c):null},a}(PC);_e(o4,PC);function aoe(s){var a=s.geoModel,i=s.seriesModel;return a?a.coordinateSystem:i?i.coordinateSystem||(i.getReferringComponents("geo",ps).models[0]||{}).coordinateSystem:null}function ooe(s,a){var i=s.get("boundingCoords");if(i!=null){var l=i[0],c=i[1];if(!(isFinite(l[0])&&isFinite(l[1])&&isFinite(c[0])&&isFinite(c[1])))console.error("Invalid boundingCoords");else{var d=this.projection;if(d){var v=l[0],m=l[1],w=c[0],S=c[1];l=[1/0,1/0],c=[-1/0,-1/0];var x=function(ge,Se,Ee,Ie){for(var Le=Ee-ge,Fe=Ie-Se,Je=0;Je<=100;Je++){var rt=Je/100,at=d.project([ge+Le*rt,Se+Fe*rt]);Mi(l,l,at),Ka(c,c,at)}};x(v,m,w,m),x(w,m,w,S),x(w,S,v,S),x(v,S,w,m)}this.setBoundingRect(l[0],l[1],c[0]-l[0],c[1]-l[1])}}var E=this.getBoundingRect(),M=s.get("layoutCenter"),D=s.get("layoutSize"),k=a.getWidth(),Q=a.getHeight(),V=E.width/E.height*this.aspectScale,$=!1,Z,ee;M&&D&&(Z=[vr(M[0],k),vr(M[1],Q)],ee=vr(D,Math.min(k,Q)),!isNaN(Z[0])&&!isNaN(Z[1])&&!isNaN(ee)?$=!0:console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var fe;if($)fe={},V>1?(fe.width=ee,fe.height=ee/V):(fe.height=ee,fe.width=ee*V),fe.y=Z[1]-fe.height/2,fe.x=Z[0]-fe.width/2;else{var ve=s.getBoxLayoutParams();ve.aspect=V,fe=ol(ve,{width:k,height:Q})}this.setViewRect(fe.x,fe.y,fe.width,fe.height),this.setCenter(s.get("center"),a),this.setZoom(s.get("zoom"))}function $9e(s,a){ne(a.get("geoCoord"),function(i,l){s.addGeoCoord(l,i)})}var K9e=function(){function s(){this.dimensions=ioe}return s.prototype.create=function(a,i){var l=[];function c(v){return{nameProperty:v.get("nameProperty"),aspectScale:v.get("aspectScale"),projection:v.get("projection")}}a.eachComponent("geo",function(v,m){var w=v.get("map"),S=new o4(w+m,w,ie({nameMap:v.get("nameMap")},c(v)));S.zoomLimit=v.get("scaleLimit"),l.push(S),v.coordinateSystem=S,S.model=v,S.resize=ooe,S.resize(v,i)}),a.eachSeries(function(v){var m=v.get("coordinateSystem");if(m==="geo"){var w=v.get("geoIndex")||0;v.coordinateSystem=l[w]}});var d={};return a.eachSeriesByType("map",function(v){if(!v.getHostGeoModel()){var m=v.getMapType();d[m]=d[m]||[],d[m].push(v)}}),ne(d,function(v,m){var w=xe(v,function(x){return x.get("nameMap")}),S=new o4(m,m,ie({nameMap:pe(w)},c(v[0])));S.zoomLimit=Bt.apply(null,xe(v,function(x){return x.get("scaleLimit")})),l.push(S),S.resize=ooe,S.resize(v[0],i),ne(v,function(x){x.coordinateSystem=S,$9e(S,x)})}),l},s.prototype.getFilledRegions=function(a,i,l,c){for(var d=(a||[]).slice(),v=Ht(),m=0;m<d.length;m++)v.set(d[m].name,d[m]);var w=zp.load(i,l,c);return ne(w.regions,function(S){var x=S.name,E=v.get(x),M=S.properties&&S.properties.echartsStyle;E||(E={name:x},d.push(E)),M&&le(E,M)}),d},s}(),soe=new K9e,Y9e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.init=function(i,l,c){var d=zp.getGeoResource(i.map);if(d&&d.type==="geoJSON"){var v=i.itemStyle=i.itemStyle||{};"color"in v||(v.color="#eee")}this.mergeDefaultAndTheme(i,c),zh(i,"label",["show"])},a.prototype.optionUpdated=function(){var i=this,l=this.option;l.regions=soe.getFilledRegions(l.regions,l.map,l.nameMap,l.nameProperty);var c={};this._optionModelMap=De(l.regions||[],function(d,v){var m=v.name;return m&&(d.set(m,new ta(v,i,i.ecModel)),v.selected&&(c[m]=!0)),d},Ht()),l.selectedMap||(l.selectedMap=c)},a.prototype.getRegionModel=function(i){return this._optionModelMap.get(i)||new ta(null,this,this.ecModel)},a.prototype.getFormattedLabel=function(i,l){var c=this.getRegionModel(i),d=l==="normal"?c.get(["label","formatter"]):c.get(["emphasis","label","formatter"]),v={name:i};if(qe(d))return v.status=l,d(v);if(Re(d))return d.replace("{a}",i??"")},a.prototype.setZoom=function(i){this.option.zoom=i},a.prototype.setCenter=function(i){this.option.center=i},a.prototype.select=function(i){var l=this.option,c=l.selectedMode;if(c){c!=="multiple"&&(l.selectedMap=null);var d=l.selectedMap||(l.selectedMap={});d[i]=!0}},a.prototype.unSelect=function(i){var l=this.option.selectedMap;l&&(l[i]=!1)},a.prototype.toggleSelected=function(i){this[this.isSelected(i)?"unSelect":"select"](i)},a.prototype.isSelected=function(i){var l=this.option.selectedMap;return!!(l&&l[i])},a.type="geo",a.layoutMode="box",a.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},a}(li);function loe(s,a){return s.pointToProjected?s.pointToProjected(a):s.pointToData(a)}function s4(s,a,i,l){var c=s.getZoom(),d=s.getCenter(),v=a.zoom,m=s.projectedToPoint?s.projectedToPoint(d):s.dataToPoint(d);if(a.dx!=null&&a.dy!=null&&(m[0]-=a.dx,m[1]-=a.dy,s.setCenter(loe(s,m),l)),v!=null){if(i){var w=i.min||0,S=i.max||1/0;v=Math.max(Math.min(c*v,S),w)/c}s.scaleX*=v,s.scaleY*=v;var x=(a.originX-s.x)*(v-1),E=(a.originY-s.y)*(v-1);s.x-=x,s.y-=E,s.updateTransform(),s.setCenter(loe(s,m),l),s.setZoom(v*c)}return{center:s.getCenter(),zoom:s.getZoom()}}var X9e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.focusBlurEnabled=!0,i}return a.prototype.init=function(i,l){this._api=l},a.prototype.render=function(i,l,c,d){if(this._model=i,!i.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Kae(c));var v=this._mapDraw;v.draw(i,l,c,this,d),v.group.on("click",this._handleRegionClick,this),v.group.silent=i.get("silent"),this.group.add(v.group),this.updateSelectStatus(i,l,c)},a.prototype._handleRegionClick=function(i){var l;c0(i.target,function(c){return(l=bt(c).eventData)!=null},!0),l&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:l.name})},a.prototype.updateSelectStatus=function(i,l,c){var d=this;this._mapDraw.group.traverse(function(v){var m=bt(v).eventData;if(m)return d._model.isSelected(m.name)?c.enterSelect(v):c.leaveSelect(v),!0})},a.prototype.findHighDownDispatchers=function(i){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(i,this._model)},a.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},a.type="geo",a}(ho);function Z9e(s,a,i){zp.registerMap(s,a,i)}function uoe(s){s.registerCoordinateSystem("geo",soe),s.registerComponentModel(Y9e),s.registerComponentView(X9e),s.registerImpl("registerMap",Z9e),s.registerImpl("getMap",function(i){return zp.getMapForUser(i)});function a(i,l){l.update="geo:updateSelectStatus",s.registerAction(l,function(c,d){var v={},m=[];return d.eachComponent({mainType:"geo",query:c},function(w){w[i](c.name);var S=w.coordinateSystem;ne(S.regions,function(E){v[E.name]=w.isSelected(E.name)||!1});var x=[];ne(v,function(E,M){v[M]&&x.push(M)}),m.push({geoIndex:w.componentIndex,name:x})}),{selected:v,allSelected:m,name:c.name}})}a("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),a("select",{type:"geoSelect",event:"geoselected"}),a("unSelect",{type:"geoUnSelect",event:"geounselected"}),s.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(i,l,c){var d=i.componentType||"series";l.eachComponent({mainType:d,query:i},function(v){var m=v.coordinateSystem;if(m.type==="geo"){var w=s4(m,i,v.get("scaleLimit"),c);v.setCenter&&v.setCenter(w.center),v.setZoom&&v.setZoom(w.zoom),d==="series"&&ne(v.seriesGroup,function(S){S.setCenter(w.center),S.setZoom(w.zoom)})}})})}function J9e(s){ui(uoe),s.registerChartView(V9e),s.registerSeriesModel(z9e),s.registerLayout(q9e),s.registerProcessor(s.PRIORITY.PROCESSOR.STATISTIC,j9e),hre("map",s.registerAction)}function eGe(s){var a=s;a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var i=[a],l,c;l=i.pop();)if(c=l.children,l.isExpand&&c.length)for(var d=c.length,v=d-1;v>=0;v--){var m=c[v];m.hierNode={defaultAncestor:null,ancestor:m,prelim:0,modifier:0,change:0,shift:0,i:v,thread:null},i.push(m)}}function tGe(s,a){var i=s.isExpand?s.children:[],l=s.parentNode.children,c=s.hierNode.i?l[s.hierNode.i-1]:null;if(i.length){iGe(s);var d=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;c?(s.hierNode.prelim=c.hierNode.prelim+a(s,c),s.hierNode.modifier=s.hierNode.prelim-d):s.hierNode.prelim=d}else c&&(s.hierNode.prelim=c.hierNode.prelim+a(s,c));s.parentNode.hierNode.defaultAncestor=aGe(s,c,s.parentNode.hierNode.defaultAncestor||l[0],a)}function rGe(s){var a=s.hierNode.prelim+s.parentNode.hierNode.modifier;s.setLayout({x:a},!0),s.hierNode.modifier+=s.parentNode.hierNode.modifier}function coe(s){return arguments.length?s:lGe}function OC(s,a){return s-=Math.PI/2,{x:a*Math.cos(s),y:a*Math.sin(s)}}function nGe(s,a){return ol(s.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function iGe(s){for(var a=s.children,i=a.length,l=0,c=0;--i>=0;){var d=a[i];d.hierNode.prelim+=l,d.hierNode.modifier+=l,c+=d.hierNode.change,l+=d.hierNode.shift+c}}function aGe(s,a,i,l){if(a){for(var c=s,d=s,v=d.parentNode.children[0],m=a,w=c.hierNode.modifier,S=d.hierNode.modifier,x=v.hierNode.modifier,E=m.hierNode.modifier;m=l4(m),d=u4(d),m&&d;){c=l4(c),v=u4(v),c.hierNode.ancestor=s;var M=m.hierNode.prelim+E-d.hierNode.prelim-S+l(m,d);M>0&&(sGe(oGe(m,s,i),s,M),S+=M,w+=M),E+=m.hierNode.modifier,S+=d.hierNode.modifier,w+=c.hierNode.modifier,x+=v.hierNode.modifier}m&&!l4(c)&&(c.hierNode.thread=m,c.hierNode.modifier+=E-w),d&&!u4(v)&&(v.hierNode.thread=d,v.hierNode.modifier+=S-x,i=s)}return i}function l4(s){var a=s.children;return a.length&&s.isExpand?a[a.length-1]:s.hierNode.thread}function u4(s){var a=s.children;return a.length&&s.isExpand?a[0]:s.hierNode.thread}function oGe(s,a,i){return s.hierNode.ancestor.parentNode===a.parentNode?s.hierNode.ancestor:i}function sGe(s,a,i){var l=i/(a.hierNode.i-s.hierNode.i);a.hierNode.change-=l,a.hierNode.shift+=i,a.hierNode.modifier+=i,a.hierNode.prelim+=i,s.hierNode.change+=l}function lGe(s,a){return s.parentNode===a.parentNode?1:2}var uGe=function(){function s(){this.parentPoint=[],this.childPoints=[]}return s}(),cGe=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},a.prototype.getDefaultShape=function(){return new uGe},a.prototype.buildPath=function(i,l){var c=l.childPoints,d=c.length,v=l.parentPoint,m=c[0],w=c[d-1];if(d===1){i.moveTo(v[0],v[1]),i.lineTo(m[0],m[1]);return}var S=l.orient,x=S==="TB"||S==="BT"?0:1,E=1-x,M=vr(l.forkPosition,1),D=[];D[x]=v[x],D[E]=v[E]+(w[E]-v[E])*M,i.moveTo(v[0],v[1]),i.lineTo(D[0],D[1]),i.moveTo(m[0],m[1]),D[x]=m[x],i.lineTo(D[0],D[1]),D[x]=w[x],i.lineTo(D[0],D[1]),i.lineTo(w[0],w[1]);for(var k=1;k<d-1;k++){var Q=c[k];i.moveTo(Q[0],Q[1]),D[x]=Q[x],i.lineTo(D[0],D[1])}},a}(Yn),fGe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i._mainGroup=new Lr,i}return a.prototype.init=function(i,l){this._controller=new DC(l.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},a.prototype.render=function(i,l,c){var d=i.getData(),v=i.layoutInfo,m=this._mainGroup,w=i.get("layout");w==="radial"?(m.x=v.x+v.width/2,m.y=v.y+v.height/2):(m.x=v.x,m.y=v.y),this._updateViewCoordSys(i,c),this._updateController(i,l,c);var S=this._data;d.diff(S).add(function(x){foe(d,x)&&hoe(d,x,null,m,i)}).update(function(x,E){var M=S.getItemGraphicEl(E);if(!foe(d,x)){M&&voe(S,E,M,m,i);return}hoe(d,x,M,m,i)}).remove(function(x){var E=S.getItemGraphicEl(x);E&&voe(S,x,E,m,i)}).execute(),this._nodeScaleRatio=i.get("nodeScaleRatio"),this._updateNodeAndLinkScale(i),i.get("expandAndCollapse")===!0&&d.eachItemGraphicEl(function(x,E){x.off("click").on("click",function(){c.dispatchAction({type:"treeExpandAndCollapse",seriesId:i.id,dataIndex:E})})}),this._data=d},a.prototype._updateViewCoordSys=function(i,l){var c=i.getData(),d=[];c.each(function(E){var M=c.getItemLayout(E);M&&!isNaN(M.x)&&!isNaN(M.y)&&d.push([+M.x,+M.y])});var v=[],m=[];Lp(d,v,m);var w=this._min,S=this._max;m[0]-v[0]===0&&(v[0]=w?w[0]:v[0]-1,m[0]=S?S[0]:m[0]+1),m[1]-v[1]===0&&(v[1]=w?w[1]:v[1]-1,m[1]=S?S[1]:m[1]+1);var x=i.coordinateSystem=new PC;x.zoomLimit=i.get("scaleLimit"),x.setBoundingRect(v[0],v[1],m[0]-v[0],m[1]-v[1]),x.setCenter(i.get("center"),l),x.setZoom(i.get("zoom")),this.group.attr({x:x.x,y:x.y,scaleX:x.scaleX,scaleY:x.scaleY}),this._min=v,this._max=m},a.prototype._updateController=function(i,l,c){var d=this,v=this._controller,m=this._controllerHost,w=this.group;v.setPointerChecker(function(S,x,E){var M=w.getBoundingRect();return M.applyTransform(w.transform),M.contain(x,E)&&!_L(S,c,i)}),v.enable(i.get("roam")),m.zoomLimit=i.get("scaleLimit"),m.zoom=i.coordinateSystem.getZoom(),v.off("pan").off("zoom").on("pan",function(S){e4(m,S.dx,S.dy),c.dispatchAction({seriesId:i.id,type:"treeRoam",dx:S.dx,dy:S.dy})}).on("zoom",function(S){t4(m,S.scale,S.originX,S.originY),c.dispatchAction({seriesId:i.id,type:"treeRoam",zoom:S.scale,originX:S.originX,originY:S.originY}),d._updateNodeAndLinkScale(i),c.updateLabelLayout()})},a.prototype._updateNodeAndLinkScale=function(i){var l=i.getData(),c=this._getNodeGlobalScale(i);l.eachItemGraphicEl(function(d,v){d.setSymbolScale(c)})},a.prototype._getNodeGlobalScale=function(i){var l=i.coordinateSystem;if(l.type!=="view")return 1;var c=this._nodeScaleRatio,d=l.scaleX||1,v=l.getZoom(),m=(v-1)*c+1;return m/d},a.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},a.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},a.type="tree",a}(xa);function foe(s,a){var i=s.getItemLayout(a);return i&&!isNaN(i.x)&&!isNaN(i.y)}function hoe(s,a,i,l,c){var d=!i,v=s.tree.getNodeByDataIndex(a),m=v.getModel(),w=v.getVisual("style").fill,S=v.isExpand===!1&&v.children.length!==0?w:"#fff",x=s.tree.root,E=v.parentNode===x?v:v.parentNode||v,M=s.getItemGraphicEl(E.dataIndex),D=E.getLayout(),k=M?{x:M.__oldX,y:M.__oldY,rawX:M.__radialOldRawX,rawY:M.__radialOldRawY}:D,Q=v.getLayout();d?(i=new SC(s,a,null,{symbolInnerColor:S,useNameLabel:!0}),i.x=k.x,i.y=k.y):i.updateData(s,a,null,{symbolInnerColor:S,useNameLabel:!0}),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=Q.rawX,i.__radialRawY=Q.rawY,l.add(i),s.setItemGraphicEl(a,i),i.__oldX=i.x,i.__oldY=i.y,Yi(i,{x:Q.x,y:Q.y},c);var V=i.getSymbolPath();if(c.get("layout")==="radial"){var $=x.children[0],Z=$.getLayout(),ee=$.children.length,fe=void 0,ve=void 0;if(Q.x===Z.x&&v.isExpand===!0&&$.children.length){var ge={x:($.children[0].getLayout().x+$.children[ee-1].getLayout().x)/2,y:($.children[0].getLayout().y+$.children[ee-1].getLayout().y)/2};fe=Math.atan2(ge.y-Z.y,ge.x-Z.x),fe<0&&(fe=Math.PI*2+fe),ve=ge.x<Z.x,ve&&(fe=fe-Math.PI)}else fe=Math.atan2(Q.y-Z.y,Q.x-Z.x),fe<0&&(fe=Math.PI*2+fe),v.children.length===0||v.children.length!==0&&v.isExpand===!1?(ve=Q.x<Z.x,ve&&(fe=fe-Math.PI)):(ve=Q.x>Z.x,ve||(fe=fe-Math.PI));var Se=ve?"left":"right",Ee=m.getModel("label"),Ie=Ee.get("rotate"),Le=Ie*(Math.PI/180),Fe=V.getTextContent();Fe&&(V.setTextConfig({position:Ee.get("position")||Se,rotation:Ie==null?-fe:Le,origin:"center"}),Fe.setStyle("verticalAlign","middle"))}var Je=m.get(["emphasis","focus"]),rt=Je==="relative"?zr(v.getAncestorsIndices(),v.getDescendantIndices()):Je==="ancestor"?v.getAncestorsIndices():Je==="descendant"?v.getDescendantIndices():null;rt&&(bt(i).focus=rt),hGe(c,v,x,i,k,D,Q,l),i.__edge&&(i.onHoverStateChange=function(at){if(at!=="blur"){var dt=v.parentNode&&s.getItemGraphicEl(v.parentNode.dataIndex);dt&&dt.hoverState===yi||eI(i.__edge,at)}})}function hGe(s,a,i,l,c,d,v,m){var w=a.getModel(),S=s.get("edgeShape"),x=s.get("layout"),E=s.getOrient(),M=s.get(["lineStyle","curveness"]),D=s.get("edgeForkPosition"),k=w.getModel("lineStyle").getLineStyle(),Q=l.__edge;if(S==="curve")a.parentNode&&a.parentNode!==i&&(Q||(Q=l.__edge=new Xw({shape:c4(x,E,M,c,c)})),Yi(Q,{shape:c4(x,E,M,d,v)},s));else if(S==="polyline")if(x==="orthogonal"){if(a!==i&&a.children&&a.children.length!==0&&a.isExpand===!0){for(var V=a.children,$=[],Z=0;Z<V.length;Z++){var ee=V[Z].getLayout();$.push([ee.x,ee.y])}Q||(Q=l.__edge=new cGe({shape:{parentPoint:[v.x,v.y],childPoints:[[v.x,v.y]],orient:E,forkPosition:D}})),Yi(Q,{shape:{parentPoint:[v.x,v.y],childPoints:$}},s)}}else throw new Error("The polyline edgeShape can only be used in orthogonal layout");Q&&!(S==="polyline"&&!a.isExpand)&&(Q.useStyle(he({strokeNoScale:!0,fill:null},k)),ku(Q,w,"lineStyle"),Ky(Q),m.add(Q))}function doe(s,a,i,l,c){var d=a.tree.root,v=Aoe(d,s),m=v.source,w=v.sourceLayout,S=a.getItemGraphicEl(s.dataIndex);if(S){var x=a.getItemGraphicEl(m.dataIndex),E=x.__edge,M=S.__edge||(m.isExpand===!1||m.children.length===1?E:void 0),D=l.get("edgeShape"),k=l.get("layout"),Q=l.get("orient"),V=l.get(["lineStyle","curveness"]);M&&(D==="curve"?im(M,{shape:c4(k,Q,V,w,w),style:{opacity:0}},l,{cb:function(){i.remove(M)},removeOpt:c}):D==="polyline"&&l.get("layout")==="orthogonal"&&im(M,{shape:{parentPoint:[w.x,w.y],childPoints:[[w.x,w.y]]},style:{opacity:0}},l,{cb:function(){i.remove(M)},removeOpt:c}))}}function Aoe(s,a){for(var i=a.parentNode===s?a:a.parentNode||a,l;l=i.getLayout(),l==null;)i=i.parentNode===s?i:i.parentNode||i;return{source:i,sourceLayout:l}}function voe(s,a,i,l,c){var d=s.tree.getNodeByDataIndex(a),v=s.tree.root,m=Aoe(v,d).sourceLayout,w={duration:c.get("animationDurationUpdate"),easing:c.get("animationEasingUpdate")};im(i,{x:m.x+1,y:m.y+1},c,{cb:function(){l.remove(i),s.setItemGraphicEl(a,null)},removeOpt:w}),i.fadeOut(null,s.hostModel,{fadeLabel:!0,animation:w}),d.children.forEach(function(S){doe(S,s,l,c,w)}),doe(d,s,l,c,w)}function c4(s,a,i,l,c){var d,v,m,w,S,x,E,M;if(s==="radial"){S=l.rawX,E=l.rawY,x=c.rawX,M=c.rawY;var D=OC(S,E),k=OC(S,E+(M-E)*i),Q=OC(x,M+(E-M)*i),V=OC(x,M);return{x1:D.x||0,y1:D.y||0,x2:V.x||0,y2:V.y||0,cpx1:k.x||0,cpy1:k.y||0,cpx2:Q.x||0,cpy2:Q.y||0}}else S=l.x,E=l.y,x=c.x,M=c.y,(a==="LR"||a==="RL")&&(d=S+(x-S)*i,v=E,m=x+(S-x)*i,w=M),(a==="TB"||a==="BT")&&(d=S,v=E+(M-E)*i,m=x,w=M+(E-M)*i);return{x1:S,y1:E,x2:x,y2:M,cpx1:d,cpy1:v,cpx2:m,cpy2:w}}var ud=Ri();function poe(s){var a=s.mainData,i=s.datas;i||(i={main:a},s.datasAttr={main:"data"}),s.datas=s.mainData=null,goe(a,i,s),ne(i,function(l){ne(a.TRANSFERABLE_METHODS,function(c){l.wrapMethod(c,ue(dGe,s))})}),a.wrapMethod("cloneShallow",ue(vGe,s)),ne(a.CHANGABLE_METHODS,function(l){a.wrapMethod(l,ue(AGe,s))}),_t(i[a.dataType]===a)}function dGe(s,a){if(mGe(this)){var i=ie({},ud(this).datas);i[this.dataType]=a,goe(a,i,s)}else f4(a,this.dataType,ud(this).mainData,s);return a}function AGe(s,a){return s.struct&&s.struct.update(),a}function vGe(s,a){return ne(ud(a).datas,function(i,l){i!==a&&f4(i.cloneShallow(),l,a,s)}),a}function pGe(s){var a=ud(this).mainData;return s==null||a==null?a:ud(a).datas[s]}function gGe(){var s=ud(this).mainData;return s==null?[{data:s}]:xe(Ne(ud(s).datas),function(a){return{type:a,data:ud(s).datas[a]}})}function mGe(s){return ud(s).mainData===s}function goe(s,a,i){ud(s).datas={},ne(a,function(l,c){f4(l,c,s,i)})}function f4(s,a,i,l){ud(i).datas[a]=s,ud(s).mainData=i,s.dataType=a,l.struct&&(s[l.structAttr]=l.struct,l.struct[l.datasAttr[a]]=s),s.getLinkedData=pGe,s.getLinkedDataAll=gGe}var yGe=function(){function s(a,i){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=a||"",this.hostTree=i}return s.prototype.isRemoved=function(){return this.dataIndex<0},s.prototype.eachNode=function(a,i,l){qe(a)&&(l=i,i=a,a=null),a=a||{},Re(a)&&(a={order:a});var c=a.order||"preorder",d=this[a.attr||"children"],v;c==="preorder"&&(v=i.call(l,this));for(var m=0;!v&&m<d.length;m++)d[m].eachNode(a,i,l);c==="postorder"&&i.call(l,this)},s.prototype.updateDepthAndHeight=function(a){var i=0;this.depth=a;for(var l=0;l<this.children.length;l++){var c=this.children[l];c.updateDepthAndHeight(a+1),c.height>i&&(i=c.height)}this.height=i+1},s.prototype.getNodeById=function(a){if(this.getId()===a)return this;for(var i=0,l=this.children,c=l.length;i<c;i++){var d=l[i].getNodeById(a);if(d)return d}},s.prototype.contains=function(a){if(a===this)return!0;for(var i=0,l=this.children,c=l.length;i<c;i++){var d=l[i].contains(a);if(d)return d}},s.prototype.getAncestors=function(a){for(var i=[],l=a?this:this.parentNode;l;)i.push(l),l=l.parentNode;return i.reverse(),i},s.prototype.getAncestorsIndices=function(){for(var a=[],i=this;i;)a.push(i.dataIndex),i=i.parentNode;return a.reverse(),a},s.prototype.getDescendantIndices=function(){var a=[];return this.eachNode(function(i){a.push(i.dataIndex)}),a},s.prototype.getValue=function(a){var i=this.hostTree.data;return i.getStore().get(i.getDimensionIndex(a||"value"),this.dataIndex)},s.prototype.setLayout=function(a,i){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,a,i)},s.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},s.prototype.getModel=function(a){if(!(this.dataIndex<0)){var i=this.hostTree,l=i.data.getItemModel(this.dataIndex);return l.getModel(a)}},s.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},s.prototype.setVisual=function(a,i){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,a,i)},s.prototype.getVisual=function(a){return this.hostTree.data.getItemVisual(this.dataIndex,a)},s.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},s.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},s.prototype.getChildIndex=function(){if(this.parentNode){for(var a=this.parentNode.children,i=0;i<a.length;++i)if(a[i]===this)return i;return-1}return-1},s.prototype.isAncestorOf=function(a){for(var i=a.parentNode;i;){if(i===this)return!0;i=i.parentNode}return!1},s.prototype.isDescendantOf=function(a){return a!==this&&a.isAncestorOf(this)},s}(),h4=function(){function s(a){this.type="tree",this._nodes=[],this.hostModel=a}return s.prototype.eachNode=function(a,i,l){this.root.eachNode(a,i,l)},s.prototype.getNodeByDataIndex=function(a){var i=this.data.getRawIndex(a);return this._nodes[i]},s.prototype.getNodeById=function(a){return this.root.getNodeById(a)},s.prototype.update=function(){for(var a=this.data,i=this._nodes,l=0,c=i.length;l<c;l++)i[l].dataIndex=-1;for(var l=0,c=a.count();l<c;l++)i[a.getRawIndex(l)].dataIndex=l},s.prototype.clearLayouts=function(){this.data.clearItemLayouts()},s.createTree=function(a,i,l){var c=new s(i),d=[],v=1;m(a);function m(x,E){var M=x.value;v=Math.max(v,Qe(M)?M.length:1),d.push(x);var D=new yGe(va(x.name,""),c);E?wGe(D,E):c.root=D,c._nodes.push(D);var k=x.children;if(k)for(var Q=0;Q<k.length;Q++)m(k[Q],D)}c.root.updateDepthAndHeight(0);var w=_b(d,{coordDimensions:["value"],dimensionsCount:v}).dimensions,S=new yc(w,i);return S.initData(d),l&&l(S),poe({mainData:S,struct:c,structAttr:"tree"}),c.update(),c},s}();function wGe(s,a){var i=a.children;s.parentNode!==a&&(i.push(s),s.parentNode=a)}function kC(s,a,i){if(s&&oe(a,s.type)>=0){var l=i.getData().tree.root,c=s.targetNode;if(Re(c)&&(c=l.getNodeById(c)),c&&l.contains(c))return{node:c};var d=s.targetNodeId;if(d!=null&&(c=l.getNodeById(d)))return{node:c}}}function moe(s){for(var a=[];s;)s=s.parentNode,s&&a.push(s);return a.reverse()}function d4(s,a){var i=moe(s);return oe(i,a)>=0}function EL(s,a){for(var i=[];s;){var l=s.dataIndex;i.push({name:s.name,dataIndex:l,value:a.getRawValue(l)}),s=s.parentNode}return i.reverse(),i}var bGe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.hasSymbolVisual=!0,i.ignoreStyleOnData=!0,i}return a.prototype.getInitialData=function(i){var l={name:i.name,children:i.data},c=i.leaves||{},d=new ta(c,this,this.ecModel),v=h4.createTree(l,this,m);function m(E){E.wrapMethod("getItemModel",function(M,D){var k=v.getNodeByDataIndex(D);return k&&k.children.length&&k.isExpand||(M.parentModel=d),M})}var w=0;v.eachNode("preorder",function(E){E.depth>w&&(w=E.depth)});var S=i.expandAndCollapse,x=S&&i.initialTreeDepth>=0?i.initialTreeDepth:w;return v.root.eachNode("preorder",function(E){var M=E.hostTree.data.getRawDataItem(E.dataIndex);E.isExpand=M&&M.collapsed!=null?!M.collapsed:E.depth<=x}),v.data},a.prototype.getOrient=function(){var i=this.get("orient");return i==="horizontal"?i="LR":i==="vertical"&&(i="TB"),i},a.prototype.setZoom=function(i){this.option.zoom=i},a.prototype.setCenter=function(i){this.option.center=i},a.prototype.formatTooltip=function(i,l,c){for(var d=this.getData().tree,v=d.root.children[0],m=d.getNodeByDataIndex(i),w=m.getValue(),S=m.name;m&&m!==v;)S=m.parentNode.name+"."+S,m=m.parentNode;return tu("nameValue",{name:S,value:w,noValue:isNaN(w)||w==null})},a.prototype.getDataParams=function(i){var l=s.prototype.getDataParams.apply(this,arguments),c=this.getData().tree.getNodeByDataIndex(i);return l.treeAncestors=EL(c,this),l.collapsed=!c.isExpand,l},a.type="series.tree",a.layoutMode="box",a.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},a}(Ua);function _Ge(s,a,i){for(var l=[s],c=[],d;d=l.pop();)if(c.push(d),d.isExpand){var v=d.children;if(v.length)for(var m=0;m<v.length;m++)l.push(v[m])}for(;d=c.pop();)a(d,i)}function FC(s,a){for(var i=[s],l;l=i.pop();)if(a(l),l.isExpand){var c=l.children;if(c.length)for(var d=c.length-1;d>=0;d--)i.push(c[d])}}function SGe(s,a){s.eachSeriesByType("tree",function(i){xGe(i,a)})}function xGe(s,a){var i=nGe(s,a);s.layoutInfo=i;var l=s.get("layout"),c=0,d=0,v=null;l==="radial"?(c=2*Math.PI,d=Math.min(i.height,i.width)/2,v=coe(function(ee,fe){return(ee.parentNode===fe.parentNode?1:2)/ee.depth})):(c=i.width,d=i.height,v=coe());var m=s.getData().tree.root,w=m.children[0];if(w){eGe(m),_Ge(w,tGe,v),m.hierNode.modifier=-w.hierNode.prelim,FC(w,rGe);var S=w,x=w,E=w;FC(w,function(ee){var fe=ee.getLayout().x;fe<S.getLayout().x&&(S=ee),fe>x.getLayout().x&&(x=ee),ee.depth>E.depth&&(E=ee)});var M=S===x?1:v(S,x)/2,D=M-S.getLayout().x,k=0,Q=0,V=0,$=0;if(l==="radial")k=c/(x.getLayout().x+M+D),Q=d/(E.depth-1||1),FC(w,function(ee){V=(ee.getLayout().x+D)*k,$=(ee.depth-1)*Q;var fe=OC(V,$);ee.setLayout({x:fe.x,y:fe.y,rawX:V,rawY:$},!0)});else{var Z=s.getOrient();Z==="RL"||Z==="LR"?(Q=d/(x.getLayout().x+M+D),k=c/(E.depth-1||1),FC(w,function(ee){$=(ee.getLayout().x+D)*Q,V=Z==="LR"?(ee.depth-1)*k:c-(ee.depth-1)*k,ee.setLayout({x:V,y:$},!0)})):(Z==="TB"||Z==="BT")&&(k=c/(x.getLayout().x+M+D),Q=d/(E.depth-1||1),FC(w,function(ee){V=(ee.getLayout().x+D)*k,$=Z==="TB"?(ee.depth-1)*Q:d-(ee.depth-1)*Q,ee.setLayout({x:V,y:$},!0)}))}}}function CGe(s){s.eachSeriesByType("tree",function(a){var i=a.getData(),l=i.tree;l.eachNode(function(c){var d=c.getModel(),v=d.getModel("itemStyle").getItemStyle(),m=i.ensureUniqueItemVisual(c.dataIndex,"style");ie(m,v)})})}function TGe(s){s.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(a,i){i.eachComponent({mainType:"series",subType:"tree",query:a},function(l){var c=a.dataIndex,d=l.getData().tree,v=d.getNodeByDataIndex(c);v.isExpand=!v.isExpand})}),s.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(a,i,l){i.eachComponent({mainType:"series",subType:"tree",query:a},function(c){var d=c.coordinateSystem,v=s4(d,a,void 0,l);c.setCenter&&c.setCenter(v.center),c.setZoom&&c.setZoom(v.zoom)})})}function EGe(s){s.registerChartView(fGe),s.registerSeriesModel(bGe),s.registerLayout(SGe),s.registerVisual(CGe),TGe(s)}var yoe=["treemapZoomToNode","treemapRender","treemapMove"];function BGe(s){for(var a=0;a<yoe.length;a++)s.registerAction({type:yoe[a],update:"updateView"},Ct);s.registerAction({type:"treemapRootToNode",update:"updateView"},function(i,l){l.eachComponent({mainType:"series",subType:"treemap",query:i},c);function c(d,v){var m=["treemapZoomToNode","treemapRootToNode"],w=kC(i,m,d);if(w){var S=d.getViewRoot();S&&(i.direction=d4(S,w.node)?"rollUp":"drillDown"),d.resetViewRoot(w.node)}}})}function woe(s){var a=s.getData(),i=a.tree,l={};i.eachNode(function(c){for(var d=c;d&&d.depth>1;)d=d.parentNode;var v=fN(s.ecModel,d.name||d.dataIndex+"",l);c.setVisual("decal",v)})}var IGe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.preventUsingHoverLayer=!0,i}return a.prototype.getInitialData=function(i,l){var c={name:i.name,children:i.data};boe(c);var d=i.levels||[],v=this.designatedVisualItemStyle={},m=new ta({itemStyle:v},this,l);d=i.levels=LGe(d,l);var w=xe(d||[],function(E){return new ta(E,m,l)},this),S=h4.createTree(c,this,x);function x(E){E.wrapMethod("getItemModel",function(M,D){var k=S.getNodeByDataIndex(D),Q=k?w[k.depth]:null;return M.parentModel=Q||m,M})}return S.data},a.prototype.optionUpdated=function(){this.resetViewRoot()},a.prototype.formatTooltip=function(i,l,c){var d=this.getData(),v=this.getRawValue(i),m=d.getName(i);return tu("nameValue",{name:m,value:v})},a.prototype.getDataParams=function(i){var l=s.prototype.getDataParams.apply(this,arguments),c=this.getData().tree.getNodeByDataIndex(i);return l.treeAncestors=EL(c,this),l.treePathInfo=l.treeAncestors,l},a.prototype.setLayoutInfo=function(i){this.layoutInfo=this.layoutInfo||{},ie(this.layoutInfo,i)},a.prototype.mapIdToIndex=function(i){var l=this._idIndexMap;l||(l=this._idIndexMap=Ht(),this._idIndexMapCount=0);var c=l.get(i);return c==null&&l.set(i,c=this._idIndexMapCount++),c},a.prototype.getViewRoot=function(){return this._viewRoot},a.prototype.resetViewRoot=function(i){i?this._viewRoot=i:i=this._viewRoot;var l=this.getRawData().tree.root;(!i||i!==l&&!l.contains(i))&&(this._viewRoot=l)},a.prototype.enableAriaDecal=function(){woe(this)},a.type="series.treemap",a.layoutMode="box",a.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,scaleLimit:null,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:[]},a}(Ua);function boe(s){var a=0;ne(s.children,function(l){boe(l);var c=l.value;Qe(c)&&(c=c[0]),a+=c});var i=s.value;Qe(i)&&(i=i[0]),(i==null||isNaN(i))&&(i=a),i<0&&(i=0),Qe(s.value)?s.value[0]=i:s.value=i}function LGe(s,a){var i=Ni(a.get("color")),l=Ni(a.get(["aria","decal","decals"]));if(i){s=s||[];var c,d;ne(s,function(m){var w=new ta(m),S=w.get("color"),x=w.get("decal");(w.get(["itemStyle","color"])||S&&S!=="none")&&(c=!0),(w.get(["itemStyle","decal"])||x&&x!=="none")&&(d=!0)});var v=s[0]||(s[0]={});return c||(v.color=i.slice()),!d&&l&&(v.decal=l.slice()),s}}var MGe=8,_oe=8,A4=5,DGe=function(){function s(a){this.group=new Lr,a.add(this.group)}return s.prototype.render=function(a,i,l,c){var d=a.getModel("breadcrumb"),v=this.group;if(v.removeAll(),!(!d.get("show")||!l)){var m=d.getModel("itemStyle"),w=d.getModel("emphasis"),S=m.getModel("textStyle"),x=w.getModel(["itemStyle","textStyle"]),E={pos:{left:d.get("left"),right:d.get("right"),top:d.get("top"),bottom:d.get("bottom")},box:{width:i.getWidth(),height:i.getHeight()},emptyItemWidth:d.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(l,E,S),this._renderContent(a,E,m,w,S,x,c),xI(v,E.pos,E.box)}},s.prototype._prepare=function(a,i,l){for(var c=a;c;c=c.parentNode){var d=va(c.getModel().get("name"),""),v=l.getTextRect(d),m=Math.max(v.width+MGe*2,i.emptyItemWidth);i.totalWidth+=m+_oe,i.renderList.push({node:c,text:d,width:m})}},s.prototype._renderContent=function(a,i,l,c,d,v,m){for(var w=0,S=i.emptyItemWidth,x=a.get(["breadcrumb","height"]),E=b6e(i.pos,i.box),M=i.totalWidth,D=i.renderList,k=c.getModel("itemStyle").getItemStyle(),Q=D.length-1;Q>=0;Q--){var V=D[Q],$=V.node,Z=V.width,ee=V.text;M>E.width&&(M-=Z-S,Z=S,ee=null);var fe=new dc({shape:{points:RGe(w,0,Z,x,Q===D.length-1,Q===0)},style:he(l.getItemStyle(),{lineJoin:"bevel"}),textContent:new be({style:Xa(d,{text:ee})}),textConfig:{position:"inside"},z2:qw*1e4,onclick:ue(m,$)});fe.disableLabelAnimation=!0,fe.getTextContent().ensureState("emphasis").style=Xa(v,{text:ee}),fe.ensureState("emphasis").style=k,as(fe,c.get("focus"),c.get("blurScope"),c.get("disabled")),this.group.add(fe),PGe(fe,a,$),w+=Z+_oe}},s.prototype.remove=function(){this.group.removeAll()},s}();function RGe(s,a,i,l,c,d){var v=[[c?s:s-A4,a],[s+i,a],[s+i,a+l],[c?s:s-A4,a+l]];return!d&&v.splice(2,0,[s+i+A4,a+l/2]),!c&&v.push([s,a+l/2]),v}function PGe(s,a,i){bt(s).eventData={componentType:"series",componentSubType:"treemap",componentIndex:a.componentIndex,seriesIndex:a.seriesIndex,seriesName:a.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&EL(i,a)}}var OGe=function(){function s(){this._storage=[],this._elExistsMap={}}return s.prototype.add=function(a,i,l,c,d){return this._elExistsMap[a.id]?!1:(this._elExistsMap[a.id]=!0,this._storage.push({el:a,target:i,duration:l,delay:c,easing:d}),!0)},s.prototype.finished=function(a){return this._finishedCallback=a,this},s.prototype.start=function(){for(var a=this,i=this._storage.length,l=function(){i--,i<=0&&(a._storage.length=0,a._elExistsMap={},a._finishedCallback&&a._finishedCallback())},c=0,d=this._storage.length;c<d;c++){var v=this._storage[c];v.el.animateTo(v.target,{duration:v.duration,delay:v.delay,easing:v.easing,setToFinal:!0,done:l,aborted:l})}return this},s}();function kGe(){return new OGe}var v4=Lr,Soe=R,xoe=3,Coe="label",Toe="upperLabel",FGe=qw*10,NGe=qw*2,UGe=qw*3,I0=vv([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Eoe=function(s){var a=I0(s);return a.stroke=a.fill=a.lineWidth=null,a},BL=Ri(),HGe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i._state="ready",i._storage=NC(),i}return a.prototype.render=function(i,l,c,d){var v=l.findComponents({mainType:"series",subType:"treemap",query:d});if(!(oe(v,i)<0)){this.seriesModel=i,this.api=c,this.ecModel=l;var m=["treemapZoomToNode","treemapRootToNode"],w=kC(d,m,i),S=d&&d.type,x=i.layoutInfo,E=!this._oldTree,M=this._storage,D=S==="treemapRootToNode"&&w&&M?{rootNodeGroup:M.nodeGroup[w.node.getRawIndex()],direction:d.direction}:null,k=this._giveContainerGroup(x),Q=i.get("animation"),V=this._doRender(k,i,D);Q&&!E&&(!S||S==="treemapZoomToNode"||S==="treemapRootToNode")?this._doAnimation(k,V,i,D):V.renderFinally(),this._resetController(c),this._renderBreadcrumb(i,c,w)}},a.prototype._giveContainerGroup=function(i){var l=this._containerGroup;return l||(l=this._containerGroup=new v4,this._initEvents(l),this.group.add(l)),l.x=i.x,l.y=i.y,l},a.prototype._doRender=function(i,l,c){var d=l.getData().tree,v=this._oldTree,m=NC(),w=NC(),S=this._storage,x=[];function E(Z,ee,fe,ve){return QGe(l,w,S,c,m,x,Z,ee,fe,ve)}Q(d.root?[d.root]:[],v&&v.root?[v.root]:[],i,d===v||!v,0);var M=V(S);if(this._oldTree=d,this._storage=w,this._controllerHost){var D=this.seriesModel.layoutInfo,k=d.root.getLayout();k.width===D.width&&k.height===D.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:m,willDeleteEls:M,renderFinally:$};function Q(Z,ee,fe,ve,ge){ve?(ee=Z,ne(Z,function(Ie,Le){!Ie.isRemoved()&&Ee(Le,Le)})):new Hp(ee,Z,Se,Se).add(Ee).update(Ee).remove(ue(Ee,null)).execute();function Se(Ie){return Ie.getId()}function Ee(Ie,Le){var Fe=Ie!=null?Z[Ie]:null,Je=Le!=null?ee[Le]:null,rt=E(Fe,Je,fe,ge);rt&&Q(Fe&&Fe.viewChildren||[],Je&&Je.viewChildren||[],rt,ve,ge+1)}}function V(Z){var ee=NC();return Z&&ne(Z,function(fe,ve){var ge=ee[ve];ne(fe,function(Se){Se&&(ge.push(Se),BL(Se).willDelete=!0)})}),ee}function $(){ne(M,function(Z){ne(Z,function(ee){ee.parent&&ee.parent.remove(ee)})}),ne(x,function(Z){Z.invisible=!0,Z.dirty()})}},a.prototype._doAnimation=function(i,l,c,d){var v=c.get("animationDurationUpdate"),m=c.get("animationEasing"),w=(qe(v)?0:v)||0,S=(qe(m)?null:m)||"cubicOut",x=kGe();ne(l.willDeleteEls,function(E,M){ne(E,function(D,k){if(!D.invisible){var Q=D.parent,V,$=BL(Q);if(d&&d.direction==="drillDown")V=Q===d.rootNodeGroup?{shape:{x:0,y:0,width:$.nodeWidth,height:$.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var Z=0,ee=0;$.willDelete||(Z=$.nodeWidth/2,ee=$.nodeHeight/2),V=M==="nodeGroup"?{x:Z,y:ee,style:{opacity:0}}:{shape:{x:Z,y:ee,width:0,height:0},style:{opacity:0}}}V&&x.add(D,V,w,0,S)}})}),ne(this._storage,function(E,M){ne(E,function(D,k){var Q=l.lastsForAnimation[M][k],V={};Q&&(D instanceof Lr?Q.oldX!=null&&(V.x=D.x,V.y=D.y,D.x=Q.oldX,D.y=Q.oldY):(Q.oldShape&&(V.shape=ie({},D.shape),D.setShape(Q.oldShape)),Q.fadein?(D.setStyle("opacity",0),V.style={opacity:1}):D.style.opacity!==1&&(V.style={opacity:1})),x.add(D,V,w,0,S))})},this),this._state="animating",x.finished(Ue(function(){this._state="ready",l.renderFinally()},this)).start()},a.prototype._resetController=function(i){var l=this._controller,c=this._controllerHost;c||(this._controllerHost={target:this.group},c=this._controllerHost),l||(l=this._controller=new DC(i.getZr()),l.enable(this.seriesModel.get("roam")),c.zoomLimit=this.seriesModel.get("scaleLimit"),c.zoom=this.seriesModel.get("zoom"),l.on("pan",Ue(this._onPan,this)),l.on("zoom",Ue(this._onZoom,this)));var d=new Bn(0,0,i.getWidth(),i.getHeight());l.setPointerChecker(function(v,m,w){return d.contain(m,w)})},a.prototype._clearController=function(){var i=this._controller;this._controllerHost=null,i&&(i.dispose(),i=null)},a.prototype._onPan=function(i){if(this._state!=="animating"&&(Math.abs(i.dx)>xoe||Math.abs(i.dy)>xoe)){var l=this.seriesModel.getData().tree.root;if(!l)return;var c=l.getLayout();if(!c)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:c.x+i.dx,y:c.y+i.dy,width:c.width,height:c.height}})}},a.prototype._onZoom=function(i){var l=i.originX,c=i.originY,d=i.scale;if(this._state!=="animating"){var v=this.seriesModel.getData().tree.root;if(!v)return;var m=v.getLayout();if(!m)return;var w=new Bn(m.x,m.y,m.width,m.height),S=null,x=this._controllerHost;S=x.zoomLimit;var E=x.zoom=x.zoom||1;if(E*=d,S){var M=S.min||0,D=S.max||1/0;E=Math.max(Math.min(D,E),M)}var k=E/x.zoom;x.zoom=E;var Q=this.seriesModel.layoutInfo;l-=Q.x,c-=Q.y;var V=gn();Ai(V,V,[-l,-c]),_l(V,V,[k,k]),Ai(V,V,[l,c]),w.applyTransform(V),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:w.x,y:w.y,width:w.width,height:w.height}})}},a.prototype._initEvents=function(i){var l=this;i.on("click",function(c){if(l._state==="ready"){var d=l.seriesModel.get("nodeClick",!0);if(d){var v=l.findTarget(c.offsetX,c.offsetY);if(v){var m=v.node;if(m.getLayout().isLeafRoot)l._rootToNode(v);else if(d==="zoomToNode")l._zoomToNode(v);else if(d==="link"){var w=m.hostTree.data.getItemModel(m.dataIndex),S=w.get("link",!0),x=w.get("target",!0)||"blank";S&&_I(S,x)}}}}},this)},a.prototype._renderBreadcrumb=function(i,l,c){var d=this;c||(c=i.get("leafDepth",!0)!=null?{node:i.getViewRoot()}:this.findTarget(l.getWidth()/2,l.getHeight()/2),c||(c={node:i.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new DGe(this.group))).render(i,l,c.node,function(v){d._state!=="animating"&&(d4(i.getViewRoot(),v)?d._rootToNode({node:v}):d._zoomToNode({node:v}))})},a.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=NC(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},a.prototype.dispose=function(){this._clearController()},a.prototype._zoomToNode=function(i){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:i.node})},a.prototype._rootToNode=function(i){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:i.node})},a.prototype.findTarget=function(i,l){var c,d=this.seriesModel.getViewRoot();return d.eachNode({attr:"viewChildren",order:"preorder"},function(v){var m=this._storage.background[v.getRawIndex()];if(m){var w=m.transformCoordToLocal(i,l),S=m.shape;if(S.x<=w[0]&&w[0]<=S.x+S.width&&S.y<=w[1]&&w[1]<=S.y+S.height)c={node:v,offsetX:w[0],offsetY:w[1]};else return!1}},this),c},a.type="treemap",a}(xa);function NC(){return{nodeGroup:[],background:[],content:[]}}function QGe(s,a,i,l,c,d,v,m,w,S){if(!v)return;var x=v.getLayout(),E=s.getData(),M=v.getModel();if(E.setItemGraphicEl(v.dataIndex,null),!x||!x.isInView)return;var D=x.width,k=x.height,Q=x.borderWidth,V=x.invisible,$=v.getRawIndex(),Z=m&&m.getRawIndex(),ee=v.viewChildren,fe=x.upperHeight,ve=ee&&ee.length,ge=M.getModel("itemStyle"),Se=M.getModel(["emphasis","itemStyle"]),Ee=M.getModel(["blur","itemStyle"]),Ie=M.getModel(["select","itemStyle"]),Le=ge.get("borderRadius")||0,Fe=Un("nodeGroup",v4);if(!Fe)return;if(w.add(Fe),Fe.x=x.x||0,Fe.y=x.y||0,Fe.markRedraw(),BL(Fe).nodeWidth=D,BL(Fe).nodeHeight=k,x.isAboveViewRoot)return Fe;var Je=Un("background",Soe,S,NGe);Je&&ur(Fe,Je,ve&&x.upperLabelHeight);var rt=M.getModel("emphasis"),at=rt.get("focus"),dt=rt.get("blurScope"),wt=rt.get("disabled"),zt=at==="ancestor"?v.getAncestorsIndices():at==="descendant"?v.getDescendantIndices():at;if(ve)nm(Fe)&&Yy(Fe,!1),Je&&(Yy(Je,!wt),E.setItemGraphicEl(v.dataIndex,Je),IF(Je,zt,dt));else{var Ut=Un("content",Soe,S,UGe);Ut&&wr(Fe,Ut),Je.disableMorphing=!0,Je&&nm(Je)&&Yy(Je,!1),Yy(Fe,!wt),E.setItemGraphicEl(v.dataIndex,Fe);var Yt=M.getShallow("cursor");Yt&&Ut.attr("cursor",Yt),IF(Fe,zt,dt)}return Fe;function ur(ei,Cn,di){var tn=bt(Cn);if(tn.dataIndex=v.dataIndex,tn.seriesIndex=s.seriesIndex,Cn.setShape({x:0,y:0,width:D,height:k,r:Le}),V)Or(Cn);else{Cn.invisible=!1;var Hn=v.getVisual("style"),vo=Hn.stroke,Ca=Eoe(ge);Ca.fill=vo;var Za=I0(Se);Za.fill=Se.get("borderColor");var Go=I0(Ee);Go.fill=Ee.get("borderColor");var iu=I0(Ie);if(iu.fill=Ie.get("borderColor"),di){var mh=D-2*Q;vn(Cn,vo,Hn.opacity,{x:Q,y:0,width:mh,height:fe})}else Cn.removeTextContent();Cn.setStyle(Ca),Cn.ensureState("emphasis").style=Za,Cn.ensureState("blur").style=Go,Cn.ensureState("select").style=iu,Ky(Cn)}ei.add(Cn)}function wr(ei,Cn){var di=bt(Cn);di.dataIndex=v.dataIndex,di.seriesIndex=s.seriesIndex;var tn=Math.max(D-2*Q,0),Hn=Math.max(k-2*Q,0);if(Cn.culling=!0,Cn.setShape({x:Q,y:Q,width:tn,height:Hn,r:Le}),V)Or(Cn);else{Cn.invisible=!1;var vo=v.getVisual("style"),Ca=vo.fill,Za=Eoe(ge);Za.fill=Ca,Za.decal=vo.decal;var Go=I0(Se),iu=I0(Ee),mh=I0(Ie);vn(Cn,Ca,vo.opacity,null),Cn.setStyle(Za),Cn.ensureState("emphasis").style=Go,Cn.ensureState("blur").style=iu,Cn.ensureState("select").style=mh,Ky(Cn)}ei.add(Cn)}function Or(ei){!ei.invisible&&d.push(ei)}function vn(ei,Cn,di,tn){var Hn=M.getModel(tn?Toe:Coe),vo=va(M.get("name"),null),Ca=Hn.getShallow("show");Fu(ei,eu(M,tn?Toe:Coe),{defaultText:Ca?vo:null,inheritColor:Cn,defaultOpacity:di,labelFetcher:s,labelDataIndex:v.dataIndex});var Za=ei.getTextContent();if(Za){var Go=Za.style,iu=lr(Go.padding||0);tn&&(ei.setTextConfig({layoutRect:tn}),Za.disableLabelLayout=!0),Za.beforeUpdate=function(){var Of=Math.max((tn?tn.width:ei.shape.width)-iu[1]-iu[3],0),U0=Math.max((tn?tn.height:ei.shape.height)-iu[0]-iu[2],0);(Go.width!==Of||Go.height!==U0)&&Za.setStyle({width:Of,height:U0})},Go.truncateMinChar=2,Go.lineOverflow="truncate",wn(Go,tn,x);var mh=Za.getState("emphasis");wn(mh?mh.style:null,tn,x)}}function wn(ei,Cn,di){var tn=ei?ei.text:null;if(!Cn&&di.isLeafRoot&&tn!=null){var Hn=s.get("drillDownIcon",!0);ei.text=Hn?Hn+" "+tn:tn}}function Un(ei,Cn,di,tn){var Hn=Z!=null&&i[ei][Z],vo=c[ei];return Hn?(i[ei][Z]=null,Ha(vo,Hn)):V||(Hn=new Cn,Hn instanceof en&&(Hn.z2=VGe(di,tn)),Cs(vo,Hn)),a[ei][$]=Hn}function Ha(ei,Cn){var di=ei[$]={};Cn instanceof v4?(di.oldX=Cn.x,di.oldY=Cn.y):di.oldShape=ie({},Cn.shape)}function Cs(ei,Cn){var di=ei[$]={},tn=v.parentNode,Hn=Cn instanceof Lr;if(tn&&(!l||l.direction==="drillDown")){var vo=0,Ca=0,Za=c.background[tn.getRawIndex()];!l&&Za&&Za.oldShape&&(vo=Za.oldShape.width,Ca=Za.oldShape.height),Hn?(di.oldX=0,di.oldY=Ca):di.oldShape={x:vo,y:Ca,width:0,height:0}}di.fadein=!Hn}}function VGe(s,a){return s*FGe+a}var UC=ne,zGe=Pe,IL=-1,nu=function(){function s(a){var i=a.mappingMethod,l=a.type,c=this.option=ae(a);this.type=l,this.mappingMethod=i,this._normalizeData=qGe[i];var d=s.visualHandlers[l];this.applyVisual=d.applyVisual,this.getColorMapper=d.getColorMapper,this._normalizedToVisual=d._normalizedToVisual[i],i==="piecewise"?(p4(c),GGe(c)):i==="category"?c.categories?jGe(c):p4(c,!0):(_t(i!=="linear"||c.dataExtent),p4(c))}return s.prototype.mapValueToVisual=function(a){var i=this._normalizeData(a);return this._normalizedToVisual(i,a)},s.prototype.getNormalizer=function(){return Ue(this._normalizeData,this)},s.listVisualTypes=function(){return Ne(s.visualHandlers)},s.isValidType=function(a){return s.visualHandlers.hasOwnProperty(a)},s.eachVisual=function(a,i,l){Pe(a)?ne(a,i,l):i.call(l,a)},s.mapVisual=function(a,i,l){var c,d=Qe(a)?[]:Pe(a)?{}:(c=!0,null);return s.eachVisual(a,function(v,m){var w=i.call(l,v,m);c?d=w:d[m]=w}),d},s.retrieveVisuals=function(a){var i={},l;return a&&UC(s.visualHandlers,function(c,d){a.hasOwnProperty(d)&&(i[d]=a[d],l=!0)}),l?i:null},s.prepareVisualTypes=function(a){if(Qe(a))a=a.slice();else if(zGe(a)){var i=[];UC(a,function(l,c){i.push(c)}),a=i}else return[];return a.sort(function(l,c){return c==="color"&&l!=="color"&&l.indexOf("color")===0?1:-1}),a},s.dependsOn=function(a,i){return i==="color"?!!(a&&a.indexOf(i)===0):a===i},s.findPieceIndex=function(a,i,l){for(var c,d=1/0,v=0,m=i.length;v<m;v++){var w=i[v].value;if(w!=null){if(w===a||Re(w)&&w===a+"")return v;l&&M(w,v)}}for(var v=0,m=i.length;v<m;v++){var S=i[v],x=S.interval,E=S.close;if(x){if(x[0]===-1/0){if(ML(E[1],a,x[1]))return v}else if(x[1]===1/0){if(ML(E[0],x[0],a))return v}else if(ML(E[0],x[0],a)&&ML(E[1],a,x[1]))return v;l&&M(x[0],v),l&&M(x[1],v)}}if(l)return a===1/0?i.length-1:a===-1/0?0:c;function M(D,k){var Q=Math.abs(D-a);Q<d&&(d=Q,c=k)}},s.visualHandlers={color:{applyVisual:HC("color"),getColorMapper:function(){var a=this.option;return Ue(a.mappingMethod==="category"?function(i,l){return!l&&(i=this._normalizeData(i)),QC.call(this,i)}:function(i,l,c){var d=!!c;return!l&&(i=this._normalizeData(i)),c=Hr(i,a.parsedVisual,c),d?c:Qr(c,"rgba")},this)},_normalizedToVisual:{linear:function(a){return Qr(Hr(a,this.option.parsedVisual),"rgba")},category:QC,piecewise:function(a,i){var l=m4.call(this,i);return l==null&&(l=Qr(Hr(a,this.option.parsedVisual),"rgba")),l},fixed:L0}},colorHue:LL(function(a,i){return In(a,i)}),colorSaturation:LL(function(a,i){return In(a,null,i)}),colorLightness:LL(function(a,i){return In(a,null,null,i)}),colorAlpha:LL(function(a,i){return $n(a,i)}),decal:{applyVisual:HC("decal"),_normalizedToVisual:{linear:null,category:QC,piecewise:null,fixed:null}},opacity:{applyVisual:HC("opacity"),_normalizedToVisual:g4([0,1])},liftZ:{applyVisual:HC("liftZ"),_normalizedToVisual:{linear:L0,category:L0,piecewise:L0,fixed:L0}},symbol:{applyVisual:function(a,i,l){var c=this.mapValueToVisual(a);l("symbol",c)},_normalizedToVisual:{linear:Boe,category:QC,piecewise:function(a,i){var l=m4.call(this,i);return l==null&&(l=Boe.call(this,a)),l},fixed:L0}},symbolSize:{applyVisual:HC("symbolSize"),_normalizedToVisual:g4([0,1])}},s}();function GGe(s){var a=s.pieceList;s.hasSpecialVisual=!1,ne(a,function(i,l){i.originIndex=l,i.visual!=null&&(s.hasSpecialVisual=!0)})}function jGe(s){var a=s.categories,i=s.categoryMap={},l=s.visual;if(UC(a,function(v,m){i[v]=m}),!Qe(l)){var c=[];Pe(l)?UC(l,function(v,m){var w=i[m];c[w??IL]=v}):c[IL]=l,l=Ioe(s,c)}for(var d=a.length-1;d>=0;d--)l[d]==null&&(delete i[a[d]],a.pop())}function p4(s,a){var i=s.visual,l=[];Pe(i)?UC(i,function(d){l.push(d)}):i!=null&&l.push(i);var c={color:1,symbol:1};!a&&l.length===1&&!c.hasOwnProperty(s.type)&&(l[1]=l[0]),Ioe(s,l)}function LL(s){return{applyVisual:function(a,i,l){var c=this.mapValueToVisual(a);l("color",s(i("color"),c))},_normalizedToVisual:g4([0,1])}}function Boe(s){var a=this.option.visual;return a[Math.round(ln(s,[0,1],[0,a.length-1],!0))]||{}}function HC(s){return function(a,i,l){l(s,this.mapValueToVisual(a))}}function QC(s){var a=this.option.visual;return a[this.option.loop&&s!==IL?s%a.length:s]}function L0(){return this.option.visual[0]}function g4(s){return{linear:function(a){return ln(a,s,this.option.visual,!0)},category:QC,piecewise:function(a,i){var l=m4.call(this,i);return l==null&&(l=ln(a,s,this.option.visual,!0)),l},fixed:L0}}function m4(s){var a=this.option,i=a.pieceList;if(a.hasSpecialVisual){var l=nu.findPieceIndex(s,i),c=i[l];if(c&&c.visual)return c.visual[this.type]}}function Ioe(s,a){return s.visual=a,s.type==="color"&&(s.parsedVisual=xe(a,function(i){var l=ar(i);return l||Ya("'"+i+"' is an illegal color, fallback to '#000000'",!0),l||[0,0,0,1]})),a}var qGe={linear:function(s){return ln(s,this.option.dataExtent,[0,1],!0)},piecewise:function(s){var a=this.option.pieceList,i=nu.findPieceIndex(s,a,!0);if(i!=null)return ln(i,[0,a.length-1],[0,1],!0)},category:function(s){var a=this.option.categories?this.option.categoryMap[s]:s;return a??IL},fixed:Ct};function ML(s,a,i){return s?a<=i:a<i}var WGe="itemStyle",Loe=Ri(),$Ge={seriesType:"treemap",reset:function(s){var a=s.getData().tree,i=a.root;i.isRemoved()||Moe(i,{},s.getViewRoot().getAncestors(),s)}};function Moe(s,a,i,l){var c=s.getModel(),d=s.getLayout(),v=s.hostTree.data;if(!(!d||d.invisible||!d.isInView)){var m=c.getModel(WGe),w=KGe(m,a,l),S=v.ensureUniqueItemVisual(s.dataIndex,"style"),x=m.get("borderColor"),E=m.get("borderColorSaturation"),M;E!=null&&(M=Doe(w),x=YGe(E,M)),S.stroke=x;var D=s.viewChildren;if(!D||!D.length)M=Doe(w),S.fill=M;else{var k=XGe(s,c,d,m,w,D);ne(D,function(Q,V){if(Q.depth>=i.length||Q===i[Q.depth]){var $=ZGe(c,w,Q,V,k,l);Moe(Q,$,i,l)}})}}}function KGe(s,a,i){var l=ie({},a),c=i.designatedVisualItemStyle;return ne(["color","colorAlpha","colorSaturation"],function(d){c[d]=a[d];var v=s.get(d);c[d]=null,v!=null&&(l[d]=v)}),l}function Doe(s){var a=y4(s,"color");if(a){var i=y4(s,"colorAlpha"),l=y4(s,"colorSaturation");return l&&(a=In(a,null,null,l)),i&&(a=$n(a,i)),a}}function YGe(s,a){return a!=null?In(a,null,null,s):null}function y4(s,a){var i=s[a];if(i!=null&&i!=="none")return i}function XGe(s,a,i,l,c,d){if(!(!d||!d.length)){var v=w4(a,"color")||c.color!=null&&c.color!=="none"&&(w4(a,"colorAlpha")||w4(a,"colorSaturation"));if(v){var m=a.get("visualMin"),w=a.get("visualMax"),S=i.dataExtent.slice();m!=null&&m<S[0]&&(S[0]=m),w!=null&&w>S[1]&&(S[1]=w);var x=a.get("colorMappingBy"),E={type:v.name,dataExtent:S,visual:v.range};E.type==="color"&&(x==="index"||x==="id")?(E.mappingMethod="category",E.loop=!0):E.mappingMethod="linear";var M=new nu(E);return Loe(M).drColorMappingBy=x,M}}}function w4(s,a){var i=s.get(a);return Qe(i)&&i.length?{name:a,range:i}:null}function ZGe(s,a,i,l,c,d){var v=ie({},a);if(c){var m=c.type,w=m==="color"&&Loe(c).drColorMappingBy,S=w==="index"?l:w==="id"?d.mapIdToIndex(i.getId()):i.getValue(s.get("visualDimension"));v[m]=c.mapValueToVisual(S)}return v}var VC=Math.max,DL=Math.min,Roe=Bt,b4=ne,Poe=["itemStyle","borderWidth"],JGe=["itemStyle","gapWidth"],e3e=["upperLabel","show"],t3e=["upperLabel","height"],r3e={seriesType:"treemap",reset:function(s,a,i,l){var c=i.getWidth(),d=i.getHeight(),v=s.option,m=ol(s.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),w=v.size||[],S=vr(Roe(m.width,w[0]),c),x=vr(Roe(m.height,w[1]),d),E=l&&l.type,M=["treemapZoomToNode","treemapRootToNode"],D=kC(l,M,s),k=E==="treemapRender"||E==="treemapMove"?l.rootRect:null,Q=s.getViewRoot(),V=moe(Q);if(E!=="treemapMove"){var $=E==="treemapZoomToNode"?l3e(s,D,Q,S,x):k?[k.width,k.height]:[S,x],Z=v.sort;Z&&Z!=="asc"&&Z!=="desc"&&(Z="desc");var ee={squareRatio:v.squareRatio,sort:Z,leafDepth:v.leafDepth};Q.hostTree.clearLayouts();var fe={x:0,y:0,width:$[0],height:$[1],area:$[0]*$[1]};Q.setLayout(fe),Ooe(Q,ee,!1,0),fe=Q.getLayout(),b4(V,function(ge,Se){var Ee=(V[Se+1]||Q).getValue();ge.setLayout(ie({dataExtent:[Ee,Ee],borderWidth:0,upperHeight:0},fe))})}var ve=s.getData().tree.root;ve.setLayout(u3e(m,k,D),!0),s.setLayoutInfo(m),Foe(ve,new Bn(-m.x,-m.y,c,d),V,Q,0)}};function Ooe(s,a,i,l){var c,d;if(!s.isRemoved()){var v=s.getLayout();c=v.width,d=v.height;var m=s.getModel(),w=m.get(Poe),S=m.get(JGe)/2,x=Noe(m),E=Math.max(w,x),M=w-S,D=E-S;s.setLayout({borderWidth:w,upperHeight:E,upperLabelHeight:x},!0),c=VC(c-2*M,0),d=VC(d-M-D,0);var k=c*d,Q=n3e(s,m,k,a,i,l);if(Q.length){var V={x:M,y:D,width:c,height:d},$=DL(c,d),Z=1/0,ee=[];ee.area=0;for(var fe=0,ve=Q.length;fe<ve;){var ge=Q[fe];ee.push(ge),ee.area+=ge.getLayout().area;var Se=s3e(ee,$,a.squareRatio);Se<=Z?(fe++,Z=Se):(ee.area-=ee.pop().getLayout().area,koe(ee,$,V,S,!1),$=DL(V.width,V.height),ee.length=ee.area=0,Z=1/0)}if(ee.length&&koe(ee,$,V,S,!0),!i){var Ee=m.get("childrenVisibleMin");Ee!=null&&k<Ee&&(i=!0)}for(var fe=0,ve=Q.length;fe<ve;fe++)Ooe(Q[fe],a,i,l+1)}}}function n3e(s,a,i,l,c,d){var v=s.children||[],m=l.sort;m!=="asc"&&m!=="desc"&&(m=null);var w=l.leafDepth!=null&&l.leafDepth<=d;if(c&&!w)return s.viewChildren=[];v=ze(v,function(D){return!D.isRemoved()}),a3e(v,m);var S=o3e(a,v,m);if(S.sum===0)return s.viewChildren=[];if(S.sum=i3e(a,i,S.sum,m,v),S.sum===0)return s.viewChildren=[];for(var x=0,E=v.length;x<E;x++){var M=v[x].getValue()/S.sum*i;v[x].setLayout({area:M})}return w&&(v.length&&s.setLayout({isLeafRoot:!0},!0),v.length=0),s.viewChildren=v,s.setLayout({dataExtent:S.dataExtent},!0),v}function i3e(s,a,i,l,c){if(!l)return i;for(var d=s.get("visibleMin"),v=c.length,m=v,w=v-1;w>=0;w--){var S=c[l==="asc"?v-w-1:w].getValue();S/i*a<d&&(m=w,i-=S)}return l==="asc"?c.splice(0,v-m):c.splice(m,v-m),i}function a3e(s,a){return a&&s.sort(function(i,l){var c=a==="asc"?i.getValue()-l.getValue():l.getValue()-i.getValue();return c===0?a==="asc"?i.dataIndex-l.dataIndex:l.dataIndex-i.dataIndex:c}),s}function o3e(s,a,i){for(var l=0,c=0,d=a.length;c<d;c++)l+=a[c].getValue();var v=s.get("visualDimension"),m;return!a||!a.length?m=[NaN,NaN]:v==="value"&&i?(m=[a[a.length-1].getValue(),a[0].getValue()],i==="asc"&&m.reverse()):(m=[1/0,-1/0],b4(a,function(w){var S=w.getValue(v);S<m[0]&&(m[0]=S),S>m[1]&&(m[1]=S)})),{sum:l,dataExtent:m}}function s3e(s,a,i){for(var l=0,c=1/0,d=0,v=void 0,m=s.length;d<m;d++)v=s[d].getLayout().area,v&&(v<c&&(c=v),v>l&&(l=v));var w=s.area*s.area,S=a*a*i;return w?VC(S*l/w,w/(S*c)):1/0}function koe(s,a,i,l,c){var d=a===i.width?0:1,v=1-d,m=["x","y"],w=["width","height"],S=i[m[d]],x=a?s.area/a:0;(c||x>i[w[v]])&&(x=i[w[v]]);for(var E=0,M=s.length;E<M;E++){var D=s[E],k={},Q=x?D.getLayout().area/x:0,V=k[w[v]]=VC(x-2*l,0),$=i[m[d]]+i[w[d]]-S,Z=E===M-1||$<Q?$:Q,ee=k[w[d]]=VC(Z-2*l,0);k[m[v]]=i[m[v]]+DL(l,V/2),k[m[d]]=S+DL(l,ee/2),S+=Z,D.setLayout(k,!0)}i[m[v]]+=x,i[w[v]]-=x}function l3e(s,a,i,l,c){var d=(a||{}).node,v=[l,c];if(!d||d===i)return v;for(var m,w=l*c,S=w*s.option.zoomToNodeRatio;m=d.parentNode;){for(var x=0,E=m.children,M=0,D=E.length;M<D;M++)x+=E[M].getValue();var k=d.getValue();if(k===0)return v;S*=x/k;var Q=m.getModel(),V=Q.get(Poe),$=Math.max(V,Noe(Q));S+=4*V*V+(3*V+$)*Math.pow(S,.5),S>ts&&(S=ts),d=m}S<w&&(S=w);var Z=Math.pow(S/w,.5);return[l*Z,c*Z]}function u3e(s,a,i){if(a)return{x:a.x,y:a.y};var l={x:0,y:0};if(!i)return l;var c=i.node,d=c.getLayout();if(!d)return l;for(var v=[d.width/2,d.height/2],m=c;m;){var w=m.getLayout();v[0]+=w.x,v[1]+=w.y,m=m.parentNode}return{x:s.width/2-v[0],y:s.height/2-v[1]}}function Foe(s,a,i,l,c){var d=s.getLayout(),v=i[c],m=v&&v===s;if(!(v&&!m||c===i.length&&s!==l)){s.setLayout({isInView:!0,invisible:!m&&!a.intersect(d),isAboveViewRoot:m},!0);var w=new Bn(a.x-d.x,a.y-d.y,a.width,a.height);b4(s.viewChildren||[],function(S){Foe(S,w,i,l,c+1)})}}function Noe(s){return s.get(e3e)?s.get(t3e):0}function c3e(s){s.registerSeriesModel(IGe),s.registerChartView(HGe),s.registerVisual($Ge),s.registerLayout(r3e),BGe(s)}function f3e(s){var a=s.findComponents({mainType:"legend"});!a||!a.length||s.eachSeriesByType("graph",function(i){var l=i.getCategoriesData(),c=i.getGraph(),d=c.data,v=l.mapArray(l.getName);d.filterSelf(function(m){var w=d.getItemModel(m),S=w.getShallow("category");if(S!=null){Ge(S)&&(S=v[S]);for(var x=0;x<a.length;x++)if(!a[x].isSelected(S))return!1}return!0})})}function h3e(s){var a={};s.eachSeriesByType("graph",function(i){var l=i.getCategoriesData(),c=i.getData(),d={};l.each(function(v){var m=l.getName(v);d["ec-"+m]=v;var w=l.getItemModel(v),S=w.getModel("itemStyle").getItemStyle();S.fill||(S.fill=i.getColorFromPalette(m,a)),l.setItemVisual(v,"style",S);for(var x=["symbol","symbolSize","symbolKeepAspect"],E=0;E<x.length;E++){var M=w.getShallow(x[E],!0);M!=null&&l.setItemVisual(v,x[E],M)}}),l.count()&&c.each(function(v){var m=c.getItemModel(v),w=m.getShallow("category");if(w!=null){Re(w)&&(w=d["ec-"+w]);var S=l.getItemVisual(w,"style"),x=c.ensureUniqueItemVisual(v,"style");ie(x,S);for(var E=["symbol","symbolSize","symbolKeepAspect"],M=0;M<E.length;M++)c.setItemVisual(v,E[M],l.getItemVisual(w,E[M]))}})})}function RL(s){return s instanceof Array||(s=[s,s]),s}function d3e(s){s.eachSeriesByType("graph",function(a){var i=a.getGraph(),l=a.getEdgeData(),c=RL(a.get("edgeSymbol")),d=RL(a.get("edgeSymbolSize"));l.setVisual("fromSymbol",c&&c[0]),l.setVisual("toSymbol",c&&c[1]),l.setVisual("fromSymbolSize",d&&d[0]),l.setVisual("toSymbolSize",d&&d[1]),l.setVisual("style",a.getModel("lineStyle").getLineStyle()),l.each(function(v){var m=l.getItemModel(v),w=i.getEdgeByIndex(v),S=RL(m.getShallow("symbol",!0)),x=RL(m.getShallow("symbolSize",!0)),E=m.getModel("lineStyle").getLineStyle(),M=l.ensureUniqueItemVisual(v,"style");switch(ie(M,E),M.stroke){case"source":{var D=w.node1.getVisual("style");M.stroke=D&&D.fill;break}case"target":{var D=w.node2.getVisual("style");M.stroke=D&&D.fill;break}}S[0]&&w.setVisual("fromSymbol",S[0]),S[1]&&w.setVisual("toSymbol",S[1]),x[0]&&w.setVisual("fromSymbolSize",x[0]),x[1]&&w.setVisual("toSymbolSize",x[1])})})}var _4="-->",PL=function(s){return s.get("autoCurveness")||null},Uoe=function(s,a){var i=PL(s),l=20,c=[];if(Ge(i))l=i;else if(Qe(i)){s.__curvenessList=i;return}a>l&&(l=a);var d=l%2?l+2:l+3;c=[];for(var v=0;v<d;v++)c.push((v%2?v+1:v)/10*(v%2?-1:1));s.__curvenessList=c},zC=function(s,a,i){var l=[s.id,s.dataIndex].join("."),c=[a.id,a.dataIndex].join(".");return[i.uid,l,c].join(_4)},Hoe=function(s){var a=s.split(_4);return[a[0],a[2],a[1]].join(_4)},A3e=function(s,a){var i=zC(s.node1,s.node2,a);return a.__edgeMap[i]},v3e=function(s,a){var i=S4(zC(s.node1,s.node2,a),a),l=S4(zC(s.node2,s.node1,a),a);return i+l},S4=function(s,a){var i=a.__edgeMap;return i[s]?i[s].length:0};function p3e(s){PL(s)&&(s.__curvenessList=[],s.__edgeMap={},Uoe(s))}function g3e(s,a,i,l){if(PL(i)){var c=zC(s,a,i),d=i.__edgeMap,v=d[Hoe(c)];d[c]&&!v?d[c].isForward=!0:v&&d[c]&&(v.isForward=!0,d[c].isForward=!1),d[c]=d[c]||[],d[c].push(l)}}function x4(s,a,i,l){var c=PL(a),d=Qe(c);if(!c)return null;var v=A3e(s,a);if(!v)return null;for(var m=-1,w=0;w<v.length;w++)if(v[w]===i){m=w;break}var S=v3e(s,a);Uoe(a,S),s.lineStyle=s.lineStyle||{};var x=zC(s.node1,s.node2,a),E=a.__curvenessList,M=d||S%2?0:1;if(v.isForward)return E[M+m];var D=Hoe(x),k=S4(D,a),Q=E[m+k+M];return l?d?c&&c[0]===0?(k+M)%2?Q:-Q:((k%2?0:1)+M)%2?Q:-Q:(k+M)%2?Q:-Q:E[m+k+M]}function Qoe(s){var a=s.coordinateSystem;if(!(a&&a.type!=="view")){var i=s.getGraph();i.eachNode(function(l){var c=l.getModel();l.setLayout([+c.get("x"),+c.get("y")])}),C4(i,s)}}function C4(s,a){s.eachEdge(function(i,l){var c=qt(i.getModel().get(["lineStyle","curveness"]),-x4(i,a,l,!0),0),d=mt(i.node1.getLayout()),v=mt(i.node2.getLayout()),m=[d,v];+c&&m.push([(d[0]+v[0])/2-(d[1]-v[1])*c,(d[1]+v[1])/2-(v[0]-d[0])*c]),i.setLayout(m)})}function m3e(s,a){s.eachSeriesByType("graph",function(i){var l=i.get("layout"),c=i.coordinateSystem;if(c&&c.type!=="view"){var d=i.getData(),v=[];ne(c.dimensions,function(M){v=v.concat(d.mapDimensionsAll(M))});for(var m=0;m<d.count();m++){for(var w=[],S=!1,x=0;x<v.length;x++){var E=d.get(v[x],m);isNaN(E)||(S=!0),w.push(E)}S?d.setItemLayout(m,c.dataToPoint(w)):d.setItemLayout(m,[NaN,NaN])}C4(d.graph,i)}else(!l||l==="none")&&Qoe(i)})}function GC(s){var a=s.coordinateSystem;if(a.type!=="view")return 1;var i=s.option.nodeScaleRatio,l=a.scaleX,c=a.getZoom(),d=(c-1)*i+1;return d/l}function jC(s){var a=s.getVisual("symbolSize");return a instanceof Array&&(a=(a[0]+a[1])/2),+a}var Voe=Math.PI,T4=[];function E4(s,a,i,l){var c=s.coordinateSystem;if(!(c&&c.type!=="view")){var d=c.getBoundingRect(),v=s.getData(),m=v.graph,w=d.width/2+d.x,S=d.height/2+d.y,x=Math.min(d.width,d.height)/2,E=v.count();if(v.setLayout({cx:w,cy:S}),!!E){if(i){var M=c.pointToData(l),D=M[0],k=M[1],Q=[D-w,k-S];pt(Q,Q),_r(Q,Q,x),i.setLayout([w+Q[0],S+Q[1]],!0);var V=s.get(["circular","rotateLabel"]);zoe(i,V,w,S)}y3e[a](s,m,v,x,w,S,E),m.eachEdge(function($,Z){var ee=qt($.getModel().get(["lineStyle","curveness"]),x4($,s,Z),0),fe=mt($.node1.getLayout()),ve=mt($.node2.getLayout()),ge,Se=(fe[0]+ve[0])/2,Ee=(fe[1]+ve[1])/2;+ee&&(ee*=3,ge=[w*ee+Se*(1-ee),S*ee+Ee*(1-ee)]),$.setLayout([fe,ve,ge])})}}}var y3e={value:function(s,a,i,l,c,d,v){var m=0,w=i.getSum("value"),S=Math.PI*2/(w||v);a.eachNode(function(x){var E=x.getValue("value"),M=S*(w?E:1)/2;m+=M,x.setLayout([l*Math.cos(m)+c,l*Math.sin(m)+d]),m+=M})},symbolSize:function(s,a,i,l,c,d,v){var m=0;T4.length=v;var w=GC(s);a.eachNode(function(E){var M=jC(E);isNaN(M)&&(M=2),M<0&&(M=0),M*=w;var D=Math.asin(M/2/l);isNaN(D)&&(D=Voe/2),T4[E.dataIndex]=D,m+=D*2});var S=(2*Voe-m)/v/2,x=0;a.eachNode(function(E){var M=S+T4[E.dataIndex];x+=M,(!E.getLayout()||!E.getLayout().fixed)&&E.setLayout([l*Math.cos(x)+c,l*Math.sin(x)+d]),x+=M})}};function zoe(s,a,i,l){var c=s.getGraphicEl();if(c){var d=s.getModel(),v=d.get(["label","rotate"])||0,m=c.getSymbolPath();if(a){var w=s.getLayout(),S=Math.atan2(w[1]-l,w[0]-i);S<0&&(S=Math.PI*2+S);var x=w[0]<i;x&&(S=S-Math.PI);var E=x?"left":"right";m.setTextConfig({rotation:-S,position:E,origin:"center"});var M=m.ensureState("emphasis");ie(M.textConfig||(M.textConfig={}),{position:E})}else m.setTextConfig({rotation:v*=Math.PI/180})}}function w3e(s){s.eachSeriesByType("graph",function(a){a.get("layout")==="circular"&&E4(a,"symbolSize")})}var Mb=yr;function b3e(s,a,i){for(var l=s,c=a,d=i.rect,v=d.width,m=d.height,w=[d.x+v/2,d.y+m/2],S=i.gravity==null?.1:i.gravity,x=0;x<l.length;x++){var E=l[x];E.p||(E.p=et(v*(Math.random()-.5)+w[0],m*(Math.random()-.5)+w[1])),E.pp=mt(E.p),E.edges=null}var M=i.friction==null?.6:i.friction,D=M,k,Q;return{warmUp:function(){D=M*.8},setFixed:function(V){l[V].fixed=!0},setUnfixed:function(V){l[V].fixed=!1},beforeStep:function(V){k=V},afterStep:function(V){Q=V},step:function(V){k&&k(l,c);for(var $=[],Z=l.length,ee=0;ee<c.length;ee++){var fe=c[ee];if(!fe.ignoreForceLayout){var ve=fe.n1,ge=fe.n2;Pr($,ge.p,ve.p);var Se=pr($)-fe.d,Ee=ge.w/(ve.w+ge.w);isNaN(Ee)&&(Ee=0),pt($,$),!ve.fixed&&Mb(ve.p,ve.p,$,Ee*Se*D),!ge.fixed&&Mb(ge.p,ge.p,$,-(1-Ee)*Se*D)}}for(var ee=0;ee<Z;ee++){var Ie=l[ee];Ie.fixed||(Pr($,w,Ie.p),Mb(Ie.p,Ie.p,$,S*D))}for(var ee=0;ee<Z;ee++)for(var ve=l[ee],Le=ee+1;Le<Z;Le++){var ge=l[Le];Pr($,ge.p,ve.p);var Se=pr($);Se===0&&(xt($,Math.random()-.5,Math.random()-.5),Se=1);var Fe=(ve.rep+ge.rep)/Se/Se;!ve.fixed&&Mb(ve.pp,ve.pp,$,Fe),!ge.fixed&&Mb(ge.pp,ge.pp,$,-Fe)}for(var Je=[],ee=0;ee<Z;ee++){var Ie=l[ee];Ie.fixed||(Pr(Je,Ie.p,Ie.pp),Mb(Ie.p,Ie.p,Je,D),ot(Ie.pp,Ie.p))}D=D*.992;var rt=D<.01;Q&&Q(l,c,rt),V&&V(rt)}}}function _3e(s){s.eachSeriesByType("graph",function(a){var i=a.coordinateSystem;if(!(i&&i.type!=="view"))if(a.get("layout")==="force"){var l=a.preservedPoints||{},c=a.getGraph(),d=c.data,v=c.edgeData,m=a.getModel("force"),w=m.get("initLayout");a.preservedPoints?d.each(function(ee){var fe=d.getId(ee);d.setItemLayout(ee,l[fe]||[NaN,NaN])}):!w||w==="none"?Qoe(a):w==="circular"&&E4(a,"value");var S=d.getDataExtent("value"),x=v.getDataExtent("value"),E=m.get("repulsion"),M=m.get("edgeLength"),D=Qe(E)?E:[E,E],k=Qe(M)?M:[M,M];k=[k[1],k[0]];var Q=d.mapArray("value",function(ee,fe){var ve=d.getItemLayout(fe),ge=ln(ee,S,D);return isNaN(ge)&&(ge=(D[0]+D[1])/2),{w:ge,rep:ge,fixed:d.getItemModel(fe).get("fixed"),p:!ve||isNaN(ve[0])||isNaN(ve[1])?null:ve}}),V=v.mapArray("value",function(ee,fe){var ve=c.getEdgeByIndex(fe),ge=ln(ee,x,k);isNaN(ge)&&(ge=(k[0]+k[1])/2);var Se=ve.getModel(),Ee=qt(ve.getModel().get(["lineStyle","curveness"]),-x4(ve,a,fe,!0),0);return{n1:Q[ve.node1.dataIndex],n2:Q[ve.node2.dataIndex],d:ge,curveness:Ee,ignoreForceLayout:Se.get("ignoreForceLayout")}}),$=i.getBoundingRect(),Z=b3e(Q,V,{rect:$,gravity:m.get("gravity"),friction:m.get("friction")});Z.beforeStep(function(ee,fe){for(var ve=0,ge=ee.length;ve<ge;ve++)ee[ve].fixed&&ot(ee[ve].p,c.getNodeByIndex(ve).getLayout())}),Z.afterStep(function(ee,fe,ve){for(var ge=0,Se=ee.length;ge<Se;ge++)ee[ge].fixed||c.getNodeByIndex(ge).setLayout(ee[ge].p),l[d.getId(ge)]=ee[ge].p;for(var ge=0,Se=fe.length;ge<Se;ge++){var Ee=fe[ge],Ie=c.getEdgeByIndex(ge),Le=Ee.n1.p,Fe=Ee.n2.p,Je=Ie.getLayout();Je=Je?Je.slice():[],Je[0]=Je[0]||[],Je[1]=Je[1]||[],ot(Je[0],Le),ot(Je[1],Fe),+Ee.curveness&&(Je[2]=[(Le[0]+Fe[0])/2-(Le[1]-Fe[1])*Ee.curveness,(Le[1]+Fe[1])/2-(Fe[0]-Le[0])*Ee.curveness]),Ie.setLayout(Je)}}),a.forceLayout=Z,a.preservedPoints=l,Z.step()}else a.forceLayout=null})}function S3e(s,a,i){var l=ie(s.getBoxLayoutParams(),{aspect:i});return ol(l,{width:a.getWidth(),height:a.getHeight()})}function x3e(s,a){var i=[];return s.eachSeriesByType("graph",function(l){var c=l.get("coordinateSystem");if(!c||c==="view"){var d=l.getData(),v=d.mapArray(function(V){var $=d.getItemModel(V);return[+$.get("x"),+$.get("y")]}),m=[],w=[];Lp(v,m,w),w[0]-m[0]===0&&(w[0]+=1,m[0]-=1),w[1]-m[1]===0&&(w[1]+=1,m[1]-=1);var S=(w[0]-m[0])/(w[1]-m[1]),x=S3e(l,a,S);isNaN(S)&&(m=[x.x,x.y],w=[x.x+x.width,x.y+x.height]);var E=w[0]-m[0],M=w[1]-m[1],D=x.width,k=x.height,Q=l.coordinateSystem=new PC;Q.zoomLimit=l.get("scaleLimit"),Q.setBoundingRect(m[0],m[1],E,M),Q.setViewRect(x.x,x.y,D,k),Q.setCenter(l.get("center"),a),Q.setZoom(l.get("zoom")),i.push(Q)}}),i}var Goe=Ll.prototype,B4=Xw.prototype,joe=function(){function s(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return s}();(function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a})(joe);function I4(s){return isNaN(+s.cpx1)||isNaN(+s.cpy1)}var C3e=function(s){o(a,s);function a(i){var l=s.call(this,i)||this;return l.type="ec-line",l}return a.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},a.prototype.getDefaultShape=function(){return new joe},a.prototype.buildPath=function(i,l){I4(l)?Goe.buildPath.call(this,i,l):B4.buildPath.call(this,i,l)},a.prototype.pointAt=function(i){return I4(this.shape)?Goe.pointAt.call(this,i):B4.pointAt.call(this,i)},a.prototype.tangentAt=function(i){var l=this.shape,c=I4(l)?[l.x2-l.x1,l.y2-l.y1]:B4.tangentAt.call(this,i);return pt(c,c)},a}(Yn),L4=["fromSymbol","toSymbol"];function qoe(s){return"_"+s+"Type"}function Woe(s,a,i){var l=a.getItemVisual(i,s);if(!l||l==="none")return l;var c=a.getItemVisual(i,s+"Size"),d=a.getItemVisual(i,s+"Rotate"),v=a.getItemVisual(i,s+"Offset"),m=a.getItemVisual(i,s+"KeepAspect"),w=gb(c),S=f0(v||0,w);return l+w+S+(d||"")+(m||"")}function $oe(s,a,i){var l=a.getItemVisual(i,s);if(!(!l||l==="none")){var c=a.getItemVisual(i,s+"Size"),d=a.getItemVisual(i,s+"Rotate"),v=a.getItemVisual(i,s+"Offset"),m=a.getItemVisual(i,s+"KeepAspect"),w=gb(c),S=f0(v||0,w),x=Os(l,-w[0]/2+S[0],-w[1]/2+S[1],w[0],w[1],null,m);return x.__specifiedRotation=d==null||isNaN(d)?void 0:+d*Math.PI/180||0,x.name=s,x}}function T3e(s){var a=new C3e({name:"line",subPixelOptimize:!0});return M4(a.shape,s),a}function M4(s,a){s.x1=a[0][0],s.y1=a[0][1],s.x2=a[1][0],s.y2=a[1][1],s.percent=1;var i=a[2];i?(s.cpx1=i[0],s.cpy1=i[1]):(s.cpx1=NaN,s.cpy1=NaN)}var D4=function(s){o(a,s);function a(i,l,c){var d=s.call(this)||this;return d._createLine(i,l,c),d}return a.prototype._createLine=function(i,l,c){var d=i.hostModel,v=i.getItemLayout(l),m=T3e(v);m.shape.percent=0,Co(m,{shape:{percent:1}},d,l),this.add(m),ne(L4,function(w){var S=$oe(w,i,l);this.add(S),this[qoe(w)]=Woe(w,i,l)},this),this._updateCommonStl(i,l,c)},a.prototype.updateData=function(i,l,c){var d=i.hostModel,v=this.childOfName("line"),m=i.getItemLayout(l),w={shape:{}};M4(w.shape,m),Yi(v,w,d,l),ne(L4,function(S){var x=Woe(S,i,l),E=qoe(S);if(this[E]!==x){this.remove(this.childOfName(S));var M=$oe(S,i,l);this.add(M)}this[E]=x},this),this._updateCommonStl(i,l,c)},a.prototype.getLinePath=function(){return this.childAt(0)},a.prototype._updateCommonStl=function(i,l,c){var d=i.hostModel,v=this.childOfName("line"),m=c&&c.emphasisLineStyle,w=c&&c.blurLineStyle,S=c&&c.selectLineStyle,x=c&&c.labelStatesModels,E=c&&c.emphasisDisabled,M=c&&c.focus,D=c&&c.blurScope;if(!c||i.hasItemOption){var k=i.getItemModel(l),Q=k.getModel("emphasis");m=Q.getModel("lineStyle").getLineStyle(),w=k.getModel(["blur","lineStyle"]).getLineStyle(),S=k.getModel(["select","lineStyle"]).getLineStyle(),E=Q.get("disabled"),M=Q.get("focus"),D=Q.get("blurScope"),x=eu(k)}var V=i.getItemVisual(l,"style"),$=V.stroke;v.useStyle(V),v.style.fill=null,v.style.strokeNoScale=!0,v.ensureState("emphasis").style=m,v.ensureState("blur").style=w,v.ensureState("select").style=S,ne(L4,function(ge){var Se=this.childOfName(ge);if(Se){Se.setColor($),Se.style.opacity=V.opacity;for(var Ee=0;Ee<Ou.length;Ee++){var Ie=Ou[Ee],Le=v.getState(Ie);if(Le){var Fe=Le.style||{},Je=Se.ensureState(Ie),rt=Je.style||(Je.style={});Fe.stroke!=null&&(rt[Se.__isEmptyBrush?"stroke":"fill"]=Fe.stroke),Fe.opacity!=null&&(rt.opacity=Fe.opacity)}}Se.markRedraw()}},this);var Z=d.getRawValue(l);Fu(this,x,{labelDataIndex:l,labelFetcher:{getFormattedLabel:function(ge,Se){return d.getFormattedLabel(ge,Se,i.dataType)}},inheritColor:$||"#000",defaultOpacity:V.opacity,defaultText:(Z==null?i.getName(l):isFinite(Z)?pi(Z):Z)+""});var ee=this.getTextContent();if(ee){var fe=x.normal;ee.__align=ee.style.align,ee.__verticalAlign=ee.style.verticalAlign,ee.__position=fe.get("position")||"middle";var ve=fe.get("distance");Qe(ve)||(ve=[ve,ve]),ee.__labelDistance=ve}this.setTextConfig({position:null,local:!0,inside:!1}),as(this,M,D,E)},a.prototype.highlight=function(){kp(this)},a.prototype.downplay=function(){Fp(this)},a.prototype.updateLayout=function(i,l){this.setLinePoints(i.getItemLayout(l))},a.prototype.setLinePoints=function(i){var l=this.childOfName("line");M4(l.shape,i),l.dirty()},a.prototype.beforeUpdate=function(){var i=this,l=i.childOfName("fromSymbol"),c=i.childOfName("toSymbol"),d=i.getTextContent();if(!l&&!c&&(!d||d.ignore))return;for(var v=1,m=this.parent;m;)m.scaleX&&(v/=m.scaleX),m=m.parent;var w=i.childOfName("line");if(!this.__dirty&&!w.__dirty)return;var S=w.shape.percent,x=w.pointAt(0),E=w.pointAt(S),M=Pr([],E,x);pt(M,M);function D(Le,Fe){var Je=Le.__specifiedRotation;if(Je==null){var rt=w.tangentAt(Fe);Le.attr("rotation",(Fe===1?-1:1)*Math.PI/2-Math.atan2(rt[1],rt[0]))}else Le.attr("rotation",Je)}if(l&&(l.setPosition(x),D(l,0),l.scaleX=l.scaleY=v*S,l.markRedraw()),c&&(c.setPosition(E),D(c,1),c.scaleX=c.scaleY=v*S,c.markRedraw()),d&&!d.ignore){d.x=d.y=0,d.originX=d.originY=0;var k=void 0,Q=void 0,V=d.__labelDistance,$=V[0]*v,Z=V[1]*v,ee=S/2,fe=w.tangentAt(ee),ve=[fe[1],-fe[0]],ge=w.pointAt(ee);ve[1]>0&&(ve[0]=-ve[0],ve[1]=-ve[1]);var Se=fe[0]<0?-1:1;if(d.__position!=="start"&&d.__position!=="end"){var Ee=-Math.atan2(fe[1],fe[0]);E[0]<x[0]&&(Ee=Math.PI+Ee),d.rotation=Ee}var Ie=void 0;switch(d.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":Ie=-Z,Q="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":Ie=Z,Q="top";break;default:Ie=0,Q="middle"}switch(d.__position){case"end":d.x=M[0]*$+E[0],d.y=M[1]*Z+E[1],k=M[0]>.8?"left":M[0]<-.8?"right":"center",Q=M[1]>.8?"top":M[1]<-.8?"bottom":"middle";break;case"start":d.x=-M[0]*$+x[0],d.y=-M[1]*Z+x[1],k=M[0]>.8?"right":M[0]<-.8?"left":"center",Q=M[1]>.8?"bottom":M[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":d.x=$*Se+x[0],d.y=x[1]+Ie,k=fe[0]<0?"right":"left",d.originX=-$*Se,d.originY=-Ie;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":d.x=ge[0],d.y=ge[1]+Ie,k="center",d.originY=-Ie;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":d.x=-$*Se+E[0],d.y=E[1]+Ie,k=fe[0]>=0?"right":"left",d.originX=$*Se,d.originY=-Ie;break}d.scaleX=d.scaleY=v,d.setStyle({verticalAlign:d.__verticalAlign||Q,align:d.__align||k})}},a}(Lr),R4=function(){function s(a){this.group=new Lr,this._LineCtor=a||D4}return s.prototype.updateData=function(a){var i=this;this._progressiveEls=null;var l=this,c=l.group,d=l._lineData;l._lineData=a,d||c.removeAll();var v=Koe(a);a.diff(d).add(function(m){i._doAdd(a,m,v)}).update(function(m,w){i._doUpdate(d,a,w,m,v)}).remove(function(m){c.remove(d.getItemGraphicEl(m))}).execute()},s.prototype.updateLayout=function(){var a=this._lineData;a&&a.eachItemGraphicEl(function(i,l){i.updateLayout(a,l)},this)},s.prototype.incrementalPrepareUpdate=function(a){this._seriesScope=Koe(a),this._lineData=null,this.group.removeAll()},s.prototype.incrementalUpdate=function(a,i){this._progressiveEls=[];function l(m){!m.isGroup&&!E3e(m)&&(m.incremental=!0,m.ensureState("emphasis").hoverLayer=!0)}for(var c=a.start;c<a.end;c++){var d=i.getItemLayout(c);if(P4(d)){var v=new this._LineCtor(i,c,this._seriesScope);v.traverse(l),this.group.add(v),i.setItemGraphicEl(c,v),this._progressiveEls.push(v)}}},s.prototype.remove=function(){this.group.removeAll()},s.prototype.eachRendered=function(a){om(this._progressiveEls||this.group,a)},s.prototype._doAdd=function(a,i,l){var c=a.getItemLayout(i);if(P4(c)){var d=new this._LineCtor(a,i,l);a.setItemGraphicEl(i,d),this.group.add(d)}},s.prototype._doUpdate=function(a,i,l,c,d){var v=a.getItemGraphicEl(l);if(!P4(i.getItemLayout(c))){this.group.remove(v);return}v?v.updateData(i,c,d):v=new this._LineCtor(i,c,d),i.setItemGraphicEl(c,v),this.group.add(v)},s}();function E3e(s){return s.animators&&s.animators.length>0}function Koe(s){var a=s.hostModel,i=a.getModel("emphasis");return{lineStyle:a.getModel("lineStyle").getLineStyle(),emphasisLineStyle:i.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:a.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:a.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:i.get("disabled"),blurScope:i.get("blurScope"),focus:i.get("focus"),labelStatesModels:eu(a)}}function Yoe(s){return isNaN(s[0])||isNaN(s[1])}function P4(s){return s&&!Yoe(s[0])&&!Yoe(s[1])}var O4=[],k4=[],F4=[],Db=qi,N4=ni,Xoe=Math.abs;function Zoe(s,a,i){for(var l=s[0],c=s[1],d=s[2],v=1/0,m,w=i*i,S=.1,x=.1;x<=.9;x+=.1){O4[0]=Db(l[0],c[0],d[0],x),O4[1]=Db(l[1],c[1],d[1],x);var E=Xoe(N4(O4,a)-w);E<v&&(v=E,m=x)}for(var M=0;M<32;M++){var D=m+S;k4[0]=Db(l[0],c[0],d[0],m),k4[1]=Db(l[1],c[1],d[1],m),F4[0]=Db(l[0],c[0],d[0],D),F4[1]=Db(l[1],c[1],d[1],D);var E=N4(k4,a)-w;if(Xoe(E)<.01)break;var k=N4(F4,a)-w;S/=2,E<0?k>=0?m=m+S:m=m-S:k>=0?m=m-S:m=m+S}return m}function U4(s,a){var i=[],l=$l,c=[[],[],[]],d=[[],[]],v=[];a/=2,s.eachEdge(function(m,w){var S=m.getLayout(),x=m.getVisual("fromSymbol"),E=m.getVisual("toSymbol");S.__original||(S.__original=[mt(S[0]),mt(S[1])],S[2]&&S.__original.push(mt(S[2])));var M=S.__original;if(S[2]!=null){if(ot(c[0],M[0]),ot(c[1],M[2]),ot(c[2],M[1]),x&&x!=="none"){var D=jC(m.node1),k=Zoe(c,M[0],D*a);l(c[0][0],c[1][0],c[2][0],k,i),c[0][0]=i[3],c[1][0]=i[4],l(c[0][1],c[1][1],c[2][1],k,i),c[0][1]=i[3],c[1][1]=i[4]}if(E&&E!=="none"){var D=jC(m.node2),k=Zoe(c,M[1],D*a);l(c[0][0],c[1][0],c[2][0],k,i),c[1][0]=i[1],c[2][0]=i[2],l(c[0][1],c[1][1],c[2][1],k,i),c[1][1]=i[1],c[2][1]=i[2]}ot(S[0],c[0]),ot(S[1],c[2]),ot(S[2],c[1])}else{if(ot(d[0],M[0]),ot(d[1],M[1]),Pr(v,d[1],d[0]),pt(v,v),x&&x!=="none"){var D=jC(m.node1);yr(d[0],d[0],v,D*a)}if(E&&E!=="none"){var D=jC(m.node2);yr(d[1],d[1],v,-D*a)}ot(S[0],d[0]),ot(S[1],d[1])}})}function Joe(s){return s.type==="view"}var B3e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.init=function(i,l){var c=new xC,d=new R4,v=this.group;this._controller=new DC(l.getZr()),this._controllerHost={target:v},v.add(c.group),v.add(d.group),this._symbolDraw=c,this._lineDraw=d,this._firstRender=!0},a.prototype.render=function(i,l,c){var d=this,v=i.coordinateSystem;this._model=i;var m=this._symbolDraw,w=this._lineDraw,S=this.group;if(Joe(v)){var x={x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY};this._firstRender?S.attr(x):Yi(S,x,i)}U4(i.getGraph(),GC(i));var E=i.getData();m.updateData(E);var M=i.getEdgeData();w.updateData(M),this._updateNodeAndLinkScale(),this._updateController(i,l,c),clearTimeout(this._layoutTimeout);var D=i.forceLayout,k=i.get(["force","layoutAnimation"]);D&&this._startForceLayoutIteration(D,k);var Q=i.get("layout");E.graph.eachNode(function(ee){var fe=ee.dataIndex,ve=ee.getGraphicEl(),ge=ee.getModel();if(ve){ve.off("drag").off("dragend");var Se=ge.get("draggable");Se&&ve.on("drag",function(Ie){switch(Q){case"force":D.warmUp(),!d._layouting&&d._startForceLayoutIteration(D,k),D.setFixed(fe),E.setItemLayout(fe,[ve.x,ve.y]);break;case"circular":E.setItemLayout(fe,[ve.x,ve.y]),ee.setLayout({fixed:!0},!0),E4(i,"symbolSize",ee,[Ie.offsetX,Ie.offsetY]),d.updateLayout(i);break;case"none":default:E.setItemLayout(fe,[ve.x,ve.y]),C4(i.getGraph(),i),d.updateLayout(i);break}}).on("dragend",function(){D&&D.setUnfixed(fe)}),ve.setDraggable(Se,!!ge.get("cursor"));var Ee=ge.get(["emphasis","focus"]);Ee==="adjacency"&&(bt(ve).focus=ee.getAdjacentDataIndices())}}),E.graph.eachEdge(function(ee){var fe=ee.getGraphicEl(),ve=ee.getModel().get(["emphasis","focus"]);fe&&ve==="adjacency"&&(bt(fe).focus={edge:[ee.dataIndex],node:[ee.node1.dataIndex,ee.node2.dataIndex]})});var V=i.get("layout")==="circular"&&i.get(["circular","rotateLabel"]),$=E.getLayout("cx"),Z=E.getLayout("cy");E.graph.eachNode(function(ee){zoe(ee,V,$,Z)}),this._firstRender=!1},a.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},a.prototype._startForceLayoutIteration=function(i,l){var c=this;(function d(){i.step(function(v){c.updateLayout(c._model),(c._layouting=!v)&&(l?c._layoutTimeout=setTimeout(d,16):d())})})()},a.prototype._updateController=function(i,l,c){var d=this,v=this._controller,m=this._controllerHost,w=this.group;if(v.setPointerChecker(function(S,x,E){var M=w.getBoundingRect();return M.applyTransform(w.transform),M.contain(x,E)&&!_L(S,c,i)}),!Joe(i.coordinateSystem)){v.disable();return}v.enable(i.get("roam")),m.zoomLimit=i.get("scaleLimit"),m.zoom=i.coordinateSystem.getZoom(),v.off("pan").off("zoom").on("pan",function(S){e4(m,S.dx,S.dy),c.dispatchAction({seriesId:i.id,type:"graphRoam",dx:S.dx,dy:S.dy})}).on("zoom",function(S){t4(m,S.scale,S.originX,S.originY),c.dispatchAction({seriesId:i.id,type:"graphRoam",zoom:S.scale,originX:S.originX,originY:S.originY}),d._updateNodeAndLinkScale(),U4(i.getGraph(),GC(i)),d._lineDraw.updateLayout(),c.updateLabelLayout()})},a.prototype._updateNodeAndLinkScale=function(){var i=this._model,l=i.getData(),c=GC(i);l.eachItemGraphicEl(function(d,v){d&&d.setSymbolScale(c)})},a.prototype.updateLayout=function(i){U4(i.getGraph(),GC(i)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},a.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},a.type="graph",a}(xa);function Rb(s){return"_EC_"+s}var I3e=function(){function s(a){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=a||!1}return s.prototype.isDirected=function(){return this._directed},s.prototype.addNode=function(a,i){a=a==null?""+i:""+a;var l=this._nodesMap;if(l[Rb(a)]){console.error("Graph nodes have duplicate name or id");return}var c=new M0(a,i);return c.hostGraph=this,this.nodes.push(c),l[Rb(a)]=c,c},s.prototype.getNodeByIndex=function(a){var i=this.data.getRawIndex(a);return this.nodes[i]},s.prototype.getNodeById=function(a){return this._nodesMap[Rb(a)]},s.prototype.addEdge=function(a,i,l){var c=this._nodesMap,d=this._edgesMap;if(Ge(a)&&(a=this.nodes[a]),Ge(i)&&(i=this.nodes[i]),a instanceof M0||(a=c[Rb(a)]),i instanceof M0||(i=c[Rb(i)]),!(!a||!i)){var v=a.id+"-"+i.id,m=new ese(a,i,l);return m.hostGraph=this,this._directed&&(a.outEdges.push(m),i.inEdges.push(m)),a.edges.push(m),a!==i&&i.edges.push(m),this.edges.push(m),d[v]=m,m}},s.prototype.getEdgeByIndex=function(a){var i=this.edgeData.getRawIndex(a);return this.edges[i]},s.prototype.getEdge=function(a,i){a instanceof M0&&(a=a.id),i instanceof M0&&(i=i.id);var l=this._edgesMap;return this._directed?l[a+"-"+i]:l[a+"-"+i]||l[i+"-"+a]},s.prototype.eachNode=function(a,i){for(var l=this.nodes,c=l.length,d=0;d<c;d++)l[d].dataIndex>=0&&a.call(i,l[d],d)},s.prototype.eachEdge=function(a,i){for(var l=this.edges,c=l.length,d=0;d<c;d++)l[d].dataIndex>=0&&l[d].node1.dataIndex>=0&&l[d].node2.dataIndex>=0&&a.call(i,l[d],d)},s.prototype.breadthFirstTraverse=function(a,i,l,c){if(i instanceof M0||(i=this._nodesMap[Rb(i)]),!!i){for(var d=l==="out"?"outEdges":l==="in"?"inEdges":"edges",v=0;v<this.nodes.length;v++)this.nodes[v].__visited=!1;if(!a.call(c,i,null))for(var m=[i];m.length;)for(var w=m.shift(),S=w[d],v=0;v<S.length;v++){var x=S[v],E=x.node1===w?x.node2:x.node1;if(!E.__visited){if(a.call(c,E,w))return;m.push(E),E.__visited=!0}}}},s.prototype.update=function(){for(var a=this.data,i=this.edgeData,l=this.nodes,c=this.edges,d=0,v=l.length;d<v;d++)l[d].dataIndex=-1;for(var d=0,v=a.count();d<v;d++)l[a.getRawIndex(d)].dataIndex=d;i.filterSelf(function(m){var w=c[i.getRawIndex(m)];return w.node1.dataIndex>=0&&w.node2.dataIndex>=0});for(var d=0,v=c.length;d<v;d++)c[d].dataIndex=-1;for(var d=0,v=i.count();d<v;d++)c[i.getRawIndex(d)].dataIndex=d},s.prototype.clone=function(){for(var a=new s(this._directed),i=this.nodes,l=this.edges,c=0;c<i.length;c++)a.addNode(i[c].id,i[c].dataIndex);for(var c=0;c<l.length;c++){var d=l[c];a.addEdge(d.node1.id,d.node2.id,d.dataIndex)}return a},s}(),M0=function(){function s(a,i){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=a??"",this.dataIndex=i??-1}return s.prototype.degree=function(){return this.edges.length},s.prototype.inDegree=function(){return this.inEdges.length},s.prototype.outDegree=function(){return this.outEdges.length},s.prototype.getModel=function(a){if(!(this.dataIndex<0)){var i=this.hostGraph,l=i.data.getItemModel(this.dataIndex);return l.getModel(a)}},s.prototype.getAdjacentDataIndices=function(){for(var a={edge:[],node:[]},i=0;i<this.edges.length;i++){var l=this.edges[i];l.dataIndex<0||(a.edge.push(l.dataIndex),a.node.push(l.node1.dataIndex,l.node2.dataIndex))}return a},s.prototype.getTrajectoryDataIndices=function(){for(var a=Ht(),i=Ht(),l=0;l<this.edges.length;l++){var c=this.edges[l];if(!(c.dataIndex<0)){a.set(c.dataIndex,!0);for(var d=[c.node1],v=[c.node2],m=0;m<d.length;){var w=d[m];m++,i.set(w.dataIndex,!0);for(var S=0;S<w.inEdges.length;S++)a.set(w.inEdges[S].dataIndex,!0),d.push(w.inEdges[S].node1)}for(m=0;m<v.length;){var x=v[m];m++,i.set(x.dataIndex,!0);for(var S=0;S<x.outEdges.length;S++)a.set(x.outEdges[S].dataIndex,!0),v.push(x.outEdges[S].node2)}}}return{edge:a.keys(),node:i.keys()}},s}(),ese=function(){function s(a,i,l){this.dataIndex=-1,this.node1=a,this.node2=i,this.dataIndex=l??-1}return s.prototype.getModel=function(a){if(!(this.dataIndex<0)){var i=this.hostGraph,l=i.edgeData.getItemModel(this.dataIndex);return l.getModel(a)}},s.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},s.prototype.getTrajectoryDataIndices=function(){var a=Ht(),i=Ht();a.set(this.dataIndex,!0);for(var l=[this.node1],c=[this.node2],d=0;d<l.length;){var v=l[d];d++,i.set(v.dataIndex,!0);for(var m=0;m<v.inEdges.length;m++)a.set(v.inEdges[m].dataIndex,!0),l.push(v.inEdges[m].node1)}for(d=0;d<c.length;){var w=c[d];d++,i.set(w.dataIndex,!0);for(var m=0;m<w.outEdges.length;m++)a.set(w.outEdges[m].dataIndex,!0),c.push(w.outEdges[m].node2)}return{edge:a.keys(),node:i.keys()}},s}();function tse(s,a){return{getValue:function(i){var l=this[s][a];return l.getStore().get(l.getDimensionIndex(i||"value"),this.dataIndex)},setVisual:function(i,l){this.dataIndex>=0&&this[s][a].setItemVisual(this.dataIndex,i,l)},getVisual:function(i){return this[s][a].getItemVisual(this.dataIndex,i)},setLayout:function(i,l){this.dataIndex>=0&&this[s][a].setItemLayout(this.dataIndex,i,l)},getLayout:function(){return this[s][a].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[s][a].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[s][a].getRawIndex(this.dataIndex)}}}_e(M0,tse("hostGraph","data")),_e(ese,tse("hostGraph","edgeData"));function rse(s,a,i,l,c){for(var d=new I3e(l),v=0;v<s.length;v++)d.addNode(Bt(s[v].id,s[v].name,v),v);for(var m=[],w=[],S=0,v=0;v<a.length;v++){var x=a[v],E=x.source,M=x.target;d.addEdge(E,M,S)&&(w.push(x),m.push(Bt(va(x.id,null),E+" > "+M)),S++)}var D=i.get("coordinateSystem"),k;if(D==="cartesian2d"||D==="polar")k=Sv(s,i);else{var Q=o0.get(D),V=Q?Q.dimensions||[]:[];oe(V,"value")<0&&V.concat(["value"]);var $=_b(s,{coordDimensions:V,encodeDefine:i.getEncode()}).dimensions;k=new yc($,i),k.initData(s)}var Z=new yc(["value"],i);return Z.initData(w,m),c&&c(k,Z),poe({mainData:k,struct:d,structAttr:"graph",datas:{node:k,edge:Z},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}var L3e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.hasSymbolVisual=!0,i}return a.prototype.init=function(i){s.prototype.init.apply(this,arguments);var l=this;function c(){return l._categoriesData}this.legendVisualProvider=new IC(c,c),this.fillDataTextStyle(i.edges||i.links),this._updateCategoriesData()},a.prototype.mergeOption=function(i){s.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(i.edges||i.links),this._updateCategoriesData()},a.prototype.mergeDefaultAndTheme=function(i){s.prototype.mergeDefaultAndTheme.apply(this,arguments),zh(i,"edgeLabel",["show"])},a.prototype.getInitialData=function(i,l){var c=i.edges||i.links||[],d=i.data||i.nodes||[],v=this;if(d&&c){p3e(this);var m=rse(d,c,this,!0,w);return ne(m.edges,function(S){g3e(S.node1,S.node2,this,S.dataIndex)},this),m.data}function w(S,x){S.wrapMethod("getItemModel",function(k){var Q=v._categoriesModels,V=k.getShallow("category"),$=Q[V];return $&&($.parentModel=k.parentModel,k.parentModel=$),k});var E=ta.prototype.getModel;function M(k,Q){var V=E.call(this,k,Q);return V.resolveParentPath=D,V}x.wrapMethod("getItemModel",function(k){return k.resolveParentPath=D,k.getModel=M,k});function D(k){if(k&&(k[0]==="label"||k[1]==="label")){var Q=k.slice();return k[0]==="label"?Q[0]="edgeLabel":k[1]==="label"&&(Q[1]="edgeLabel"),Q}return k}}},a.prototype.getGraph=function(){return this.getData().graph},a.prototype.getEdgeData=function(){return this.getGraph().edgeData},a.prototype.getCategoriesData=function(){return this._categoriesData},a.prototype.formatTooltip=function(i,l,c){if(c==="edge"){var d=this.getData(),v=this.getDataParams(i,c),m=d.graph.getEdgeByIndex(i),w=d.getName(m.node1.dataIndex),S=d.getName(m.node2.dataIndex),x=[];return w!=null&&x.push(w),S!=null&&x.push(S),tu("nameValue",{name:x.join(" > "),value:v.value,noValue:v.value==null})}var E=Gte({series:this,dataIndex:i,multipleSeries:l});return E},a.prototype._updateCategoriesData=function(){var i=xe(this.option.categories||[],function(c){return c.value!=null?c:ie({value:0},c)}),l=new yc(["value"],this);l.initData(i),this._categoriesData=l,this._categoriesModels=l.mapArray(function(c){return l.getItemModel(c)})},a.prototype.setZoom=function(i){this.option.zoom=i},a.prototype.setCenter=function(i){this.option.center=i},a.prototype.isAnimationEnabled=function(){return s.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},a.type="series.graph",a.dependencies=["grid","polar","geo","singleAxis","calendar"],a.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"}}},a}(Ua),M3e={type:"graphRoam",event:"graphRoam",update:"none"};function D3e(s){s.registerChartView(B3e),s.registerSeriesModel(L3e),s.registerProcessor(f3e),s.registerVisual(h3e),s.registerVisual(d3e),s.registerLayout(m3e),s.registerLayout(s.PRIORITY.VISUAL.POST_CHART_LAYOUT,w3e),s.registerLayout(_3e),s.registerCoordinateSystem("graphView",{dimensions:PC.dimensions,create:x3e}),s.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Ct),s.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Ct),s.registerAction(M3e,function(a,i,l){i.eachComponent({mainType:"series",query:a},function(c){var d=c.coordinateSystem,v=s4(d,a,void 0,l);c.setCenter&&c.setCenter(v.center),c.setZoom&&c.setZoom(v.zoom)})})}var R3e=function(){function s(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return s}(),P3e=function(s){o(a,s);function a(i){var l=s.call(this,i)||this;return l.type="pointer",l}return a.prototype.getDefaultShape=function(){return new R3e},a.prototype.buildPath=function(i,l){var c=Math.cos,d=Math.sin,v=l.r,m=l.width,w=l.angle,S=l.x-c(w)*m*(m>=v/3?1:2),x=l.y-d(w)*m*(m>=v/3?1:2);w=l.angle-Math.PI/2,i.moveTo(S,x),i.lineTo(l.x+c(w)*m,l.y+d(w)*m),i.lineTo(l.x+c(l.angle)*v,l.y+d(l.angle)*v),i.lineTo(l.x-c(w)*m,l.y-d(w)*m),i.lineTo(S,x)},a}(Yn);function O3e(s,a){var i=s.get("center"),l=a.getWidth(),c=a.getHeight(),d=Math.min(l,c),v=vr(i[0],a.getWidth()),m=vr(i[1],a.getHeight()),w=vr(s.get("radius"),d/2);return{cx:v,cy:m,r:w}}function OL(s,a){var i=s==null?"":s+"";return a&&(Re(a)?i=a.replace("{value}",i):qe(a)&&(i=a(s))),i}var k3e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c){this.group.removeAll();var d=i.get(["axisLine","lineStyle","color"]),v=O3e(i,c);this._renderMain(i,l,c,d,v),this._data=i.getData()},a.prototype.dispose=function(){},a.prototype._renderMain=function(i,l,c,d,v){var m=this.group,w=i.get("clockwise"),S=-i.get("startAngle")/180*Math.PI,x=-i.get("endAngle")/180*Math.PI,E=i.getModel("axisLine"),M=E.get("roundCap"),D=M?vL:hc,k=E.get("show"),Q=E.getModel("lineStyle"),V=Q.get("width"),$=[S,x];zw($,!w),S=$[0],x=$[1];for(var Z=x-S,ee=S,fe=[],ve=0;k&&ve<d.length;ve++){var ge=Math.min(Math.max(d[ve][0],0),1);x=S+Z*ge;var Se=new D({shape:{startAngle:ee,endAngle:x,cx:v.cx,cy:v.cy,clockwise:w,r0:v.r-V,r:v.r},silent:!0});Se.setStyle({fill:d[ve][1]}),Se.setStyle(Q.getLineStyle(["color","width"])),fe.push(Se),ee=x}fe.reverse(),ne(fe,function(Ie){return m.add(Ie)});var Ee=function(Ie){if(Ie<=0)return d[0][1];var Le;for(Le=0;Le<d.length;Le++)if(d[Le][0]>=Ie&&(Le===0?0:d[Le-1][0])<Ie)return d[Le][1];return d[Le-1][1]};this._renderTicks(i,l,c,Ee,v,S,x,w,V),this._renderTitleAndDetail(i,l,c,Ee,v),this._renderAnchor(i,v),this._renderPointer(i,l,c,Ee,v,S,x,w,V)},a.prototype._renderTicks=function(i,l,c,d,v,m,w,S,x){for(var E=this.group,M=v.cx,D=v.cy,k=v.r,Q=+i.get("min"),V=+i.get("max"),$=i.getModel("splitLine"),Z=i.getModel("axisTick"),ee=i.getModel("axisLabel"),fe=i.get("splitNumber"),ve=Z.get("splitNumber"),ge=vr($.get("length"),k),Se=vr(Z.get("length"),k),Ee=m,Ie=(w-m)/fe,Le=Ie/ve,Fe=$.getModel("lineStyle").getLineStyle(),Je=Z.getModel("lineStyle").getLineStyle(),rt=$.get("distance"),at,dt,wt=0;wt<=fe;wt++){if(at=Math.cos(Ee),dt=Math.sin(Ee),$.get("show")){var zt=rt?rt+x:x,Ut=new Ll({shape:{x1:at*(k-zt)+M,y1:dt*(k-zt)+D,x2:at*(k-ge-zt)+M,y2:dt*(k-ge-zt)+D},style:Fe,silent:!0});Fe.stroke==="auto"&&Ut.setStyle({stroke:d(wt/fe)}),E.add(Ut)}if(ee.get("show")){var zt=ee.get("distance")+rt,Yt=OL(pi(wt/fe*(V-Q)+Q),ee.get("formatter")),ur=d(wt/fe),wr=at*(k-ge-zt)+M,Or=dt*(k-ge-zt)+D,vn=ee.get("rotate"),wn=0;vn==="radial"?(wn=-Ee+2*Math.PI,wn>Math.PI/2&&(wn+=Math.PI)):vn==="tangential"?wn=-Ee-Math.PI/2:Ge(vn)&&(wn=vn*Math.PI/180),wn===0?E.add(new be({style:Xa(ee,{text:Yt,x:wr,y:Or,verticalAlign:dt<-.8?"top":dt>.8?"bottom":"middle",align:at<-.4?"left":at>.4?"right":"center"},{inheritColor:ur}),silent:!0})):E.add(new be({style:Xa(ee,{text:Yt,x:wr,y:Or,verticalAlign:"middle",align:"center"},{inheritColor:ur}),silent:!0,originX:wr,originY:Or,rotation:wn}))}if(Z.get("show")&&wt!==fe){var zt=Z.get("distance");zt=zt?zt+x:x;for(var Un=0;Un<=ve;Un++){at=Math.cos(Ee),dt=Math.sin(Ee);var Ha=new Ll({shape:{x1:at*(k-zt)+M,y1:dt*(k-zt)+D,x2:at*(k-Se-zt)+M,y2:dt*(k-Se-zt)+D},silent:!0,style:Je});Je.stroke==="auto"&&Ha.setStyle({stroke:d((wt+Un/ve)/fe)}),E.add(Ha),Ee+=Le}Ee-=Le}else Ee+=Ie}},a.prototype._renderPointer=function(i,l,c,d,v,m,w,S,x){var E=this.group,M=this._data,D=this._progressEls,k=[],Q=i.get(["pointer","show"]),V=i.getModel("progress"),$=V.get("show"),Z=i.getData(),ee=Z.mapDimension("value"),fe=+i.get("min"),ve=+i.get("max"),ge=[fe,ve],Se=[m,w];function Ee(Le,Fe){var Je=Z.getItemModel(Le),rt=Je.getModel("pointer"),at=vr(rt.get("width"),v.r),dt=vr(rt.get("length"),v.r),wt=i.get(["pointer","icon"]),zt=rt.get("offsetCenter"),Ut=vr(zt[0],v.r),Yt=vr(zt[1],v.r),ur=rt.get("keepAspect"),wr;return wt?wr=Os(wt,Ut-at/2,Yt-dt,at,dt,null,ur):wr=new P3e({shape:{angle:-Math.PI/2,width:at,r:dt,x:Ut,y:Yt}}),wr.rotation=-(Fe+Math.PI/2),wr.x=v.cx,wr.y=v.cy,wr}function Ie(Le,Fe){var Je=V.get("roundCap"),rt=Je?vL:hc,at=V.get("overlap"),dt=at?V.get("width"):x/Z.count(),wt=at?v.r-dt:v.r-(Le+1)*dt,zt=at?v.r:v.r-Le*dt,Ut=new rt({shape:{startAngle:m,endAngle:Fe,cx:v.cx,cy:v.cy,clockwise:S,r0:wt,r:zt}});return at&&(Ut.z2=ln(Z.get(ee,Le),[fe,ve],[100,0],!0)),Ut}($||Q)&&(Z.diff(M).add(function(Le){var Fe=Z.get(ee,Le);if(Q){var Je=Ee(Le,m);Co(Je,{rotation:-((isNaN(+Fe)?Se[0]:ln(Fe,ge,Se,!0))+Math.PI/2)},i),E.add(Je),Z.setItemGraphicEl(Le,Je)}if($){var rt=Ie(Le,m),at=V.get("clip");Co(rt,{shape:{endAngle:ln(Fe,ge,Se,at)}},i),E.add(rt),mr(i.seriesIndex,Z.dataType,Le,rt),k[Le]=rt}}).update(function(Le,Fe){var Je=Z.get(ee,Le);if(Q){var rt=M.getItemGraphicEl(Fe),at=rt?rt.rotation:m,dt=Ee(Le,at);dt.rotation=at,Yi(dt,{rotation:-((isNaN(+Je)?Se[0]:ln(Je,ge,Se,!0))+Math.PI/2)},i),E.add(dt),Z.setItemGraphicEl(Le,dt)}if($){var wt=D[Fe],zt=wt?wt.shape.endAngle:m,Ut=Ie(Le,zt),Yt=V.get("clip");Yi(Ut,{shape:{endAngle:ln(Je,ge,Se,Yt)}},i),E.add(Ut),mr(i.seriesIndex,Z.dataType,Le,Ut),k[Le]=Ut}}).execute(),Z.each(function(Le){var Fe=Z.getItemModel(Le),Je=Fe.getModel("emphasis"),rt=Je.get("focus"),at=Je.get("blurScope"),dt=Je.get("disabled");if(Q){var wt=Z.getItemGraphicEl(Le),zt=Z.getItemVisual(Le,"style"),Ut=zt.fill;if(wt instanceof is){var Yt=wt.style;wt.useStyle(ie({image:Yt.image,x:Yt.x,y:Yt.y,width:Yt.width,height:Yt.height},zt))}else wt.useStyle(zt),wt.type!=="pointer"&&wt.setColor(Ut);wt.setStyle(Fe.getModel(["pointer","itemStyle"]).getItemStyle()),wt.style.fill==="auto"&&wt.setStyle("fill",d(ln(Z.get(ee,Le),ge,[0,1],!0))),wt.z2EmphasisLift=0,ku(wt,Fe),as(wt,rt,at,dt)}if($){var ur=k[Le];ur.useStyle(Z.getItemVisual(Le,"style")),ur.setStyle(Fe.getModel(["progress","itemStyle"]).getItemStyle()),ur.z2EmphasisLift=0,ku(ur,Fe),as(ur,rt,at,dt)}}),this._progressEls=k)},a.prototype._renderAnchor=function(i,l){var c=i.getModel("anchor"),d=c.get("show");if(d){var v=c.get("size"),m=c.get("icon"),w=c.get("offsetCenter"),S=c.get("keepAspect"),x=Os(m,l.cx-v/2+vr(w[0],l.r),l.cy-v/2+vr(w[1],l.r),v,v,null,S);x.z2=c.get("showAbove")?1:0,x.setStyle(c.getModel("itemStyle").getItemStyle()),this.group.add(x)}},a.prototype._renderTitleAndDetail=function(i,l,c,d,v){var m=this,w=i.getData(),S=w.mapDimension("value"),x=+i.get("min"),E=+i.get("max"),M=new Lr,D=[],k=[],Q=i.isAnimationEnabled(),V=i.get(["pointer","showAbove"]);w.diff(this._data).add(function($){D[$]=new be({silent:!0}),k[$]=new be({silent:!0})}).update(function($,Z){D[$]=m._titleEls[Z],k[$]=m._detailEls[Z]}).execute(),w.each(function($){var Z=w.getItemModel($),ee=w.get(S,$),fe=new Lr,ve=d(ln(ee,[x,E],[0,1],!0)),ge=Z.getModel("title");if(ge.get("show")){var Se=ge.get("offsetCenter"),Ee=v.cx+vr(Se[0],v.r),Ie=v.cy+vr(Se[1],v.r),Le=D[$];Le.attr({z2:V?0:2,style:Xa(ge,{x:Ee,y:Ie,text:w.getName($),align:"center",verticalAlign:"middle"},{inheritColor:ve})}),fe.add(Le)}var Fe=Z.getModel("detail");if(Fe.get("show")){var Je=Fe.get("offsetCenter"),rt=v.cx+vr(Je[0],v.r),at=v.cy+vr(Je[1],v.r),dt=vr(Fe.get("width"),v.r),wt=vr(Fe.get("height"),v.r),zt=i.get(["progress","show"])?w.getItemVisual($,"style").fill:ve,Le=k[$],Ut=Fe.get("formatter");Le.attr({z2:V?0:2,style:Xa(Fe,{x:rt,y:at,text:OL(ee,Ut),width:isNaN(dt)?null:dt,height:isNaN(wt)?null:wt,align:"center",verticalAlign:"middle"},{inheritColor:zt})}),xee(Le,{normal:Fe},ee,function(ur){return OL(ur,Ut)}),Q&&Cee(Le,$,w,i,{getFormattedLabel:function(ur,wr,Or,vn,wn,Un){return OL(Un?Un.interpolatedValue:ee,Ut)}}),fe.add(Le)}M.add(fe)}),this.group.add(M),this._titleEls=D,this._detailEls=k},a.type="gauge",a}(xa),F3e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.visualStyleAccessPath="itemStyle",i}return a.prototype.getInitialData=function(i,l){return Bb(this,["value"])},a.type="series.gauge",a.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}},a}(Ua);function N3e(s){s.registerChartView(k3e),s.registerSeriesModel(F3e)}var U3e=["itemStyle","opacity"],H3e=function(s){o(a,s);function a(i,l){var c=s.call(this)||this,d=c,v=new Ac,m=new be;return d.setTextContent(m),c.setTextGuideLine(v),c.updateData(i,l,!0),c}return a.prototype.updateData=function(i,l,c){var d=this,v=i.hostModel,m=i.getItemModel(l),w=i.getItemLayout(l),S=m.getModel("emphasis"),x=m.get(U3e);x=x??1,c||dA(d),d.useStyle(i.getItemVisual(l,"style")),d.style.lineJoin="round",c?(d.setShape({points:w.points}),d.style.opacity=0,Co(d,{style:{opacity:x}},v,l)):Yi(d,{style:{opacity:x},shape:{points:w.points}},v,l),ku(d,m),this._updateLabel(i,l),as(this,S.get("focus"),S.get("blurScope"),S.get("disabled"))},a.prototype._updateLabel=function(i,l){var c=this,d=this.getTextGuideLine(),v=c.getTextContent(),m=i.hostModel,w=i.getItemModel(l),S=i.getItemLayout(l),x=S.label,E=i.getItemVisual(l,"style"),M=E.fill;Fu(v,eu(w),{labelFetcher:i.hostModel,labelDataIndex:l,defaultOpacity:E.opacity,defaultText:i.getName(l)},{normal:{align:x.textAlign,verticalAlign:x.verticalAlign}}),c.setTextConfig({local:!0,inside:!!x.inside,insideStroke:M,outsideFill:M});var D=x.linePoints;d.setShape({points:D}),c.textGuideLineConfig={anchor:D?new xn(D[0][0],D[0][1]):null},Yi(v,{style:{x:x.x,y:x.y}},m,l),v.attr({rotation:x.rotation,originX:x.x,originY:x.y,z2:10}),mU(c,yU(w),{stroke:M})},a}(dc),Q3e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.ignoreLabelLineUpdate=!0,i}return a.prototype.render=function(i,l,c){var d=i.getData(),v=this._data,m=this.group;d.diff(v).add(function(w){var S=new H3e(d,w);d.setItemGraphicEl(w,S),m.add(S)}).update(function(w,S){var x=v.getItemGraphicEl(S);x.updateData(d,w),m.add(x),d.setItemGraphicEl(w,x)}).remove(function(w){var S=v.getItemGraphicEl(w);zx(S,i,w)}).execute(),this._data=d},a.prototype.remove=function(){this.group.removeAll(),this._data=null},a.prototype.dispose=function(){},a.type="funnel",a}(xa),V3e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.init=function(i){s.prototype.init.apply(this,arguments),this.legendVisualProvider=new IC(Ue(this.getData,this),Ue(this.getRawData,this)),this._defaultLabelLine(i)},a.prototype.getInitialData=function(i,l){return Bb(this,{coordDimensions:["value"],encodeDefaulter:ue(sN,this)})},a.prototype._defaultLabelLine=function(i){zh(i,"labelLine",["show"]);var l=i.labelLine,c=i.emphasis.labelLine;l.show=l.show&&i.label.show,c.show=c.show&&i.emphasis.label.show},a.prototype.getDataParams=function(i){var l=this.getData(),c=s.prototype.getDataParams.call(this,i),d=l.mapDimension("value"),v=l.getSum(d);return c.percent=v?+(l.get(d,i)/v*100).toFixed(2):0,c.$vars.push("percent"),c},a.type="series.funnel",a.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"}}},a}(Ua);function z3e(s,a){return ol(s.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function G3e(s,a){for(var i=s.mapDimension("value"),l=s.mapArray(i,function(w){return w}),c=[],d=a==="ascending",v=0,m=s.count();v<m;v++)c[v]=v;return qe(a)?c.sort(a):a!=="none"&&c.sort(function(w,S){return d?l[w]-l[S]:l[S]-l[w]}),c}function j3e(s){var a=s.hostModel,i=a.get("orient");s.each(function(l){var c=s.getItemModel(l),d=c.getModel("label"),v=d.get("position"),m=c.getModel("labelLine"),w=s.getItemLayout(l),S=w.points,x=v==="inner"||v==="inside"||v==="center"||v==="insideLeft"||v==="insideRight",E,M,D,k;if(x)v==="insideLeft"?(M=(S[0][0]+S[3][0])/2+5,D=(S[0][1]+S[3][1])/2,E="left"):v==="insideRight"?(M=(S[1][0]+S[2][0])/2-5,D=(S[1][1]+S[2][1])/2,E="right"):(M=(S[0][0]+S[1][0]+S[2][0]+S[3][0])/4,D=(S[0][1]+S[1][1]+S[2][1]+S[3][1])/4,E="center"),k=[[M,D],[M,D]];else{var Q=void 0,V=void 0,$=void 0,Z=void 0,ee=m.get("length");i==="vertical"&&["top","bottom"].indexOf(v)>-1&&(v="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),i==="horizontal"&&["left","right"].indexOf(v)>-1&&(v="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right.")),v==="left"?(Q=(S[3][0]+S[0][0])/2,V=(S[3][1]+S[0][1])/2,$=Q-ee,M=$-5,E="right"):v==="right"?(Q=(S[1][0]+S[2][0])/2,V=(S[1][1]+S[2][1])/2,$=Q+ee,M=$+5,E="left"):v==="top"?(Q=(S[3][0]+S[0][0])/2,V=(S[3][1]+S[0][1])/2,Z=V-ee,D=Z-5,E="center"):v==="bottom"?(Q=(S[1][0]+S[2][0])/2,V=(S[1][1]+S[2][1])/2,Z=V+ee,D=Z+5,E="center"):v==="rightTop"?(Q=i==="horizontal"?S[3][0]:S[1][0],V=i==="horizontal"?S[3][1]:S[1][1],i==="horizontal"?(Z=V-ee,D=Z-5,E="center"):($=Q+ee,M=$+5,E="top")):v==="rightBottom"?(Q=S[2][0],V=S[2][1],i==="horizontal"?(Z=V+ee,D=Z+5,E="center"):($=Q+ee,M=$+5,E="bottom")):v==="leftTop"?(Q=S[0][0],V=i==="horizontal"?S[0][1]:S[1][1],i==="horizontal"?(Z=V-ee,D=Z-5,E="center"):($=Q-ee,M=$-5,E="right")):v==="leftBottom"?(Q=i==="horizontal"?S[1][0]:S[3][0],V=i==="horizontal"?S[1][1]:S[2][1],i==="horizontal"?(Z=V+ee,D=Z+5,E="center"):($=Q-ee,M=$-5,E="right")):(Q=(S[1][0]+S[2][0])/2,V=(S[1][1]+S[2][1])/2,i==="horizontal"?(Z=V+ee,D=Z+5,E="center"):($=Q+ee,M=$+5,E="left")),i==="horizontal"?($=Q,M=$):(Z=V,D=Z),k=[[Q,V],[$,Z]]}w.label={linePoints:k,x:M,y:D,verticalAlign:"middle",textAlign:E,inside:x}})}function q3e(s,a){s.eachSeriesByType("funnel",function(i){var l=i.getData(),c=l.mapDimension("value"),d=i.get("sort"),v=z3e(i,a),m=i.get("orient"),w=v.width,S=v.height,x=G3e(l,d),E=v.x,M=v.y,D=m==="horizontal"?[vr(i.get("minSize"),S),vr(i.get("maxSize"),S)]:[vr(i.get("minSize"),w),vr(i.get("maxSize"),w)],k=l.getDataExtent(c),Q=i.get("min"),V=i.get("max");Q==null&&(Q=Math.min(k[0],0)),V==null&&(V=k[1]);var $=i.get("funnelAlign"),Z=i.get("gap"),ee=m==="horizontal"?w:S,fe=(ee-Z*(l.count()-1))/l.count(),ve=function(at,dt){if(m==="horizontal"){var wt=l.get(c,at)||0,zt=ln(wt,[Q,V],D,!0),Ut=void 0;switch($){case"top":Ut=M;break;case"center":Ut=M+(S-zt)/2;break;case"bottom":Ut=M+(S-zt);break}return[[dt,Ut],[dt,Ut+zt]]}var Yt=l.get(c,at)||0,ur=ln(Yt,[Q,V],D,!0),wr;switch($){case"left":wr=E;break;case"center":wr=E+(w-ur)/2;break;case"right":wr=E+w-ur;break}return[[wr,dt],[wr+ur,dt]]};d==="ascending"&&(fe=-fe,Z=-Z,m==="horizontal"?E+=w:M+=S,x=x.reverse());for(var ge=0;ge<x.length;ge++){var Se=x[ge],Ee=x[ge+1],Ie=l.getItemModel(Se);if(m==="horizontal"){var Le=Ie.get(["itemStyle","width"]);Le==null?Le=fe:(Le=vr(Le,w),d==="ascending"&&(Le=-Le));var Fe=ve(Se,E),Je=ve(Ee,E+Le);E+=Le+Z,l.setItemLayout(Se,{points:Fe.concat(Je.slice().reverse())})}else{var rt=Ie.get(["itemStyle","height"]);rt==null?rt=fe:(rt=vr(rt,S),d==="ascending"&&(rt=-rt));var Fe=ve(Se,M),Je=ve(Ee,M+rt);M+=rt+Z,l.setItemLayout(Se,{points:Fe.concat(Je.slice().reverse())})}}j3e(l)})}function W3e(s){s.registerChartView(Q3e),s.registerSeriesModel(V3e),s.registerLayout(q3e),s.registerProcessor(BC("funnel"))}var $3e=.3,K3e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i._dataGroup=new Lr,i._initialized=!1,i}return a.prototype.init=function(){this.group.add(this._dataGroup)},a.prototype.render=function(i,l,c,d){this._progressiveEls=null;var v=this._dataGroup,m=i.getData(),w=this._data,S=i.coordinateSystem,x=S.dimensions,E=ase(i);m.diff(w).add(M).update(D).remove(k).execute();function M(V){var $=ise(m,v,V,x,S);H4($,m,V,E)}function D(V,$){var Z=w.getItemGraphicEl($),ee=nse(m,V,x,S);m.setItemGraphicEl(V,Z),Yi(Z,{shape:{points:ee}},i,V),dA(Z),H4(Z,m,V,E)}function k(V){var $=w.getItemGraphicEl(V);v.remove($)}if(!this._initialized){this._initialized=!0;var Q=Y3e(S,i,function(){setTimeout(function(){v.removeClipPath()})});v.setClipPath(Q)}this._data=m},a.prototype.incrementalPrepareRender=function(i,l,c){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},a.prototype.incrementalRender=function(i,l,c){for(var d=l.getData(),v=l.coordinateSystem,m=v.dimensions,w=ase(l),S=this._progressiveEls=[],x=i.start;x<i.end;x++){var E=ise(d,this._dataGroup,x,m,v);E.incremental=!0,H4(E,d,x,w),S.push(E)}},a.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},a.type="parallel",a}(xa);function Y3e(s,a,i){var l=s.model,c=s.getRect(),d=new R({shape:{x:c.x,y:c.y,width:c.width,height:c.height}}),v=l.get("layout")==="horizontal"?"width":"height";return d.setShape(v,0),Co(d,{shape:{width:c.width,height:c.height}},a,i),d}function nse(s,a,i,l){for(var c=[],d=0;d<i.length;d++){var v=i[d],m=s.get(s.mapDimension(v),a);X3e(m,l.getAxis(v).type)||c.push(l.dataToPoint(m,v))}return c}function ise(s,a,i,l,c){var d=nse(s,i,l,c),v=new Ac({shape:{points:d},z2:10});return a.add(v),s.setItemGraphicEl(i,v),v}function ase(s){var a=s.get("smooth",!0);return a===!0&&(a=$3e),a=yu(a),Rt(a)&&(a=0),{smooth:a}}function H4(s,a,i,l){s.useStyle(a.getItemVisual(i,"style")),s.style.fill=null,s.setShape("smooth",l.smooth);var c=a.getItemModel(i),d=c.getModel("emphasis");ku(s,c,"lineStyle"),as(s,d.get("focus"),d.get("blurScope"),d.get("disabled"))}function X3e(s,a){return a==="category"?s==null:s==null||isNaN(s)}var Z3e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.visualStyleAccessPath="lineStyle",i.visualDrawType="stroke",i}return a.prototype.getInitialData=function(i,l){return Sv(null,this,{useEncodeDefaulter:Ue(J3e,null,this)})},a.prototype.getRawIndicesByActiveState=function(i){var l=this.coordinateSystem,c=this.getData(),d=[];return l.eachActiveState(c,function(v,m){i===v&&d.push(c.getRawIndex(m))}),d},a.type="series.parallel",a.dependencies=["parallel"],a.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},a}(Ua);function J3e(s){var a=s.ecModel.getComponent("parallel",s.get("parallelIndex"));if(a){var i={};return ne(a.dimensions,function(l){var c=eje(l);i[l]=c}),i}}function eje(s){return+s.replace("dim","")}var tje=["lineStyle","opacity"],rje={seriesType:"parallel",reset:function(s,a){var i=s.coordinateSystem,l={normal:s.get(["lineStyle","opacity"]),active:s.get("activeOpacity"),inactive:s.get("inactiveOpacity")};return{progress:function(c,d){i.eachActiveState(d,function(v,m){var w=l[v];if(v==="normal"&&d.hasItemOption){var S=d.getItemModel(m).get(tje,!0);S!=null&&(w=S)}var x=d.ensureUniqueItemVisual(m,"style");x.opacity=w},c.start,c.end)}}}};function nje(s){ije(s),aje(s)}function ije(s){if(!s.parallel){var a=!1;ne(s.series,function(i){i&&i.type==="parallel"&&(a=!0)}),a&&(s.parallel=[{}])}}function aje(s){var a=Ni(s.parallelAxis);ne(a,function(i){if(Pe(i)){var l=i.parallelIndex||0,c=Ni(s.parallel)[l];c&&c.parallelAxisDefault&&le(i,c.parallelAxisDefault,!1)}})}var oje=5,sje=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c){this._model=i,this._api=c,this._handlers||(this._handlers={},ne(lje,function(d,v){c.getZr().on(v,this._handlers[v]=Ue(d,this))},this)),vb(this,"_throttledDispatchExpand",i.get("axisExpandRate"),"fixRate")},a.prototype.dispose=function(i,l){iC(this,"_throttledDispatchExpand"),ne(this._handlers,function(c,d){l.getZr().off(d,c)}),this._handlers=null},a.prototype._throttledDispatchExpand=function(i){this._dispatchExpand(i)},a.prototype._dispatchExpand=function(i){i&&this._api.dispatchAction(ie({type:"parallelAxisExpand"},i))},a.type="parallel",a}(ho),lje={mousedown:function(s){Q4(this,"click")&&(this._mouseDownPoint=[s.offsetX,s.offsetY])},mouseup:function(s){var a=this._mouseDownPoint;if(Q4(this,"click")&&a){var i=[s.offsetX,s.offsetY],l=Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2);if(l>oje)return;var c=this._model.coordinateSystem.getSlidedAxisExpandWindow([s.offsetX,s.offsetY]);c.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:c.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(s){if(!(this._mouseDownPoint||!Q4(this,"mousemove"))){var a=this._model,i=a.coordinateSystem.getSlidedAxisExpandWindow([s.offsetX,s.offsetY]),l=i.behavior;l==="jump"&&this._throttledDispatchExpand.debounceNextCall(a.get("axisExpandDebounce")),this._throttledDispatchExpand(l==="none"?null:{axisExpandWindow:i.axisExpandWindow,animation:l==="jump"?null:{duration:0}})}}};function Q4(s,a){var i=s._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===a}var uje=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.init=function(){s.prototype.init.apply(this,arguments),this.mergeOption({})},a.prototype.mergeOption=function(i){var l=this.option;i&&le(l,i,!0),this._initDimensions()},a.prototype.contains=function(i,l){var c=i.get("parallelIndex");return c!=null&&l.getComponent("parallel",c)===this},a.prototype.setAxisExpand=function(i){ne(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(l){i.hasOwnProperty(l)&&(this.option[l]=i[l])},this)},a.prototype._initDimensions=function(){var i=this.dimensions=[],l=this.parallelAxisIndex=[],c=ze(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(d){return(d.get("parallelIndex")||0)===this.componentIndex},this);ne(c,function(d){i.push("dim"+d.get("dim")),l.push(d.componentIndex)})},a.type="parallel",a.dependencies=["parallelAxis"],a.layoutMode="box",a.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},a}(li),cje=function(s){o(a,s);function a(i,l,c,d,v){var m=s.call(this,i,l,c)||this;return m.type=d||"value",m.axisIndex=v,m}return a.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},a}(od);function D0(s,a,i,l,c,d){s=s||0;var v=i[1]-i[0];if(c!=null&&(c=Pb(c,[0,v])),d!=null&&(d=Math.max(d,c??0)),l==="all"){var m=Math.abs(a[1]-a[0]);m=Pb(m,[0,v]),c=d=Pb(m,[c,d]),l=0}a[0]=Pb(a[0],i),a[1]=Pb(a[1],i);var w=V4(a,l);a[l]+=s;var S=c||0,x=i.slice();w.sign<0?x[0]+=S:x[1]-=S,a[l]=Pb(a[l],x);var E;return E=V4(a,l),c!=null&&(E.sign!==w.sign||E.span<c)&&(a[1-l]=a[l]+w.sign*c),E=V4(a,l),d!=null&&E.span>d&&(a[1-l]=a[l]+E.sign*d),a}function V4(s,a){var i=s[a]-s[1-a];return{span:Math.abs(i),sign:i>0?-1:i<0?1:a?-1:1}}function Pb(s,a){return Math.min(a[1]!=null?a[1]:1/0,Math.max(a[0]!=null?a[0]:-1/0,s))}var z4=ne,ose=Math.min,sse=Math.max,lse=Math.floor,fje=Math.ceil,use=pi,hje=Math.PI,dje=function(){function s(a,i,l){this.type="parallel",this._axesMap=Ht(),this._axesLayout={},this.dimensions=a.dimensions,this._model=a,this._init(a,i,l)}return s.prototype._init=function(a,i,l){var c=a.dimensions,d=a.parallelAxisIndex;z4(c,function(v,m){var w=d[m],S=i.getComponent("parallelAxis",w),x=this._axesMap.set(v,new cje(v,gC(S),[0,0],S.get("type"),w)),E=x.type==="category";x.onBand=E&&S.get("boundaryGap"),x.inverse=S.get("inverse"),S.axis=x,x.model=S,x.coordinateSystem=S.coordinateSystem=this},this)},s.prototype.update=function(a,i){this._updateAxesFromSeries(this._model,a)},s.prototype.containPoint=function(a){var i=this._makeLayoutInfo(),l=i.axisBase,c=i.layoutBase,d=i.pixelDimIndex,v=a[1-d],m=a[d];return v>=l&&v<=l+i.axisLength&&m>=c&&m<=c+i.layoutLength},s.prototype.getModel=function(){return this._model},s.prototype._updateAxesFromSeries=function(a,i){i.eachSeries(function(l){if(a.contains(l,i)){var c=l.getData();z4(this.dimensions,function(d){var v=this._axesMap.get(d);v.scale.unionExtentFromData(c,c.mapDimension(d)),p0(v.scale,v.model)},this)}},this)},s.prototype.resize=function(a,i){this._rect=ol(a.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),this._layoutAxes()},s.prototype.getRect=function(){return this._rect},s.prototype._makeLayoutInfo=function(){var a=this._model,i=this._rect,l=["x","y"],c=["width","height"],d=a.get("layout"),v=d==="horizontal"?0:1,m=i[c[v]],w=[0,m],S=this.dimensions.length,x=kL(a.get("axisExpandWidth"),w),E=kL(a.get("axisExpandCount")||0,[0,S]),M=a.get("axisExpandable")&&S>3&&S>E&&E>1&&x>0&&m>0,D=a.get("axisExpandWindow"),k;if(D)k=kL(D[1]-D[0],w),D[1]=D[0]+k;else{k=kL(x*(E-1),w);var Q=a.get("axisExpandCenter")||lse(S/2);D=[x*Q-k/2],D[1]=D[0]+k}var V=(m-k)/(S-E);V<3&&(V=0);var $=[lse(use(D[0]/x,1))+1,fje(use(D[1]/x,1))-1],Z=V/x*D[0];return{layout:d,pixelDimIndex:v,layoutBase:i[l[v]],layoutLength:m,axisBase:i[l[1-v]],axisLength:i[c[1-v]],axisExpandable:M,axisExpandWidth:x,axisCollapseWidth:V,axisExpandWindow:D,axisCount:S,winInnerIndices:$,axisExpandWindow0Pos:Z}},s.prototype._layoutAxes=function(){var a=this._rect,i=this._axesMap,l=this.dimensions,c=this._makeLayoutInfo(),d=c.layout;i.each(function(v){var m=[0,c.axisLength],w=v.inverse?1:0;v.setExtent(m[w],m[1-w])}),z4(l,function(v,m){var w=(c.axisExpandable?vje:Aje)(m,c),S={horizontal:{x:w.position,y:c.axisLength},vertical:{x:0,y:w.position}},x={horizontal:hje/2,vertical:0},E=[S[d].x+a.x,S[d].y+a.y],M=x[d],D=gn();so(D,D,M),Ai(D,D,E),this._axesLayout[v]={position:E,rotation:M,transform:D,axisNameAvailableWidth:w.axisNameAvailableWidth,axisLabelShow:w.axisLabelShow,nameTruncateMaxWidth:w.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},s.prototype.getAxis=function(a){return this._axesMap.get(a)},s.prototype.dataToPoint=function(a,i){return this.axisCoordToPoint(this._axesMap.get(i).dataToCoord(a),i)},s.prototype.eachActiveState=function(a,i,l,c){l==null&&(l=0),c==null&&(c=a.count());var d=this._axesMap,v=this.dimensions,m=[],w=[];ne(v,function(V){m.push(a.mapDimension(V)),w.push(d.get(V).model)});for(var S=this.hasAxisBrushed(),x=l;x<c;x++){var E=void 0;if(!S)E="normal";else{E="active";for(var M=a.getValues(m,x),D=0,k=v.length;D<k;D++){var Q=w[D].getActiveState(M[D]);if(Q==="inactive"){E="inactive";break}}}i(E,x)}},s.prototype.hasAxisBrushed=function(){for(var a=this.dimensions,i=this._axesMap,l=!1,c=0,d=a.length;c<d;c++)i.get(a[c]).model.getActiveState()!=="normal"&&(l=!0);return l},s.prototype.axisCoordToPoint=function(a,i){var l=this._axesLayout[i];return AA([a,0],l.transform)},s.prototype.getAxisLayout=function(a){return ae(this._axesLayout[a])},s.prototype.getSlidedAxisExpandWindow=function(a){var i=this._makeLayoutInfo(),l=i.pixelDimIndex,c=i.axisExpandWindow.slice(),d=c[1]-c[0],v=[0,i.axisExpandWidth*(i.axisCount-1)];if(!this.containPoint(a))return{behavior:"none",axisExpandWindow:c};var m=a[l]-i.layoutBase-i.axisExpandWindow0Pos,w,S="slide",x=i.axisCollapseWidth,E=this._model.get("axisExpandSlideTriggerArea"),M=E[0]!=null;if(x)M&&x&&m<d*E[0]?(S="jump",w=m-d*E[2]):M&&x&&m>d*(1-E[0])?(S="jump",w=m-d*(1-E[2])):(w=m-d*E[1])>=0&&(w=m-d*(1-E[1]))<=0&&(w=0),w*=i.axisExpandWidth/x,w?D0(w,c,v,"all"):S="none";else{var D=c[1]-c[0],k=v[1]*m/D;c=[sse(0,k-D/2)],c[1]=ose(v[1],c[0]+D),c[0]=c[1]-D}return{axisExpandWindow:c,behavior:S}},s}();function kL(s,a){return ose(sse(s,a[0]),a[1])}function Aje(s,a){var i=a.layoutLength/(a.axisCount-1);return{position:i*s,axisNameAvailableWidth:i,axisLabelShow:!0}}function vje(s,a){var i=a.layoutLength,l=a.axisExpandWidth,c=a.axisCount,d=a.axisCollapseWidth,v=a.winInnerIndices,m,w=d,S=!1,x;return s<v[0]?(m=s*d,x=d):s<=v[1]?(m=a.axisExpandWindow0Pos+s*l-a.axisExpandWindow[0],w=l,S=!0):(m=i-(c-1-s)*d,x=d),{position:m,axisNameAvailableWidth:w,axisLabelShow:S,nameTruncateMaxWidth:x}}function pje(s,a){var i=[];return s.eachComponent("parallel",function(l,c){var d=new dje(l,s,a);d.name="parallel_"+c,d.resize(l,a),l.coordinateSystem=d,d.model=l,i.push(d)}),s.eachSeries(function(l){if(l.get("coordinateSystem")==="parallel"){var c=l.getReferringComponents("parallel",ps).models[0];l.coordinateSystem=c.coordinateSystem}}),i}var gje={create:pje},G4=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.activeIntervals=[],i}return a.prototype.getAreaSelectStyle=function(){return vv([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},a.prototype.setActiveIntervals=function(i){var l=this.activeIntervals=ae(i);if(l)for(var c=l.length-1;c>=0;c--)aa(l[c])},a.prototype.getActiveState=function(i){var l=this.activeIntervals;if(!l.length)return"normal";if(i==null||isNaN(+i))return"inactive";if(l.length===1){var c=l[0];if(c[0]<=i&&i<=c[1])return"active"}else for(var d=0,v=l.length;d<v;d++)if(l[d][0]<=i&&i<=l[d][1])return"active";return"inactive"},a}(li);_e(G4,Cb);var R0=!0,qC=Math.min,Ob=Math.max,mje=Math.pow,yje=1e4,wje=6,bje=6,cse="globalPan",_je={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Sje={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},fse={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},xje=0,j4=function(s){o(a,s);function a(i){var l=s.call(this)||this;return l._track=[],l._covers=[],l._handlers={},_t(i),l._zr=i,l.group=new Lr,l._uid="brushController_"+xje++,ne(Mje,function(c,d){this._handlers[d]=Ue(c,this)},l),l}return a.prototype.enableBrush=function(i){return _t(this._mounted),this._brushType&&this._doDisableBrush(),i.brushType&&this._doEnableBrush(i),this},a.prototype._doEnableBrush=function(i){var l=this._zr;this._enableGlobalPan||A9e(l,cse,this._uid),ne(this._handlers,function(c,d){l.on(d,c)}),this._brushType=i.brushType,this._brushOption=le(ae(fse),i,!0)},a.prototype._doDisableBrush=function(){var i=this._zr;v9e(i,cse,this._uid),ne(this._handlers,function(l,c){i.off(c,l)}),this._brushType=this._brushOption=null},a.prototype.setPanels=function(i){if(i&&i.length){var l=this._panels={};ne(i,function(c){l[c.panelId]=ae(c)})}else this._panels=null;return this},a.prototype.mount=function(i){i=i||{},this._mounted=!0,this._enableGlobalPan=i.enableGlobalPan;var l=this.group;return this._zr.add(l),l.attr({x:i.x||0,y:i.y||0,rotation:i.rotation||0,scaleX:i.scaleX||1,scaleY:i.scaleY||1}),this._transform=l.getLocalTransform(),this},a.prototype.updateCovers=function(i){_t(this._mounted),i=xe(i,function(M){return le(ae(fse),M,!0)});var l="\0-brush-index-",c=this._covers,d=this._covers=[],v=this,m=this._creatingCover;return new Hp(c,i,S,w).add(x).update(x).remove(E).execute(),this;function w(M,D){return(M.id!=null?M.id:l+D)+"-"+M.brushType}function S(M,D){return w(M.__brushOption,D)}function x(M,D){var k=i[M];if(D!=null&&c[D]===m)d[M]=c[D];else{var Q=d[M]=D!=null?(c[D].__brushOption=k,c[D]):dse(v,hse(v,k));q4(v,Q)}}function E(M){c[M]!==m&&v.group.remove(c[M])}},a.prototype.unmount=function(){if(this._mounted)return this.enableBrush(!1),K4(this),this._zr.remove(this.group),this._mounted=!1,this},a.prototype.dispose=function(){this.unmount(),this.off()},a}(Da);function hse(s,a){var i=FL[a.brushType].createCover(s,a);return i.__brushOption=a,vse(i,a),s.group.add(i),i}function dse(s,a){var i=W4(a);return i.endCreating&&(i.endCreating(s,a),vse(a,a.__brushOption)),a}function Ase(s,a){var i=a.__brushOption;W4(a).updateCoverShape(s,a,i.range,i)}function vse(s,a){var i=a.z;i==null&&(i=yje),s.traverse(function(l){l.z=i,l.z2=i})}function q4(s,a){W4(a).updateCommon(s,a),Ase(s,a)}function W4(s){return FL[s.__brushOption.brushType]}function $4(s,a,i){var l=s._panels;if(!l)return R0;var c,d=s._transform;return ne(l,function(v){v.isTargetByCursor(a,i,d)&&(c=v)}),c}function pse(s,a){var i=s._panels;if(!i)return R0;var l=a.__brushOption.panelId;return l!=null?i[l]:R0}function K4(s){var a=s._covers,i=a.length;return ne(a,function(l){s.group.remove(l)},s),a.length=0,!!i}function P0(s,a){var i=xe(s._covers,function(l){var c=l.__brushOption,d=ae(c.range);return{brushType:c.brushType,panelId:c.panelId,range:d}});s.trigger("brush",{areas:i,isEnd:!!a.isEnd,removeOnClick:!!a.removeOnClick})}function Cje(s){var a=s._track;if(!a.length)return!1;var i=a[a.length-1],l=a[0],c=i[0]-l[0],d=i[1]-l[1],v=mje(c*c+d*d,.5);return v>wje}function gse(s){var a=s.length-1;return a<0&&(a=0),[s[0],s[a]]}function mse(s,a,i,l){var c=new Lr;return c.add(new R({name:"main",style:X4(i),silent:!0,draggable:!0,cursor:"move",drift:ue(bse,s,a,c,["n","s","w","e"]),ondragend:ue(P0,a,{isEnd:!0})})),ne(l,function(d){c.add(new R({name:d.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ue(bse,s,a,c,d),ondragend:ue(P0,a,{isEnd:!0})}))}),c}function yse(s,a,i,l){var c=l.brushStyle.lineWidth||0,d=Ob(c,bje),v=i[0][0],m=i[1][0],w=v-c/2,S=m-c/2,x=i[0][1],E=i[1][1],M=x-d+c/2,D=E-d+c/2,k=x-v,Q=E-m,V=k+c,$=Q+c;Gp(s,a,"main",v,m,k,Q),l.transformable&&(Gp(s,a,"w",w,S,d,$),Gp(s,a,"e",M,S,d,$),Gp(s,a,"n",w,S,V,d),Gp(s,a,"s",w,D,V,d),Gp(s,a,"nw",w,S,d,d),Gp(s,a,"ne",M,S,d,d),Gp(s,a,"sw",w,D,d,d),Gp(s,a,"se",M,D,d,d))}function Y4(s,a){var i=a.__brushOption,l=i.transformable,c=a.childAt(0);c.useStyle(X4(i)),c.attr({silent:!l,cursor:l?"move":"default"}),ne([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(d){var v=a.childOfName(d.join("")),m=d.length===1?Z4(s,d[0]):Eje(s,d);v&&v.attr({silent:!l,invisible:!l,cursor:l?Sje[m]+"-resize":null})})}function Gp(s,a,i,l,c,d,v){var m=a.childOfName(i);m&&m.setShape(Ije(J4(s,a,[[l,c],[l+d,c+v]])))}function X4(s){return he({strokeNoScale:!0},s.brushStyle)}function wse(s,a,i,l){var c=[qC(s,i),qC(a,l)],d=[Ob(s,i),Ob(a,l)];return[[c[0],d[0]],[c[1],d[1]]]}function Tje(s){return am(s.group)}function Z4(s,a){var i={w:"left",e:"right",n:"top",s:"bottom"},l={left:"w",right:"e",top:"n",bottom:"s"},c=hI(i[a],Tje(s));return l[c]}function Eje(s,a){var i=[Z4(s,a[0]),Z4(s,a[1])];return(i[0]==="e"||i[0]==="w")&&i.reverse(),i.join("")}function bse(s,a,i,l,c,d){var v=i.__brushOption,m=s.toRectRange(v.range),w=_se(a,c,d);ne(l,function(S){var x=_je[S];m[x[0]][x[1]]+=w[x[0]]}),v.range=s.fromRectRange(wse(m[0][0],m[1][0],m[0][1],m[1][1])),q4(a,i),P0(a,{isEnd:!1})}function Bje(s,a,i,l){var c=a.__brushOption.range,d=_se(s,i,l);ne(c,function(v){v[0]+=d[0],v[1]+=d[1]}),q4(s,a),P0(s,{isEnd:!1})}function _se(s,a,i){var l=s.group,c=l.transformCoordToLocal(a,i),d=l.transformCoordToLocal(0,0);return[c[0]-d[0],c[1]-d[1]]}function J4(s,a,i){var l=pse(s,a);return l&&l!==R0?l.clipPath(i,s._transform):ae(i)}function Ije(s){var a=qC(s[0][0],s[1][0]),i=qC(s[0][1],s[1][1]),l=Ob(s[0][0],s[1][0]),c=Ob(s[0][1],s[1][1]);return{x:a,y:i,width:l-a,height:c-i}}function Lje(s,a,i){if(!(!s._brushType||Dje(s,a.offsetX,a.offsetY))){var l=s._zr,c=s._covers,d=$4(s,a,i);if(!s._dragging)for(var v=0;v<c.length;v++){var m=c[v].__brushOption;if(d&&(d===R0||m.panelId===d.panelId)&&FL[m.brushType].contain(c[v],i[0],i[1]))return}d&&l.setCursorStyle("crosshair")}}function e6(s){var a=s.event;a.preventDefault&&a.preventDefault()}function t6(s,a,i){return s.childOfName("main").contain(a,i)}function Sse(s,a,i,l){var c=s._creatingCover,d=s._creatingPanel,v=s._brushOption,m;if(s._track.push(i.slice()),Cje(s)||c){if(d&&!c){v.brushMode==="single"&&K4(s);var w=ae(v);w.brushType=xse(w.brushType,d),w.panelId=d===R0?null:d.panelId,c=s._creatingCover=hse(s,w),s._covers.push(c)}if(c){var S=FL[xse(s._brushType,d)],x=c.__brushOption;x.range=S.getCreatingRange(J4(s,c,s._track)),l&&(dse(s,c),S.updateCommon(s,c)),Ase(s,c),m={isEnd:l}}}else l&&v.brushMode==="single"&&v.removeOnClick&&$4(s,a,i)&&K4(s)&&(m={isEnd:l,removeOnClick:!0});return m}function xse(s,a){return s==="auto"?(_t(a&&a.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),a.defaultBrushType):s}var Mje={mousedown:function(s){if(this._dragging)Cse(this,s);else if(!s.target||!s.target.draggable){e6(s);var a=this.group.transformCoordToLocal(s.offsetX,s.offsetY);this._creatingCover=null;var i=this._creatingPanel=$4(this,s,a);i&&(this._dragging=!0,this._track=[a.slice()])}},mousemove:function(s){var a=s.offsetX,i=s.offsetY,l=this.group.transformCoordToLocal(a,i);if(Lje(this,s,l),this._dragging){e6(s);var c=Sse(this,s,l,!1);c&&P0(this,c)}},mouseup:function(s){Cse(this,s)}};function Cse(s,a){if(s._dragging){e6(a);var i=a.offsetX,l=a.offsetY,c=s.group.transformCoordToLocal(i,l),d=Sse(s,a,c,!0);s._dragging=!1,s._track=[],s._creatingCover=null,d&&P0(s,d)}}function Dje(s,a,i){var l=s._zr;return a<0||a>l.getWidth()||i<0||i>l.getHeight()}var FL={lineX:Tse(0),lineY:Tse(1),rect:{createCover:function(s,a){function i(l){return l}return mse({toRectRange:i,fromRectRange:i},s,a,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(s){var a=gse(s);return wse(a[1][0],a[1][1],a[0][0],a[0][1])},updateCoverShape:function(s,a,i,l){yse(s,a,i,l)},updateCommon:Y4,contain:t6},polygon:{createCover:function(s,a){var i=new Lr;return i.add(new Ac({name:"main",style:X4(a),silent:!0})),i},getCreatingRange:function(s){return s},endCreating:function(s,a){a.remove(a.childAt(0)),a.add(new dc({name:"main",draggable:!0,drift:ue(Bje,s,a),ondragend:ue(P0,s,{isEnd:!0})}))},updateCoverShape:function(s,a,i,l){a.childAt(0).setShape({points:J4(s,a,i)})},updateCommon:Y4,contain:t6}};function Tse(s){return{createCover:function(a,i){return mse({toRectRange:function(l){var c=[l,[0,100]];return s&&c.reverse(),c},fromRectRange:function(l){return l[s]}},a,i,[[["w"],["e"]],[["n"],["s"]]][s])},getCreatingRange:function(a){var i=gse(a),l=qC(i[0][s],i[1][s]),c=Ob(i[0][s],i[1][s]);return[l,c]},updateCoverShape:function(a,i,l,c){var d,v=pse(a,i);if(v!==R0&&v.getLinearBrushOtherExtent)d=v.getLinearBrushOtherExtent(s);else{var m=a._zr;d=[0,[m.getWidth(),m.getHeight()][1-s]]}var w=[l,d];s&&w.reverse(),yse(a,i,w,c)},updateCommon:Y4,contain:t6}}function Ese(s){return s=r6(s),function(a){return HF(a,s)}}function Bse(s,a){return s=r6(s),function(i){var l=a??i,c=l?s.width:s.height,d=l?s.x:s.y;return[d,d+(c||0)]}}function Ise(s,a,i){var l=r6(s);return function(c,d){return l.contain(d[0],d[1])&&!_L(c,a,i)}}function r6(s){return Bn.create(s)}var Rje=["axisLine","axisTickLabel","axisName"],Pje=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.init=function(i,l){s.prototype.init.apply(this,arguments),(this._brushController=new j4(l.getZr())).on("brush",Ue(this._onBrush,this))},a.prototype.render=function(i,l,c,d){if(!Oje(i,l,d)){this.axisModel=i,this.api=c,this.group.removeAll();var v=this._axisGroup;if(this._axisGroup=new Lr,this.group.add(this._axisGroup),!!i.get("show")){var m=Fje(i,l),w=m.coordinateSystem,S=i.getAreaSelectStyle(),x=S.width,E=i.axis.dim,M=w.getAxisLayout(E),D=ie({strokeContainThreshold:x},M),k=new tf(i,D);ne(Rje,k.add,k),this._axisGroup.add(k.getGroup()),this._refreshBrushController(D,S,i,m,x,c),jx(v,this._axisGroup,i)}}},a.prototype._refreshBrushController=function(i,l,c,d,v,m){var w=c.axis.getExtent(),S=w[1]-w[0],x=Math.min(30,Math.abs(S)*.1),E=Bn.create({x:w[0],y:-v/2,width:S,height:v});E.x-=x,E.width+=2*x,this._brushController.mount({enableGlobalPan:!0,rotation:i.rotation,x:i.position[0],y:i.position[1]}).setPanels([{panelId:"pl",clipPath:Ese(E),isTargetByCursor:Ise(E,m,d),getLinearBrushOtherExtent:Bse(E,0)}]).enableBrush({brushType:"lineX",brushStyle:l,removeOnClick:!0}).updateCovers(kje(c))},a.prototype._onBrush=function(i){var l=i.areas,c=this.axisModel,d=c.axis,v=xe(l,function(m){return[d.coordToData(m.range[0],!0),d.coordToData(m.range[1],!0)]});(!c.option.realtime===i.isEnd||i.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:c.id,intervals:v})},a.prototype.dispose=function(){this._brushController.dispose()},a.type="parallelAxis",a}(ho);function Oje(s,a,i){return i&&i.type==="axisAreaSelect"&&a.findComponents({mainType:"parallelAxis",query:i})[0]===s}function kje(s){var a=s.axis;return xe(s.activeIntervals,function(i){return{brushType:"lineX",panelId:"pl",range:[a.dataToCoord(i[0],!0),a.dataToCoord(i[1],!0)]}})}function Fje(s,a){return a.getComponent("parallel",s.get("parallelIndex"))}var Nje={type:"axisAreaSelect",event:"axisAreaSelected"};function Uje(s){s.registerAction(Nje,function(a,i){i.eachComponent({mainType:"parallelAxis",query:a},function(l){l.axis.model.setActiveIntervals(a.intervals)})}),s.registerAction("parallelAxisExpand",function(a,i){i.eachComponent({mainType:"parallel",query:a},function(l){l.setAxisExpand(a)})})}var Hje={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Lse(s){s.registerComponentView(sje),s.registerComponentModel(uje),s.registerCoordinateSystem("parallel",gje),s.registerPreprocessor(nje),s.registerComponentModel(G4),s.registerComponentView(Pje),Ib(s,"parallel",G4,Hje),Uje(s)}function Qje(s){ui(Lse),s.registerChartView(K3e),s.registerSeriesModel(Z3e),s.registerVisual(s.PRIORITY.VISUAL.BRUSH,rje)}var Vje=function(){function s(){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 s}(),zje=function(s){o(a,s);function a(i){return s.call(this,i)||this}return a.prototype.getDefaultShape=function(){return new Vje},a.prototype.buildPath=function(i,l){var c=l.extent;i.moveTo(l.x1,l.y1),i.bezierCurveTo(l.cpx1,l.cpy1,l.cpx2,l.cpy2,l.x2,l.y2),l.orient==="vertical"?(i.lineTo(l.x2+c,l.y2),i.bezierCurveTo(l.cpx2+c,l.cpy2,l.cpx1+c,l.cpy1,l.x1+c,l.y1)):(i.lineTo(l.x2,l.y2+c),i.bezierCurveTo(l.cpx2,l.cpy2+c,l.cpx1,l.cpy1+c,l.x1,l.y1+c)),i.closePath()},a.prototype.highlight=function(){kp(this)},a.prototype.downplay=function(){Fp(this)},a}(Yn),Gje=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i._focusAdjacencyDisabled=!1,i}return a.prototype.render=function(i,l,c){var d=this,v=i.getGraph(),m=this.group,w=i.layoutInfo,S=w.width,x=w.height,E=i.getData(),M=i.getData("edge"),D=i.get("orient");this._model=i,m.removeAll(),m.x=w.x,m.y=w.y,v.eachEdge(function(k){var Q=new zje,V=bt(Q);V.dataIndex=k.dataIndex,V.seriesIndex=i.seriesIndex,V.dataType="edge";var $=k.getModel(),Z=$.getModel("lineStyle"),ee=Z.get("curveness"),fe=k.node1.getLayout(),ve=k.node1.getModel(),ge=ve.get("localX"),Se=ve.get("localY"),Ee=k.node2.getLayout(),Ie=k.node2.getModel(),Le=Ie.get("localX"),Fe=Ie.get("localY"),Je=k.getLayout(),rt,at,dt,wt,zt,Ut,Yt,ur;Q.shape.extent=Math.max(1,Je.dy),Q.shape.orient=D,D==="vertical"?(rt=(ge!=null?ge*S:fe.x)+Je.sy,at=(Se!=null?Se*x:fe.y)+fe.dy,dt=(Le!=null?Le*S:Ee.x)+Je.ty,wt=Fe!=null?Fe*x:Ee.y,zt=rt,Ut=at*(1-ee)+wt*ee,Yt=dt,ur=at*ee+wt*(1-ee)):(rt=(ge!=null?ge*S:fe.x)+fe.dx,at=(Se!=null?Se*x:fe.y)+Je.sy,dt=Le!=null?Le*S:Ee.x,wt=(Fe!=null?Fe*x:Ee.y)+Je.ty,zt=rt*(1-ee)+dt*ee,Ut=at,Yt=rt*ee+dt*(1-ee),ur=wt),Q.setShape({x1:rt,y1:at,x2:dt,y2:wt,cpx1:zt,cpy1:Ut,cpx2:Yt,cpy2:ur}),Q.useStyle(Z.getItemStyle()),Mse(Q.style,D,k);var wr=""+$.get("value"),Or=eu($,"edgeLabel");Fu(Q,Or,{labelFetcher:{getFormattedLabel:function(Un,Ha,Cs,ei,Cn,di){return i.getFormattedLabel(Un,Ha,"edge",ei,qt(Cn,Or.normal&&Or.normal.get("formatter"),wr),di)}},labelDataIndex:k.dataIndex,defaultText:wr}),Q.setTextConfig({position:"inside"});var vn=$.getModel("emphasis");ku(Q,$,"lineStyle",function(Un){var Ha=Un.getItemStyle();return Mse(Ha,D,k),Ha}),m.add(Q),M.setItemGraphicEl(k.dataIndex,Q);var wn=vn.get("focus");as(Q,wn==="adjacency"?k.getAdjacentDataIndices():wn==="trajectory"?k.getTrajectoryDataIndices():wn,vn.get("blurScope"),vn.get("disabled"))}),v.eachNode(function(k){var Q=k.getLayout(),V=k.getModel(),$=V.get("localX"),Z=V.get("localY"),ee=V.getModel("emphasis"),fe=V.get(["itemStyle","borderRadius"])||0,ve=new R({shape:{x:$!=null?$*S:Q.x,y:Z!=null?Z*x:Q.y,width:Q.dx,height:Q.dy,r:fe},style:V.getModel("itemStyle").getItemStyle(),z2:10});Fu(ve,eu(V),{labelFetcher:{getFormattedLabel:function(Se,Ee){return i.getFormattedLabel(Se,Ee,"node")}},labelDataIndex:k.dataIndex,defaultText:k.id}),ve.disableLabelAnimation=!0,ve.setStyle("fill",k.getVisual("color")),ve.setStyle("decal",k.getVisual("style").decal),ku(ve,V),m.add(ve),E.setItemGraphicEl(k.dataIndex,ve),bt(ve).dataType="node";var ge=ee.get("focus");as(ve,ge==="adjacency"?k.getAdjacentDataIndices():ge==="trajectory"?k.getTrajectoryDataIndices():ge,ee.get("blurScope"),ee.get("disabled"))}),E.eachItemGraphicEl(function(k,Q){var V=E.getItemModel(Q);V.get("draggable")&&(k.drift=function($,Z){d._focusAdjacencyDisabled=!0,this.shape.x+=$,this.shape.y+=Z,this.dirty(),c.dispatchAction({type:"dragNode",seriesId:i.id,dataIndex:E.getRawIndex(Q),localX:this.shape.x/S,localY:this.shape.y/x})},k.ondragend=function(){d._focusAdjacencyDisabled=!1},k.draggable=!0,k.cursor="move")}),!this._data&&i.isAnimationEnabled()&&m.setClipPath(jje(m.getBoundingRect(),i,function(){m.removeClipPath()})),this._data=i.getData()},a.prototype.dispose=function(){},a.type="sankey",a}(xa);function Mse(s,a,i){switch(s.fill){case"source":s.fill=i.node1.getVisual("color"),s.decal=i.node1.getVisual("style").decal;break;case"target":s.fill=i.node2.getVisual("color"),s.decal=i.node2.getVisual("style").decal;break;case"gradient":var l=i.node1.getVisual("color"),c=i.node2.getVisual("color");Re(l)&&Re(c)&&(s.fill=new Zw(0,0,+(a==="horizontal"),+(a==="vertical"),[{color:l,offset:0},{color:c,offset:1}]))}}function jje(s,a,i){var l=new R({shape:{x:s.x-10,y:s.y-10,width:0,height:s.height+20}});return Co(l,{shape:{width:s.width+20}},a,i),l}var qje=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.getInitialData=function(i,l){var c=i.edges||i.links||[],d=i.data||i.nodes||[],v=i.levels||[];this.levelModels=[];for(var m=this.levelModels,w=0;w<v.length;w++)if(v[w].depth!=null&&v[w].depth>=0)m[v[w].depth]=new ta(v[w],this,l);else throw new Error("levels[i].depth is mandatory and should be natural number");var S=rse(d,c,this,!0,x);return S.data;function x(E,M){E.wrapMethod("getItemModel",function(D,k){var Q=D.parentModel,V=Q.getData().getItemLayout(k);if(V){var $=V.depth,Z=Q.levelModels[$];Z&&(D.parentModel=Z)}return D}),M.wrapMethod("getItemModel",function(D,k){var Q=D.parentModel,V=Q.getGraph().getEdgeByIndex(k),$=V.node1.getLayout();if($){var Z=$.depth,ee=Q.levelModels[Z];ee&&(D.parentModel=ee)}return D})}},a.prototype.setNodePosition=function(i,l){var c=this.option.data||this.option.nodes,d=c[i];d.localX=l[0],d.localY=l[1]},a.prototype.getGraph=function(){return this.getData().graph},a.prototype.getEdgeData=function(){return this.getGraph().edgeData},a.prototype.formatTooltip=function(i,l,c){function d(D){return isNaN(D)||D==null}if(c==="edge"){var v=this.getDataParams(i,c),m=v.data,w=v.value,S=m.source+" -- "+m.target;return tu("nameValue",{name:S,value:w,noValue:d(w)})}else{var x=this.getGraph().getNodeByIndex(i),E=x.getLayout().value,M=this.getDataParams(i,c).data.name;return tu("nameValue",{name:M!=null?M+"":null,value:E,noValue:d(E)})}},a.prototype.optionUpdated=function(){},a.prototype.getDataParams=function(i,l){var c=s.prototype.getDataParams.call(this,i,l);if(c.value==null&&l==="node"){var d=this.getGraph().getNodeByIndex(i),v=d.getLayout().value;c.value=v}return c},a.type="series.sankey",a.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},a}(Ua);function Wje(s,a){s.eachSeriesByType("sankey",function(i){var l=i.get("nodeWidth"),c=i.get("nodeGap"),d=$je(i,a);i.layoutInfo=d;var v=d.width,m=d.height,w=i.getGraph(),S=w.nodes,x=w.edges;Yje(S);var E=ze(S,function(Q){return Q.getLayout().value===0}),M=E.length!==0?0:i.get("layoutIterations"),D=i.get("orient"),k=i.get("nodeAlign");Kje(S,x,l,c,v,m,M,D,k)})}function $je(s,a){return ol(s.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function Kje(s,a,i,l,c,d,v,m,w){Xje(s,a,i,c,d,m,w),tqe(s,a,d,c,l,v,m),cqe(s,m)}function Yje(s){ne(s,function(a){var i=ym(a.outEdges,NL),l=ym(a.inEdges,NL),c=a.getValue()||0,d=Math.max(i,l,c);a.setLayout({value:d},!0)})}function Xje(s,a,i,l,c,d,v){for(var m=[],w=[],S=[],x=[],E=0,M=0;M<a.length;M++)m[M]=1;for(var M=0;M<s.length;M++)w[M]=s[M].inEdges.length,w[M]===0&&S.push(s[M]);for(var D=-1;S.length;){for(var k=0;k<S.length;k++){var Q=S[k],V=Q.hostGraph.data.getRawDataItem(Q.dataIndex),$=V.depth!=null&&V.depth>=0;$&&V.depth>D&&(D=V.depth),Q.setLayout({depth:$?V.depth:E},!0),d==="vertical"?Q.setLayout({dy:i},!0):Q.setLayout({dx:i},!0);for(var Z=0;Z<Q.outEdges.length;Z++){var ee=Q.outEdges[Z],fe=a.indexOf(ee);m[fe]=0;var ve=ee.node2,ge=s.indexOf(ve);--w[ge]===0&&x.indexOf(ve)<0&&x.push(ve)}}++E,S=x,x=[]}for(var M=0;M<m.length;M++)if(m[M]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Se=D>E-1?D:E-1;v&&v!=="left"&&Zje(s,v,d,Se);var Ee=d==="vertical"?(c-i)/Se:(l-i)/Se;eqe(s,Ee,d)}function Dse(s){var a=s.hostGraph.data.getRawDataItem(s.dataIndex);return a.depth!=null&&a.depth>=0}function Zje(s,a,i,l){if(a==="right"){for(var c=[],d=s,v=0;d.length;){for(var m=0;m<d.length;m++){var w=d[m];w.setLayout({skNodeHeight:v},!0);for(var S=0;S<w.inEdges.length;S++){var x=w.inEdges[S];c.indexOf(x.node1)<0&&c.push(x.node1)}}d=c,c=[],++v}ne(s,function(E){Dse(E)||E.setLayout({depth:Math.max(0,l-E.getLayout().skNodeHeight)},!0)})}else a==="justify"&&Jje(s,l)}function Jje(s,a){ne(s,function(i){!Dse(i)&&!i.outEdges.length&&i.setLayout({depth:a},!0)})}function eqe(s,a,i){ne(s,function(l){var c=l.getLayout().depth*a;i==="vertical"?l.setLayout({y:c},!0):l.setLayout({x:c},!0)})}function tqe(s,a,i,l,c,d,v){var m=rqe(s,v);nqe(m,a,i,l,c,v),n6(m,c,i,l,v);for(var w=1;d>0;d--)w*=.99,iqe(m,w,v),n6(m,c,i,l,v),uqe(m,w,v),n6(m,c,i,l,v)}function rqe(s,a){var i=[],l=a==="vertical"?"y":"x",c=Mw(s,function(d){return d.getLayout()[l]});return c.keys.sort(function(d,v){return d-v}),ne(c.keys,function(d){i.push(c.buckets.get(d))}),i}function nqe(s,a,i,l,c,d){var v=1/0;ne(s,function(m){var w=m.length,S=0;ne(m,function(E){S+=E.getLayout().value});var x=d==="vertical"?(l-(w-1)*c)/S:(i-(w-1)*c)/S;x<v&&(v=x)}),ne(s,function(m){ne(m,function(w,S){var x=w.getLayout().value*v;d==="vertical"?(w.setLayout({x:S},!0),w.setLayout({dx:x},!0)):(w.setLayout({y:S},!0),w.setLayout({dy:x},!0))})}),ne(a,function(m){var w=+m.getValue()*v;m.setLayout({dy:w},!0)})}function n6(s,a,i,l,c){var d=c==="vertical"?"x":"y";ne(s,function(v){v.sort(function(Q,V){return Q.getLayout()[d]-V.getLayout()[d]});for(var m,w,S,x=0,E=v.length,M=c==="vertical"?"dx":"dy",D=0;D<E;D++)w=v[D],S=x-w.getLayout()[d],S>0&&(m=w.getLayout()[d]+S,c==="vertical"?w.setLayout({x:m},!0):w.setLayout({y:m},!0)),x=w.getLayout()[d]+w.getLayout()[M]+a;var k=c==="vertical"?l:i;if(S=x-a-k,S>0){m=w.getLayout()[d]-S,c==="vertical"?w.setLayout({x:m},!0):w.setLayout({y:m},!0),x=m;for(var D=E-2;D>=0;--D)w=v[D],S=w.getLayout()[d]+w.getLayout()[M]+a-x,S>0&&(m=w.getLayout()[d]-S,c==="vertical"?w.setLayout({x:m},!0):w.setLayout({y:m},!0)),x=w.getLayout()[d]}})}function iqe(s,a,i){ne(s.slice().reverse(),function(l){ne(l,function(c){if(c.outEdges.length){var d=ym(c.outEdges,aqe,i)/ym(c.outEdges,NL);if(isNaN(d)){var v=c.outEdges.length;d=v?ym(c.outEdges,oqe,i)/v:0}if(i==="vertical"){var m=c.getLayout().x+(d-mm(c,i))*a;c.setLayout({x:m},!0)}else{var w=c.getLayout().y+(d-mm(c,i))*a;c.setLayout({y:w},!0)}}})})}function aqe(s,a){return mm(s.node2,a)*s.getValue()}function oqe(s,a){return mm(s.node2,a)}function sqe(s,a){return mm(s.node1,a)*s.getValue()}function lqe(s,a){return mm(s.node1,a)}function mm(s,a){return a==="vertical"?s.getLayout().x+s.getLayout().dx/2:s.getLayout().y+s.getLayout().dy/2}function NL(s){return s.getValue()}function ym(s,a,i){for(var l=0,c=s.length,d=-1;++d<c;){var v=+a(s[d],i);isNaN(v)||(l+=v)}return l}function uqe(s,a,i){ne(s,function(l){ne(l,function(c){if(c.inEdges.length){var d=ym(c.inEdges,sqe,i)/ym(c.inEdges,NL);if(isNaN(d)){var v=c.inEdges.length;d=v?ym(c.inEdges,lqe,i)/v:0}if(i==="vertical"){var m=c.getLayout().x+(d-mm(c,i))*a;c.setLayout({x:m},!0)}else{var w=c.getLayout().y+(d-mm(c,i))*a;c.setLayout({y:w},!0)}}})})}function cqe(s,a){var i=a==="vertical"?"x":"y";ne(s,function(l){l.outEdges.sort(function(c,d){return c.node2.getLayout()[i]-d.node2.getLayout()[i]}),l.inEdges.sort(function(c,d){return c.node1.getLayout()[i]-d.node1.getLayout()[i]})}),ne(s,function(l){var c=0,d=0;ne(l.outEdges,function(v){v.setLayout({sy:c},!0),c+=v.getLayout().dy}),ne(l.inEdges,function(v){v.setLayout({ty:d},!0),d+=v.getLayout().dy})})}function fqe(s){s.eachSeriesByType("sankey",function(a){var i=a.getGraph(),l=i.nodes,c=i.edges;if(l.length){var d=1/0,v=-1/0;ne(l,function(m){var w=m.getLayout().value;w<d&&(d=w),w>v&&(v=w)}),ne(l,function(m){var w=new nu({type:"color",mappingMethod:"linear",dataExtent:[d,v],visual:a.get("color")}),S=w.mapValueToVisual(m.getLayout().value),x=m.getModel().get(["itemStyle","color"]);x!=null?(m.setVisual("color",x),m.setVisual("style",{fill:x})):(m.setVisual("color",S),m.setVisual("style",{fill:S}))})}c.length&&ne(c,function(m){var w=m.getModel().get("lineStyle");m.setVisual("style",w)})})}function hqe(s){s.registerChartView(Gje),s.registerSeriesModel(qje),s.registerLayout(Wje),s.registerVisual(fqe),s.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(a,i){i.eachComponent({mainType:"series",subType:"sankey",query:a},function(l){l.setNodePosition(a.dataIndex,[a.localX,a.localY])})})}var Rse=function(){function s(){}return s.prototype._hasEncodeRule=function(a){var i=this.getEncode();return i&&i.get(a)!=null},s.prototype.getInitialData=function(a,i){var l,c=i.getComponent("xAxis",this.get("xAxisIndex")),d=i.getComponent("yAxis",this.get("yAxisIndex")),v=c.get("type"),m=d.get("type"),w;v==="category"?(a.layout="horizontal",l=c.getOrdinalMeta(),w=!this._hasEncodeRule("x")):m==="category"?(a.layout="vertical",l=d.getOrdinalMeta(),w=!this._hasEncodeRule("y")):a.layout=a.layout||"horizontal";var S=["x","y"],x=a.layout==="horizontal"?0:1,E=this._baseAxisDim=S[x],M=S[1-x],D=[c,d],k=D[x].get("type"),Q=D[1-x].get("type"),V=a.data;if(V&&w){var $=[];ne(V,function(fe,ve){var ge;Qe(fe)?(ge=fe.slice(),fe.unshift(ve)):Qe(fe.value)?(ge=ie({},fe),ge.value=ge.value.slice(),fe.value.unshift(ve)):ge=fe,$.push(ge)}),a.data=$}var Z=this.defaultValueDimensions,ee=[{name:E,type:YI(k),ordinalMeta:l,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:M,type:YI(Q),dimsDef:Z.slice()}];return Bb(this,{coordDimensions:ee,dimensionsCount:Z.length+1,encodeDefaulter:ue(Wee,ee,this)})},s.prototype.getBaseAxis=function(){var a=this._baseAxisDim;return this.ecModel.getComponent(a+"Axis",this.get(a+"AxisIndex")).axis},s}(),Pse=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],i.visualDrawType="stroke",i}return a.type="series.boxplot",a.dependencies=["xAxis","yAxis","grid"],a.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},a}(Ua);_e(Pse,Rse,!0);var dqe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c){var d=i.getData(),v=this.group,m=this._data;this._data||v.removeAll();var w=i.get("layout")==="horizontal"?1:0;d.diff(m).add(function(S){if(d.hasValue(S)){var x=d.getItemLayout(S),E=Ose(x,d,S,w,!0);d.setItemGraphicEl(S,E),v.add(E)}}).update(function(S,x){var E=m.getItemGraphicEl(x);if(!d.hasValue(S)){v.remove(E);return}var M=d.getItemLayout(S);E?(dA(E),kse(M,E,d,S)):E=Ose(M,d,S,w),v.add(E),d.setItemGraphicEl(S,E)}).remove(function(S){var x=m.getItemGraphicEl(S);x&&v.remove(x)}).execute(),this._data=d},a.prototype.remove=function(i){var l=this.group,c=this._data;this._data=null,c&&c.eachItemGraphicEl(function(d){d&&l.remove(d)})},a.type="boxplot",a}(xa),Aqe=function(){function s(){}return s}(),vqe=function(s){o(a,s);function a(i){var l=s.call(this,i)||this;return l.type="boxplotBoxPath",l}return a.prototype.getDefaultShape=function(){return new Aqe},a.prototype.buildPath=function(i,l){var c=l.points,d=0;for(i.moveTo(c[d][0],c[d][1]),d++;d<4;d++)i.lineTo(c[d][0],c[d][1]);for(i.closePath();d<c.length;d++)i.moveTo(c[d][0],c[d][1]),d++,i.lineTo(c[d][0],c[d][1])},a}(Yn);function Ose(s,a,i,l,c){var d=s.ends,v=new vqe({shape:{points:c?pqe(d,l,s):d}});return kse(s,v,a,i,c),v}function kse(s,a,i,l,c){var d=i.hostModel,v=t0[c?"initProps":"updateProps"];v(a,{shape:{points:s.ends}},d,l),a.useStyle(i.getItemVisual(l,"style")),a.style.strokeNoScale=!0,a.z2=100;var m=i.getItemModel(l),w=m.getModel("emphasis");ku(a,m),as(a,w.get("focus"),w.get("blurScope"),w.get("disabled"))}function pqe(s,a,i){return xe(s,function(l){return l=l.slice(),l[a]=i.initBaseline,l})}var WC=ne;function gqe(s){var a=mqe(s);WC(a,function(i){var l=i.seriesModels;l.length&&(yqe(i),WC(l,function(c,d){wqe(c,i.boxOffsetList[d],i.boxWidthList[d])}))})}function mqe(s){var a=[],i=[];return s.eachSeriesByType("boxplot",function(l){var c=l.getBaseAxis(),d=oe(i,c);d<0&&(d=i.length,i[d]=c,a[d]={axis:c,seriesModels:[]}),a[d].seriesModels.push(l)}),a}function yqe(s){var a=s.axis,i=s.seriesModels,l=i.length,c=s.boxWidthList=[],d=s.boxOffsetList=[],v=[],m;if(a.type==="category")m=a.getBandWidth();else{var w=0;WC(i,function(k){w=Math.max(w,k.getData().count())});var S=a.getExtent();m=Math.abs(S[1]-S[0])/w}WC(i,function(k){var Q=k.get("boxWidth");Qe(Q)||(Q=[Q,Q]),v.push([vr(Q[0],m)||0,vr(Q[1],m)||0])});var x=m*.8-2,E=x/l*.3,M=(x-E*(l-1))/l,D=M/2-x/2;WC(i,function(k,Q){d.push(D),D+=E+M,c.push(Math.min(Math.max(M,v[Q][0]),v[Q][1]))})}function wqe(s,a,i){var l=s.coordinateSystem,c=s.getData(),d=i/2,v=s.get("layout")==="horizontal"?0:1,m=1-v,w=["x","y"],S=c.mapDimension(w[v]),x=c.mapDimensionsAll(w[m]);if(S==null||x.length<5)return;for(var E=0;E<c.count();E++){var M=c.get(S,E),D=ee(M,x[2],E),k=ee(M,x[0],E),Q=ee(M,x[1],E),V=ee(M,x[3],E),$=ee(M,x[4],E),Z=[];fe(Z,Q,!1),fe(Z,V,!0),Z.push(k,Q,$,V),ve(Z,k),ve(Z,$),ve(Z,D),c.setItemLayout(E,{initBaseline:D[m],ends:Z})}function ee(ge,Se,Ee){var Ie=c.get(Se,Ee),Le=[];Le[v]=ge,Le[m]=Ie;var Fe;return isNaN(ge)||isNaN(Ie)?Fe=[NaN,NaN]:(Fe=l.dataToPoint(Le),Fe[v]+=a),Fe}function fe(ge,Se,Ee){var Ie=Se.slice(),Le=Se.slice();Ie[v]+=d,Le[v]-=d,Ee?ge.push(Ie,Le):ge.push(Le,Ie)}function ve(ge,Se){var Ee=Se.slice(),Ie=Se.slice();Ee[v]-=d,Ie[v]+=d,ge.push(Ee,Ie)}}function bqe(s,a){a=a||{};for(var i=[],l=[],c=a.boundIQR,d=c==="none"||c===0,v=0;v<s.length;v++){var m=aa(s[v].slice()),w=za(m,.25),S=za(m,.5),x=za(m,.75),E=m[0],M=m[m.length-1],D=(c??1.5)*(x-w),k=d?E:Math.max(E,w-D),Q=d?M:Math.min(M,x+D),V=a.itemNameFormatter,$=qe(V)?V({value:v}):Re(V)?V.replace("{value}",v+""):v+"";i.push([$,k,w,S,x,Q]);for(var Z=0;Z<m.length;Z++){var ee=m[Z];if(ee<k||ee>Q){var fe=[$,ee];l.push(fe)}}}return{boxData:i,outliers:l}}var _qe={type:"echarts:boxplot",transform:function(a){var i=a.upstream;if(i.sourceFormat!==vc){var l="";l=Do("source data is not applicable for this boxplot transform. Expect number[][]."),Fi(l)}var c=bqe(i.getRawData(),a.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:c.boxData},{data:c.outliers}]}};function Sqe(s){s.registerSeriesModel(Pse),s.registerChartView(dqe),s.registerLayout(gqe),s.registerTransform(_qe)}var xqe=["itemStyle","borderColor"],Cqe=["itemStyle","borderColor0"],Tqe=["itemStyle","borderColorDoji"],Eqe=["itemStyle","color"],Bqe=["itemStyle","color0"];function i6(s,a){return a.get(s>0?Eqe:Bqe)}function a6(s,a){return a.get(s===0?Tqe:s>0?xqe:Cqe)}var Iqe={seriesType:"candlestick",plan:Ab(),performRawSeries:!0,reset:function(s,a){if(!a.isSeriesFiltered(s)){var i=s.pipelineContext.large;return!i&&{progress:function(l,c){for(var d;(d=l.next())!=null;){var v=c.getItemModel(d),m=c.getItemLayout(d).sign,w=v.getItemStyle();w.fill=i6(m,v),w.stroke=a6(m,v)||w.fill;var S=c.ensureUniqueItemVisual(d,"style");ie(S,w)}}}}}},Lqe=["color","borderColor"],Mqe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(i),this._isLargeDraw?this._renderLarge(i):this._renderNormal(i)},a.prototype.incrementalPrepareRender=function(i,l,c){this._clear(),this._updateDrawMode(i)},a.prototype.incrementalRender=function(i,l,c,d){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(i,l):this._incrementalRenderNormal(i,l)},a.prototype.eachRendered=function(i){om(this._progressiveEls||this.group,i)},a.prototype._updateDrawMode=function(i){var l=i.pipelineContext.large;(this._isLargeDraw==null||l!==this._isLargeDraw)&&(this._isLargeDraw=l,this._clear())},a.prototype._renderNormal=function(i){var l=i.getData(),c=this._data,d=this.group,v=l.getLayout("isSimpleBox"),m=i.get("clip",!0),w=i.coordinateSystem,S=w.getArea&&w.getArea();this._data||d.removeAll(),l.diff(c).add(function(x){if(l.hasValue(x)){var E=l.getItemLayout(x);if(m&&Fse(S,E))return;var M=o6(E,x,!0);Co(M,{shape:{points:E.ends}},i,x),s6(M,l,x,v),d.add(M),l.setItemGraphicEl(x,M)}}).update(function(x,E){var M=c.getItemGraphicEl(E);if(!l.hasValue(x)){d.remove(M);return}var D=l.getItemLayout(x);if(m&&Fse(S,D)){d.remove(M);return}M?(Yi(M,{shape:{points:D.ends}},i,x),dA(M)):M=o6(D),s6(M,l,x,v),d.add(M),l.setItemGraphicEl(x,M)}).remove(function(x){var E=c.getItemGraphicEl(x);E&&d.remove(E)}).execute(),this._data=l},a.prototype._renderLarge=function(i){this._clear(),Nse(i,this.group);var l=i.get("clip",!0)?CC(i.coordinateSystem,!1,i):null;l?this.group.setClipPath(l):this.group.removeClipPath()},a.prototype._incrementalRenderNormal=function(i,l){for(var c=l.getData(),d=c.getLayout("isSimpleBox"),v;(v=i.next())!=null;){var m=c.getItemLayout(v),w=o6(m);s6(w,c,v,d),w.incremental=!0,this.group.add(w),this._progressiveEls.push(w)}},a.prototype._incrementalRenderLarge=function(i,l){Nse(l,this.group,this._progressiveEls,!0)},a.prototype.remove=function(i){this._clear()},a.prototype._clear=function(){this.group.removeAll(),this._data=null},a.type="candlestick",a}(xa),Dqe=function(){function s(){}return s}(),Rqe=function(s){o(a,s);function a(i){var l=s.call(this,i)||this;return l.type="normalCandlestickBox",l}return a.prototype.getDefaultShape=function(){return new Dqe},a.prototype.buildPath=function(i,l){var c=l.points;this.__simpleBox?(i.moveTo(c[4][0],c[4][1]),i.lineTo(c[6][0],c[6][1])):(i.moveTo(c[0][0],c[0][1]),i.lineTo(c[1][0],c[1][1]),i.lineTo(c[2][0],c[2][1]),i.lineTo(c[3][0],c[3][1]),i.closePath(),i.moveTo(c[4][0],c[4][1]),i.lineTo(c[5][0],c[5][1]),i.moveTo(c[6][0],c[6][1]),i.lineTo(c[7][0],c[7][1]))},a}(Yn);function o6(s,a,i){var l=s.ends;return new Rqe({shape:{points:i?Pqe(l,s):l},z2:100})}function Fse(s,a){for(var i=!0,l=0;l<a.ends.length;l++)if(s.contain(a.ends[l][0],a.ends[l][1])){i=!1;break}return i}function s6(s,a,i,l){var c=a.getItemModel(i);s.useStyle(a.getItemVisual(i,"style")),s.style.strokeNoScale=!0,s.__simpleBox=l,ku(s,c);var d=a.getItemLayout(i).sign;ne(s.states,function(m,w){var S=c.getModel(w),x=i6(d,S),E=a6(d,S)||x,M=m.style||(m.style={});x&&(M.fill=x),E&&(M.stroke=E)});var v=c.getModel("emphasis");as(s,v.get("focus"),v.get("blurScope"),v.get("disabled"))}function Pqe(s,a){return xe(s,function(i){return i=i.slice(),i[1]=a.initBaseline,i})}var Oqe=function(){function s(){}return s}(),l6=function(s){o(a,s);function a(i){var l=s.call(this,i)||this;return l.type="largeCandlestickBox",l}return a.prototype.getDefaultShape=function(){return new Oqe},a.prototype.buildPath=function(i,l){for(var c=l.points,d=0;d<c.length;)if(this.__sign===c[d++]){var v=c[d++];i.moveTo(v,c[d++]),i.lineTo(v,c[d++])}else d+=3},a}(Yn);function Nse(s,a,i,l){var c=s.getData(),d=c.getLayout("largePoints"),v=new l6({shape:{points:d},__sign:1,ignoreCoarsePointer:!0});a.add(v);var m=new l6({shape:{points:d},__sign:-1,ignoreCoarsePointer:!0});a.add(m);var w=new l6({shape:{points:d},__sign:0,ignoreCoarsePointer:!0});a.add(w),u6(1,v,s),u6(-1,m,s),u6(0,w,s),l&&(v.incremental=!0,m.incremental=!0),i&&i.push(v,m)}function u6(s,a,i,l){var c=a6(s,i)||i6(s,i),d=i.getModel("itemStyle").getItemStyle(Lqe);a.useStyle(d),a.style.fill=null,a.style.stroke=c}var Use=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],i}return a.prototype.getShadowDim=function(){return"open"},a.prototype.brushSelector=function(i,l,c){var d=l.getItemLayout(i);return d&&c.rect(d.brushRect)},a.type="series.candlestick",a.dependencies=["xAxis","yAxis","grid"],a.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},a}(Ua);_e(Use,Rse,!0);function kqe(s){!s||!Qe(s.series)||ne(s.series,function(a){Pe(a)&&a.type==="k"&&(a.type="candlestick")})}var Fqe={seriesType:"candlestick",plan:Ab(),reset:function(s){var a=s.coordinateSystem,i=s.getData(),l=Nqe(s,i),c=0,d=1,v=["x","y"],m=i.getDimensionIndex(i.mapDimension(v[c])),w=xe(i.mapDimensionsAll(v[d]),i.getDimensionIndex,i),S=w[0],x=w[1],E=w[2],M=w[3];if(i.setLayout({candleWidth:l,isSimpleBox:l<=1.3}),m<0||w.length<4)return;return{progress:s.pipelineContext.large?k:D};function D(Q,V){for(var $,Z=V.getStore();($=Q.next())!=null;){var ee=Z.get(m,$),fe=Z.get(S,$),ve=Z.get(x,$),ge=Z.get(E,$),Se=Z.get(M,$),Ee=Math.min(fe,ve),Ie=Math.max(fe,ve),Le=zt(Ee,ee),Fe=zt(Ie,ee),Je=zt(ge,ee),rt=zt(Se,ee),at=[];Ut(at,Fe,0),Ut(at,Le,1),at.push(ur(rt),ur(Fe),ur(Je),ur(Le));var dt=V.getItemModel($),wt=!!dt.get(["itemStyle","borderColorDoji"]);V.setItemLayout($,{sign:Hse(Z,$,fe,ve,x,wt),initBaseline:fe>ve?Fe[d]:Le[d],ends:at,brushRect:Yt(ge,Se,ee)})}function zt(wr,Or){var vn=[];return vn[c]=Or,vn[d]=wr,isNaN(Or)||isNaN(wr)?[NaN,NaN]:a.dataToPoint(vn)}function Ut(wr,Or,vn){var wn=Or.slice(),Un=Or.slice();wn[c]=fI(wn[c]+l/2,1,!1),Un[c]=fI(Un[c]-l/2,1,!0),vn?wr.push(wn,Un):wr.push(Un,wn)}function Yt(wr,Or,vn){var wn=zt(wr,vn),Un=zt(Or,vn);return wn[c]-=l/2,Un[c]-=l/2,{x:wn[0],y:wn[1],width:l,height:Un[1]-wn[1]}}function ur(wr){return wr[c]=fI(wr[c],1),wr}}function k(Q,V){for(var $=Cv(Q.count*4),Z=0,ee,fe=[],ve=[],ge,Se=V.getStore(),Ee=!!s.get(["itemStyle","borderColorDoji"]);(ge=Q.next())!=null;){var Ie=Se.get(m,ge),Le=Se.get(S,ge),Fe=Se.get(x,ge),Je=Se.get(E,ge),rt=Se.get(M,ge);if(isNaN(Ie)||isNaN(Je)||isNaN(rt)){$[Z++]=NaN,Z+=3;continue}$[Z++]=Hse(Se,ge,Le,Fe,x,Ee),fe[c]=Ie,fe[d]=Je,ee=a.dataToPoint(fe,null,ve),$[Z++]=ee?ee[0]:NaN,$[Z++]=ee?ee[1]:NaN,fe[d]=rt,ee=a.dataToPoint(fe,null,ve),$[Z++]=ee?ee[1]:NaN}V.setLayout("largePoints",$)}}};function Hse(s,a,i,l,c,d){var v;return i>l?v=-1:i<l?v=1:v=d?0:a>0?s.get(c,a-1)<=l?1:-1:1,v}function Nqe(s,a){var i=s.getBaseAxis(),l,c=i.type==="category"?i.getBandWidth():(l=i.getExtent(),Math.abs(l[1]-l[0])/a.count()),d=vr(It(s.get("barMaxWidth"),c),c),v=vr(It(s.get("barMinWidth"),1),c),m=s.get("barWidth");return m!=null?vr(m,c):Math.max(Math.min(c/2,d),v)}function Uqe(s){s.registerChartView(Mqe),s.registerSeriesModel(Use),s.registerPreprocessor(kqe),s.registerVisual(Iqe),s.registerLayout(Fqe)}function Qse(s,a){var i=a.rippleEffectColor||a.color;s.eachChild(function(l){l.attr({z:a.z,zlevel:a.zlevel,style:{stroke:a.brushType==="stroke"?i:null,fill:a.brushType==="fill"?i:null}})})}var Hqe=function(s){o(a,s);function a(i,l){var c=s.call(this)||this,d=new SC(i,l),v=new Lr;return c.add(d),c.add(v),c.updateData(i,l),c}return a.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},a.prototype.startEffectAnimation=function(i){for(var l=i.symbolType,c=i.color,d=i.rippleNumber,v=this.childAt(1),m=0;m<d;m++){var w=Os(l,-1,-1,2,2,c);w.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var S=-m/d*i.period+i.effectOffset;w.animate("",!0).when(i.period,{scaleX:i.rippleScale/2,scaleY:i.rippleScale/2}).delay(S).start(),w.animateStyle(!0).when(i.period,{opacity:0}).delay(S).start(),v.add(w)}Qse(v,i)},a.prototype.updateEffectAnimation=function(i){for(var l=this._effectCfg,c=this.childAt(1),d=["symbolType","period","rippleScale","rippleNumber"],v=0;v<d.length;v++){var m=d[v];if(l[m]!==i[m]){this.stopEffectAnimation(),this.startEffectAnimation(i);return}}Qse(c,i)},a.prototype.highlight=function(){kp(this)},a.prototype.downplay=function(){Fp(this)},a.prototype.getSymbolType=function(){var i=this.childAt(0);return i&&i.getSymbolType()},a.prototype.updateData=function(i,l){var c=this,d=i.hostModel;this.childAt(0).updateData(i,l);var v=this.childAt(1),m=i.getItemModel(l),w=i.getItemVisual(l,"symbol"),S=gb(i.getItemVisual(l,"symbolSize")),x=i.getItemVisual(l,"style"),E=x&&x.fill,M=m.getModel("emphasis");v.setScale(S),v.traverse(function(V){V.setStyle("fill",E)});var D=f0(i.getItemVisual(l,"symbolOffset"),S);D&&(v.x=D[0],v.y=D[1]);var k=i.getItemVisual(l,"symbolRotate");v.rotation=(k||0)*Math.PI/180||0;var Q={};Q.showEffectOn=d.get("showEffectOn"),Q.rippleScale=m.get(["rippleEffect","scale"]),Q.brushType=m.get(["rippleEffect","brushType"]),Q.period=m.get(["rippleEffect","period"])*1e3,Q.effectOffset=l/i.count(),Q.z=d.getShallow("z")||0,Q.zlevel=d.getShallow("zlevel")||0,Q.symbolType=w,Q.color=E,Q.rippleEffectColor=m.get(["rippleEffect","color"]),Q.rippleNumber=m.get(["rippleEffect","number"]),Q.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(Q):this.startEffectAnimation(Q),this._effectCfg=Q):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(V){V==="emphasis"?Q.showEffectOn!=="render"&&c.startEffectAnimation(Q):V==="normal"&&Q.showEffectOn!=="render"&&c.stopEffectAnimation()}),this._effectCfg=Q,as(this,M.get("focus"),M.get("blurScope"),M.get("disabled"))},a.prototype.fadeOut=function(i){i&&i()},a}(Lr),Qqe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.init=function(){this._symbolDraw=new xC(Hqe)},a.prototype.render=function(i,l,c){var d=i.getData(),v=this._symbolDraw;v.updateData(d,{clipShape:this._getClipShape(i)}),this.group.add(v.group)},a.prototype._getClipShape=function(i){var l=i.coordinateSystem,c=l&&l.getArea&&l.getArea();return i.get("clip",!0)?c:null},a.prototype.updateTransform=function(i,l,c){var d=i.getData();this.group.dirty();var v=TC("").reset(i,l,c);v.progress&&v.progress({start:0,end:d.count(),count:d.count()},d),this._symbolDraw.updateLayout()},a.prototype._updateGroupTransform=function(i){var l=i.coordinateSystem;l&&l.getRoamTransform&&(this.group.transform=tc(l.getRoamTransform()),this.group.decomposeTransform())},a.prototype.remove=function(i,l){this._symbolDraw&&this._symbolDraw.remove(!0)},a.type="effectScatter",a}(xa),Vqe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.hasSymbolVisual=!0,i}return a.prototype.getInitialData=function(i,l){return Sv(null,this,{useEncodeDefaulter:!0})},a.prototype.brushSelector=function(i,l,c){return c.point(l.getItemLayout(i))},a.type="series.effectScatter",a.dependencies=["grid","polar"],a.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},a}(Ua);function zqe(s){s.registerChartView(Qqe),s.registerSeriesModel(Vqe),s.registerLayout(TC("effectScatter"))}var Vse=function(s){o(a,s);function a(i,l,c){var d=s.call(this)||this;return d.add(d.createLine(i,l,c)),d._updateEffectSymbol(i,l),d}return a.prototype.createLine=function(i,l,c){return new D4(i,l,c)},a.prototype._updateEffectSymbol=function(i,l){var c=i.getItemModel(l),d=c.getModel("effect"),v=d.get("symbolSize"),m=d.get("symbol");Qe(v)||(v=[v,v]);var w=i.getItemVisual(l,"style"),S=d.get("color")||w&&w.stroke,x=this.childAt(1);this._symbolType!==m&&(this.remove(x),x=Os(m,-.5,-.5,1,1,S),x.z2=100,x.culling=!0,this.add(x)),x&&(x.setStyle("shadowColor",S),x.setStyle(d.getItemStyle(["color"])),x.scaleX=v[0],x.scaleY=v[1],x.setColor(S),this._symbolType=m,this._symbolScale=v,this._updateEffectAnimation(i,d,l))},a.prototype._updateEffectAnimation=function(i,l,c){var d=this.childAt(1);if(d){var v=i.getItemLayout(c),m=l.get("period")*1e3,w=l.get("loop"),S=l.get("roundTrip"),x=l.get("constantSpeed"),E=Bt(l.get("delay"),function(D){return D/i.count()*m/3});if(d.ignore=!0,this._updateAnimationPoints(d,v),x>0&&(m=this._getLineLength(d)/x*1e3),m!==this._period||w!==this._loop||S!==this._roundTrip){d.stopAnimation();var M=void 0;qe(E)?M=E(c):M=E,d.__t>0&&(M=-m*d.__t),this._animateSymbol(d,m,M,w,S)}this._period=m,this._loop=w,this._roundTrip=S}},a.prototype._animateSymbol=function(i,l,c,d,v){if(l>0){i.__t=0;var m=this,w=i.animate("",d).when(v?l*2:l,{__t:v?2:1}).delay(c).during(function(){m._updateSymbolPosition(i)});d||w.done(function(){m.remove(i)}),w.start()}},a.prototype._getLineLength=function(i){return Ur(i.__p1,i.__cp1)+Ur(i.__cp1,i.__p2)},a.prototype._updateAnimationPoints=function(i,l){i.__p1=l[0],i.__p2=l[1],i.__cp1=l[2]||[(l[0][0]+l[1][0])/2,(l[0][1]+l[1][1])/2]},a.prototype.updateData=function(i,l,c){this.childAt(0).updateData(i,l,c),this._updateEffectSymbol(i,l)},a.prototype._updateSymbolPosition=function(i){var l=i.__p1,c=i.__p2,d=i.__cp1,v=i.__t<1?i.__t:2-i.__t,m=[i.x,i.y],w=m.slice(),S=qi,x=Ds;m[0]=S(l[0],d[0],c[0],v),m[1]=S(l[1],d[1],c[1],v);var E=i.__t<1?x(l[0],d[0],c[0],v):x(c[0],d[0],l[0],1-v),M=i.__t<1?x(l[1],d[1],c[1],v):x(c[1],d[1],l[1],1-v);i.rotation=-Math.atan2(M,E)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(i.__lastT!==void 0&&i.__lastT<i.__t?(i.scaleY=Ur(w,m)*1.05,v===1&&(m[0]=w[0]+(m[0]-w[0])/2,m[1]=w[1]+(m[1]-w[1])/2)):i.__lastT===1?i.scaleY=2*Ur(l,m):i.scaleY=this._symbolScale[1]),i.__lastT=i.__t,i.ignore=!1,i.x=m[0],i.y=m[1]},a.prototype.updateLayout=function(i,l){this.childAt(0).updateLayout(i,l);var c=i.getItemModel(l).getModel("effect");this._updateEffectAnimation(i,c,l)},a}(Lr),zse=function(s){o(a,s);function a(i,l,c){var d=s.call(this)||this;return d._createPolyline(i,l,c),d}return a.prototype._createPolyline=function(i,l,c){var d=i.getItemLayout(l),v=new Ac({shape:{points:d}});this.add(v),this._updateCommonStl(i,l,c)},a.prototype.updateData=function(i,l,c){var d=i.hostModel,v=this.childAt(0),m={shape:{points:i.getItemLayout(l)}};Yi(v,m,d,l),this._updateCommonStl(i,l,c)},a.prototype._updateCommonStl=function(i,l,c){var d=this.childAt(0),v=i.getItemModel(l),m=c&&c.emphasisLineStyle,w=c&&c.focus,S=c&&c.blurScope,x=c&&c.emphasisDisabled;if(!c||i.hasItemOption){var E=v.getModel("emphasis");m=E.getModel("lineStyle").getLineStyle(),x=E.get("disabled"),w=E.get("focus"),S=E.get("blurScope")}d.useStyle(i.getItemVisual(l,"style")),d.style.fill=null,d.style.strokeNoScale=!0;var M=d.ensureState("emphasis");M.style=m,as(this,w,S,x)},a.prototype.updateLayout=function(i,l){var c=this.childAt(0);c.setShape("points",i.getItemLayout(l))},a}(Lr),Gqe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i._lastFrame=0,i._lastFramePercent=0,i}return a.prototype.createLine=function(i,l,c){return new zse(i,l,c)},a.prototype._updateAnimationPoints=function(i,l){this._points=l;for(var c=[0],d=0,v=1;v<l.length;v++){var m=l[v-1],w=l[v];d+=Ur(m,w),c.push(d)}if(d===0){this._length=0;return}for(var v=0;v<c.length;v++)c[v]/=d;this._offsets=c,this._length=d},a.prototype._getLineLength=function(){return this._length},a.prototype._updateSymbolPosition=function(i){var l=i.__t<1?i.__t:2-i.__t,c=this._points,d=this._offsets,v=c.length;if(d){var m=this._lastFrame,w;if(l<this._lastFramePercent){var S=Math.min(m+1,v-1);for(w=S;w>=0&&!(d[w]<=l);w--);w=Math.min(w,v-2)}else{for(w=m;w<v&&!(d[w]>l);w++);w=Math.min(w-1,v-2)}var x=(l-d[w])/(d[w+1]-d[w]),E=c[w],M=c[w+1];i.x=E[0]*(1-x)+x*M[0],i.y=E[1]*(1-x)+x*M[1];var D=i.__t<1?M[0]-E[0]:E[0]-M[0],k=i.__t<1?M[1]-E[1]:E[1]-M[1];i.rotation=-Math.atan2(k,D)-Math.PI/2,this._lastFrame=w,this._lastFramePercent=l,i.ignore=!1}},a}(Vse),jqe=function(){function s(){this.polyline=!1,this.curveness=0,this.segs=[]}return s}(),qqe=function(s){o(a,s);function a(i){var l=s.call(this,i)||this;return l._off=0,l.hoverDataIdx=-1,l}return a.prototype.reset=function(){this.notClear=!1,this._off=0},a.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},a.prototype.getDefaultShape=function(){return new jqe},a.prototype.buildPath=function(i,l){var c=l.segs,d=l.curveness,v;if(l.polyline)for(v=this._off;v<c.length;){var m=c[v++];if(m>0){i.moveTo(c[v++],c[v++]);for(var w=1;w<m;w++)i.lineTo(c[v++],c[v++])}}else for(v=this._off;v<c.length;){var S=c[v++],x=c[v++],E=c[v++],M=c[v++];if(i.moveTo(S,x),d>0){var D=(S+E)/2-(x-M)*d,k=(x+M)/2-(E-S)*d;i.quadraticCurveTo(D,k,E,M)}else i.lineTo(E,M)}this.incremental&&(this._off=v,this.notClear=!0)},a.prototype.findDataIndex=function(i,l){var c=this.shape,d=c.segs,v=c.curveness,m=this.style.lineWidth;if(c.polyline)for(var w=0,S=0;S<d.length;){var x=d[S++];if(x>0)for(var E=d[S++],M=d[S++],D=1;D<x;D++){var k=d[S++],Q=d[S++];if(cc(E,M,k,Q,m,i,l))return w}w++}else for(var w=0,S=0;S<d.length;){var E=d[S++],M=d[S++],k=d[S++],Q=d[S++];if(v>0){var V=(E+k)/2-(M-Q)*v,$=(M+Q)/2-(k-E)*v;if($B(E,M,V,$,k,Q,m,i,l))return w}else if(cc(E,M,k,Q,m,i,l))return w;w++}return-1},a.prototype.contain=function(i,l){var c=this.transformCoordToLocal(i,l),d=this.getBoundingRect();if(i=c[0],l=c[1],d.contain(i,l)){var v=this.hoverDataIdx=this.findDataIndex(i,l);return v>=0}return this.hoverDataIdx=-1,!1},a.prototype.getBoundingRect=function(){var i=this._rect;if(!i){for(var l=this.shape,c=l.segs,d=1/0,v=1/0,m=-1/0,w=-1/0,S=0;S<c.length;){var x=c[S++],E=c[S++];d=Math.min(x,d),m=Math.max(x,m),v=Math.min(E,v),w=Math.max(E,w)}i=this._rect=new Bn(d,v,m,w)}return i},a}(Yn),Wqe=function(){function s(){this.group=new Lr}return s.prototype.updateData=function(a){this._clear();var i=this._create();i.setShape({segs:a.getLayout("linesPoints")}),this._setCommon(i,a)},s.prototype.incrementalPrepareUpdate=function(a){this.group.removeAll(),this._clear()},s.prototype.incrementalUpdate=function(a,i){var l=this._newAdded[0],c=i.getLayout("linesPoints"),d=l&&l.shape.segs;if(d&&d.length<2e4){var v=d.length,m=new Float32Array(v+c.length);m.set(d),m.set(c,v),l.setShape({segs:m})}else{this._newAdded=[];var w=this._create();w.incremental=!0,w.setShape({segs:c}),this._setCommon(w,i),w.__startIndex=a.start}},s.prototype.remove=function(){this._clear()},s.prototype.eachRendered=function(a){this._newAdded[0]&&a(this._newAdded[0])},s.prototype._create=function(){var a=new qqe({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(a),this.group.add(a),a},s.prototype._setCommon=function(a,i,l){var c=i.hostModel;a.setShape({polyline:c.get("polyline"),curveness:c.get(["lineStyle","curveness"])}),a.useStyle(c.getModel("lineStyle").getLineStyle()),a.style.strokeNoScale=!0;var d=i.getVisual("style");d&&d.stroke&&a.setStyle("stroke",d.stroke),a.setStyle("fill",null);var v=bt(a);v.seriesIndex=c.seriesIndex,a.on("mousemove",function(m){v.dataIndex=null;var w=a.hoverDataIdx;w>0&&(v.dataIndex=w+a.__startIndex)})},s.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},s}(),Gse={seriesType:"lines",plan:Ab(),reset:function(s){var a=s.coordinateSystem;if(!a){rs("The lines series must have a coordinate system.");return}var i=s.get("polyline"),l=s.pipelineContext.large;return{progress:function(c,d){var v=[];if(l){var m=void 0,w=c.end-c.start;if(i){for(var S=0,x=c.start;x<c.end;x++)S+=s.getLineCoordsCount(x);m=new Float32Array(w+S*2)}else m=new Float32Array(w*4);for(var E=0,M=[],x=c.start;x<c.end;x++){var D=s.getLineCoords(x,v);i&&(m[E++]=D);for(var k=0;k<D;k++)M=a.dataToPoint(v[k],!1,M),m[E++]=M[0],m[E++]=M[1]}d.setLayout("linesPoints",m)}else for(var x=c.start;x<c.end;x++){var Q=d.getItemModel(x),D=s.getLineCoords(x,v),V=[];if(i)for(var $=0;$<D;$++)V.push(a.dataToPoint(v[$]));else{V[0]=a.dataToPoint(v[0]),V[1]=a.dataToPoint(v[1]);var Z=Q.get(["lineStyle","curveness"]);+Z&&(V[2]=[(V[0][0]+V[1][0])/2-(V[0][1]-V[1][1])*Z,(V[0][1]+V[1][1])/2-(V[1][0]-V[0][0])*Z])}d.setItemLayout(x,V)}}}}},$qe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c){var d=i.getData(),v=this._updateLineDraw(d,i),m=i.get("zlevel"),w=i.get(["effect","trailLength"]),S=c.getZr(),x=S.painter.getType()==="svg";x||S.painter.getLayer(m).clear(!0),this._lastZlevel!=null&&!x&&S.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(i)&&w>0&&(x?console.warn("SVG render mode doesn't support lines with trail effect"):S.configLayer(m,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(w/10+.9,1),0)})),v.updateData(d);var E=i.get("clip",!0)&&CC(i.coordinateSystem,!1,i);E?this.group.setClipPath(E):this.group.removeClipPath(),this._lastZlevel=m,this._finished=!0},a.prototype.incrementalPrepareRender=function(i,l,c){var d=i.getData(),v=this._updateLineDraw(d,i);v.incrementalPrepareUpdate(d),this._clearLayer(c),this._finished=!1},a.prototype.incrementalRender=function(i,l,c){this._lineDraw.incrementalUpdate(i,l.getData()),this._finished=i.end===l.getData().count()},a.prototype.eachRendered=function(i){this._lineDraw&&this._lineDraw.eachRendered(i)},a.prototype.updateTransform=function(i,l,c){var d=i.getData(),v=i.pipelineContext;if(!this._finished||v.large||v.progressiveRender)return{update:!0};var m=Gse.reset(i,l,c);m.progress&&m.progress({start:0,end:d.count(),count:d.count()},d),this._lineDraw.updateLayout(),this._clearLayer(c)},a.prototype._updateLineDraw=function(i,l){var c=this._lineDraw,d=this._showEffect(l),v=!!l.get("polyline"),m=l.pipelineContext,w=m.large;return d&&w&&console.warn("Large lines not support effect"),(!c||d!==this._hasEffet||v!==this._isPolyline||w!==this._isLargeDraw)&&(c&&c.remove(),c=this._lineDraw=w?new Wqe:new R4(v?d?Gqe:zse:d?Vse:D4),this._hasEffet=d,this._isPolyline=v,this._isLargeDraw=w),this.group.add(c.group),c},a.prototype._showEffect=function(i){return!!i.get(["effect","show"])},a.prototype._clearLayer=function(i){var l=i.getZr(),c=l.painter.getType()==="svg";!c&&this._lastZlevel!=null&&l.painter.getLayer(this._lastZlevel).clear(!0)},a.prototype.remove=function(i,l){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(l)},a.prototype.dispose=function(i,l){this.remove(i,l)},a.type="lines",a}(xa),Kqe=typeof Uint32Array>"u"?Array:Uint32Array,Yqe=typeof Float64Array>"u"?Array:Float64Array;function jse(s){var a=s.data;a&&a[0]&&a[0][0]&&a[0][0].coord&&(console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),s.data=xe(a,function(i){var l=[i[0].coord,i[1].coord],c={coords:l};return i[0].name&&(c.fromName=i[0].name),i[1].name&&(c.toName=i[1].name),pe([c,i[0],i[1]])}))}var Xqe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.visualStyleAccessPath="lineStyle",i.visualDrawType="stroke",i}return a.prototype.init=function(i){i.data=i.data||[],jse(i);var l=this._processFlatCoordsArray(i.data);this._flatCoords=l.flatCoords,this._flatCoordsOffset=l.flatCoordsOffset,l.flatCoords&&(i.data=new Float32Array(l.count)),s.prototype.init.apply(this,arguments)},a.prototype.mergeOption=function(i){if(jse(i),i.data){var l=this._processFlatCoordsArray(i.data);this._flatCoords=l.flatCoords,this._flatCoordsOffset=l.flatCoordsOffset,l.flatCoords&&(i.data=new Float32Array(l.count))}s.prototype.mergeOption.apply(this,arguments)},a.prototype.appendData=function(i){var l=this._processFlatCoordsArray(i.data);l.flatCoords&&(this._flatCoords?(this._flatCoords=zr(this._flatCoords,l.flatCoords),this._flatCoordsOffset=zr(this._flatCoordsOffset,l.flatCoordsOffset)):(this._flatCoords=l.flatCoords,this._flatCoordsOffset=l.flatCoordsOffset),i.data=new Float32Array(l.count)),this.getRawData().appendData(i.data)},a.prototype._getCoordsFromItemModel=function(i){var l=this.getData().getItemModel(i),c=l.option instanceof Array?l.option:l.getShallow("coords");if(!(c instanceof Array&&c.length>0&&c[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(c)+". Lines must have 2d coords array in data item.");return c},a.prototype.getLineCoordsCount=function(i){return this._flatCoordsOffset?this._flatCoordsOffset[i*2+1]:this._getCoordsFromItemModel(i).length},a.prototype.getLineCoords=function(i,l){if(this._flatCoordsOffset){for(var c=this._flatCoordsOffset[i*2],d=this._flatCoordsOffset[i*2+1],v=0;v<d;v++)l[v]=l[v]||[],l[v][0]=this._flatCoords[c+v*2],l[v][1]=this._flatCoords[c+v*2+1];return d}else{for(var m=this._getCoordsFromItemModel(i),v=0;v<m.length;v++)l[v]=l[v]||[],l[v][0]=m[v][0],l[v][1]=m[v][1];return m.length}},a.prototype._processFlatCoordsArray=function(i){var l=0;if(this._flatCoords&&(l=this._flatCoords.length),Ge(i[0])){for(var c=i.length,d=new Kqe(c),v=new Yqe(c),m=0,w=0,S=0,x=0;x<c;){S++;var E=i[x++];d[w++]=m+l,d[w++]=E;for(var M=0;M<E;M++){var D=i[x++],k=i[x++];if(v[m++]=D,v[m++]=k,x>c)throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(d.buffer,0,w),flatCoords:v,count:S}}return{flatCoordsOffset:null,flatCoords:null,count:i.length}},a.prototype.getInitialData=function(i,l){{var c=o0.get(i.coordinateSystem);if(!c)throw new Error("Unknown coordinate system "+i.coordinateSystem)}var d=new yc(["value"],this);return d.hasItemOption=!1,d.initData(i.data,[],function(v,m,w,S){if(v instanceof Array)return NaN;d.hasItemOption=!0;var x=v.value;if(x!=null)return x instanceof Array?x[S]:x}),d},a.prototype.formatTooltip=function(i,l,c){var d=this.getData(),v=d.getItemModel(i),m=v.get("name");if(m)return m;var w=v.get("fromName"),S=v.get("toName"),x=[];return w!=null&&x.push(w),S!=null&&x.push(S),tu("nameValue",{name:x.join(" > ")})},a.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},a.prototype.getProgressive=function(){var i=this.option.progressive;return i??(this.option.large?1e4:this.get("progressive"))},a.prototype.getProgressiveThreshold=function(){var i=this.option.progressiveThreshold;return i??(this.option.large?2e4:this.get("progressiveThreshold"))},a.prototype.getZLevelKey=function(){var i=this.getModel("effect"),l=i.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:i.get("show")&&l>0?l+"":""},a.type="series.lines",a.dependencies=["grid","polar","geo","calendar"],a.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}},a}(Ua);function UL(s){return s instanceof Array||(s=[s,s]),s}var Zqe={seriesType:"lines",reset:function(s){var a=UL(s.get("symbol")),i=UL(s.get("symbolSize")),l=s.getData();l.setVisual("fromSymbol",a&&a[0]),l.setVisual("toSymbol",a&&a[1]),l.setVisual("fromSymbolSize",i&&i[0]),l.setVisual("toSymbolSize",i&&i[1]);function c(d,v){var m=d.getItemModel(v),w=UL(m.getShallow("symbol",!0)),S=UL(m.getShallow("symbolSize",!0));w[0]&&d.setItemVisual(v,"fromSymbol",w[0]),w[1]&&d.setItemVisual(v,"toSymbol",w[1]),S[0]&&d.setItemVisual(v,"fromSymbolSize",S[0]),S[1]&&d.setItemVisual(v,"toSymbolSize",S[1])}return{dataEach:l.hasItemOption?c:null}}};function Jqe(s){s.registerChartView($qe),s.registerSeriesModel(Xqe),s.registerLayout(Gse),s.registerVisual(Zqe)}var eWe=256,tWe=function(){function s(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var a=L.createCanvas();this.canvas=a}return s.prototype.update=function(a,i,l,c,d,v){var m=this._getBrush(),w=this._getGradient(d,"inRange"),S=this._getGradient(d,"outOfRange"),x=this.pointSize+this.blurSize,E=this.canvas,M=E.getContext("2d"),D=a.length;E.width=i,E.height=l;for(var k=0;k<D;++k){var Q=a[k],V=Q[0],$=Q[1],Z=Q[2],ee=c(Z);M.globalAlpha=ee,M.drawImage(m,V-x,$-x)}if(!E.width||!E.height)return E;for(var fe=M.getImageData(0,0,E.width,E.height),ve=fe.data,ge=0,Se=ve.length,Ee=this.minOpacity,Ie=this.maxOpacity,Le=Ie-Ee;ge<Se;){var ee=ve[ge+3]/256,Fe=Math.floor(ee*(eWe-1))*4;if(ee>0){var Je=v(ee)?w:S;ee>0&&(ee=ee*Le+Ee),ve[ge++]=Je[Fe],ve[ge++]=Je[Fe+1],ve[ge++]=Je[Fe+2],ve[ge++]=Je[Fe+3]*ee*256}else ge+=4}return M.putImageData(fe,0,0),E},s.prototype._getBrush=function(){var a=this._brushCanvas||(this._brushCanvas=L.createCanvas()),i=this.pointSize+this.blurSize,l=i*2;a.width=l,a.height=l;var c=a.getContext("2d");return c.clearRect(0,0,l,l),c.shadowOffsetX=l,c.shadowBlur=this.blurSize,c.shadowColor="#000",c.beginPath(),c.arc(-i,i,this.pointSize,0,Math.PI*2,!0),c.closePath(),c.fill(),a},s.prototype._getGradient=function(a,i){for(var l=this._gradientPixels,c=l[i]||(l[i]=new Uint8ClampedArray(256*4)),d=[0,0,0,0],v=0,m=0;m<256;m++)a[i](m/255,!0,d),c[v++]=d[0],c[v++]=d[1],c[v++]=d[2],c[v++]=d[3];return c},s}();function rWe(s,a,i){var l=s[1]-s[0];a=xe(a,function(v){return{interval:[(v.interval[0]-s[0])/l,(v.interval[1]-s[0])/l]}});var c=a.length,d=0;return function(v){var m;for(m=d;m<c;m++){var w=a[m].interval;if(w[0]<=v&&v<=w[1]){d=m;break}}if(m===c)for(m=d-1;m>=0;m--){var w=a[m].interval;if(w[0]<=v&&v<=w[1]){d=m;break}}return m>=0&&m<c&&i[m]}}function nWe(s,a){var i=s[1]-s[0];return a=[(a[0]-s[0])/i,(a[1]-s[0])/i],function(l){return l>=a[0]&&l<=a[1]}}function qse(s){var a=s.dimensions;return a[0]==="lng"&&a[1]==="lat"}var iWe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c){var d;if(l.eachComponent("visualMap",function(m){m.eachTargetSeries(function(w){w===i&&(d=m)})}),!d)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var v=i.coordinateSystem;v.type==="cartesian2d"||v.type==="calendar"?this._renderOnCartesianAndCalendar(i,c,0,i.getData().count()):qse(v)&&this._renderOnGeo(v,i,d,c)},a.prototype.incrementalPrepareRender=function(i,l,c){this.group.removeAll()},a.prototype.incrementalRender=function(i,l,c,d){var v=l.coordinateSystem;v&&(qse(v)?this.render(l,c,d):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(l,d,i.start,i.end,!0)))},a.prototype.eachRendered=function(i){om(this._progressiveEls||this.group,i)},a.prototype._renderOnCartesianAndCalendar=function(i,l,c,d,v){var m=i.coordinateSystem,w=x0(m,"cartesian2d"),S,x,E,M;if(w){var D=m.getAxis("x"),k=m.getAxis("y");{if(!(D.type==="category"&&k.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(D.onBand&&k.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}S=D.getBandWidth()+.5,x=k.getBandWidth()+.5,E=D.scale.getExtent(),M=k.scale.getExtent()}for(var Q=this.group,V=i.getData(),$=i.getModel(["emphasis","itemStyle"]).getItemStyle(),Z=i.getModel(["blur","itemStyle"]).getItemStyle(),ee=i.getModel(["select","itemStyle"]).getItemStyle(),fe=i.get(["itemStyle","borderRadius"]),ve=eu(i),ge=i.getModel("emphasis"),Se=ge.get("focus"),Ee=ge.get("blurScope"),Ie=ge.get("disabled"),Le=w?[V.mapDimension("x"),V.mapDimension("y"),V.mapDimension("value")]:[V.mapDimension("time"),V.mapDimension("value")],Fe=c;Fe<d;Fe++){var Je=void 0,rt=V.getItemVisual(Fe,"style");if(w){var at=V.get(Le[0],Fe),dt=V.get(Le[1],Fe);if(isNaN(V.get(Le[2],Fe))||isNaN(at)||isNaN(dt)||at<E[0]||at>E[1]||dt<M[0]||dt>M[1])continue;var wt=m.dataToPoint([at,dt]);Je=new R({shape:{x:wt[0]-S/2,y:wt[1]-x/2,width:S,height:x},style:rt})}else{if(isNaN(V.get(Le[1],Fe)))continue;Je=new R({z2:1,shape:m.dataToRect([V.get(Le[0],Fe)]).contentShape,style:rt})}if(V.hasItemOption){var zt=V.getItemModel(Fe),Ut=zt.getModel("emphasis");$=Ut.getModel("itemStyle").getItemStyle(),Z=zt.getModel(["blur","itemStyle"]).getItemStyle(),ee=zt.getModel(["select","itemStyle"]).getItemStyle(),fe=zt.get(["itemStyle","borderRadius"]),Se=Ut.get("focus"),Ee=Ut.get("blurScope"),Ie=Ut.get("disabled"),ve=eu(zt)}Je.shape.r=fe;var Yt=i.getRawValue(Fe),ur="-";Yt&&Yt[2]!=null&&(ur=Yt[2]+""),Fu(Je,ve,{labelFetcher:i,labelDataIndex:Fe,defaultOpacity:rt.opacity,defaultText:ur}),Je.ensureState("emphasis").style=$,Je.ensureState("blur").style=Z,Je.ensureState("select").style=ee,as(Je,Se,Ee,Ie),Je.incremental=v,v&&(Je.states.emphasis.hoverLayer=!0),Q.add(Je),V.setItemGraphicEl(Fe,Je),this._progressiveEls&&this._progressiveEls.push(Je)}},a.prototype._renderOnGeo=function(i,l,c,d){var v=c.targetVisuals.inRange,m=c.targetVisuals.outOfRange,w=l.getData(),S=this._hmLayer||this._hmLayer||new tWe;S.blurSize=l.get("blurSize"),S.pointSize=l.get("pointSize"),S.minOpacity=l.get("minOpacity"),S.maxOpacity=l.get("maxOpacity");var x=i.getViewRect().clone(),E=i.getRoamTransform();x.applyTransform(E);var M=Math.max(x.x,0),D=Math.max(x.y,0),k=Math.min(x.width+x.x,d.getWidth()),Q=Math.min(x.height+x.y,d.getHeight()),V=k-M,$=Q-D,Z=[w.mapDimension("lng"),w.mapDimension("lat"),w.mapDimension("value")],ee=w.mapArray(Z,function(Se,Ee,Ie){var Le=i.dataToPoint([Se,Ee]);return Le[0]-=M,Le[1]-=D,Le.push(Ie),Le}),fe=c.getExtent(),ve=c.type==="visualMap.continuous"?nWe(fe,c.option.range):rWe(fe,c.getPieceList(),c.option.selected);S.update(ee,V,$,v.color.getNormalizer(),{inRange:v.color.getColorMapper(),outOfRange:m.color.getColorMapper()},ve);var ge=new is({style:{width:V,height:$,x:M,y:D,image:S.canvas},silent:!0});this.group.add(ge)},a.type="heatmap",a}(xa),aWe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.getInitialData=function(i,l){return Sv(null,this,{generateCoord:"value"})},a.prototype.preventIncremental=function(){var i=o0.get(this.get("coordinateSystem"));if(i&&i.dimensions)return i.dimensions[0]==="lng"&&i.dimensions[1]==="lat"},a.type="series.heatmap",a.dependencies=["grid","geo","calendar"],a.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},a}(Ua);function oWe(s){s.registerChartView(iWe),s.registerSeriesModel(aWe)}var sWe=["itemStyle","borderWidth"],Wse=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],c6=new yv,lWe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c){var d=this.group,v=i.getData(),m=this._data,w=i.coordinateSystem,S=w.getBaseAxis(),x=S.isHorizontal(),E=w.master.getRect(),M={ecSize:{width:c.getWidth(),height:c.getHeight()},seriesModel:i,coordSys:w,coordSysExtent:[[E.x,E.x+E.width],[E.y,E.y+E.height]],isHorizontal:x,valueDim:Wse[+x],categoryDim:Wse[1-+x]};v.diff(m).add(function(k){if(v.hasValue(k)){var Q=ele(v,k),V=$se(v,k,Q,M),$=tle(v,M,V);v.setItemGraphicEl(k,$),d.add($),ile($,M,V)}}).update(function(k,Q){var V=m.getItemGraphicEl(Q);if(!v.hasValue(k)){d.remove(V);return}var $=ele(v,k),Z=$se(v,k,$,M),ee=nle(v,Z);V&&ee!==V.__pictorialShapeStr&&(d.remove(V),v.setItemGraphicEl(k,null),V=null),V?vWe(V,M,Z):V=tle(v,M,Z,!0),v.setItemGraphicEl(k,V),V.__pictorialSymbolMeta=Z,d.add(V),ile(V,M,Z)}).remove(function(k){var Q=m.getItemGraphicEl(k);Q&&rle(m,k,Q.__pictorialSymbolMeta.animationModel,Q)}).execute();var D=i.get("clip",!0)?CC(i.coordinateSystem,!1,i):null;return D?d.setClipPath(D):d.removeClipPath(),this._data=v,this.group},a.prototype.remove=function(i,l){var c=this.group,d=this._data;i.get("animation")?d&&d.eachItemGraphicEl(function(v){rle(d,bt(v).dataIndex,i,v)}):c.removeAll()},a.type="pictorialBar",a}(xa);function $se(s,a,i,l){var c=s.getItemLayout(a),d=i.get("symbolRepeat"),v=i.get("symbolClip"),m=i.get("symbolPosition")||"start",w=i.get("symbolRotate"),S=(w||0)*Math.PI/180||0,x=i.get("symbolPatternSize")||2,E=i.isAnimationEnabled(),M={dataIndex:a,layout:c,itemModel:i,symbolType:s.getItemVisual(a,"symbol")||"circle",style:s.getItemVisual(a,"style"),symbolClip:v,symbolRepeat:d,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:x,rotation:S,animationModel:E?i:null,hoverScale:E&&i.get(["emphasis","scale"]),z2:i.getShallow("z",!0)||0};uWe(i,d,c,l,M),cWe(s,a,c,d,v,M.boundingLength,M.pxSign,x,l,M),fWe(i,M.symbolScale,S,l,M);var D=M.symbolSize,k=f0(i.get("symbolOffset"),D);return hWe(i,D,c,d,v,k,m,M.valueLineWidth,M.boundingLength,M.repeatCutLength,l,M),M}function uWe(s,a,i,l,c){var d=l.valueDim,v=s.get("symbolBoundingData"),m=l.coordSys.getOtherAxis(l.coordSys.getBaseAxis()),w=m.toGlobalCoord(m.dataToCoord(0)),S=1-+(i[d.wh]<=0),x;if(Qe(v)){var E=[f6(m,v[0])-w,f6(m,v[1])-w];E[1]<E[0]&&E.reverse(),x=E[S]}else v!=null?x=f6(m,v)-w:a?x=l.coordSysExtent[d.index][S]-w:x=i[d.wh];c.boundingLength=x,a&&(c.repeatCutLength=i[d.wh]);var M=d.xy==="x",D=m.inverse;c.pxSign=M&&!D||!M&&D?x>=0?1:-1:x>0?1:-1}function f6(s,a){return s.toGlobalCoord(s.dataToCoord(s.scale.parse(a)))}function cWe(s,a,i,l,c,d,v,m,w,S){var x=w.valueDim,E=w.categoryDim,M=Math.abs(i[E.wh]),D=s.getItemVisual(a,"symbolSize"),k;Qe(D)?k=D.slice():D==null?k=["100%","100%"]:k=[D,D],k[E.index]=vr(k[E.index],M),k[x.index]=vr(k[x.index],l?M:Math.abs(d)),S.symbolSize=k;var Q=S.symbolScale=[k[0]/m,k[1]/m];Q[x.index]*=(w.isHorizontal?-1:1)*v}function fWe(s,a,i,l,c){var d=s.get(sWe)||0;d&&(c6.attr({scaleX:a[0],scaleY:a[1],rotation:i}),c6.updateTransform(),d/=c6.getLineScale(),d*=a[l.valueDim.index]),c.valueLineWidth=d||0}function hWe(s,a,i,l,c,d,v,m,w,S,x,E){var M=x.categoryDim,D=x.valueDim,k=E.pxSign,Q=Math.max(a[D.index]+m,0),V=Q;if(l){var $=Math.abs(w),Z=Bt(s.get("symbolMargin"),"15%")+"",ee=!1;Z.lastIndexOf("!")===Z.length-1&&(ee=!0,Z=Z.slice(0,Z.length-1));var fe=vr(Z,a[D.index]),ve=Math.max(Q+fe*2,0),ge=ee?0:fe*2,Se=rl(l),Ee=Se?l:ale(($+ge)/ve),Ie=$-Ee*Q;fe=Ie/2/(ee?Ee:Math.max(Ee-1,1)),ve=Q+fe*2,ge=ee?0:fe*2,!Se&&l!=="fixed"&&(Ee=S?ale((Math.abs(S)+ge)/ve):0),V=Ee*ve-ge,E.repeatTimes=Ee,E.symbolMargin=fe}var Le=k*(V/2),Fe=E.pathPosition=[];Fe[M.index]=i[M.wh]/2,Fe[D.index]=v==="start"?Le:v==="end"?w-Le:w/2,d&&(Fe[0]+=d[0],Fe[1]+=d[1]);var Je=E.bundlePosition=[];Je[M.index]=i[M.xy],Je[D.index]=i[D.xy];var rt=E.barRectShape=ie({},i);rt[D.wh]=k*Math.max(Math.abs(i[D.wh]),Math.abs(Fe[D.index]+Le)),rt[M.wh]=i[M.wh];var at=E.clipShape={};at[M.xy]=-i[M.xy],at[M.wh]=x.ecSize[M.wh],at[D.xy]=0,at[D.wh]=i[D.wh]}function Kse(s){var a=s.symbolPatternSize,i=Os(s.symbolType,-a/2,-a/2,a,a);return i.attr({culling:!0}),i.type!=="image"&&i.setStyle({strokeNoScale:!0}),i}function Yse(s,a,i,l){var c=s.__pictorialBundle,d=i.symbolSize,v=i.valueLineWidth,m=i.pathPosition,w=a.valueDim,S=i.repeatTimes||0,x=0,E=d[a.valueDim.index]+v+i.symbolMargin*2;for(h6(s,function(Q){Q.__pictorialAnimationIndex=x,Q.__pictorialRepeatTimes=S,x<S?kb(Q,null,k(x),i,l):kb(Q,null,{scaleX:0,scaleY:0},i,l,function(){c.remove(Q)}),x++});x<S;x++){var M=Kse(i);M.__pictorialAnimationIndex=x,M.__pictorialRepeatTimes=S,c.add(M);var D=k(x);kb(M,{x:D.x,y:D.y,scaleX:0,scaleY:0},{scaleX:D.scaleX,scaleY:D.scaleY,rotation:D.rotation},i,l)}function k(Q){var V=m.slice(),$=i.pxSign,Z=Q;return(i.symbolRepeatDirection==="start"?$>0:$<0)&&(Z=S-1-Q),V[w.index]=E*(Z-S/2+.5)+m[w.index],{x:V[0],y:V[1],scaleX:i.symbolScale[0],scaleY:i.symbolScale[1],rotation:i.rotation}}}function Xse(s,a,i,l){var c=s.__pictorialBundle,d=s.__pictorialMainPath;d?kb(d,null,{x:i.pathPosition[0],y:i.pathPosition[1],scaleX:i.symbolScale[0],scaleY:i.symbolScale[1],rotation:i.rotation},i,l):(d=s.__pictorialMainPath=Kse(i),c.add(d),kb(d,{x:i.pathPosition[0],y:i.pathPosition[1],scaleX:0,scaleY:0,rotation:i.rotation},{scaleX:i.symbolScale[0],scaleY:i.symbolScale[1]},i,l))}function Zse(s,a,i){var l=ie({},a.barRectShape),c=s.__pictorialBarRect;c?kb(c,null,{shape:l},a,i):(c=s.__pictorialBarRect=new R({z2:2,shape:l,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),c.disableMorphing=!0,s.add(c))}function Jse(s,a,i,l){if(i.symbolClip){var c=s.__pictorialClipPath,d=ie({},i.clipShape),v=a.valueDim,m=i.animationModel,w=i.dataIndex;if(c)Yi(c,{shape:d},m,w);else{d[v.wh]=0,c=new R({shape:d}),s.__pictorialBundle.setClipPath(c),s.__pictorialClipPath=c;var S={};S[v.wh]=i.clipShape[v.wh],t0[l?"updateProps":"initProps"](c,{shape:S},m,w)}}}function ele(s,a){var i=s.getItemModel(a);return i.getAnimationDelayParams=dWe,i.isAnimationEnabled=AWe,i}function dWe(s){return{index:s.__pictorialAnimationIndex,count:s.__pictorialRepeatTimes}}function AWe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function tle(s,a,i,l){var c=new Lr,d=new Lr;return c.add(d),c.__pictorialBundle=d,d.x=i.bundlePosition[0],d.y=i.bundlePosition[1],i.symbolRepeat?Yse(c,a,i):Xse(c,a,i),Zse(c,i,l),Jse(c,a,i,l),c.__pictorialShapeStr=nle(s,i),c.__pictorialSymbolMeta=i,c}function vWe(s,a,i){var l=i.animationModel,c=i.dataIndex,d=s.__pictorialBundle;Yi(d,{x:i.bundlePosition[0],y:i.bundlePosition[1]},l,c),i.symbolRepeat?Yse(s,a,i,!0):Xse(s,a,i,!0),Zse(s,i,!0),Jse(s,a,i,!0)}function rle(s,a,i,l){var c=l.__pictorialBarRect;c&&c.removeTextContent();var d=[];h6(l,function(v){d.push(v)}),l.__pictorialMainPath&&d.push(l.__pictorialMainPath),l.__pictorialClipPath&&(i=null),ne(d,function(v){im(v,{scaleX:0,scaleY:0},i,a,function(){l.parent&&l.parent.remove(l)})}),s.setItemGraphicEl(a,null)}function nle(s,a){return[s.getItemVisual(a.dataIndex,"symbol")||"none",!!a.symbolRepeat,!!a.symbolClip].join(":")}function h6(s,a,i){ne(s.__pictorialBundle.children(),function(l){l!==s.__pictorialBarRect&&a.call(i,l)})}function kb(s,a,i,l,c,d){a&&s.attr(a),l.symbolClip&&!c?i&&s.attr(i):i&&t0[c?"updateProps":"initProps"](s,i,l.animationModel,l.dataIndex,d)}function ile(s,a,i){var l=i.dataIndex,c=i.itemModel,d=c.getModel("emphasis"),v=d.getModel("itemStyle").getItemStyle(),m=c.getModel(["blur","itemStyle"]).getItemStyle(),w=c.getModel(["select","itemStyle"]).getItemStyle(),S=c.getShallow("cursor"),x=d.get("focus"),E=d.get("blurScope"),M=d.get("scale");h6(s,function(Q){if(Q instanceof is){var V=Q.style;Q.useStyle(ie({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},i.style))}else Q.useStyle(i.style);var $=Q.ensureState("emphasis");$.style=v,M&&($.scaleX=Q.scaleX*1.1,$.scaleY=Q.scaleY*1.1),Q.ensureState("blur").style=m,Q.ensureState("select").style=w,S&&(Q.cursor=S),Q.z2=i.z2});var D=a.valueDim.posDesc[+(i.boundingLength>0)],k=s.__pictorialBarRect;k.ignoreClip=!0,Fu(k,eu(c),{labelFetcher:a.seriesModel,labelDataIndex:l,defaultText:Eb(a.seriesModel.getData(),l),inheritColor:i.style.fill,defaultOpacity:i.style.opacity,defaultOutsidePosition:D}),as(s,x,E,d.get("disabled"))}function ale(s){var a=Math.round(s);return Math.abs(s-a)<1e-4?a:Math.ceil(s)}var pWe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.hasSymbolVisual=!0,i.defaultSymbol="roundRect",i}return a.prototype.getInitialData=function(i){return i.stack=null,s.prototype.getInitialData.apply(this,arguments)},a.type="series.pictorialBar",a.dependencies=["grid"],a.defaultOption=sm(EC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),a}(EC);function gWe(s){s.registerChartView(lWe),s.registerSeriesModel(pWe),s.registerLayout(s.PRIORITY.VISUAL.LAYOUT,ue(wne,"pictorialBar")),s.registerLayout(s.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bne("pictorialBar"))}var mWe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i._layers=[],i}return a.prototype.render=function(i,l,c){var d=i.getData(),v=this,m=this.group,w=i.getLayerSeries(),S=d.getLayout("layoutInfo"),x=S.rect,E=S.boundaryGap;m.x=0,m.y=x.y+E[0];function M(V){return V.name}var D=new Hp(this._layersSeries||[],w,M,M),k=[];D.add(Ue(Q,this,"add")).update(Ue(Q,this,"update")).remove(Ue(Q,this,"remove")).execute();function Q(V,$,Z){var ee=v._layers;if(V==="remove"){m.remove(ee[$]);return}for(var fe=[],ve=[],ge,Se=w[$].indices,Ee=0;Ee<Se.length;Ee++){var Ie=d.getItemLayout(Se[Ee]),Le=Ie.x,Fe=Ie.y0,Je=Ie.y;fe.push(Le,Fe),ve.push(Le,Fe+Je),ge=d.getItemVisual(Se[Ee],"style")}var rt,at=d.getItemLayout(Se[0]),dt=i.getModel("label"),wt=dt.get("margin"),zt=i.getModel("emphasis");if(V==="add"){var Ut=k[$]=new Lr;rt=new Fie({shape:{points:fe,stackedOnPoints:ve,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),Ut.add(rt),m.add(Ut),i.isAnimationEnabled()&&rt.setClipPath(yWe(rt.getBoundingRect(),i,function(){rt.removeClipPath()}))}else{var Ut=ee[Z];rt=Ut.childAt(0),m.add(Ut),k[$]=Ut,Yi(rt,{shape:{points:fe,stackedOnPoints:ve}},i),dA(rt)}Fu(rt,eu(i),{labelDataIndex:Se[Ee-1],defaultText:d.getName(Se[Ee-1]),inheritColor:ge.fill},{normal:{verticalAlign:"middle"}}),rt.setTextConfig({position:null,local:!0});var Yt=rt.getTextContent();Yt&&(Yt.x=at.x-wt,Yt.y=at.y0+at.y/2),rt.useStyle(ge),d.setItemGraphicEl($,rt),ku(rt,i),as(rt,zt.get("focus"),zt.get("blurScope"),zt.get("disabled"))}this._layersSeries=w,this._layers=k},a.type="themeRiver",a}(xa);function yWe(s,a,i){var l=new R({shape:{x:s.x-10,y:s.y-10,width:0,height:s.height+20}});return Co(l,{shape:{x:s.x-50,width:s.width+100,height:s.height+20}},a,i),l}var d6=2,wWe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.init=function(i){s.prototype.init.apply(this,arguments),this.legendVisualProvider=new IC(Ue(this.getData,this),Ue(this.getRawData,this))},a.prototype.fixData=function(i){var l=i.length,c={},d=Mw(i,function(M){return c.hasOwnProperty(M[0]+"")||(c[M[0]+""]=-1),M[2]}),v=[];d.buckets.each(function(M,D){v.push({name:D,dataList:M})});for(var m=v.length,w=0;w<m;++w){for(var S=v[w].name,x=0;x<v[w].dataList.length;++x){var E=v[w].dataList[x][0]+"";c[E]=w}for(var E in c)c.hasOwnProperty(E)&&c[E]!==w&&(c[E]=w,i[l]=[E,0,S],l++)}return i},a.prototype.getInitialData=function(i,l){for(var c=this.getReferringComponents("singleAxis",ps).models[0],d=c.get("type"),v=ze(i.data,function(k){return k[2]!==void 0}),m=this.fixData(v||[]),w=[],S=this.nameMap=Ht(),x=0,E=0;E<m.length;++E)w.push(m[E][d6]),S.get(m[E][d6])||(S.set(m[E][d6],x),x++);var M=_b(m,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:YI(d)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,D=new yc(M,this);return D.initData(m),D},a.prototype.getLayerSeries=function(){for(var i=this.getData(),l=i.count(),c=[],d=0;d<l;++d)c[d]=d;var v=i.mapDimension("single"),m=Mw(c,function(S){return i.get("name",S)}),w=[];return m.buckets.each(function(S,x){S.sort(function(E,M){return i.get(v,E)-i.get(v,M)}),w.push({name:x,indices:S})}),w},a.prototype.getAxisTooltipData=function(i,l,c){Qe(i)||(i=i?[i]:[]);for(var d=this.getData(),v=this.getLayerSeries(),m=[],w=v.length,S,x=0;x<w;++x){for(var E=Number.MAX_VALUE,M=-1,D=v[x].indices.length,k=0;k<D;++k){var Q=d.get(i[0],v[x].indices[k]),V=Math.abs(Q-l);V<=E&&(S=Q,E=V,M=v[x].indices[k])}m.push(M)}return{dataIndices:m,nestestValue:S}},a.prototype.formatTooltip=function(i,l,c){var d=this.getData(),v=d.getName(i),m=d.get(d.mapDimension("value"),i);return tu("nameValue",{name:v,value:m})},a.type="series.themeRiver",a.dependencies=["singleAxis"],a.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},a}(Ua);function bWe(s,a){s.eachSeriesByType("themeRiver",function(i){var l=i.getData(),c=i.coordinateSystem,d={},v=c.getRect();d.rect=v;var m=i.get("boundaryGap"),w=c.getAxis();if(d.boundaryGap=m,w.orient==="horizontal"){m[0]=vr(m[0],v.height),m[1]=vr(m[1],v.height);var S=v.height-m[0]-m[1];ole(l,i,S)}else{m[0]=vr(m[0],v.width),m[1]=vr(m[1],v.width);var x=v.width-m[0]-m[1];ole(l,i,x)}l.setLayout("layoutInfo",d)})}function ole(s,a,i){if(s.count())for(var l=a.coordinateSystem,c=a.getLayerSeries(),d=s.mapDimension("single"),v=s.mapDimension("value"),m=xe(c,function(V){return xe(V.indices,function($){var Z=l.dataToPoint(s.get(d,$));return Z[1]=s.get(v,$),Z})}),w=_We(m),S=w.y0,x=i/w.max,E=c.length,M=c[0].indices.length,D,k=0;k<M;++k){D=S[k]*x,s.setItemLayout(c[0].indices[k],{layerIndex:0,x:m[0][k][0],y0:D,y:m[0][k][1]*x});for(var Q=1;Q<E;++Q)D+=m[Q-1][k][1]*x,s.setItemLayout(c[Q].indices[k],{layerIndex:Q,x:m[Q][k][0],y0:D,y:m[Q][k][1]*x})}}function _We(s){for(var a=s.length,i=s[0].length,l=[],c=[],d=0,v=0;v<i;++v){for(var m=0,w=0;w<a;++w)m+=s[w][v][1];m>d&&(d=m),l.push(m)}for(var S=0;S<i;++S)c[S]=(d-l[S])/2;d=0;for(var x=0;x<i;++x){var E=l[x]+c[x];E>d&&(d=E)}return{y0:c,max:d}}function SWe(s){s.registerChartView(mWe),s.registerSeriesModel(wWe),s.registerLayout(bWe),s.registerProcessor(BC("themeRiver"))}var xWe=2,CWe=4,sle=function(s){o(a,s);function a(i,l,c,d){var v=s.call(this)||this;v.z2=xWe,v.textConfig={inside:!0},bt(v).seriesIndex=l.seriesIndex;var m=new be({z2:CWe,silent:i.getModel().get(["label","silent"])});return v.setTextContent(m),v.updateData(!0,i,l,c,d),v}return a.prototype.updateData=function(i,l,c,d,v){this.node=l,l.piece=this,c=c||this._seriesModel,d=d||this._ecModel;var m=this;bt(m).dataIndex=l.dataIndex;var w=l.getModel(),S=w.getModel("emphasis"),x=l.getLayout(),E=ie({},x);E.label=null;var M=l.getVisual("style");M.lineJoin="bevel";var D=l.getVisual("decal");D&&(M.decal=yb(D,v));var k=C0(w.getModel("itemStyle"),E,!0);ie(E,k),ne(Ou,function(Z){var ee=m.ensureState(Z),fe=w.getModel([Z,"itemStyle"]);ee.style=fe.getItemStyle();var ve=C0(fe,E);ve&&(ee.shape=ve)}),i?(m.setShape(E),m.shape.r=x.r0,Co(m,{shape:{r:x.r}},c,l.dataIndex)):(Yi(m,{shape:E},c),dA(m)),m.useStyle(M),this._updateLabel(c);var Q=w.getShallow("cursor");Q&&m.attr("cursor",Q),this._seriesModel=c||this._seriesModel,this._ecModel=d||this._ecModel;var V=S.get("focus"),$=V==="relative"?zr(l.getAncestorsIndices(),l.getDescendantIndices()):V==="ancestor"?l.getAncestorsIndices():V==="descendant"?l.getDescendantIndices():V;as(this,$,S.get("blurScope"),S.get("disabled"))},a.prototype._updateLabel=function(i){var l=this,c=this.node.getModel(),d=c.getModel("label"),v=this.node.getLayout(),m=v.endAngle-v.startAngle,w=(v.startAngle+v.endAngle)/2,S=Math.cos(w),x=Math.sin(w),E=this,M=E.getTextContent(),D=this.node.dataIndex,k=d.get("minAngle")/180*Math.PI,Q=d.get("show")&&!(k!=null&&Math.abs(m)<k);M.ignore=!Q,ne(Ox,function($){var Z=$==="normal"?c.getModel("label"):c.getModel([$,"label"]),ee=$==="normal",fe=ee?M:M.ensureState($),ve=i.getFormattedLabel(D,$);ee&&(ve=ve||l.node.name),fe.style=Xa(Z,{},null,$!=="normal",!0),ve&&(fe.style.text=ve);var ge=Z.get("show");ge!=null&&!ee&&(fe.ignore=!ge);var Se=V(Z,"position"),Ee=ee?E:E.states[$],Ie=Ee.style.fill;Ee.textConfig={outsideFill:Z.get("color")==="inherit"?Ie:null,inside:Se!=="outside"};var Le,Fe=V(Z,"distance")||0,Je=V(Z,"align"),rt=V(Z,"rotate"),at=Math.PI*.5,dt=Math.PI*1.5,wt=Xc(rt==="tangential"?Math.PI/2-w:w),zt=wt>at&&!If(wt-at)&&wt<dt;Se==="outside"?(Le=v.r+Fe,Je=zt?"right":"left"):!Je||Je==="center"?(m===2*Math.PI&&v.r0===0?Le=0:Le=(v.r+v.r0)/2,Je="center"):Je==="left"?(Le=v.r0+Fe,Je=zt?"right":"left"):Je==="right"&&(Le=v.r-Fe,Je=zt?"left":"right"),fe.style.align=Je,fe.style.verticalAlign=V(Z,"verticalAlign")||"middle",fe.x=Le*S+v.cx,fe.y=Le*x+v.cy;var Ut=0;rt==="radial"?Ut=Xc(-w)+(zt?Math.PI:0):rt==="tangential"?Ut=Xc(Math.PI/2-w)+(zt?Math.PI:0):Ge(rt)&&(Ut=rt*Math.PI/180),fe.rotation=Xc(Ut)});function V($,Z){var ee=$.get(Z);return ee??d.get(Z)}M.dirtyStyle()},a}(hc),A6="sunburstRootToNode",lle="sunburstHighlight",TWe="sunburstUnhighlight";function EWe(s){s.registerAction({type:A6,update:"updateView"},function(a,i){i.eachComponent({mainType:"series",subType:"sunburst",query:a},l);function l(c,d){var v=kC(a,[A6],c);if(v){var m=c.getViewRoot();m&&(a.direction=d4(m,v.node)?"rollUp":"drillDown"),c.resetViewRoot(v.node)}}}),s.registerAction({type:lle,update:"none"},function(a,i,l){a=ie({},a),i.eachComponent({mainType:"series",subType:"sunburst",query:a},c);function c(d){var v=kC(a,[lle],d);v&&(a.dataIndex=v.node.dataIndex)}Ga("sunburstHighlight","highlight"),l.dispatchAction(ie(a,{type:"highlight"}))}),s.registerAction({type:TWe,update:"updateView"},function(a,i,l){a=ie({},a),Ga("sunburstUnhighlight","downplay"),l.dispatchAction(ie(a,{type:"downplay"}))})}var BWe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c,d){var v=this;this.seriesModel=i,this.api=c,this.ecModel=l;var m=i.getData(),w=m.tree.root,S=i.getViewRoot(),x=this.group,E=i.get("renderLabelForZeroData"),M=[];S.eachNode(function(Z){M.push(Z)});var D=this._oldChildren||[];k(M,D),$(w,S),this._initEvents(),this._oldChildren=M;function k(Z,ee){if(Z.length===0&&ee.length===0)return;new Hp(ee,Z,fe,fe).add(ve).update(ve).remove(ue(ve,null)).execute();function fe(ge){return ge.getId()}function ve(ge,Se){var Ee=ge==null?null:Z[ge],Ie=Se==null?null:ee[Se];Q(Ee,Ie)}}function Q(Z,ee){if(!E&&Z&&!Z.getValue()&&(Z=null),Z!==w&&ee!==w){if(ee&&ee.piece)Z?(ee.piece.updateData(!1,Z,i,l,c),m.setItemGraphicEl(Z.dataIndex,ee.piece)):V(ee);else if(Z){var fe=new sle(Z,i,l,c);x.add(fe),m.setItemGraphicEl(Z.dataIndex,fe)}}}function V(Z){Z&&Z.piece&&(x.remove(Z.piece),Z.piece=null)}function $(Z,ee){ee.depth>0?(v.virtualPiece?v.virtualPiece.updateData(!1,Z,i,l,c):(v.virtualPiece=new sle(Z,i,l,c),x.add(v.virtualPiece)),ee.piece.off("click"),v.virtualPiece.on("click",function(fe){v._rootToNode(ee.parentNode)})):v.virtualPiece&&(x.remove(v.virtualPiece),v.virtualPiece=null)}},a.prototype._initEvents=function(){var i=this;this.group.off("click"),this.group.on("click",function(l){var c=!1,d=i.seriesModel.getViewRoot();d.eachNode(function(v){if(!c&&v.piece&&v.piece===l.target){var m=v.getModel().get("nodeClick");if(m==="rootToNode")i._rootToNode(v);else if(m==="link"){var w=v.getModel(),S=w.get("link");if(S){var x=w.get("target",!0)||"_blank";_I(S,x)}}c=!0}})})},a.prototype._rootToNode=function(i){i!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:A6,from:this.uid,seriesId:this.seriesModel.id,targetNode:i})},a.prototype.containPoint=function(i,l){var c=l.getData(),d=c.getItemLayout(0);if(d){var v=i[0]-d.cx,m=i[1]-d.cy,w=Math.sqrt(v*v+m*m);return w<=d.r&&w>=d.r0}},a.type="sunburst",a}(xa),IWe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.ignoreStyleOnData=!0,i}return a.prototype.getInitialData=function(i,l){var c={name:i.name,children:i.data};ule(c);var d=this._levelModels=xe(i.levels||[],function(w){return new ta(w,this,l)},this),v=h4.createTree(c,this,m);function m(w){w.wrapMethod("getItemModel",function(S,x){var E=v.getNodeByDataIndex(x),M=d[E.depth];return M&&(S.parentModel=M),S})}return v.data},a.prototype.optionUpdated=function(){this.resetViewRoot()},a.prototype.getDataParams=function(i){var l=s.prototype.getDataParams.apply(this,arguments),c=this.getData().tree.getNodeByDataIndex(i);return l.treePathInfo=EL(c,this),l},a.prototype.getLevelModel=function(i){return this._levelModels&&this._levelModels[i.depth]},a.prototype.getViewRoot=function(){return this._viewRoot},a.prototype.resetViewRoot=function(i){i?this._viewRoot=i:i=this._viewRoot;var l=this.getRawData().tree.root;(!i||i!==l&&!l.contains(i))&&(this._viewRoot=l)},a.prototype.enableAriaDecal=function(){woe(this)},a.type="series.sunburst",a.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"},a}(Ua);function ule(s){var a=0;ne(s.children,function(l){ule(l);var c=l.value;Qe(c)&&(c=c[0]),a+=c});var i=s.value;Qe(i)&&(i=i[0]),(i==null||isNaN(i))&&(i=a),i<0&&(i=0),Qe(s.value)?s.value[0]=i:s.value=i}var cle=Math.PI/180;function LWe(s,a,i){a.eachSeriesByType(s,function(l){var c=l.get("center"),d=l.get("radius");Qe(d)||(d=[0,d]),Qe(c)||(c=[c,c]);var v=i.getWidth(),m=i.getHeight(),w=Math.min(v,m),S=vr(c[0],v),x=vr(c[1],m),E=vr(d[0],w/2),M=vr(d[1],w/2),D=-l.get("startAngle")*cle,k=l.get("minAngle")*cle,Q=l.getData().tree.root,V=l.getViewRoot(),$=V.depth,Z=l.get("sort");Z!=null&&fle(V,Z);var ee=0;ne(V.children,function(wt){!isNaN(wt.getValue())&&ee++});var fe=V.getValue(),ve=Math.PI/(fe||ee)*2,ge=V.depth>0,Se=V.height-(ge?-1:1),Ee=(M-E)/(Se||1),Ie=l.get("clockwise"),Le=l.get("stillShowZeroSum"),Fe=Ie?1:-1,Je=function(wt,zt){if(wt){var Ut=zt;if(wt!==Q){var Yt=wt.getValue(),ur=fe===0&&Le?ve:Yt*ve;ur<k&&(ur=k),Ut=zt+Fe*ur;var wr=wt.depth-$-(ge?-1:1),Or=E+Ee*wr,vn=E+Ee*(wr+1),wn=l.getLevelModel(wt);if(wn){var Un=wn.get("r0",!0),Ha=wn.get("r",!0),Cs=wn.get("radius",!0);Cs!=null&&(Un=Cs[0],Ha=Cs[1]),Un!=null&&(Or=vr(Un,w/2)),Ha!=null&&(vn=vr(Ha,w/2))}wt.setLayout({angle:ur,startAngle:zt,endAngle:Ut,clockwise:Ie,cx:S,cy:x,r0:Or,r:vn})}if(wt.children&&wt.children.length){var ei=0;ne(wt.children,function(Cn){ei+=Je(Cn,zt+ei)})}return Ut-zt}};if(ge){var rt=E,at=E+Ee,dt=Math.PI*2;Q.setLayout({angle:dt,startAngle:D,endAngle:D+dt,clockwise:Ie,cx:S,cy:x,r0:rt,r:at})}Je(V,D)})}function fle(s,a){var i=s.children||[];s.children=MWe(i,a),i.length&&ne(s.children,function(l){fle(l,a)})}function MWe(s,a){if(qe(a)){var i=xe(s,function(c,d){var v=c.getValue();return{params:{depth:c.depth,height:c.height,dataIndex:c.dataIndex,getValue:function(){return v}},index:d}});return i.sort(function(c,d){return a(c.params,d.params)}),xe(i,function(c){return s[c.index]})}else{var l=a==="asc";return s.sort(function(c,d){var v=(c.getValue()-d.getValue())*(l?1:-1);return v===0?(c.dataIndex-d.dataIndex)*(l?-1:1):v})}}function DWe(s){var a={};function i(l,c,d){for(var v=l;v&&v.depth>1;)v=v.parentNode;var m=c.getColorFromPalette(v.name||v.dataIndex+"",a);return l.depth>1&&Re(m)&&(m=cr(m,(l.depth-1)/(d-1)*.5)),m}s.eachSeriesByType("sunburst",function(l){var c=l.getData(),d=c.tree;d.eachNode(function(v){var m=v.getModel(),w=m.getModel("itemStyle").getItemStyle();w.fill||(w.fill=i(v,l,d.root.height));var S=c.ensureUniqueItemVisual(v.dataIndex,"style");ie(S,w)})})}function RWe(s){s.registerChartView(BWe),s.registerSeriesModel(IWe),s.registerLayout(ue(LWe,"sunburst")),s.registerProcessor(ue(BC,"sunburst")),s.registerVisual(DWe),EWe(s)}var hle={color:"fill",borderColor:"stroke"},PWe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},jp=Ri(),OWe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},a.prototype.getInitialData=function(i,l){return Sv(null,this)},a.prototype.getDataParams=function(i,l,c){var d=s.prototype.getDataParams.call(this,i,l);return c&&(d.info=jp(c).info),d},a.type="series.custom",a.dependencies=["grid","polar","geo","singleAxis","calendar"],a.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},a}(Ua);function kWe(s,a){return a=a||[0,0],xe(["x","y"],function(i,l){var c=this.getAxis(i),d=a[l],v=s[l]/2;return c.type==="category"?c.getBandWidth():Math.abs(c.dataToCoord(d-v)-c.dataToCoord(d+v))},this)}function FWe(s){var a=s.master.getRect();return{coordSys:{type:"cartesian2d",x:a.x,y:a.y,width:a.width,height:a.height},api:{coord:function(i){return s.dataToPoint(i)},size:Ue(kWe,s)}}}function NWe(s,a){return a=a||[0,0],xe([0,1],function(i){var l=a[i],c=s[i]/2,d=[],v=[];return d[i]=l-c,v[i]=l+c,d[1-i]=v[1-i]=a[1-i],Math.abs(this.dataToPoint(d)[i]-this.dataToPoint(v)[i])},this)}function UWe(s){var a=s.getBoundingRect();return{coordSys:{type:"geo",x:a.x,y:a.y,width:a.width,height:a.height,zoom:s.getZoom()},api:{coord:function(i){return s.dataToPoint(i)},size:Ue(NWe,s)}}}function HWe(s,a){var i=this.getAxis(),l=a instanceof Array?a[0]:a,c=(s instanceof Array?s[0]:s)/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(l-c)-i.dataToCoord(l+c))}function QWe(s){var a=s.getRect();return{coordSys:{type:"singleAxis",x:a.x,y:a.y,width:a.width,height:a.height},api:{coord:function(i){return s.dataToPoint(i)},size:Ue(HWe,s)}}}function VWe(s,a){return a=a||[0,0],xe(["Radius","Angle"],function(i,l){var c="get"+i+"Axis",d=this[c](),v=a[l],m=s[l]/2,w=d.type==="category"?d.getBandWidth():Math.abs(d.dataToCoord(v-m)-d.dataToCoord(v+m));return i==="Angle"&&(w=w*Math.PI/180),w},this)}function zWe(s){var a=s.getRadiusAxis(),i=s.getAngleAxis(),l=a.getExtent();return l[0]>l[1]&&l.reverse(),{coordSys:{type:"polar",cx:s.cx,cy:s.cy,r:l[1],r0:l[0]},api:{coord:function(c){var d=a.dataToRadius(c[0]),v=i.dataToAngle(c[1]),m=s.coordToPoint([d,v]);return m.push(d,v*Math.PI/180),m},size:Ue(VWe,s)}}}function GWe(s){var a=s.getRect(),i=s.getRangeInfo();return{coordSys:{type:"calendar",x:a.x,y:a.y,width:a.width,height:a.height,cellWidth:s.getCellWidth(),cellHeight:s.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(l,c){return s.dataToPoint(l,c)}}}}var dle={};function Ale(s,a,i,l){return s&&(s.legacy||s.legacy!==!1&&!i&&!l&&a!=="tspan"&&(a==="text"||At(s,"text")))}function vle(s,a,i){var l=s,c,d,v;if(a==="text")v=l;else{v={},At(l,"text")&&(v.text=l.text),At(l,"rich")&&(v.rich=l.rich),At(l,"textFill")&&(v.fill=l.textFill),At(l,"textStroke")&&(v.stroke=l.textStroke),At(l,"fontFamily")&&(v.fontFamily=l.fontFamily),At(l,"fontSize")&&(v.fontSize=l.fontSize),At(l,"fontStyle")&&(v.fontStyle=l.fontStyle),At(l,"fontWeight")&&(v.fontWeight=l.fontWeight),d={type:"text",style:v,silent:!0},c={};var m=At(l,"textPosition");i?c.position=m?l.textPosition:"inside":m&&(c.position=l.textPosition),At(l,"textPosition")&&(c.position=l.textPosition),At(l,"textOffset")&&(c.offset=l.textOffset),At(l,"textRotation")&&(c.rotation=l.textRotation),At(l,"textDistance")&&(c.distance=l.textDistance)}return ple(v,s),ne(v.rich,function(w){ple(w,w)}),{textConfig:c,textContent:d}}function ple(s,a){a&&(a.font=a.textFont||a.font,At(a,"textStrokeWidth")&&(s.lineWidth=a.textStrokeWidth),At(a,"textAlign")&&(s.align=a.textAlign),At(a,"textVerticalAlign")&&(s.verticalAlign=a.textVerticalAlign),At(a,"textLineHeight")&&(s.lineHeight=a.textLineHeight),At(a,"textWidth")&&(s.width=a.textWidth),At(a,"textHeight")&&(s.height=a.textHeight),At(a,"textBackgroundColor")&&(s.backgroundColor=a.textBackgroundColor),At(a,"textPadding")&&(s.padding=a.textPadding),At(a,"textBorderColor")&&(s.borderColor=a.textBorderColor),At(a,"textBorderWidth")&&(s.borderWidth=a.textBorderWidth),At(a,"textBorderRadius")&&(s.borderRadius=a.textBorderRadius),At(a,"textBoxShadowColor")&&(s.shadowColor=a.textBoxShadowColor),At(a,"textBoxShadowBlur")&&(s.shadowBlur=a.textBoxShadowBlur),At(a,"textBoxShadowOffsetX")&&(s.shadowOffsetX=a.textBoxShadowOffsetX),At(a,"textBoxShadowOffsetY")&&(s.shadowOffsetY=a.textBoxShadowOffsetY))}function gle(s,a,i){var l=s;l.textPosition=l.textPosition||i.position||"inside",i.offset!=null&&(l.textOffset=i.offset),i.rotation!=null&&(l.textRotation=i.rotation),i.distance!=null&&(l.textDistance=i.distance);var c=l.textPosition.indexOf("inside")>=0,d=s.fill||"#000";mle(l,a);var v=l.textFill==null;return c?v&&(l.textFill=i.insideFill||"#fff",!l.textStroke&&i.insideStroke&&(l.textStroke=i.insideStroke),!l.textStroke&&(l.textStroke=d),l.textStrokeWidth==null&&(l.textStrokeWidth=2)):(v&&(l.textFill=s.fill||i.outsideFill||"#000"),!l.textStroke&&i.outsideStroke&&(l.textStroke=i.outsideStroke)),l.text=a.text,l.rich=a.rich,ne(a.rich,function(m){mle(m,m)}),l}function mle(s,a){a&&(At(a,"fill")&&(s.textFill=a.fill),At(a,"stroke")&&(s.textStroke=a.fill),At(a,"lineWidth")&&(s.textStrokeWidth=a.lineWidth),At(a,"font")&&(s.font=a.font),At(a,"fontStyle")&&(s.fontStyle=a.fontStyle),At(a,"fontWeight")&&(s.fontWeight=a.fontWeight),At(a,"fontSize")&&(s.fontSize=a.fontSize),At(a,"fontFamily")&&(s.fontFamily=a.fontFamily),At(a,"align")&&(s.textAlign=a.align),At(a,"verticalAlign")&&(s.textVerticalAlign=a.verticalAlign),At(a,"lineHeight")&&(s.textLineHeight=a.lineHeight),At(a,"width")&&(s.textWidth=a.width),At(a,"height")&&(s.textHeight=a.height),At(a,"backgroundColor")&&(s.textBackgroundColor=a.backgroundColor),At(a,"padding")&&(s.textPadding=a.padding),At(a,"borderColor")&&(s.textBorderColor=a.borderColor),At(a,"borderWidth")&&(s.textBorderWidth=a.borderWidth),At(a,"borderRadius")&&(s.textBorderRadius=a.borderRadius),At(a,"shadowColor")&&(s.textBoxShadowColor=a.shadowColor),At(a,"shadowBlur")&&(s.textBoxShadowBlur=a.shadowBlur),At(a,"shadowOffsetX")&&(s.textBoxShadowOffsetX=a.shadowOffsetX),At(a,"shadowOffsetY")&&(s.textBoxShadowOffsetY=a.shadowOffsetY),At(a,"textShadowColor")&&(s.textShadowColor=a.textShadowColor),At(a,"textShadowBlur")&&(s.textShadowBlur=a.textShadowBlur),At(a,"textShadowOffsetX")&&(s.textShadowOffsetX=a.textShadowOffsetX),At(a,"textShadowOffsetY")&&(s.textShadowOffsetY=a.textShadowOffsetY))}function yle(s,a){{var i=s+"^_^"+a;dle[i]||(console.warn('[ECharts] DEPRECATED: "'+s+'" has been deprecated. '+a),dle[i]=!0)}}var wle={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},ble=Ne(wle),HL=De(tt,function(s,a){return s[a]=1,s},{}),_le=tt.join(", "),QL=["","style","shape","extra"],Fb=Ri();function v6(s,a,i,l,c){var d=s+"Animation",v=Jw(s,l,c)||{},m=Fb(a).userDuring;return v.duration>0&&(v.during=m?Ue(KWe,{el:a,userDuring:m}):null,v.setToFinal=!0,v.scope=s),ie(v,i[d]),v}function VL(s,a,i,l){l=l||{};var c=l.dataIndex,d=l.isInit,v=l.clearStyle,m=i.isAnimationEnabled(),w=Fb(s),S=a.style;w.userDuring=a.during;var x={},E={};if(XWe(s,a,E),Cle("shape",a,E),Cle("extra",a,E),!d&&m&&(YWe(s,a,x),xle("shape",s,a,x),xle("extra",s,a,x),ZWe(s,a,S,x)),E.style=S,jWe(s,E,v),WWe(s,a),m)if(d){var M={};ne(QL,function(k){var Q=k?a[k]:a;Q&&Q.enterFrom&&(k&&(M[k]=M[k]||{}),ie(k?M[k]:M,Q.enterFrom))});var D=v6("enter",s,a,i,c);D.duration>0&&s.animateFrom(M,D)}else qWe(s,a,c||0,i,x);Sle(s,a),S?s.dirty():s.markRedraw()}function Sle(s,a){for(var i=Fb(s).leaveToProps,l=0;l<QL.length;l++){var c=QL[l],d=c?a[c]:a;d&&d.leaveTo&&(i||(i=Fb(s).leaveToProps={}),c&&(i[c]=i[c]||{}),ie(c?i[c]:i,d.leaveTo))}}function zL(s,a,i,l){if(s){var c=s.parent,d=Fb(s).leaveToProps;if(d){var v=v6("update",s,a,i,0);v.done=function(){c.remove(s)},s.animateTo(d,v)}else c.remove(s)}}function O0(s){return s==="all"}function jWe(s,a,i){var l=a.style;if(!s.isGroup&&l){if(i){s.useStyle({});for(var c=s.animators,d=0;d<c.length;d++){var v=c[d];v.targetName==="style"&&v.changeTarget(s.style)}}s.setStyle(l)}a&&(a.style=null,a&&s.attr(a),a.style=l)}function qWe(s,a,i,l,c){if(c){var d=v6("update",s,a,l,i);d.duration>0&&s.animateFrom(c,d)}}function WWe(s,a){At(a,"silent")&&(s.silent=a.silent),At(a,"ignore")&&(s.ignore=a.ignore),s instanceof en&&At(a,"invisible")&&(s.invisible=a.invisible),s instanceof Yn&&At(a,"autoBatch")&&(s.autoBatch=a.autoBatch)}var Iv={},$We={setTransform:function(s,a){return _t(At(HL,s),"Only "+_le+" available in `setTransform`."),Iv.el[s]=a,this},getTransform:function(s){return _t(At(HL,s),"Only "+_le+" available in `getTransform`."),Iv.el[s]},setShape:function(s,a){Nb(s);var i=Iv.el,l=i.shape||(i.shape={});return l[s]=a,i.dirtyShape&&i.dirtyShape(),this},getShape:function(s){Nb(s);var a=Iv.el.shape;if(a)return a[s]},setStyle:function(s,a){Nb(s);var i=Iv.el,l=i.style;return l&&(Rt(a)&&Ya("style."+s+" must not be assigned with NaN."),l[s]=a,i.dirtyStyle&&i.dirtyStyle()),this},getStyle:function(s){Nb(s);var a=Iv.el.style;if(a)return a[s]},setExtra:function(s,a){Nb(s);var i=Iv.el.extra||(Iv.el.extra={});return i[s]=a,this},getExtra:function(s){Nb(s);var a=Iv.el.extra;if(a)return a[s]}};function Nb(s){if(s==="transition"||s==="enterFrom"||s==="leaveTo")throw new Error('key must not be "'+s+'"')}function KWe(){var s=this,a=s.el;if(a){var i=Fb(a).userDuring,l=s.userDuring;if(i!==l){s.el=s.userDuring=null;return}Iv.el=a,l($We)}}function xle(s,a,i,l){var c=i[s];if(c){var d=a[s],v;if(d){var m=i.transition,w=c.transition;if(w)if(!v&&(v=l[s]={}),O0(w))ie(v,d);else for(var S=Ni(w),x=0;x<S.length;x++){var E=S[x],M=d[E];v[E]=M}else if(O0(m)||oe(m,s)>=0){!v&&(v=l[s]={});for(var D=Ne(d),x=0;x<D.length;x++){var E=D[x],M=d[E];JWe(c[E],M)&&(v[E]=M)}}}}}function Cle(s,a,i){var l=a[s];if(l)for(var c=i[s]={},d=Ne(l),v=0;v<d.length;v++){var m=d[v];c[m]=ac(l[m])}}function YWe(s,a,i){for(var l=a.transition,c=O0(l)?tt:Ni(l||[]),d=0;d<c.length;d++){var v=c[d];if(!(v==="style"||v==="shape"||v==="extra")){var m=s[v];Tle(v,"el.transition"),i[v]=m}}}function XWe(s,a,i){for(var l=0;l<ble.length;l++){var c=ble[l],d=wle[c],v=a[c];v&&(i[d[0]]=v[0],i[d[1]]=v[1])}for(var l=0;l<tt.length;l++){var m=tt[l];a[m]!=null&&(i[m]=a[m])}}function ZWe(s,a,i,l){if(i){var c=s.style,d;if(c){var v=i.transition,m=a.transition;if(v&&!O0(v)){var w=Ni(v);!d&&(d=l.style={});for(var S=0;S<w.length;S++){var x=w[S],E=c[x];d[x]=E}}else if(s.getAnimationStyleProps&&(O0(m)||O0(v)||oe(m,"style")>=0)){var M=s.getAnimationStyleProps(),D=M?M.style:null;if(D){!d&&(d=l.style={});for(var k=Ne(i),S=0;S<k.length;S++){var x=k[S];if(D[x]){var E=c[x];d[x]=E}}}}}}}function JWe(s,a){return Ce(s)?s!==a:s!=null&&isFinite(s)}var Tle;Tle=function(s,a){At(HL,s)||Ya("Prop `"+s+"` is not a permitted in `"+a+"`. Only `"+Ne(HL).join("`, `")+"` are permitted.")};var Ele=Ri(),e$e=["percent","easing","shape","style","extra"];function Ble(s){s.stopAnimation("keyframe"),s.attr(Ele(s))}function GL(s,a,i){if(!(!i.isAnimationEnabled()||!a)){if(Qe(a)){ne(a,function(m){GL(s,m,i)});return}var l=a.keyframes,c=a.duration;if(i&&c==null){var d=Jw("enter",i,0);c=d&&d.duration}if(!(!l||!c)){var v=Ele(s);ne(QL,function(m){if(!(m&&!s[m])){var w,S=!1;l.sort(function(x,E){return x.percent-E.percent}),ne(l,function(x){var E=s.animators,M=m?x[m]:x;if(x.percent>=1&&(S=!0),!!M){var D=Ne(M);if(m||(D=ze(D,function(V){return oe(e$e,V)<0})),!!D.length){w||(w=s.animate(m,a.loop,!0),w.scope="keyframe");for(var k=0;k<E.length;k++)E[k]!==w&&E[k].targetName===w.targetName&&E[k].stopTracks(D);m&&(v[m]=v[m]||{});var Q=m?v[m]:v;ne(D,function(V){Q[V]=((m?s[m]:s)||{})[V]}),w.whenWithKeys(c*x.percent,M,D,x.easing)}}}),w&&(S||Ya("End frame with percent: 1 is missing in the keyframeAnimation.",!0),w.delay(a.delay||0).duration(c).start(a.easing))}})}}}var qp="emphasis",wm="normal",p6="blur",g6="select",bm=[wm,qp,p6,g6],m6={normal:["itemStyle"],emphasis:[qp,"itemStyle"],blur:[p6,"itemStyle"],select:[g6,"itemStyle"]},y6={normal:["label"],emphasis:[qp,"label"],blur:[p6,"label"],select:[g6,"label"]},t$e=["x","y"],r$e="e\0\0",cd={normal:{},emphasis:{},blur:{},select:{}},Ile={cartesian2d:FWe,geo:UWe,single:QWe,polar:zWe,calendar:GWe};function jL(s){return s instanceof Yn}function w6(s){return s instanceof en}function n$e(s,a){a.copyTransform(s),w6(a)&&w6(s)&&(a.setStyle(s.style),a.z=s.z,a.z2=s.z2,a.zlevel=s.zlevel,a.invisible=s.invisible,a.ignore=s.ignore,jL(a)&&jL(s)&&a.setShape(s.shape))}var i$e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c,d){this._progressiveEls=null;var v=this._data,m=i.getData(),w=this.group,S=Mle(i,m,l,c);v||w.removeAll(),m.diff(v).add(function(E){S6(c,null,E,S(E,d),i,w,m)}).remove(function(E){var M=v.getItemGraphicEl(E);M&&zL(M,jp(M).option,i)}).update(function(E,M){var D=v.getItemGraphicEl(M);S6(c,D,E,S(E,d),i,w,m)}).execute();var x=i.get("clip",!0)?CC(i.coordinateSystem,!1,i):null;x?w.setClipPath(x):w.removeClipPath(),this._data=m},a.prototype.incrementalPrepareRender=function(i,l,c){this.group.removeAll(),this._data=null},a.prototype.incrementalRender=function(i,l,c,d,v){var m=l.getData(),w=Mle(l,m,c,d),S=this._progressiveEls=[];function x(D){D.isGroup||(D.incremental=!0,D.ensureState("emphasis").hoverLayer=!0)}for(var E=i.start;E<i.end;E++){var M=S6(null,null,E,w(E,v),l,this.group,m);M&&(M.traverse(x),S.push(M))}},a.prototype.eachRendered=function(i){om(this._progressiveEls||this.group,i)},a.prototype.filterForExposedEvent=function(i,l,c,d){var v=l.element;if(v==null||c.name===v)return!0;for(;(c=c.__hostTarget||c.parent)&&c!==this.group;)if(c.name===v)return!0;return!1},a.type="custom",a}(xa);function b6(s){var a=s.type,i;if(a==="path"){var l=s.shape,c=l.width!=null&&l.height!=null?{x:l.x||0,y:l.y||0,width:l.width,height:l.height}:null,d=kle(l);i=Gx(d,null,c,l.layout||"center"),jp(i).customPathData=d}else if(a==="image")i=new is({}),jp(i).customImagePath=s.style.image;else if(a==="text")i=new be({});else if(a==="group")i=new Lr;else{if(a==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var v=cI(a);if(!v){var m="";m='graphic type "'+a+'" can not be found.',Fi(m)}i=new v}return jp(i).customGraphicType=a,i.name=s.name,i.z2EmphasisLift=1,i.z2SelectLift=1,i}function _6(s,a,i,l,c,d,v){Ble(a);var m=c&&c.normal.cfg;m&&a.setTextConfig(m),l&&l.transition==null&&(l.transition=t$e);var w=l&&l.style;if(w){if(a.type==="text"){var S=w;At(S,"textFill")&&(S.fill=S.textFill),At(S,"textStroke")&&(S.stroke=S.textStroke)}var x=void 0,E=jL(a)?w.decal:null;s&&E&&(E.dirty=!0,x=yb(E,s)),w.__decalPattern=x}if(w6(a)&&w){var x=w.__decalPattern;x&&(w.decal=x)}VL(a,l,d,{dataIndex:i,isInit:v,clearStyle:!0}),GL(a,l.keyframeAnimation,d)}function Lle(s,a,i,l,c){var d=a.isGroup?null:a,v=c&&c[s].cfg;if(d){var m=d.ensureState(s);if(l===!1){var w=d.getState(s);w&&(w.style=null)}else m.style=l||null;v&&(m.textConfig=v),Ky(d)}}function a$e(s,a,i){if(!s.isGroup){var l=s,c=i.currentZ,d=i.currentZLevel;l.z=c,l.zlevel=d;var v=a.z2;v!=null&&(l.z2=v||0);for(var m=0;m<bm.length;m++)o$e(l,a,bm[m])}}function o$e(s,a,i){var l=i===wm,c=l?a:qL(a,i),d=c?c.z2:null,v;d!=null&&(v=l?s:s.ensureState(i),v.z2=d||0)}function Mle(s,a,i,l){var c=s.get("renderItem"),d=s.coordinateSystem,v={};d&&(_t(c,"series.render is required."),_t(d.prepareCustoms||Ile[d.type],"This coordSys does not support custom series."),v=d.prepareCustoms?d.prepareCustoms(d):Ile[d.type](d));for(var m=he({getWidth:l.getWidth,getHeight:l.getHeight,getZr:l.getZr,getDevicePixelRatio:l.getDevicePixelRatio,value:fe,style:ge,ordinalRawValue:ve,styleEmphasis:Se,visual:Le,barLayout:Fe,currentSeriesIndices:Je,font:rt},v.api||{}),w={context:{},seriesId:s.id,seriesName:s.name,seriesIndex:s.seriesIndex,coordSys:v.coordSys,dataInsideLength:a.count(),encode:s$e(s.getData())},S,x,E={},M={},D={},k={},Q=0;Q<bm.length;Q++){var V=bm[Q];D[V]=s.getModel(m6[V]),k[V]=s.getModel(y6[V])}function $(at){return at===S?x||(x=a.getItemModel(at)):a.getItemModel(at)}function Z(at,dt){return a.hasItemOption?at===S?E[dt]||(E[dt]=$(at).getModel(m6[dt])):$(at).getModel(m6[dt]):D[dt]}function ee(at,dt){return a.hasItemOption?at===S?M[dt]||(M[dt]=$(at).getModel(y6[dt])):$(at).getModel(y6[dt]):k[dt]}return function(at,dt){return S=at,x=null,E={},M={},c&&c(he({dataIndexInside:at,dataIndex:a.getRawIndex(at),actionType:dt?dt.type:null},w),m)};function fe(at,dt){return dt==null&&(dt=S),a.getStore().get(a.getDimensionIndex(at||0),dt)}function ve(at,dt){dt==null&&(dt=S),at=at||0;var wt=a.getDimensionInfo(at);if(!wt){var zt=a.getDimensionIndex(at);return zt>=0?a.getStore().get(zt,dt):void 0}var Ut=a.get(wt.name,dt),Yt=wt&&wt.ordinalMeta;return Yt?Yt.categories[Ut]:Ut}function ge(at,dt){yle("api.style","Please write literal style directly instead."),dt==null&&(dt=S);var wt=a.getItemVisual(dt,"style"),zt=wt&&wt.fill,Ut=wt&&wt.opacity,Yt=Z(dt,wm).getItemStyle();zt!=null&&(Yt.fill=zt),Ut!=null&&(Yt.opacity=Ut);var ur={inheritColor:Re(zt)?zt:"#000"},wr=ee(dt,wm),Or=Xa(wr,null,ur,!1,!0);Or.text=wr.getShallow("show")?It(s.getFormattedLabel(dt,wm),Eb(a,dt)):null;var vn=AI(wr,ur,!1);return Ie(at,Yt),Yt=gle(Yt,Or,vn),at&&Ee(Yt,at),Yt.legacy=!0,Yt}function Se(at,dt){yle("api.styleEmphasis","Please write literal style directly instead."),dt==null&&(dt=S);var wt=Z(dt,qp).getItemStyle(),zt=ee(dt,qp),Ut=Xa(zt,null,null,!0,!0);Ut.text=zt.getShallow("show")?qt(s.getFormattedLabel(dt,qp),s.getFormattedLabel(dt,wm),Eb(a,dt)):null;var Yt=AI(zt,null,!0);return Ie(at,wt),wt=gle(wt,Ut,Yt),at&&Ee(wt,at),wt.legacy=!0,wt}function Ee(at,dt){for(var wt in dt)At(dt,wt)&&(at[wt]=dt[wt])}function Ie(at,dt){at&&(at.textFill&&(dt.textFill=at.textFill),at.textPosition&&(dt.textPosition=at.textPosition))}function Le(at,dt){if(dt==null&&(dt=S),At(hle,at)){var wt=a.getItemVisual(dt,"style");return wt?wt[hle[at]]:null}if(At(PWe,at))return a.getItemVisual(dt,at)}function Fe(at){if(d.type==="cartesian2d"){var dt=d.getBaseAxis();return FQe(he({axis:dt},at))}}function Je(){return i.getCurrentSeriesIndices()}function rt(at){return zF(at,i)}}function s$e(s){var a={};return ne(s.dimensions,function(i){var l=s.getDimensionInfo(i);if(!l.isExtraCoord){var c=l.coordDim,d=a[c]=a[c]||[];d[l.coordDimIndex]=s.getDimensionIndex(i)}}),a}function S6(s,a,i,l,c,d,v){if(!l){d.remove(a);return}var m=x6(s,a,i,l,c,d);return m&&v.setItemGraphicEl(i,m),m&&as(m,l.focus,l.blurScope,l.emphasisDisabled),m}function x6(s,a,i,l,c,d){_t(l,"should not have an null/undefined element setting");var v=-1,m=a;a&&Dle(a,l,c)&&(v=oe(d.childrenRef(),a),a=null);var w=!a,S=a;S?S.clearStates():(S=b6(l),m&&n$e(m,S)),l.morph===!1?S.disableMorphing=!0:S.disableMorphing&&(S.disableMorphing=!1),cd.normal.cfg=cd.normal.conOpt=cd.emphasis.cfg=cd.emphasis.conOpt=cd.blur.cfg=cd.blur.conOpt=cd.select.cfg=cd.select.conOpt=null,cd.isLegacy=!1,u$e(S,i,l,c,w,cd),l$e(S,i,l,c,w),_6(s,S,i,l,cd,c,w),At(l,"info")&&(jp(S).info=l.info);for(var x=0;x<bm.length;x++){var E=bm[x];if(E!==wm){var M=qL(l,E),D=C6(l,M,E);Lle(E,S,M,D,cd)}}return a$e(S,l,c),l.type==="group"&&c$e(s,S,i,l,c),v>=0?d.replaceAt(S,v):d.add(S),S}function Dle(s,a,i){var l=jp(s),c=a.type,d=a.shape,v=a.style;return i.isUniversalTransitionEnabled()||c!=null&&c!==l.customGraphicType||c==="path"&&A$e(d)&&kle(d)!==l.customPathData||c==="image"&&At(v,"image")&&v.image!==l.customImagePath}function l$e(s,a,i,l,c){var d=i.clipPath;if(d===!1)s&&s.getClipPath()&&s.removeClipPath();else if(d){var v=s.getClipPath();v&&Dle(v,d,l)&&(v=null),v||(v=b6(d),_t(jL(v),"Only any type of `path` can be used in `clipPath`, rather than "+v.type+"."),s.setClipPath(v)),_6(null,v,a,d,null,l,c)}}function u$e(s,a,i,l,c,d){if(!s.isGroup){Rle(i,null,d),Rle(i,qp,d);var v=d.normal.conOpt,m=d.emphasis.conOpt,w=d.blur.conOpt,S=d.select.conOpt;if(v!=null||m!=null||S!=null||w!=null){var x=s.getTextContent();if(v===!1)x&&s.removeTextContent();else{v=d.normal.conOpt=v||{type:"text"},x?x.clearStates():(x=b6(v),s.setTextContent(x)),_6(null,x,a,v,null,l,c);for(var E=v&&v.style,M=0;M<bm.length;M++){var D=bm[M];if(D!==wm){var k=d[D].conOpt;Lle(D,x,k,C6(v,k,D),null)}}E?x.dirty():x.markRedraw()}}}}function Rle(s,a,i){var l=a?qL(s,a):s,c=a?C6(s,l,qp):s.style,d=s.type,v=l?l.textConfig:null,m=s.textContent,w=m?a?qL(m,a):m:null;if(c&&(i.isLegacy||Ale(c,d,!!v,!!w))){i.isLegacy=!0;var S=vle(c,d,!a);!v&&S.textConfig&&(v=S.textConfig),!w&&S.textContent&&(w=S.textContent)}if(!a&&w){var x=w;!x.type&&(x.type="text"),_t(x.type==="text",'textContent.type must be "text"')}var E=a?i[a]:i.normal;E.cfg=v,E.conOpt=w}function qL(s,a){return a?s?s[a]:null:s}function C6(s,a,i){var l=a&&a.style;return l==null&&i===qp&&s&&(l=s.styleEmphasis),l}function c$e(s,a,i,l,c){var d=l.children,v=d?d.length:0,m=l.$mergeChildren,w=m==="byName"||l.diffChildrenByName,S=m===!1;if(!(!v&&!w&&!S)){if(w){h$e({api:s,oldChildren:a.children()||[],newChildren:d||[],dataIndex:i,seriesModel:c,group:a});return}S&&a.removeAll();for(var x=0;x<v;x++){var E=d[x],M=a.childAt(x);E?(E.ignore==null&&(E.ignore=!1),x6(s,M,i,E,c,a)):(_t(M,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),M.ignore=!0)}for(var D=a.childCount()-1;D>=x;D--){var k=a.childAt(D);f$e(a,k,c)}}}function f$e(s,a,i){a&&zL(a,jp(s).option,i)}function h$e(s){new Hp(s.oldChildren,s.newChildren,Ple,Ple,s).add(Ole).update(Ole).remove(d$e).execute()}function Ple(s,a){var i=s&&s.name;return i??r$e+a}function Ole(s,a){var i=this.context,l=s!=null?i.newChildren[s]:null,c=a!=null?i.oldChildren[a]:null;x6(i.api,c,i.dataIndex,l,i.seriesModel,i.group)}function d$e(s){var a=this.context,i=a.oldChildren[s];i&&zL(i,jp(i).option,a.seriesModel)}function kle(s){return s&&(s.pathData||s.d)}function A$e(s){return s&&(At(s,"pathData")||At(s,"d"))}function v$e(s){s.registerChartView(i$e),s.registerSeriesModel(OWe)}var k0=Ri(),Fle=ae,T6=Ue,E6=function(){function s(){this._dragging=!1,this.animationThreshold=15}return s.prototype.render=function(a,i,l,c){var d=i.get("value"),v=i.get("status");if(this._axisModel=a,this._axisPointerModel=i,this._api=l,!(!c&&this._lastValue===d&&this._lastStatus===v)){this._lastValue=d,this._lastStatus=v;var m=this._group,w=this._handle;if(!v||v==="hide"){m&&m.hide(),w&&w.hide();return}m&&m.show(),w&&w.show();var S={};this.makeElOption(S,d,a,i,l);var x=S.graphicKey;x!==this._lastGraphicKey&&this.clear(l),this._lastGraphicKey=x;var E=this._moveAnimation=this.determineAnimation(a,i);if(!m)m=this._group=new Lr,this.createPointerEl(m,S,a,i),this.createLabelEl(m,S,a,i),l.getZr().add(m);else{var M=ue(Nle,i,E);this.updatePointerEl(m,S,M),this.updateLabelEl(m,S,M,i)}Qle(m,i,!0),this._renderHandle(d)}},s.prototype.remove=function(a){this.clear(a)},s.prototype.dispose=function(a){this.clear(a)},s.prototype.determineAnimation=function(a,i){var l=i.get("animation"),c=a.axis,d=c.type==="category",v=i.get("snap");if(!v&&!d)return!1;if(l==="auto"||l==null){var m=this.animationThreshold;if(d&&c.getBandWidth()>m)return!0;if(v){var w=$U(a).seriesDataCount,S=c.getExtent();return Math.abs(S[0]-S[1])/w>m}return!1}return l===!0},s.prototype.makeElOption=function(a,i,l,c,d){},s.prototype.createPointerEl=function(a,i,l,c){var d=i.pointer;if(d){var v=k0(a).pointerEl=new t0[d.type](Fle(i.pointer));a.add(v)}},s.prototype.createLabelEl=function(a,i,l,c){if(i.label){var d=k0(a).labelEl=new be(Fle(i.label));a.add(d),Hle(d,c)}},s.prototype.updatePointerEl=function(a,i,l){var c=k0(a).pointerEl;c&&i.pointer&&(c.setStyle(i.pointer.style),l(c,{shape:i.pointer.shape}))},s.prototype.updateLabelEl=function(a,i,l,c){var d=k0(a).labelEl;d&&(d.setStyle(i.label.style),l(d,{x:i.label.x,y:i.label.y}),Hle(d,c))},s.prototype._renderHandle=function(a){if(!(this._dragging||!this.updateHandleTransform)){var i=this._axisPointerModel,l=this._api.getZr(),c=this._handle,d=i.getModel("handle"),v=i.get("status");if(!d.get("show")||!v||v==="hide"){c&&l.remove(c),this._handle=null;return}var m;this._handle||(m=!0,c=this._handle=rb(d.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(S){us(S.event)},onmousedown:T6(this._onHandleDragMove,this,0,0),drift:T6(this._onHandleDragMove,this),ondragend:T6(this._onHandleDragEnd,this)}),l.add(c)),Qle(c,i,!1),c.setStyle(d.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var w=d.get("size");Qe(w)||(w=[w,w]),c.scaleX=w[0]/2,c.scaleY=w[1]/2,vb(this,"_doDispatchAxisPointer",d.get("throttle")||0,"fixRate"),this._moveHandleToValue(a,m)}},s.prototype._moveHandleToValue=function(a,i){Nle(this._axisPointerModel,!i&&this._moveAnimation,this._handle,B6(this.getHandleTransform(a,this._axisModel,this._axisPointerModel)))},s.prototype._onHandleDragMove=function(a,i){var l=this._handle;if(l){this._dragging=!0;var c=this.updateHandleTransform(B6(l),[a,i],this._axisModel,this._axisPointerModel);this._payloadInfo=c,l.stopAnimation(),l.attr(B6(c)),k0(l).lastProp=null,this._doDispatchAxisPointer()}},s.prototype._doDispatchAxisPointer=function(){var a=this._handle;if(a){var i=this._payloadInfo,l=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:i.cursorPoint[0],y:i.cursorPoint[1],tooltipOption:i.tooltipOption,axesInfo:[{axisDim:l.axis.dim,axisIndex:l.componentIndex}]})}},s.prototype._onHandleDragEnd=function(){this._dragging=!1;var a=this._handle;if(a){var i=this._axisPointerModel.get("value");this._moveHandleToValue(i),this._api.dispatchAction({type:"hideTip"})}},s.prototype.clear=function(a){this._lastValue=null,this._lastStatus=null;var i=a.getZr(),l=this._group,c=this._handle;i&&l&&(this._lastGraphicKey=null,l&&i.remove(l),c&&i.remove(c),this._group=null,this._handle=null,this._payloadInfo=null),iC(this,"_doDispatchAxisPointer")},s.prototype.doClear=function(){},s.prototype.buildLabel=function(a,i,l){return l=l||0,{x:a[l],y:a[1-l],width:i[l],height:i[1-l]}},s}();function Nle(s,a,i,l){Ule(k0(i).lastProp,l)||(k0(i).lastProp=l,a?Yi(i,l,s):(i.stopAnimation(),i.attr(l)))}function Ule(s,a){if(Pe(s)&&Pe(a)){var i=!0;return ne(a,function(l,c){i=i&&Ule(s[c],l)}),!!i}else return s===a}function Hle(s,a){s[a.get(["label","show"])?"show":"hide"]()}function B6(s){return{x:s.x||0,y:s.y||0,rotation:s.rotation||0}}function Qle(s,a,i){var l=a.get("z"),c=a.get("zlevel");s&&s.traverse(function(d){d.type!=="group"&&(l!=null&&(d.z=l),c!=null&&(d.zlevel=c),d.silent=i)})}function I6(s){var a=s.get("type"),i=s.getModel(a+"Style"),l;return a==="line"?(l=i.getLineStyle(),l.fill=null):a==="shadow"&&(l=i.getAreaStyle(),l.stroke=null),l}function Vle(s,a,i,l,c){var d=i.get("value"),v=zle(d,a.axis,a.ecModel,i.get("seriesDataIndices"),{precision:i.get(["label","precision"]),formatter:i.get(["label","formatter"])}),m=i.getModel("label"),w=r0(m.get("padding")||0),S=m.getFont(),x=Ot(v,S),E=c.position,M=x.width+w[1]+w[3],D=x.height+w[0]+w[2],k=c.align;k==="right"&&(E[0]-=M),k==="center"&&(E[0]-=M/2);var Q=c.verticalAlign;Q==="bottom"&&(E[1]-=D),Q==="middle"&&(E[1]-=D/2),p$e(E,M,D,l);var V=m.get("backgroundColor");(!V||V==="auto")&&(V=a.get(["axisLine","lineStyle","color"])),s.label={x:E[0],y:E[1],style:Xa(m,{text:v,font:S,fill:m.getTextColor(),padding:w,backgroundColor:V}),z2:10}}function p$e(s,a,i,l){var c=l.getWidth(),d=l.getHeight();s[0]=Math.min(s[0]+a,c)-a,s[1]=Math.min(s[1]+i,d)-i,s[0]=Math.max(s[0],0),s[1]=Math.max(s[1],0)}function zle(s,a,i,l,c){s=a.scale.parse(s);var d=a.scale.getLabel({value:s},{precision:c.precision}),v=c.formatter;if(v){var m={value:hU(a,{value:s}),axisDimension:a.dim,axisIndex:a.index,seriesData:[]};ne(l,function(w){var S=i.getSeriesByIndex(w.seriesIndex),x=w.dataIndexInside,E=S&&S.getDataParams(x);E&&m.seriesData.push(E)}),Re(v)?d=v.replace("{value}",d):qe(v)&&(d=v(m))}return d}function L6(s,a,i){var l=gn();return so(l,l,i.rotation),Ai(l,l,i.position),AA([s.dataToCoord(a),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],l)}function Gle(s,a,i,l,c,d){var v=tf.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=c.get(["label","margin"]),Vle(a,l,c,d,{position:L6(l.axis,s,i),align:v.textAlign,verticalAlign:v.textVerticalAlign})}function M6(s,a,i){return i=i||0,{x1:s[i],y1:s[1-i],x2:a[i],y2:a[1-i]}}function jle(s,a,i){return i=i||0,{x:s[i],y:s[1-i],width:a[i],height:a[1-i]}}function qle(s,a,i,l,c,d){return{cx:s,cy:a,r0:i,r:l,startAngle:c,endAngle:d,clockwise:!0}}var g$e=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.makeElOption=function(i,l,c,d,v){var m=c.axis,w=m.grid,S=d.get("type"),x=Wle(w,m).getOtherAxis(m).getGlobalExtent(),E=m.toGlobalCoord(m.dataToCoord(l,!0));if(S&&S!=="none"){var M=I6(d),D=m$e[S](m,E,x);D.style=M,i.graphicKey=D.type,i.pointer=D}var k=GU(w.model,c);Gle(l,i,k,c,d,v)},a.prototype.getHandleTransform=function(i,l,c){var d=GU(l.axis.grid.model,l,{labelInside:!1});d.labelMargin=c.get(["handle","margin"]);var v=L6(l.axis,i,d);return{x:v[0],y:v[1],rotation:d.rotation+(d.labelDirection<0?Math.PI:0)}},a.prototype.updateHandleTransform=function(i,l,c,d){var v=c.axis,m=v.grid,w=v.getGlobalExtent(!0),S=Wle(m,v).getOtherAxis(v).getGlobalExtent(),x=v.dim==="x"?0:1,E=[i.x,i.y];E[x]+=l[x],E[x]=Math.min(w[1],E[x]),E[x]=Math.max(w[0],E[x]);var M=(S[1]+S[0])/2,D=[M,M];D[x]=E[x];var k=[{verticalAlign:"middle"},{align:"center"}];return{x:E[0],y:E[1],rotation:i.rotation,cursorPoint:D,tooltipOption:k[x]}},a}(E6);function Wle(s,a){var i={};return i[a.dim+"AxisIndex"]=a.index,s.getCartesian(i)}var m$e={line:function(s,a,i){var l=M6([a,i[0]],[a,i[1]],$le(s));return{type:"Line",subPixelOptimize:!0,shape:l}},shadow:function(s,a,i){var l=Math.max(1,s.getBandWidth()),c=i[1]-i[0];return{type:"Rect",shape:jle([a-l/2,i[0]],[l,c],$le(s))}}};function $le(s){return s.dim==="x"?0:1}var y$e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.type="axisPointer",a.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}},a}(li),Wp=Ri(),w$e=ne;function Kle(s,a,i){if(!h.node){var l=a.getZr();Wp(l).records||(Wp(l).records={}),b$e(l,a);var c=Wp(l).records[s]||(Wp(l).records[s]={});c.handler=i}}function b$e(s,a){if(Wp(s).initialized)return;Wp(s).initialized=!0,i("click",ue(Yle,"click")),i("mousemove",ue(Yle,"mousemove")),i("globalout",S$e);function i(l,c){s.on(l,function(d){var v=x$e(a);w$e(Wp(s).records,function(m){m&&c(m,d,v.dispatchAction)}),_$e(v.pendings,a)})}}function _$e(s,a){var i=s.showTip.length,l=s.hideTip.length,c;i?c=s.showTip[i-1]:l&&(c=s.hideTip[l-1]),c&&(c.dispatchAction=null,a.dispatchAction(c))}function S$e(s,a,i){s.handler("leave",null,i)}function Yle(s,a,i,l){a.handler(s,i,l)}function x$e(s){var a={showTip:[],hideTip:[]},i=function(l){var c=a[l.type];c?c.push(l):(l.dispatchAction=i,s.dispatchAction(l))};return{dispatchAction:i,pendings:a}}function D6(s,a){if(!h.node){var i=a.getZr(),l=(Wp(i).records||{})[s];l&&(Wp(i).records[s]=null)}}var C$e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c){var d=l.getComponent("tooltip"),v=i.get("triggerOn")||d&&d.get("triggerOn")||"mousemove|click";Kle("axisPointer",c,function(m,w,S){v!=="none"&&(m==="leave"||v.indexOf(m)>=0)&&S({type:"updateAxisPointer",currTrigger:m,x:w&&w.offsetX,y:w&&w.offsetY})})},a.prototype.remove=function(i,l){D6("axisPointer",l)},a.prototype.dispose=function(i,l){D6("axisPointer",l)},a.type="axisPointer",a}(ho);function Xle(s,a){var i=[],l=s.seriesIndex,c;if(l==null||!(c=a.getSeriesByIndex(l)))return{point:[]};var d=c.getData(),v=iA(d,s);if(v==null||v<0||Qe(v))return{point:[]};var m=d.getItemGraphicEl(v),w=c.coordinateSystem;if(c.getTooltipPosition)i=c.getTooltipPosition(v)||[];else if(w&&w.dataToPoint)if(s.isStacked){var S=w.getBaseAxis(),x=w.getOtherAxis(S),E=x.dim,M=S.dim,D=E==="x"||E==="radius"?1:0,k=d.mapDimension(M),Q=[];Q[D]=d.get(k,v),Q[1-D]=d.get(d.getCalculationInfo("stackResultDimension"),v),i=w.dataToPoint(Q)||[]}else i=w.dataToPoint(d.getValues(xe(w.dimensions,function($){return d.mapDimension($)}),v))||[];else if(m){var V=m.getBoundingRect().clone();V.applyTransform(m.transform),i=[V.x+V.width/2,V.y+V.height/2]}return{point:i,el:m}}var Zle=Ri();function T$e(s,a,i){var l=s.currTrigger,c=[s.x,s.y],d=s,v=s.dispatchAction||Ue(i.dispatchAction,i),m=a.getComponent("axisPointer").coordSysAxesInfo;if(m){WL(c)&&(c=Xle({seriesIndex:d.seriesIndex,dataIndex:d.dataIndex},a).point);var w=WL(c),S=d.axesInfo,x=m.axesInfo,E=l==="leave"||WL(c),M={},D={},k={list:[],map:{}},Q={showPointer:ue(B$e,D),showTooltip:ue(I$e,k)};ne(m.coordSysMap,function($,Z){var ee=w||$.containPoint(c);ne(m.coordSysAxesInfo[Z],function(fe,ve){var ge=fe.axis,Se=R$e(S,fe);if(!E&&ee&&(!S||Se)){var Ee=Se&&Se.value;Ee==null&&!w&&(Ee=ge.pointToData(c)),Ee!=null&&Jle(fe,Ee,Q,!1,M)}})});var V={};return ne(x,function($,Z){var ee=$.linkGroup;ee&&!D[Z]&&ne(ee.axesInfo,function(fe,ve){var ge=D[ve];if(fe!==$&&ge){var Se=ge.value;ee.mapper&&(Se=$.axis.scale.parse(ee.mapper(Se,eue(fe),eue($)))),V[$.key]=Se}})}),ne(V,function($,Z){Jle(x[Z],$,Q,!0,M)}),L$e(D,x,M),M$e(k,c,s,v),D$e(x,v,i),M}}function Jle(s,a,i,l,c){var d=s.axis;if(!(d.scale.isBlank()||!d.containData(a))){if(!s.involveSeries){i.showPointer(s,a);return}var v=E$e(a,s),m=v.payloadBatch,w=v.snapToValue;m[0]&&c.seriesIndex==null&&ie(c,m[0]),!l&&s.snap&&d.containData(w)&&w!=null&&(a=w),i.showPointer(s,a,m),i.showTooltip(s,v,w)}}function E$e(s,a){var i=a.axis,l=i.dim,c=s,d=[],v=Number.MAX_VALUE,m=-1;return ne(a.seriesModels,function(w,S){var x=w.getData().mapDimensionsAll(l),E,M;if(w.getAxisTooltipData){var D=w.getAxisTooltipData(x,s,i);M=D.dataIndices,E=D.nestestValue}else{if(M=w.getData().indicesOfNearest(x[0],s,i.type==="category"?.5:null),!M.length)return;E=w.getData().get(x[0],M[0])}if(!(E==null||!isFinite(E))){var k=s-E,Q=Math.abs(k);Q<=v&&((Q<v||k>=0&&m<0)&&(v=Q,m=k,c=E,d.length=0),ne(M,function(V){d.push({seriesIndex:w.seriesIndex,dataIndexInside:V,dataIndex:w.getData().getRawIndex(V)})}))}}),{payloadBatch:d,snapToValue:c}}function B$e(s,a,i,l){s[a.key]={value:i,payloadBatch:l}}function I$e(s,a,i,l){var c=i.payloadBatch,d=a.axis,v=d.model,m=a.axisPointerModel;if(!(!a.triggerTooltip||!c.length)){var w=a.coordSys.model,S=LC(w),x=s.map[S];x||(x=s.map[S]={coordSysId:w.id,coordSysIndex:w.componentIndex,coordSysType:w.type,coordSysMainType:w.mainType,dataByAxis:[]},s.list.push(x)),x.dataByAxis.push({axisDim:d.dim,axisIndex:v.componentIndex,axisType:v.type,axisId:v.id,value:l,valueLabelOpt:{precision:m.get(["label","precision"]),formatter:m.get(["label","formatter"])},seriesDataIndices:c.slice()})}}function L$e(s,a,i){var l=i.axesInfo=[];ne(a,function(c,d){var v=c.axisPointerModel.option,m=s[d];m?(!c.useHandle&&(v.status="show"),v.value=m.value,v.seriesDataIndices=(m.payloadBatch||[]).slice()):!c.useHandle&&(v.status="hide"),v.status==="show"&&l.push({axisDim:c.axis.dim,axisIndex:c.axis.model.componentIndex,value:v.value})})}function M$e(s,a,i,l){if(WL(a)||!s.list.length){l({type:"hideTip"});return}var c=((s.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};l({type:"showTip",escapeConnect:!0,x:a[0],y:a[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:c.dataIndexInside,dataIndex:c.dataIndex,seriesIndex:c.seriesIndex,dataByCoordSys:s.list})}function D$e(s,a,i){var l=i.getZr(),c="axisPointerLastHighlights",d=Zle(l)[c]||{},v=Zle(l)[c]={};ne(s,function(S,x){var E=S.axisPointerModel.option;E.status==="show"&&S.triggerEmphasis&&ne(E.seriesDataIndices,function(M){var D=M.seriesIndex+" | "+M.dataIndex;v[D]=M})});var m=[],w=[];ne(d,function(S,x){!v[x]&&w.push(S)}),ne(v,function(S,x){!d[x]&&m.push(S)}),w.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:w}),m.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:m})}function R$e(s,a){for(var i=0;i<(s||[]).length;i++){var l=s[i];if(a.axis.dim===l.axisDim&&a.axis.model.componentIndex===l.axisIndex)return l}}function eue(s){var a=s.axis.model,i={},l=i.axisDim=s.axis.dim;return i.axisIndex=i[l+"AxisIndex"]=a.componentIndex,i.axisName=i[l+"AxisName"]=a.name,i.axisId=i[l+"AxisId"]=a.id,i}function WL(s){return!s||s[0]==null||isNaN(s[0])||s[1]==null||isNaN(s[1])}function $C(s){T0.registerAxisPointerClass("CartesianAxisPointer",g$e),s.registerComponentModel(y$e),s.registerComponentView(C$e),s.registerPreprocessor(function(a){if(a){(!a.axisPointer||a.axisPointer.length===0)&&(a.axisPointer={});var i=a.axisPointer.link;i&&!Qe(i)&&(a.axisPointer.link=[i])}}),s.registerProcessor(s.PRIORITY.PROCESSOR.STATISTIC,function(a,i){a.getComponent("axisPointer").coordSysAxesInfo=G7e(a,i)}),s.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},T$e)}function P$e(s){ui(Iae),ui($C)}var O$e=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.makeElOption=function(i,l,c,d,v){var m=c.axis;m.dim==="angle"&&(this.animationThreshold=Math.PI/18);var w=m.polar,S=w.getOtherAxis(m),x=S.getExtent(),E=m.dataToCoord(l),M=d.get("type");if(M&&M!=="none"){var D=I6(d),k=F$e[M](m,w,E,x);k.style=D,i.graphicKey=k.type,i.pointer=k}var Q=d.get(["label","margin"]),V=k$e(l,c,d,w,Q);Vle(i,c,d,v,V)},a}(E6);function k$e(s,a,i,l,c){var d=a.axis,v=d.dataToCoord(s),m=l.getAngleAxis().getExtent()[0];m=m/180*Math.PI;var w=l.getRadiusAxis().getExtent(),S,x,E;if(d.dim==="radius"){var M=gn();so(M,M,m),Ai(M,M,[l.cx,l.cy]),S=AA([v,-c],M);var D=a.getModel("axisLabel").get("rotate")||0,k=tf.innerTextLayout(m,D*Math.PI/180,-1);x=k.textAlign,E=k.textVerticalAlign}else{var Q=w[1];S=l.coordToPoint([Q+c,v]);var V=l.cx,$=l.cy;x=Math.abs(S[0]-V)/Q<.3?"center":S[0]>V?"left":"right",E=Math.abs(S[1]-$)/Q<.3?"middle":S[1]>$?"top":"bottom"}return{position:S,align:x,verticalAlign:E}}var F$e={line:function(s,a,i,l){return s.dim==="angle"?{type:"Line",shape:M6(a.coordToPoint([l[0],i]),a.coordToPoint([l[1],i]))}:{type:"Circle",shape:{cx:a.cx,cy:a.cy,r:i}}},shadow:function(s,a,i,l){var c=Math.max(1,s.getBandWidth()),d=Math.PI/180;return s.dim==="angle"?{type:"Sector",shape:qle(a.cx,a.cy,l[0],l[1],(-i-c/2)*d,(-i+c/2)*d)}:{type:"Sector",shape:qle(a.cx,a.cy,i-c/2,i+c/2,0,Math.PI*2)}}},N$e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.findAxisModel=function(i){var l,c=this.ecModel;return c.eachComponent(i,function(d){d.getCoordSysModel()===this&&(l=d)},this),l},a.type="polar",a.dependencies=["radiusAxis","angleAxis"],a.defaultOption={z:0,center:["50%","50%"],radius:"80%"},a}(li),R6=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ps).models[0]},a.type="polarAxis",a}(li);_e(R6,Cb);var U$e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.type="angleAxis",a}(R6),H$e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.type="radiusAxis",a}(R6),P6=function(s){o(a,s);function a(i,l){return s.call(this,"radius",i,l)||this}return a.prototype.pointToData=function(i,l){return this.polar.pointToData(i,l)[this.dim==="radius"?0:1]},a}(od);P6.prototype.dataToRadius=od.prototype.dataToCoord,P6.prototype.radiusToData=od.prototype.coordToData;var Q$e=Ri(),O6=function(s){o(a,s);function a(i,l){return s.call(this,"angle",i,l||[0,360])||this}return a.prototype.pointToData=function(i,l){return this.polar.pointToData(i,l)[this.dim==="radius"?0:1]},a.prototype.calculateCategoryInterval=function(){var i=this,l=i.getLabelModel(),c=i.scale,d=c.getExtent(),v=c.count();if(d[1]-d[0]<1)return 0;var m=d[0],w=i.dataToCoord(m+1)-i.dataToCoord(m),S=Math.abs(w),x=Ot(m==null?"":m+"",l.getFont(),"center","top"),E=Math.max(x.height,7),M=E/S;isNaN(M)&&(M=1/0);var D=Math.max(0,Math.floor(M)),k=Q$e(i.model),Q=k.lastAutoInterval,V=k.lastTickCount;return Q!=null&&V!=null&&Math.abs(Q-D)<=1&&Math.abs(V-v)<=1&&Q>D?D=Q:(k.lastTickCount=v,k.lastAutoInterval=D),D},a}(od);O6.prototype.dataToAngle=od.prototype.dataToCoord,O6.prototype.angleToData=od.prototype.coordToData;var tue=["radius","angle"],V$e=function(){function s(a){this.dimensions=tue,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new P6,this._angleAxis=new O6,this.axisPointerEnabled=!0,this.name=a||"",this._radiusAxis.polar=this._angleAxis.polar=this}return s.prototype.containPoint=function(a){var i=this.pointToCoord(a);return this._radiusAxis.contain(i[0])&&this._angleAxis.contain(i[1])},s.prototype.containData=function(a){return this._radiusAxis.containData(a[0])&&this._angleAxis.containData(a[1])},s.prototype.getAxis=function(a){var i="_"+a+"Axis";return this[i]},s.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},s.prototype.getAxesByScale=function(a){var i=[],l=this._angleAxis,c=this._radiusAxis;return l.scale.type===a&&i.push(l),c.scale.type===a&&i.push(c),i},s.prototype.getAngleAxis=function(){return this._angleAxis},s.prototype.getRadiusAxis=function(){return this._radiusAxis},s.prototype.getOtherAxis=function(a){var i=this._angleAxis;return a===i?this._radiusAxis:i},s.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},s.prototype.getTooltipAxes=function(a){var i=a!=null&&a!=="auto"?this.getAxis(a):this.getBaseAxis();return{baseAxes:[i],otherAxes:[this.getOtherAxis(i)]}},s.prototype.dataToPoint=function(a,i){return this.coordToPoint([this._radiusAxis.dataToRadius(a[0],i),this._angleAxis.dataToAngle(a[1],i)])},s.prototype.pointToData=function(a,i){var l=this.pointToCoord(a);return[this._radiusAxis.radiusToData(l[0],i),this._angleAxis.angleToData(l[1],i)]},s.prototype.pointToCoord=function(a){var i=a[0]-this.cx,l=a[1]-this.cy,c=this.getAngleAxis(),d=c.getExtent(),v=Math.min(d[0],d[1]),m=Math.max(d[0],d[1]);c.inverse?v=m-360:m=v+360;var w=Math.sqrt(i*i+l*l);i/=w,l/=w;for(var S=Math.atan2(-l,i)/Math.PI*180,x=S<v?1:-1;S<v||S>m;)S+=x*360;return[w,S]},s.prototype.coordToPoint=function(a){var i=a[0],l=a[1]/180*Math.PI,c=Math.cos(l)*i+this.cx,d=-Math.sin(l)*i+this.cy;return[c,d]},s.prototype.getArea=function(){var a=this.getAngleAxis(),i=this.getRadiusAxis(),l=i.getExtent().slice();l[0]>l[1]&&l.reverse();var c=a.getExtent(),d=Math.PI/180,v=1e-4;return{cx:this.cx,cy:this.cy,r0:l[0],r:l[1],startAngle:-c[0]*d,endAngle:-c[1]*d,clockwise:a.inverse,contain:function(m,w){var S=m-this.cx,x=w-this.cy,E=S*S+x*x,M=this.r,D=this.r0;return M!==D&&E-v<=M*M&&E+v>=D*D}}},s.prototype.convertToPixel=function(a,i,l){var c=rue(i);return c===this?this.dataToPoint(l):null},s.prototype.convertFromPixel=function(a,i,l){var c=rue(i);return c===this?this.pointToData(l):null},s}();function rue(s){var a=s.seriesModel,i=s.polarModel;return i&&i.coordinateSystem||a&&a.coordinateSystem}function z$e(s,a,i){var l=a.get("center"),c=i.getWidth(),d=i.getHeight();s.cx=vr(l[0],c),s.cy=vr(l[1],d);var v=s.getRadiusAxis(),m=Math.min(c,d)/2,w=a.get("radius");w==null?w=[0,"100%"]:Qe(w)||(w=[0,w]);var S=[vr(w[0],m),vr(w[1],m)];v.inverse?v.setExtent(S[1],S[0]):v.setExtent(S[0],S[1])}function G$e(s,a){var i=this,l=i.getAngleAxis(),c=i.getRadiusAxis();if(l.scale.setExtent(1/0,-1/0),c.scale.setExtent(1/0,-1/0),s.eachSeries(function(m){if(m.coordinateSystem===i){var w=m.getData();ne(sL(w,"radius"),function(S){c.scale.unionExtentFromData(w,S)}),ne(sL(w,"angle"),function(S){l.scale.unionExtentFromData(w,S)})}}),p0(l.scale,l.model),p0(c.scale,c.model),l.type==="category"&&!l.onBand){var d=l.getExtent(),v=360/l.scale.count();l.inverse?d[1]+=v:d[1]-=v,l.setExtent(d[0],d[1])}}function j$e(s){return s.mainType==="angleAxis"}function nue(s,a){var i;if(s.type=a.get("type"),s.scale=gC(a),s.onBand=a.get("boundaryGap")&&s.type==="category",s.inverse=a.get("inverse"),j$e(a)){s.inverse=s.inverse!==a.get("clockwise");var l=a.get("startAngle"),c=(i=a.get("endAngle"))!==null&&i!==void 0?i:l+(s.inverse?-360:360);s.setExtent(l,c)}a.axis=s,s.model=a}var q$e={dimensions:tue,create:function(s,a){var i=[];return s.eachComponent("polar",function(l,c){var d=new V$e(c+"");d.update=G$e;var v=d.getRadiusAxis(),m=d.getAngleAxis(),w=l.findAxisModel("radiusAxis"),S=l.findAxisModel("angleAxis");nue(v,w),nue(m,S),z$e(d,l,a),i.push(d),l.coordinateSystem=d,d.model=l}),s.eachSeries(function(l){if(l.get("coordinateSystem")==="polar"){var c=l.getReferringComponents("polar",ps).models[0];if(!c)throw new Error('Polar "'+Bt(l.get("polarIndex"),l.get("polarId"),0)+'" not found');l.coordinateSystem=c.coordinateSystem}}),i}},W$e=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function $L(s,a,i){a[1]>a[0]&&(a=a.slice().reverse());var l=s.coordToPoint([a[0],i]),c=s.coordToPoint([a[1],i]);return{x1:l[0],y1:l[1],x2:c[0],y2:c[1]}}function KL(s){var a=s.getRadiusAxis();return a.inverse?0:1}function iue(s){var a=s[0],i=s[s.length-1];a&&i&&Math.abs(Math.abs(a.coord-i.coord)-360)<1e-4&&s.pop()}var $$e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.axisPointerClass="PolarAxisPointer",i}return a.prototype.render=function(i,l){if(this.group.removeAll(),!!i.get("show")){var c=i.axis,d=c.polar,v=d.getRadiusAxis().getExtent(),m=c.getTicksCoords(),w=c.getMinorTicksCoords(),S=xe(c.getViewLabels(),function(x){x=ae(x);var E=c.scale,M=E.type==="ordinal"?E.getRawOrdinalNumber(x.tickValue):x.tickValue;return x.coord=c.dataToCoord(M),x});iue(S),iue(m),ne(W$e,function(x){i.get([x,"show"])&&(!c.scale.isBlank()||x==="axisLine")&&K$e[x](this.group,i,d,m,w,v,S)},this)}},a.type="angleAxis",a}(T0),K$e={axisLine:function(s,a,i,l,c,d){var v=a.getModel(["axisLine","lineStyle"]),m=i.getAngleAxis(),w=Math.PI/180,S=m.getExtent(),x=KL(i),E=x?0:1,M,D=Math.abs(S[1]-S[0])===360?"Circle":"Arc";d[E]===0?M=new t0[D]({shape:{cx:i.cx,cy:i.cy,r:d[x],startAngle:-S[0]*w,endAngle:-S[1]*w,clockwise:m.inverse},style:v.getLineStyle(),z2:1,silent:!0}):M=new Yw({shape:{cx:i.cx,cy:i.cy,r:d[x],r0:d[E]},style:v.getLineStyle(),z2:1,silent:!0}),M.style.fill=null,s.add(M)},axisTick:function(s,a,i,l,c,d){var v=a.getModel("axisTick"),m=(v.get("inside")?-1:1)*v.get("length"),w=d[KL(i)],S=xe(l,function(x){return new Ll({shape:$L(i,[w,w+m],x.coord)})});s.add(vh(S,{style:he(v.getModel("lineStyle").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})}))},minorTick:function(s,a,i,l,c,d){if(c.length){for(var v=a.getModel("axisTick"),m=a.getModel("minorTick"),w=(v.get("inside")?-1:1)*m.get("length"),S=d[KL(i)],x=[],E=0;E<c.length;E++)for(var M=0;M<c[E].length;M++)x.push(new Ll({shape:$L(i,[S,S+w],c[E][M].coord)}));s.add(vh(x,{style:he(m.getModel("lineStyle").getLineStyle(),he(v.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(s,a,i,l,c,d,v){var m=a.getCategories(!0),w=a.getModel("axisLabel"),S=w.get("margin"),x=a.get("triggerEvent");ne(v,function(E,M){var D=w,k=E.tickValue,Q=d[KL(i)],V=i.coordToPoint([Q+S,E.coord]),$=i.cx,Z=i.cy,ee=Math.abs(V[0]-$)/Q<.3?"center":V[0]>$?"left":"right",fe=Math.abs(V[1]-Z)/Q<.3?"middle":V[1]>Z?"top":"bottom";if(m&&m[k]){var ve=m[k];Pe(ve)&&ve.textStyle&&(D=new ta(ve.textStyle,w,w.ecModel))}var ge=new be({silent:tf.isLabelSilent(a),style:Xa(D,{x:V[0],y:V[1],fill:D.getTextColor()||a.get(["axisLine","lineStyle","color"]),text:E.formattedLabel,align:ee,verticalAlign:fe})});if(s.add(ge),x){var Se=tf.makeAxisEventDataBase(a);Se.targetType="axisLabel",Se.value=E.rawLabel,bt(ge).eventData=Se}},this)},splitLine:function(s,a,i,l,c,d){var v=a.getModel("splitLine"),m=v.getModel("lineStyle"),w=m.get("color"),S=0;w=w instanceof Array?w:[w];for(var x=[],E=0;E<l.length;E++){var M=S++%w.length;x[M]=x[M]||[],x[M].push(new Ll({shape:$L(i,d,l[E].coord)}))}for(var E=0;E<x.length;E++)s.add(vh(x[E],{style:he({stroke:w[E%w.length]},m.getLineStyle()),silent:!0,z:a.get("z")}))},minorSplitLine:function(s,a,i,l,c,d){if(c.length){for(var v=a.getModel("minorSplitLine"),m=v.getModel("lineStyle"),w=[],S=0;S<c.length;S++)for(var x=0;x<c[S].length;x++)w.push(new Ll({shape:$L(i,d,c[S][x].coord)}));s.add(vh(w,{style:m.getLineStyle(),silent:!0,z:a.get("z")}))}},splitArea:function(s,a,i,l,c,d){if(l.length){var v=a.getModel("splitArea"),m=v.getModel("areaStyle"),w=m.get("color"),S=0;w=w instanceof Array?w:[w];for(var x=[],E=Math.PI/180,M=-l[0].coord*E,D=Math.min(d[0],d[1]),k=Math.max(d[0],d[1]),Q=a.get("clockwise"),V=1,$=l.length;V<=$;V++){var Z=V===$?l[0].coord:l[V].coord,ee=S++%w.length;x[ee]=x[ee]||[],x[ee].push(new hc({shape:{cx:i.cx,cy:i.cy,r0:D,r:k,startAngle:M,endAngle:-Z*E,clockwise:Q},silent:!0})),M=-Z*E}for(var V=0;V<x.length;V++)s.add(vh(x[V],{style:he({fill:w[V%w.length]},m.getAreaStyle()),silent:!0}))}}},Y$e=["axisLine","axisTickLabel","axisName"],X$e=["splitLine","splitArea","minorSplitLine"],Z$e=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.axisPointerClass="PolarAxisPointer",i}return a.prototype.render=function(i,l){if(this.group.removeAll(),!!i.get("show")){var c=this._axisGroup,d=this._axisGroup=new Lr;this.group.add(d);var v=i.axis,m=v.polar,w=m.getAngleAxis(),S=v.getTicksCoords(),x=v.getMinorTicksCoords(),E=w.getExtent()[0],M=v.getExtent(),D=eKe(m,i,E),k=new tf(i,D);ne(Y$e,k.add,k),d.add(k.getGroup()),jx(c,d,i),ne(X$e,function(Q){i.get([Q,"show"])&&!v.scale.isBlank()&&J$e[Q](this.group,i,m,E,M,S,x)},this)}},a.type="radiusAxis",a}(T0),J$e={splitLine:function(s,a,i,l,c,d){var v=a.getModel("splitLine"),m=v.getModel("lineStyle"),w=m.get("color"),S=0,x=i.getAngleAxis(),E=Math.PI/180,M=x.getExtent(),D=Math.abs(M[1]-M[0])===360?"Circle":"Arc";w=w instanceof Array?w:[w];for(var k=[],Q=0;Q<d.length;Q++){var V=S++%w.length;k[V]=k[V]||[],k[V].push(new t0[D]({shape:{cx:i.cx,cy:i.cy,r:Math.max(d[Q].coord,0),startAngle:-M[0]*E,endAngle:-M[1]*E,clockwise:x.inverse}}))}for(var Q=0;Q<k.length;Q++)s.add(vh(k[Q],{style:he({stroke:w[Q%w.length],fill:null},m.getLineStyle()),silent:!0}))},minorSplitLine:function(s,a,i,l,c,d,v){if(v.length){for(var m=a.getModel("minorSplitLine"),w=m.getModel("lineStyle"),S=[],x=0;x<v.length;x++)for(var E=0;E<v[x].length;E++)S.push(new yv({shape:{cx:i.cx,cy:i.cy,r:v[x][E].coord}}));s.add(vh(S,{style:he({fill:null},w.getLineStyle()),silent:!0}))}},splitArea:function(s,a,i,l,c,d){if(d.length){var v=a.getModel("splitArea"),m=v.getModel("areaStyle"),w=m.get("color"),S=0;w=w instanceof Array?w:[w];for(var x=[],E=d[0].coord,M=1;M<d.length;M++){var D=S++%w.length;x[D]=x[D]||[],x[D].push(new hc({shape:{cx:i.cx,cy:i.cy,r0:E,r:d[M].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),E=d[M].coord}for(var M=0;M<x.length;M++)s.add(vh(x[M],{style:he({fill:w[M%w.length]},m.getAreaStyle()),silent:!0}))}}};function eKe(s,a,i){return{position:[s.cx,s.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:a.getModel("axisLabel").get("rotate"),z2:1}}function aue(s){return s.get("stack")||"__ec_stack_"+s.seriesIndex}function oue(s,a){return a.dim+s.model.componentIndex}function tKe(s,a,i){var l={},c=rKe(ze(a.getSeriesByType(s),function(d){return!a.isSeriesFiltered(d)&&d.coordinateSystem&&d.coordinateSystem.type==="polar"}));a.eachSeriesByType(s,function(d){if(d.coordinateSystem.type==="polar"){var v=d.getData(),m=d.coordinateSystem,w=m.getBaseAxis(),S=oue(m,w),x=aue(d),E=c[S][x],M=E.offset,D=E.width,k=m.getOtherAxis(w),Q=d.coordinateSystem.cx,V=d.coordinateSystem.cy,$=d.get("barMinHeight")||0,Z=d.get("barMinAngle")||0;l[x]=l[x]||[];for(var ee=v.mapDimension(k.dim),fe=v.mapDimension(w.dim),ve=Qp(v,ee),ge=w.dim!=="radius"||!d.get("roundCap",!0),Se=k.model,Ee=Se.get("startValue"),Ie=k.dataToCoord(Ee||0),Le=0,Fe=v.count();Le<Fe;Le++){var Je=v.get(ee,Le),rt=v.get(fe,Le),at=Je>=0?"p":"n",dt=Ie;ve&&(l[x][rt]||(l[x][rt]={p:Ie,n:Ie}),dt=l[x][rt][at]);var wt=void 0,zt=void 0,Ut=void 0,Yt=void 0;if(k.dim==="radius"){var ur=k.dataToCoord(Je)-Ie,wr=w.dataToCoord(rt);Math.abs(ur)<$&&(ur=(ur<0?-1:1)*$),wt=dt,zt=dt+ur,Ut=wr-M,Yt=Ut-D,ve&&(l[x][rt][at]=zt)}else{var Or=k.dataToCoord(Je,ge)-Ie,vn=w.dataToCoord(rt);Math.abs(Or)<Z&&(Or=(Or<0?-1:1)*Z),wt=vn+M,zt=wt+D,Ut=dt,Yt=dt+Or,ve&&(l[x][rt][at]=Yt)}v.setItemLayout(Le,{cx:Q,cy:V,r0:wt,r:zt,startAngle:-Ut*Math.PI/180,endAngle:-Yt*Math.PI/180,clockwise:Ut>=Yt})}}})}function rKe(s){var a={};ne(s,function(l,c){var d=l.getData(),v=l.coordinateSystem,m=v.getBaseAxis(),w=oue(v,m),S=m.getExtent(),x=m.type==="category"?m.getBandWidth():Math.abs(S[1]-S[0])/d.count(),E=a[w]||{bandWidth:x,remainedWidth:x,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},M=E.stacks;a[w]=E;var D=aue(l);M[D]||E.autoWidthCount++,M[D]=M[D]||{width:0,maxWidth:0};var k=vr(l.get("barWidth"),x),Q=vr(l.get("barMaxWidth"),x),V=l.get("barGap"),$=l.get("barCategoryGap");k&&!M[D].width&&(k=Math.min(E.remainedWidth,k),M[D].width=k,E.remainedWidth-=k),Q&&(M[D].maxWidth=Q),V!=null&&(E.gap=V),$!=null&&(E.categoryGap=$)});var i={};return ne(a,function(l,c){i[c]={};var d=l.stacks,v=l.bandWidth,m=vr(l.categoryGap,v),w=vr(l.gap,1),S=l.remainedWidth,x=l.autoWidthCount,E=(S-m)/(x+(x-1)*w);E=Math.max(E,0),ne(d,function(Q,V){var $=Q.maxWidth;$&&$<E&&($=Math.min($,S),Q.width&&($=Math.min($,Q.width)),S-=$,Q.width=$,x--)}),E=(S-m)/(x+(x-1)*w),E=Math.max(E,0);var M=0,D;ne(d,function(Q,V){Q.width||(Q.width=E),D=Q,M+=Q.width*(1+w)}),D&&(M-=D.width*w);var k=-M/2;ne(d,function(Q,V){i[c][V]=i[c][V]||{offset:k,width:Q.width},k+=Q.width*(1+w)})}),i}var nKe={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},iKe={splitNumber:5},aKe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.type="polar",a}(ho);function oKe(s){ui($C),T0.registerAxisPointerClass("PolarAxisPointer",O$e),s.registerCoordinateSystem("polar",q$e),s.registerComponentModel(N$e),s.registerComponentView(aKe),Ib(s,"angle",U$e,nKe),Ib(s,"radius",H$e,iKe),s.registerComponentView($$e),s.registerComponentView(Z$e),s.registerLayout(ue(tKe,"bar"))}function k6(s,a){a=a||{};var i=s.coordinateSystem,l=s.axis,c={},d=l.position,v=l.orient,m=i.getRect(),w=[m.x,m.x+m.width,m.y,m.y+m.height],S={horizontal:{top:w[2],bottom:w[3]},vertical:{left:w[0],right:w[1]}};c.position=[v==="vertical"?S.vertical[d]:w[0],v==="horizontal"?S.horizontal[d]:w[3]];var x={horizontal:0,vertical:1};c.rotation=Math.PI/2*x[v];var E={top:-1,bottom:1,right:1,left:-1};c.labelDirection=c.tickDirection=c.nameDirection=E[d],s.get(["axisTick","inside"])&&(c.tickDirection=-c.tickDirection),Bt(a.labelInside,s.get(["axisLabel","inside"]))&&(c.labelDirection=-c.labelDirection);var M=a.rotate;return M==null&&(M=s.get(["axisLabel","rotate"])),c.labelRotation=d==="top"?-M:M,c.z2=1,c}var sKe=["axisLine","axisTickLabel","axisName"],lKe=["splitArea","splitLine"],uKe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.axisPointerClass="SingleAxisPointer",i}return a.prototype.render=function(i,l,c,d){var v=this.group;v.removeAll();var m=this._axisGroup;this._axisGroup=new Lr;var w=k6(i),S=new tf(i,w);ne(sKe,S.add,S),v.add(this._axisGroup),v.add(S.getGroup()),ne(lKe,function(x){i.get([x,"show"])&&cKe[x](this,this.group,this._axisGroup,i)},this),jx(m,this._axisGroup,i),s.prototype.render.call(this,i,l,c,d)},a.prototype.remove=function(){Cae(this)},a.type="singleAxis",a}(T0),cKe={splitLine:function(s,a,i,l){var c=l.axis;if(!c.scale.isBlank()){var d=l.getModel("splitLine"),v=d.getModel("lineStyle"),m=v.get("color");m=m instanceof Array?m:[m];for(var w=v.get("width"),S=l.coordinateSystem.getRect(),x=c.isHorizontal(),E=[],M=0,D=c.getTicksCoords({tickModel:d}),k=[],Q=[],V=0;V<D.length;++V){var $=c.toGlobalCoord(D[V].coord);x?(k[0]=$,k[1]=S.y,Q[0]=$,Q[1]=S.y+S.height):(k[0]=S.x,k[1]=$,Q[0]=S.x+S.width,Q[1]=$);var Z=new Ll({shape:{x1:k[0],y1:k[1],x2:Q[0],y2:Q[1]},silent:!0});tb(Z.shape,w);var ee=M++%m.length;E[ee]=E[ee]||[],E[ee].push(Z)}for(var fe=v.getLineStyle(["color"]),V=0;V<E.length;++V)a.add(vh(E[V],{style:he({stroke:m[V%m.length]},fe),silent:!0}))}},splitArea:function(s,a,i,l){xae(s,i,l,l)}},YL=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.getCoordSysModel=function(){return this},a.type="singleAxis",a.layoutMode="box",a.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},a}(li);_e(YL,Cb.prototype);var fKe=function(s){o(a,s);function a(i,l,c,d,v){var m=s.call(this,i,l,c)||this;return m.type=d||"value",m.position=v||"bottom",m}return a.prototype.isHorizontal=function(){var i=this.position;return i==="top"||i==="bottom"},a.prototype.pointToData=function(i,l){return this.coordinateSystem.pointToData(i)[0]},a}(od),sue=["single"],hKe=function(){function s(a,i,l){this.type="single",this.dimension="single",this.dimensions=sue,this.axisPointerEnabled=!0,this.model=a,this._init(a,i,l)}return s.prototype._init=function(a,i,l){var c=this.dimension,d=new fKe(c,gC(a),[0,0],a.get("type"),a.get("position")),v=d.type==="category";d.onBand=v&&a.get("boundaryGap"),d.inverse=a.get("inverse"),d.orient=a.get("orient"),a.axis=d,d.model=a,d.coordinateSystem=this,this._axis=d},s.prototype.update=function(a,i){a.eachSeries(function(l){if(l.coordinateSystem===this){var c=l.getData();ne(c.mapDimensionsAll(this.dimension),function(d){this._axis.scale.unionExtentFromData(c,d)},this),p0(this._axis.scale,this._axis.model)}},this)},s.prototype.resize=function(a,i){this._rect=ol({left:a.get("left"),top:a.get("top"),right:a.get("right"),bottom:a.get("bottom"),width:a.get("width"),height:a.get("height")},{width:i.getWidth(),height:i.getHeight()}),this._adjustAxis()},s.prototype.getRect=function(){return this._rect},s.prototype._adjustAxis=function(){var a=this._rect,i=this._axis,l=i.isHorizontal(),c=l?[0,a.width]:[0,a.height],d=i.inverse?1:0;i.setExtent(c[d],c[1-d]),this._updateAxisTransform(i,l?a.x:a.y)},s.prototype._updateAxisTransform=function(a,i){var l=a.getExtent(),c=l[0]+l[1],d=a.isHorizontal();a.toGlobalCoord=d?function(v){return v+i}:function(v){return c-v+i},a.toLocalCoord=d?function(v){return v-i}:function(v){return c-v+i}},s.prototype.getAxis=function(){return this._axis},s.prototype.getBaseAxis=function(){return this._axis},s.prototype.getAxes=function(){return[this._axis]},s.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},s.prototype.containPoint=function(a){var i=this.getRect(),l=this.getAxis(),c=l.orient;return c==="horizontal"?l.contain(l.toLocalCoord(a[0]))&&a[1]>=i.y&&a[1]<=i.y+i.height:l.contain(l.toLocalCoord(a[1]))&&a[0]>=i.y&&a[0]<=i.y+i.height},s.prototype.pointToData=function(a){var i=this.getAxis();return[i.coordToData(i.toLocalCoord(a[i.orient==="horizontal"?0:1]))]},s.prototype.dataToPoint=function(a){var i=this.getAxis(),l=this.getRect(),c=[],d=i.orient==="horizontal"?0:1;return a instanceof Array&&(a=a[0]),c[d]=i.toGlobalCoord(i.dataToCoord(+a)),c[1-d]=d===0?l.y+l.height/2:l.x+l.width/2,c},s.prototype.convertToPixel=function(a,i,l){var c=lue(i);return c===this?this.dataToPoint(l):null},s.prototype.convertFromPixel=function(a,i,l){var c=lue(i);return c===this?this.pointToData(l):null},s}();function lue(s){var a=s.seriesModel,i=s.singleAxisModel;return i&&i.coordinateSystem||a&&a.coordinateSystem}function dKe(s,a){var i=[];return s.eachComponent("singleAxis",function(l,c){var d=new hKe(l,s,a);d.name="single_"+c,d.resize(l,a),l.coordinateSystem=d,i.push(d)}),s.eachSeries(function(l){if(l.get("coordinateSystem")==="singleAxis"){var c=l.getReferringComponents("singleAxis",ps).models[0];l.coordinateSystem=c&&c.coordinateSystem}}),i}var AKe={create:dKe,dimensions:sue},uue=["x","y"],vKe=["width","height"],pKe=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.makeElOption=function(i,l,c,d,v){var m=c.axis,w=m.coordinateSystem,S=F6(w,1-XL(m)),x=w.dataToPoint(l)[0],E=d.get("type");if(E&&E!=="none"){var M=I6(d),D=gKe[E](m,x,S);D.style=M,i.graphicKey=D.type,i.pointer=D}var k=k6(c);Gle(l,i,k,c,d,v)},a.prototype.getHandleTransform=function(i,l,c){var d=k6(l,{labelInside:!1});d.labelMargin=c.get(["handle","margin"]);var v=L6(l.axis,i,d);return{x:v[0],y:v[1],rotation:d.rotation+(d.labelDirection<0?Math.PI:0)}},a.prototype.updateHandleTransform=function(i,l,c,d){var v=c.axis,m=v.coordinateSystem,w=XL(v),S=F6(m,w),x=[i.x,i.y];x[w]+=l[w],x[w]=Math.min(S[1],x[w]),x[w]=Math.max(S[0],x[w]);var E=F6(m,1-w),M=(E[1]+E[0])/2,D=[M,M];return D[w]=x[w],{x:x[0],y:x[1],rotation:i.rotation,cursorPoint:D,tooltipOption:{verticalAlign:"middle"}}},a}(E6),gKe={line:function(s,a,i){var l=M6([a,i[0]],[a,i[1]],XL(s));return{type:"Line",subPixelOptimize:!0,shape:l}},shadow:function(s,a,i){var l=s.getBandWidth(),c=i[1]-i[0];return{type:"Rect",shape:jle([a-l/2,i[0]],[l,c],XL(s))}}};function XL(s){return s.isHorizontal()?0:1}function F6(s,a){var i=s.getRect();return[i[uue[a]],i[uue[a]]+i[vKe[a]]]}var mKe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.type="single",a}(ho);function yKe(s){ui($C),T0.registerAxisPointerClass("SingleAxisPointer",pKe),s.registerComponentView(mKe),s.registerComponentView(uKe),s.registerComponentModel(YL),Ib(s,"single",YL,YL.defaultOption),s.registerCoordinateSystem("single",AKe)}var wKe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.init=function(i,l,c){var d=lb(i);s.prototype.init.apply(this,arguments),cue(i,d)},a.prototype.mergeOption=function(i){s.prototype.mergeOption.apply(this,arguments),cue(this.option,i)},a.prototype.getCellSize=function(){return this.option.cellSize},a.type="calendar",a.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}},a}(li);function cue(s,a){var i=s.cellSize,l;Qe(i)?l=i:l=s.cellSize=[i,i],l.length===1&&(l[1]=l[0]);var c=xe([0,1],function(d){return _6e(a,d)&&(l[d]="auto"),l[d]!=null&&l[d]!=="auto"});lm(s,a,{type:"box",ignoreSize:c})}var bKe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c){var d=this.group;d.removeAll();var v=i.coordinateSystem,m=v.getRangeInfo(),w=v.getOrient(),S=l.getLocaleModel();this._renderDayRect(i,m,d),this._renderLines(i,m,w,d),this._renderYearText(i,m,w,d),this._renderMonthText(i,S,w,d),this._renderWeekText(i,S,m,w,d)},a.prototype._renderDayRect=function(i,l,c){for(var d=i.coordinateSystem,v=i.getModel("itemStyle").getItemStyle(),m=d.getCellWidth(),w=d.getCellHeight(),S=l.start.time;S<=l.end.time;S=d.getNextNDay(S,1).time){var x=d.dataToRect([S],!1).tl,E=new R({shape:{x:x[0],y:x[1],width:m,height:w},cursor:"default",style:v});c.add(E)}},a.prototype._renderLines=function(i,l,c,d){var v=this,m=i.coordinateSystem,w=i.getModel(["splitLine","lineStyle"]).getLineStyle(),S=i.get(["splitLine","show"]),x=w.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var E=l.start,M=0;E.time<=l.end.time;M++){k(E.formatedDate),M===0&&(E=m.getDateInfo(l.start.y+"-"+l.start.m));var D=E.date;D.setMonth(D.getMonth()+1),E=m.getDateInfo(D)}k(m.getNextNDay(l.end.time,1).formatedDate);function k(Q){v._firstDayOfMonth.push(m.getDateInfo(Q)),v._firstDayPoints.push(m.dataToRect([Q],!1).tl);var V=v._getLinePointsOfOneWeek(i,Q,c);v._tlpoints.push(V[0]),v._blpoints.push(V[V.length-1]),S&&v._drawSplitline(V,w,d)}S&&this._drawSplitline(v._getEdgesPoints(v._tlpoints,x,c),w,d),S&&this._drawSplitline(v._getEdgesPoints(v._blpoints,x,c),w,d)},a.prototype._getEdgesPoints=function(i,l,c){var d=[i[0].slice(),i[i.length-1].slice()],v=c==="horizontal"?0:1;return d[0][v]=d[0][v]-l/2,d[1][v]=d[1][v]+l/2,d},a.prototype._drawSplitline=function(i,l,c){var d=new Ac({z2:20,shape:{points:i},style:l});c.add(d)},a.prototype._getLinePointsOfOneWeek=function(i,l,c){for(var d=i.coordinateSystem,v=d.getDateInfo(l),m=[],w=0;w<7;w++){var S=d.getNextNDay(v.time,w),x=d.dataToRect([S.time],!1);m[2*S.day]=x.tl,m[2*S.day+1]=x[c==="horizontal"?"bl":"tr"]}return m},a.prototype._formatterLabel=function(i,l){return Re(i)&&i?m6e(i,l):qe(i)?i(l):l.nameMap},a.prototype._yearTextPositionControl=function(i,l,c,d,v){var m=l[0],w=l[1],S=["center","bottom"];d==="bottom"?(w+=v,S=["center","top"]):d==="left"?m-=v:d==="right"?(m+=v,S=["center","top"]):w-=v;var x=0;return(d==="left"||d==="right")&&(x=Math.PI/2),{rotation:x,x:m,y:w,style:{align:S[0],verticalAlign:S[1]}}},a.prototype._renderYearText=function(i,l,c,d){var v=i.getModel("yearLabel");if(v.get("show")){var m=v.get("margin"),w=v.get("position");w||(w=c!=="horizontal"?"top":"left");var S=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],x=(S[0][0]+S[1][0])/2,E=(S[0][1]+S[1][1])/2,M=c==="horizontal"?0:1,D={top:[x,S[M][1]],bottom:[x,S[1-M][1]],left:[S[1-M][0],E],right:[S[M][0],E]},k=l.start.y;+l.end.y>+l.start.y&&(k=k+"-"+l.end.y);var Q=v.get("formatter"),V={start:l.start.y,end:l.end.y,nameMap:k},$=this._formatterLabel(Q,V),Z=new be({z2:30,style:Xa(v,{text:$}),silent:v.get("silent")});Z.attr(this._yearTextPositionControl(Z,D[w],c,w,m)),d.add(Z)}},a.prototype._monthTextPositionControl=function(i,l,c,d,v){var m="left",w="top",S=i[0],x=i[1];return c==="horizontal"?(x=x+v,l&&(m="center"),d==="start"&&(w="bottom")):(S=S+v,l&&(w="middle"),d==="start"&&(m="right")),{x:S,y:x,align:m,verticalAlign:w}},a.prototype._renderMonthText=function(i,l,c,d){var v=i.getModel("monthLabel");if(v.get("show")){var m=v.get("nameMap"),w=v.get("margin"),S=v.get("position"),x=v.get("align"),E=[this._tlpoints,this._blpoints];(!m||Re(m))&&(m&&(l=KF(m)||l),m=l.get(["time","monthAbbr"])||[]);var M=S==="start"?0:1,D=c==="horizontal"?0:1;w=S==="start"?-w:w;for(var k=x==="center",Q=v.get("silent"),V=0;V<E[M].length-1;V++){var $=E[M][V].slice(),Z=this._firstDayOfMonth[V];if(k){var ee=this._firstDayPoints[V];$[D]=(ee[D]+E[0][V+1][D])/2}var fe=v.get("formatter"),ve=m[+Z.m-1],ge={yyyy:Z.y,yy:(Z.y+"").slice(2),MM:Z.m,M:+Z.m,nameMap:ve},Se=this._formatterLabel(fe,ge),Ee=new be({z2:30,style:ie(Xa(v,{text:Se}),this._monthTextPositionControl($,k,c,S,w)),silent:Q});d.add(Ee)}}},a.prototype._weekTextPositionControl=function(i,l,c,d,v){var m="center",w="middle",S=i[0],x=i[1],E=c==="start";return l==="horizontal"?(S=S+d+(E?1:-1)*v[0]/2,m=E?"right":"left"):(x=x+d+(E?1:-1)*v[1]/2,w=E?"bottom":"top"),{x:S,y:x,align:m,verticalAlign:w}},a.prototype._renderWeekText=function(i,l,c,d,v){var m=i.getModel("dayLabel");if(m.get("show")){var w=i.coordinateSystem,S=m.get("position"),x=m.get("nameMap"),E=m.get("margin"),M=w.getFirstDayOfWeek();if(!x||Re(x)){x&&(l=KF(x)||l);var D=l.get(["time","dayOfWeekShort"]);x=D||xe(l.get(["time","dayOfWeekAbbr"]),function(ge){return ge[0]})}var k=w.getNextNDay(c.end.time,7-c.lweek).time,Q=[w.getCellWidth(),w.getCellHeight()];E=vr(E,Math.min(Q[1],Q[0])),S==="start"&&(k=w.getNextNDay(c.start.time,-(7+c.fweek)).time,E=-E);for(var V=m.get("silent"),$=0;$<7;$++){var Z=w.getNextNDay(k,$),ee=w.dataToRect([Z.time],!1).center,fe=$;fe=Math.abs(($+M)%7);var ve=new be({z2:30,style:ie(Xa(m,{text:x[fe]}),this._weekTextPositionControl(ee,d,S,E,Q)),silent:V});v.add(ve)}}},a.type="calendar",a}(ho),N6=864e5,_Ke=function(){function s(a,i,l){this.type="calendar",this.dimensions=s.dimensions,this.getDimensionsInfo=s.getDimensionsInfo,this._model=a}return s.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},s.prototype.getRangeInfo=function(){return this._rangeInfo},s.prototype.getModel=function(){return this._model},s.prototype.getRect=function(){return this._rect},s.prototype.getCellWidth=function(){return this._sw},s.prototype.getCellHeight=function(){return this._sh},s.prototype.getOrient=function(){return this._orient},s.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},s.prototype.getDateInfo=function(a){a=Na(a);var i=a.getFullYear(),l=a.getMonth()+1,c=l<10?"0"+l:""+l,d=a.getDate(),v=d<10?"0"+d:""+d,m=a.getDay();return m=Math.abs((m+7-this.getFirstDayOfWeek())%7),{y:i+"",m:c,d:v,day:m,time:a.getTime(),formatedDate:i+"-"+c+"-"+v,date:a}},s.prototype.getNextNDay=function(a,i){return i=i||0,i===0?this.getDateInfo(a):(a=new Date(this.getDateInfo(a).time),a.setDate(a.getDate()+i),this.getDateInfo(a))},s.prototype.update=function(a,i){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var l=this._rangeInfo.weeks||1,c=["width","height"],d=this._model.getCellSize().slice(),v=this._model.getBoxLayoutParams(),m=this._orient==="horizontal"?[l,7]:[7,l];ne([0,1],function(E){x(d,E)&&(v[c[E]]=d[E]*m[E])});var w={width:i.getWidth(),height:i.getHeight()},S=this._rect=ol(v,w);ne([0,1],function(E){x(d,E)||(d[E]=S[c[E]]/m[E])});function x(E,M){return E[M]!=null&&E[M]!=="auto"}this._sw=d[0],this._sh=d[1]},s.prototype.dataToPoint=function(a,i){Qe(a)&&(a=a[0]),i==null&&(i=!0);var l=this.getDateInfo(a),c=this._rangeInfo,d=l.formatedDate;if(i&&!(l.time>=c.start.time&&l.time<c.end.time+N6))return[NaN,NaN];var v=l.day,m=this._getRangeInfo([c.start.time,d]).nthWeek;return this._orient==="vertical"?[this._rect.x+v*this._sw+this._sw/2,this._rect.y+m*this._sh+this._sh/2]:[this._rect.x+m*this._sw+this._sw/2,this._rect.y+v*this._sh+this._sh/2]},s.prototype.pointToData=function(a){var i=this.pointToDate(a);return i&&i.time},s.prototype.dataToRect=function(a,i){var l=this.dataToPoint(a,i);return{contentShape:{x:l[0]-(this._sw-this._lineWidth)/2,y:l[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:l,tl:[l[0]-this._sw/2,l[1]-this._sh/2],tr:[l[0]+this._sw/2,l[1]-this._sh/2],br:[l[0]+this._sw/2,l[1]+this._sh/2],bl:[l[0]-this._sw/2,l[1]+this._sh/2]}},s.prototype.pointToDate=function(a){var i=Math.floor((a[0]-this._rect.x)/this._sw)+1,l=Math.floor((a[1]-this._rect.y)/this._sh)+1,c=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(l,i-1,c):this._getDateByWeeksAndDay(i,l-1,c)},s.prototype.convertToPixel=function(a,i,l){var c=fue(i);return c===this?c.dataToPoint(l):null},s.prototype.convertFromPixel=function(a,i,l){var c=fue(i);return c===this?c.pointToData(l):null},s.prototype.containPoint=function(a){return console.warn("Not implemented."),!1},s.prototype._initRangeOption=function(){var a=this._model.get("range"),i;if(Qe(a)&&a.length===1&&(a=a[0]),Qe(a))i=a;else{var l=a.toString();if(/^\d{4}$/.test(l)&&(i=[l+"-01-01",l+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(l)){var c=this.getDateInfo(l),d=c.date;d.setMonth(d.getMonth()+1);var v=this.getNextNDay(d,-1);i=[c.formatedDate,v.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(l)&&(i=[l,l])}if(!i)return ce("Invalid date range."),a;var m=this._getRangeInfo(i);return m.start.time>m.end.time&&i.reverse(),i},s.prototype._getRangeInfo=function(a){var i=[this.getDateInfo(a[0]),this.getDateInfo(a[1])],l;i[0].time>i[1].time&&(l=!0,i.reverse());var c=Math.floor(i[1].time/N6)-Math.floor(i[0].time/N6)+1,d=new Date(i[0].time),v=d.getDate(),m=i[1].date.getDate();d.setDate(v+c-1);var w=d.getDate();if(w!==m)for(var S=d.getTime()-i[1].time>0?1:-1;(w=d.getDate())!==m&&(d.getTime()-i[1].time)*S>0;)c-=S,d.setDate(w-S);var x=Math.floor((c+i[0].day+6)/7),E=l?-x+1:x-1;return l&&i.reverse(),{range:[i[0].formatedDate,i[1].formatedDate],start:i[0],end:i[1],allDay:c,weeks:x,nthWeek:E,fweek:i[0].day,lweek:i[1].day}},s.prototype._getDateByWeeksAndDay=function(a,i,l){var c=this._getRangeInfo(l);if(a>c.weeks||a===0&&i<c.fweek||a===c.weeks&&i>c.lweek)return null;var d=(a-1)*7-c.fweek+i,v=new Date(c.start.time);return v.setDate(+c.start.d+d),this.getDateInfo(v)},s.create=function(a,i){var l=[];return a.eachComponent("calendar",function(c){var d=new s(c);l.push(d),c.coordinateSystem=d}),a.eachSeries(function(c){c.get("coordinateSystem")==="calendar"&&(c.coordinateSystem=l[c.get("calendarIndex")||0])}),l},s.dimensions=["time","value"],s}();function fue(s){var a=s.calendarModel,i=s.seriesModel,l=a?a.coordinateSystem:i?i.coordinateSystem:null;return l}function SKe(s){s.registerComponentModel(wKe),s.registerComponentView(bKe),s.registerCoordinateSystem("calendar",_Ke)}function xKe(s,a){var i=s.existing;if(a.id=s.keyInfo.id,!a.type&&i&&(a.type=i.type),a.parentId==null){var l=a.parentOption;l?a.parentId=l.id:i&&(a.parentId=i.parentId)}a.parentOption=null}function hue(s,a){var i;return ne(a,function(l){s[l]!=null&&s[l]!=="auto"&&(i=!0)}),i}function CKe(s,a,i){var l=ie({},i),c=s[a],d=i.$action||"merge";if(d==="merge")if(c){{var v=i.type;_t(!v||c.type===v,'Please set $action: "replace" to change `type`')}le(c,l,!0),lm(c,l,{ignoreSize:!0}),zee(i,c),ZL(i,c),ZL(i,c,"shape"),ZL(i,c,"style"),ZL(i,c,"extra"),i.clipPath=c.clipPath}else s[a]=l;else d==="replace"?s[a]=l:d==="remove"&&c&&(s[a]=null)}var due=["transition","enterFrom","leaveTo"],TKe=due.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function ZL(s,a,i){if(i&&(!s[i]&&a[i]&&(s[i]={}),s=s[i],a=a[i]),!(!s||!a))for(var l=i?due:TKe,c=0;c<l.length;c++){var d=l[c];s[d]==null&&a[d]!=null&&(s[d]=a[d])}}function EKe(s,a){if(s&&(s.hv=a.hv=[hue(a,["left","right"]),hue(a,["top","bottom"])],s.type==="group")){var i=s,l=a;i.width==null&&(i.width=l.width=0),i.height==null&&(i.height=l.height=0)}}var BKe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.preventAutoZ=!0,i}return a.prototype.mergeOption=function(i,l){var c=this.option.elements;this.option.elements=null,s.prototype.mergeOption.call(this,i,l),this.option.elements=c},a.prototype.optionUpdated=function(i,l){var c=this.option,d=(l?c:i).elements,v=c.elements=l?[]:c.elements,m=[];this._flatten(d,m,null);var w=Fy(v,m,"normalMerge"),S=this._elOptionsToUpdate=[];ne(w,function(x,E){var M=x.newOption;_t(Pe(M)||x.existing,"Empty graphic option definition"),M&&(S.push(M),xKe(x,M),CKe(v,E,M),EKe(v[E],M))},this),c.elements=ze(v,function(x){return x&&delete x.$action,x!=null})},a.prototype._flatten=function(i,l,c){ne(i,function(d){if(d){c&&(d.parentOption=c),l.push(d);var v=d.children;v&&v.length&&this._flatten(v,l,d),delete d.children}},this)},a.prototype.useElOptionsToUpdate=function(){var i=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,i},a.type="graphic",a.defaultOption={elements:[]},a}(li),Aue={path:null,compoundPath:null,group:Lr,image:is,text:be},fd=Ri(),IKe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.init=function(){this._elMap=Ht()},a.prototype.render=function(i,l,c){i!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=i,this._updateElements(i),this._relocate(i,c)},a.prototype._updateElements=function(i){var l=i.useElOptionsToUpdate();if(l){var c=this._elMap,d=this.group,v=i.get("z"),m=i.get("zlevel");ne(l,function(w){var S=va(w.id,null),x=S!=null?c.get(S):null,E=va(w.parentId,null),M=E!=null?c.get(E):d,D=w.type,k=w.style;D==="text"&&k&&w.hv&&w.hv[1]&&(k.textVerticalAlign=k.textBaseline=k.verticalAlign=k.align=null);var Q=w.textContent,V=w.textConfig;if(k&&Ale(k,D,!!V,!!Q)){var $=vle(k,D,!0);!V&&$.textConfig&&(V=w.textConfig=$.textConfig),!Q&&$.textContent&&(Q=$.textContent)}var Z=LKe(w);x&&_t(M===x.parent,"Changing parent is not supported.");var ee=w.$action||"merge",fe=ee==="merge",ve=ee==="replace";if(fe){var ge=!x,Se=x;ge?Se=vue(S,M,w.type,c):(Se&&(fd(Se).isNew=!1),Ble(Se)),Se&&(VL(Se,Z,i,{isInit:ge}),pue(Se,w,v,m))}else if(ve){JL(x,w,c,i);var Ee=vue(S,M,w.type,c);Ee&&(VL(Ee,Z,i,{isInit:!0}),pue(Ee,w,v,m))}else ee==="remove"&&(Sle(x,w),JL(x,w,c,i));var Ie=c.get(S);if(Ie&&Q)if(fe){var Le=Ie.getTextContent();Le?Le.attr(Q):Ie.setTextContent(new be(Q))}else ve&&Ie.setTextContent(new be(Q));if(Ie){var Fe=w.clipPath;if(Fe){var Je=Fe.type,rt=void 0,ge=!1;if(fe){var at=Ie.getClipPath();ge=!at||fd(at).type!==Je,rt=ge?U6(Je):at}else ve&&(ge=!0,rt=U6(Je));Ie.setClipPath(rt),VL(rt,Fe,i,{isInit:ge}),GL(rt,Fe.keyframeAnimation,i)}var dt=fd(Ie);Ie.setTextConfig(V),dt.option=w,MKe(Ie,i,w),e0({el:Ie,componentModel:i,itemName:Ie.name,itemTooltipOption:w.tooltip}),GL(Ie,w.keyframeAnimation,i)}})}},a.prototype._relocate=function(i,l){for(var c=i.option.elements,d=this.group,v=this._elMap,m=l.getWidth(),w=l.getHeight(),S=["x","y"],x=0;x<c.length;x++){var E=c[x],M=va(E.id,null),D=M!=null?v.get(M):null;if(!(!D||!D.isGroup)){var k=D.parent,Q=k===d,V=fd(D),$=fd(k);V.width=vr(V.option.width,Q?m:$.width)||0,V.height=vr(V.option.height,Q?w:$.height)||0}}for(var x=c.length-1;x>=0;x--){var E=c[x],M=va(E.id,null),D=M!=null?v.get(M):null;if(D){var k=D.parent,$=fd(k),Z=k===d?{width:m,height:w}:{width:$.width,height:$.height},ee={},fe=xI(D,E,Z,null,{hv:E.hv,boundingMode:E.bounding},ee);if(!fd(D).isNew&&fe){for(var ve=E.transition,ge={},Se=0;Se<S.length;Se++){var Ee=S[Se],Ie=ee[Ee];ve&&(O0(ve)||oe(ve,Ee)>=0)?ge[Ee]=Ie:D[Ee]=Ie}Yi(D,ge,i,0)}else D.attr(ee)}}},a.prototype._clear=function(){var i=this,l=this._elMap;l.each(function(c){JL(c,fd(c).option,l,i._lastGraphicModel)}),this._elMap=Ht()},a.prototype.dispose=function(){this._clear()},a.type="graphic",a}(ho);function U6(s){_t(s,"graphic type MUST be set");var a=At(Aue,s)?Aue[s]:cI(s);_t(a,"graphic type "+s+" can not be found");var i=new a({});return fd(i).type=s,i}function vue(s,a,i,l){var c=U6(i);return a.add(c),l.set(s,c),fd(c).id=s,fd(c).isNew=!0,c}function JL(s,a,i,l){var c=s&&s.parent;c&&(s.type==="group"&&s.traverse(function(d){JL(d,a,i,l)}),zL(s,a,l),i.removeKey(fd(s).id))}function pue(s,a,i,l){s.isGroup||ne([["cursor",en.prototype.cursor],["zlevel",l||0],["z",i||0],["z2",0]],function(c){var d=c[0];At(a,d)?s[d]=It(a[d],c[1]):s[d]==null&&(s[d]=c[1])}),ne(Ne(a),function(c){if(c.indexOf("on")===0){var d=a[c];s[c]=qe(d)?d:null}}),At(a,"draggable")&&(s.draggable=a.draggable),a.name!=null&&(s.name=a.name),a.id!=null&&(s.id=a.id)}function LKe(s){return s=ie({},s),ne(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Vee),function(a){delete s[a]}),s}function MKe(s,a,i){var l=bt(s).eventData;!s.silent&&!s.ignore&&!l&&(l=bt(s).eventData={componentType:"graphic",componentIndex:a.componentIndex,name:s.name}),l&&(l.info=i.info)}function DKe(s){s.registerComponentModel(BKe),s.registerComponentView(IKe),s.registerPreprocessor(function(a){var i=a.graphic;Qe(i)?!i[0]||!i[0].elements?a.graphic=[{elements:i}]:a.graphic=[a.graphic[0]]:i&&!i.elements&&(a.graphic=[{elements:[i]}])})}var gue=["x","y","radius","angle","single"],RKe=["cartesian2d","polar","singleAxis"];function PKe(s){var a=s.get("coordinateSystem");return oe(RKe,a)>=0}function _m(s){return _t(s),s+"Axis"}function OKe(s,a){var i=Ht(),l=[],c=Ht();s.eachComponent({mainType:"dataZoom",query:a},function(x){c.get(x.uid)||m(x)});var d;do d=!1,s.eachComponent("dataZoom",v);while(d);function v(x){!c.get(x.uid)&&w(x)&&(m(x),d=!0)}function m(x){c.set(x.uid,!0),l.push(x),S(x)}function w(x){var E=!1;return x.eachTargetAxis(function(M,D){var k=i.get(M);k&&k[D]&&(E=!0)}),E}function S(x){x.eachTargetAxis(function(E,M){(i.get(E)||i.set(E,[]))[M]=!0})}return l}function mue(s){var a=s.ecModel,i={infoList:[],infoMap:Ht()};return s.eachTargetAxis(function(l,c){var d=a.getComponent(_m(l),c);if(d){var v=d.getCoordSysModel();if(v){var m=v.uid,w=i.infoMap.get(m);w||(w={model:v,axisModels:[]},i.infoList.push(w),i.infoMap.set(m,w)),w.axisModels.push(d)}}}),i}var H6=function(){function s(){this.indexList=[],this.indexMap=[]}return s.prototype.add=function(a){this.indexMap[a]||(this.indexList.push(a),this.indexMap[a]=!0)},s}(),KC=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i._autoThrottle=!0,i._noTarget=!0,i._rangePropMode=["percent","percent"],i}return a.prototype.init=function(i,l,c){var d=yue(i);this.settledOption=d,this.mergeDefaultAndTheme(i,c),this._doInit(d)},a.prototype.mergeOption=function(i){var l=yue(i);le(this.option,i,!0),le(this.settledOption,l,!0),this._doInit(l)},a.prototype._doInit=function(i){var l=this.option;this._setDefaultThrottle(i),this._updateRangeUse(i);var c=this.settledOption;ne([["start","startValue"],["end","endValue"]],function(d,v){this._rangePropMode[v]==="value"&&(l[d[0]]=c[d[0]]=null)},this),this._resetTarget()},a.prototype._resetTarget=function(){var i=this.get("orient",!0),l=this._targetAxisInfoMap=Ht(),c=this._fillSpecifiedTargetAxis(l);c?this._orient=i||this._makeAutoOrientByTargetAxis():(this._orient=i||"horizontal",this._fillAutoTargetAxisByOrient(l,this._orient)),this._noTarget=!0,l.each(function(d){d.indexList.length&&(this._noTarget=!1)},this)},a.prototype._fillSpecifiedTargetAxis=function(i){var l=!1;return ne(gue,function(c){var d=this.getReferringComponents(_m(c),UB);if(d.specified){l=!0;var v=new H6;ne(d.models,function(m){v.add(m.componentIndex)}),i.set(c,v)}},this),l},a.prototype._fillAutoTargetAxisByOrient=function(i,l){var c=this.ecModel,d=!0;if(d){var v=l==="vertical"?"y":"x",m=c.findComponents({mainType:v+"Axis"});w(m,v)}if(d){var m=c.findComponents({mainType:"singleAxis",filter:function(x){return x.get("orient",!0)===l}});w(m,"single")}function w(S,x){var E=S[0];if(E){var M=new H6;if(M.add(E.componentIndex),i.set(x,M),d=!1,x==="x"||x==="y"){var D=E.getReferringComponents("grid",ps).models[0];D&&ne(S,function(k){E.componentIndex!==k.componentIndex&&D===k.getReferringComponents("grid",ps).models[0]&&M.add(k.componentIndex)})}}}d&&ne(gue,function(S){if(d){var x=c.findComponents({mainType:_m(S),filter:function(M){return M.get("type",!0)==="category"}});if(x[0]){var E=new H6;E.add(x[0].componentIndex),i.set(S,E),d=!1}}},this)},a.prototype._makeAutoOrientByTargetAxis=function(){var i;return this.eachTargetAxis(function(l){!i&&(i=l)},this),i==="y"?"vertical":"horizontal"},a.prototype._setDefaultThrottle=function(i){if(i.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var l=this.ecModel.option;this.option.throttle=l.animation&&l.animationDurationUpdate>0?100:20}},a.prototype._updateRangeUse=function(i){var l=this._rangePropMode,c=this.get("rangeMode");ne([["start","startValue"],["end","endValue"]],function(d,v){var m=i[d[0]]!=null,w=i[d[1]]!=null;m&&!w?l[v]="percent":!m&&w?l[v]="value":c?l[v]=c[v]:m&&(l[v]="percent")})},a.prototype.noTarget=function(){return this._noTarget},a.prototype.getFirstTargetAxisModel=function(){var i;return this.eachTargetAxis(function(l,c){i==null&&(i=this.ecModel.getComponent(_m(l),c))},this),i},a.prototype.eachTargetAxis=function(i,l){this._targetAxisInfoMap.each(function(c,d){ne(c.indexList,function(v){i.call(l,d,v)})})},a.prototype.getAxisProxy=function(i,l){var c=this.getAxisModel(i,l);if(c)return c.__dzAxisProxy},a.prototype.getAxisModel=function(i,l){_t(i&&l!=null);var c=this._targetAxisInfoMap.get(i);if(c&&c.indexMap[l])return this.ecModel.getComponent(_m(i),l)},a.prototype.setRawRange=function(i){var l=this.option,c=this.settledOption;ne([["start","startValue"],["end","endValue"]],function(d){(i[d[0]]!=null||i[d[1]]!=null)&&(l[d[0]]=c[d[0]]=i[d[0]],l[d[1]]=c[d[1]]=i[d[1]])},this),this._updateRangeUse(i)},a.prototype.setCalculatedRange=function(i){var l=this.option;ne(["start","startValue","end","endValue"],function(c){l[c]=i[c]})},a.prototype.getPercentRange=function(){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataPercentWindow()},a.prototype.getValueRange=function(i,l){if(i==null&&l==null){var c=this.findRepresentativeAxisProxy();if(c)return c.getDataValueWindow()}else return this.getAxisProxy(i,l).getDataValueWindow()},a.prototype.findRepresentativeAxisProxy=function(i){if(i)return i.__dzAxisProxy;for(var l,c=this._targetAxisInfoMap.keys(),d=0;d<c.length;d++)for(var v=c[d],m=this._targetAxisInfoMap.get(v),w=0;w<m.indexList.length;w++){var S=this.getAxisProxy(v,m.indexList[w]);if(S.hostedBy(this))return S;l||(l=S)}return l},a.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},a.prototype.getOrient=function(){return _t(this._orient),this._orient},a.type="dataZoom",a.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],a.defaultOption={z:4,filterMode:"filter",start:0,end:100},a}(li);function yue(s){var a={};return ne(["start","end","startValue","endValue","throttle"],function(i){s.hasOwnProperty(i)&&(a[i]=s[i])}),a}var kKe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.type="dataZoom.select",a}(KC),Q6=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c,d){this.dataZoomModel=i,this.ecModel=l,this.api=c},a.type="dataZoom",a}(ho),FKe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.type="dataZoom.select",a}(Q6),Ub=ne,wue=aa,NKe=function(){function s(a,i,l,c){this._dimName=a,this._axisIndex=i,this.ecModel=c,this._dataZoomModel=l}return s.prototype.hostedBy=function(a){return this._dataZoomModel===a},s.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},s.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},s.prototype.getTargetSeriesModels=function(){var a=[];return this.ecModel.eachSeries(function(i){if(PKe(i)){var l=_m(this._dimName),c=i.getReferringComponents(l,ps).models[0];c&&this._axisIndex===c.componentIndex&&a.push(i)}},this),a},s.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},s.prototype.getMinMaxSpan=function(){return ae(this._minMaxSpan)},s.prototype.calculateDataWindow=function(a){var i=this._dataExtent,l=this.getAxisModel(),c=l.axis.scale,d=this._dataZoomModel.getRangePropMode(),v=[0,100],m=[],w=[],S;Ub(["start","end"],function(M,D){var k=a[M],Q=a[M+"Value"];d[D]==="percent"?(k==null&&(k=v[D]),Q=c.parse(ln(k,v,i))):(S=!0,Q=Q==null?i[D]:c.parse(Q),k=ln(Q,i,v)),w[D]=Q==null||isNaN(Q)?i[D]:Q,m[D]=k==null||isNaN(k)?v[D]:k}),wue(w),wue(m);var x=this._minMaxSpan;S?E(w,m,i,v,!1):E(m,w,v,i,!0);function E(M,D,k,Q,V){var $=V?"Span":"ValueSpan";D0(0,M,k,"all",x["min"+$],x["max"+$]);for(var Z=0;Z<2;Z++)D[Z]=ln(M[Z],k,Q,!0),V&&(D[Z]=c.parse(D[Z]))}return{valueWindow:w,percentWindow:m}},s.prototype.reset=function(a){if(a===this._dataZoomModel){var i=this.getTargetSeriesModels();this._dataExtent=UKe(this,this._dimName,i),this._updateMinMaxSpan();var l=this.calculateDataWindow(a.settledOption);this._valueWindow=l.valueWindow,this._percentWindow=l.percentWindow,this._setAxisModel()}},s.prototype.filterData=function(a,i){if(a!==this._dataZoomModel)return;var l=this._dimName,c=this.getTargetSeriesModels(),d=a.get("filterMode"),v=this._valueWindow;if(d==="none")return;Ub(c,function(w){var S=w.getData(),x=S.mapDimensionsAll(l);if(x.length){if(d==="weakFilter"){var E=S.getStore(),M=xe(x,function(D){return S.getDimensionIndex(D)},S);S.filterSelf(function(D){for(var k,Q,V,$=0;$<x.length;$++){var Z=E.get(M[$],D),ee=!isNaN(Z),fe=Z<v[0],ve=Z>v[1];if(ee&&!fe&&!ve)return!0;ee&&(V=!0),fe&&(k=!0),ve&&(Q=!0)}return V&&k&&Q})}else Ub(x,function(D){if(d==="empty")w.setData(S=S.map(D,function(Q){return m(Q)?Q:NaN}));else{var k={};k[D]=v,S.selectRange(k)}});Ub(x,function(D){S.setApproximateExtent(v,D)})}});function m(w){return w>=v[0]&&w<=v[1]}},s.prototype._updateMinMaxSpan=function(){var a=this._minMaxSpan={},i=this._dataZoomModel,l=this._dataExtent;Ub(["min","max"],function(c){var d=i.get(c+"Span"),v=i.get(c+"ValueSpan");v!=null&&(v=this.getAxisModel().axis.scale.parse(v)),v!=null?d=ln(l[0]+v,l,[0,100],!0):d!=null&&(v=ln(d,[0,100],l,!0)-l[0]),a[c+"Span"]=d,a[c+"ValueSpan"]=v},this)},s.prototype._setAxisModel=function(){var a=this.getAxisModel(),i=this._percentWindow,l=this._valueWindow;if(i){var c=El(l,[0,500]);c=Math.min(c,20);var d=a.axis.scale.rawExtentInfo;i[0]!==0&&d.setDeterminedMinMax("min",+l[0].toFixed(c)),i[1]!==100&&d.setDeterminedMinMax("max",+l[1].toFixed(c)),d.freeze()}},s}();function UKe(s,a,i){var l=[1/0,-1/0];Ub(i,function(v){aVe(l,v.getData(),a)});var c=s.getAxisModel(),d=Ene(c.axis.scale,c,l).calculate();return[d.min,d.max]}var HKe={getTargetSeries:function(s){function a(c){s.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(v,m){var w=s.getComponent(_m(v),m);c(v,m,w,d)})})}a(function(c,d,v,m){v.__dzAxisProxy=null});var i=[];a(function(c,d,v,m){v.__dzAxisProxy||(v.__dzAxisProxy=new NKe(c,d,m,s),i.push(v.__dzAxisProxy))});var l=Ht();return ne(i,function(c){ne(c.getTargetSeriesModels(),function(d){l.set(d.uid,d)})}),l},overallReset:function(s,a){s.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(l,c){i.getAxisProxy(l,c).reset(i)}),i.eachTargetAxis(function(l,c){i.getAxisProxy(l,c).filterData(i,a)})}),s.eachComponent("dataZoom",function(i){var l=i.findRepresentativeAxisProxy();if(l){var c=l.getDataPercentWindow(),d=l.getDataValueWindow();i.setCalculatedRange({start:c[0],end:c[1],startValue:d[0],endValue:d[1]})}})}};function QKe(s){s.registerAction("dataZoom",function(a,i){var l=OKe(i,a);ne(l,function(c){c.setRawRange({start:a.start,end:a.end,startValue:a.startValue,endValue:a.endValue})})})}var bue=!1;function V6(s){bue||(bue=!0,s.registerProcessor(s.PRIORITY.PROCESSOR.FILTER,HKe),QKe(s),s.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function VKe(s){s.registerComponentModel(kKe),s.registerComponentView(FKe),V6(s)}var hd=function(){function s(){}return s}(),_ue={};function Hb(s,a){_ue[s]=a}function Sue(s){return _ue[s]}var zKe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.optionUpdated=function(){s.prototype.optionUpdated.apply(this,arguments);var i=this.ecModel;ne(this.option.feature,function(l,c){var d=Sue(c);d&&(d.getDefaultOption&&(d.defaultOption=d.getDefaultOption(i)),le(l,d.defaultOption))})},a.type="toolbox",a.layoutMode={type:"box",ignoreSize:!0},a.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"}},a}(li);function GKe(s,a,i){var l=a.getBoxLayoutParams(),c=a.get("padding"),d={width:i.getWidth(),height:i.getHeight()},v=ol(l,d,c);a0(a.get("orient"),s,a.get("itemGap"),v.width,v.height),xI(s,l,d,c)}function xue(s,a){var i=r0(a.get("padding")),l=a.getItemStyle(["color","opacity"]);return l.fill=a.get("backgroundColor"),s=new R({shape:{x:s.x-i[3],y:s.y-i[0],width:s.width+i[1]+i[3],height:s.height+i[0]+i[2],r:a.get("borderRadius")},style:l,silent:!0,z2:-1}),s}var jKe=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.render=function(i,l,c,d){var v=this.group;if(v.removeAll(),!i.get("show"))return;var m=+i.get("itemSize"),w=i.get("orient")==="vertical",S=i.get("feature")||{},x=this._features||(this._features={}),E=[];ne(S,function(k,Q){E.push(Q)}),new Hp(this._featureNames||[],E).add(M).update(M).remove(ue(M,null)).execute(),this._featureNames=E;function M(k,Q){var V=E[k],$=E[Q],Z=S[V],ee=new ta(Z,i,i.ecModel),fe;if(d&&d.newTitle!=null&&d.featureName===V&&(Z.title=d.newTitle),V&&!$){if(qKe(V))fe={onclick:ee.option.onclick,featureName:V};else{var ve=Sue(V);if(!ve)return;fe=new ve}x[V]=fe}else if(fe=x[$],!fe)return;fe.uid=ib("toolbox-feature"),fe.model=ee,fe.ecModel=l,fe.api=c;var ge=fe instanceof hd;if(!V&&$){ge&&fe.dispose&&fe.dispose(l,c);return}if(!ee.get("show")||ge&&fe.unusable){ge&&fe.remove&&fe.remove(l,c);return}D(ee,fe,V),ee.setIconStatus=function(Se,Ee){var Ie=this.option,Le=this.iconPaths;Ie.iconStatus=Ie.iconStatus||{},Ie.iconStatus[Se]=Ee,Le[Se]&&(Ee==="emphasis"?kp:Fp)(Le[Se])},fe instanceof hd&&fe.render&&fe.render(ee,l,c,d)}function D(k,Q,V){var $=k.getModel("iconStyle"),Z=k.getModel(["emphasis","iconStyle"]),ee=Q instanceof hd&&Q.getIcons?Q.getIcons():k.get("icon"),fe=k.get("title")||{},ve,ge;Re(ee)?(ve={},ve[V]=ee):ve=ee,Re(fe)?(ge={},ge[V]=fe):ge=fe;var Se=k.iconPaths={};ne(ve,function(Ee,Ie){var Le=rb(Ee,{},{x:-m/2,y:-m/2,width:m,height:m});Le.setStyle($.getItemStyle());var Fe=Le.ensureState("emphasis");Fe.style=Z.getItemStyle();var Je=new be({style:{text:ge[Ie],align:Z.get("textAlign"),borderRadius:Z.get("textBorderRadius"),padding:Z.get("textPadding"),fill:null,font:zF({fontStyle:Z.get("textFontStyle"),fontFamily:Z.get("textFontFamily"),fontSize:Z.get("textFontSize"),fontWeight:Z.get("textFontWeight")},l)},ignore:!0});Le.setTextContent(Je),e0({el:Le,componentModel:i,itemName:Ie,formatterParamsExtra:{title:ge[Ie]}}),Le.__title=ge[Ie],Le.on("mouseover",function(){var rt=Z.getItemStyle(),at=w?i.get("right")==null&&i.get("left")!=="right"?"right":"left":i.get("bottom")==null&&i.get("top")!=="bottom"?"bottom":"top";Je.setStyle({fill:Z.get("textFill")||rt.fill||rt.stroke||"#000",backgroundColor:Z.get("textBackgroundColor")}),Le.setTextConfig({position:Z.get("textPosition")||at}),Je.ignore=!i.get("showTitle"),c.enterEmphasis(this)}).on("mouseout",function(){k.get(["iconStatus",Ie])!=="emphasis"&&c.leaveEmphasis(this),Je.hide()}),(k.get(["iconStatus",Ie])==="emphasis"?kp:Fp)(Le),v.add(Le),Le.on("click",Ue(Q.onclick,Q,l,c,Ie)),Se[Ie]=Le})}GKe(v,i,c),v.add(xue(v.getBoundingRect(),i)),w||v.eachChild(function(k){var Q=k.__title,V=k.ensureState("emphasis"),$=V.textConfig||(V.textConfig={}),Z=k.getTextContent(),ee=Z&&Z.ensureState("emphasis");if(ee&&!qe(ee)&&Q){var fe=ee.style||(ee.style={}),ve=Ot(Q,be.makeFont(fe)),ge=k.x+v.x,Se=k.y+v.y+m,Ee=!1;Se+ve.height>c.getHeight()&&($.position="top",Ee=!0);var Ie=Ee?-5-ve.height:m+10;ge+ve.width/2>c.getWidth()?($.position=["100%",Ie],fe.align="right"):ge-ve.width/2<0&&($.position=[0,Ie],fe.align="left")}})},a.prototype.updateView=function(i,l,c,d){ne(this._features,function(v){v instanceof hd&&v.updateView&&v.updateView(v.model,l,c,d)})},a.prototype.remove=function(i,l){ne(this._features,function(c){c instanceof hd&&c.remove&&c.remove(i,l)}),this.group.removeAll()},a.prototype.dispose=function(i,l){ne(this._features,function(c){c instanceof hd&&c.dispose&&c.dispose(i,l)})},a.type="toolbox",a}(ho);function qKe(s){return s.indexOf("my")===0}var WKe=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.onclick=function(i,l){var c=this.model,d=c.get("name")||i.get("title.0.text")||"echarts",v=l.getZr().painter.getType()==="svg",m=v?"svg":c.get("type",!0)||"png",w=l.getConnectedDataURL({type:m,backgroundColor:c.get("backgroundColor",!0)||i.get("backgroundColor")||"#fff",connectedBackgroundColor:c.get("connectedBackgroundColor"),excludeComponents:c.get("excludeComponents"),pixelRatio:c.get("pixelRatio")}),S=h.browser;if(typeof MouseEvent=="function"&&(S.newEdge||!S.ie&&!S.edge)){var x=document.createElement("a");x.download=d+"."+m,x.target="_blank",x.href=w;var E=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});x.dispatchEvent(E)}else if(window.navigator.msSaveOrOpenBlob||v){var M=w.split(","),D=M[0].indexOf("base64")>-1,k=v?decodeURIComponent(M[1]):M[1];D&&(k=window.atob(k));var Q=d+"."+m;if(window.navigator.msSaveOrOpenBlob){for(var V=k.length,$=new Uint8Array(V);V--;)$[V]=k.charCodeAt(V);var Z=new Blob([$]);window.navigator.msSaveOrOpenBlob(Z,Q)}else{var ee=document.createElement("iframe");document.body.appendChild(ee);var fe=ee.contentWindow,ve=fe.document;ve.open("image/svg+xml","replace"),ve.write(k),ve.close(),fe.focus(),ve.execCommand("SaveAs",!0,Q),document.body.removeChild(ee)}}else{var ge=c.get("lang"),Se='<body style="margin:0;"><img src="'+w+'" style="max-width:100%;" title="'+(ge&&ge[0]||"")+'" /></body>',Ee=window.open();Ee.document.write(Se),Ee.document.title=d}},a.getDefaultOption=function(i){var l={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:i.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:i.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return l},a}(hd),Cue="__ec_magicType_stack__",$Ke=[["line","bar"],["stack"]],KKe=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.getIcons=function(){var i=this.model,l=i.get("icon"),c={};return ne(i.get("type"),function(d){l[d]&&(c[d]=l[d])}),c},a.getDefaultOption=function(i){var l={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:i.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return l},a.prototype.onclick=function(i,l,c){var d=this.model,v=d.get(["seriesIndex",c]);if(Tue[c]){var m={series:[]},w=function(E){var M=E.subType,D=E.id,k=Tue[c](M,D,E,d);k&&(he(k,E.option),m.series.push(k));var Q=E.coordinateSystem;if(Q&&Q.type==="cartesian2d"&&(c==="line"||c==="bar")){var V=Q.getAxesByScale("ordinal")[0];if(V){var $=V.dim,Z=$+"Axis",ee=E.getReferringComponents(Z,ps).models[0],fe=ee.componentIndex;m[Z]=m[Z]||[];for(var ve=0;ve<=fe;ve++)m[Z][fe]=m[Z][fe]||{};m[Z][fe].boundaryGap=c==="bar"}}};ne($Ke,function(E){oe(E,c)>=0&&ne(E,function(M){d.setIconStatus(M,"normal")})}),d.setIconStatus(c,"emphasis"),i.eachComponent({mainType:"series",query:v==null?null:{seriesIndex:v}},w);var S,x=c;c==="stack"&&(S=le({stack:d.option.title.tiled,tiled:d.option.title.stack},d.option.title),d.get(["iconStatus",c])!=="emphasis"&&(x="tiled")),l.dispatchAction({type:"changeMagicType",currentType:x,newOption:m,newTitle:S,featureName:"magicType"})}},a}(hd),Tue={line:function(s,a,i,l){if(s==="bar")return le({id:a,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},l.get(["option","line"])||{},!0)},bar:function(s,a,i,l){if(s==="line")return le({id:a,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},l.get(["option","bar"])||{},!0)},stack:function(s,a,i,l){var c=i.get("stack")===Cue;if(s==="line"||s==="bar")return l.setIconStatus("stack",c?"normal":"emphasis"),le({id:a,stack:c?"":Cue},l.get(["option","stack"])||{},!0)}};pA({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(s,a){a.mergeOption(s.newOption)});var eM=new Array(60).join("-"),Qb=" ";function YKe(s){var a={},i=[],l=[];return s.eachRawSeries(function(c){var d=c.coordinateSystem;if(d&&(d.type==="cartesian2d"||d.type==="polar")){var v=d.getBaseAxis();if(v.type==="category"){var m=v.dim+"_"+v.index;a[m]||(a[m]={categoryAxis:v,valueAxis:d.getOtherAxis(v),series:[]},l.push({axisDim:v.dim,axisIndex:v.index})),a[m].series.push(c)}else i.push(c)}else i.push(c)}),{seriesGroupByCategoryAxis:a,other:i,meta:l}}function XKe(s){var a=[];return ne(s,function(i,l){var c=i.categoryAxis,d=i.valueAxis,v=d.dim,m=[" "].concat(xe(i.series,function(D){return D.name})),w=[c.model.getCategories()];ne(i.series,function(D){var k=D.getRawData();w.push(D.getRawData().mapArray(k.mapDimension(v),function(Q){return Q}))});for(var S=[m.join(Qb)],x=0;x<w[0].length;x++){for(var E=[],M=0;M<w.length;M++)E.push(w[M][x]);S.push(E.join(Qb))}a.push(S.join(`
`))}),a.join(`
`+eM+`
`)}function ZKe(s){return xe(s,function(a){var i=a.getRawData(),l=[a.name],c=[];return i.each(i.dimensions,function(){for(var d=arguments.length,v=arguments[d-1],m=i.getName(v),w=0;w<d-1;w++)c[w]=arguments[w];l.push((m?m+Qb:"")+c.join(Qb))}),l.join(`
`)}).join(`
`+eM+`
`)}function JKe(s){var a=YKe(s);return{value:ze([XKe(a.seriesGroupByCategoryAxis),ZKe(a.other)],function(i){return!!i.replace(/[\n\t\s]/g,"")}).join(`
`+eM+`
`),meta:a.meta}}function tM(s){return s.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function eYe(s){var a=s.slice(0,s.indexOf(`
`));if(a.indexOf(Qb)>=0)return!0}var z6=new RegExp("["+Qb+"]+","g");function tYe(s){for(var a=s.split(/\n+/g),i=tM(a.shift()).split(z6),l=[],c=xe(i,function(w){return{name:w,data:[]}}),d=0;d<a.length;d++){var v=tM(a[d]).split(z6);l.push(v.shift());for(var m=0;m<v.length;m++)c[m]&&(c[m].data[d]=v[m])}return{series:c,categories:l}}function rYe(s){for(var a=s.split(/\n+/g),i=tM(a.shift()),l=[],c=0;c<a.length;c++){var d=tM(a[c]);if(d){var v=d.split(z6),m="",w=void 0,S=!1;isNaN(v[0])?(S=!0,m=v[0],v=v.slice(1),l[c]={name:m,value:[]},w=l[c].value):w=l[c]=[];for(var x=0;x<v.length;x++)w.push(+v[x]);w.length===1&&(S?l[c].value=w[0]:l[c]=w[0])}}return{name:i,data:l}}function nYe(s,a){var i=s.split(new RegExp(`
*`+eM+`
*`,"g")),l={series:[]};return ne(i,function(c,d){if(eYe(c)){var v=tYe(c),m=a[d],w=m.axisDim+"Axis";m&&(l[w]=l[w]||[],l[w][m.axisIndex]={data:v.categories},l.series=l.series.concat(v.series))}else{var v=rYe(c);l.series.push(v)}}),l}var iYe=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.onclick=function(i,l){setTimeout(function(){l.dispatchAction({type:"hideTip"})});var c=l.getDom(),d=this.model;this._dom&&c.removeChild(this._dom);var v=document.createElement("div");v.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",v.style.backgroundColor=d.get("backgroundColor")||"#fff";var m=document.createElement("h4"),w=d.get("lang")||[];m.innerHTML=w[0]||d.get("title"),m.style.cssText="margin:10px 20px",m.style.color=d.get("textColor");var S=document.createElement("div"),x=document.createElement("textarea");S.style.cssText="overflow:auto";var E=d.get("optionToContent"),M=d.get("contentToOption"),D=JKe(i);if(qe(E)){var k=E(l.getOption());Re(k)?S.innerHTML=k:$e(k)&&S.appendChild(k)}else{x.readOnly=d.get("readOnly");var Q=x.style;Q.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",Q.color=d.get("textColor"),Q.borderColor=d.get("textareaBorderColor"),Q.backgroundColor=d.get("textareaColor"),x.value=D.value,S.appendChild(x)}var V=D.meta,$=document.createElement("div");$.style.cssText="position:absolute;bottom:5px;left:0;right:0";var Z="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",ee=document.createElement("div"),fe=document.createElement("div");Z+=";background-color:"+d.get("buttonColor"),Z+=";color:"+d.get("buttonTextColor");var ve=this;function ge(){c.removeChild(v),ve._dom=null}bf(ee,"click",ge),bf(fe,"click",function(){if(M==null&&E!=null||M!=null&&E==null){Ya("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),ge();return}var Se;try{qe(M)?Se=M(S,l.getOption()):Se=nYe(x.value,V)}catch(Ee){throw ge(),new Error("Data view format error "+Ee)}Se&&l.dispatchAction({type:"changeDataView",newOption:Se}),ge()}),ee.innerHTML=w[1],fe.innerHTML=w[2],fe.style.cssText=ee.style.cssText=Z,!d.get("readOnly")&&$.appendChild(fe),$.appendChild(ee),v.appendChild(m),v.appendChild(S),v.appendChild($),S.style.height=c.clientHeight-80+"px",c.appendChild(v),this._dom=v},a.prototype.remove=function(i,l){this._dom&&l.getDom().removeChild(this._dom)},a.prototype.dispose=function(i,l){this.remove(i,l)},a.getDefaultOption=function(i){var l={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:i.getLocaleModel().get(["toolbox","dataView","title"]),lang:i.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return l},a}(hd);function aYe(s,a){return xe(s,function(i,l){var c=a&&a[l];if(Pe(c)&&!Qe(c)){var d=Pe(i)&&!Qe(i);d||(i={value:i});var v=c.name!=null&&i.name==null;return i=he(i,c),v&&delete i.name,i}else return i})}pA({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(s,a){var i=[];ne(s.newOption.series,function(l){var c=a.getSeriesByName(l.name)[0];if(!c)i.push(ie({type:"scatter"},l));else{var d=c.get("data");i.push({name:l.name,data:aYe(l.data,d)})}}),a.mergeOption(he({series:i},s.newOption))});var Eue=ne,Bue=Ri();function oYe(s,a){var i=G6(s);Eue(a,function(l,c){for(var d=i.length-1;d>=0;d--){var v=i[d];if(v[c])break}if(d<0){var m=s.queryComponents({mainType:"dataZoom",subType:"select",id:c})[0];if(m){var w=m.getPercentRange();i[0][c]={dataZoomId:c,start:w[0],end:w[1]}}}}),i.push(a)}function sYe(s){var a=G6(s),i=a[a.length-1];a.length>1&&a.pop();var l={};return Eue(i,function(c,d){for(var v=a.length-1;v>=0;v--)if(c=a[v][d],c){l[d]=c;break}}),l}function lYe(s){Bue(s).snapshots=null}function uYe(s){return G6(s).length}function G6(s){var a=Bue(s);return a.snapshots||(a.snapshots=[{}]),a.snapshots}var cYe=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.onclick=function(i,l){lYe(i),l.dispatchAction({type:"restore",from:this.uid})},a.getDefaultOption=function(i){var l={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:i.getLocaleModel().get(["toolbox","restore","title"])};return l},a}(hd);pA({type:"restore",event:"restore",update:"prepareAndUpdate"},function(s,a){a.resetOption("recreate")});var fYe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],j6=function(){function s(a,i,l){var c=this;this._targetInfoList=[];var d=Iue(i,a);ne(hYe,function(v,m){(!l||!l.include||oe(l.include,m)>=0)&&v(d,c._targetInfoList)})}return s.prototype.setOutputRanges=function(a,i){return this.matchOutputRanges(a,i,function(l,c,d){if((l.coordRanges||(l.coordRanges=[])).push(c),!l.coordRange){l.coordRange=c;var v=W6[l.brushType](0,d,c);l.__rangeOffset={offset:Rue[l.brushType](v.values,l.range,[1,1]),xyMinMax:v.xyMinMax}}}),a},s.prototype.matchOutputRanges=function(a,i,l){ne(a,function(c){var d=this.findTargetInfo(c,i);d&&d!==!0&&ne(d.coordSyses,function(v){var m=W6[c.brushType](1,v,c.range,!0);l(c,m.values,v,i)})},this)},s.prototype.setInputRanges=function(a,i){ne(a,function(l){var c=this.findTargetInfo(l,i);if(_t(!c||c===!0||l.coordRange,"coordRange must be specified when coord index specified."),_t(!c||c!==!0||l.range,"range must be specified in global brush."),l.range=l.range||[],c&&c!==!0){l.panelId=c.panelId;var d=W6[l.brushType](0,c.coordSys,l.coordRange),v=l.__rangeOffset;l.range=v?Rue[l.brushType](d.values,v.offset,dYe(d.xyMinMax,v.xyMinMax)):d.values}},this)},s.prototype.makePanelOpts=function(a,i){return xe(this._targetInfoList,function(l){var c=l.getPanelRect();return{panelId:l.panelId,defaultBrushType:i?i(l):null,clipPath:Ese(c),isTargetByCursor:Ise(c,a,l.coordSysModel),getLinearBrushOtherExtent:Bse(c)}})},s.prototype.controlSeries=function(a,i,l){var c=this.findTargetInfo(a,l);return c===!0||c&&oe(c.coordSyses,i.coordinateSystem)>=0},s.prototype.findTargetInfo=function(a,i){for(var l=this._targetInfoList,c=Iue(i,a),d=0;d<l.length;d++){var v=l[d],m=a.panelId;if(m){if(v.panelId===m)return v}else for(var w=0;w<Lue.length;w++)if(Lue[w](c,v))return v}return!0},s}();function q6(s){return s[0]>s[1]&&s.reverse(),s}function Iue(s,a){return Gg(s,a,{includeMainTypes:fYe})}var hYe={grid:function(s,a){var i=s.xAxisModels,l=s.yAxisModels,c=s.gridModels,d=Ht(),v={},m={};!i&&!l&&!c||(ne(i,function(w){var S=w.axis.grid.model;d.set(S.id,S),v[S.id]=!0}),ne(l,function(w){var S=w.axis.grid.model;d.set(S.id,S),m[S.id]=!0}),ne(c,function(w){d.set(w.id,w),v[w.id]=!0,m[w.id]=!0}),d.each(function(w){var S=w.coordinateSystem,x=[];ne(S.getCartesians(),function(E,M){(oe(i,E.getAxis("x").model)>=0||oe(l,E.getAxis("y").model)>=0)&&x.push(E)}),a.push({panelId:"grid--"+w.id,gridModel:w,coordSysModel:w,coordSys:x[0],coordSyses:x,getPanelRect:Mue.grid,xAxisDeclared:v[w.id],yAxisDeclared:m[w.id]})}))},geo:function(s,a){ne(s.geoModels,function(i){var l=i.coordinateSystem;a.push({panelId:"geo--"+i.id,geoModel:i,coordSysModel:i,coordSys:l,coordSyses:[l],getPanelRect:Mue.geo})})}},Lue=[function(s,a){var i=s.xAxisModel,l=s.yAxisModel,c=s.gridModel;return!c&&i&&(c=i.axis.grid.model),!c&&l&&(c=l.axis.grid.model),c&&c===a.gridModel},function(s,a){var i=s.geoModel;return i&&i===a.geoModel}],Mue={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var s=this.coordSys,a=s.getBoundingRect().clone();return a.applyTransform(am(s)),a}},W6={lineX:ue(Due,0),lineY:ue(Due,1),rect:function(s,a,i,l){var c=s?a.pointToData([i[0][0],i[1][0]],l):a.dataToPoint([i[0][0],i[1][0]],l),d=s?a.pointToData([i[0][1],i[1][1]],l):a.dataToPoint([i[0][1],i[1][1]],l),v=[q6([c[0],d[0]]),q6([c[1],d[1]])];return{values:v,xyMinMax:v}},polygon:function(s,a,i,l){var c=[[1/0,-1/0],[1/0,-1/0]],d=xe(i,function(v){var m=s?a.pointToData(v,l):a.dataToPoint(v,l);return c[0][0]=Math.min(c[0][0],m[0]),c[1][0]=Math.min(c[1][0],m[1]),c[0][1]=Math.max(c[0][1],m[0]),c[1][1]=Math.max(c[1][1],m[1]),m});return{values:d,xyMinMax:c}}};function Due(s,a,i,l){_t(i.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var c=i.getAxis(["x","y"][s]),d=q6(xe([0,1],function(m){return a?c.coordToData(c.toLocalCoord(l[m]),!0):c.toGlobalCoord(c.dataToCoord(l[m]))})),v=[];return v[s]=d,v[1-s]=[NaN,NaN],{values:d,xyMinMax:v}}var Rue={lineX:ue(Pue,0),lineY:ue(Pue,1),rect:function(s,a,i){return[[s[0][0]-i[0]*a[0][0],s[0][1]-i[0]*a[0][1]],[s[1][0]-i[1]*a[1][0],s[1][1]-i[1]*a[1][1]]]},polygon:function(s,a,i){return xe(s,function(l,c){return[l[0]-i[0]*a[c][0],l[1]-i[1]*a[c][1]]})}};function Pue(s,a,i,l){return[a[0]-l[s]*i[0],a[1]-l[s]*i[1]]}function dYe(s,a){var i=Oue(s),l=Oue(a),c=[i[0]/l[0],i[1]/l[1]];return isNaN(c[0])&&(c[0]=1),isNaN(c[1])&&(c[1]=1),c}function Oue(s){return s?[s[0][1]-s[0][0],s[1][1]-s[1][0]]:[NaN,NaN]}var $6=ne,AYe=mx("toolbox-dataZoom_"),vYe=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.render=function(i,l,c,d){this._brushController||(this._brushController=new j4(c.getZr()),this._brushController.on("brush",Ue(this._onBrush,this)).mount()),mYe(i,l,this,d,c),gYe(i,l)},a.prototype.onclick=function(i,l,c){pYe[c].call(this)},a.prototype.remove=function(i,l){this._brushController&&this._brushController.unmount()},a.prototype.dispose=function(i,l){this._brushController&&this._brushController.dispose()},a.prototype._onBrush=function(i){var l=i.areas;if(!i.isEnd||!l.length)return;var c={},d=this.ecModel;this._brushController.updateCovers([]);var v=new j6(K6(this.model),d,{include:["grid"]});v.matchOutputRanges(l,d,function(S,x,E){if(E.type==="cartesian2d"){var M=S.brushType;M==="rect"?(m("x",E,x[0]),m("y",E,x[1])):m({lineX:"x",lineY:"y"}[M],E,x)}}),oYe(d,c),this._dispatchZoomAction(c);function m(S,x,E){var M=x.getAxis(S),D=M.model,k=w(S,D,d),Q=k.findRepresentativeAxisProxy(D).getMinMaxSpan();(Q.minValueSpan!=null||Q.maxValueSpan!=null)&&(E=D0(0,E.slice(),M.scale.getExtent(),0,Q.minValueSpan,Q.maxValueSpan)),k&&(c[k.id]={dataZoomId:k.id,startValue:E[0],endValue:E[1]})}function w(S,x,E){var M;return E.eachComponent({mainType:"dataZoom",subType:"select"},function(D){var k=D.getAxisModel(S,x.componentIndex);k&&(M=D)}),M}},a.prototype._dispatchZoomAction=function(i){var l=[];$6(i,function(c,d){l.push(ae(c))}),l.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:l})},a.getDefaultOption=function(i){var l={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:i.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return l},a}(hd),pYe={zoom:function(){var s=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:s})},back:function(){this._dispatchZoomAction(sYe(this.ecModel))}};function K6(s){var a={xAxisIndex:s.get("xAxisIndex",!0),yAxisIndex:s.get("yAxisIndex",!0),xAxisId:s.get("xAxisId",!0),yAxisId:s.get("yAxisId",!0)};return a.xAxisIndex==null&&a.xAxisId==null&&(a.xAxisIndex="all"),a.yAxisIndex==null&&a.yAxisId==null&&(a.yAxisIndex="all"),a}function gYe(s,a){s.setIconStatus("back",uYe(a)>1?"emphasis":"normal")}function mYe(s,a,i,l,c){var d=i._isZoomActive;l&&l.type==="takeGlobalCursor"&&(d=l.key==="dataZoomSelect"?l.dataZoomSelectActive:!1),i._isZoomActive=d,s.setIconStatus("zoom",d?"emphasis":"normal");var v=new j6(K6(s),a,{include:["grid"]}),m=v.makePanelOpts(c,function(w){return w.xAxisDeclared&&!w.yAxisDeclared?"lineX":!w.xAxisDeclared&&w.yAxisDeclared?"lineY":"rect"});i._brushController.setPanels(m).enableBrush(d&&m.length?{brushType:"auto",brushStyle:s.getModel("brushStyle").getItemStyle()}:!1)}B6e("dataZoom",function(s){var a=s.getComponent("toolbox",0),i=["feature","dataZoom"];if(!a||a.get(i)==null)return;var l=a.getModel(i),c=[],d=K6(l),v=Gg(s,d);$6(v.xAxisModels,function(w){return m(w,"xAxis","xAxisIndex")}),$6(v.yAxisModels,function(w){return m(w,"yAxis","yAxisIndex")});function m(w,S,x){var E=w.componentIndex,M={type:"select",$fromToolbox:!0,filterMode:l.get("filterMode",!0)||"filter",id:AYe+S+E};M[x]=E,c.push(M)}return c});function yYe(s){s.registerComponentModel(zKe),s.registerComponentView(jKe),Hb("saveAsImage",WKe),Hb("magicType",KKe),Hb("dataView",iYe),Hb("dataZoom",vYe),Hb("restore",cYe),ui(VKe)}var wYe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.type="tooltip",a.dependencies=["axisPointer"],a.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}},a}(li);function kue(s){var a=s.get("confine");return a!=null?!!a:s.get("renderMode")==="richText"}function Fue(s){if(h.domSupported){for(var a=document.documentElement.style,i=0,l=s.length;i<l;i++)if(s[i]in a)return s[i]}}var Nue=Fue(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),bYe=Fue(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Uue(s,a){if(!s)return a;a=tN(a,!0);var i=s.indexOf(a);return s=i===-1?a:"-"+s.slice(0,i)+"-"+a,s.toLowerCase()}function _Ye(s,a){var i=s.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(s);return i?i[a]:null}var SYe=Uue(bYe,"transition"),Y6=Uue(Nue,"transform"),xYe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(h.transform3dSupported?"will-change:transform;":"");function CYe(s){return s=s==="left"?"right":s==="right"?"left":s==="top"?"bottom":"top",s}function TYe(s,a,i){if(!Re(i)||i==="inside")return"";var l=s.get("backgroundColor"),c=s.get("borderWidth");a=n0(a);var d=CYe(i),v=Math.max(Math.round(c)*1.5,6),m="",w=Y6+":",S;oe(["left","right"],d)>-1?(m+="top:50%",w+="translateY(-50%) rotate("+(S=d==="left"?-225:-45)+"deg)"):(m+="left:50%",w+="translateX(-50%) rotate("+(S=d==="top"?225:45)+"deg)");var x=S*Math.PI/180,E=v+c,M=E*Math.abs(Math.cos(x))+E*Math.abs(Math.sin(x)),D=Math.round(((M-Math.SQRT2*c)/2+Math.SQRT2*c-(M-E)/2)*100)/100;m+=";"+d+":-"+D+"px";var k=a+" solid "+c+"px;",Q=["position:absolute;width:"+v+"px;height:"+v+"px;z-index:-1;",m+";"+w+";","border-bottom:"+k,"border-right:"+k,"background-color:"+l+";"];return'<div style="'+Q.join("")+'"></div>'}function EYe(s,a){var i="cubic-bezier(0.23,1,0.32,1)",l=" "+s/2+"s "+i,c="opacity"+l+",visibility"+l;return a||(l=" "+s+"s "+i,c+=h.transformSupported?","+Y6+l:",left"+l+",top"+l),SYe+":"+c}function Hue(s,a,i){var l=s.toFixed(0)+"px",c=a.toFixed(0)+"px";if(!h.transformSupported)return i?"top:"+c+";left:"+l+";":[["top",c],["left",l]];var d=h.transform3dSupported,v="translate"+(d?"3d":"")+"("+l+","+c+(d?",0":"")+")";return i?"top:0;left:0;"+Y6+":"+v+";":[["top",0],["left",0],[Nue,v]]}function BYe(s){var a=[],i=s.get("fontSize"),l=s.getTextColor();l&&a.push("color:"+l),a.push("font:"+s.getFont());var c=It(s.get("lineHeight"),Math.round(i*3/2));i&&a.push("line-height:"+c+"px");var d=s.get("textShadowColor"),v=s.get("textShadowBlur")||0,m=s.get("textShadowOffsetX")||0,w=s.get("textShadowOffsetY")||0;return d&&v&&a.push("text-shadow:"+m+"px "+w+"px "+v+"px "+d),ne(["decoration","align"],function(S){var x=s.get(S);x&&a.push("text-"+S+":"+x)}),a.join(";")}function IYe(s,a,i){var l=[],c=s.get("transitionDuration"),d=s.get("backgroundColor"),v=s.get("shadowBlur"),m=s.get("shadowColor"),w=s.get("shadowOffsetX"),S=s.get("shadowOffsetY"),x=s.getModel("textStyle"),E=zte(s,"html"),M=w+"px "+S+"px "+v+"px "+m;return l.push("box-shadow:"+M),a&&c&&l.push(EYe(c,i)),d&&l.push("background-color:"+d),ne(["width","color","radius"],function(D){var k="border-"+D,Q=tN(k),V=s.get(Q);V!=null&&l.push(k+":"+V+(D==="color"?"":"px"))}),l.push(BYe(x)),E!=null&&l.push("padding:"+r0(E).join("px ")+"px"),l.join(";")+";"}function Que(s,a,i,l,c){var d=a&&a.painter;if(i){var v=d&&d.getViewportRoot();v&&Hl(s,v,i,l,c)}else{s[0]=l,s[1]=c;var m=d&&d.getViewportRootOffset();m&&(s[0]+=m.offsetLeft,s[1]+=m.offsetTop)}s[2]=s[0]/a.getWidth(),s[3]=s[1]/a.getHeight()}var LYe=function(){function s(a,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,h.wxa)return null;var l=document.createElement("div");l.domBelongToZr=!0,this.el=l;var c=this._zr=a.getZr(),d=i.appendTo,v=d&&(Re(d)?document.querySelector(d):$e(d)?d:qe(d)&&d(a.getDom()));Que(this._styleCoord,c,v,a.getWidth()/2,a.getHeight()/2),(v||a.getDom()).appendChild(l),this._api=a,this._container=v;var m=this;l.onmouseenter=function(){m._enterable&&(clearTimeout(m._hideTimeout),m._show=!0),m._inContent=!0},l.onmousemove=function(w){if(w=w||window.event,!m._enterable){var S=c.handler,x=c.painter.getViewportRoot();oo(x,w,!0),S.dispatch("mousemove",w)}},l.onmouseleave=function(){m._inContent=!1,m._enterable&&m._show&&m.hideLater(m._hideDelay)}}return s.prototype.update=function(a){if(!this._container){var i=this._api.getDom(),l=_Ye(i,"position"),c=i.style;c.position!=="absolute"&&l!=="absolute"&&(c.position="relative")}var d=a.get("alwaysShowContent");d&&this._moveIfResized(),this._alwaysShowContent=d,this.el.className=a.get("className")||""},s.prototype.show=function(a,i){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var l=this.el,c=l.style,d=this._styleCoord;l.innerHTML?c.cssText=xYe+IYe(a,!this._firstShow,this._longHide)+Hue(d[0],d[1],!0)+("border-color:"+n0(i)+";")+(a.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):c.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},s.prototype.setContent=function(a,i,l,c,d){var v=this.el;if(a==null){v.innerHTML="";return}var m="";if(Re(d)&&l.get("trigger")==="item"&&!kue(l)&&(m=TYe(l,c,d)),Re(a))v.innerHTML=a+m;else if(a){v.innerHTML="",Qe(a)||(a=[a]);for(var w=0;w<a.length;w++)$e(a[w])&&a[w].parentNode!==v&&v.appendChild(a[w]);if(m&&v.childNodes.length){var S=document.createElement("div");S.innerHTML=m,v.appendChild(S)}}},s.prototype.setEnterable=function(a){this._enterable=a},s.prototype.getSize=function(){var a=this.el;return a?[a.offsetWidth,a.offsetHeight]:[0,0]},s.prototype.moveTo=function(a,i){if(this.el){var l=this._styleCoord;if(Que(l,this._zr,this._container,a,i),l[0]!=null&&l[1]!=null){var c=this.el.style,d=Hue(l[0],l[1]);ne(d,function(v){c[v[0]]=v[1]})}}},s.prototype._moveIfResized=function(){var a=this._styleCoord[2],i=this._styleCoord[3];this.moveTo(a*this._zr.getWidth(),i*this._zr.getHeight())},s.prototype.hide=function(){var a=this,i=this.el.style;i.visibility="hidden",i.opacity="0",h.transform3dSupported&&(i.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return a._longHide=!0},500)},s.prototype.hideLater=function(a){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(a?(this._hideDelay=a,this._show=!1,this._hideTimeout=setTimeout(Ue(this.hide,this),a)):this.hide())},s.prototype.isShow=function(){return this._show},s.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el.parentNode;a&&a.removeChild(this.el),this.el=this._container=null},s}(),MYe=function(){function s(a){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=a.getZr(),zue(this._styleCoord,this._zr,a.getWidth()/2,a.getHeight()/2)}return s.prototype.update=function(a){var i=a.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i},s.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},s.prototype.setContent=function(a,i,l,c,d){var v=this;Pe(a)&&Fi("Passing DOM nodes as content is not supported in richText tooltip!"),this.el&&this._zr.remove(this.el);var m=l.getModel("textStyle");this.el=new be({style:{rich:i.richTextStyles,text:a,lineHeight:22,borderWidth:1,borderColor:c,textShadowColor:m.get("textShadowColor"),fill:l.get(["textStyle","color"]),padding:zte(l,"richText"),verticalAlign:"top",align:"left"},z:l.get("z")}),ne(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(S){v.el.style[S]=l.get(S)}),ne(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(S){v.el.style[S]=m.get(S)||0}),this._zr.add(this.el);var w=this;this.el.on("mouseover",function(){w._enterable&&(clearTimeout(w._hideTimeout),w._show=!0),w._inContent=!0}),this.el.on("mouseout",function(){w._enterable&&w._show&&w.hideLater(w._hideDelay),w._inContent=!1})},s.prototype.setEnterable=function(a){this._enterable=a},s.prototype.getSize=function(){var a=this.el,i=this.el.getBoundingRect(),l=Vue(a.style);return[i.width+l.left+l.right,i.height+l.top+l.bottom]},s.prototype.moveTo=function(a,i){var l=this.el;if(l){var c=this._styleCoord;zue(c,this._zr,a,i),a=c[0],i=c[1];var d=l.style,v=Sm(d.borderWidth||0),m=Vue(d);l.x=a+v+m.left,l.y=i+v+m.top,l.markRedraw()}},s.prototype._moveIfResized=function(){var a=this._styleCoord[2],i=this._styleCoord[3];this.moveTo(a*this._zr.getWidth(),i*this._zr.getHeight())},s.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},s.prototype.hideLater=function(a){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(a?(this._hideDelay=a,this._show=!1,this._hideTimeout=setTimeout(Ue(this.hide,this),a)):this.hide())},s.prototype.isShow=function(){return this._show},s.prototype.dispose=function(){this._zr.remove(this.el)},s}();function Sm(s){return Math.max(0,s)}function Vue(s){var a=Sm(s.shadowBlur||0),i=Sm(s.shadowOffsetX||0),l=Sm(s.shadowOffsetY||0);return{left:Sm(a-i),right:Sm(a+i),top:Sm(a-l),bottom:Sm(a+l)}}function zue(s,a,i,l){s[0]=i,s[1]=l,s[2]=s[0]/a.getWidth(),s[3]=s[1]/a.getHeight()}var DYe=new R({shape:{x:-1,y:-1,width:2,height:2}}),RYe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.init=function(i,l){if(!(h.node||!l.getDom())){var c=i.getComponent("tooltip"),d=this._renderMode=aA(c.get("renderMode"));this._tooltipContent=d==="richText"?new MYe(l):new LYe(l,{appendTo:c.get("appendToBody",!0)?"body":c.get("appendTo",!0)})}},a.prototype.render=function(i,l,c){if(!(h.node||!c.getDom())){this.group.removeAll(),this._tooltipModel=i,this._ecModel=l,this._api=c;var d=this._tooltipContent;d.update(i),d.setEnterable(i.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&i.get("transitionDuration")?vb(this,"_updatePosition",50,"fixRate"):iC(this,"_updatePosition")}},a.prototype._initGlobalListener=function(){var i=this._tooltipModel,l=i.get("triggerOn");Kle("itemTooltip",this._api,Ue(function(c,d,v){l!=="none"&&(l.indexOf(c)>=0?this._tryShow(d,v):c==="leave"&&this._hide(v))},this))},a.prototype._keepShow=function(){var i=this._tooltipModel,l=this._ecModel,c=this._api,d=i.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&d!=="none"&&d!=="click"){var v=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!c.isDisposed()&&v.manuallyShowTip(i,l,c,{x:v._lastX,y:v._lastY,dataByCoordSys:v._lastDataByCoordSys})})}},a.prototype.manuallyShowTip=function(i,l,c,d){if(!(d.from===this.uid||h.node||!c.getDom())){var v=Gue(d,c);this._ticket="";var m=d.dataByCoordSys,w=FYe(d,l,c);if(w){var S=w.el.getBoundingRect().clone();S.applyTransform(w.el.transform),this._tryShow({offsetX:S.x+S.width/2,offsetY:S.y+S.height/2,target:w.el,position:d.position,positionDefault:"bottom"},v)}else if(d.tooltip&&d.x!=null&&d.y!=null){var x=DYe;x.x=d.x,x.y=d.y,x.update(),bt(x).tooltipConfig={name:null,option:d.tooltip},this._tryShow({offsetX:d.x,offsetY:d.y,target:x},v)}else if(m)this._tryShow({offsetX:d.x,offsetY:d.y,position:d.position,dataByCoordSys:m,tooltipOption:d.tooltipOption},v);else if(d.seriesIndex!=null){if(this._manuallyAxisShowTip(i,l,c,d))return;var E=Xle(d,l),M=E.point[0],D=E.point[1];M!=null&&D!=null&&this._tryShow({offsetX:M,offsetY:D,target:E.el,position:d.position,positionDefault:"bottom"},v)}else d.x!=null&&d.y!=null&&(c.dispatchAction({type:"updateAxisPointer",x:d.x,y:d.y}),this._tryShow({offsetX:d.x,offsetY:d.y,position:d.position,target:c.getZr().findHover(d.x,d.y).target},v))}},a.prototype.manuallyHideTip=function(i,l,c,d){var v=this._tooltipContent;this._tooltipModel&&v.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,d.from!==this.uid&&this._hide(Gue(d,c))},a.prototype._manuallyAxisShowTip=function(i,l,c,d){var v=d.seriesIndex,m=d.dataIndex,w=l.getComponent("axisPointer").coordSysAxesInfo;if(!(v==null||m==null||w==null)){var S=l.getSeriesByIndex(v);if(S){var x=S.getData(),E=YC([x.getItemModel(m),S,(S.coordinateSystem||{}).model],this._tooltipModel);if(E.get("trigger")==="axis")return c.dispatchAction({type:"updateAxisPointer",seriesIndex:v,dataIndex:m,position:d.position}),!0}}},a.prototype._tryShow=function(i,l){var c=i.target,d=this._tooltipModel;if(d){this._lastX=i.offsetX,this._lastY=i.offsetY;var v=i.dataByCoordSys;if(v&&v.length)this._showAxisTooltip(v,i);else if(c){var m=bt(c);if(m.ssrType==="legend")return;this._lastDataByCoordSys=null;var w,S;c0(c,function(x){if(bt(x).dataIndex!=null)return w=x,!0;if(bt(x).tooltipConfig!=null)return S=x,!0},!0),w?this._showSeriesItemTooltip(i,w,l):S?this._showComponentItemTooltip(i,S,l):this._hide(l)}else this._lastDataByCoordSys=null,this._hide(l)}},a.prototype._showOrMove=function(i,l){var c=i.get("showDelay");l=Ue(l,this),clearTimeout(this._showTimout),c>0?this._showTimout=setTimeout(l,c):l()},a.prototype._showAxisTooltip=function(i,l){var c=this._ecModel,d=this._tooltipModel,v=[l.offsetX,l.offsetY],m=YC([l.tooltipOption],d),w=this._renderMode,S=[],x=tu("section",{blocks:[],noHeader:!0}),E=[],M=new EN;ne(i,function(Z){ne(Z.dataByAxis,function(ee){var fe=c.getComponent(ee.axisDim+"Axis",ee.axisIndex),ve=ee.value;if(!(!fe||ve==null)){var ge=zle(ve,fe.axis,c,ee.seriesDataIndices,ee.valueLabelOpt),Se=tu("section",{header:ge,noHeader:!br(ge),sortBlocks:!0,blocks:[]});x.blocks.push(Se),ne(ee.seriesDataIndices,function(Ee){var Ie=c.getSeriesByIndex(Ee.seriesIndex),Le=Ee.dataIndexInside,Fe=Ie.getDataParams(Le);if(!(Fe.dataIndex<0)){Fe.axisDim=ee.axisDim,Fe.axisIndex=ee.axisIndex,Fe.axisType=ee.axisType,Fe.axisId=ee.axisId,Fe.axisValue=hU(fe.axis,{value:ve}),Fe.axisValueLabel=ge,Fe.marker=M.makeTooltipMarker("item",n0(Fe.color),w);var Je=Ste(Ie.formatTooltip(Le,!0,null)),rt=Je.frag;if(rt){var at=YC([Ie],d).get("valueFormatter");Se.blocks.push(at?ie({valueFormatter:at},rt):rt)}Je.text&&E.push(Je.text),S.push(Fe)}})}})}),x.blocks.reverse(),E.reverse();var D=l.position,k=m.get("order"),Q=Hte(x,M,w,k,c.get("useUTC"),m.get("textStyle"));Q&&E.unshift(Q);var V=w==="richText"?`
`:"<br/>",$=E.join(V);this._showOrMove(m,function(){this._updateContentNotChangedOnAxis(i,S)?this._updatePosition(m,D,v[0],v[1],this._tooltipContent,S):this._showTooltipContent(m,$,S,Math.random()+"",v[0],v[1],D,null,M)})},a.prototype._showSeriesItemTooltip=function(i,l,c){var d=this._ecModel,v=bt(l),m=v.seriesIndex,w=d.getSeriesByIndex(m),S=v.dataModel||w,x=v.dataIndex,E=v.dataType,M=S.getData(E),D=this._renderMode,k=i.positionDefault,Q=YC([M.getItemModel(x),S,w&&(w.coordinateSystem||{}).model],this._tooltipModel,k?{position:k}:null),V=Q.get("trigger");if(!(V!=null&&V!=="item")){var $=S.getDataParams(x,E),Z=new EN;$.marker=Z.makeTooltipMarker("item",n0($.color),D);var ee=Ste(S.formatTooltip(x,!1,E)),fe=Q.get("order"),ve=Q.get("valueFormatter"),ge=ee.frag,Se=ge?Hte(ve?ie({valueFormatter:ve},ge):ge,Z,D,fe,d.get("useUTC"),Q.get("textStyle")):ee.text,Ee="item_"+S.name+"_"+x;this._showOrMove(Q,function(){this._showTooltipContent(Q,Se,$,Ee,i.offsetX,i.offsetY,i.position,i.target,Z)}),c({type:"showTip",dataIndexInside:x,dataIndex:M.getRawIndex(x),seriesIndex:m,from:this.uid})}},a.prototype._showComponentItemTooltip=function(i,l,c){var d=this._renderMode==="html",v=bt(l),m=v.tooltipConfig,w=m.option||{},S=w.encodeHTMLContent;if(Re(w)){var x=w;w={content:x,formatter:x},S=!0}S&&d&&w.content&&(w=ae(w),w.content=yo(w.content));var E=[w],M=this._ecModel.getComponent(v.componentMainType,v.componentIndex);M&&E.push(M),E.push({formatter:w.content});var D=i.positionDefault,k=YC(E,this._tooltipModel,D?{position:D}:null),Q=k.get("content"),V=Math.random()+"",$=new EN;this._showOrMove(k,function(){var Z=ae(k.get("formatterParams")||{});this._showTooltipContent(k,Q,Z,V,i.offsetX,i.offsetY,i.position,l,$)}),c({type:"showTip",from:this.uid})},a.prototype._showTooltipContent=function(i,l,c,d,v,m,w,S,x){if(this._ticket="",!(!i.get("showContent")||!i.get("show"))){var E=this._tooltipContent;E.setEnterable(i.get("enterable"));var M=i.get("formatter");w=w||i.get("position");var D=l,k=this._getNearestPoint([v,m],c,i.get("trigger"),i.get("borderColor")),Q=k.color;if(M)if(Re(M)){var V=i.ecModel.get("useUTC"),$=Qe(c)?c[0]:c,Z=$&&$.axisType&&$.axisType.indexOf("time")>=0;D=M,Z&&(D=Kx($.axisValue,D,V)),D=iN(D,c,!0)}else if(qe(M)){var ee=Ue(function(fe,ve){fe===this._ticket&&(E.setContent(ve,x,i,Q,w),this._updatePosition(i,w,v,m,E,c,S))},this);this._ticket=d,D=M(c,d,ee)}else D=M;E.setContent(D,x,i,Q,w),E.show(i,Q),this._updatePosition(i,w,v,m,E,c,S)}},a.prototype._getNearestPoint=function(i,l,c,d){if(c==="axis"||Qe(l))return{color:d||(this._renderMode==="html"?"#fff":"none")};if(!Qe(l))return{color:d||l.color||l.borderColor}},a.prototype._updatePosition=function(i,l,c,d,v,m,w){var S=this._api.getWidth(),x=this._api.getHeight();l=l||i.get("position");var E=v.getSize(),M=i.get("align"),D=i.get("verticalAlign"),k=w&&w.getBoundingRect().clone();if(w&&k.applyTransform(w.transform),qe(l)&&(l=l([c,d],m,v.el,k,{viewSize:[S,x],contentSize:E.slice()})),Qe(l))c=vr(l[0],S),d=vr(l[1],x);else if(Pe(l)){var Q=l;Q.width=E[0],Q.height=E[1];var V=ol(Q,{width:S,height:x});c=V.x,d=V.y,M=null,D=null}else if(Re(l)&&w){var $=kYe(l,k,E,i.get("borderWidth"));c=$[0],d=$[1]}else{var $=PYe(c,d,v,S,x,M?null:20,D?null:20);c=$[0],d=$[1]}if(M&&(c-=jue(M)?E[0]/2:M==="right"?E[0]:0),D&&(d-=jue(D)?E[1]/2:D==="bottom"?E[1]:0),kue(i)){var $=OYe(c,d,v,S,x);c=$[0],d=$[1]}v.moveTo(c,d)},a.prototype._updateContentNotChangedOnAxis=function(i,l){var c=this._lastDataByCoordSys,d=this._cbParamsList,v=!!c&&c.length===i.length;return v&&ne(c,function(m,w){var S=m.dataByAxis||[],x=i[w]||{},E=x.dataByAxis||[];v=v&&S.length===E.length,v&&ne(S,function(M,D){var k=E[D]||{},Q=M.seriesDataIndices||[],V=k.seriesDataIndices||[];v=v&&M.value===k.value&&M.axisType===k.axisType&&M.axisId===k.axisId&&Q.length===V.length,v&&ne(Q,function($,Z){var ee=V[Z];v=v&&$.seriesIndex===ee.seriesIndex&&$.dataIndex===ee.dataIndex}),d&&ne(M.seriesDataIndices,function($){var Z=$.seriesIndex,ee=l[Z],fe=d[Z];ee&&fe&&fe.data!==ee.data&&(v=!1)})})}),this._lastDataByCoordSys=i,this._cbParamsList=l,!!v},a.prototype._hide=function(i){this._lastDataByCoordSys=null,i({type:"hideTip",from:this.uid})},a.prototype.dispose=function(i,l){h.node||!l.getDom()||(iC(this,"_updatePosition"),this._tooltipContent.dispose(),D6("itemTooltip",l))},a.type="tooltip",a}(ho);function YC(s,a,i){var l=a.ecModel,c;i?(c=new ta(i,l,l),c=new ta(a.option,c,l)):c=a;for(var d=s.length-1;d>=0;d--){var v=s[d];v&&(v instanceof ta&&(v=v.get("tooltip",!0)),Re(v)&&(v={formatter:v}),v&&(c=new ta(v,c,l)))}return c}function Gue(s,a){return s.dispatchAction||Ue(a.dispatchAction,a)}function PYe(s,a,i,l,c,d,v){var m=i.getSize(),w=m[0],S=m[1];return d!=null&&(s+w+d+2>l?s-=w+d:s+=d),v!=null&&(a+S+v>c?a-=S+v:a+=v),[s,a]}function OYe(s,a,i,l,c){var d=i.getSize(),v=d[0],m=d[1];return s=Math.min(s+v,l)-v,a=Math.min(a+m,c)-m,s=Math.max(s,0),a=Math.max(a,0),[s,a]}function kYe(s,a,i,l){var c=i[0],d=i[1],v=Math.ceil(Math.SQRT2*l)+8,m=0,w=0,S=a.width,x=a.height;switch(s){case"inside":m=a.x+S/2-c/2,w=a.y+x/2-d/2;break;case"top":m=a.x+S/2-c/2,w=a.y-d-v;break;case"bottom":m=a.x+S/2-c/2,w=a.y+x+v;break;case"left":m=a.x-c-v,w=a.y+x/2-d/2;break;case"right":m=a.x+S+v,w=a.y+x/2-d/2}return[m,w]}function jue(s){return s==="center"||s==="middle"}function FYe(s,a,i){var l=Iw(s).queryOptionMap,c=l.keys()[0];if(!(!c||c==="series")){var d=jg(a,c,l.get(c),{useDefault:!1,enableAll:!1,enableNone:!1}),v=d.models[0];if(v){var m=i.getViewOfComponentModel(v),w;if(m.group.traverse(function(S){var x=bt(S).tooltipConfig;if(x&&x.name===s.name)return w=S,!0}),w)return{componentMainType:c,componentIndex:v.componentIndex,el:w}}}}function NYe(s){ui($C),s.registerComponentModel(wYe),s.registerComponentView(RYe),s.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ct),s.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ct)}var UYe=["rect","polygon","keep","clear"];function HYe(s,a){var i=Ni(s?s.brush:[]);if(i.length){var l=[];ne(i,function(w){var S=w.hasOwnProperty("toolbox")?w.toolbox:[];S instanceof Array&&(l=l.concat(S))});var c=s&&s.toolbox;Qe(c)&&(c=c[0]),c||(c={feature:{}},s.toolbox=[c]);var d=c.feature||(c.feature={}),v=d.brush||(d.brush={}),m=v.type||(v.type=[]);m.push.apply(m,l),QYe(m),a&&!m.length&&m.push.apply(m,UYe)}}function QYe(s){var a={};ne(s,function(i){a[i]=1}),s.length=0,ne(a,function(i,l){s.push(l)})}var que=ne;function Wue(s){if(s){for(var a in s)if(s.hasOwnProperty(a))return!0}}function X6(s,a,i){var l={};return que(a,function(d){var v=l[d]=c();que(s[d],function(m,w){if(nu.isValidType(w)){var S={type:w,visual:m};i&&i(S,d),v[w]=new nu(S),w==="opacity"&&(S=ae(S),S.type="colorAlpha",v.__hidden.__alphaForOpacity=new nu(S))}})}),l;function c(){var d=function(){};d.prototype.__hidden=d.prototype;var v=new d;return v}}function $ue(s,a,i){var l;ne(i,function(c){a.hasOwnProperty(c)&&Wue(a[c])&&(l=!0)}),l&&ne(i,function(c){a.hasOwnProperty(c)&&Wue(a[c])?s[c]=ae(a[c]):delete s[c]})}function VYe(s,a,i,l,c,d){var v={};ne(s,function(E){var M=nu.prepareVisualTypes(a[E]);v[E]=M});var m;function w(E){return LN(i,m,E)}function S(E,M){fre(i,m,E,M)}i.each(x);function x(E,M){m=E;var D=i.getRawDataItem(m);if(!(D&&D.visualMap===!1))for(var k=l.call(c,E),Q=a[k],V=v[k],$=0,Z=V.length;$<Z;$++){var ee=V[$];Q[ee]&&Q[ee].applyVisual(E,w,S)}}}function zYe(s,a,i,l){var c={};return ne(s,function(d){var v=nu.prepareVisualTypes(a[d]);c[d]=v}),{progress:function(v,m){var w;l!=null&&(w=m.getDimensionIndex(l));function S(ve){return LN(m,E,ve)}function x(ve,ge){fre(m,E,ve,ge)}for(var E,M=m.getStore();(E=v.next())!=null;){var D=m.getRawDataItem(E);if(!(D&&D.visualMap===!1))for(var k=l!=null?M.get(w,E):E,Q=i(k),V=a[Q],$=c[Q],Z=0,ee=$.length;Z<ee;Z++){var fe=$[Z];V[fe]&&V[fe].applyVisual(k,S,x)}}}}}function GYe(s){var a=s.brushType,i={point:function(l){return Kue[a].point(l,i,s)},rect:function(l){return Kue[a].rect(l,i,s)}};return i}var Kue={lineX:Yue(0),lineY:Yue(1),rect:{point:function(s,a,i){return s&&i.boundingRect.contain(s[0],s[1])},rect:function(s,a,i){return s&&i.boundingRect.intersect(s)}},polygon:{point:function(s,a,i){return s&&i.boundingRect.contain(s[0],s[1])&&g0(i.range,s[0],s[1])},rect:function(s,a,i){var l=i.range;if(!s||l.length<=1)return!1;var c=s.x,d=s.y,v=s.width,m=s.height,w=l[0];if(g0(l,c,d)||g0(l,c+v,d)||g0(l,c,d+m)||g0(l,c+v,d+m)||Bn.create(s).contain(w[0],w[1])||qx(c,d,c+v,d,l)||qx(c,d,c,d+m,l)||qx(c+v,d,c+v,d+m,l)||qx(c,d+m,c+v,d+m,l))return!0}}};function Yue(s){var a=["x","y"],i=["width","height"];return{point:function(l,c,d){if(l){var v=d.range,m=l[s];return XC(m,v)}},rect:function(l,c,d){if(l){var v=d.range,m=[l[a[s]],l[a[s]]+l[i[s]]];return m[1]<m[0]&&m.reverse(),XC(m[0],v)||XC(m[1],v)||XC(v[0],m)||XC(v[1],m)}}}}function XC(s,a){return a[0]<=s&&s<=a[1]}var Xue=["inBrush","outOfBrush"],Z6="__ecBrushSelect",J6="__ecInBrushSelectEvent";function Zue(s){s.eachComponent({mainType:"brush"},function(a){var i=a.brushTargetManager=new j6(a.option,s);i.setInputRanges(a.areas,s)})}function jYe(s,a,i){var l=[],c,d;s.eachComponent({mainType:"brush"},function(v){i&&i.type==="takeGlobalCursor"&&v.setBrushOption(i.key==="brush"?i.brushOption:{brushType:!1})}),Zue(s),s.eachComponent({mainType:"brush"},function(v,m){var w={brushId:v.id,brushIndex:m,brushName:v.name,areas:ae(v.areas),selected:[]};l.push(w);var S=v.option,x=S.brushLink,E=[],M=[],D=[],k=!1;m||(c=S.throttleType,d=S.throttleDelay);var Q=xe(v.areas,function(ve){var ge=KYe[ve.brushType],Se=he({boundingRect:ge?ge(ve):void 0},ve);return Se.selectors=GYe(Se),Se}),V=X6(v.option,Xue,function(ve){ve.mappingMethod="fixed"});Qe(x)&&ne(x,function(ve){E[ve]=1});function $(ve){return x==="all"||!!E[ve]}function Z(ve){return!!ve.length}s.eachSeries(function(ve,ge){var Se=D[ge]=[];ve.subType==="parallel"?ee(ve,ge):fe(ve,ge,Se)});function ee(ve,ge){var Se=ve.coordinateSystem;k=k||Se.hasAxisBrushed(),$(ge)&&Se.eachActiveState(ve.getData(),function(Ee,Ie){Ee==="active"&&(M[Ie]=1)})}function fe(ve,ge,Se){if(!(!ve.brushSelector||$Ye(v,ge))&&(ne(Q,function(Ie){v.brushTargetManager.controlSeries(Ie,ve,s)&&Se.push(Ie),k=k||Z(Se)}),$(ge)&&Z(Se))){var Ee=ve.getData();Ee.each(function(Ie){Jue(ve,Se,Ee,Ie)&&(M[Ie]=1)})}}s.eachSeries(function(ve,ge){var Se={seriesId:ve.id,seriesIndex:ge,seriesName:ve.name,dataIndex:[]};w.selected.push(Se);var Ee=D[ge],Ie=ve.getData(),Le=$(ge)?function(Fe){return M[Fe]?(Se.dataIndex.push(Ie.getRawIndex(Fe)),"inBrush"):"outOfBrush"}:function(Fe){return Jue(ve,Ee,Ie,Fe)?(Se.dataIndex.push(Ie.getRawIndex(Fe)),"inBrush"):"outOfBrush"};($(ge)?k:Z(Ee))&&VYe(Xue,V,Ie,Le)})}),qYe(a,c,d,l,i)}function qYe(s,a,i,l,c){if(c){var d=s.getZr();if(!d[J6]){d[Z6]||(d[Z6]=WYe);var v=vb(d,Z6,i,a);v(s,l)}}}function WYe(s,a){if(!s.isDisposed()){var i=s.getZr();i[J6]=!0,s.dispatchAction({type:"brushSelect",batch:a}),i[J6]=!1}}function Jue(s,a,i,l){for(var c=0,d=a.length;c<d;c++){var v=a[c];if(s.brushSelector(l,i,v.selectors,v))return!0}}function $Ye(s,a){var i=s.option.seriesIndex;return i!=null&&i!=="all"&&(Qe(i)?oe(i,a)<0:a!==i)}var KYe={rect:function(s){return ece(s.range)},polygon:function(s){for(var a,i=s.range,l=0,c=i.length;l<c;l++){a=a||[[1/0,-1/0],[1/0,-1/0]];var d=i[l];d[0]<a[0][0]&&(a[0][0]=d[0]),d[0]>a[0][1]&&(a[0][1]=d[0]),d[1]<a[1][0]&&(a[1][0]=d[1]),d[1]>a[1][1]&&(a[1][1]=d[1])}return a&&ece(a)}};function ece(s){return new Bn(s[0][0],s[1][0],s[0][1]-s[0][0],s[1][1]-s[1][0])}var YYe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.init=function(i,l){this.ecModel=i,this.api=l,this.model,(this._brushController=new j4(l.getZr())).on("brush",Ue(this._onBrush,this)).mount()},a.prototype.render=function(i,l,c,d){this.model=i,this._updateController(i,l,c,d)},a.prototype.updateTransform=function(i,l,c,d){Zue(l),this._updateController(i,l,c,d)},a.prototype.updateVisual=function(i,l,c,d){this.updateTransform(i,l,c,d)},a.prototype.updateView=function(i,l,c,d){this._updateController(i,l,c,d)},a.prototype._updateController=function(i,l,c,d){(!d||d.$from!==i.id)&&this._brushController.setPanels(i.brushTargetManager.makePanelOpts(c)).enableBrush(i.brushOption).updateCovers(i.areas.slice())},a.prototype.dispose=function(){this._brushController.dispose()},a.prototype._onBrush=function(i){var l=this.model.id,c=this.model.brushTargetManager.setOutputRanges(i.areas,this.ecModel);(!i.isEnd||i.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:l,areas:ae(c),$from:l}),i.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:l,areas:ae(c),$from:l})},a.type="brush",a}(ho),XYe="#ddd",ZYe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.areas=[],i.brushOption={},i}return a.prototype.optionUpdated=function(i,l){var c=this.option;!l&&$ue(c,i,["inBrush","outOfBrush"]);var d=c.inBrush=c.inBrush||{};c.outOfBrush=c.outOfBrush||{color:XYe},d.hasOwnProperty("liftZ")||(d.liftZ=5)},a.prototype.setAreas=function(i){_t(Qe(i)),ne(i,function(l){_t(l.brushType,"Illegal areas")}),i&&(this.areas=xe(i,function(l){return tce(this.option,l)},this))},a.prototype.setBrushOption=function(i){this.brushOption=tce(this.option,i),this.brushType=this.brushOption.brushType},a.type="brush",a.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],a.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},a}(li);function tce(s,a){return le({brushType:s.brushType,brushMode:s.brushMode,transformable:s.transformable,brushStyle:new ta(s.brushStyle).getItemStyle(),removeOnClick:s.removeOnClick,z:s.z},a,!0)}var JYe=["rect","polygon","lineX","lineY","keep","clear"],eXe=function(s){o(a,s);function a(){return s!==null&&s.apply(this,arguments)||this}return a.prototype.render=function(i,l,c){var d,v,m;l.eachComponent({mainType:"brush"},function(w){d=w.brushType,v=w.brushOption.brushMode||"single",m=m||!!w.areas.length}),this._brushType=d,this._brushMode=v,ne(i.get("type",!0),function(w){i.setIconStatus(w,(w==="keep"?v==="multiple":w==="clear"?m:w===d)?"emphasis":"normal")})},a.prototype.updateView=function(i,l,c){this.render(i,l,c)},a.prototype.getIcons=function(){var i=this.model,l=i.get("icon",!0),c={};return ne(i.get("type",!0),function(d){l[d]&&(c[d]=l[d])}),c},a.prototype.onclick=function(i,l,c){var d=this._brushType,v=this._brushMode;c==="clear"?(l.dispatchAction({type:"axisAreaSelect",intervals:[]}),l.dispatchAction({type:"brush",command:"clear",areas:[]})):l.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:c==="keep"?d:d===c?!1:c,brushMode:c==="keep"?v==="multiple"?"single":"multiple":v}})},a.getDefaultOption=function(i){var l={show:!0,type:JYe.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:i.getLocaleModel().get(["toolbox","brush","title"])};return l},a}(hd);function tXe(s){s.registerComponentView(YYe),s.registerComponentModel(ZYe),s.registerPreprocessor(HYe),s.registerVisual(s.PRIORITY.VISUAL.BRUSH,jYe),s.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(a,i){i.eachComponent({mainType:"brush",query:a},function(l){l.setAreas(a.areas)})}),s.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Ct),s.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Ct),Hb("brush",eXe)}var rXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.layoutMode={type:"box",ignoreSize:!0},i}return a.type="title",a.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"}},a}(li),nXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.render=function(i,l,c){if(this.group.removeAll(),!!i.get("show")){var d=this.group,v=i.getModel("textStyle"),m=i.getModel("subtextStyle"),w=i.get("textAlign"),S=It(i.get("textBaseline"),i.get("textVerticalAlign")),x=new be({style:Xa(v,{text:i.get("text"),fill:v.getTextColor()},{disableBox:!0}),z2:10}),E=x.getBoundingRect(),M=i.get("subtext"),D=new be({style:Xa(m,{text:M,fill:m.getTextColor(),y:E.height+i.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),k=i.get("link"),Q=i.get("sublink"),V=i.get("triggerEvent",!0);x.silent=!k&&!V,D.silent=!Q&&!V,k&&x.on("click",function(){_I(k,"_"+i.get("target"))}),Q&&D.on("click",function(){_I(Q,"_"+i.get("subtarget"))}),bt(x).eventData=bt(D).eventData=V?{componentType:"title",componentIndex:i.componentIndex}:null,d.add(x),M&&d.add(D);var $=d.getBoundingRect(),Z=i.getBoxLayoutParams();Z.width=$.width,Z.height=$.height;var ee=ol(Z,{width:c.getWidth(),height:c.getHeight()},i.get("padding"));w||(w=i.get("left")||i.get("right"),w==="middle"&&(w="center"),w==="right"?ee.x+=ee.width:w==="center"&&(ee.x+=ee.width/2)),S||(S=i.get("top")||i.get("bottom"),S==="center"&&(S="middle"),S==="bottom"?ee.y+=ee.height:S==="middle"&&(ee.y+=ee.height/2),S=S||"top"),d.x=ee.x,d.y=ee.y,d.markRedraw();var fe={align:w,verticalAlign:S};x.setStyle(fe),D.setStyle(fe),$=d.getBoundingRect();var ve=ee.margin,ge=i.getItemStyle(["color","opacity"]);ge.fill=i.get("backgroundColor");var Se=new R({shape:{x:$.x-ve[3],y:$.y-ve[0],width:$.width+ve[1]+ve[3],height:$.height+ve[0]+ve[2],r:i.get("borderRadius")},style:ge,subPixelOptimize:!0,silent:!0});d.add(Se)}},a.type="title",a}(ho);function iXe(s){s.registerComponentModel(rXe),s.registerComponentView(nXe)}var rce=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.layoutMode="box",i}return a.prototype.init=function(i,l,c){this.mergeDefaultAndTheme(i,c),this._initData()},a.prototype.mergeOption=function(i){s.prototype.mergeOption.apply(this,arguments),this._initData()},a.prototype.setCurrentIndex=function(i){i==null&&(i=this.option.currentIndex);var l=this._data.count();this.option.loop?i=(i%l+l)%l:(i>=l&&(i=l-1),i<0&&(i=0)),this.option.currentIndex=i},a.prototype.getCurrentIndex=function(){return this.option.currentIndex},a.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},a.prototype.setPlayState=function(i){this.option.autoPlay=!!i},a.prototype.getPlayState=function(){return!!this.option.autoPlay},a.prototype._initData=function(){var i=this.option,l=i.data||[],c=i.axisType,d=this._names=[],v;c==="category"?(v=[],ne(l,function(S,x){var E=va(rA(S),""),M;Pe(S)?(M=ae(S),M.value=x):M=x,v.push(M),d.push(E)})):v=l;var m={category:"ordinal",time:"time",value:"number"}[c]||"number",w=this._data=new yc([{name:"value",type:m}],this);w.initData(v,d)},a.prototype.getData=function(){return this._data},a.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},a.type="timeline",a.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:[]},a}(li),nce=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.type="timeline.slider",a.defaultOption=sm(rce.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:[]}),a}(rce);_e(nce,BI.prototype);var aXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.type="timeline",a}(ho),oXe=function(s){o(a,s);function a(i,l,c,d){var v=s.call(this,i,l,c)||this;return v.type=d||"value",v}return a.prototype.getLabelModel=function(){return this.model.getModel("label")},a.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},a}(od),eH=Math.PI,ice=Ri(),sXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.init=function(i,l){this.api=l},a.prototype.render=function(i,l,c){if(this.model=i,this.api=c,this.ecModel=l,this.group.removeAll(),i.get("show",!0)){var d=this._layout(i,c),v=this._createGroup("_mainGroup"),m=this._createGroup("_labelGroup"),w=this._axis=this._createAxis(d,i);i.formatTooltip=function(S){var x=w.scale.getLabel({value:S});return tu("nameValue",{noName:!0,value:x})},ne(["AxisLine","AxisTick","Control","CurrentPointer"],function(S){this["_render"+S](d,v,w,i)},this),this._renderAxisLabel(d,m,w,i),this._position(d,i)}this._doPlayStop(),this._updateTicksStatus()},a.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},a.prototype.dispose=function(){this._clearTimer()},a.prototype._layout=function(i,l){var c=i.get(["label","position"]),d=i.get("orient"),v=uXe(i,l),m;c==null||c==="auto"?m=d==="horizontal"?v.y+v.height/2<l.getHeight()/2?"-":"+":v.x+v.width/2<l.getWidth()/2?"+":"-":Re(c)?m={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[d][c]:m=c;var w={horizontal:"center",vertical:m>=0||m==="+"?"left":"right"},S={horizontal:m>=0||m==="+"?"top":"bottom",vertical:"middle"},x={horizontal:0,vertical:eH/2},E=d==="vertical"?v.height:v.width,M=i.getModel("controlStyle"),D=M.get("show",!0),k=D?M.get("itemSize"):0,Q=D?M.get("itemGap"):0,V=k+Q,$=i.get(["label","rotate"])||0;$=$*eH/180;var Z,ee,fe,ve=M.get("position",!0),ge=D&&M.get("showPlayBtn",!0),Se=D&&M.get("showPrevBtn",!0),Ee=D&&M.get("showNextBtn",!0),Ie=0,Le=E;ve==="left"||ve==="bottom"?(ge&&(Z=[0,0],Ie+=V),Se&&(ee=[Ie,0],Ie+=V),Ee&&(fe=[Le-k,0],Le-=V)):(ge&&(Z=[Le-k,0],Le-=V),Se&&(ee=[0,0],Ie+=V),Ee&&(fe=[Le-k,0],Le-=V));var Fe=[Ie,Le];return i.get("inverse")&&Fe.reverse(),{viewRect:v,mainLength:E,orient:d,rotation:x[d],labelRotation:$,labelPosOpt:m,labelAlign:i.get(["label","align"])||w[d],labelBaseline:i.get(["label","verticalAlign"])||i.get(["label","baseline"])||S[d],playPosition:Z,prevBtnPosition:ee,nextBtnPosition:fe,axisExtent:Fe,controlSize:k,controlGap:Q}},a.prototype._position=function(i,l){var c=this._mainGroup,d=this._labelGroup,v=i.viewRect;if(i.orient==="vertical"){var m=gn(),w=v.x,S=v.y+v.height;Ai(m,m,[-w,-S]),so(m,m,-eH/2),Ai(m,m,[w,S]),v=v.clone(),v.applyTransform(m)}var x=Z(v),E=Z(c.getBoundingRect()),M=Z(d.getBoundingRect()),D=[c.x,c.y],k=[d.x,d.y];k[0]=D[0]=x[0][0];var Q=i.labelPosOpt;if(Q==null||Re(Q)){var V=Q==="+"?0:1;ee(D,E,x,1,V),ee(k,M,x,1,1-V)}else{var V=Q>=0?0:1;ee(D,E,x,1,V),k[1]=D[1]+Q}c.setPosition(D),d.setPosition(k),c.rotation=d.rotation=i.rotation,$(c),$(d);function $(fe){fe.originX=x[0][0]-fe.x,fe.originY=x[1][0]-fe.y}function Z(fe){return[[fe.x,fe.x+fe.width],[fe.y,fe.y+fe.height]]}function ee(fe,ve,ge,Se,Ee){fe[Se]+=ge[Se][Ee]-ve[Se][Ee]}},a.prototype._createAxis=function(i,l){var c=l.getData(),d=l.get("axisType"),v=lXe(l,d);v.getTicks=function(){return c.mapArray(["value"],function(S){return{value:S}})};var m=c.getDataExtent("value");v.setExtent(m[0],m[1]),v.calcNiceTicks();var w=new oXe("value",v,i.axisExtent,d);return w.model=l,w},a.prototype._createGroup=function(i){var l=this[i]=new Lr;return this.group.add(l),l},a.prototype._renderAxisLine=function(i,l,c,d){var v=c.getExtent();if(d.get(["lineStyle","show"])){var m=new Ll({shape:{x1:v[0],y1:0,x2:v[1],y2:0},style:ie({lineCap:"round"},d.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});l.add(m);var w=this._progressLine=new Ll({shape:{x1:v[0],x2:this._currentPointer?this._currentPointer.x:v[0],y1:0,y2:0},style:he({lineCap:"round",lineWidth:m.style.lineWidth},d.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});l.add(w)}},a.prototype._renderAxisTick=function(i,l,c,d){var v=this,m=d.getData(),w=c.scale.getTicks();this._tickSymbols=[],ne(w,function(S){var x=c.dataToCoord(S.value),E=m.getItemModel(S.value),M=E.getModel("itemStyle"),D=E.getModel(["emphasis","itemStyle"]),k=E.getModel(["progress","itemStyle"]),Q={x,y:0,onclick:Ue(v._changeTimeline,v,S.value)},V=ace(E,M,l,Q);V.ensureState("emphasis").style=D.getItemStyle(),V.ensureState("progress").style=k.getItemStyle(),rm(V);var $=bt(V);E.get("tooltip")?($.dataIndex=S.value,$.dataModel=d):$.dataIndex=$.dataModel=null,v._tickSymbols.push(V)})},a.prototype._renderAxisLabel=function(i,l,c,d){var v=this,m=c.getLabelModel();if(m.get("show")){var w=d.getData(),S=c.getViewLabels();this._tickLabels=[],ne(S,function(x){var E=x.tickValue,M=w.getItemModel(E),D=M.getModel("label"),k=M.getModel(["emphasis","label"]),Q=M.getModel(["progress","label"]),V=c.dataToCoord(x.tickValue),$=new be({x:V,y:0,rotation:i.labelRotation-i.rotation,onclick:Ue(v._changeTimeline,v,E),silent:!1,style:Xa(D,{text:x.formattedLabel,align:i.labelAlign,verticalAlign:i.labelBaseline})});$.ensureState("emphasis").style=Xa(k),$.ensureState("progress").style=Xa(Q),l.add($),rm($),ice($).dataIndex=E,v._tickLabels.push($)})}},a.prototype._renderControl=function(i,l,c,d){var v=i.controlSize,m=i.rotation,w=d.getModel("controlStyle").getItemStyle(),S=d.getModel(["emphasis","controlStyle"]).getItemStyle(),x=d.getPlayState(),E=d.get("inverse",!0);M(i.nextBtnPosition,"next",Ue(this._changeTimeline,this,E?"-":"+")),M(i.prevBtnPosition,"prev",Ue(this._changeTimeline,this,E?"+":"-")),M(i.playPosition,x?"stop":"play",Ue(this._handlePlayClick,this,!x),!0);function M(D,k,Q,V){if(D){var $=tr(It(d.get(["controlStyle",k+"BtnSize"]),v),v),Z=[0,-$/2,$,$],ee=cXe(d,k+"Icon",Z,{x:D[0],y:D[1],originX:v/2,originY:0,rotation:V?-m:0,rectHover:!0,style:w,onclick:Q});ee.ensureState("emphasis").style=S,l.add(ee),rm(ee)}}},a.prototype._renderCurrentPointer=function(i,l,c,d){var v=d.getData(),m=d.getCurrentIndex(),w=v.getItemModel(m).getModel("checkpointStyle"),S=this,x={onCreate:function(E){E.draggable=!0,E.drift=Ue(S._handlePointerDrag,S),E.ondragend=Ue(S._handlePointerDragend,S),oce(E,S._progressLine,m,c,d,!0)},onUpdate:function(E){oce(E,S._progressLine,m,c,d)}};this._currentPointer=ace(w,w,this._mainGroup,{},this._currentPointer,x)},a.prototype._handlePlayClick=function(i){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:i,from:this.uid})},a.prototype._handlePointerDrag=function(i,l,c){this._clearTimer(),this._pointerChangeTimeline([c.offsetX,c.offsetY])},a.prototype._handlePointerDragend=function(i){this._pointerChangeTimeline([i.offsetX,i.offsetY],!0)},a.prototype._pointerChangeTimeline=function(i,l){var c=this._toAxisCoord(i)[0],d=this._axis,v=aa(d.getExtent().slice());c>v[1]&&(c=v[1]),c<v[0]&&(c=v[0]),this._currentPointer.x=c,this._currentPointer.markRedraw();var m=this._progressLine;m&&(m.shape.x2=c,m.dirty());var w=this._findNearestTick(c),S=this.model;(l||w!==S.getCurrentIndex()&&S.get("realtime"))&&this._changeTimeline(w)},a.prototype._doPlayStop=function(){var i=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var l=i.model;i._changeTimeline(l.getCurrentIndex()+(l.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},a.prototype._toAxisCoord=function(i){var l=this._mainGroup.getLocalTransform();return AA(i,l,!0)},a.prototype._findNearestTick=function(i){var l=this.model.getData(),c=1/0,d,v=this._axis;return l.each(["value"],function(m,w){var S=v.dataToCoord(m),x=Math.abs(S-i);x<c&&(c=x,d=w)}),d},a.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},a.prototype._changeTimeline=function(i){var l=this.model.getCurrentIndex();i==="+"?i=l+1:i==="-"&&(i=l-1),this.api.dispatchAction({type:"timelineChange",currentIndex:i,from:this.uid})},a.prototype._updateTicksStatus=function(){var i=this.model.getCurrentIndex(),l=this._tickSymbols,c=this._tickLabels;if(l)for(var d=0;d<l.length;d++)l&&l[d]&&l[d].toggleState("progress",d<i);if(c)for(var d=0;d<c.length;d++)c&&c[d]&&c[d].toggleState("progress",ice(c[d]).dataIndex<=i)},a.type="timeline.slider",a}(aXe);function lXe(s,a){if(a=a||s.get("type"),a)switch(a){case"category":return new rL({ordinalMeta:s.getCategories(),extent:[1/0,-1/0]});case"time":return new cU({locale:s.ecModel.getLocaleModel(),useUTC:s.ecModel.get("useUTC")});default:return new Vp}}function uXe(s,a){return ol(s.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()},s.get("padding"))}function cXe(s,a,i,l){var c=l.style,d=rb(s.get(["controlStyle",a]),l||{},new Bn(i[0],i[1],i[2],i[3]));return c&&d.setStyle(c),d}function ace(s,a,i,l,c,d){var v=a.get("color");if(c)c.setColor(v),i.add(c),d&&d.onUpdate(c);else{var m=s.get("symbol");c=Os(m,-1,-1,2,2,v),c.setStyle("strokeNoScale",!0),i.add(c),d&&d.onCreate(c)}var w=a.getItemStyle(["color"]);c.setStyle(w),l=le({rectHover:!0,z2:100},l,!0);var S=gb(s.get("symbolSize"));l.scaleX=S[0]/2,l.scaleY=S[1]/2;var x=f0(s.get("symbolOffset"),S);x&&(l.x=(l.x||0)+x[0],l.y=(l.y||0)+x[1]);var E=s.get("symbolRotate");return l.rotation=(E||0)*Math.PI/180||0,c.attr(l),c.updateTransform(),c}function oce(s,a,i,l,c,d){if(!s.dragging){var v=c.getModel("checkpointStyle"),m=l.dataToCoord(c.getData().get("value",i));if(d||!v.get("animation",!0))s.attr({x:m,y:0}),a&&a.attr({shape:{x2:m}});else{var w={duration:v.get("animationDuration",!0),easing:v.get("animationEasing",!0)};s.stopAnimation(null,!0),s.animateTo({x:m,y:0},w),a&&a.animateTo({shape:{x2:m}},w)}}}function fXe(s){s.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(a,i,l){var c=i.getComponent("timeline");return c&&a.currentIndex!=null&&(c.setCurrentIndex(a.currentIndex),!c.get("loop",!0)&&c.isIndexMax()&&c.getPlayState()&&(c.setPlayState(!1),l.dispatchAction({type:"timelinePlayChange",playState:!1,from:a.from}))),i.resetOption("timeline",{replaceMerge:c.get("replaceMerge",!0)}),he({currentIndex:c.option.currentIndex},a)}),s.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(a,i){var l=i.getComponent("timeline");l&&a.playState!=null&&l.setPlayState(a.playState)})}function hXe(s){var a=s&&s.timeline;Qe(a)||(a=a?[a]:[]),ne(a,function(i){i&&dXe(i)})}function dXe(s){var a=s.type,i={number:"value",time:"time"};if(i[a]&&(s.axisType=i[a],delete s.type),sce(s),F0(s,"controlPosition")){var l=s.controlStyle||(s.controlStyle={});F0(l,"position")||(l.position=s.controlPosition),l.position==="none"&&!F0(l,"show")&&(l.show=!1,delete l.position),delete s.controlPosition}ne(s.data||[],function(c){Pe(c)&&!Qe(c)&&(!F0(c,"value")&&F0(c,"name")&&(c.value=c.name),sce(c))})}function sce(s){var a=s.itemStyle||(s.itemStyle={}),i=a.emphasis||(a.emphasis={}),l=s.label||s.label||{},c=l.normal||(l.normal={}),d={normal:1,emphasis:1};ne(l,function(v,m){!d[m]&&!F0(c,m)&&(c[m]=v)}),i.label&&!F0(l,"emphasis")&&(l.emphasis=i.label,delete i.label)}function F0(s,a){return s.hasOwnProperty(a)}function AXe(s){s.registerComponentModel(nce),s.registerComponentView(sXe),s.registerSubTypeDefaulter("timeline",function(){return"slider"}),fXe(s),s.registerPreprocessor(hXe)}function tH(s,a){if(!s)return!1;for(var i=Qe(s)?s:[s],l=0;l<i.length;l++)if(i[l]&&i[l][a])return!0;return!1}function rM(s){zh(s,"label",["show"])}var nM=Ri(),$p=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.createdBySelf=!1,i}return a.prototype.init=function(i,l,c){if(this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(i,c),this._mergeOption(i,c,!1,!0)},a.prototype.isAnimationEnabled=function(){if(h.node)return!1;var i=this.__hostSeries;return this.getShallow("animation")&&i&&i.isAnimationEnabled()},a.prototype.mergeOption=function(i,l){this._mergeOption(i,l,!1,!1)},a.prototype._mergeOption=function(i,l,c,d){var v=this.mainType;c||l.eachSeries(function(m){var w=m.get(this.mainType,!0),S=nM(m)[v];if(!w||!w.data){nM(m)[v]=null;return}S?S._mergeOption(w,l,!0):(d&&rM(w),ne(w.data,function(x){x instanceof Array?(rM(x[0]),rM(x[1])):rM(x)}),S=this.createMarkerModelFromSeries(w,this,l),ie(S,{mainType:this.mainType,seriesIndex:m.seriesIndex,name:m.name,createdBySelf:!0}),S.__hostSeries=m),nM(m)[v]=S},this)},a.prototype.formatTooltip=function(i,l,c){var d=this.getData(),v=this.getRawValue(i),m=d.getName(i);return tu("section",{header:this.name,blocks:[tu("nameValue",{name:m,value:v,noName:!m,noValue:v==null})]})},a.prototype.getData=function(){return this._data},a.prototype.setData=function(i){this._data=i},a.prototype.getDataParams=function(i,l){var c=BI.prototype.getDataParams.call(this,i,l),d=this.__hostSeries;return d&&(c.seriesId=d.id,c.seriesName=d.name,c.seriesType=d.subType),c},a.getMarkerModelFromSeries=function(i,l){return nM(i)[l]},a.type="marker",a.dependencies=["series","grid","polar","geo"],a}(li);_e($p,BI.prototype);var vXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.createMarkerModelFromSeries=function(i,l,c){return new a(i,l,c)},a.type="markPoint",a.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},a}($p);function rH(s){return!(isNaN(parseFloat(s.x))&&isNaN(parseFloat(s.y)))}function pXe(s){return!isNaN(parseFloat(s.x))&&!isNaN(parseFloat(s.y))}function iM(s,a,i,l,c,d){var v=[],m=Qp(a,l),w=m?a.getCalculationInfo("stackResultDimension"):l,S=iH(a,w,s),x=a.indicesOfNearest(w,S)[0];v[c]=a.get(i,x),v[d]=a.get(w,x);var E=a.get(l,x),M=ua(a.get(l,x));return M=Math.min(M,20),M>=0&&(v[d]=+v[d].toFixed(M)),[v,E]}var nH={min:ue(iM,"min"),max:ue(iM,"max"),average:ue(iM,"average"),median:ue(iM,"median")};function ZC(s,a){if(a){var i=s.getData(),l=s.coordinateSystem,c=l&&l.dimensions;if(!pXe(a)&&!Qe(a.coord)&&Qe(c)){var d=lce(a,i,l,s);if(a=ae(a),a.type&&nH[a.type]&&d.baseAxis&&d.valueAxis){var v=oe(c,d.baseAxis.dim),m=oe(c,d.valueAxis.dim),w=nH[a.type](i,d.baseDataDim,d.valueDataDim,v,m);a.coord=w[0],a.value=w[1]}else a.coord=[a.xAxis!=null?a.xAxis:a.radiusAxis,a.yAxis!=null?a.yAxis:a.angleAxis]}if(a.coord==null||!Qe(c))a.coord=[];else for(var S=a.coord,x=0;x<2;x++)nH[S[x]]&&(S[x]=iH(i,i.mapDimension(c[x]),S[x]));return a}}function lce(s,a,i,l){var c={};return s.valueIndex!=null||s.valueDim!=null?(c.valueDataDim=s.valueIndex!=null?a.getDimension(s.valueIndex):s.valueDim,c.valueAxis=i.getAxis(gXe(l,c.valueDataDim)),c.baseAxis=i.getOtherAxis(c.valueAxis),c.baseDataDim=a.mapDimension(c.baseAxis.dim)):(c.baseAxis=l.getBaseAxis(),c.valueAxis=i.getOtherAxis(c.baseAxis),c.baseDataDim=a.mapDimension(c.baseAxis.dim),c.valueDataDim=a.mapDimension(c.valueAxis.dim)),c}function gXe(s,a){var i=s.getData().getDimensionInfo(a);return i&&i.coordDim}function JC(s,a){return s&&s.containData&&a.coord&&!rH(a)?s.containData(a.coord):!0}function mXe(s,a,i){return s&&s.containZone&&a.coord&&i.coord&&!rH(a)&&!rH(i)?s.containZone(a.coord,i.coord):!0}function uce(s,a){return s?function(i,l,c,d){var v=d<2?i.coord&&i.coord[d]:i.value;return um(v,a[d])}:function(i,l,c,d){return um(i.value,a[d])}}function iH(s,a,i){if(i==="average"){var l=0,c=0;return s.each(a,function(d,v){isNaN(d)||(l+=d,c++)}),l/c}else return i==="median"?s.getMedian(a):s.getDataExtent(a)[i==="max"?1:0]}var aH=Ri(),oH=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.init=function(){this.markerGroupMap=Ht()},a.prototype.render=function(i,l,c){var d=this,v=this.markerGroupMap;v.each(function(m){aH(m).keep=!1}),l.eachSeries(function(m){var w=$p.getMarkerModelFromSeries(m,d.type);w&&d.renderSeries(m,w,l,c)}),v.each(function(m){!aH(m).keep&&d.group.remove(m.group)})},a.prototype.markKeep=function(i){aH(i).keep=!0},a.prototype.toggleBlurSeries=function(i,l){var c=this;ne(i,function(d){var v=$p.getMarkerModelFromSeries(d,c.type);if(v){var m=v.getData();m.eachItemGraphicEl(function(w){w&&(l?QJ(w):CF(w))})}})},a.type="marker",a}(ho);function cce(s,a,i){var l=a.coordinateSystem;s.each(function(c){var d=s.getItemModel(c),v,m=vr(d.get("x"),i.getWidth()),w=vr(d.get("y"),i.getHeight());if(!isNaN(m)&&!isNaN(w))v=[m,w];else if(a.getMarkerPosition)v=a.getMarkerPosition(s.getValues(s.dimensions,c));else if(l){var S=s.get(l.dimensions[0],c),x=s.get(l.dimensions[1],c);v=l.dataToPoint([S,x])}isNaN(m)||(v[0]=m),isNaN(w)||(v[1]=w),s.setItemLayout(c,v)})}var yXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.updateTransform=function(i,l,c){l.eachSeries(function(d){var v=$p.getMarkerModelFromSeries(d,"markPoint");v&&(cce(v.getData(),d,c),this.markerGroupMap.get(d.id).updateLayout())},this)},a.prototype.renderSeries=function(i,l,c,d){var v=i.coordinateSystem,m=i.id,w=i.getData(),S=this.markerGroupMap,x=S.get(m)||S.set(m,new xC),E=wXe(v,i,l);l.setData(E),cce(l.getData(),i,d),E.each(function(M){var D=E.getItemModel(M),k=D.getShallow("symbol"),Q=D.getShallow("symbolSize"),V=D.getShallow("symbolRotate"),$=D.getShallow("symbolOffset"),Z=D.getShallow("symbolKeepAspect");if(qe(k)||qe(Q)||qe(V)||qe($)){var ee=l.getRawValue(M),fe=l.getDataParams(M);qe(k)&&(k=k(ee,fe)),qe(Q)&&(Q=Q(ee,fe)),qe(V)&&(V=V(ee,fe)),qe($)&&($=$(ee,fe))}var ve=D.getModel("itemStyle").getItemStyle(),ge=sC(w,"color");ve.fill||(ve.fill=ge),E.setItemVisual(M,{symbol:k,symbolSize:Q,symbolRotate:V,symbolOffset:$,symbolKeepAspect:Z,style:ve})}),x.updateData(E),this.group.add(x.group),E.eachItemGraphicEl(function(M){M.traverse(function(D){bt(D).dataModel=l})}),this.markKeep(x),x.group.silent=l.get("silent")||i.get("silent")},a.type="markPoint",a}(oH);function wXe(s,a,i){var l;s?l=xe(s&&s.dimensions,function(m){var w=a.getData().getDimensionInfo(a.getData().mapDimension(m))||{};return ie(ie({},w),{name:m,ordinalMeta:null})}):l=[{name:"value",type:"float"}];var c=new yc(l,i),d=xe(i.get("data"),ue(ZC,a));s&&(d=ze(d,ue(JC,s)));var v=uce(!!s,l);return c.initData(d,null,v),c}function bXe(s){s.registerComponentModel(vXe),s.registerComponentView(yXe),s.registerPreprocessor(function(a){tH(a.series,"markPoint")&&(a.markPoint=a.markPoint||{})})}var _Xe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.createMarkerModelFromSeries=function(i,l,c){return new a(i,l,c)},a.type="markLine",a.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"},a}($p),aM=Ri(),SXe=function(s,a,i,l){var c=s.getData(),d;if(Qe(l))d=l;else{var v=l.type;if(v==="min"||v==="max"||v==="average"||v==="median"||l.xAxis!=null||l.yAxis!=null){var m=void 0,w=void 0;if(l.yAxis!=null||l.xAxis!=null)m=a.getAxis(l.yAxis!=null?"y":"x"),w=Bt(l.yAxis,l.xAxis);else{var S=lce(l,c,a,s);m=S.valueAxis;var x=iU(c,S.valueDataDim);w=iH(c,x,v)}var E=m.dim==="x"?0:1,M=1-E,D=ae(l),k={coord:[]};D.type=null,D.coord=[],D.coord[M]=-1/0,k.coord[M]=1/0;var Q=i.get("precision");Q>=0&&Ge(w)&&(w=+w.toFixed(Math.min(Q,20))),D.coord[E]=k.coord[E]=w,d=[D,k,{type:v,valueIndex:l.valueIndex,value:w}]}else ce("Invalid markLine data."),d=[]}var V=[ZC(s,d[0]),ZC(s,d[1]),ie({},d[2])];return V[2].type=V[2].type||null,le(V[2],V[0]),le(V[2],V[1]),V};function oM(s){return!isNaN(s)&&!isFinite(s)}function fce(s,a,i,l){var c=1-s,d=l.dimensions[s];return oM(a[c])&&oM(i[c])&&a[s]===i[s]&&l.getAxis(d).containData(a[s])}function xXe(s,a){if(s.type==="cartesian2d"){var i=a[0].coord,l=a[1].coord;if(i&&l&&(fce(1,i,l,s)||fce(0,i,l,s)))return!0}return JC(s,a[0])&&JC(s,a[1])}function sH(s,a,i,l,c){var d=l.coordinateSystem,v=s.getItemModel(a),m,w=vr(v.get("x"),c.getWidth()),S=vr(v.get("y"),c.getHeight());if(!isNaN(w)&&!isNaN(S))m=[w,S];else{if(l.getMarkerPosition)m=l.getMarkerPosition(s.getValues(s.dimensions,a));else{var x=d.dimensions,E=s.get(x[0],a),M=s.get(x[1],a);m=d.dataToPoint([E,M])}if(x0(d,"cartesian2d")){var D=d.getAxis("x"),k=d.getAxis("y"),x=d.dimensions;oM(s.get(x[0],a))?m[0]=D.toGlobalCoord(D.getExtent()[i?0:1]):oM(s.get(x[1],a))&&(m[1]=k.toGlobalCoord(k.getExtent()[i?0:1]))}isNaN(w)||(m[0]=w),isNaN(S)||(m[1]=S)}s.setItemLayout(a,m)}var CXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.updateTransform=function(i,l,c){l.eachSeries(function(d){var v=$p.getMarkerModelFromSeries(d,"markLine");if(v){var m=v.getData(),w=aM(v).from,S=aM(v).to;w.each(function(x){sH(w,x,!0,d,c),sH(S,x,!1,d,c)}),m.each(function(x){m.setItemLayout(x,[w.getItemLayout(x),S.getItemLayout(x)])}),this.markerGroupMap.get(d.id).updateLayout()}},this)},a.prototype.renderSeries=function(i,l,c,d){var v=i.coordinateSystem,m=i.id,w=i.getData(),S=this.markerGroupMap,x=S.get(m)||S.set(m,new R4);this.group.add(x.group);var E=TXe(v,i,l),M=E.from,D=E.to,k=E.line;aM(l).from=M,aM(l).to=D,l.setData(k);var Q=l.get("symbol"),V=l.get("symbolSize"),$=l.get("symbolRotate"),Z=l.get("symbolOffset");Qe(Q)||(Q=[Q,Q]),Qe(V)||(V=[V,V]),Qe($)||($=[$,$]),Qe(Z)||(Z=[Z,Z]),E.from.each(function(fe){ee(M,fe,!0),ee(D,fe,!1)}),k.each(function(fe){var ve=k.getItemModel(fe).getModel("lineStyle").getLineStyle();k.setItemLayout(fe,[M.getItemLayout(fe),D.getItemLayout(fe)]),ve.stroke==null&&(ve.stroke=M.getItemVisual(fe,"style").fill),k.setItemVisual(fe,{fromSymbolKeepAspect:M.getItemVisual(fe,"symbolKeepAspect"),fromSymbolOffset:M.getItemVisual(fe,"symbolOffset"),fromSymbolRotate:M.getItemVisual(fe,"symbolRotate"),fromSymbolSize:M.getItemVisual(fe,"symbolSize"),fromSymbol:M.getItemVisual(fe,"symbol"),toSymbolKeepAspect:D.getItemVisual(fe,"symbolKeepAspect"),toSymbolOffset:D.getItemVisual(fe,"symbolOffset"),toSymbolRotate:D.getItemVisual(fe,"symbolRotate"),toSymbolSize:D.getItemVisual(fe,"symbolSize"),toSymbol:D.getItemVisual(fe,"symbol"),style:ve})}),x.updateData(k),E.line.eachItemGraphicEl(function(fe){bt(fe).dataModel=l,fe.traverse(function(ve){bt(ve).dataModel=l})});function ee(fe,ve,ge){var Se=fe.getItemModel(ve);sH(fe,ve,ge,i,d);var Ee=Se.getModel("itemStyle").getItemStyle();Ee.fill==null&&(Ee.fill=sC(w,"color")),fe.setItemVisual(ve,{symbolKeepAspect:Se.get("symbolKeepAspect"),symbolOffset:It(Se.get("symbolOffset",!0),Z[ge?0:1]),symbolRotate:It(Se.get("symbolRotate",!0),$[ge?0:1]),symbolSize:It(Se.get("symbolSize"),V[ge?0:1]),symbol:It(Se.get("symbol",!0),Q[ge?0:1]),style:Ee})}this.markKeep(x),x.group.silent=l.get("silent")||i.get("silent")},a.type="markLine",a}(oH);function TXe(s,a,i){var l;s?l=xe(s&&s.dimensions,function(S){var x=a.getData().getDimensionInfo(a.getData().mapDimension(S))||{};return ie(ie({},x),{name:S,ordinalMeta:null})}):l=[{name:"value",type:"float"}];var c=new yc(l,i),d=new yc(l,i),v=new yc([],i),m=xe(i.get("data"),ue(SXe,a,s,i));s&&(m=ze(m,ue(xXe,s)));var w=uce(!!s,l);return c.initData(xe(m,function(S){return S[0]}),null,w),d.initData(xe(m,function(S){return S[1]}),null,w),v.initData(xe(m,function(S){return S[2]})),v.hasItemOption=!0,{from:c,to:d,line:v}}function EXe(s){s.registerComponentModel(_Xe),s.registerComponentView(CXe),s.registerPreprocessor(function(a){tH(a.series,"markLine")&&(a.markLine=a.markLine||{})})}var BXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.createMarkerModelFromSeries=function(i,l,c){return new a(i,l,c)},a.type="markArea",a.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},a}($p),sM=Ri(),IXe=function(s,a,i,l){var c=l[0],d=l[1];if(!(!c||!d)){var v=ZC(s,c),m=ZC(s,d),w=v.coord,S=m.coord;w[0]=Bt(w[0],-1/0),w[1]=Bt(w[1],-1/0),S[0]=Bt(S[0],1/0),S[1]=Bt(S[1],1/0);var x=pe([{},v,m]);return x.coord=[v.coord,m.coord],x.x0=v.x,x.y0=v.y,x.x1=m.x,x.y1=m.y,x}};function lM(s){return!isNaN(s)&&!isFinite(s)}function hce(s,a,i,l){var c=1-s;return lM(a[c])&&lM(i[c])}function LXe(s,a){var i=a.coord[0],l=a.coord[1],c={coord:i,x:a.x0,y:a.y0},d={coord:l,x:a.x1,y:a.y1};return x0(s,"cartesian2d")?i&&l&&(hce(1,i,l)||hce(0,i,l))?!0:mXe(s,c,d):JC(s,c)||JC(s,d)}function dce(s,a,i,l,c){var d=l.coordinateSystem,v=s.getItemModel(a),m,w=vr(v.get(i[0]),c.getWidth()),S=vr(v.get(i[1]),c.getHeight());if(!isNaN(w)&&!isNaN(S))m=[w,S];else{if(l.getMarkerPosition){var x=s.getValues(["x0","y0"],a),E=s.getValues(["x1","y1"],a),M=d.clampData(x),D=d.clampData(E),k=[];i[0]==="x0"?k[0]=M[0]>D[0]?E[0]:x[0]:k[0]=M[0]>D[0]?x[0]:E[0],i[1]==="y0"?k[1]=M[1]>D[1]?E[1]:x[1]:k[1]=M[1]>D[1]?x[1]:E[1],m=l.getMarkerPosition(k,i,!0)}else{var Q=s.get(i[0],a),V=s.get(i[1],a),$=[Q,V];d.clampData&&d.clampData($,$),m=d.dataToPoint($,!0)}if(x0(d,"cartesian2d")){var Z=d.getAxis("x"),ee=d.getAxis("y"),Q=s.get(i[0],a),V=s.get(i[1],a);lM(Q)?m[0]=Z.toGlobalCoord(Z.getExtent()[i[0]==="x0"?0:1]):lM(V)&&(m[1]=ee.toGlobalCoord(ee.getExtent()[i[1]==="y0"?0:1]))}isNaN(w)||(m[0]=w),isNaN(S)||(m[1]=S)}return m}var Ace=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],MXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.updateTransform=function(i,l,c){l.eachSeries(function(d){var v=$p.getMarkerModelFromSeries(d,"markArea");if(v){var m=v.getData();m.each(function(w){var S=xe(Ace,function(E){return dce(m,w,E,d,c)});m.setItemLayout(w,S);var x=m.getItemGraphicEl(w);x.setShape("points",S)})}},this)},a.prototype.renderSeries=function(i,l,c,d){var v=i.coordinateSystem,m=i.id,w=i.getData(),S=this.markerGroupMap,x=S.get(m)||S.set(m,{group:new Lr});this.group.add(x.group),this.markKeep(x);var E=DXe(v,i,l);l.setData(E),E.each(function(M){var D=xe(Ace,function(Ee){return dce(E,M,Ee,i,d)}),k=v.getAxis("x").scale,Q=v.getAxis("y").scale,V=k.getExtent(),$=Q.getExtent(),Z=[k.parse(E.get("x0",M)),k.parse(E.get("x1",M))],ee=[Q.parse(E.get("y0",M)),Q.parse(E.get("y1",M))];aa(Z),aa(ee);var fe=!(V[0]>Z[1]||V[1]<Z[0]||$[0]>ee[1]||$[1]<ee[0]),ve=!fe;E.setItemLayout(M,{points:D,allClipped:ve});var ge=E.getItemModel(M).getModel("itemStyle").getItemStyle(),Se=sC(w,"color");ge.fill||(ge.fill=Se,Re(ge.fill)&&(ge.fill=$n(ge.fill,.4))),ge.stroke||(ge.stroke=Se),E.setItemVisual(M,"style",ge)}),E.diff(sM(x).data).add(function(M){var D=E.getItemLayout(M);if(!D.allClipped){var k=new dc({shape:{points:D.points}});E.setItemGraphicEl(M,k),x.group.add(k)}}).update(function(M,D){var k=sM(x).data.getItemGraphicEl(D),Q=E.getItemLayout(M);Q.allClipped?k&&x.group.remove(k):(k?Yi(k,{shape:{points:Q.points}},l,M):k=new dc({shape:{points:Q.points}}),E.setItemGraphicEl(M,k),x.group.add(k))}).remove(function(M){var D=sM(x).data.getItemGraphicEl(M);x.group.remove(D)}).execute(),E.eachItemGraphicEl(function(M,D){var k=E.getItemModel(D),Q=E.getItemVisual(D,"style");M.useStyle(E.getItemVisual(D,"style")),Fu(M,eu(k),{labelFetcher:l,labelDataIndex:D,defaultText:E.getName(D)||"",inheritColor:Re(Q.fill)?$n(Q.fill,1):"#000"}),ku(M,k),as(M,null,null,k.get(["emphasis","disabled"])),bt(M).dataModel=l}),sM(x).data=E,x.group.silent=l.get("silent")||i.get("silent")},a.type="markArea",a}(oH);function DXe(s,a,i){var l,c,d=["x0","y0","x1","y1"];if(s){var v=xe(s&&s.dimensions,function(S){var x=a.getData(),E=x.getDimensionInfo(x.mapDimension(S))||{};return ie(ie({},E),{name:S,ordinalMeta:null})});c=xe(d,function(S,x){return{name:S,type:v[x%2].type}}),l=new yc(c,i)}else c=[{name:"value",type:"float"}],l=new yc(c,i);var m=xe(i.get("data"),ue(IXe,a,s,i));s&&(m=ze(m,ue(LXe,s)));var w=s?function(S,x,E,M){var D=S.coord[Math.floor(M/2)][M%2];return um(D,c[M])}:function(S,x,E,M){return um(S.value,c[M])};return l.initData(m,null,w),l.hasItemOption=!0,l}function RXe(s){s.registerComponentModel(BXe),s.registerComponentView(MXe),s.registerPreprocessor(function(a){tH(a.series,"markArea")&&(a.markArea=a.markArea||{})})}var PXe=function(s,a){if(a==="all")return{type:"all",title:s.getLocaleModel().get(["legend","selector","all"])};if(a==="inverse")return{type:"inverse",title:s.getLocaleModel().get(["legend","selector","inverse"])}},lH=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.layoutMode={type:"box",ignoreSize:!0},i}return a.prototype.init=function(i,l,c){this.mergeDefaultAndTheme(i,c),i.selected=i.selected||{},this._updateSelector(i)},a.prototype.mergeOption=function(i,l){s.prototype.mergeOption.call(this,i,l),this._updateSelector(i)},a.prototype._updateSelector=function(i){var l=i.selector,c=this.ecModel;l===!0&&(l=i.selector=["all","inverse"]),Qe(l)&&ne(l,function(d,v){Re(d)&&(d={type:d}),l[v]=le(d,PXe(c,d.type))})},a.prototype.optionUpdated=function(){this._updateData(this.ecModel);var i=this._data;if(i[0]&&this.get("selectedMode")==="single"){for(var l=!1,c=0;c<i.length;c++){var d=i[c].get("name");if(this.isSelected(d)){this.select(d),l=!0;break}}!l&&this.select(i[0].get("name"))}},a.prototype._updateData=function(i){var l=[],c=[];i.eachRawSeries(function(w){var S=w.name;c.push(S);var x;if(w.legendVisualProvider){var E=w.legendVisualProvider,M=E.getAllNames();i.isSeriesFiltered(w)||(c=c.concat(M)),M.length?l=l.concat(M):x=!0}else x=!0;x&&dv(w)&&l.push(w.name)}),this._availableNames=c;var d=this.get("data")||l,v=Ht(),m=xe(d,function(w){return(Re(w)||Ge(w))&&(w={name:w}),v.get(w.name)?null:(v.set(w.name,!0),new ta(w,this,this.ecModel))},this);this._data=ze(m,function(w){return!!w})},a.prototype.getData=function(){return this._data},a.prototype.select=function(i){var l=this.option.selected,c=this.get("selectedMode");if(c==="single"){var d=this._data;ne(d,function(v){l[v.get("name")]=!1})}l[i]=!0},a.prototype.unSelect=function(i){this.get("selectedMode")!=="single"&&(this.option.selected[i]=!1)},a.prototype.toggleSelected=function(i){var l=this.option.selected;l.hasOwnProperty(i)||(l[i]=!0),this[l[i]?"unSelect":"select"](i)},a.prototype.allSelect=function(){var i=this._data,l=this.option.selected;ne(i,function(c){l[c.get("name",!0)]=!0})},a.prototype.inverseSelect=function(){var i=this._data,l=this.option.selected;ne(i,function(c){var d=c.get("name",!0);l.hasOwnProperty(d)||(l[d]=!0),l[d]=!l[d]})},a.prototype.isSelected=function(i){var l=this.option.selected;return!(l.hasOwnProperty(i)&&!l[i])&&oe(this._availableNames,i)>=0},a.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},a.type="legend.plain",a.dependencies=["series"],a.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}},a}(li),Vb=ue,uH=ne,uM=Lr,vce=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.newlineDisabled=!1,i}return a.prototype.init=function(){this.group.add(this._contentGroup=new uM),this.group.add(this._selectorGroup=new uM),this._isFirstRender=!0},a.prototype.getContentGroup=function(){return this._contentGroup},a.prototype.getSelectorGroup=function(){return this._selectorGroup},a.prototype.render=function(i,l,c){var d=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!i.get("show",!0)){var v=i.get("align"),m=i.get("orient");(!v||v==="auto")&&(v=i.get("left")==="right"&&m==="vertical"?"right":"left");var w=i.get("selector",!0),S=i.get("selectorPosition",!0);w&&(!S||S==="auto")&&(S=m==="horizontal"?"end":"start"),this.renderInner(v,i,l,c,w,m,S);var x=i.getBoxLayoutParams(),E={width:c.getWidth(),height:c.getHeight()},M=i.get("padding"),D=ol(x,E,M),k=this.layoutInner(i,v,D,d,w,S),Q=ol(he({width:k.width,height:k.height},x),E,M);this.group.x=Q.x-k.x,this.group.y=Q.y-k.y,this.group.markRedraw(),this.group.add(this._backgroundEl=xue(k,i))}},a.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},a.prototype.renderInner=function(i,l,c,d,v,m,w){var S=this.getContentGroup(),x=Ht(),E=l.get("selectedMode"),M=[];c.eachRawSeries(function(D){!D.get("legendHoverLink")&&M.push(D.id)}),uH(l.getData(),function(D,k){var Q=D.get("name");if(!this.newlineDisabled&&(Q===""||Q===`
`)){var V=new uM;V.newline=!0,S.add(V);return}var $=c.getSeriesByName(Q)[0];if(!x.get(Q)){if($){var Z=$.getData(),ee=Z.getVisual("legendLineStyle")||{},fe=Z.getVisual("legendIcon"),ve=Z.getVisual("style"),ge=this._createItem($,Q,k,D,l,i,ee,ve,fe,E,d);ge.on("click",Vb(pce,Q,null,d,M)).on("mouseover",Vb(cH,$.name,null,d,M)).on("mouseout",Vb(fH,$.name,null,d,M)),c.ssr&&ge.eachChild(function(Se){var Ee=bt(Se);Ee.seriesIndex=$.seriesIndex,Ee.dataIndex=k,Ee.ssrType="legend"}),x.set(Q,!0)}else c.eachRawSeries(function(Se){if(!x.get(Q)&&Se.legendVisualProvider){var Ee=Se.legendVisualProvider;if(!Ee.containName(Q))return;var Ie=Ee.indexOfName(Q),Le=Ee.getItemVisual(Ie,"style"),Fe=Ee.getItemVisual(Ie,"legendIcon"),Je=ar(Le.fill);Je&&Je[3]===0&&(Je[3]=.2,Le=ie(ie({},Le),{fill:Qr(Je,"rgba")}));var rt=this._createItem(Se,Q,k,D,l,i,{},Le,Fe,E,d);rt.on("click",Vb(pce,null,Q,d,M)).on("mouseover",Vb(cH,null,Q,d,M)).on("mouseout",Vb(fH,null,Q,d,M)),c.ssr&&rt.eachChild(function(at){var dt=bt(at);dt.seriesIndex=Se.seriesIndex,dt.dataIndex=k,dt.ssrType="legend"}),x.set(Q,!0)}},this);x.get(Q)||console.warn(Q+" series not exists. Legend data should be same with series name or data name.")}},this),v&&this._createSelector(v,l,d,m,w)},a.prototype._createSelector=function(i,l,c,d,v){var m=this.getSelectorGroup();uH(i,function(S){var x=S.type,E=new be({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){c.dispatchAction({type:x==="all"?"legendAllSelect":"legendInverseSelect",legendId:l.id})}});m.add(E);var M=l.getModel("selectorLabel"),D=l.getModel(["emphasis","selectorLabel"]);Fu(E,{normal:M,emphasis:D},{defaultText:S.title}),rm(E)})},a.prototype._createItem=function(i,l,c,d,v,m,w,S,x,E,M){var D=i.visualDrawType,k=v.get("itemWidth"),Q=v.get("itemHeight"),V=v.isSelected(l),$=d.get("symbolRotate"),Z=d.get("symbolKeepAspect"),ee=d.get("icon");x=ee||x||"roundRect";var fe=OXe(x,d,w,S,D,V,M),ve=new uM,ge=d.getModel("textStyle");if(qe(i.getLegendIcon)&&(!ee||ee==="inherit"))ve.add(i.getLegendIcon({itemWidth:k,itemHeight:Q,icon:x,iconRotate:$,itemStyle:fe.itemStyle,lineStyle:fe.lineStyle,symbolKeepAspect:Z}));else{var Se=ee==="inherit"&&i.getData().getVisual("symbol")?$==="inherit"?i.getData().getVisual("symbolRotate"):$:0;ve.add(kXe({itemWidth:k,itemHeight:Q,icon:x,iconRotate:Se,itemStyle:fe.itemStyle,symbolKeepAspect:Z}))}var Ee=m==="left"?k+5:-5,Ie=m,Le=v.get("formatter"),Fe=l;Re(Le)&&Le?Fe=Le.replace("{name}",l??""):qe(Le)&&(Fe=Le(l));var Je=V?ge.getTextColor():d.get("inactiveColor");ve.add(new be({style:Xa(ge,{text:Fe,x:Ee,y:Q/2,fill:Je,align:Ie,verticalAlign:"middle"},{inheritColor:Je})}));var rt=new R({shape:ve.getBoundingRect(),style:{fill:"transparent"}}),at=d.getModel("tooltip");return at.get("show")&&e0({el:rt,componentModel:v,itemName:l,itemTooltipOption:at.option}),ve.add(rt),ve.eachChild(function(dt){dt.silent=!0}),rt.silent=!E,this.getContentGroup().add(ve),rm(ve),ve.__legendDataIndex=c,ve},a.prototype.layoutInner=function(i,l,c,d,v,m){var w=this.getContentGroup(),S=this.getSelectorGroup();a0(i.get("orient"),w,i.get("itemGap"),c.width,c.height);var x=w.getBoundingRect(),E=[-x.x,-x.y];if(S.markRedraw(),w.markRedraw(),v){a0("horizontal",S,i.get("selectorItemGap",!0));var M=S.getBoundingRect(),D=[-M.x,-M.y],k=i.get("selectorButtonGap",!0),Q=i.getOrient().index,V=Q===0?"width":"height",$=Q===0?"height":"width",Z=Q===0?"y":"x";m==="end"?D[Q]+=x[V]+k:E[Q]+=M[V]+k,D[1-Q]+=x[$]/2-M[$]/2,S.x=D[0],S.y=D[1],w.x=E[0],w.y=E[1];var ee={x:0,y:0};return ee[V]=x[V]+k+M[V],ee[$]=Math.max(x[$],M[$]),ee[Z]=Math.min(0,M[Z]+D[1-Q]),ee}else return w.x=E[0],w.y=E[1],this.group.getBoundingRect()},a.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},a.type="legend.plain",a}(ho);function OXe(s,a,i,l,c,d,v){function m(V,$){V.lineWidth==="auto"&&(V.lineWidth=$.lineWidth>0?2:0),uH(V,function(Z,ee){V[ee]==="inherit"&&(V[ee]=$[ee])})}var w=a.getModel("itemStyle"),S=w.getItemStyle(),x=s.lastIndexOf("empty",0)===0?"fill":"stroke",E=w.getShallow("decal");S.decal=!E||E==="inherit"?l.decal:yb(E,v),S.fill==="inherit"&&(S.fill=l[c]),S.stroke==="inherit"&&(S.stroke=l[x]),S.opacity==="inherit"&&(S.opacity=(c==="fill"?l:i).opacity),m(S,l);var M=a.getModel("lineStyle"),D=M.getLineStyle();if(m(D,i),S.fill==="auto"&&(S.fill=l.fill),S.stroke==="auto"&&(S.stroke=l.fill),D.stroke==="auto"&&(D.stroke=l.fill),!d){var k=a.get("inactiveBorderWidth"),Q=S[x];S.lineWidth=k==="auto"?l.lineWidth>0&&Q?2:0:S.lineWidth,S.fill=a.get("inactiveColor"),S.stroke=a.get("inactiveBorderColor"),D.stroke=M.get("inactiveColor"),D.lineWidth=M.get("inactiveWidth")}return{itemStyle:S,lineStyle:D}}function kXe(s){var a=s.icon||"roundRect",i=Os(a,0,0,s.itemWidth,s.itemHeight,s.itemStyle.fill,s.symbolKeepAspect);return i.setStyle(s.itemStyle),i.rotation=(s.iconRotate||0)*Math.PI/180,i.setOrigin([s.itemWidth/2,s.itemHeight/2]),a.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i}function pce(s,a,i,l){fH(s,a,i,l),i.dispatchAction({type:"legendToggleSelect",name:s??a}),cH(s,a,i,l)}function gce(s){for(var a=s.getZr().storage.getDisplayList(),i,l=0,c=a.length;l<c&&!(i=a[l].states.emphasis);)l++;return i&&i.hoverLayer}function cH(s,a,i,l){gce(i)||i.dispatchAction({type:"highlight",seriesName:s,name:a,excludeSeriesId:l})}function fH(s,a,i,l){gce(i)||i.dispatchAction({type:"downplay",seriesName:s,name:a,excludeSeriesId:l})}function FXe(s){var a=s.findComponents({mainType:"legend"});a&&a.length&&s.filterSeries(function(i){for(var l=0;l<a.length;l++)if(!a[l].isSelected(i.name))return!1;return!0})}function eT(s,a,i){var l=s==="allSelect"||s==="inverseSelect",c={},d=[];i.eachComponent({mainType:"legend",query:a},function(m){l?m[s]():m[s](a.name),mce(m,c),d.push(m.componentIndex)});var v={};return i.eachComponent("legend",function(m){ne(c,function(w,S){m[w?"select":"unSelect"](S)}),mce(m,v)}),l?{selected:v,legendIndex:d}:{name:a.name,selected:v}}function mce(s,a){var i=a||{};return ne(s.getData(),function(l){var c=l.get("name");if(!(c===`
`||c==="")){var d=s.isSelected(c);At(i,c)?i[c]=i[c]&&d:i[c]=d}}),i}function NXe(s){s.registerAction("legendToggleSelect","legendselectchanged",ue(eT,"toggleSelected")),s.registerAction("legendAllSelect","legendselectall",ue(eT,"allSelect")),s.registerAction("legendInverseSelect","legendinverseselect",ue(eT,"inverseSelect")),s.registerAction("legendSelect","legendselected",ue(eT,"select")),s.registerAction("legendUnSelect","legendunselected",ue(eT,"unSelect"))}function yce(s){s.registerComponentModel(lH),s.registerComponentView(vce),s.registerProcessor(s.PRIORITY.PROCESSOR.SERIES_FILTER,FXe),s.registerSubTypeDefaulter("legend",function(){return"plain"}),NXe(s)}var UXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.setScrollDataIndex=function(i){this.option.scrollDataIndex=i},a.prototype.init=function(i,l,c){var d=lb(i);s.prototype.init.call(this,i,l,c),wce(this,i,d)},a.prototype.mergeOption=function(i,l){s.prototype.mergeOption.call(this,i,l),wce(this,this.option,i)},a.type="legend.scroll",a.defaultOption=sm(lH.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),a}(lH);function wce(s,a,i){var l=s.getOrient(),c=[1,1];c[l.index]=0,lm(a,i,{type:"box",ignoreSize:!!c})}var bce=Lr,hH=["width","height"],dH=["x","y"],HXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.newlineDisabled=!0,i._currentIndex=0,i}return a.prototype.init=function(){s.prototype.init.call(this),this.group.add(this._containerGroup=new bce),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new bce)},a.prototype.resetInner=function(){s.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},a.prototype.renderInner=function(i,l,c,d,v,m,w){var S=this;s.prototype.renderInner.call(this,i,l,c,d,v,m,w);var x=this._controllerGroup,E=l.get("pageIconSize",!0),M=Qe(E)?E:[E,E];k("pagePrev",0);var D=l.getModel("pageTextStyle");x.add(new be({name:"pageText",style:{text:"xx/xx",fill:D.getTextColor(),font:D.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),k("pageNext",1);function k(Q,V){var $=Q+"DataIndex",Z=rb(l.get("pageIcons",!0)[l.getOrient().name][V],{onclick:Ue(S._pageGo,S,$,l,d)},{x:-M[0]/2,y:-M[1]/2,width:M[0],height:M[1]});Z.name=Q,x.add(Z)}},a.prototype.layoutInner=function(i,l,c,d,v,m){var w=this.getSelectorGroup(),S=i.getOrient().index,x=hH[S],E=dH[S],M=hH[1-S],D=dH[1-S];v&&a0("horizontal",w,i.get("selectorItemGap",!0));var k=i.get("selectorButtonGap",!0),Q=w.getBoundingRect(),V=[-Q.x,-Q.y],$=ae(c);v&&($[x]=c[x]-Q[x]-k);var Z=this._layoutContentAndController(i,d,$,S,x,M,D,E);if(v){if(m==="end")V[S]+=Z[x]+k;else{var ee=Q[x]+k;V[S]-=ee,Z[E]-=ee}Z[x]+=Q[x]+k,V[1-S]+=Z[D]+Z[M]/2-Q[M]/2,Z[M]=Math.max(Z[M],Q[M]),Z[D]=Math.min(Z[D],Q[D]+V[1-S]),w.x=V[0],w.y=V[1],w.markRedraw()}return Z},a.prototype._layoutContentAndController=function(i,l,c,d,v,m,w,S){var x=this.getContentGroup(),E=this._containerGroup,M=this._controllerGroup;a0(i.get("orient"),x,i.get("itemGap"),d?c.width:null,d?null:c.height),a0("horizontal",M,i.get("pageButtonItemGap",!0));var D=x.getBoundingRect(),k=M.getBoundingRect(),Q=this._showController=D[v]>c[v],V=[-D.x,-D.y];l||(V[d]=x[S]);var $=[0,0],Z=[-k.x,-k.y],ee=It(i.get("pageButtonGap",!0),i.get("itemGap",!0));if(Q){var fe=i.get("pageButtonPosition",!0);fe==="end"?Z[d]+=c[v]-k[v]:$[d]+=k[v]+ee}Z[1-d]+=D[m]/2-k[m]/2,x.setPosition(V),E.setPosition($),M.setPosition(Z);var ve={x:0,y:0};if(ve[v]=Q?c[v]:D[v],ve[m]=Math.max(D[m],k[m]),ve[w]=Math.min(0,k[w]+Z[1-d]),E.__rectSize=c[v],Q){var ge={x:0,y:0};ge[v]=Math.max(c[v]-k[v]-ee,0),ge[m]=ve[m],E.setClipPath(new R({shape:ge})),E.__rectSize=ge[v]}else M.eachChild(function(Ee){Ee.attr({invisible:!0,silent:!0})});var Se=this._getPageInfo(i);return Se.pageIndex!=null&&Yi(x,{x:Se.contentPosition[0],y:Se.contentPosition[1]},Q?i:null),this._updatePageInfoView(i,Se),ve},a.prototype._pageGo=function(i,l,c){var d=this._getPageInfo(l)[i];d!=null&&c.dispatchAction({type:"legendScroll",scrollDataIndex:d,legendId:l.id})},a.prototype._updatePageInfoView=function(i,l){var c=this._controllerGroup;ne(["pagePrev","pageNext"],function(x){var E=x+"DataIndex",M=l[E]!=null,D=c.childOfName(x);D&&(D.setStyle("fill",M?i.get("pageIconColor",!0):i.get("pageIconInactiveColor",!0)),D.cursor=M?"pointer":"default")});var d=c.childOfName("pageText"),v=i.get("pageFormatter"),m=l.pageIndex,w=m!=null?m+1:0,S=l.pageCount;d&&v&&d.setStyle("text",Re(v)?v.replace("{current}",w==null?"":w+"").replace("{total}",S==null?"":S+""):v({current:w,total:S}))},a.prototype._getPageInfo=function(i){var l=i.get("scrollDataIndex",!0),c=this.getContentGroup(),d=this._containerGroup.__rectSize,v=i.getOrient().index,m=hH[v],w=dH[v],S=this._findTargetItemIndex(l),x=c.children(),E=x[S],M=x.length,D=M?1:0,k={contentPosition:[c.x,c.y],pageCount:D,pageIndex:D-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!E)return k;var Q=fe(E);k.contentPosition[v]=-Q.s;for(var V=S+1,$=Q,Z=Q,ee=null;V<=M;++V)ee=fe(x[V]),(!ee&&Z.e>$.s+d||ee&&!ve(ee,$.s))&&(Z.i>$.i?$=Z:$=ee,$&&(k.pageNextDataIndex==null&&(k.pageNextDataIndex=$.i),++k.pageCount)),Z=ee;for(var V=S-1,$=Q,Z=Q,ee=null;V>=-1;--V)ee=fe(x[V]),(!ee||!ve(Z,ee.s))&&$.i<Z.i&&(Z=$,k.pagePrevDataIndex==null&&(k.pagePrevDataIndex=$.i),++k.pageCount,++k.pageIndex),$=ee;return k;function fe(ge){if(ge){var Se=ge.getBoundingRect(),Ee=Se[w]+ge[w];return{s:Ee,e:Ee+Se[m],i:ge.__legendDataIndex}}}function ve(ge,Se){return ge.e>=Se&&ge.s<=Se+d}},a.prototype._findTargetItemIndex=function(i){if(!this._showController)return 0;var l,c=this.getContentGroup(),d;return c.eachChild(function(v,m){var w=v.__legendDataIndex;d==null&&w!=null&&(d=m),w===i&&(l=m)}),l??d},a.type="legend.scroll",a}(vce);function QXe(s){s.registerAction("legendScroll","legendscroll",function(a,i){var l=a.scrollDataIndex;l!=null&&i.eachComponent({mainType:"legend",subType:"scroll",query:a},function(c){c.setScrollDataIndex(l)})})}function VXe(s){ui(yce),s.registerComponentModel(UXe),s.registerComponentView(HXe),QXe(s)}function zXe(s){ui(yce),ui(VXe)}var GXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.type="dataZoom.inside",a.defaultOption=sm(KC.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),a}(KC),AH=Ri();function jXe(s,a,i){AH(s).coordSysRecordMap.each(function(l){var c=l.dataZoomInfoMap.get(a.uid);c&&(c.getRange=i)})}function qXe(s,a){for(var i=AH(s).coordSysRecordMap,l=i.keys(),c=0;c<l.length;c++){var d=l[c],v=i.get(d),m=v.dataZoomInfoMap;if(m){var w=a.uid,S=m.get(w);S&&(m.removeKey(w),m.keys().length||_ce(i,v))}}}function _ce(s,a){if(a){s.removeKey(a.model.uid);var i=a.controller;i&&i.dispose()}}function WXe(s,a){var i={model:a,containsPoint:ue(KXe,a),dispatchAction:ue($Xe,s),dataZoomInfoMap:null,controller:null},l=i.controller=new DC(s.getZr());return ne(["pan","zoom","scrollMove"],function(c){l.on(c,function(d){var v=[];i.dataZoomInfoMap.each(function(m){if(d.isAvailableBehavior(m.model.option)){var w=(m.getRange||{})[c],S=w&&w(m.dzReferCoordSysInfo,i.model.mainType,i.controller,d);!m.model.get("disabled",!0)&&S&&v.push({dataZoomId:m.model.id,start:S[0],end:S[1]})}}),v.length&&i.dispatchAction(v)})}),i}function $Xe(s,a){s.isDisposed()||s.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:a})}function KXe(s,a,i,l){return s.coordinateSystem.containPoint([i,l])}function YXe(s){var a,i="type_",l={type_true:2,type_move:1,type_false:0,type_undefined:-1},c=!0;return s.each(function(d){var v=d.model,m=v.get("disabled",!0)?!1:v.get("zoomLock",!0)?"move":!0;l[i+m]>l[i+a]&&(a=m),c=c&&v.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!c}}}function XXe(s){s.registerProcessor(s.PRIORITY.PROCESSOR.FILTER,function(a,i){var l=AH(i),c=l.coordSysRecordMap||(l.coordSysRecordMap=Ht());c.each(function(d){d.dataZoomInfoMap=null}),a.eachComponent({mainType:"dataZoom",subType:"inside"},function(d){var v=mue(d);ne(v.infoList,function(m){var w=m.model.uid,S=c.get(w)||c.set(w,WXe(i,m.model)),x=S.dataZoomInfoMap||(S.dataZoomInfoMap=Ht());x.set(d.uid,{dzReferCoordSysInfo:m,model:d,getRange:null})})}),c.each(function(d){var v=d.controller,m,w=d.dataZoomInfoMap;if(w){var S=w.keys()[0];S!=null&&(m=w.get(S))}if(!m){_ce(c,d);return}var x=YXe(w);v.enable(x.controlType,x.opt),v.setPointerChecker(d.containsPoint),vb(d,"dispatchAction",m.model.get("throttle",!0),"fixRate")})})}var ZXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type="dataZoom.inside",i}return a.prototype.render=function(i,l,c){if(s.prototype.render.apply(this,arguments),i.noTarget()){this._clear();return}this.range=i.getPercentRange(),jXe(c,i,{pan:Ue(vH.pan,this),zoom:Ue(vH.zoom,this),scrollMove:Ue(vH.scrollMove,this)})},a.prototype.dispose=function(){this._clear(),s.prototype.dispose.apply(this,arguments)},a.prototype._clear=function(){qXe(this.api,this.dataZoomModel),this.range=null},a.type="dataZoom.inside",a}(Q6),vH={zoom:function(s,a,i,l){var c=this.range,d=c.slice(),v=s.axisModels[0];if(v){var m=pH[a](null,[l.originX,l.originY],v,i,s),w=(m.signal>0?m.pixelStart+m.pixelLength-m.pixel:m.pixel-m.pixelStart)/m.pixelLength*(d[1]-d[0])+d[0],S=Math.max(1/l.scale,0);d[0]=(d[0]-w)*S+w,d[1]=(d[1]-w)*S+w;var x=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(D0(0,d,[0,100],0,x.minSpan,x.maxSpan),this.range=d,c[0]!==d[0]||c[1]!==d[1])return d}},pan:Sce(function(s,a,i,l,c,d){var v=pH[l]([d.oldX,d.oldY],[d.newX,d.newY],a,c,i);return v.signal*(s[1]-s[0])*v.pixel/v.pixelLength}),scrollMove:Sce(function(s,a,i,l,c,d){var v=pH[l]([0,0],[d.scrollDelta,d.scrollDelta],a,c,i);return v.signal*(s[1]-s[0])*d.scrollDelta})};function Sce(s){return function(a,i,l,c){var d=this.range,v=d.slice(),m=a.axisModels[0];if(m){var w=s(v,m,a,i,l,c);if(D0(w,v,[0,100],"all"),this.range=v,d[0]!==v[0]||d[1]!==v[1])return v}}}var pH={grid:function(s,a,i,l,c){var d=i.axis,v={},m=c.model.coordinateSystem.getRect();return s=s||[0,0],d.dim==="x"?(v.pixel=a[0]-s[0],v.pixelLength=m.width,v.pixelStart=m.x,v.signal=d.inverse?1:-1):(v.pixel=a[1]-s[1],v.pixelLength=m.height,v.pixelStart=m.y,v.signal=d.inverse?-1:1),v},polar:function(s,a,i,l,c){var d=i.axis,v={},m=c.model.coordinateSystem,w=m.getRadiusAxis().getExtent(),S=m.getAngleAxis().getExtent();return s=s?m.pointToCoord(s):[0,0],a=m.pointToCoord(a),i.mainType==="radiusAxis"?(v.pixel=a[0]-s[0],v.pixelLength=w[1]-w[0],v.pixelStart=w[0],v.signal=d.inverse?1:-1):(v.pixel=a[1]-s[1],v.pixelLength=S[1]-S[0],v.pixelStart=S[0],v.signal=d.inverse?-1:1),v},singleAxis:function(s,a,i,l,c){var d=i.axis,v=c.model.coordinateSystem.getRect(),m={};return s=s||[0,0],d.orient==="horizontal"?(m.pixel=a[0]-s[0],m.pixelLength=v.width,m.pixelStart=v.x,m.signal=d.inverse?1:-1):(m.pixel=a[1]-s[1],m.pixelLength=v.height,m.pixelStart=v.y,m.signal=d.inverse?-1:1),m}};function xce(s){V6(s),s.registerComponentModel(GXe),s.registerComponentView(ZXe),XXe(s)}var JXe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.type="dataZoom.slider",a.layoutMode="box",a.defaultOption=sm(KC.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),a}(KC),tT=R,Cce=7,eZe=1,gH=30,tZe=7,rT="horizontal",Tce="vertical",rZe=5,nZe=["line","bar","candlestick","scatter"],iZe={easing:"cubicOut",duration:100,delay:0},aZe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i._displayables={},i}return a.prototype.init=function(i,l){this.api=l,this._onBrush=Ue(this._onBrush,this),this._onBrushEnd=Ue(this._onBrushEnd,this)},a.prototype.render=function(i,l,c,d){if(s.prototype.render.apply(this,arguments),vb(this,"_dispatchZoomAction",i.get("throttle"),"fixRate"),this._orient=i.getOrient(),i.get("show")===!1){this.group.removeAll();return}if(i.noTarget()){this._clear(),this.group.removeAll();return}(!d||d.type!=="dataZoom"||d.from!==this.uid)&&this._buildView(),this._updateView()},a.prototype.dispose=function(){this._clear(),s.prototype.dispose.apply(this,arguments)},a.prototype._clear=function(){iC(this,"_dispatchZoomAction");var i=this.api.getZr();i.off("mousemove",this._onBrush),i.off("mouseup",this._onBrushEnd)},a.prototype._buildView=function(){var i=this.group;i.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var l=this._displayables.sliderGroup=new Lr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),i.add(l),this._positionGroup()},a.prototype._resetLocation=function(){var i=this.dataZoomModel,l=this.api,c=i.get("brushSelect"),d=c?tZe:0,v=this._findCoordRect(),m={width:l.getWidth(),height:l.getHeight()},w=this._orient===rT?{right:m.width-v.x-v.width,top:m.height-gH-Cce-d,width:v.width,height:gH}:{right:Cce,top:v.y,width:gH,height:v.height},S=lb(i.option);ne(["right","top","width","height"],function(E){S[E]==="ph"&&(S[E]=w[E])});var x=ol(S,m);this._location={x:x.x,y:x.y},this._size=[x.width,x.height],this._orient===Tce&&this._size.reverse()},a.prototype._positionGroup=function(){var i=this.group,l=this._location,c=this._orient,d=this.dataZoomModel.getFirstTargetAxisModel(),v=d&&d.get("inverse"),m=this._displayables.sliderGroup,w=(this._dataShadowInfo||{}).otherAxisInverse;m.attr(c===rT&&!v?{scaleY:w?1:-1,scaleX:1}:c===rT&&v?{scaleY:w?1:-1,scaleX:-1}:c===Tce&&!v?{scaleY:w?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:w?-1:1,scaleX:-1,rotation:Math.PI/2});var S=i.getBoundingRect([m]);i.x=l.x-S.x,i.y=l.y-S.y,i.markRedraw()},a.prototype._getViewExtent=function(){return[0,this._size[0]]},a.prototype._renderBackground=function(){var i=this.dataZoomModel,l=this._size,c=this._displayables.sliderGroup,d=i.get("brushSelect");c.add(new tT({silent:!0,shape:{x:0,y:0,width:l[0],height:l[1]},style:{fill:i.get("backgroundColor")},z2:-40}));var v=new tT({shape:{x:0,y:0,width:l[0],height:l[1]},style:{fill:"transparent"},z2:0,onclick:Ue(this._onClickPanel,this)}),m=this.api.getZr();d?(v.on("mousedown",this._onBrushStart,this),v.cursor="crosshair",m.on("mousemove",this._onBrush),m.on("mouseup",this._onBrushEnd)):(m.off("mousemove",this._onBrush),m.off("mouseup",this._onBrushEnd)),c.add(v)},a.prototype._renderDataShadow=function(){var i=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!i)return;var l=this._size,c=this._shadowSize||[],d=i.series,v=d.getRawData(),m=d.getShadowDim&&d.getShadowDim(),w=m&&v.getDimensionInfo(m)?d.getShadowDim():i.otherDim;if(w==null)return;var S=this._shadowPolygonPts,x=this._shadowPolylinePts;if(v!==this._shadowData||w!==this._shadowDim||l[0]!==c[0]||l[1]!==c[1]){var E=v.getDataExtent(w),M=(E[1]-E[0])*.3;E=[E[0]-M,E[1]+M];var D=[0,l[1]],k=[0,l[0]],Q=[[l[0],0],[0,0]],V=[],$=k[1]/(v.count()-1),Z=0,ee=Math.round(v.count()/l[0]),fe;v.each([w],function(Ie,Le){if(ee>0&&Le%ee){Z+=$;return}var Fe=Ie==null||isNaN(Ie)||Ie==="",Je=Fe?0:ln(Ie,E,D,!0);Fe&&!fe&&Le?(Q.push([Q[Q.length-1][0],0]),V.push([V[V.length-1][0],0])):!Fe&&fe&&(Q.push([Z,0]),V.push([Z,0])),Q.push([Z,Je]),V.push([Z,Je]),Z+=$,fe=Fe}),S=this._shadowPolygonPts=Q,x=this._shadowPolylinePts=V}this._shadowData=v,this._shadowDim=w,this._shadowSize=[l[0],l[1]];var ve=this.dataZoomModel;function ge(Ie){var Le=ve.getModel(Ie?"selectedDataBackground":"dataBackground"),Fe=new Lr,Je=new dc({shape:{points:S},segmentIgnoreThreshold:1,style:Le.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),rt=new Ac({shape:{points:x},segmentIgnoreThreshold:1,style:Le.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return Fe.add(Je),Fe.add(rt),Fe}for(var Se=0;Se<3;Se++){var Ee=ge(Se===1);this._displayables.sliderGroup.add(Ee),this._displayables.dataShadowSegs.push(Ee)}},a.prototype._prepareDataShadowInfo=function(){var i=this.dataZoomModel,l=i.get("showDataShadow");if(l!==!1){var c,d=this.ecModel;return i.eachTargetAxis(function(v,m){var w=i.getAxisProxy(v,m).getTargetSeriesModels();ne(w,function(S){if(!c&&!(l!==!0&&oe(nZe,S.get("type"))<0)){var x=d.getComponent(_m(v),m).axis,E=oZe(v),M,D=S.coordinateSystem;E!=null&&D.getOtherAxis&&(M=D.getOtherAxis(x).inverse),E=S.getData().mapDimension(E),c={thisAxis:x,series:S,thisDim:v,otherDim:E,otherAxisInverse:M}}},this)},this),c}},a.prototype._renderHandle=function(){var i=this.group,l=this._displayables,c=l.handles=[null,null],d=l.handleLabels=[null,null],v=this._displayables.sliderGroup,m=this._size,w=this.dataZoomModel,S=this.api,x=w.get("borderRadius")||0,E=w.get("brushSelect"),M=l.filler=new tT({silent:E,style:{fill:w.get("fillerColor")},textConfig:{position:"inside"}});v.add(M),v.add(new tT({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:m[0],height:m[1],r:x},style:{stroke:w.get("dataBackgroundColor")||w.get("borderColor"),lineWidth:eZe,fill:"rgba(0,0,0,0)"}})),ne([0,1],function(ee){var fe=w.get("handleIcon");!FI[fe]&&fe.indexOf("path://")<0&&fe.indexOf("image://")<0&&(fe="path://"+fe,nl("handleIcon now needs 'path://' prefix when using a path string"));var ve=Os(fe,-1,0,2,2,null,!0);ve.attr({cursor:Ece(this._orient),draggable:!0,drift:Ue(this._onDragMove,this,ee),ondragend:Ue(this._onDragEnd,this),onmouseover:Ue(this._showDataInfo,this,!0),onmouseout:Ue(this._showDataInfo,this,!1),z2:5});var ge=ve.getBoundingRect(),Se=w.get("handleSize");this._handleHeight=vr(Se,this._size[1]),this._handleWidth=ge.width/ge.height*this._handleHeight,ve.setStyle(w.getModel("handleStyle").getItemStyle()),ve.style.strokeNoScale=!0,ve.rectHover=!0,ve.ensureState("emphasis").style=w.getModel(["emphasis","handleStyle"]).getItemStyle(),rm(ve);var Ee=w.get("handleColor");Ee!=null&&(ve.style.fill=Ee),v.add(c[ee]=ve);var Ie=w.getModel("textStyle"),Le=w.get("handleLabel")||{},Fe=Le.show||!1;i.add(d[ee]=new be({silent:!0,invisible:!Fe,style:Xa(Ie,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:Ie.getTextColor(),font:Ie.getFont()}),z2:10}))},this);var D=M;if(E){var k=vr(w.get("moveHandleSize"),m[1]),Q=l.moveHandle=new R({style:w.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:m[1]-.5,height:k}}),V=k*.8,$=l.moveHandleIcon=Os(w.get("moveHandleIcon"),-V/2,-V/2,V,V,"#fff",!0);$.silent=!0,$.y=m[1]+k/2-.5,Q.ensureState("emphasis").style=w.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var Z=Math.min(m[1]/2,Math.max(k,10));D=l.moveZone=new R({invisible:!0,shape:{y:m[1]-Z,height:k+Z}}),D.on("mouseover",function(){S.enterEmphasis(Q)}).on("mouseout",function(){S.leaveEmphasis(Q)}),v.add(Q),v.add($),v.add(D)}D.attr({draggable:!0,cursor:Ece(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)})},a.prototype._resetInterval=function(){var i=this._range=this.dataZoomModel.getPercentRange(),l=this._getViewExtent();this._handleEnds=[ln(i[0],[0,100],l,!0),ln(i[1],[0,100],l,!0)]},a.prototype._updateInterval=function(i,l){var c=this.dataZoomModel,d=this._handleEnds,v=this._getViewExtent(),m=c.findRepresentativeAxisProxy().getMinMaxSpan(),w=[0,100];D0(l,d,v,c.get("zoomLock")?"all":i,m.minSpan!=null?ln(m.minSpan,w,v,!0):null,m.maxSpan!=null?ln(m.maxSpan,w,v,!0):null);var S=this._range,x=this._range=aa([ln(d[0],v,w,!0),ln(d[1],v,w,!0)]);return!S||S[0]!==x[0]||S[1]!==x[1]},a.prototype._updateView=function(i){var l=this._displayables,c=this._handleEnds,d=aa(c.slice()),v=this._size;ne([0,1],function(D){var k=l.handles[D],Q=this._handleHeight;k.attr({scaleX:Q/2,scaleY:Q/2,x:c[D]+(D?-1:1),y:v[1]/2-Q/2})},this),l.filler.setShape({x:d[0],y:0,width:d[1]-d[0],height:v[1]});var m={x:d[0],width:d[1]-d[0]};l.moveHandle&&(l.moveHandle.setShape(m),l.moveZone.setShape(m),l.moveZone.getBoundingRect(),l.moveHandleIcon&&l.moveHandleIcon.attr("x",m.x+m.width/2));for(var w=l.dataShadowSegs,S=[0,d[0],d[1],v[0]],x=0;x<w.length;x++){var E=w[x],M=E.getClipPath();M||(M=new R,E.setClipPath(M)),M.setShape({x:S[x],y:0,width:S[x+1]-S[x],height:v[1]})}this._updateDataInfo(i)},a.prototype._updateDataInfo=function(i){var l=this.dataZoomModel,c=this._displayables,d=c.handleLabels,v=this._orient,m=["",""];if(l.get("showDetail")){var w=l.findRepresentativeAxisProxy();if(w){var S=w.getAxisModel().axis,x=this._range,E=i?w.calculateDataWindow({start:x[0],end:x[1]}).valueWindow:w.getDataValueWindow();m=[this._formatLabel(E[0],S),this._formatLabel(E[1],S)]}}var M=aa(this._handleEnds.slice());D.call(this,0),D.call(this,1);function D(k){var Q=am(c.handles[k].parent,this.group),V=hI(k===0?"right":"left",Q),$=this._handleWidth/2+rZe,Z=AA([M[k]+(k===0?-$:$),this._size[1]/2],Q);d[k].setStyle({x:Z[0],y:Z[1],verticalAlign:v===rT?"middle":V,align:v===rT?V:"center",text:m[k]})}},a.prototype._formatLabel=function(i,l){var c=this.dataZoomModel,d=c.get("labelFormatter"),v=c.get("labelPrecision");(v==null||v==="auto")&&(v=l.getPixelPrecision());var m=i==null||isNaN(i)?"":l.type==="category"||l.type==="time"?l.scale.getLabel({value:Math.round(i)}):i.toFixed(Math.min(v,20));return qe(d)?d(i,m):Re(d)?d.replace("{value}",m):m},a.prototype._showDataInfo=function(i){var l=this.dataZoomModel.get("handleLabel")||{},c=l.show||!1,d=this.dataZoomModel.getModel(["emphasis","handleLabel"]),v=d.get("show")||!1,m=i||this._dragging?v:c,w=this._displayables,S=w.handleLabels;S[0].attr("invisible",!m),S[1].attr("invisible",!m),w.moveHandle&&this.api[m?"enterEmphasis":"leaveEmphasis"](w.moveHandle,1)},a.prototype._onDragMove=function(i,l,c,d){this._dragging=!0,us(d.event);var v=this._displayables.sliderGroup.getLocalTransform(),m=AA([l,c],v,!0),w=this._updateInterval(i,m[0]),S=this.dataZoomModel.get("realtime");this._updateView(!S),w&&S&&this._dispatchZoomAction(!0)},a.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var i=this.dataZoomModel.get("realtime");!i&&this._dispatchZoomAction(!1)},a.prototype._onClickPanel=function(i){var l=this._size,c=this._displayables.sliderGroup.transformCoordToLocal(i.offsetX,i.offsetY);if(!(c[0]<0||c[0]>l[0]||c[1]<0||c[1]>l[1])){var d=this._handleEnds,v=(d[0]+d[1])/2,m=this._updateInterval("all",c[0]-v);this._updateView(),m&&this._dispatchZoomAction(!1)}},a.prototype._onBrushStart=function(i){var l=i.offsetX,c=i.offsetY;this._brushStart=new xn(l,c),this._brushing=!0,this._brushStartTime=+new Date},a.prototype._onBrushEnd=function(i){if(this._brushing){var l=this._displayables.brushRect;if(this._brushing=!1,!!l){l.attr("ignore",!0);var c=l.shape,d=+new Date;if(!(d-this._brushStartTime<200&&Math.abs(c.width)<5)){var v=this._getViewExtent(),m=[0,100];this._range=aa([ln(c.x,v,m,!0),ln(c.x+c.width,v,m,!0)]),this._handleEnds=[c.x,c.x+c.width],this._updateView(),this._dispatchZoomAction(!1)}}}},a.prototype._onBrush=function(i){this._brushing&&(us(i.event),this._updateBrushRect(i.offsetX,i.offsetY))},a.prototype._updateBrushRect=function(i,l){var c=this._displayables,d=this.dataZoomModel,v=c.brushRect;v||(v=c.brushRect=new tT({silent:!0,style:d.getModel("brushStyle").getItemStyle()}),c.sliderGroup.add(v)),v.attr("ignore",!1);var m=this._brushStart,w=this._displayables.sliderGroup,S=w.transformCoordToLocal(i,l),x=w.transformCoordToLocal(m.x,m.y),E=this._size;S[0]=Math.max(Math.min(E[0],S[0]),0),v.setShape({x:x[0],y:0,width:S[0]-x[0],height:E[1]})},a.prototype._dispatchZoomAction=function(i){var l=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:i?iZe:null,start:l[0],end:l[1]})},a.prototype._findCoordRect=function(){var i,l=mue(this.dataZoomModel).infoList;if(!i&&l.length){var c=l[0].model.coordinateSystem;i=c.getRect&&c.getRect()}if(!i){var d=this.api.getWidth(),v=this.api.getHeight();i={x:d*.2,y:v*.2,width:d*.6,height:v*.6}}return i},a.type="dataZoom.slider",a}(Q6);function oZe(s){var a={x:"y",y:"x",radius:"angle",angle:"radius"};return a[s]}function Ece(s){return s==="vertical"?"ns-resize":"ew-resize"}function Bce(s){s.registerComponentModel(JXe),s.registerComponentView(aZe),V6(s)}function sZe(s){ui(xce),ui(Bce)}var Ice={get:function(s,a,i){var l=ae((lZe[s]||{})[a]);return i&&Qe(l)?l[l.length-1]:l}},lZe={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]}},Lce=nu.mapVisual,uZe=nu.eachVisual,cZe=Qe,Mce=ne,fZe=aa,hZe=ln,cM=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.stateList=["inRange","outOfRange"],i.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],i.layoutMode={type:"box",ignoreSize:!0},i.dataBound=[-1/0,1/0],i.targetVisuals={},i.controllerVisuals={},i}return a.prototype.init=function(i,l,c){this.mergeDefaultAndTheme(i,c)},a.prototype.optionUpdated=function(i,l){var c=this.option;!l&&$ue(c,i,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},a.prototype.resetVisual=function(i){var l=this.stateList;i=Ue(i,this),this.controllerVisuals=X6(this.option.controller,l,i),this.targetVisuals=X6(this.option.target,l,i)},a.prototype.getItemSymbol=function(){return null},a.prototype.getTargetSeriesIndices=function(){var i=this.option.seriesIndex,l=[];return i==null||i==="all"?this.ecModel.eachSeries(function(c,d){l.push(d)}):l=Ni(i),l},a.prototype.eachTargetSeries=function(i,l){ne(this.getTargetSeriesIndices(),function(c){var d=this.ecModel.getSeriesByIndex(c);d&&i.call(l,d)},this)},a.prototype.isTargetSeries=function(i){var l=!1;return this.eachTargetSeries(function(c){c===i&&(l=!0)}),l},a.prototype.formatValueText=function(i,l,c){var d=this.option,v=d.precision,m=this.dataBound,w=d.formatter,S;c=c||["<",">"],Qe(i)&&(i=i.slice(),S=!0);var x=l?i:S?[E(i[0]),E(i[1])]:E(i);if(Re(w))return w.replace("{value}",S?x[0]:x).replace("{value2}",S?x[1]:x);if(qe(w))return S?w(i[0],i[1]):w(i);if(S)return i[0]===m[0]?c[0]+" "+x[1]:i[1]===m[1]?c[1]+" "+x[0]:x[0]+" - "+x[1];return x;function E(M){return M===m[0]?"min":M===m[1]?"max":(+M).toFixed(Math.min(v,20))}},a.prototype.resetExtent=function(){var i=this.option,l=fZe([i.min,i.max]);this._dataExtent=l},a.prototype.getDataDimensionIndex=function(i){var l=this.option.dimension;if(l!=null)return i.getDimensionIndex(l);for(var c=i.dimensions,d=c.length-1;d>=0;d--){var v=c[d],m=i.getDimensionInfo(v);if(!m.isCalculationCoord)return m.storeDimIndex}},a.prototype.getExtent=function(){return this._dataExtent.slice()},a.prototype.completeVisualOption=function(){var i=this.ecModel,l=this.option,c={inRange:l.inRange,outOfRange:l.outOfRange},d=l.target||(l.target={}),v=l.controller||(l.controller={});le(d,c),le(v,c);var m=this.isCategory();w.call(this,d),w.call(this,v),S.call(this,d,"inRange","outOfRange"),x.call(this,v);function w(E){cZe(l.color)&&!E.inRange&&(E.inRange={color:l.color.slice().reverse()}),E.inRange=E.inRange||{color:i.get("gradientColor")}}function S(E,M,D){var k=E[M],Q=E[D];k&&!Q&&(Q=E[D]={},Mce(k,function(V,$){if(nu.isValidType($)){var Z=Ice.get($,"inactive",m);Z!=null&&(Q[$]=Z,$==="color"&&!Q.hasOwnProperty("opacity")&&!Q.hasOwnProperty("colorAlpha")&&(Q.opacity=[0,0]))}}))}function x(E){var M=(E.inRange||{}).symbol||(E.outOfRange||{}).symbol,D=(E.inRange||{}).symbolSize||(E.outOfRange||{}).symbolSize,k=this.get("inactiveColor"),Q=this.getItemSymbol(),V=Q||"roundRect";Mce(this.stateList,function($){var Z=this.itemSize,ee=E[$];ee||(ee=E[$]={color:m?k:[k]}),ee.symbol==null&&(ee.symbol=M&&ae(M)||(m?V:[V])),ee.symbolSize==null&&(ee.symbolSize=D&&ae(D)||(m?Z[0]:[Z[0],Z[0]])),ee.symbol=Lce(ee.symbol,function(ge){return ge==="none"?V:ge});var fe=ee.symbolSize;if(fe!=null){var ve=-1/0;uZe(fe,function(ge){ge>ve&&(ve=ge)}),ee.symbolSize=Lce(fe,function(ge){return hZe(ge,[0,ve],[0,Z[0]],!0)})}},this)}},a.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},a.prototype.isCategory=function(){return!!this.option.categories},a.prototype.setSelected=function(i){},a.prototype.getSelected=function(){return null},a.prototype.getValueState=function(i){return null},a.prototype.getVisualMeta=function(i){return null},a.type="visualMap",a.dependencies=["series"],a.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"}},a}(li),Dce=[20,140],dZe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.optionUpdated=function(i,l){s.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(c){c.mappingMethod="linear",c.dataExtent=this.getExtent()}),this._resetRange()},a.prototype.resetItemSize=function(){s.prototype.resetItemSize.apply(this,arguments);var i=this.itemSize;(i[0]==null||isNaN(i[0]))&&(i[0]=Dce[0]),(i[1]==null||isNaN(i[1]))&&(i[1]=Dce[1])},a.prototype._resetRange=function(){var i=this.getExtent(),l=this.option.range;!l||l.auto?(i.auto=1,this.option.range=i):Qe(l)&&(l[0]>l[1]&&l.reverse(),l[0]=Math.max(l[0],i[0]),l[1]=Math.min(l[1],i[1]))},a.prototype.completeVisualOption=function(){s.prototype.completeVisualOption.apply(this,arguments),ne(this.stateList,function(i){var l=this.option.controller[i].symbolSize;l&&l[0]!==l[1]&&(l[0]=l[1]/3)},this)},a.prototype.setSelected=function(i){this.option.range=i.slice(),this._resetRange()},a.prototype.getSelected=function(){var i=this.getExtent(),l=aa((this.get("range")||[]).slice());return l[0]>i[1]&&(l[0]=i[1]),l[1]>i[1]&&(l[1]=i[1]),l[0]<i[0]&&(l[0]=i[0]),l[1]<i[0]&&(l[1]=i[0]),l},a.prototype.getValueState=function(i){var l=this.option.range,c=this.getExtent();return(l[0]<=c[0]||l[0]<=i)&&(l[1]>=c[1]||i<=l[1])?"inRange":"outOfRange"},a.prototype.findTargetDataIndices=function(i){var l=[];return this.eachTargetSeries(function(c){var d=[],v=c.getData();v.each(this.getDataDimensionIndex(v),function(m,w){i[0]<=m&&m<=i[1]&&d.push(w)},this),l.push({seriesId:c.id,dataIndex:d})},this),l},a.prototype.getVisualMeta=function(i){var l=Rce(this,"outOfRange",this.getExtent()),c=Rce(this,"inRange",this.option.range.slice()),d=[];function v(D,k){d.push({value:D,color:i(D,k)})}for(var m=0,w=0,S=c.length,x=l.length;w<x&&(!c.length||l[w]<=c[0]);w++)l[w]<c[m]&&v(l[w],"outOfRange");for(var E=1;m<S;m++,E=0)E&&d.length&&v(c[m],"outOfRange"),v(c[m],"inRange");for(var E=1;w<x;w++)(!c.length||c[c.length-1]<l[w])&&(E&&(d.length&&v(d[d.length-1].value,"outOfRange"),E=0),v(l[w],"outOfRange"));var M=d.length;return{stops:d,outerColors:[M?d[0].color:"transparent",M?d[M-1].color:"transparent"]}},a.type="visualMap.continuous",a.defaultOption=sm(cM.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),a}(cM);function Rce(s,a,i){if(i[0]===i[1])return i.slice();for(var l=200,c=(i[1]-i[0])/l,d=i[0],v=[],m=0;m<=l&&d<i[1];m++)v.push(d),d+=c;return v.push(i[1]),v}var Pce=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i.autoPositionValues={left:1,right:1,top:1,bottom:1},i}return a.prototype.init=function(i,l){this.ecModel=i,this.api=l},a.prototype.render=function(i,l,c,d){if(this.visualMapModel=i,i.get("show")===!1){this.group.removeAll();return}this.doRender(i,l,c,d)},a.prototype.renderBackground=function(i){var l=this.visualMapModel,c=r0(l.get("padding")||0),d=i.getBoundingRect();i.add(new R({z2:-1,silent:!0,shape:{x:d.x-c[3],y:d.y-c[0],width:d.width+c[3]+c[1],height:d.height+c[0]+c[2]},style:{fill:l.get("backgroundColor"),stroke:l.get("borderColor"),lineWidth:l.get("borderWidth")}}))},a.prototype.getControllerVisual=function(i,l,c){c=c||{};var d=c.forceState,v=this.visualMapModel,m={};if(l==="color"){var w=v.get("contentColor");m.color=w}function S(D){return m[D]}function x(D,k){m[D]=k}var E=v.controllerVisuals[d||v.getValueState(i)],M=nu.prepareVisualTypes(E);return ne(M,function(D){var k=E[D];c.convertOpacityToAlpha&&D==="opacity"&&(D="colorAlpha",k=E.__alphaForOpacity),nu.dependsOn(D,l)&&k&&k.applyVisual(i,S,x)}),m[l]},a.prototype.positionGroup=function(i){var l=this.visualMapModel,c=this.api;xI(i,l.getBoxLayoutParams(),{width:c.getWidth(),height:c.getHeight()})},a.prototype.doRender=function(i,l,c,d){},a.type="visualMap",a}(ho),Oce=[["left","right","width"],["top","bottom","height"]];function kce(s,a,i){var l=s.option,c=l.align;if(c!=null&&c!=="auto")return c;for(var d={width:a.getWidth(),height:a.getHeight()},v=l.orient==="horizontal"?1:0,m=Oce[v],w=[0,null,10],S={},x=0;x<3;x++)S[Oce[1-v][x]]=w[x],S[m[x]]=x===2?i[0]:l[m[x]];var E=[["x","width",3],["y","height",0]][v],M=ol(S,d,l.padding);return m[(M.margin[E[2]]||0)+M[E[0]]+M[E[1]]*.5<d[E[1]]*.5?0:1]}function fM(s,a){return ne(s||[],function(i){i.dataIndex!=null&&(i.dataIndexInside=i.dataIndex,i.dataIndex=null),i.highlightKey="visualMap"+(a?a.componentIndex:"")}),s}var Lv=ln,AZe=ne,Fce=Math.min,mH=Math.max,vZe=12,pZe=6,gZe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i._shapes={},i._dataInterval=[],i._handleEnds=[],i._hoverLinkDataIndices=[],i}return a.prototype.init=function(i,l){s.prototype.init.call(this,i,l),this._hoverLinkFromSeriesMouseOver=Ue(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Ue(this._hideIndicator,this)},a.prototype.doRender=function(i,l,c,d){(!d||d.type!=="selectDataRange"||d.from!==this.uid)&&this._buildView()},a.prototype._buildView=function(){this.group.removeAll();var i=this.visualMapModel,l=this.group;this._orient=i.get("orient"),this._useHandle=i.get("calculable"),this._resetInterval(),this._renderBar(l);var c=i.get("text");this._renderEndsText(l,c,0),this._renderEndsText(l,c,1),this._updateView(!0),this.renderBackground(l),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(l)},a.prototype._renderEndsText=function(i,l,c){if(l){var d=l[1-c];d=d!=null?d+"":"";var v=this.visualMapModel,m=v.get("textGap"),w=v.itemSize,S=this._shapes.mainGroup,x=this._applyTransform([w[0]/2,c===0?-m:w[1]+m],S),E=this._applyTransform(c===0?"bottom":"top",S),M=this._orient,D=this.visualMapModel.textStyleModel;this.group.add(new be({style:Xa(D,{x:x[0],y:x[1],verticalAlign:M==="horizontal"?"middle":E,align:M==="horizontal"?E:"center",text:d})}))}},a.prototype._renderBar=function(i){var l=this.visualMapModel,c=this._shapes,d=l.itemSize,v=this._orient,m=this._useHandle,w=kce(l,this.api,d),S=c.mainGroup=this._createBarGroup(w),x=new Lr;S.add(x),x.add(c.outOfRange=Nce()),x.add(c.inRange=Nce(null,m?Hce(this._orient):null,Ue(this._dragHandle,this,"all",!1),Ue(this._dragHandle,this,"all",!0))),x.setClipPath(new R({shape:{x:0,y:0,width:d[0],height:d[1],r:3}}));var E=l.textStyleModel.getTextRect("国"),M=mH(E.width,E.height);m&&(c.handleThumbs=[],c.handleLabels=[],c.handleLabelPoints=[],this._createHandle(l,S,0,d,M,v),this._createHandle(l,S,1,d,M,v)),this._createIndicator(l,S,d,M,v),i.add(S)},a.prototype._createHandle=function(i,l,c,d,v,m){var w=Ue(this._dragHandle,this,c,!1),S=Ue(this._dragHandle,this,c,!0),x=tr(i.get("handleSize"),d[0]),E=Os(i.get("handleIcon"),-x/2,-x/2,x,x,null,!0),M=Hce(this._orient);E.attr({cursor:M,draggable:!0,drift:w,ondragend:S,onmousemove:function($){us($.event)}}),E.x=d[0]/2,E.useStyle(i.getModel("handleStyle").getItemStyle()),E.setStyle({strokeNoScale:!0,strokeFirst:!0}),E.style.lineWidth*=2,E.ensureState("emphasis").style=i.getModel(["emphasis","handleStyle"]).getItemStyle(),Yy(E,!0),l.add(E);var D=this.visualMapModel.textStyleModel,k=new be({cursor:M,draggable:!0,drift:w,onmousemove:function($){us($.event)},ondragend:S,style:Xa(D,{x:0,y:0,text:""})});k.ensureState("blur").style={opacity:.1},k.stateTransition={duration:200},this.group.add(k);var Q=[x,0],V=this._shapes;V.handleThumbs[c]=E,V.handleLabelPoints[c]=Q,V.handleLabels[c]=k},a.prototype._createIndicator=function(i,l,c,d,v){var m=tr(i.get("indicatorSize"),c[0]),w=Os(i.get("indicatorIcon"),-m/2,-m/2,m,m,null,!0);w.attr({cursor:"move",invisible:!0,silent:!0,x:c[0]/2});var S=i.getModel("indicatorStyle").getItemStyle();if(w instanceof is){var x=w.style;w.useStyle(ie({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},S))}else w.useStyle(S);l.add(w);var E=this.visualMapModel.textStyleModel,M=new be({silent:!0,invisible:!0,style:Xa(E,{x:0,y:0,text:""})});this.group.add(M);var D=[(v==="horizontal"?d/2:pZe)+c[0]/2,0],k=this._shapes;k.indicator=w,k.indicatorLabel=M,k.indicatorLabelPoint=D,this._firstShowIndicator=!0},a.prototype._dragHandle=function(i,l,c,d){if(this._useHandle){if(this._dragging=!l,!l){var v=this._applyTransform([c,d],this._shapes.mainGroup,!0);this._updateInterval(i,v[1]),this._hideIndicator(),this._updateView()}l===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),l?!this._hovering&&this._clearHoverLinkToSeries():Uce(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[i],!1)}},a.prototype._resetInterval=function(){var i=this.visualMapModel,l=this._dataInterval=i.getSelected(),c=i.getExtent(),d=[0,i.itemSize[1]];this._handleEnds=[Lv(l[0],c,d,!0),Lv(l[1],c,d,!0)]},a.prototype._updateInterval=function(i,l){l=l||0;var c=this.visualMapModel,d=this._handleEnds,v=[0,c.itemSize[1]];D0(l,d,v,i,0);var m=c.getExtent();this._dataInterval=[Lv(d[0],v,m,!0),Lv(d[1],v,m,!0)]},a.prototype._updateView=function(i){var l=this.visualMapModel,c=l.getExtent(),d=this._shapes,v=[0,l.itemSize[1]],m=i?v:this._handleEnds,w=this._createBarVisual(this._dataInterval,c,m,"inRange"),S=this._createBarVisual(c,c,v,"outOfRange");d.inRange.setStyle({fill:w.barColor}).setShape("points",w.barPoints),d.outOfRange.setStyle({fill:S.barColor}).setShape("points",S.barPoints),this._updateHandle(m,w)},a.prototype._createBarVisual=function(i,l,c,d){var v={forceState:d,convertOpacityToAlpha:!0},m=this._makeColorGradient(i,v),w=[this.getControllerVisual(i[0],"symbolSize",v),this.getControllerVisual(i[1],"symbolSize",v)],S=this._createBarPoints(c,w);return{barColor:new Zw(0,0,0,1,m),barPoints:S,handlesColor:[m[0].color,m[m.length-1].color]}},a.prototype._makeColorGradient=function(i,l){var c=100,d=[],v=(i[1]-i[0])/c;d.push({color:this.getControllerVisual(i[0],"color",l),offset:0});for(var m=1;m<c;m++){var w=i[0]+v*m;if(w>i[1])break;d.push({color:this.getControllerVisual(w,"color",l),offset:m/c})}return d.push({color:this.getControllerVisual(i[1],"color",l),offset:1}),d},a.prototype._createBarPoints=function(i,l){var c=this.visualMapModel.itemSize;return[[c[0]-l[0],i[0]],[c[0],i[0]],[c[0],i[1]],[c[0]-l[1],i[1]]]},a.prototype._createBarGroup=function(i){var l=this._orient,c=this.visualMapModel.get("inverse");return new Lr(l==="horizontal"&&!c?{scaleX:i==="bottom"?1:-1,rotation:Math.PI/2}:l==="horizontal"&&c?{scaleX:i==="bottom"?-1:1,rotation:-Math.PI/2}:l==="vertical"&&!c?{scaleX:i==="left"?1:-1,scaleY:-1}:{scaleX:i==="left"?1:-1})},a.prototype._updateHandle=function(i,l){if(this._useHandle){var c=this._shapes,d=this.visualMapModel,v=c.handleThumbs,m=c.handleLabels,w=d.itemSize,S=d.getExtent(),x=this._applyTransform("left",c.mainGroup);AZe([0,1],function(E){var M=v[E];M.setStyle("fill",l.handlesColor[E]),M.y=i[E];var D=Lv(i[E],[0,w[1]],S,!0),k=this.getControllerVisual(D,"symbolSize");M.scaleX=M.scaleY=k/w[0],M.x=w[0]-k/2;var Q=AA(c.handleLabelPoints[E],am(M,this.group));if(this._orient==="horizontal"){var V=x==="left"||x==="top"?(w[0]-k)/2:(w[0]-k)/-2;Q[1]+=V}m[E].setStyle({x:Q[0],y:Q[1],text:d.formatValueText(this._dataInterval[E]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",c.mainGroup):"center"})},this)}},a.prototype._showIndicator=function(i,l,c,d){var v=this.visualMapModel,m=v.getExtent(),w=v.itemSize,S=[0,w[1]],x=this._shapes,E=x.indicator;if(E){E.attr("invisible",!1);var M={convertOpacityToAlpha:!0},D=this.getControllerVisual(i,"color",M),k=this.getControllerVisual(i,"symbolSize"),Q=Lv(i,m,S,!0),V=w[0]-k/2,$={x:E.x,y:E.y};E.y=Q,E.x=V;var Z=AA(x.indicatorLabelPoint,am(E,this.group)),ee=x.indicatorLabel;ee.attr("invisible",!1);var fe=this._applyTransform("left",x.mainGroup),ve=this._orient,ge=ve==="horizontal";ee.setStyle({text:(c||"")+v.formatValueText(l),verticalAlign:ge?fe:"middle",align:ge?"center":fe});var Se={x:V,y:Q,style:{fill:D}},Ee={style:{x:Z[0],y:Z[1]}};if(v.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var Ie={duration:100,easing:"cubicInOut",additive:!0};E.x=$.x,E.y=$.y,E.animateTo(Se,Ie),ee.animateTo(Ee,Ie)}else E.attr(Se),ee.attr(Ee);this._firstShowIndicator=!1;var Le=this._shapes.handleLabels;if(Le)for(var Fe=0;Fe<Le.length;Fe++)this.api.enterBlur(Le[Fe])}},a.prototype._enableHoverLinkToSeries=function(){var i=this;this._shapes.mainGroup.on("mousemove",function(l){if(i._hovering=!0,!i._dragging){var c=i.visualMapModel.itemSize,d=i._applyTransform([l.offsetX,l.offsetY],i._shapes.mainGroup,!0,!0);d[1]=Fce(mH(0,d[1]),c[1]),i._doHoverLinkToSeries(d[1],0<=d[0]&&d[0]<=c[0])}}).on("mouseout",function(){i._hovering=!1,!i._dragging&&i._clearHoverLinkToSeries()})},a.prototype._enableHoverLinkFromSeries=function(){var i=this.api.getZr();this.visualMapModel.option.hoverLink?(i.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),i.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},a.prototype._doHoverLinkToSeries=function(i,l){var c=this.visualMapModel,d=c.itemSize;if(c.option.hoverLink){var v=[0,d[1]],m=c.getExtent();i=Fce(mH(v[0],i),v[1]);var w=mZe(c,m,v),S=[i-w,i+w],x=Lv(i,v,m,!0),E=[Lv(S[0],v,m,!0),Lv(S[1],v,m,!0)];S[0]<v[0]&&(E[0]=-1/0),S[1]>v[1]&&(E[1]=1/0),l&&(E[0]===-1/0?this._showIndicator(x,E[1],"< ",w):E[1]===1/0?this._showIndicator(x,E[0],"> ",w):this._showIndicator(x,x,"≈ ",w));var M=this._hoverLinkDataIndices,D=[];(l||Uce(c))&&(D=this._hoverLinkDataIndices=c.findTargetDataIndices(E));var k=NB(M,D);this._dispatchHighDown("downplay",fM(k[0],c)),this._dispatchHighDown("highlight",fM(k[1],c))}},a.prototype._hoverLinkFromSeriesMouseOver=function(i){var l;if(c0(i.target,function(w){var S=bt(w);if(S.dataIndex!=null)return l=S,!0},!0),!!l){var c=this.ecModel.getSeriesByIndex(l.seriesIndex),d=this.visualMapModel;if(d.isTargetSeries(c)){var v=c.getData(l.dataType),m=v.getStore().get(d.getDataDimensionIndex(v),l.dataIndex);isNaN(m)||this._showIndicator(m,m)}}},a.prototype._hideIndicator=function(){var i=this._shapes;i.indicator&&i.indicator.attr("invisible",!0),i.indicatorLabel&&i.indicatorLabel.attr("invisible",!0);var l=this._shapes.handleLabels;if(l)for(var c=0;c<l.length;c++)this.api.leaveBlur(l[c])},a.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var i=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",fM(i,this.visualMapModel)),i.length=0},a.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var i=this.api.getZr();i.off("mouseover",this._hoverLinkFromSeriesMouseOver),i.off("mouseout",this._hideIndicator)},a.prototype._applyTransform=function(i,l,c,d){var v=am(l,d?null:this.group);return Qe(i)?AA(i,v,c):hI(i,v,c)},a.prototype._dispatchHighDown=function(i,l){l&&l.length&&this.api.dispatchAction({type:i,batch:l})},a.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},a.type="visualMap.continuous",a}(Pce);function Nce(s,a,i,l){return new dc({shape:{points:s},draggable:!!i,cursor:a,drift:i,onmousemove:function(c){us(c.event)},ondragend:l})}function mZe(s,a,i){var l=vZe/2,c=s.get("hoverLinkDataSize");return c&&(l=Lv(c,a,i,!0)/2),l}function Uce(s){var a=s.get("hoverLinkOnHandle");return!!(a??s.get("realtime"))}function Hce(s){return s==="vertical"?"ns-resize":"ew-resize"}var yZe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},wZe=function(s,a){a.eachComponent({mainType:"visualMap",query:s},function(i){i.setSelected(s.selected)})},bZe=[{createOnAllSeries:!0,reset:function(s,a){var i=[];return a.eachComponent("visualMap",function(l){var c=s.pipelineContext;!l.isTargetSeries(s)||c&&c.large||i.push(zYe(l.stateList,l.targetVisuals,Ue(l.getValueState,l),l.getDataDimensionIndex(s.getData())))}),i}},{createOnAllSeries:!0,reset:function(s,a){var i=s.getData(),l=[];a.eachComponent("visualMap",function(c){if(c.isTargetSeries(s)){var d=c.getVisualMeta(Ue(_Ze,null,s,c))||{stops:[],outerColors:[]},v=c.getDataDimensionIndex(i);v>=0&&(d.dimension=v,l.push(d))}}),s.getData().setVisual("visualMeta",l)}}];function _Ze(s,a,i,l){for(var c=a.targetVisuals[l],d=nu.prepareVisualTypes(c),v={color:sC(s.getData(),"color")},m=0,w=d.length;m<w;m++){var S=d[m],x=c[S==="opacity"?"__alphaForOpacity":S];x&&x.applyVisual(i,E,M)}return v.color;function E(D){return v[D]}function M(D,k){v[D]=k}}var Qce=ne;function SZe(s){var a=s&&s.visualMap;Qe(a)||(a=a?[a]:[]),Qce(a,function(i){if(i){zb(i,"splitList")&&!zb(i,"pieces")&&(i.pieces=i.splitList,delete i.splitList);var l=i.pieces;l&&Qe(l)&&Qce(l,function(c){Pe(c)&&(zb(c,"start")&&!zb(c,"min")&&(c.min=c.start),zb(c,"end")&&!zb(c,"max")&&(c.max=c.end))})}})}function zb(s,a){return s&&s.hasOwnProperty&&s.hasOwnProperty(a)}var Vce=!1;function zce(s){Vce||(Vce=!0,s.registerSubTypeDefaulter("visualMap",function(a){return!a.categories&&(!(a.pieces?a.pieces.length>0:a.splitNumber>0)||a.calculable)?"continuous":"piecewise"}),s.registerAction(yZe,wZe),ne(bZe,function(a){s.registerVisual(s.PRIORITY.VISUAL.COMPONENT,a)}),s.registerPreprocessor(SZe))}function Gce(s){s.registerComponentModel(dZe),s.registerComponentView(gZe),zce(s)}var xZe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i._pieceList=[],i}return a.prototype.optionUpdated=function(i,l){s.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var c=this._mode=this._determineMode();this._pieceList=[],CZe[this._mode].call(this,this._pieceList),this._resetSelected(i,l);var d=this.option.categories;this.resetVisual(function(v,m){c==="categories"?(v.mappingMethod="category",v.categories=ae(d)):(v.dataExtent=this.getExtent(),v.mappingMethod="piecewise",v.pieceList=xe(this._pieceList,function(w){return w=ae(w),m!=="inRange"&&(w.visual=null),w}))})},a.prototype.completeVisualOption=function(){var i=this.option,l={},c=nu.listVisualTypes(),d=this.isCategory();ne(i.pieces,function(m){ne(c,function(w){m.hasOwnProperty(w)&&(l[w]=1)})}),ne(l,function(m,w){var S=!1;ne(this.stateList,function(x){S=S||v(i,x,w)||v(i.target,x,w)},this),!S&&ne(this.stateList,function(x){(i[x]||(i[x]={}))[w]=Ice.get(w,x==="inRange"?"active":"inactive",d)})},this);function v(m,w,S){return m&&m[w]&&m[w].hasOwnProperty(S)}s.prototype.completeVisualOption.apply(this,arguments)},a.prototype._resetSelected=function(i,l){var c=this.option,d=this._pieceList,v=(l?c:i).selected||{};if(c.selected=v,ne(d,function(w,S){var x=this.getSelectedMapKey(w);v.hasOwnProperty(x)||(v[x]=!0)},this),c.selectedMode==="single"){var m=!1;ne(d,function(w,S){var x=this.getSelectedMapKey(w);v[x]&&(m?v[x]=!1:m=!0)},this)}},a.prototype.getItemSymbol=function(){return this.get("itemSymbol")},a.prototype.getSelectedMapKey=function(i){return this._mode==="categories"?i.value+"":i.index+""},a.prototype.getPieceList=function(){return this._pieceList},a.prototype._determineMode=function(){var i=this.option;return i.pieces&&i.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},a.prototype.setSelected=function(i){this.option.selected=ae(i)},a.prototype.getValueState=function(i){var l=nu.findPieceIndex(i,this._pieceList);return l!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[l])]?"inRange":"outOfRange"},a.prototype.findTargetDataIndices=function(i){var l=[],c=this._pieceList;return this.eachTargetSeries(function(d){var v=[],m=d.getData();m.each(this.getDataDimensionIndex(m),function(w,S){var x=nu.findPieceIndex(w,c);x===i&&v.push(S)},this),l.push({seriesId:d.id,dataIndex:v})},this),l},a.prototype.getRepresentValue=function(i){var l;if(this.isCategory())l=i.value;else if(i.value!=null)l=i.value;else{var c=i.interval||[];l=c[0]===-1/0&&c[1]===1/0?0:(c[0]+c[1])/2}return l},a.prototype.getVisualMeta=function(i){if(this.isCategory())return;var l=[],c=["",""],d=this;function v(x,E){var M=d.getRepresentValue({interval:x});E||(E=d.getValueState(M));var D=i(M,E);x[0]===-1/0?c[0]=D:x[1]===1/0?c[1]=D:l.push({value:x[0],color:D},{value:x[1],color:D})}var m=this._pieceList.slice();if(!m.length)m.push({interval:[-1/0,1/0]});else{var w=m[0].interval[0];w!==-1/0&&m.unshift({interval:[-1/0,w]}),w=m[m.length-1].interval[1],w!==1/0&&m.push({interval:[w,1/0]})}var S=-1/0;return ne(m,function(x){var E=x.interval;E&&(E[0]>S&&v([S,E[0]],"outOfRange"),v(E.slice()),S=E[1])},this),{stops:l,outerColors:c}},a.type="visualMap.piecewise",a.defaultOption=sm(cM.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}),a}(cM),CZe={splitNumber:function(s){var a=this.option,i=Math.min(a.precision,20),l=this.getExtent(),c=a.splitNumber;c=Math.max(parseInt(c,10),1),a.splitNumber=c;for(var d=(l[1]-l[0])/c;+d.toFixed(i)!==d&&i<5;)i++;a.precision=i,d=+d.toFixed(i),a.minOpen&&s.push({interval:[-1/0,l[0]],close:[0,0]});for(var v=0,m=l[0];v<c;m+=d,v++){var w=v===c-1?l[1]:m+d;s.push({interval:[m,w],close:[1,1]})}a.maxOpen&&s.push({interval:[l[1],1/0],close:[0,0]}),cv(s),ne(s,function(S,x){S.index=x,S.text=this.formatValueText(S.interval)},this)},categories:function(s){var a=this.option;ne(a.categories,function(i){s.push({text:this.formatValueText(i,!0),value:i})},this),jce(a,s)},pieces:function(s){var a=this.option;ne(a.pieces,function(i,l){Pe(i)||(i={value:i});var c={text:"",index:l};if(i.label!=null&&(c.text=i.label),i.hasOwnProperty("value")){var d=c.value=i.value;c.interval=[d,d],c.close=[1,1]}else{for(var v=c.interval=[],m=c.close=[0,0],w=[1,0,1],S=[-1/0,1/0],x=[],E=0;E<2;E++){for(var M=[["gte","gt","min"],["lte","lt","max"]][E],D=0;D<3&&v[E]==null;D++)v[E]=i[M[D]],m[E]=w[D],x[E]=D===2;v[E]==null&&(v[E]=S[E])}x[0]&&v[1]===1/0&&(m[0]=0),x[1]&&v[0]===-1/0&&(m[1]=0),v[0]>v[1]&&console.warn("Piece "+l+"is illegal: "+v+" lower bound should not greater then uppper bound."),v[0]===v[1]&&m[0]&&m[1]&&(c.value=v[0])}c.visual=nu.retrieveVisuals(i),s.push(c)},this),jce(a,s),cv(s),ne(s,function(i){var l=i.close,c=[["<","≤"][l[1]],[">","≥"][l[0]]];i.text=i.text||this.formatValueText(i.value!=null?i.value:i.interval,!1,c)},this)}};function jce(s,a){var i=s.inverse;(s.orient==="vertical"?!i:i)&&a.reverse()}var TZe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type=a.type,i}return a.prototype.doRender=function(){var i=this.group;i.removeAll();var l=this.visualMapModel,c=l.get("textGap"),d=l.textStyleModel,v=d.getFont(),m=d.getTextColor(),w=this._getItemAlign(),S=l.itemSize,x=this._getViewData(),E=x.endsText,M=Bt(l.get("showLabel",!0),!E),D=!l.get("selectedMode");E&&this._renderEndsText(i,E[0],S,M,w),ne(x.viewPieceList,function(k){var Q=k.piece,V=new Lr;V.onclick=Ue(this._onItemClick,this,Q),this._enableHoverLink(V,k.indexInModelPieceList);var $=l.getRepresentValue(Q);if(this._createItemSymbol(V,$,[0,0,S[0],S[1]],D),M){var Z=this.visualMapModel.getValueState($);V.add(new be({style:{x:w==="right"?-c:S[0]+c,y:S[1]/2,text:Q.text,verticalAlign:"middle",align:w,font:v,fill:m,opacity:Z==="outOfRange"?.5:1},silent:D}))}i.add(V)},this),E&&this._renderEndsText(i,E[1],S,M,w),a0(l.get("orient"),i,l.get("itemGap")),this.renderBackground(i),this.positionGroup(i)},a.prototype._enableHoverLink=function(i,l){var c=this;i.on("mouseover",function(){return d("highlight")}).on("mouseout",function(){return d("downplay")});var d=function(v){var m=c.visualMapModel;m.option.hoverLink&&c.api.dispatchAction({type:v,batch:fM(m.findTargetDataIndices(l),m)})}},a.prototype._getItemAlign=function(){var i=this.visualMapModel,l=i.option;if(l.orient==="vertical")return kce(i,this.api,i.itemSize);var c=l.align;return(!c||c==="auto")&&(c="left"),c},a.prototype._renderEndsText=function(i,l,c,d,v){if(l){var m=new Lr,w=this.visualMapModel.textStyleModel;m.add(new be({style:Xa(w,{x:d?v==="right"?c[0]:0:c[0]/2,y:c[1]/2,verticalAlign:"middle",align:d?v:"center",text:l})})),i.add(m)}},a.prototype._getViewData=function(){var i=this.visualMapModel,l=xe(i.getPieceList(),function(m,w){return{piece:m,indexInModelPieceList:w}}),c=i.get("text"),d=i.get("orient"),v=i.get("inverse");return(d==="horizontal"?v:!v)?l.reverse():c&&(c=c.slice().reverse()),{viewPieceList:l,endsText:c}},a.prototype._createItemSymbol=function(i,l,c,d){var v=Os(this.getControllerVisual(l,"symbol"),c[0],c[1],c[2],c[3],this.getControllerVisual(l,"color"));v.silent=d,i.add(v)},a.prototype._onItemClick=function(i){var l=this.visualMapModel,c=l.option,d=c.selectedMode;if(d){var v=ae(c.selected),m=l.getSelectedMapKey(i);d==="single"||d===!0?(v[m]=!0,ne(v,function(w,S){v[S]=S===m})):v[m]=!v[m],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:v})}},a.type="visualMap.piecewise",a}(Pce);function qce(s){s.registerComponentModel(xZe),s.registerComponentView(TZe),zce(s)}function EZe(s){ui(Gce),ui(qce)}var BZe={label:{enabled:!0},decal:{show:!1}},Wce=Ri(),IZe={};function LZe(s,a){var i=s.getModel("aria");if(!i.get("enabled"))return;var l=ae(BZe);le(l.label,s.getLocaleModel().get("aria"),!1),le(i.option,l,!1),c(),d();function c(){var S=i.getModel("decal"),x=S.get("show");if(x){var E=Ht();s.eachSeries(function(M){if(!M.isColorBySeries()){var D=E.get(M.type);D||(D={},E.set(M.type,D)),Wce(M).scope=D}}),s.eachRawSeries(function(M){if(s.isSeriesFiltered(M))return;if(qe(M.enableAriaDecal)){M.enableAriaDecal();return}var D=M.getData();if(M.isColorBySeries()){var Z=fN(M.ecModel,M.name,IZe,s.getSeriesCount()),ee=D.getVisual("decal");D.setVisual("decal",fe(ee,Z))}else{var k=M.getRawData(),Q={},V=Wce(M).scope;D.each(function(ve){var ge=D.getRawIndex(ve);Q[ge]=ve});var $=k.count();k.each(function(ve){var ge=Q[ve],Se=k.getName(ve)||ve+"",Ee=fN(M.ecModel,Se,V,$),Ie=D.getItemVisual(ge,"decal");D.setItemVisual(ge,"decal",fe(Ie,Ee))})}function fe(ve,ge){var Se=ve?ie(ie({},ge),ve):ge;return Se.dirty=!0,Se}})}}function d(){var S=a.getZr().dom;if(S){var x=s.getLocaleModel().get("aria"),E=i.getModel("label");if(E.option=he(E.option,x),!!E.get("enabled")){if(S.setAttribute("role","img"),E.get("description")){S.setAttribute("aria-label",E.get("description"));return}var M=s.getSeriesCount(),D=E.get(["data","maxCount"])||10,k=E.get(["series","maxCount"])||10,Q=Math.min(M,k),V;if(!(M<1)){var $=m();if($){var Z=E.get(["general","withTitle"]);V=v(Z,{title:$})}else V=E.get(["general","withoutTitle"]);var ee=[],fe=M>1?E.get(["series","multiple","prefix"]):E.get(["series","single","prefix"]);V+=v(fe,{seriesCount:M}),s.eachSeries(function(Ee,Ie){if(Ie<Q){var Le=void 0,Fe=Ee.get("name"),Je=Fe?"withName":"withoutName";Le=M>1?E.get(["series","multiple",Je]):E.get(["series","single",Je]),Le=v(Le,{seriesId:Ee.seriesIndex,seriesName:Ee.get("name"),seriesType:w(Ee.subType)});var rt=Ee.getData();if(rt.count()>D){var at=E.get(["data","partialData"]);Le+=v(at,{displayCnt:D})}else Le+=E.get(["data","allData"]);for(var dt=E.get(["data","separator","middle"]),wt=E.get(["data","separator","end"]),zt=E.get(["data","excludeDimensionId"]),Ut=[],Yt=0;Yt<rt.count();Yt++)if(Yt<D){var ur=rt.getName(Yt),wr=zt?ze(rt.getValues(Yt),function(vn,wn){return oe(zt,wn)===-1}):rt.getValues(Yt),Or=E.get(["data",ur?"withName":"withoutName"]);Ut.push(v(Or,{name:ur,value:wr.join(dt)}))}Le+=Ut.join(dt)+wt,ee.push(Le)}});var ve=E.getModel(["series","multiple","separator"]),ge=ve.get("middle"),Se=ve.get("end");V+=ee.join(ge)+Se,S.setAttribute("aria-label",V)}}}}function v(S,x){if(!Re(S))return S;var E=S;return ne(x,function(M,D){E=E.replace(new RegExp("\\{\\s*"+D+"\\s*\\}","g"),M)}),E}function m(){var S=s.get("title");return S&&S.length&&(S=S[0]),S&&S.text}function w(S){var x=s.getLocaleModel().get(["series","typeNames"]);return x[S]||x.chart}}function MZe(s){if(!(!s||!s.aria)){var a=s.aria;a.show!=null&&(a.enabled=a.show),a.label=a.label||{},ne(["description","general","series","data"],function(i){a[i]!=null&&(a.label[i]=a[i])})}}function DZe(s){s.registerPreprocessor(MZe),s.registerVisual(s.PRIORITY.VISUAL.ARIA,LZe)}var $ce={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},RZe=function(){function s(a){var i=this._condVal=Re(a)?new RegExp(a):Mt(a)?a:null;if(i==null){var l="";l=Do("Illegal regexp",a,"in"),Fi(l)}}return s.prototype.evaluate=function(a){var i=typeof a;return Re(i)?this._condVal.test(a):Ge(i)?this._condVal.test(a+""):!1},s}(),PZe=function(){function s(){}return s.prototype.evaluate=function(){return this.value},s}(),OZe=function(){function s(){}return s.prototype.evaluate=function(){for(var a=this.children,i=0;i<a.length;i++)if(!a[i].evaluate())return!1;return!0},s}(),kZe=function(){function s(){}return s.prototype.evaluate=function(){for(var a=this.children,i=0;i<a.length;i++)if(a[i].evaluate())return!0;return!1},s}(),FZe=function(){function s(){}return s.prototype.evaluate=function(){return!this.child.evaluate()},s}(),NZe=function(){function s(){}return s.prototype.evaluate=function(){for(var a=!!this.valueParser,i=this.getValue,l=i(this.valueGetterParam),c=a?this.valueParser(l):null,d=0;d<this.subCondList.length;d++)if(!this.subCondList[d].evaluate(a?c:l))return!1;return!0},s}();function yH(s,a){if(s===!0||s===!1){var i=new PZe;return i.value=s,i}var l="";return Yce(s)||(l=Do("Illegal config. Expect a plain object but actually",s),Fi(l)),s.and?Kce("and",s,a):s.or?Kce("or",s,a):s.not?UZe(s,a):HZe(s,a)}function Kce(s,a,i){var l=a[s],c="";c=Do('"and"/"or" condition should only be `'+s+": [...]` and must not be empty array.","Illegal condition:",a),Qe(l)||Fi(c),l.length||Fi(c);var d=s==="and"?new OZe:new kZe;return d.children=xe(l,function(v){return yH(v,i)}),d.children.length||Fi(c),d}function UZe(s,a){var i=s.not,l="";l=Do('"not" condition should only be `not: {}`.',"Illegal condition:",s),Yce(i)||Fi(l);var c=new FZe;return c.child=yH(i,a),c.child||Fi(l),c}function HZe(s,a){for(var i="",l=a.prepareGetValue(s),c=[],d=Ne(s),v=s.parser,m=v?Cte(v):null,w=0;w<d.length;w++){var S=d[w];if(!(S==="parser"||a.valueGetterAttrMap.get(S))){var x=At($ce,S)?$ce[S]:S,E=s[S],M=m?m(E):E,D=fHe(x,M)||x==="reg"&&new RZe(M);D||(i=Do('Illegal relational operation: "'+S+'" in condition:',s),Fi(i)),c.push(D)}}c.length||(i=Do("Relational condition must have at least one operator.","Illegal condition:",s),Fi(i));var k=new NZe;return k.valueGetterParam=l,k.valueParser=m,k.getValue=a.getValue,k.subCondList=c,k}function Yce(s){return Pe(s)&&!Ce(s)}var QZe=function(){function s(a,i){this._cond=yH(a,i)}return s.prototype.evaluate=function(){return this._cond.evaluate()},s}();function VZe(s,a){return new QZe(s,a)}var zZe={type:"echarts:filter",transform:function(s){for(var a=s.upstream,i,l=VZe(s.config,{valueGetterAttrMap:Ht({dimension:!0}),prepareGetValue:function(m){var w="",S=m.dimension;At(m,"dimension")||(w=Do('Relation condition must has prop "dimension" specified.',"Illegal condition:",m),Fi(w));var x=a.getDimensionInfo(S);return x||(w=Do("Can not find dimension info via: "+S+`.
`,"Existing dimensions: ",a.cloneAllDimensionInfo(),`.
`,"Illegal condition:",m,`.
`),Fi(w)),{dimIdx:x.index}},getValue:function(m){return a.retrieveValueFromItem(i,m.dimIdx)}}),c=[],d=0,v=a.count();d<v;d++)i=a.getRawDataItem(d),l.evaluate()&&c.push(i);return{data:c}}},wH="";wH=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" ");var GZe={type:"echarts:sort",transform:function(s){var a=s.upstream,i=s.config,l="",c=Ni(i);c.length||(l="Empty `config` in sort transform.",Fi(l));var d=[];ne(c,function(x){var E=x.dimension,M=x.order,D=x.parser,k=x.incomparable;if(E==null&&(l='Sort transform config must has "dimension" specified.'+wH,Fi(l)),M!=="asc"&&M!=="desc"&&(l='Sort transform config must has "order" specified.'+wH,Fi(l)),k&&k!=="min"&&k!=="max"){var Q="";Q='incomparable must be "min" or "max" rather than "'+k+'".',Fi(Q)}if(M!=="asc"&&M!=="desc"){var V="";V='order must be "asc" or "desc" rather than "'+M+'".',Fi(V)}var $=a.getDimensionInfo(E);$||(l=Do("Can not find dimension info via: "+E+`.
`,"Existing dimensions: ",a.cloneAllDimensionInfo(),`.
`,"Illegal config:",x,`.
`),Fi(l));var Z=D?Cte(D):null;D&&!Z&&(l=Do("Invalid parser name "+D+`.
`,"Illegal config:",x,`.
`),Fi(l)),d.push({dimIdx:$.index,parser:Z,comparator:new Ete(M,k)})});var v=a.sourceFormat;v!==vc&&v!==rd&&(l='sourceFormat "'+v+'" is not supported yet',Fi(l));for(var m=[],w=0,S=a.count();w<S;w++)m.push(a.getRawDataItem(w));return m.sort(function(x,E){for(var M=0;M<d.length;M++){var D=d[M],k=a.retrieveValueFromItem(x,D.dimIdx),Q=a.retrieveValueFromItem(E,D.dimIdx);D.parser&&(k=D.parser(k),Q=D.parser(Q));var V=D.comparator.evaluate(k,Q);if(V!==0)return V}return 0}),{data:m}}};function jZe(s){s.registerTransform(zZe),s.registerTransform(GZe)}var qZe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type="dataset",i}return a.prototype.init=function(i,l,c){s.prototype.init.call(this,i,l,c),this._sourceManager=new Rte(this),Pte(this)},a.prototype.mergeOption=function(i,l){s.prototype.mergeOption.call(this,i,l),Pte(this)},a.prototype.optionUpdated=function(){this._sourceManager.dirty()},a.prototype.getSourceManager=function(){return this._sourceManager},a.type="dataset",a.defaultOption={seriesLayoutBy:_v},a}(li),WZe=function(s){o(a,s);function a(){var i=s!==null&&s.apply(this,arguments)||this;return i.type="dataset",i}return a.type="dataset",a}(ho);function $Ze(s){s.registerComponentModel(qZe),s.registerComponentView(WZe)}var Mv=hh.CMD;function Gb(s,a){return Math.abs(s-a)<1e-5}function bH(s){var a=s.data,i=s.len(),l=[],c,d=0,v=0,m=0,w=0;function S(rt,at){c&&c.length>2&&l.push(c),c=[rt,at]}function x(rt,at,dt,wt){Gb(rt,dt)&&Gb(at,wt)||c.push(rt,at,dt,wt,dt,wt)}function E(rt,at,dt,wt,zt,Ut){var Yt=Math.abs(at-rt),ur=Math.tan(Yt/4)*4/3,wr=at<rt?-1:1,Or=Math.cos(rt),vn=Math.sin(rt),wn=Math.cos(at),Un=Math.sin(at),Ha=Or*zt+dt,Cs=vn*Ut+wt,ei=wn*zt+dt,Cn=Un*Ut+wt,di=zt*ur*wr,tn=Ut*ur*wr;c.push(Ha-di*vn,Cs+tn*Or,ei+di*Un,Cn-tn*wn,ei,Cn)}for(var M,D,k,Q,V=0;V<i;){var $=a[V++],Z=V===1;switch(Z&&(d=a[V],v=a[V+1],m=d,w=v,($===Mv.L||$===Mv.C||$===Mv.Q)&&(c=[m,w])),$){case Mv.M:d=m=a[V++],v=w=a[V++],S(m,w);break;case Mv.L:M=a[V++],D=a[V++],x(d,v,M,D),d=M,v=D;break;case Mv.C:c.push(a[V++],a[V++],a[V++],a[V++],d=a[V++],v=a[V++]);break;case Mv.Q:M=a[V++],D=a[V++],k=a[V++],Q=a[V++],c.push(d+2/3*(M-d),v+2/3*(D-v),k+2/3*(M-k),Q+2/3*(D-Q),k,Q),d=k,v=Q;break;case Mv.A:var ee=a[V++],fe=a[V++],ve=a[V++],ge=a[V++],Se=a[V++],Ee=a[V++]+Se;V+=1;var Ie=!a[V++];M=Math.cos(Se)*ve+ee,D=Math.sin(Se)*ge+fe,Z?(m=M,w=D,S(m,w)):x(d,v,M,D),d=Math.cos(Ee)*ve+ee,v=Math.sin(Ee)*ge+fe;for(var Le=(Ie?-1:1)*Math.PI/2,Fe=Se;Ie?Fe>Ee:Fe<Ee;Fe+=Le){var Je=Ie?Math.max(Fe+Le,Ee):Math.min(Fe+Le,Ee);E(Fe,Je,ee,fe,ve,ge)}break;case Mv.R:m=d=a[V++],w=v=a[V++],M=m+a[V++],D=w+a[V++],S(M,w),x(M,w,M,D),x(M,D,m,D),x(m,D,m,w),x(m,w,M,w);break;case Mv.Z:c&&x(d,v,m,w),d=m,v=w;break}}return c&&c.length>2&&l.push(c),l}function _H(s,a,i,l,c,d,v,m,w,S){if(Gb(s,i)&&Gb(a,l)&&Gb(c,v)&&Gb(d,m)){w.push(v,m);return}var x=2/S,E=x*x,M=v-s,D=m-a,k=Math.sqrt(M*M+D*D);M/=k,D/=k;var Q=i-s,V=l-a,$=c-v,Z=d-m,ee=Q*Q+V*V,fe=$*$+Z*Z;if(ee<E&&fe<E){w.push(v,m);return}var ve=M*Q+D*V,ge=-M*$-D*Z,Se=ee-ve*ve,Ee=fe-ge*ge;if(Se<E&&ve>=0&&Ee<E&&ge>=0){w.push(v,m);return}var Ie=[],Le=[];gu(s,i,c,v,.5,Ie),gu(a,l,d,m,.5,Le),_H(Ie[0],Le[0],Ie[1],Le[1],Ie[2],Le[2],Ie[3],Le[3],w,S),_H(Ie[4],Le[4],Ie[5],Le[5],Ie[6],Le[6],Ie[7],Le[7],w,S)}function KZe(s,a){var i=bH(s),l=[];a=a||1;for(var c=0;c<i.length;c++){var d=i[c],v=[],m=d[0],w=d[1];v.push(m,w);for(var S=2;S<d.length;){var x=d[S++],E=d[S++],M=d[S++],D=d[S++],k=d[S++],Q=d[S++];_H(m,w,x,E,M,D,k,Q,v,a),m=k,w=Q}l.push(v)}return l}function Xce(s,a,i){var l=s[a],c=s[1-a],d=Math.abs(l/c),v=Math.ceil(Math.sqrt(d*i)),m=Math.floor(i/v);m===0&&(m=1,v=i);for(var w=[],S=0;S<v;S++)w.push(m);var x=v*m,E=i-x;if(E>0)for(var S=0;S<E;S++)w[S%v]+=1;return w}function Zce(s,a,i){for(var l=s.r0,c=s.r,d=s.startAngle,v=s.endAngle,m=Math.abs(v-d),w=m*c,S=c-l,x=w>Math.abs(S),E=Xce([w,S],x?0:1,a),M=(x?m:S)/E.length,D=0;D<E.length;D++)for(var k=(x?S:m)/E[D],Q=0;Q<E[D];Q++){var V={};x?(V.startAngle=d+M*D,V.endAngle=d+M*(D+1),V.r0=l+k*Q,V.r=l+k*(Q+1)):(V.startAngle=d+k*Q,V.endAngle=d+k*(Q+1),V.r0=l+M*D,V.r=l+M*(D+1)),V.clockwise=s.clockwise,V.cx=s.cx,V.cy=s.cy,i.push(V)}}function YZe(s,a,i){for(var l=s.width,c=s.height,d=l>c,v=Xce([l,c],d?0:1,a),m=d?"width":"height",w=d?"height":"width",S=d?"x":"y",x=d?"y":"x",E=s[m]/v.length,M=0;M<v.length;M++)for(var D=s[w]/v[M],k=0;k<v[M];k++){var Q={};Q[S]=M*E,Q[x]=k*D,Q[m]=E,Q[w]=D,Q.x+=s.x,Q.y+=s.y,i.push(Q)}}function Jce(s,a,i,l){return s*l-i*a}function XZe(s,a,i,l,c,d,v,m){var w=i-s,S=l-a,x=v-c,E=m-d,M=Jce(x,E,w,S);if(Math.abs(M)<1e-6)return null;var D=s-c,k=a-d,Q=Jce(D,k,x,E)/M;return Q<0||Q>1?null:new xn(Q*w+s,Q*S+a)}function ZZe(s,a,i){var l=new xn;xn.sub(l,i,a),l.normalize();var c=new xn;xn.sub(c,s,a);var d=c.dot(l);return d}function jb(s,a){var i=s[s.length-1];i&&i[0]===a[0]&&i[1]===a[1]||s.push(a)}function JZe(s,a,i){for(var l=s.length,c=[],d=0;d<l;d++){var v=s[d],m=s[(d+1)%l],w=XZe(v[0],v[1],m[0],m[1],a.x,a.y,i.x,i.y);w&&c.push({projPt:ZZe(w,a,i),pt:w,idx:d})}if(c.length<2)return[{points:s},{points:s}];c.sort(function(V,$){return V.projPt-$.projPt});var S=c[0],x=c[c.length-1];if(x.idx<S.idx){var E=S;S=x,x=E}for(var M=[S.pt.x,S.pt.y],D=[x.pt.x,x.pt.y],k=[M],Q=[D],d=S.idx+1;d<=x.idx;d++)jb(k,s[d].slice());jb(k,D),jb(k,M);for(var d=x.idx+1;d<=S.idx+l;d++)jb(Q,s[d%l].slice());return jb(Q,M),jb(Q,D),[{points:k},{points:Q}]}function efe(s){var a=s.points,i=[],l=[];Lp(a,i,l);var c=new Bn(i[0],i[1],l[0]-i[0],l[1]-i[1]),d=c.width,v=c.height,m=c.x,w=c.y,S=new xn,x=new xn;return d>v?(S.x=x.x=m+d/2,S.y=w,x.y=w+v):(S.y=x.y=w+v/2,S.x=m,x.x=m+d),JZe(a,S,x)}function hM(s,a,i,l){if(i===1)l.push(a);else{var c=Math.floor(i/2),d=s(a);hM(s,d[0],c,l),hM(s,d[1],i-c,l)}return l}function eJe(s,a){for(var i=[],l=0;l<a;l++)i.push(RF(s));return i}function tJe(s,a){a.setStyle(s.style),a.z=s.z,a.z2=s.z2,a.zlevel=s.zlevel}function rJe(s){for(var a=[],i=0;i<s.length;)a.push([s[i++],s[i++]]);return a}function nJe(s,a){var i=[],l=s.shape,c;switch(s.type){case"rect":YZe(l,a,i),c=R;break;case"sector":Zce(l,a,i),c=hc;break;case"circle":Zce({r0:0,r:l.r,startAngle:0,endAngle:Math.PI*2,cx:l.cx,cy:l.cy},a,i),c=hc;break;default:var d=s.getComputedTransform(),v=d?Math.sqrt(Math.max(d[0]*d[0]+d[1]*d[1],d[2]*d[2]+d[3]*d[3])):1,m=xe(KZe(s.getUpdatedPathProxy(),v),function($){return rJe($)}),w=m.length;if(w===0)hM(efe,{points:m[0]},a,i);else if(w===a)for(var S=0;S<w;S++)i.push({points:m[S]});else{var x=0,E=xe(m,function($){var Z=[],ee=[];Lp($,Z,ee);var fe=(ee[1]-Z[1])*(ee[0]-Z[0]);return x+=fe,{poly:$,area:fe}});E.sort(function($,Z){return Z.area-$.area});for(var M=a,S=0;S<w;S++){var D=E[S];if(M<=0)break;var k=S===w-1?M:Math.ceil(D.area/x*a);k<0||(hM(efe,{points:D.poly},k,i),M-=k)}}c=dc;break}if(!c)return eJe(s,a);for(var Q=[],S=0;S<i.length;S++){var V=new c;V.setShape(i[S]),tJe(s,V),Q.push(V)}return Q}function iJe(s,a){var i=s.length,l=a.length;if(i===l)return[s,a];for(var c=[],d=[],v=i<l?s:a,m=Math.min(i,l),w=Math.abs(l-i)/6,S=(m-2)/6,x=Math.ceil(w/S)+1,E=[v[0],v[1]],M=w,D=2;D<m;){var k=v[D-2],Q=v[D-1],V=v[D++],$=v[D++],Z=v[D++],ee=v[D++],fe=v[D++],ve=v[D++];if(M<=0){E.push(V,$,Z,ee,fe,ve);continue}for(var ge=Math.min(M,x-1)+1,Se=1;Se<=ge;Se++){var Ee=Se/ge;gu(k,V,Z,fe,Ee,c),gu(Q,$,ee,ve,Ee,d),k=c[3],Q=d[3],E.push(c[1],d[1],c[2],d[2],k,Q),V=c[5],$=d[5],Z=c[6],ee=d[6]}M-=ge-1}return v===s?[E,a]:[s,E]}function tfe(s,a){for(var i=s.length,l=s[i-2],c=s[i-1],d=[],v=0;v<a.length;)d[v++]=l,d[v++]=c;return d}function aJe(s,a){for(var i,l,c,d=[],v=[],m=0;m<Math.max(s.length,a.length);m++){var w=s[m],S=a[m],x=void 0,E=void 0;w?S?(i=iJe(w,S),x=i[0],E=i[1],l=x,c=E):(E=tfe(c||w,w),x=w):(x=tfe(l||S,S),E=S),d.push(x),v.push(E)}return[d,v]}function rfe(s){for(var a=0,i=0,l=0,c=s.length,d=0,v=c-2;d<c;v=d,d+=2){var m=s[v],w=s[v+1],S=s[d],x=s[d+1],E=m*x-S*w;a+=E,i+=(m+S)*E,l+=(w+x)*E}return a===0?[s[0]||0,s[1]||0]:[i/a/3,l/a/3,a]}function oJe(s,a,i,l){for(var c=(s.length-2)/6,d=1/0,v=0,m=s.length,w=m-2,S=0;S<c;S++){for(var x=S*6,E=0,M=0;M<m;M+=2){var D=M===0?x:(x+M-2)%w+2,k=s[D]-i[0],Q=s[D+1]-i[1],V=a[M]-l[0],$=a[M+1]-l[1],Z=V-k,ee=$-Q;E+=Z*Z+ee*ee}E<d&&(d=E,v=S)}return v}function sJe(s){for(var a=[],i=s.length,l=0;l<i;l+=2)a[l]=s[i-l-2],a[l+1]=s[i-l-1];return a}function lJe(s,a,i,l){for(var c=[],d,v=0;v<s.length;v++){var m=s[v],w=a[v],S=rfe(m),x=rfe(w);d==null&&(d=S[2]<0!=x[2]<0);var E=[],M=[],D=0,k=1/0,Q=[],V=m.length;d&&(m=sJe(m));for(var $=oJe(m,w,S,x)*6,Z=V-2,ee=0;ee<Z;ee+=2){var fe=($+ee)%Z+2;E[ee+2]=m[fe]-S[0],E[ee+3]=m[fe+1]-S[1]}E[0]=m[$]-S[0],E[1]=m[$+1]-S[1];for(var ve=l/i,ge=-l/2;ge<=l/2;ge+=ve){for(var Se=Math.sin(ge),Ee=Math.cos(ge),Ie=0,ee=0;ee<m.length;ee+=2){var Le=E[ee],Fe=E[ee+1],Je=w[ee]-x[0],rt=w[ee+1]-x[1],at=Je*Ee-rt*Se,dt=Je*Se+rt*Ee;Q[ee]=at,Q[ee+1]=dt;var wt=at-Le,zt=dt-Fe;Ie+=wt*wt+zt*zt}if(Ie<k){k=Ie,D=ge;for(var Ut=0;Ut<Q.length;Ut++)M[Ut]=Q[Ut]}}c.push({from:E,to:M,fromCp:S,toCp:x,rotation:-D})}return c}function dM(s){return s.__isCombineMorphing}var nfe="__mOriginal_";function AM(s,a,i){var l=nfe+a,c=s[l]||s[a];s[l]||(s[l]=s[a]);var d=i.replace,v=i.after,m=i.before;s[a]=function(){var w=arguments,S;return m&&m.apply(this,w),d?S=d.apply(this,w):S=c.apply(this,w),v&&v.apply(this,w),S}}function nT(s,a){var i=nfe+a;s[i]&&(s[a]=s[i],s[i]=null)}function ife(s,a){for(var i=0;i<s.length;i++)for(var l=s[i],c=0;c<l.length;){var d=l[c],v=l[c+1];l[c++]=a[0]*d+a[2]*v+a[4],l[c++]=a[1]*d+a[3]*v+a[5]}}function afe(s,a){var i=s.getUpdatedPathProxy(),l=a.getUpdatedPathProxy(),c=aJe(bH(i),bH(l)),d=c[0],v=c[1],m=s.getComputedTransform(),w=a.getComputedTransform();function S(){this.transform=null}m&&ife(d,m),w&&ife(v,w),AM(a,"updateTransform",{replace:S}),a.transform=null;var x=lJe(d,v,10,Math.PI),E=[];AM(a,"buildPath",{replace:function(M){for(var D=a.__morphT,k=1-D,Q=[],V=0;V<x.length;V++){var $=x[V],Z=$.from,ee=$.to,fe=$.rotation*D,ve=$.fromCp,ge=$.toCp,Se=Math.sin(fe),Ee=Math.cos(fe);ea(Q,ve,ge,D);for(var Ie=0;Ie<Z.length;Ie+=2){var Le=Z[Ie],Fe=Z[Ie+1],Je=ee[Ie],rt=ee[Ie+1],at=Le*k+Je*D,dt=Fe*k+rt*D;E[Ie]=at*Ee-dt*Se+Q[0],E[Ie+1]=at*Se+dt*Ee+Q[1]}var wt=E[0],zt=E[1];M.moveTo(wt,zt);for(var Ie=2;Ie<Z.length;){var Je=E[Ie++],rt=E[Ie++],Ut=E[Ie++],Yt=E[Ie++],ur=E[Ie++],wr=E[Ie++];wt===Je&&zt===rt&&Ut===ur&&Yt===wr?M.lineTo(ur,wr):M.bezierCurveTo(Je,rt,Ut,Yt,ur,wr),wt=ur,zt=wr}}}})}function SH(s,a,i){if(!s||!a)return a;var l=i.done,c=i.during;afe(s,a),a.__morphT=0;function d(){nT(a,"buildPath"),nT(a,"updateTransform"),a.__morphT=-1,a.createPathProxy(),a.dirtyShape()}return a.animateTo({__morphT:1},he({during:function(v){a.dirtyShape(),c&&c(v)},done:function(){d(),l&&l()}},i)),a}function uJe(s,a,i,l,c,d){var v=16;s=c===i?0:Math.round(32767*(s-i)/(c-i)),a=d===l?0:Math.round(32767*(a-l)/(d-l));for(var m=0,w,S=(1<<v)/2;S>0;S/=2){var x=0,E=0;(s&S)>0&&(x=1),(a&S)>0&&(E=1),m+=S*S*(3*x^E),E===0&&(x===1&&(s=S-1-s,a=S-1-a),w=s,s=a,a=w)}return m}function vM(s){var a=1/0,i=1/0,l=-1/0,c=-1/0,d=xe(s,function(m){var w=m.getBoundingRect(),S=m.getComputedTransform(),x=w.x+w.width/2+(S?S[4]:0),E=w.y+w.height/2+(S?S[5]:0);return a=Math.min(x,a),i=Math.min(E,i),l=Math.max(x,l),c=Math.max(E,c),[x,E]}),v=xe(d,function(m,w){return{cp:m,z:uJe(m[0],m[1],a,i,l,c),path:s[w]}});return v.sort(function(m,w){return m.z-w.z}).map(function(m){return m.path})}function ofe(s){return nJe(s.path,s.count)}function xH(){return{fromIndividuals:[],toIndividuals:[],count:0}}function cJe(s,a,i){var l=[];function c(ve){for(var ge=0;ge<ve.length;ge++){var Se=ve[ge];dM(Se)?c(Se.childrenRef()):Se instanceof Yn&&l.push(Se)}}c(s);var d=l.length;if(!d)return xH();var v=i.dividePath||ofe,m=v({path:a,count:d});if(m.length!==d)return console.error("Invalid morphing: unmatched splitted path"),xH();l=vM(l),m=vM(m);for(var w=i.done,S=i.during,x=i.individualDelay,E=new Xe,M=0;M<d;M++){var D=l[M],k=m[M];k.parent=a,k.copyTransform(E),x||afe(D,k)}a.__isCombineMorphing=!0,a.childrenRef=function(){return m};function Q(ve){for(var ge=0;ge<m.length;ge++)m[ge].addSelfToZr(ve)}AM(a,"addSelfToZr",{after:function(ve){Q(ve)}}),AM(a,"removeSelfFromZr",{after:function(ve){for(var ge=0;ge<m.length;ge++)m[ge].removeSelfFromZr(ve)}});function V(){a.__isCombineMorphing=!1,a.__morphT=-1,a.childrenRef=null,nT(a,"addSelfToZr"),nT(a,"removeSelfFromZr")}var $=m.length;if(x)for(var Z=$,ee=function(){Z--,Z===0&&(V(),w&&w())},M=0;M<$;M++){var fe=x?he({delay:(i.delay||0)+x(M,$,l[M],m[M]),done:ee},i):i;SH(l[M],m[M],fe)}else a.__morphT=0,a.animateTo({__morphT:1},he({during:function(ve){for(var ge=0;ge<$;ge++){var Se=m[ge];Se.__morphT=a.__morphT,Se.dirtyShape()}S&&S(ve)},done:function(){V();for(var ve=0;ve<s.length;ve++)nT(s[ve],"updateTransform");w&&w()}},i));return a.__zr&&Q(a.__zr),{fromIndividuals:l,toIndividuals:m,count:$}}function fJe(s,a,i){var l=a.length,c=[],d=i.dividePath||ofe;function v(D){for(var k=0;k<D.length;k++){var Q=D[k];dM(Q)?v(Q.childrenRef()):Q instanceof Yn&&c.push(Q)}}if(dM(s)){v(s.childrenRef());var m=c.length;if(m<l)for(var w=0,S=m;S<l;S++)c.push(RF(c[w++%m]));c.length=l}else{c=d({path:s,count:l});for(var x=s.getComputedTransform(),S=0;S<c.length;S++)c[S].setLocalTransform(x);if(c.length!==l)return console.error("Invalid morphing: unmatched splitted path"),xH()}c=vM(c),a=vM(a);for(var E=i.individualDelay,S=0;S<l;S++){var M=E?he({delay:(i.delay||0)+E(S,l,c[S],a[S])},i):i;SH(c[S],a[S],M)}return{fromIndividuals:c,toIndividuals:a,count:a.length}}function sfe(s){return Qe(s[0])}function lfe(s,a){for(var i=[],l=s.length,c=0;c<l;c++)i.push({one:s[c],many:[]});for(var c=0;c<a.length;c++){var d=a[c].length,v=void 0;for(v=0;v<d;v++)i[v%l].many.push(a[c][v])}for(var m=0,c=l-1;c>=0;c--)if(!i[c].many.length){var w=i[m].many;if(w.length<=1)if(m)m=0;else return i;var d=w.length,S=Math.ceil(d/2);i[c].many=w.slice(S,d),i[m].many=w.slice(0,S),m++}return i}var hJe={clone:function(s){for(var a=[],i=1-Math.pow(1-s.path.style.opacity,1/s.count),l=0;l<s.count;l++){var c=RF(s.path);c.setStyle("opacity",i),a.push(c)}return a},split:null};function CH(s,a,i,l,c,d){if(!s.length||!a.length)return;var v=Jw("update",l,c);if(!(v&&v.duration>0))return;var m=l.getModel("universalTransition").get("delay"),w=Object.assign({setToFinal:!0},v),S,x;sfe(s)&&(S=s,x=a),sfe(a)&&(S=a,x=s);function E($,Z,ee,fe,ve){var ge=$.many,Se=$.one;if(ge.length===1&&!ve){var Ee=Z?ge[0]:Se,Ie=Z?Se:ge[0];if(dM(Ee))E({many:[Ee],one:Ie},!0,ee,fe,!0);else{var Le=m?he({delay:m(ee,fe)},w):w;SH(Ee,Ie,Le),d(Ee,Ie,Ee,Ie,Le)}}else for(var Fe=he({dividePath:hJe[i],individualDelay:m&&function(zt,Ut,Yt,ur){return m(zt+ee,fe)}},w),Je=Z?cJe(ge,Se,Fe):fJe(Se,ge,Fe),rt=Je.fromIndividuals,at=Je.toIndividuals,dt=rt.length,wt=0;wt<dt;wt++){var Le=m?he({delay:m(wt,dt)},w):w;d(rt[wt],at[wt],Z?ge[wt]:$.one,Z?$.one:ge[wt],Le)}}for(var M=S?S===s:s.length>a.length,D=S?lfe(x,S):lfe(M?a:s,[M?s:a]),k=0,Q=0;Q<D.length;Q++)k+=D[Q].many.length;for(var V=0,Q=0;Q<D.length;Q++)E(D[Q],M,V,k),V+=D[Q].many.length}function N0(s){if(!s)return[];if(Qe(s)){for(var a=[],i=0;i<s.length;i++)a.push(N0(s[i]));return a}var l=[];return s.traverse(function(c){c instanceof Yn&&!c.disableMorphing&&!c.invisible&&!c.ignore&&l.push(c)}),l}var ufe=1e4,dJe=0,cfe=1,ffe=2,AJe=Ri();function vJe(s,a){for(var i=s.dimensions,l=0;l<i.length;l++){var c=s.getDimensionInfo(i[l]);if(c&&c.otherDims[a]===0)return i[l]}}function pJe(s,a,i){var l=s.getDimensionInfo(i),c=l&&l.ordinalMeta;if(l){var d=s.get(l.name,a);return c&&c.categories[d]||d+""}}function hfe(s,a,i,l){var c=l?"itemChildGroupId":"itemGroupId",d=vJe(s,c);if(d){var v=pJe(s,a,d);return v}var m=s.getRawDataItem(a),w=l?"childGroupId":"groupId";if(m&&m[w])return m[w]+"";if(!l)return i||s.getId(a)}function dfe(s){var a=[];return ne(s,function(i){var l=i.data,c=i.dataGroupId;if(l.count()>ufe){Ya("Universal transition is disabled on large data > 10k.");return}for(var d=l.getIndices(),v=0;v<d.length;v++)a.push({data:l,groupId:hfe(l,v,c,!1),childGroupId:hfe(l,v,c,!0),divide:i.divide,dataIndex:v})}),a}function TH(s,a,i){s.traverse(function(l){l instanceof Yn&&Co(l,{style:{opacity:0}},a,{dataIndex:i,isFrom:!0})})}function EH(s){if(s.parent){var a=s.getComputedTransform();s.setLocalTransform(a),s.parent.remove(s)}}function qb(s){s.stopAnimation(),s.isGroup&&s.traverse(function(a){a.stopAnimation()})}function gJe(s,a,i){var l=Jw("update",i,a);l&&s.traverse(function(c){if(c instanceof en){var d=W4e(c);d&&c.animateFrom({style:d},l)}})}function mJe(s,a){var i=s.length;if(i!==a.length)return!1;for(var l=0;l<i;l++){var c=s[l],d=a[l];if(c.data.getId(c.dataIndex)!==d.data.getId(d.dataIndex))return!1}return!0}function Afe(s,a,i){var l=dfe(s),c=dfe(a);function d(ee,fe,ve,ge,Se){(ve||ee)&&fe.animateFrom({style:ve&&ve!==ee?ie(ie({},ve.style),ee.style):ee.style},Se)}var v=!1,m=dJe,w=Ht(),S=Ht();l.forEach(function(ee){ee.groupId&&w.set(ee.groupId,!0),ee.childGroupId&&S.set(ee.childGroupId,!0)});for(var x=0;x<c.length;x++){var E=c[x].groupId;if(S.get(E)){m=cfe;break}var M=c[x].childGroupId;if(M&&w.get(M)){m=ffe;break}}function D(ee,fe){return function(ve){var ge=ve.data,Se=ve.dataIndex;return fe?ge.getId(Se):ee?m===cfe?ve.childGroupId:ve.groupId:m===ffe?ve.childGroupId:ve.groupId}}var k=mJe(l,c),Q={};if(!k)for(var x=0;x<c.length;x++){var V=c[x],$=V.data.getItemGraphicEl(V.dataIndex);$&&(Q[$.id]=!0)}function Z(ee,fe){var ve=l[fe],ge=c[ee],Se=ge.data.hostModel,Ee=ve.data.getItemGraphicEl(ve.dataIndex),Ie=ge.data.getItemGraphicEl(ge.dataIndex);if(Ee===Ie){Ie&&gJe(Ie,ge.dataIndex,Se);return}Ee&&Q[Ee.id]||Ie&&(qb(Ie),Ee?(qb(Ee),EH(Ee),v=!0,CH(N0(Ee),N0(Ie),ge.divide,Se,ee,d)):TH(Ie,Se,ee))}new Hp(l,c,D(!0,k),D(!1,k),null,"multiple").update(Z).updateManyToOne(function(ee,fe){var ve=c[ee],ge=ve.data,Se=ge.hostModel,Ee=ge.getItemGraphicEl(ve.dataIndex),Ie=ze(xe(fe,function(Le){return l[Le].data.getItemGraphicEl(l[Le].dataIndex)}),function(Le){return Le&&Le!==Ee&&!Q[Le.id]});Ee&&(qb(Ee),Ie.length?(ne(Ie,function(Le){qb(Le),EH(Le)}),v=!0,CH(N0(Ie),N0(Ee),ve.divide,Se,ee,d)):TH(Ee,Se,ve.dataIndex))}).updateOneToMany(function(ee,fe){var ve=l[fe],ge=ve.data.getItemGraphicEl(ve.dataIndex);if(!(ge&&Q[ge.id])){var Se=ze(xe(ee,function(Ie){return c[Ie].data.getItemGraphicEl(c[Ie].dataIndex)}),function(Ie){return Ie&&Ie!==ge}),Ee=c[ee[0]].data.hostModel;Se.length&&(ne(Se,function(Ie){return qb(Ie)}),ge?(qb(ge),EH(ge),v=!0,CH(N0(ge),N0(Se),ve.divide,Ee,ee[0],d)):ne(Se,function(Ie){return TH(Ie,Ee,ee[0])}))}}).updateManyToMany(function(ee,fe){new Hp(fe,ee,function(ve){return l[ve].data.getId(l[ve].dataIndex)},function(ve){return c[ve].data.getId(c[ve].dataIndex)}).update(function(ve,ge){Z(ee[ve],fe[ge])}).execute()}).execute(),v&&ne(a,function(ee){var fe=ee.data,ve=fe.hostModel,ge=ve&&i.getViewOfSeriesModel(ve),Se=Jw("update",ve,0);ge&&ve.isAnimationEnabled()&&Se&&Se.duration>0&&ge.group.traverse(function(Ee){Ee instanceof Yn&&!Ee.animators.length&&Ee.animateFrom({style:{opacity:0}},Se)})})}function vfe(s){var a=s.getModel("universalTransition").get("seriesKey");return a||s.id}function pfe(s){return Qe(s)?s.sort().join(","):s}function xm(s){if(s.hostModel)return s.hostModel.getModel("universalTransition").get("divideShape")}function yJe(s,a){var i=Ht(),l=Ht(),c=Ht();ne(s.oldSeries,function(v,m){var w=s.oldDataGroupIds[m],S=s.oldData[m],x=vfe(v),E=pfe(x);l.set(E,{dataGroupId:w,data:S}),Qe(x)&&ne(x,function(M){c.set(M,{key:E,dataGroupId:w,data:S})})});function d(v){i.get(v)&&Ya("Duplicated seriesKey in universalTransition "+v)}return ne(a.updatedSeries,function(v){if(v.isUniversalTransitionEnabled()&&v.isAnimationEnabled()){var m=v.get("dataGroupId"),w=v.getData(),S=vfe(v),x=pfe(S),E=l.get(x);if(E)d(x),i.set(x,{oldSeries:[{dataGroupId:E.dataGroupId,divide:xm(E.data),data:E.data}],newSeries:[{dataGroupId:m,divide:xm(w),data:w}]});else if(Qe(S)){d(x);var M=[];ne(S,function(Q){var V=l.get(Q);V.data&&M.push({dataGroupId:V.dataGroupId,divide:xm(V.data),data:V.data})}),M.length&&i.set(x,{oldSeries:M,newSeries:[{dataGroupId:m,data:w,divide:xm(w)}]})}else{var D=c.get(S);if(D){var k=i.get(D.key);k||(k={oldSeries:[{dataGroupId:D.dataGroupId,data:D.data,divide:xm(D.data)}],newSeries:[]},i.set(D.key,k)),k.newSeries.push({dataGroupId:m,data:w,divide:xm(w)})}}}}),i}function gfe(s,a){for(var i=0;i<s.length;i++){var l=a.seriesIndex!=null&&a.seriesIndex===s[i].seriesIndex||a.seriesId!=null&&a.seriesId===s[i].id;if(l)return i}}function wJe(s,a,i,l){var c=[],d=[];ne(Ni(s.from),function(v){var m=gfe(a.oldSeries,v);m>=0&&c.push({dataGroupId:a.oldDataGroupIds[m],data:a.oldData[m],divide:xm(a.oldData[m]),groupIdDim:v.dimension})}),ne(Ni(s.to),function(v){var m=gfe(i.updatedSeries,v);if(m>=0){var w=i.updatedSeries[m].getData();d.push({dataGroupId:a.oldDataGroupIds[m],data:w,divide:xm(w),groupIdDim:v.dimension})}}),c.length>0&&d.length>0&&Afe(c,d,l)}function bJe(s){s.registerUpdateLifecycle("series:beforeupdate",function(a,i,l){ne(Ni(l.seriesTransition),function(c){ne(Ni(c.to),function(d){for(var v=l.updatedSeries,m=0;m<v.length;m++)(d.seriesIndex!=null&&d.seriesIndex===v[m].seriesIndex||d.seriesId!=null&&d.seriesId===v[m].id)&&(v[m][MI]=!0)})})}),s.registerUpdateLifecycle("series:transition",function(a,i,l){var c=AJe(i);if(c.oldSeries&&l.updatedSeries&&l.optionChanged){var d=l.seriesTransition;if(d)ne(Ni(d),function(D){wJe(D,c,l,i)});else{var v=yJe(c,l);ne(v.keys(),function(D){var k=v.get(D);Afe(k.oldSeries,k.newSeries,i)})}ne(l.updatedSeries,function(D){D[MI]&&(D[MI]=!1)})}for(var m=a.getSeries(),w=c.oldSeries=[],S=c.oldDataGroupIds=[],x=c.oldData=[],E=0;E<m.length;E++){var M=m[E].getData();M.count()<ufe&&(w.push(m[E]),S.push(m[E].get("dataGroupId")),x.push(M))}})}ui([Dze]),ui([Eze]),ui([Zze,d7e,S7e,r9e,d9e,J9e,EGe,c3e,D3e,N3e,W3e,Qje,hqe,Sqe,Uqe,zqe,Jqe,oWe,gWe,SWe,RWe,v$e]),ui(P$e),ui(oKe),ui(uoe),ui(yKe),ui(Lse),ui(SKe),ui(DKe),ui(yYe),ui(NYe),ui($C),ui(tXe),ui(iXe),ui(AXe),ui(bXe),ui(EXe),ui(RXe),ui(zXe),ui(sZe),ui(xce),ui(Bce),ui(EZe),ui(Gce),ui(qce),ui(DZe),ui(jZe),ui($Ze),ui(bJe),ui(WVe),r.Axis=od,r.ChartView=xa,r.ComponentModel=li,r.ComponentView=ho,r.List=yc,r.Model=ta,r.PRIORITY=Pre,r.SeriesModel=Ua,r.color=An,r.connect=tQe,r.dataTool=lQe,r.dependencies=F8e,r.disConnect=rQe,r.disconnect=Kre,r.dispose=nQe,r.env=h,r.extendChartView=PVe,r.extendComponentModel=MVe,r.extendComponentView=DVe,r.extendSeriesModel=RVe,r.format=wVe,r.getCoordinateSystemDimensions=aQe,r.getInstanceByDom=KN,r.getInstanceById=iQe,r.getMap=sQe,r.graphic=yVe,r.helper=fVe,r.init=eQe,r.innerDrawElementOnCanvas=PN,r.matrix=_f,r.number=gVe,r.parseGeoJSON=pU,r.parseGeoJson=pU,r.registerAction=pA,r.registerCoordinateSystem=Zre,r.registerLayout=Jre,r.registerLoading=eU,r.registerLocale=$F,r.registerMap=tne,r.registerPostInit=Yre,r.registerPostUpdate=Xre,r.registerPreprocessor=XN,r.registerProcessor=ZN,r.registerTheme=YN,r.registerTransform=rne,r.registerUpdateLifecycle=KI,r.registerVisual=hm,r.setCanvasCreator=oQe,r.setPlatformAPI=P,r.throttle=RI,r.time=mVe,r.use=ui,r.util=bVe,r.vector=ga,r.version=k8e,r.zrUtil=ir,r.zrender=Tl,Object.defineProperty(r,"__esModule",{value:!0})})}(SE,SE.exports)),SE.exports}var I3={exports:{}},f1={};/** @license React v17.0.2
* react-dom-server.browser.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 pxe;function sNt(){if(pxe)return f1;pxe=1;var t=pO(),e=QS();function r(vt){for(var At="https://reactjs.org/docs/error-decoder.html?invariant="+vt,Ct=1;Ct<arguments.length;Ct++)At+="&args[]="+encodeURIComponent(arguments[Ct]);return"Minified React error #"+vt+"; visit "+At+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=60106,o=60107,u=60108,f=60114,h=60109,A=60110,p=60112,g=60113,y=60120,_=60115,b=60116,C=60121,T=60117,B=60119,L=60129,P=60131;if(typeof Symbol=="function"&&Symbol.for){var I=Symbol.for;n=I("react.portal"),o=I("react.fragment"),u=I("react.strict_mode"),f=I("react.profiler"),h=I("react.provider"),A=I("react.context"),p=I("react.forward_ref"),g=I("react.suspense"),y=I("react.suspense_list"),_=I("react.memo"),b=I("react.lazy"),C=I("react.block"),T=I("react.fundamental"),B=I("react.scope"),L=I("react.debug_trace_mode"),P=I("react.legacy_hidden")}function O(vt){if(vt==null)return null;if(typeof vt=="function")return vt.displayName||vt.name||null;if(typeof vt=="string")return vt;switch(vt){case o:return"Fragment";case n:return"Portal";case f:return"Profiler";case u:return"StrictMode";case g:return"Suspense";case y:return"SuspenseList"}if(typeof vt=="object")switch(vt.$$typeof){case A:return(vt.displayName||"Context")+".Consumer";case h:return(vt._context.displayName||"Context")+".Provider";case p:var At=vt.render;return At=At.displayName||At.name||"",vt.displayName||(At!==""?"ForwardRef("+At+")":"ForwardRef");case _:return O(vt.type);case C:return O(vt._render);case b:At=vt._payload,vt=vt._init;try{return O(vt(At))}catch{}}return null}var U=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,N={};function H(vt,At){for(var Ct=vt._threadCount|0;Ct<=At;Ct++)vt[Ct]=vt._currentValue2,vt._threadCount=Ct+1}function z(vt,At,Ct,Tt){if(Tt&&(Tt=vt.contextType,typeof Tt=="object"&&Tt!==null))return H(Tt,Ct),Tt[Ct];if(vt=vt.contextTypes){Ct={};for(var ir in vt)Ct[ir]=At[ir];At=Ct}else At=N;return At}for(var G=new Uint16Array(16),j=0;15>j;j++)G[j]=j+1;G[15]=0;var q=/^[: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]*$/,X=Object.prototype.hasOwnProperty,Y={},te={};function K(vt){return X.call(te,vt)?!0:X.call(Y,vt)?!1:q.test(vt)?te[vt]=!0:(Y[vt]=!0,!1)}function ce(vt,At,Ct,Tt){if(Ct!==null&&Ct.type===0)return!1;switch(typeof At){case"function":case"symbol":return!0;case"boolean":return Ct!==null?!Ct.acceptsBooleans:(vt=vt.toLowerCase().slice(0,5),vt!=="data-"&&vt!=="aria-");default:return!1}}function ae(vt,At,Ct,Tt){if(At===null||typeof At>"u"||ce(vt,At,Ct))return!0;if(Ct!==null)switch(Ct.type){case 3:return!At;case 4:return At===!1;case 5:return isNaN(At);case 6:return isNaN(At)||1>At}return!1}function le(vt,At,Ct,Tt,ir,et,ot){this.acceptsBooleans=At===2||At===3||At===4,this.attributeName=Tt,this.attributeNamespace=ir,this.mustUseProperty=Ct,this.propertyName=vt,this.type=At,this.sanitizeURL=et,this.removeEmptyString=ot}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(vt){pe[vt]=new le(vt,0,!1,vt,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(vt){var At=vt[0];pe[At]=new le(At,1,!1,vt[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(vt){pe[vt]=new le(vt,2,!1,vt.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(vt){pe[vt]=new le(vt,2,!1,vt,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(vt){pe[vt]=new le(vt,3,!1,vt.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(vt){pe[vt]=new le(vt,3,!0,vt,null,!1,!1)}),["capture","download"].forEach(function(vt){pe[vt]=new le(vt,4,!1,vt,null,!1,!1)}),["cols","rows","size","span"].forEach(function(vt){pe[vt]=new le(vt,6,!1,vt,null,!1,!1)}),["rowSpan","start"].forEach(function(vt){pe[vt]=new le(vt,5,!1,vt.toLowerCase(),null,!1,!1)});var ie=/[\-:]([a-z])/g;function he(vt){return vt[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(vt){var At=vt.replace(ie,he);pe[At]=new le(At,1,!1,vt,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(vt){var At=vt.replace(ie,he);pe[At]=new le(At,1,!1,vt,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(vt){var At=vt.replace(ie,he);pe[At]=new le(At,1,!1,vt,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(vt){pe[vt]=new le(vt,1,!1,vt.toLowerCase(),null,!1,!1)}),pe.xlinkHref=new le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(vt){pe[vt]=new le(vt,1,!1,vt.toLowerCase(),null,!0,!0)});var re=/["'&<>]/;function oe(vt){if(typeof vt=="boolean"||typeof vt=="number")return""+vt;vt=""+vt;var At=re.exec(vt);if(At){var Ct="",Tt,ir=0;for(Tt=At.index;Tt<vt.length;Tt++){switch(vt.charCodeAt(Tt)){case 34:At=""";break;case 38:At="&";break;case 39:At="'";break;case 60:At="<";break;case 62:At=">";break;default:continue}ir!==Tt&&(Ct+=vt.substring(ir,Tt)),ir=Tt+1,Ct+=At}vt=ir!==Tt?Ct+vt.substring(ir,Tt):Ct}return vt}function ye(vt,At){var Ct=pe.hasOwnProperty(vt)?pe[vt]:null,Tt;return(Tt=vt!=="style")&&(Tt=Ct!==null?Ct.type===0:!(!(2<vt.length)||vt[0]!=="o"&&vt[0]!=="O"||vt[1]!=="n"&&vt[1]!=="N")),Tt||ae(vt,At,Ct)?"":Ct!==null?(vt=Ct.attributeName,Tt=Ct.type,Tt===3||Tt===4&&At===!0?vt+'=""':(Ct.sanitizeURL&&(At=""+At),vt+'="'+(oe(At)+'"'))):K(vt)?vt+'="'+(oe(At)+'"'):""}function _e(vt,At){return vt===At&&(vt!==0||1/vt===1/At)||vt!==vt&&At!==At}var Ce=typeof Object.is=="function"?Object.is:_e,ne=null,xe=null,De=null,ze=!1,Ye=!1,Ne=null,yt=0;function Ue(){if(ne===null)throw Error(r(321));return ne}function ue(){if(0<yt)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Qe(){return De===null?xe===null?(ze=!1,xe=De=ue()):(ze=!0,De=xe):De.next===null?(ze=!1,De=De.next=ue()):(ze=!0,De=De.next),De}function qe(vt,At,Ct,Tt){for(;Ye;)Ye=!1,yt+=1,De=null,Ct=vt(At,Tt);return Re(),Ct}function Re(){ne=null,Ye=!1,xe=null,yt=0,De=Ne=null}function Me(vt,At){return typeof At=="function"?At(vt):At}function Ge(vt,At,Ct){if(ne=Ue(),De=Qe(),ze){var Tt=De.queue;if(At=Tt.dispatch,Ne!==null&&(Ct=Ne.get(Tt),Ct!==void 0)){Ne.delete(Tt),Tt=De.memoizedState;do Tt=vt(Tt,Ct.action),Ct=Ct.next;while(Ct!==null);return De.memoizedState=Tt,[Tt,At]}return[De.memoizedState,At]}return vt=vt===Me?typeof At=="function"?At():At:Ct!==void 0?Ct(At):At,De.memoizedState=vt,vt=De.queue={last:null,dispatch:null},vt=vt.dispatch=ke.bind(null,ne,vt),[De.memoizedState,vt]}function Pe(vt,At){if(ne=Ue(),De=Qe(),At=At===void 0?null:At,De!==null){var Ct=De.memoizedState;if(Ct!==null&&At!==null){var Tt=Ct[1];e:if(Tt===null)Tt=!1;else{for(var ir=0;ir<Tt.length&&ir<At.length;ir++)if(!Ce(At[ir],Tt[ir])){Tt=!1;break e}Tt=!0}if(Tt)return Ct[0]}}return vt=vt(),De.memoizedState=[vt,At],vt}function ke(vt,At,Ct){if(!(25>yt))throw Error(r(301));if(vt===ne)if(Ye=!0,vt={action:Ct,next:null},Ne===null&&(Ne=new Map),Ct=Ne.get(At),Ct===void 0)Ne.set(At,vt);else{for(At=Ct;At.next!==null;)At=At.next;At.next=vt}}function Be(){}var $e=null,nt={readContext:function(vt){var At=$e.threadID;return H(vt,At),vt[At]},useContext:function(vt){Ue();var At=$e.threadID;return H(vt,At),vt[At]},useMemo:Pe,useReducer:Ge,useRef:function(vt){ne=Ue(),De=Qe();var At=De.memoizedState;return At===null?(vt={current:vt},De.memoizedState=vt):At},useState:function(vt){return Ge(Me,vt)},useLayoutEffect:function(){},useCallback:function(vt,At){return Pe(function(){return vt},At)},useImperativeHandle:Be,useEffect:Be,useDebugValue:Be,useDeferredValue:function(vt){return Ue(),vt},useTransition:function(){return Ue(),[function(vt){vt()},!1]},useOpaqueIdentifier:function(){return($e.identifierPrefix||"")+"R:"+($e.uniqueID++).toString(36)},useMutableSource:function(vt,At){return Ue(),At(vt._source)}},ft={html:"http://www.w3.org/1999/xhtml"};function Mt(vt){switch(vt){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var Rt={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},Bt=t({menuitem:!0},Rt),It={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qt=["Webkit","ms","Moz","O"];Object.keys(It).forEach(function(vt){qt.forEach(function(At){At=At+vt.charAt(0).toUpperCase()+vt.substring(1),It[At]=It[vt]})});var fr=/([A-Z])/g,lr=/^ms-/,_t=e.Children.toArray,br=U.ReactCurrentDispatcher,on={listing:!0,pre:!0,textarea:!0},Br=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,rn={},Yr={};function cn(vt){if(vt==null)return vt;var At="";return e.Children.forEach(vt,function(Ct){Ct!=null&&(At+=Ct)}),At}var Vn=Object.prototype.hasOwnProperty,Nr={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Ht(vt,At){if(vt===void 0)throw Error(r(152,O(At)||"Component"))}function zr(vt,At,Ct){function Tt(ot,mt){var xt=mt.prototype&&mt.prototype.isReactComponent,nr=z(mt,At,Ct,xt),yr=[],Pr=!1,pr={isMounted:function(){return!1},enqueueForceUpdate:function(){if(yr===null)return null},enqueueReplaceState:function(_r,pt){Pr=!0,yr=[pt]},enqueueSetState:function(_r,pt){if(yr===null)return null;yr.push(pt)}};if(xt){if(xt=new mt(ot.props,nr,pr),typeof mt.getDerivedStateFromProps=="function"){var Ar=mt.getDerivedStateFromProps.call(null,ot.props,xt.state);Ar!=null&&(xt.state=t({},xt.state,Ar))}}else if(ne={},xt=mt(ot.props,nr,pr),xt=qe(mt,ot.props,xt,nr),xt==null||xt.render==null){vt=xt,Ht(vt,mt);return}if(xt.props=ot.props,xt.context=nr,xt.updater=pr,pr=xt.state,pr===void 0&&(xt.state=pr=null),typeof xt.UNSAFE_componentWillMount=="function"||typeof xt.componentWillMount=="function")if(typeof xt.componentWillMount=="function"&&typeof mt.getDerivedStateFromProps!="function"&&xt.componentWillMount(),typeof xt.UNSAFE_componentWillMount=="function"&&typeof mt.getDerivedStateFromProps!="function"&&xt.UNSAFE_componentWillMount(),yr.length){pr=yr;var Tr=Pr;if(yr=null,Pr=!1,Tr&&pr.length===1)xt.state=pr[0];else{Ar=Tr?pr[0]:xt.state;var Fr=!0;for(Tr=Tr?1:0;Tr<pr.length;Tr++){var nn=pr[Tr];nn=typeof nn=="function"?nn.call(xt,Ar,ot.props,nr):nn,nn!=null&&(Fr?(Fr=!1,Ar=t({},Ar,nn)):t(Ar,nn))}xt.state=Ar}}else yr=null;if(vt=xt.render(),Ht(vt,mt),typeof xt.getChildContext=="function"&&(ot=mt.childContextTypes,typeof ot=="object")){var fn=xt.getChildContext();for(var ci in fn)if(!(ci in ot))throw Error(r(108,O(mt)||"Unknown",ci))}fn&&(At=t({},At,fn))}for(;e.isValidElement(vt);){var ir=vt,et=ir.type;if(typeof et!="function")break;Tt(ir,et)}return{child:vt,context:At}}var kn=function(){function vt(Ct,Tt,ir){e.isValidElement(Ct)?Ct.type!==o?Ct=[Ct]:(Ct=Ct.props.children,Ct=e.isValidElement(Ct)?[Ct]:_t(Ct)):Ct=_t(Ct),Ct={type:null,domNamespace:ft.html,children:Ct,childIndex:0,context:N,footer:""};var et=G[0];if(et===0){var ot=G;et=ot.length;var mt=2*et;if(!(65536>=mt))throw Error(r(304));var xt=new Uint16Array(mt);for(xt.set(ot),G=xt,G[0]=et+1,ot=et;ot<mt-1;ot++)G[ot]=ot+1;G[mt-1]=0}else G[0]=G[et];this.threadID=et,this.stack=[Ct],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=Tt,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[],this.uniqueID=0,this.identifierPrefix=ir&&ir.identifierPrefix||""}var At=vt.prototype;return At.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var Ct=this.threadID;G[Ct]=G[0],G[0]=Ct}},At.pushProvider=function(Ct){var Tt=++this.contextIndex,ir=Ct.type._context,et=this.threadID;H(ir,et);var ot=ir[et];this.contextStack[Tt]=ir,this.contextValueStack[Tt]=ot,ir[et]=Ct.props.value},At.popProvider=function(){var Ct=this.contextIndex,Tt=this.contextStack[Ct],ir=this.contextValueStack[Ct];this.contextStack[Ct]=null,this.contextValueStack[Ct]=null,this.contextIndex--,Tt[this.threadID]=ir},At.clearProviders=function(){for(var Ct=this.contextIndex;0<=Ct;Ct--)this.contextStack[Ct][this.threadID]=this.contextValueStack[Ct]},At.read=function(Ct){if(this.exhausted)return null;var Tt=$e;$e=this;var ir=br.current;br.current=nt;try{for(var et=[""],ot=!1;et[0].length<Ct;){if(this.stack.length===0){this.exhausted=!0;var mt=this.threadID;G[mt]=G[0],G[0]=mt;break}var xt=this.stack[this.stack.length-1];if(ot||xt.childIndex>=xt.children.length){var nr=xt.footer;if(nr!==""&&(this.previousWasTextNode=!1),this.stack.pop(),xt.type==="select")this.currentSelectValue=null;else if(xt.type!=null&&xt.type.type!=null&&xt.type.type.$$typeof===h)this.popProvider(xt.type);else if(xt.type===g){this.suspenseDepth--;var yr=et.pop();if(ot){ot=!1;var Pr=xt.fallbackFrame;if(!Pr)throw Error(r(303));this.stack.push(Pr),et[this.suspenseDepth]+="<!--$!-->";continue}else et[this.suspenseDepth]+=yr}et[this.suspenseDepth]+=nr}else{var pr=xt.children[xt.childIndex++],Ar="";try{Ar+=this.render(pr,xt.context,xt.domNamespace)}catch(Tr){throw Tr!=null&&typeof Tr.then=="function"?Error(r(294)):Tr}finally{}et.length<=this.suspenseDepth&&et.push(""),et[this.suspenseDepth]+=Ar}}return et[0]}finally{br.current=ir,$e=Tt,Re()}},At.render=function(Ct,Tt,ir){if(typeof Ct=="string"||typeof Ct=="number")return ir=""+Ct,ir===""?"":this.makeStaticMarkup?oe(ir):this.previousWasTextNode?"<!-- -->"+oe(ir):(this.previousWasTextNode=!0,oe(ir));if(Tt=zr(Ct,Tt,this.threadID),Ct=Tt.child,Tt=Tt.context,Ct===null||Ct===!1)return"";if(!e.isValidElement(Ct)){if(Ct!=null&&Ct.$$typeof!=null)throw ir=Ct.$$typeof,Error(ir===n?r(257):r(258,ir.toString()));return Ct=_t(Ct),this.stack.push({type:null,domNamespace:ir,children:Ct,childIndex:0,context:Tt,footer:""}),""}var et=Ct.type;if(typeof et=="string")return this.renderDOM(Ct,Tt,ir);switch(et){case P:case L:case u:case f:case y:case o:return Ct=_t(Ct.props.children),this.stack.push({type:null,domNamespace:ir,children:Ct,childIndex:0,context:Tt,footer:""}),"";case g:throw Error(r(294));case B:throw Error(r(343))}if(typeof et=="object"&&et!==null)switch(et.$$typeof){case p:ne={};var ot=et.render(Ct.props,Ct.ref);return ot=qe(et.render,Ct.props,ot,Ct.ref),ot=_t(ot),this.stack.push({type:null,domNamespace:ir,children:ot,childIndex:0,context:Tt,footer:""}),"";case _:return Ct=[e.createElement(et.type,t({ref:Ct.ref},Ct.props))],this.stack.push({type:null,domNamespace:ir,children:Ct,childIndex:0,context:Tt,footer:""}),"";case h:return et=_t(Ct.props.children),ir={type:Ct,domNamespace:ir,children:et,childIndex:0,context:Tt,footer:""},this.pushProvider(Ct),this.stack.push(ir),"";case A:et=Ct.type,ot=Ct.props;var mt=this.threadID;return H(et,mt),et=_t(ot.children(et[mt])),this.stack.push({type:Ct,domNamespace:ir,children:et,childIndex:0,context:Tt,footer:""}),"";case T:throw Error(r(338));case b:return et=Ct.type,ot=et._init,et=ot(et._payload),Ct=[e.createElement(et,t({ref:Ct.ref},Ct.props))],this.stack.push({type:null,domNamespace:ir,children:Ct,childIndex:0,context:Tt,footer:""}),""}throw Error(r(130,et==null?et:typeof et,""))},At.renderDOM=function(Ct,Tt,ir){var et=Ct.type.toLowerCase();if(!rn.hasOwnProperty(et)){if(!Br.test(et))throw Error(r(65,et));rn[et]=!0}var ot=Ct.props;if(et==="input")ot=t({type:void 0},ot,{defaultChecked:void 0,defaultValue:void 0,value:ot.value!=null?ot.value:ot.defaultValue,checked:ot.checked!=null?ot.checked:ot.defaultChecked});else if(et==="textarea"){var mt=ot.value;if(mt==null){mt=ot.defaultValue;var xt=ot.children;if(xt!=null){if(mt!=null)throw Error(r(92));if(Array.isArray(xt)){if(!(1>=xt.length))throw Error(r(93));xt=xt[0]}mt=""+xt}mt==null&&(mt="")}ot=t({},ot,{value:void 0,children:""+mt})}else if(et==="select")this.currentSelectValue=ot.value!=null?ot.value:ot.defaultValue,ot=t({},ot,{value:void 0});else if(et==="option"){xt=this.currentSelectValue;var nr=cn(ot.children);if(xt!=null){var yr=ot.value!=null?ot.value+"":nr;if(mt=!1,Array.isArray(xt)){for(var Pr=0;Pr<xt.length;Pr++)if(""+xt[Pr]===yr){mt=!0;break}}else mt=""+xt===yr;ot=t({selected:void 0,children:void 0},ot,{selected:mt,children:nr})}}if(mt=ot){if(Bt[et]&&(mt.children!=null||mt.dangerouslySetInnerHTML!=null))throw Error(r(137,et));if(mt.dangerouslySetInnerHTML!=null){if(mt.children!=null)throw Error(r(60));if(!(typeof mt.dangerouslySetInnerHTML=="object"&&"__html"in mt.dangerouslySetInnerHTML))throw Error(r(61))}if(mt.style!=null&&typeof mt.style!="object")throw Error(r(62))}mt=ot,xt=this.makeStaticMarkup,nr=this.stack.length===1,yr="<"+Ct.type;e:if(et.indexOf("-")===-1)Pr=typeof mt.is=="string";else switch(et){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":Pr=!1;break e;default:Pr=!0}for(pt in mt)if(Vn.call(mt,pt)){var pr=mt[pt];if(pr!=null){if(pt==="style"){var Ar=void 0,Tr="",Fr="";for(Ar in pr)if(pr.hasOwnProperty(Ar)){var nn=Ar.indexOf("--")===0,fn=pr[Ar];if(fn!=null){if(nn)var ci=Ar;else if(ci=Ar,Yr.hasOwnProperty(ci))ci=Yr[ci];else{var _r=ci.replace(fr,"-$1").toLowerCase().replace(lr,"-ms-");ci=Yr[ci]=_r}Tr+=Fr+ci+":",Fr=Ar,nn=fn==null||typeof fn=="boolean"||fn===""?"":nn||typeof fn!="number"||fn===0||It.hasOwnProperty(Fr)&&It[Fr]?(""+fn).trim():fn+"px",Tr+=nn,Fr=";"}}pr=Tr||null}Ar=null,Pr?Nr.hasOwnProperty(pt)||(Ar=pt,Ar=K(Ar)&&pr!=null?Ar+'="'+(oe(pr)+'"'):""):Ar=ye(pt,pr),Ar&&(yr+=" "+Ar)}}xt||nr&&(yr+=' data-reactroot=""');var pt=yr;mt="",Rt.hasOwnProperty(et)?pt+="/>":(pt+=">",mt="</"+Ct.type+">");e:{if(xt=ot.dangerouslySetInnerHTML,xt!=null){if(xt.__html!=null){xt=xt.__html;break e}}else if(xt=ot.children,typeof xt=="string"||typeof xt=="number"){xt=oe(xt);break e}xt=null}return xt!=null?(ot=[],on.hasOwnProperty(et)&&xt.charAt(0)===`
`&&(pt+=`
`),pt+=xt):ot=_t(ot.children),Ct=Ct.type,ir=ir==null||ir==="http://www.w3.org/1999/xhtml"?Mt(Ct):ir==="http://www.w3.org/2000/svg"&&Ct==="foreignObject"?"http://www.w3.org/1999/xhtml":ir,this.stack.push({domNamespace:ir,type:et,children:ot,childIndex:0,context:Tt,footer:mt}),this.previousWasTextNode=!1,pt},vt}();return f1.renderToNodeStream=function(){throw Error(r(207))},f1.renderToStaticMarkup=function(vt,At){vt=new kn(vt,!0,At);try{return vt.read(1/0)}finally{vt.destroy()}},f1.renderToStaticNodeStream=function(){throw Error(r(208))},f1.renderToString=function(vt,At){vt=new kn(vt,!1,At);try{return vt.read(1/0)}finally{vt.destroy()}},f1.version="17.0.2",f1}var gxe;function DQt(){return gxe||(gxe=1,I3.exports=sNt()),I3.exports}function cu(t){return typeof t=="function"}function WFe(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var L3=WFe(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=r}});function sY(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Wk=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,n,o,u;if(!this.closed){this.closed=!0;var f=this._parentage;if(f)if(this._parentage=null,Array.isArray(f))try{for(var h=DS(f),A=h.next();!A.done;A=h.next()){var p=A.value;p.remove(this)}}catch(T){e={error:T}}finally{try{A&&!A.done&&(r=h.return)&&r.call(h)}finally{if(e)throw e.error}}else f.remove(this);var g=this.initialTeardown;if(cu(g))try{g()}catch(T){u=T instanceof L3?T.errors:[T]}var y=this._finalizers;if(y){this._finalizers=null;try{for(var _=DS(y),b=_.next();!b.done;b=_.next()){var C=b.value;try{mxe(C)}catch(T){u=u??[],T instanceof L3?u=iP(iP([],A2(u)),A2(T.errors)):u.push(T)}}}catch(T){n={error:T}}finally{try{b&&!b.done&&(o=_.return)&&o.call(_)}finally{if(n)throw n.error}}}if(u)throw new L3(u)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)mxe(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&sY(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&sY(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),$Fe=Wk.EMPTY;function KFe(t){return t instanceof Wk||t&&"closed"in t&&cu(t.remove)&&cu(t.add)&&cu(t.unsubscribe)}function mxe(t){cu(t)?t():t.unsubscribe()}var lNt={Promise:void 0},uNt={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,iP([t,e],A2(r)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function YFe(t){uNt.setTimeout(function(){throw t})}function yxe(){}function cR(t){t()}var tJ=function(t){fB(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,KFe(r)&&r.add(n)):n.destination=hNt,n}return e.create=function(r,n,o){return new lY(r,n,o)},e.prototype.next=function(r){this.isStopped||this._next(r)},e.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Wk),cNt=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){u5(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){u5(n)}else u5(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){u5(r)}},t}(),lY=function(t){fB(e,t);function e(r,n,o){var u=t.call(this)||this,f;return cu(r)||!r?f={next:r??void 0,error:n??void 0,complete:o??void 0}:f=r,u.destination=new cNt(f),u}return e}(tJ);function u5(t){YFe(t)}function fNt(t){throw t}var hNt={closed:!0,next:yxe,error:fNt,complete:yxe},rJ=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function nJ(t){return t}function dNt(t){return t.length===0?nJ:t.length===1?t[0]:function(r){return t.reduce(function(n,o){return o(n)},r)}}var zd=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var o=this,u=vNt(e)?e:new lY(e,r,n);return cR(function(){var f=o,h=f.operator,A=f.source;u.add(h?h.call(u,A):A?o._subscribe(u):o._trySubscribe(u))}),u},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=wxe(r),new r(function(o,u){var f=new lY({next:function(h){try{e(h)}catch(A){u(A),f.unsubscribe()}},error:u,complete:o});n.subscribe(f)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[rJ]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return dNt(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=wxe(e),new e(function(n,o){var u;r.subscribe(function(f){return u=f},function(f){return o(f)},function(){return n(u)})})},t.create=function(e){return new t(e)},t}();function wxe(t){var e;return(e=t??lNt.Promise)!==null&&e!==void 0?e:Promise}function ANt(t){return t&&cu(t.next)&&cu(t.error)&&cu(t.complete)}function vNt(t){return t&&t instanceof tJ||ANt(t)&&KFe(t)}function pNt(t){return cu(t?.lift)}function iJ(t){return function(e){if(pNt(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function aJ(t,e,r,n,o){return new gNt(t,e,r,n,o)}var gNt=function(t){fB(e,t);function e(r,n,o,u,f,h){var A=t.call(this,r)||this;return A.onFinalize=f,A.shouldUnsubscribe=h,A._next=n?function(p){try{n(p)}catch(g){r.error(g)}}:t.prototype._next,A._error=u?function(p){try{u(p)}catch(g){r.error(g)}finally{this.unsubscribe()}}:t.prototype._error,A._complete=o?function(){try{o()}catch(p){r.error(p)}finally{this.unsubscribe()}}:t.prototype._complete,A}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(tJ),mNt=WFe(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),yNt=function(t){fB(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var n=new bxe(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new mNt},e.prototype.next=function(r){var n=this;cR(function(){var o,u;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var f=DS(n.currentObservers),h=f.next();!h.done;h=f.next()){var A=h.value;A.next(r)}}catch(p){o={error:p}}finally{try{h&&!h.done&&(u=f.return)&&u.call(f)}finally{if(o)throw o.error}}}})},e.prototype.error=function(r){var n=this;cR(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},e.prototype.complete=function(){var r=this;cR(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,o=this,u=o.hasError,f=o.isStopped,h=o.observers;return u||f?$Fe:(this.currentObservers=null,h.push(r),new Wk(function(){n.currentObservers=null,sY(h,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,u=n.thrownError,f=n.isStopped;o?r.error(u):f&&r.complete()},e.prototype.asObservable=function(){var r=new zd;return r.source=this,r},e.create=function(r,n){return new bxe(r,n)},e}(zd),bxe=function(t){fB(e,t);function e(r,n){var o=t.call(this)||this;return o.destination=r,o.source=n,o}return e.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},e.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:$Fe},e}(yNt);function wNt(t){return t&&cu(t.schedule)}function XFe(t){return t[t.length-1]}function bNt(t){return cu(XFe(t))?t.pop():void 0}function _Nt(t){return wNt(XFe(t))?t.pop():void 0}var ZFe=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function JFe(t){return cu(t?.then)}function eNe(t){return cu(t[rJ])}function tNe(t){return Symbol.asyncIterator&&cu(t?.[Symbol.asyncIterator])}function rNe(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function SNt(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var nNe=SNt();function iNe(t){return cu(t?.[nNe])}function aNe(t){return ppt(this,arguments,function(){var r,n,o,u;return Iy(this,function(f){switch(f.label){case 0:r=t.getReader(),f.label=1;case 1:f.trys.push([1,,9,10]),f.label=2;case 2:return[4,aS(r.read())];case 3:return n=f.sent(),o=n.value,u=n.done,u?[4,aS(void 0)]:[3,5];case 4:return[2,f.sent()];case 5:return[4,aS(o)];case 6:return[4,f.sent()];case 7:return f.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function oNe(t){return cu(t?.getReader)}function oJ(t){if(t instanceof zd)return t;if(t!=null){if(eNe(t))return xNt(t);if(ZFe(t))return CNt(t);if(JFe(t))return TNt(t);if(tNe(t))return sNe(t);if(iNe(t))return ENt(t);if(oNe(t))return BNt(t)}throw rNe(t)}function xNt(t){return new zd(function(e){var r=t[rJ]();if(cu(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function CNt(t){return new zd(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function TNt(t){return new zd(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,YFe)})}function ENt(t){return new zd(function(e){var r,n;try{for(var o=DS(t),u=o.next();!u.done;u=o.next()){var f=u.value;if(e.next(f),e.closed)return}}catch(h){r={error:h}}finally{try{u&&!u.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.complete()})}function sNe(t){return new zd(function(e){INt(t,e).catch(function(r){return e.error(r)})})}function BNt(t){return sNe(aNe(t))}function INt(t,e){var r,n,o,u;return vw(this,void 0,void 0,function(){var f,h;return Iy(this,function(A){switch(A.label){case 0:A.trys.push([0,5,6,11]),r=gpt(t),A.label=1;case 1:return[4,r.next()];case 2:if(n=A.sent(),!!n.done)return[3,4];if(f=n.value,e.next(f),e.closed)return[2];A.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return h=A.sent(),o={error:h},[3,11];case 6:return A.trys.push([6,,9,10]),n&&!n.done&&(u=r.return)?[4,u.call(r)]:[3,8];case 7:A.sent(),A.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function gy(t,e,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var u=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(u),!o)return u}function lNe(t,e){return e===void 0&&(e=0),iJ(function(r,n){r.subscribe(aJ(n,function(o){return gy(n,t,function(){return n.next(o)},e)},function(){return gy(n,t,function(){return n.complete()},e)},function(o){return gy(n,t,function(){return n.error(o)},e)}))})}function uNe(t,e){return e===void 0&&(e=0),iJ(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function LNt(t,e){return oJ(t).pipe(uNe(e),lNe(e))}function MNt(t,e){return oJ(t).pipe(uNe(e),lNe(e))}function DNt(t,e){return new zd(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function RNt(t,e){return new zd(function(r){var n;return gy(r,e,function(){n=t[nNe](),gy(r,e,function(){var o,u,f;try{o=n.next(),u=o.value,f=o.done}catch(h){r.error(h);return}f?r.complete():r.next(u)},0,!0)}),function(){return cu(n?.return)&&n.return()}})}function cNe(t,e){if(!t)throw new Error("Iterable cannot be null");return new zd(function(r){gy(r,e,function(){var n=t[Symbol.asyncIterator]();gy(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function PNt(t,e){return cNe(aNe(t),e)}function ONt(t,e){if(t!=null){if(eNe(t))return LNt(t,e);if(ZFe(t))return DNt(t,e);if(JFe(t))return MNt(t,e);if(tNe(t))return cNe(t,e);if(iNe(t))return RNt(t,e);if(oNe(t))return PNt(t,e)}throw rNe(t)}function fNe(t,e){return e?ONt(t,e):oJ(t)}function kNt(t,e){return iJ(function(r,n){var o=0;r.subscribe(aJ(n,function(u){n.next(t.call(e,u,o++))}))})}var FNt=Array.isArray;function NNt(t,e){return FNt(e)?t.apply(void 0,iP([],A2(e))):t(e)}function UNt(t){return kNt(function(e){return NNt(t,e)})}var HNt=Array.isArray,QNt=Object.getPrototypeOf,VNt=Object.prototype,zNt=Object.keys;function GNt(t){if(t.length===1){var e=t[0];if(HNt(e))return{args:e,keys:null};if(jNt(e)){var r=zNt(e);return{args:r.map(function(n){return e[n]}),keys:r}}}return{args:t,keys:null}}function jNt(t){return t&&typeof t=="object"&&QNt(t)===VNt}function qNt(t,e){return t.reduce(function(r,n,o){return r[n]=e[o],r},{})}function RQt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=_Nt(t),n=bNt(t),o=GNt(t),u=o.args,f=o.keys;if(u.length===0)return fNe([],r);var h=new zd(WNt(u,r,f?function(A){return qNt(f,A)}:nJ));return n?h.pipe(UNt(n)):h}function WNt(t,e,r){return r===void 0&&(r=nJ),function(n){_xe(e,function(){for(var o=t.length,u=new Array(o),f=o,h=o,A=function(g){_xe(e,function(){var y=fNe(t[g],e),_=!1;y.subscribe(aJ(n,function(b){u[g]=b,_||(_=!0,h--),h||n.next(r(u.slice()))},function(){--f||n.complete()}))},n)},p=0;p<o;p++)A(p)},n)}}function _xe(t,e,r){t?gy(r,t,e):e()}var $Nt=Object.create,hNe=Object.defineProperty,KNt=Object.getOwnPropertyDescriptor,YNt=Object.getOwnPropertyNames,XNt=Object.getPrototypeOf,ZNt=Object.prototype.hasOwnProperty,JNt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),eUt=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of YNt(e))!ZNt.call(t,o)&&o!==r&&hNe(t,o,{get:()=>e[o],enumerable:!(n=KNt(e,o))||n.enumerable});return t},tUt=(t,e,r)=>(r=t!=null?$Nt(XNt(t)):{},eUt(!t||!t.__esModule?hNe(r,"default",{value:t,enumerable:!0}):r,t)),rUt=JNt((t,e)=>{(function(r,n){typeof t=="object"&&typeof e<"u"?n(t):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.fastUniqueNumbers={}))})(t,function(r){var n=function(b){return function(C){var T=b(C);return C.add(T),T}},o=function(b){return function(C,T){return b.set(C,T),T}},u=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,f=536870912,h=f*2,A=function(b,C){return function(T){var B=C.get(T),L=B===void 0?T.size:B<h?B+1:0;if(!T.has(L))return b(T,L);if(T.size<f){for(;T.has(L);)L=Math.floor(Math.random()*h);return b(T,L)}if(T.size>u)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;T.has(L);)L=Math.floor(Math.random()*u);return b(T,L)}},p=new WeakMap,g=o(p),y=A(g,p),_=n(y);r.addUniqueNumber=_,r.generateUniqueNumber=y})});tUt(rUt());var cg=(typeof window>"u"?"undefined":typeof window)=="object",NA={setTimeout:cg?setTimeout.bind(window):setTimeout,clearTimeout:cg?clearTimeout.bind(window):clearTimeout,setInterval:cg?setInterval.bind(window):setInterval,clearInterval:cg?clearInterval.bind(window):clearInterval};function nUt(t){NA.setTimeout=t.setTimeout,NA.clearTimeout=t.clearTimeout,NA.setInterval=t.setInterval,NA.clearInterval=t.clearInterval}var D_={},iUt=class{name;closed=!1;mc=new MessageChannel;constructor(t){this.name=t,D_[t]=D_[t]||[],D_[t].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(t){if(t.storageArea!==window.localStorage||t.key.substring(0,this.name.length)!==this.name||t.newValue===null)return;let e=JSON.parse(t.newValue);this.mc.port2.postMessage(e)}postMessage(t){if(this.closed)throw new Error("InvalidStateError");let e=JSON.stringify(t),r=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(r,e),NA.setTimeout(()=>{window.localStorage.removeItem(r)},500),D_[this.name].forEach(n=>{n!==this&&n.mc.port2.postMessage(JSON.parse(e))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let t=D_[this.name].indexOf(this);D_[this.name].splice(t,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(t){this.mc.port1.onmessage=t}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(t){this.mc.port1.onmessageerror=t}addEventListener(t,e){return this.mc.port1.addEventListener(t,e)}removeEventListener(t,e){return this.mc.port1.removeEventListener(t,e)}dispatchEvent(t){return this.mc.port1.dispatchEvent(t)}},aUt=typeof window>"u"?void 0:typeof window.BroadcastChannel=="function"?window.BroadcastChannel:iUt;function oUt(t=0){return new Promise(e=>NA.setTimeout(e,t))}function dNe(){return Math.random().toString(36).substring(2)}var sUt=class{options;channel;token=dNe();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(t,e){this.channel=t,this.options=e,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let t=!1,e=r=>{let{token:n,action:o}=r.data;n!==this.token&&(o===0&&n>this.token&&(t=!0),o===1&&(t=!0))};this.channel.addEventListener("message",e);try{return this.sendAction(0),await oUt(this.options.responseTime),this.channel.removeEventListener("message",e),this.isApplying=!1,t?this.reApply?this.apply():!1:(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let t=!1,e=null;return new Promise(r=>{let n=()=>{if(t)return;t=!0;try{NA.clearInterval(e)}catch{}let u=this.intervals.indexOf(e);u>=0&&this.intervals.splice(u,1),this.channel.removeEventListener("message",o),r()};e=NA.setInterval(()=>{this.apply().then(()=>{this.isLeader&&n()})},this.options.fallbackInterval),this.intervals.push(e);let o=u=>{let{action:f}=u.data;f===2&&this.apply().then(()=>{this.isLeader&&n()})};this.channel.addEventListener("message",o)})}sendAction(t){this.channel.postMessage({action:t,token:this.token})}assumeLead(){this.isLeader=!0;let t=e=>{let{action:r}=e.data;r===0&&this.sendAction(1)};return this.channel.addEventListener("message",t),this.listeners.push(t),this.sendAction(1)}waitForLeadership(){return this.deferred?this.deferred:(this.deferred=this.awaitLeadership(),this.deferred)}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(t=>this.channel.removeEventListener("message",t)),this.intervals.forEach(t=>NA.clearInterval(t))}catch{}}}},lUt=class{channel;options;elector;token=dNe();registry=new Map;allIdle=!1;isLastActive=!1;constructor(t){let{channelName:e}=t;if(this.options=t,this.channel=new aUt(e),this.registry.set(this.token,1),t.leaderElection){let r={fallbackInterval:2e3,responseTime:100};this.elector=new sUt(this.channel,r),this.elector.waitForLeadership()}this.channel.addEventListener("message",r=>{let{action:n,token:o,data:u}=r.data;switch(n){case 3:this.registry.set(o,2);break;case 4:this.registry.delete(o);break;case 5:this.idle(o);break;case 6:this.active(o);break;case 7:this.prompt(o);break;case 8:this.start(o);break;case 9:this.reset(o);break;case 10:this.activate(o);break;case 11:this.pause(o);break;case 12:this.resume(o);break;case 13:this.options.onMessage(u);break}}),this.send(3)}get isLeader(){if(!this.elector)throw new Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(t=this.token){this.registry.set(t,0);let e=[...this.registry.values()].every(r=>r===0);t===this.token&&this.send(7),e&&this.options.onPrompt()}idle(t=this.token){this.registry.set(t,2);let e=[...this.registry.values()].every(r=>r===2);t===this.token&&this.send(5),!this.allIdle&&e&&(this.allIdle=!0,this.options.onIdle())}active(t=this.token){this.allIdle=!1,this.registry.set(t,1);let e=[...this.registry.values()].some(r=>r===1);t===this.token&&this.send(6),e&&this.options.onActive(),this.isLastActive=t===this.token}start(t=this.token){this.allIdle=!1,this.registry.set(t,1),t===this.token?this.send(8):this.options.start(!0),this.isLastActive=t===this.token}reset(t=this.token){this.allIdle=!1,this.registry.set(t,1),t===this.token?this.send(9):this.options.reset(!0),this.isLastActive=t===this.token}activate(t=this.token){this.allIdle=!1,this.registry.set(t,1),t===this.token?this.send(10):this.options.activate(!0),this.isLastActive=t===this.token}pause(t=this.token){t===this.token?this.send(11):this.options.pause(!0)}resume(t=this.token){t===this.token?this.send(12):this.options.resume(!0)}message(t){try{this.channel.postMessage({action:13,token:this.token,data:t})}catch{}}send(t){try{this.channel.postMessage({action:t,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},uUt=cg?document:null,cUt=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function fUt(t,e){let r;function n(...o){r&&clearTimeout(r),r=setTimeout(()=>{t(...o),r=null},e)}return n.cancel=function(){clearTimeout(r)},n}function M3(t,e){let r=0;return function(...n){let o=new Date().getTime();if(!(o-r<e))return r=o,t(...n)}}var Ml=()=>Date.now(),R_=2147483647;function PQt({timeout:t=1e3*60*20,promptTimeout:e=0,promptBeforeIdle:r=0,element:n=uUt,events:o=cUt,timers:u=void 0,immediateEvents:f=[],onPresenceChange:h=()=>{},onPrompt:A=()=>{},onIdle:p=()=>{},onActive:g=()=>{},onAction:y=()=>{},onMessage:_=()=>{},debounce:b=0,throttle:C=0,eventsThrottle:T=200,startOnMount:B=!0,startManually:L=!1,stopOnIdle:P=!1,crossTab:I=!1,name:O="idle-timer",syncTimers:U=0,leaderElection:N=!1,disabled:H=!1}={}){let z=Ae.useRef(Ml()),G=Ae.useRef(Ml()),j=Ae.useRef(null),q=Ae.useRef(null),X=Ae.useRef(0),Y=Ae.useRef(0),te=Ae.useRef(0),K=Ae.useRef(0),ce=Ae.useRef(!1),ae=Ae.useRef(!1),le=Ae.useRef(!1),pe=Ae.useRef(!0),ie=Ae.useRef(!1),he=Ae.useRef(null),re=Ae.useRef(null),oe=Ae.useRef(t),ye=Ae.useRef(0);Ae.useEffect(()=>{if(e&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),r&&e)throw new Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(t>=R_)throw new Error(`❌ The value for the timeout property must fit in a 32 bit signed integer, ${R_}.`);if(e>=R_)throw new Error(`❌ The value for the promptTimeout property must fit in a 32 bit signed integer, ${R_}.`);if(r>=R_)throw new Error(`❌ The value for the promptBeforeIdle property must fit in a 32 bit signed integer, ${R_}.`);if(r>=t)throw new Error(`❌ The value for the promptBeforeIdle property must be less than the timeout property, ${t}.`);if(r?(oe.current=t-r,ye.current=r):(oe.current=t,ye.current=e),!pe.current){if(L||H)return;ce.current&&(yt.current(null,Ct),re.current&&re.current.active()),Rt()}},[t,e,r,L,H]);let _e=Ae.useRef(P);Ae.useEffect(()=>{_e.current=P},[P]);let Ce=Ae.useRef(f),ne=Ae.useRef(n),xe=Ae.useRef([...new Set([...o,...f]).values()]),De=Ae.useRef(H);Ae.useEffect(()=>{De.current=H,!pe.current&&(H?qt():L||Rt())},[H]);let ze=Ae.useRef(h);Ae.useEffect(()=>{ze.current=h},[h]);let Ye=Ae.useRef(A);Ae.useEffect(()=>{Ye.current=A},[A]);let Ne=Ae.useRef(p);Ae.useEffect(()=>{Ne.current=p},[p]);let yt=Ae.useRef(g);Ae.useEffect(()=>{yt.current=g},[g]);let Ue=Ae.useRef(y);Ae.useEffect(()=>{Ue.current=y},[y]);let ue=Ae.useRef(_);Ae.useEffect(()=>{ue.current=_},[_]);let Qe=Ae.useMemo(()=>{let Tt=(ir,et)=>Ue.current(ir,et);return b>0?fUt(Tt,b):C>0?M3(Tt,C):Tt},[C,b]),qe=Ae.useRef();Ae.useEffect(()=>{I&&U&&(qe.current=M3(()=>{re.current.active()},U))},[I,U]);let Re=()=>{he.current!==null&&(NA.clearTimeout(he.current),he.current=null)},Me=(Tt,ir=!0)=>{Re(),he.current=NA.setTimeout(Be,Tt||oe.current),ir&&(q.current=Ml())},Ge=Tt=>{!ae.current&&!ce.current&&(Ye.current(Tt,Ct),ze.current({type:"active",prompted:!0},Ct)),K.current=0,te.current=Ml(),ae.current=!0,Me(ye.current,!1)},Pe=()=>{Re(),ce.current||(Ne.current(null,Ct),ze.current({type:"idle"},Ct)),ce.current=!0,j.current=Ml(),_e.current?Mt():ae.current&&(te.current=0,ae.current=!1)},ke=Tt=>{Re(),(ce.current||ae.current)&&(yt.current(Tt,Ct),ze.current({type:"active",prompted:!1},Ct)),ae.current=!1,te.current=0,ce.current=!1,X.current+=Ml()-j.current,Y.current+=Ml()-j.current,ft(),Me()},Be=Tt=>{if(!ce.current){Qe.cancel&&Qe.cancel();let ir=Ml()-q.current;if(!(oe.current+ye.current<ir)&&ye.current>0&&!ae.current){re.current?re.current.prompt():Ge(Tt);return}re.current?re.current.idle():Pe();return}re.current?re.current.active():ke(Tt)},$e=Tt=>{if(!B&&!q.current&&(q.current=Ml(),yt.current(null,Ct)),Qe(Tt,Ct),ae.current)return;if(Re(),!ce.current&&Ce.current.includes(Tt.type)){Be(Tt);return}let ir=Ml()-q.current;if(ce.current&&!P||!ce.current&&ir>=oe.current){Be(Tt);return}le.current=!1,K.current=0,te.current=0,Me(),I&&U&&qe.current()},nt=Ae.useRef($e);Ae.useEffect(()=>{let Tt=ie.current;Tt&&Mt(),T>0?nt.current=M3($e,T):nt.current=$e,Tt&&ft()},[T,C,b,Ue,I,U]);let ft=()=>{cg&&ne.current&&(ie.current||(xe.current.forEach(Tt=>{ne.current.addEventListener(Tt,nt.current,{capture:!0,passive:!0})}),ie.current=!0))},Mt=(Tt=!1)=>{cg&&ne.current&&(ie.current||Tt)&&(xe.current.forEach(ir=>{ne.current.removeEventListener(ir,nt.current,{capture:!0})}),ie.current=!1)},Rt=Ae.useCallback(Tt=>De.current?!1:(Re(),ft(),ce.current=!1,ae.current=!1,le.current=!1,K.current=0,te.current=0,re.current&&!Tt&&re.current.start(),Me(),!0),[he,ce,De,oe,re]),Bt=Ae.useCallback(Tt=>De.current?!1:(Re(),ft(),G.current=Ml(),X.current+=Ml()-j.current,Y.current+=Ml()-j.current,X.current=0,ce.current=!1,ae.current=!1,le.current=!1,K.current=0,te.current=0,re.current&&!Tt&&re.current.reset(),L||Me(),!0),[he,ce,oe,L,De,re]),It=Ae.useCallback(Tt=>De.current?!1:(Re(),ft(),(ce.current||ae.current)&&ke(),ce.current=!1,ae.current=!1,le.current=!1,K.current=0,te.current=0,G.current=Ml(),re.current&&!Tt&&re.current.activate(),Me(),!0),[he,ce,ae,De,oe,re]),qt=Ae.useCallback((Tt=!1)=>De.current||le.current?!1:(K.current=Yr(),le.current=!0,Mt(),Re(),re.current&&!Tt&&re.current.pause(),!0),[he,De,re]),fr=Ae.useCallback((Tt=!1)=>De.current||!le.current?!1:(le.current=!1,ae.current||ft(),ce.current||Me(K.current),te.current&&(te.current=Ml()),re.current&&!Tt&&re.current.resume(),!0),[he,oe,De,K,re]),lr=Ae.useCallback((Tt,ir)=>(re.current?(ir&&ue.current(Tt,Ct),re.current.message(Tt)):ir&&ue.current(Tt,Ct),!0),[_]),_t=Ae.useCallback(()=>ce.current,[ce]),br=Ae.useCallback(()=>ae.current,[ae]),on=Ae.useCallback(()=>re.current?re.current.isLeader:null,[re]),Br=Ae.useCallback(()=>re.current?re.current.isLastActive:null,[re]),rn=Ae.useCallback(()=>re.current?re.current.token:null,[re]),Yr=Ae.useCallback(()=>{if(le.current)return K.current;let Tt=K.current?K.current:ye.current+oe.current,ir=q.current?Ml()-q.current:0,et=Math.floor(Tt-ir);return et<0?0:Math.abs(et)},[oe,ye,ae,K,q]),cn=Ae.useCallback(()=>Math.round(Ml()-G.current),[G]),Vn=Ae.useCallback(()=>Math.round(Ml()-z.current),[z]),Nr=Ae.useCallback(()=>j.current?new Date(j.current):null,[j]),Ht=Ae.useCallback(()=>q.current?new Date(q.current):null,[q]),zr=Ae.useCallback(()=>ce.current?Math.round(Ml()-j.current+X.current):Math.round(X.current),[j,X]),kn=Ae.useCallback(()=>ce.current?Math.round(Ml()-j.current+Y.current):Math.round(Y.current),[j,Y]),vt=Ae.useCallback(()=>{let Tt=Math.round(cn()-zr());return Tt>=0?Tt:0},[j,X]),At=Ae.useCallback(()=>{let Tt=Math.round(Vn()-kn());return Tt>=0?Tt:0},[j,X]);Ae.useEffect(()=>{if(b>0&&C>0)throw new Error("❌ onAction can either be throttled or debounced, not both.");u&&nUt(u);let Tt=()=>{re.current&&re.current.close(),Qe.cancel&&Qe.cancel(),Re(),Mt(!0)};return cg&&window.addEventListener("beforeunload",Tt),()=>{cg&&window.removeEventListener("beforeunload",Tt),re.current&&re.current.close(),Qe.cancel&&Qe.cancel(),Re(),Mt(!0)}},[]),Ae.useEffect(()=>{re.current&&re.current.close(),I?re.current=new lUt({channelName:O,leaderElection:N,onPrompt:()=>{Ge()},onIdle:()=>{Pe()},onActive:()=>{ke()},onMessage:Tt=>{ue.current(Tt,Ct)},start:Rt,reset:Bt,activate:It,pause:qt,resume:fr}):re.current=null},[I,O,N,Ye,Ne,yt,ue,Rt,Bt,qt,fr]),Ae.useEffect(()=>{pe.current||(Re(),Mt(!0)),!(L||H)&&(B?Rt():ft())},[L,B,H,pe]),Ae.useEffect(()=>{if(!pe.current){let Tt=[...new Set([...o,...f]).values()];if(Mt(),xe.current=Tt,ne.current=n,Ce.current=f,L||H)return;B?Rt():ft()}},[n,JSON.stringify(o),JSON.stringify(f),pe,H,L,B]),Ae.useEffect(()=>{pe.current&&(pe.current=!1)},[pe]);let Ct={message:lr,start:Rt,reset:Bt,activate:It,pause:qt,resume:fr,isIdle:_t,isPrompted:br,isLeader:on,isLastActiveTab:Br,getTabId:rn,getRemainingTime:Yr,getElapsedTime:cn,getTotalElapsedTime:Vn,getLastIdleTime:Nr,getLastActiveTime:Ht,getIdleTime:zr,getTotalIdleTime:kn,getActiveTime:vt,getTotalActiveTime:At,setOnPresenceChange:Tt=>{h=Tt,ze.current=Tt},setOnPrompt:Tt=>{A=Tt,Ye.current=Tt},setOnIdle:Tt=>{p=Tt,Ne.current=Tt},setOnActive:Tt=>{g=Tt,yt.current=Tt},setOnAction:Tt=>{y=Tt,Ue.current=Tt},setOnMessage:Tt=>{_=Tt,ue.current=Tt}};return Ct}var hUt=Ae.createContext(null);hUt.Consumer;var fR={exports:{}},dUt=fR.exports,Sxe;function AUt(){return Sxe||(Sxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(dUt,function(e){e.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Kč"}})})}(fR)),fR.exports}var ANe=AUt();const vUt=Dn(ANe),OQt=ml({__proto__:null,default:vUt},[ANe]);var hR={exports:{}},pUt=hR.exports,xxe;function gUt(){return xxe||(xxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(pUt,function(e){e.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(r){return"."},currency:{symbol:"€"}})})}(hR)),hR.exports}var vNe=gUt();const mUt=Dn(vNe),kQt=ml({__proto__:null,default:mUt},[vNe]);var dR={exports:{}},yUt=dR.exports,Cxe;function wUt(){return Cxe||(Cxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(yUt,function(e){e.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(r){var n=r%10;return n===1||n===3?"er":n===2?"do":n===7||n===0?"mo":n===8?"vo":n===9?"no":"to"},currency:{symbol:"€"}})})}(dR)),dR.exports}var pNe=wUt();const bUt=Dn(pNe),FQt=ml({__proto__:null,default:bUt},[pNe]);var AR={exports:{}},_Ut=AR.exports,Txe;function SUt(){return Txe||(Txe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(_Ut,function(e){e.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(r){return r===1?"er":"e"},currency:{symbol:"€"}})})}(AR)),AR.exports}var gNe=SUt();const xUt=Dn(gNe),NQt=ml({__proto__:null,default:xUt},[gNe]);var vR={exports:{}},CUt=vR.exports,Exe;function TUt(){return Exe||(Exe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(CUt,function(e){e.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(r){return r===1?"er":"e"},currency:{symbol:"$"}})})}(vR)),vR.exports}var mNe=TUt();const EUt=Dn(mNe),UQt=ml({__proto__:null,default:EUt},[mNe]);var pR={exports:{}},BUt=pR.exports,Bxe;function IUt(){return Bxe||(Bxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(BUt,function(e){e.register("locale","sl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mrd",trillion:"trilijon"},ordinal:function(){return"."},currency:{symbol:"€"}})})}(pR)),pR.exports}var yNe=IUt();const LUt=Dn(yNe),HQt=ml({__proto__:null,default:LUt},[yNe]);var gR={exports:{}},MUt=gR.exports,Ixe;function DUt(){return Ixe||(Ixe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(MUt,function(e){e.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(r){return"."},currency:{symbol:" Ft"}})})}(gR)),gR.exports}var wNe=DUt();const RUt=Dn(wNe),QQt=ml({__proto__:null,default:RUt},[wNe]);var mR={exports:{}},PUt=mR.exports,Lxe;function OUt(){return Lxe||(Lxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(PUt,function(e){e.register("locale","vi",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:" nghìn",million:" triệu",billion:" tỷ",trillion:" nghìn tỷ"},ordinal:function(){return"."},currency:{symbol:"₫"}})})}(mR)),mR.exports}var bNe=OUt();const kUt=Dn(bNe),VQt=ml({__proto__:null,default:kUt},[bNe]);var yR={exports:{}},FUt=yR.exports,Mxe;function NUt(){return Mxe||(Mxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(FUt,function(e){e.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(r){return"º"},currency:{symbol:"€"}})})}(yR)),yR.exports}var _Ne=NUt();const UUt=Dn(_Ne),zQt=ml({__proto__:null,default:UUt},[_Ne]);var wR={exports:{}},HUt=wR.exports,Dxe;function QUt(){return Dxe||(Dxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(HUt,function(e){e.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(r){return"."},currency:{symbol:"¥"}})})}(wR)),wR.exports}var SNe=QUt();const VUt=Dn(SNe),GQt=ml({__proto__:null,default:VUt},[SNe]);var bR={exports:{}},zUt=bR.exports,Rxe;function GUt(){return Rxe||(Rxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(zUt,function(e){e.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(r){return"."},currency:{symbol:"PLN"}})})}(bR)),bR.exports}var xNe=GUt();const jUt=Dn(xNe),jQt=ml({__proto__:null,default:jUt},[xNe]);var _R={exports:{}},qUt=_R.exports,Pxe;function WUt(){return Pxe||(Pxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(qUt,function(e){e.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(r){return"º"},currency:{symbol:"R$"}})})}(_R)),_R.exports}var CNe=WUt();const $Ut=Dn(CNe),qQt=ml({__proto__:null,default:$Ut},[CNe]);var SR={exports:{}},KUt=SR.exports,Oxe;function YUt(){return Oxe||(Oxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(KUt,function(e){e.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн.",billion:"млрд.",trillion:"трлн."},ordinal:function(){return"."},currency:{symbol:"руб."}})})}(SR)),SR.exports}var TNe=YUt();const XUt=Dn(TNe),WQt=ml({__proto__:null,default:XUt},[TNe]);var xR={exports:{}},ZUt=xR.exports,kxe;function JUt(){return kxe||(kxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(ZUt,function(e){e.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€"}})})}(xR)),xR.exports}var ENe=JUt();const e4t=Dn(ENe),$Qt=ml({__proto__:null,default:e4t},[ENe]);var CR={exports:{}},t4t=CR.exports,Fxe;function r4t(){return Fxe||(Fxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(t4t,function(e){var r={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(n){if(n===0)return"'ıncı";var o=n%10,u=n%100-o,f=n>=100?100:null;return r[o]||r[u]||r[f]},currency:{symbol:"₺"}})})}(CR)),CR.exports}var BNe=r4t();const n4t=Dn(BNe),KQt=ml({__proto__:null,default:n4t},[BNe]);var TR={exports:{}},i4t=TR.exports,Nxe;function a4t(){return Nxe||(Nxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(i4t,function(e){e.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴"}})})}(TR)),TR.exports}var INe=a4t();const o4t=Dn(INe),YQt=ml({__proto__:null,default:o4t},[INe]);var ER={exports:{}},s4t=ER.exports,Uxe;function l4t(){return Uxe||(Uxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(s4t,function(e){e.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(r){return"."},currency:{symbol:"¥"}})})}(ER)),ER.exports}var LNe=l4t();const u4t=Dn(LNe),XQt=ml({__proto__:null,default:u4t},[LNe]);var BR={exports:{}},c4t=BR.exports,Hxe;function f4t(){return Hxe||(Hxe=1,function(t){(function(e,r){t.exports?r(fu()):r(e.numeral)})(c4t,function(e){e.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(r){var n=r%10;return~~(r%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th"},currency:{symbol:"£"}})})}(BR)),BR.exports}var MNe=f4t();const h4t=Dn(MNe),ZQt=ml({__proto__:null,default:h4t},[MNe]);/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:DNe,setPrototypeOf:Qxe,isFrozen:d4t,getPrototypeOf:A4t,getOwnPropertyDescriptor:v4t}=Object;let{freeze:df,seal:Gd,create:RNe}=Object,{apply:uY,construct:cY}=typeof Reflect<"u"&&Reflect;df||(df=function(e){return e});Gd||(Gd=function(e){return e});uY||(uY=function(e,r,n){return e.apply(r,n)});cY||(cY=function(e,r){return new e(...r)});const c5=Af(Array.prototype.forEach),p4t=Af(Array.prototype.lastIndexOf),Vxe=Af(Array.prototype.pop),VT=Af(Array.prototype.push),g4t=Af(Array.prototype.splice),IR=Af(String.prototype.toLowerCase),D3=Af(String.prototype.toString),zxe=Af(String.prototype.match),zT=Af(String.prototype.replace),m4t=Af(String.prototype.indexOf),y4t=Af(String.prototype.trim),IA=Af(Object.prototype.hasOwnProperty),rf=Af(RegExp.prototype.test),GT=w4t(TypeError);function Af(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return uY(t,e,n)}}function w4t(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return cY(t,r)}}function oa(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:IR;Qxe&&Qxe(t,null);let n=e.length;for(;n--;){let o=e[n];if(typeof o=="string"){const u=r(o);u!==o&&(d4t(e)||(e[n]=u),o=u)}t[o]=!0}return t}function b4t(t){for(let e=0;e<t.length;e++)IA(t,e)||(t[e]=null);return t}function ig(t){const e=RNe(null);for(const[r,n]of DNe(t))IA(t,r)&&(Array.isArray(n)?e[r]=b4t(n):n&&typeof n=="object"&&n.constructor===Object?e[r]=ig(n):e[r]=n);return e}function jT(t,e){for(;t!==null;){const n=v4t(t,e);if(n){if(n.get)return Af(n.get);if(typeof n.value=="function")return Af(n.value)}t=A4t(t)}function r(){return null}return r}const Gxe=df(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R3=df(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P3=df(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_4t=df(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),O3=df(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),S4t=df(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),jxe=df(["#text"]),qxe=df(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),k3=df(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Wxe=df(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),f5=df(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),x4t=Gd(/\{\{[\w\W]*|[\w\W]*\}\}/gm),C4t=Gd(/<%[\w\W]*|[\w\W]*%>/gm),T4t=Gd(/\$\{[\w\W]*/gm),E4t=Gd(/^data-[\-\w.\u00B7-\uFFFF]+$/),B4t=Gd(/^aria-[\-\w]+$/),PNe=Gd(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),I4t=Gd(/^(?:\w+script|data):/i),L4t=Gd(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ONe=Gd(/^html$/i),M4t=Gd(/^[a-z][.\w]*(-[.\w]+)+$/i);var $xe=Object.freeze({__proto__:null,ARIA_ATTR:B4t,ATTR_WHITESPACE:L4t,CUSTOM_ELEMENT:M4t,DATA_ATTR:E4t,DOCTYPE_NAME:ONe,ERB_EXPR:C4t,IS_ALLOWED_URI:PNe,IS_SCRIPT_OR_DATA:I4t,MUSTACHE_EXPR:x4t,TMPLIT_EXPR:T4t});const qT={element:1,text:3,progressingInstruction:7,comment:8,document:9},D4t=function(){return typeof window>"u"?null:window},R4t=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const u="dompurify"+(n?"#"+n:"");try{return e.createPolicy(u,{createHTML(f){return f},createScriptURL(f){return f}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},Kxe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function kNe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:D4t();const e=_r=>kNe(_r);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==qT.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,o=n.currentScript,{DocumentFragment:u,HTMLTemplateElement:f,Node:h,Element:A,NodeFilter:p,NamedNodeMap:g=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:y,DOMParser:_,trustedTypes:b}=t,C=A.prototype,T=jT(C,"cloneNode"),B=jT(C,"remove"),L=jT(C,"nextSibling"),P=jT(C,"childNodes"),I=jT(C,"parentNode");if(typeof f=="function"){const _r=r.createElement("template");_r.content&&_r.content.ownerDocument&&(r=_r.content.ownerDocument)}let O,U="";const{implementation:N,createNodeIterator:H,createDocumentFragment:z,getElementsByTagName:G}=r,{importNode:j}=n;let q=Kxe();e.isSupported=typeof DNe=="function"&&typeof I=="function"&&N&&N.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:X,ERB_EXPR:Y,TMPLIT_EXPR:te,DATA_ATTR:K,ARIA_ATTR:ce,IS_SCRIPT_OR_DATA:ae,ATTR_WHITESPACE:le,CUSTOM_ELEMENT:pe}=$xe;let{IS_ALLOWED_URI:ie}=$xe,he=null;const re=oa({},[...Gxe,...R3,...P3,...O3,...jxe]);let oe=null;const ye=oa({},[...qxe,...k3,...Wxe,...f5]);let _e=Object.seal(RNe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,ne=null,xe=!0,De=!0,ze=!1,Ye=!0,Ne=!1,yt=!0,Ue=!1,ue=!1,Qe=!1,qe=!1,Re=!1,Me=!1,Ge=!0,Pe=!1;const ke="user-content-";let Be=!0,$e=!1,nt={},ft=null;const Mt=oa({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Rt=null;const Bt=oa({},["audio","video","img","source","image","track"]);let It=null;const qt=oa({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fr="http://www.w3.org/1998/Math/MathML",lr="http://www.w3.org/2000/svg",_t="http://www.w3.org/1999/xhtml";let br=_t,on=!1,Br=null;const rn=oa({},[fr,lr,_t],D3);let Yr=oa({},["mi","mo","mn","ms","mtext"]),cn=oa({},["annotation-xml"]);const Vn=oa({},["title","style","font","a","script"]);let Nr=null;const Ht=["application/xhtml+xml","text/html"],zr="text/html";let kn=null,vt=null;const At=r.createElement("form"),Ct=function(pt){return pt instanceof RegExp||pt instanceof Function},Tt=function(){let pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(vt&&vt===pt)){if((!pt||typeof pt!="object")&&(pt={}),pt=ig(pt),Nr=Ht.indexOf(pt.PARSER_MEDIA_TYPE)===-1?zr:pt.PARSER_MEDIA_TYPE,kn=Nr==="application/xhtml+xml"?D3:IR,he=IA(pt,"ALLOWED_TAGS")?oa({},pt.ALLOWED_TAGS,kn):re,oe=IA(pt,"ALLOWED_ATTR")?oa({},pt.ALLOWED_ATTR,kn):ye,Br=IA(pt,"ALLOWED_NAMESPACES")?oa({},pt.ALLOWED_NAMESPACES,D3):rn,It=IA(pt,"ADD_URI_SAFE_ATTR")?oa(ig(qt),pt.ADD_URI_SAFE_ATTR,kn):qt,Rt=IA(pt,"ADD_DATA_URI_TAGS")?oa(ig(Bt),pt.ADD_DATA_URI_TAGS,kn):Bt,ft=IA(pt,"FORBID_CONTENTS")?oa({},pt.FORBID_CONTENTS,kn):Mt,Ce=IA(pt,"FORBID_TAGS")?oa({},pt.FORBID_TAGS,kn):ig({}),ne=IA(pt,"FORBID_ATTR")?oa({},pt.FORBID_ATTR,kn):ig({}),nt=IA(pt,"USE_PROFILES")?pt.USE_PROFILES:!1,xe=pt.ALLOW_ARIA_ATTR!==!1,De=pt.ALLOW_DATA_ATTR!==!1,ze=pt.ALLOW_UNKNOWN_PROTOCOLS||!1,Ye=pt.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ne=pt.SAFE_FOR_TEMPLATES||!1,yt=pt.SAFE_FOR_XML!==!1,Ue=pt.WHOLE_DOCUMENT||!1,qe=pt.RETURN_DOM||!1,Re=pt.RETURN_DOM_FRAGMENT||!1,Me=pt.RETURN_TRUSTED_TYPE||!1,Qe=pt.FORCE_BODY||!1,Ge=pt.SANITIZE_DOM!==!1,Pe=pt.SANITIZE_NAMED_PROPS||!1,Be=pt.KEEP_CONTENT!==!1,$e=pt.IN_PLACE||!1,ie=pt.ALLOWED_URI_REGEXP||PNe,br=pt.NAMESPACE||_t,Yr=pt.MATHML_TEXT_INTEGRATION_POINTS||Yr,cn=pt.HTML_INTEGRATION_POINTS||cn,_e=pt.CUSTOM_ELEMENT_HANDLING||{},pt.CUSTOM_ELEMENT_HANDLING&&Ct(pt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=pt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),pt.CUSTOM_ELEMENT_HANDLING&&Ct(pt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=pt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),pt.CUSTOM_ELEMENT_HANDLING&&typeof pt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_e.allowCustomizedBuiltInElements=pt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(De=!1),Re&&(qe=!0),nt&&(he=oa({},jxe),oe=[],nt.html===!0&&(oa(he,Gxe),oa(oe,qxe)),nt.svg===!0&&(oa(he,R3),oa(oe,k3),oa(oe,f5)),nt.svgFilters===!0&&(oa(he,P3),oa(oe,k3),oa(oe,f5)),nt.mathMl===!0&&(oa(he,O3),oa(oe,Wxe),oa(oe,f5))),pt.ADD_TAGS&&(he===re&&(he=ig(he)),oa(he,pt.ADD_TAGS,kn)),pt.ADD_ATTR&&(oe===ye&&(oe=ig(oe)),oa(oe,pt.ADD_ATTR,kn)),pt.ADD_URI_SAFE_ATTR&&oa(It,pt.ADD_URI_SAFE_ATTR,kn),pt.FORBID_CONTENTS&&(ft===Mt&&(ft=ig(ft)),oa(ft,pt.FORBID_CONTENTS,kn)),Be&&(he["#text"]=!0),Ue&&oa(he,["html","head","body"]),he.table&&(oa(he,["tbody"]),delete Ce.tbody),pt.TRUSTED_TYPES_POLICY){if(typeof pt.TRUSTED_TYPES_POLICY.createHTML!="function")throw GT('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof pt.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw GT('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');O=pt.TRUSTED_TYPES_POLICY,U=O.createHTML("")}else O===void 0&&(O=R4t(b,o)),O!==null&&typeof U=="string"&&(U=O.createHTML(""));df&&df(pt),vt=pt}},ir=oa({},[...R3,...P3,..._4t]),et=oa({},[...O3,...S4t]),ot=function(pt){let or=I(pt);(!or||!or.tagName)&&(or={namespaceURI:br,tagName:"template"});const Ur=IR(pt.tagName),Ti=IR(or.tagName);return Br[pt.namespaceURI]?pt.namespaceURI===lr?or.namespaceURI===_t?Ur==="svg":or.namespaceURI===fr?Ur==="svg"&&(Ti==="annotation-xml"||Yr[Ti]):!!ir[Ur]:pt.namespaceURI===fr?or.namespaceURI===_t?Ur==="math":or.namespaceURI===lr?Ur==="math"&&cn[Ti]:!!et[Ur]:pt.namespaceURI===_t?or.namespaceURI===lr&&!cn[Ti]||or.namespaceURI===fr&&!Yr[Ti]?!1:!et[Ur]&&(Vn[Ur]||!ir[Ur]):!!(Nr==="application/xhtml+xml"&&Br[pt.namespaceURI]):!1},mt=function(pt){VT(e.removed,{element:pt});try{I(pt).removeChild(pt)}catch{B(pt)}},xt=function(pt,or){try{VT(e.removed,{attribute:or.getAttributeNode(pt),from:or})}catch{VT(e.removed,{attribute:null,from:or})}if(or.removeAttribute(pt),pt==="is")if(qe||Re)try{mt(or)}catch{}else try{or.setAttribute(pt,"")}catch{}},nr=function(pt){let or=null,Ur=null;if(Qe)pt="<remove></remove>"+pt;else{const Li=zxe(pt,/^[\r\n\t ]+/);Ur=Li&&Li[0]}Nr==="application/xhtml+xml"&&br===_t&&(pt='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+pt+"</body></html>");const Ti=O?O.createHTML(pt):pt;if(br===_t)try{or=new _().parseFromString(Ti,Nr)}catch{}if(!or||!or.documentElement){or=N.createDocument(br,"template",null);try{or.documentElement.innerHTML=on?U:Ti}catch{}}const ni=or.body||or.documentElement;return pt&&Ur&&ni.insertBefore(r.createTextNode(Ur),ni.childNodes[0]||null),br===_t?G.call(or,Ue?"html":"body")[0]:Ue?or.documentElement:ni},yr=function(pt){return H.call(pt.ownerDocument||pt,pt,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Pr=function(pt){return pt instanceof y&&(typeof pt.nodeName!="string"||typeof pt.textContent!="string"||typeof pt.removeChild!="function"||!(pt.attributes instanceof g)||typeof pt.removeAttribute!="function"||typeof pt.setAttribute!="function"||typeof pt.namespaceURI!="string"||typeof pt.insertBefore!="function"||typeof pt.hasChildNodes!="function")},pr=function(pt){return typeof h=="function"&&pt instanceof h};function Ar(_r,pt,or){c5(_r,Ur=>{Ur.call(e,pt,or,vt)})}const Tr=function(pt){let or=null;if(Ar(q.beforeSanitizeElements,pt,null),Pr(pt))return mt(pt),!0;const Ur=kn(pt.nodeName);if(Ar(q.uponSanitizeElement,pt,{tagName:Ur,allowedTags:he}),yt&&pt.hasChildNodes()&&!pr(pt.firstElementChild)&&rf(/<[/\w!]/g,pt.innerHTML)&&rf(/<[/\w!]/g,pt.textContent)||pt.nodeType===qT.progressingInstruction||yt&&pt.nodeType===qT.comment&&rf(/<[/\w]/g,pt.data))return mt(pt),!0;if(!he[Ur]||Ce[Ur]){if(!Ce[Ur]&&nn(Ur)&&(_e.tagNameCheck instanceof RegExp&&rf(_e.tagNameCheck,Ur)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(Ur)))return!1;if(Be&&!ft[Ur]){const Ti=I(pt)||pt.parentNode,ni=P(pt)||pt.childNodes;if(ni&&Ti){const Li=ni.length;for(let ea=Li-1;ea>=0;--ea){const Tn=T(ni[ea],!0);Tn.__removalCount=(pt.__removalCount||0)+1,Ti.insertBefore(Tn,L(pt))}}}return mt(pt),!0}return pt instanceof A&&!ot(pt)||(Ur==="noscript"||Ur==="noembed"||Ur==="noframes")&&rf(/<\/no(script|embed|frames)/i,pt.innerHTML)?(mt(pt),!0):(Ne&&pt.nodeType===qT.text&&(or=pt.textContent,c5([X,Y,te],Ti=>{or=zT(or,Ti," ")}),pt.textContent!==or&&(VT(e.removed,{element:pt.cloneNode()}),pt.textContent=or)),Ar(q.afterSanitizeElements,pt,null),!1)},Fr=function(pt,or,Ur){if(Ge&&(or==="id"||or==="name")&&(Ur in r||Ur in At))return!1;if(!(De&&!ne[or]&&rf(K,or))){if(!(xe&&rf(ce,or))){if(!oe[or]||ne[or]){if(!(nn(pt)&&(_e.tagNameCheck instanceof RegExp&&rf(_e.tagNameCheck,pt)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(pt))&&(_e.attributeNameCheck instanceof RegExp&&rf(_e.attributeNameCheck,or)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(or))||or==="is"&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&rf(_e.tagNameCheck,Ur)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(Ur))))return!1}else if(!It[or]){if(!rf(ie,zT(Ur,le,""))){if(!((or==="src"||or==="xlink:href"||or==="href")&&pt!=="script"&&m4t(Ur,"data:")===0&&Rt[pt])){if(!(ze&&!rf(ae,zT(Ur,le,"")))){if(Ur)return!1}}}}}}return!0},nn=function(pt){return pt!=="annotation-xml"&&zxe(pt,pe)},fn=function(pt){Ar(q.beforeSanitizeAttributes,pt,null);const{attributes:or}=pt;if(!or||Pr(pt))return;const Ur={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:oe,forceKeepAttr:void 0};let Ti=or.length;for(;Ti--;){const ni=or[Ti],{name:Li,namespaceURI:ea,value:Tn}=ni,Mi=kn(Li),Ka=Tn;let ga=Li==="value"?Ka:y4t(Ka);if(Ur.attrName=Mi,Ur.attrValue=ga,Ur.keepAttr=!0,Ur.forceKeepAttr=void 0,Ar(q.uponSanitizeAttribute,pt,Ur),ga=Ur.attrValue,Pe&&(Mi==="id"||Mi==="name")&&(xt(Li,pt),ga=ke+ga),yt&&rf(/((--!?|])>)|<\/(style|title)/i,ga)){xt(Li,pt);continue}if(Ur.forceKeepAttr)continue;if(!Ur.keepAttr){xt(Li,pt);continue}if(!Ye&&rf(/\/>/i,ga)){xt(Li,pt);continue}Ne&&c5([X,Y,te],$i=>{ga=zT(ga,$i," ")});const qn=kn(pt.nodeName);if(!Fr(qn,Mi,ga)){xt(Li,pt);continue}if(O&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!ea)switch(b.getAttributeType(qn,Mi)){case"TrustedHTML":{ga=O.createHTML(ga);break}case"TrustedScriptURL":{ga=O.createScriptURL(ga);break}}if(ga!==Ka)try{ea?pt.setAttributeNS(ea,Li,ga):pt.setAttribute(Li,ga),Pr(pt)?mt(pt):Vxe(e.removed)}catch{xt(Li,pt)}}Ar(q.afterSanitizeAttributes,pt,null)},ci=function _r(pt){let or=null;const Ur=yr(pt);for(Ar(q.beforeSanitizeShadowDOM,pt,null);or=Ur.nextNode();)Ar(q.uponSanitizeShadowNode,or,null),Tr(or),fn(or),or.content instanceof u&&_r(or.content);Ar(q.afterSanitizeShadowDOM,pt,null)};return e.sanitize=function(_r){let pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},or=null,Ur=null,Ti=null,ni=null;if(on=!_r,on&&(_r="<!-->"),typeof _r!="string"&&!pr(_r))if(typeof _r.toString=="function"){if(_r=_r.toString(),typeof _r!="string")throw GT("dirty is not a string, aborting")}else throw GT("toString is not a function");if(!e.isSupported)return _r;if(ue||Tt(pt),e.removed=[],typeof _r=="string"&&($e=!1),$e){if(_r.nodeName){const Tn=kn(_r.nodeName);if(!he[Tn]||Ce[Tn])throw GT("root node is forbidden and cannot be sanitized in-place")}}else if(_r instanceof h)or=nr("<!---->"),Ur=or.ownerDocument.importNode(_r,!0),Ur.nodeType===qT.element&&Ur.nodeName==="BODY"||Ur.nodeName==="HTML"?or=Ur:or.appendChild(Ur);else{if(!qe&&!Ne&&!Ue&&_r.indexOf("<")===-1)return O&&Me?O.createHTML(_r):_r;if(or=nr(_r),!or)return qe?null:Me?U:""}or&&Qe&&mt(or.firstChild);const Li=yr($e?_r:or);for(;Ti=Li.nextNode();)Tr(Ti),fn(Ti),Ti.content instanceof u&&ci(Ti.content);if($e)return _r;if(qe){if(Re)for(ni=z.call(or.ownerDocument);or.firstChild;)ni.appendChild(or.firstChild);else ni=or;return(oe.shadowroot||oe.shadowrootmode)&&(ni=j.call(n,ni,!0)),ni}let ea=Ue?or.outerHTML:or.innerHTML;return Ue&&he["!doctype"]&&or.ownerDocument&&or.ownerDocument.doctype&&or.ownerDocument.doctype.name&&rf(ONe,or.ownerDocument.doctype.name)&&(ea="<!DOCTYPE "+or.ownerDocument.doctype.name+`>
`+ea),Ne&&c5([X,Y,te],Tn=>{ea=zT(ea,Tn," ")}),O&&Me?O.createHTML(ea):ea},e.setConfig=function(){let _r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tt(_r),ue=!0},e.clearConfig=function(){vt=null,ue=!1},e.isValidAttribute=function(_r,pt,or){vt||Tt({});const Ur=kn(_r),Ti=kn(pt);return Fr(Ur,Ti,or)},e.addHook=function(_r,pt){typeof pt=="function"&&VT(q[_r],pt)},e.removeHook=function(_r,pt){if(pt!==void 0){const or=p4t(q[_r],pt);return or===-1?void 0:g4t(q[_r],or,1)[0]}return Vxe(q[_r])},e.removeHooks=function(_r){q[_r]=[]},e.removeAllHooks=function(){q=Kxe()},e}var P4t=kNe();const O4t=Object.freeze(Object.defineProperty({__proto__:null,default:P4t},Symbol.toStringTag,{value:"Module"}));var Yxe={},Xxe={},WT,Zxe;function js(){if(Zxe)return WT;Zxe=1;var t=function(e){return e&&e.Math===Math&&e};return WT=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof Gf=="object"&&Gf)||t(typeof WT=="object"&&WT)||function(){return this}()||Function("return this")(),WT}var F3={},N3,Jxe;function yl(){return Jxe||(Jxe=1,N3=function(t){try{return!!t()}catch{return!0}}),N3}var U3,eCe;function JA(){if(eCe)return U3;eCe=1;var t=yl();return U3=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),U3}var H3,tCe;function $k(){if(tCe)return H3;tCe=1;var t=yl();return H3=!t(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),H3}var Q3,rCe;function Xu(){if(rCe)return Q3;rCe=1;var t=$k(),e=Function.prototype.call;return Q3=t?e.bind(e):function(){return e.apply(e,arguments)},Q3}var V3={},nCe;function k4t(){if(nCe)return V3;nCe=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return V3.f=r?function(o){var u=e(this,o);return!!u&&u.enumerable}:t,V3}var z3,iCe;function sJ(){return iCe||(iCe=1,z3=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}),z3}var G3,aCe;function wl(){if(aCe)return G3;aCe=1;var t=$k(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return G3=t?n:function(o){return function(){return r.apply(o,arguments)}},G3}var j3,oCe;function bw(){if(oCe)return j3;oCe=1;var t=wl(),e=t({}.toString),r=t("".slice);return j3=function(n){return r(e(n),8,-1)},j3}var q3,sCe;function FNe(){if(sCe)return q3;sCe=1;var t=wl(),e=yl(),r=bw(),n=Object,o=t("".split);return q3=e(function(){return!n("z").propertyIsEnumerable(0)})?function(u){return r(u)==="String"?o(u,""):n(u)}:n,q3}var W3,lCe;function Kk(){return lCe||(lCe=1,W3=function(t){return t==null}),W3}var $3,uCe;function ev(){if(uCe)return $3;uCe=1;var t=Kk(),e=TypeError;return $3=function(r){if(t(r))throw new e("Can't call method on "+r);return r},$3}var K3,cCe;function TB(){if(cCe)return K3;cCe=1;var t=FNe(),e=ev();return K3=function(r){return t(e(r))},K3}var Y3,fCe;function bl(){if(fCe)return Y3;fCe=1;var t=typeof document=="object"&&document.all;return Y3=typeof t>"u"&&t!==void 0?function(e){return typeof e=="function"||e===t}:function(e){return typeof e=="function"},Y3}var X3,hCe;function nh(){if(hCe)return X3;hCe=1;var t=bl();return X3=function(e){return typeof e=="object"?e!==null:t(e)},X3}var Z3,dCe;function _w(){if(dCe)return Z3;dCe=1;var t=js(),e=bl(),r=function(n){return e(n)?n:void 0};return Z3=function(n,o){return arguments.length<2?r(t[n]):t[n]&&t[n][o]},Z3}var J3,ACe;function Yk(){if(ACe)return J3;ACe=1;var t=wl();return J3=t({}.isPrototypeOf),J3}var ej,vCe;function EB(){if(vCe)return ej;vCe=1;var t=js(),e=t.navigator,r=e&&e.userAgent;return ej=r?String(r):"",ej}var tj,pCe;function lJ(){if(pCe)return tj;pCe=1;var t=js(),e=EB(),r=t.process,n=t.Deno,o=r&&r.versions||n&&n.version,u=o&&o.v8,f,h;return u&&(f=u.split("."),h=f[0]>0&&f[0]<4?1:+(f[0]+f[1])),!h&&e&&(f=e.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=e.match(/Chrome\/(\d+)/),f&&(h=+f[1]))),tj=h,tj}var rj,gCe;function NNe(){if(gCe)return rj;gCe=1;var t=lJ(),e=yl(),r=js(),n=r.String;return rj=!!Object.getOwnPropertySymbols&&!e(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&t&&t<41}),rj}var nj,mCe;function UNe(){if(mCe)return nj;mCe=1;var t=NNe();return nj=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol",nj}var ij,yCe;function HNe(){if(yCe)return ij;yCe=1;var t=_w(),e=bl(),r=Yk(),n=UNe(),o=Object;return ij=n?function(u){return typeof u=="symbol"}:function(u){var f=t("Symbol");return e(f)&&r(f.prototype,o(u))},ij}var aj,wCe;function Xk(){if(wCe)return aj;wCe=1;var t=String;return aj=function(e){try{return t(e)}catch{return"Object"}},aj}var oj,bCe;function Rg(){if(bCe)return oj;bCe=1;var t=bl(),e=Xk(),r=TypeError;return oj=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")},oj}var sj,_Ce;function Ax(){if(_Ce)return sj;_Ce=1;var t=Rg(),e=Kk();return sj=function(r,n){var o=r[n];return e(o)?void 0:t(o)},sj}var lj,SCe;function F4t(){if(SCe)return lj;SCe=1;var t=Xu(),e=bl(),r=nh(),n=TypeError;return lj=function(o,u){var f,h;if(u==="string"&&e(f=o.toString)&&!r(h=t(f,o))||e(f=o.valueOf)&&!r(h=t(f,o))||u!=="string"&&e(f=o.toString)&&!r(h=t(f,o)))return h;throw new n("Can't convert object to primitive value")},lj}var uj={exports:{}},cj,xCe;function hp(){return xCe||(xCe=1,cj=!1),cj}var fj,CCe;function uJ(){if(CCe)return fj;CCe=1;var t=js(),e=Object.defineProperty;return fj=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch{t[r]=n}return n},fj}var TCe;function cJ(){if(TCe)return uj.exports;TCe=1;var t=hp(),e=js(),r=uJ(),n="__core-js_shared__",o=uj.exports=e[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.42.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"}),uj.exports}var hj,ECe;function fJ(){if(ECe)return hj;ECe=1;var t=cJ();return hj=function(e,r){return t[e]||(t[e]=r||{})},hj}var dj,BCe;function Zk(){if(BCe)return dj;BCe=1;var t=ev(),e=Object;return dj=function(r){return e(t(r))},dj}var Aj,ICe;function tv(){if(ICe)return Aj;ICe=1;var t=wl(),e=Zk(),r=t({}.hasOwnProperty);return Aj=Object.hasOwn||function(o,u){return r(e(o),u)},Aj}var vj,LCe;function QNe(){if(LCe)return vj;LCe=1;var t=wl(),e=0,r=Math.random(),n=t(1 .toString);return vj=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++e+r,36)},vj}var pj,MCe;function Cu(){if(MCe)return pj;MCe=1;var t=js(),e=fJ(),r=tv(),n=QNe(),o=NNe(),u=UNe(),f=t.Symbol,h=e("wks"),A=u?f.for||f:f&&f.withoutSetter||n;return pj=function(p){return r(h,p)||(h[p]=o&&r(f,p)?f[p]:A("Symbol."+p)),h[p]},pj}var gj,DCe;function N4t(){if(DCe)return gj;DCe=1;var t=Xu(),e=nh(),r=HNe(),n=Ax(),o=F4t(),u=Cu(),f=TypeError,h=u("toPrimitive");return gj=function(A,p){if(!e(A)||r(A))return A;var g=n(A,h),y;if(g){if(p===void 0&&(p="default"),y=t(g,A,p),!e(y)||r(y))return y;throw new f("Can't convert object to primitive value")}return p===void 0&&(p="number"),o(A,p)},gj}var mj,RCe;function VNe(){if(RCe)return mj;RCe=1;var t=N4t(),e=HNe();return mj=function(r){var n=t(r,"string");return e(n)?n:n+""},mj}var yj,PCe;function Jk(){if(PCe)return yj;PCe=1;var t=js(),e=nh(),r=t.document,n=e(r)&&e(r.createElement);return yj=function(o){return n?r.createElement(o):{}},yj}var wj,OCe;function zNe(){if(OCe)return wj;OCe=1;var t=JA(),e=yl(),r=Jk();return wj=!t&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),wj}var kCe;function eF(){if(kCe)return F3;kCe=1;var t=JA(),e=Xu(),r=k4t(),n=sJ(),o=TB(),u=VNe(),f=tv(),h=zNe(),A=Object.getOwnPropertyDescriptor;return F3.f=t?A:function(g,y){if(g=o(g),y=u(y),h)try{return A(g,y)}catch{}if(f(g,y))return n(!e(r.f,g,y),g[y])},F3}var bj={},_j,FCe;function GNe(){if(FCe)return _j;FCe=1;var t=JA(),e=yl();return _j=t&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),_j}var Sj,NCe;function mf(){if(NCe)return Sj;NCe=1;var t=nh(),e=String,r=TypeError;return Sj=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")},Sj}var UCe;function My(){if(UCe)return bj;UCe=1;var t=JA(),e=zNe(),r=GNe(),n=mf(),o=VNe(),u=TypeError,f=Object.defineProperty,h=Object.getOwnPropertyDescriptor,A="enumerable",p="configurable",g="writable";return bj.f=t?r?function(_,b,C){if(n(_),b=o(b),n(C),typeof _=="function"&&b==="prototype"&&"value"in C&&g in C&&!C[g]){var T=h(_,b);T&&T[g]&&(_[b]=C.value,C={configurable:p in C?C[p]:T[p],enumerable:A in C?C[A]:T[A],writable:!1})}return f(_,b,C)}:f:function(_,b,C){if(n(_),b=o(b),n(C),e)try{return f(_,b,C)}catch{}if("get"in C||"set"in C)throw new u("Accessors not supported");return"value"in C&&(_[b]=C.value),_},bj}var xj,HCe;function BB(){if(HCe)return xj;HCe=1;var t=JA(),e=My(),r=sJ();return xj=t?function(n,o,u){return e.f(n,o,r(1,u))}:function(n,o,u){return n[o]=u,n},xj}var Cj={exports:{}},Tj,QCe;function tF(){if(QCe)return Tj;QCe=1;var t=JA(),e=tv(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,o=e(r,"name"),u=o&&(function(){}).name==="something",f=o&&(!t||t&&n(r,"name").configurable);return Tj={EXISTS:o,PROPER:u,CONFIGURABLE:f},Tj}var Ej,VCe;function hJ(){if(VCe)return Ej;VCe=1;var t=wl(),e=bl(),r=cJ(),n=t(Function.toString);return e(r.inspectSource)||(r.inspectSource=function(o){return n(o)}),Ej=r.inspectSource,Ej}var Bj,zCe;function U4t(){if(zCe)return Bj;zCe=1;var t=js(),e=bl(),r=t.WeakMap;return Bj=e(r)&&/native code/.test(String(r)),Bj}var Ij,GCe;function dJ(){if(GCe)return Ij;GCe=1;var t=fJ(),e=QNe(),r=t("keys");return Ij=function(n){return r[n]||(r[n]=e(n))},Ij}var Lj,jCe;function AJ(){return jCe||(jCe=1,Lj={}),Lj}var Mj,qCe;function rF(){if(qCe)return Mj;qCe=1;var t=U4t(),e=js(),r=nh(),n=BB(),o=tv(),u=cJ(),f=dJ(),h=AJ(),A="Object already initialized",p=e.TypeError,g=e.WeakMap,y,_,b,C=function(P){return b(P)?_(P):y(P,{})},T=function(P){return function(I){var O;if(!r(I)||(O=_(I)).type!==P)throw new p("Incompatible receiver, "+P+" required");return O}};if(t||u.state){var B=u.state||(u.state=new g);B.get=B.get,B.has=B.has,B.set=B.set,y=function(P,I){if(B.has(P))throw new p(A);return I.facade=P,B.set(P,I),I},_=function(P){return B.get(P)||{}},b=function(P){return B.has(P)}}else{var L=f("state");h[L]=!0,y=function(P,I){if(o(P,L))throw new p(A);return I.facade=P,n(P,L,I),I},_=function(P){return o(P,L)?P[L]:{}},b=function(P){return o(P,L)}}return Mj={set:y,get:_,has:b,enforce:C,getterFor:T},Mj}var WCe;function jNe(){if(WCe)return Cj.exports;WCe=1;var t=wl(),e=yl(),r=bl(),n=tv(),o=JA(),u=tF().CONFIGURABLE,f=hJ(),h=rF(),A=h.enforce,p=h.get,g=String,y=Object.defineProperty,_=t("".slice),b=t("".replace),C=t([].join),T=o&&!e(function(){return y(function(){},"length",{value:8}).length!==8}),B=String(String).split("String"),L=Cj.exports=function(P,I,O){_(g(I),0,7)==="Symbol("&&(I="["+b(g(I),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),O&&O.getter&&(I="get "+I),O&&O.setter&&(I="set "+I),(!n(P,"name")||u&&P.name!==I)&&(o?y(P,"name",{value:I,configurable:!0}):P.name=I),T&&O&&n(O,"arity")&&P.length!==O.arity&&y(P,"length",{value:O.arity});try{O&&n(O,"constructor")&&O.constructor?o&&y(P,"prototype",{writable:!1}):P.prototype&&(P.prototype=void 0)}catch{}var U=A(P);return n(U,"source")||(U.source=C(B,typeof I=="string"?I:"")),P};return Function.prototype.toString=L(function(){return r(this)&&p(this).source||f(this)},"toString"),Cj.exports}var Dj,$Ce;function Sw(){if($Ce)return Dj;$Ce=1;var t=bl(),e=My(),r=jNe(),n=uJ();return Dj=function(o,u,f,h){h||(h={});var A=h.enumerable,p=h.name!==void 0?h.name:u;if(t(f)&&r(f,p,h),h.global)A?o[u]=f:n(u,f);else{try{h.unsafe?o[u]&&(A=!0):delete o[u]}catch{}A?o[u]=f:e.f(o,u,{value:f,enumerable:!1,configurable:!h.nonConfigurable,writable:!h.nonWritable})}return o},Dj}var Rj={},Pj,KCe;function H4t(){if(KCe)return Pj;KCe=1;var t=Math.ceil,e=Math.floor;return Pj=Math.trunc||function(n){var o=+n;return(o>0?e:t)(o)},Pj}var Oj,YCe;function nF(){if(YCe)return Oj;YCe=1;var t=H4t();return Oj=function(e){var r=+e;return r!==r||r===0?0:t(r)},Oj}var kj,XCe;function Q4t(){if(XCe)return kj;XCe=1;var t=nF(),e=Math.max,r=Math.min;return kj=function(n,o){var u=t(n);return u<0?e(u+o,0):r(u,o)},kj}var Fj,ZCe;function vx(){if(ZCe)return Fj;ZCe=1;var t=nF(),e=Math.min;return Fj=function(r){var n=t(r);return n>0?e(n,9007199254740991):0},Fj}var Nj,JCe;function vJ(){if(JCe)return Nj;JCe=1;var t=vx();return Nj=function(e){return t(e.length)},Nj}var Uj,eTe;function qNe(){if(eTe)return Uj;eTe=1;var t=TB(),e=Q4t(),r=vJ(),n=function(o){return function(u,f,h){var A=t(u),p=r(A);if(p===0)return!o&&-1;var g=e(h,p),y;if(o&&f!==f){for(;p>g;)if(y=A[g++],y!==y)return!0}else for(;p>g;g++)if((o||g in A)&&A[g]===f)return o||g||0;return!o&&-1}};return Uj={includes:n(!0),indexOf:n(!1)},Uj}var Hj,tTe;function WNe(){if(tTe)return Hj;tTe=1;var t=wl(),e=tv(),r=TB(),n=qNe().indexOf,o=AJ(),u=t([].push);return Hj=function(f,h){var A=r(f),p=0,g=[],y;for(y in A)!e(o,y)&&e(A,y)&&u(g,y);for(;h.length>p;)e(A,y=h[p++])&&(~n(g,y)||u(g,y));return g},Hj}var Qj,rTe;function pJ(){return rTe||(rTe=1,Qj=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Qj}var nTe;function V4t(){if(nTe)return Rj;nTe=1;var t=WNe(),e=pJ(),r=e.concat("length","prototype");return Rj.f=Object.getOwnPropertyNames||function(o){return t(o,r)},Rj}var Vj={},iTe;function z4t(){return iTe||(iTe=1,Vj.f=Object.getOwnPropertySymbols),Vj}var zj,aTe;function G4t(){if(aTe)return zj;aTe=1;var t=_w(),e=wl(),r=V4t(),n=z4t(),o=mf(),u=e([].concat);return zj=t("Reflect","ownKeys")||function(h){var A=r.f(o(h)),p=n.f;return p?u(A,p(h)):A},zj}var Gj,oTe;function j4t(){if(oTe)return Gj;oTe=1;var t=tv(),e=G4t(),r=eF(),n=My();return Gj=function(o,u,f){for(var h=e(u),A=n.f,p=r.f,g=0;g<h.length;g++){var y=h[g];!t(o,y)&&!(f&&t(f,y))&&A(o,y,p(u,y))}},Gj}var jj,sTe;function $Ne(){if(sTe)return jj;sTe=1;var t=yl(),e=bl(),r=/#|\.prototype\./,n=function(A,p){var g=u[o(A)];return g===h?!0:g===f?!1:e(p)?t(p):!!p},o=n.normalize=function(A){return String(A).replace(r,".").toLowerCase()},u=n.data={},f=n.NATIVE="N",h=n.POLYFILL="P";return jj=n,jj}var qj,lTe;function yf(){if(lTe)return qj;lTe=1;var t=js(),e=eF().f,r=BB(),n=Sw(),o=uJ(),u=j4t(),f=$Ne();return qj=function(h,A){var p=h.target,g=h.global,y=h.stat,_,b,C,T,B,L;if(g?b=t:y?b=t[p]||o(p,{}):b=t[p]&&t[p].prototype,b)for(C in A){if(B=A[C],h.dontCallGetSet?(L=e(b,C),T=L&&L.value):T=b[C],_=f(g?C:p+(y?".":"#")+C,h.forced),!_&&T!==void 0){if(typeof B==typeof T)continue;u(B,T)}(h.sham||T&&T.sham)&&r(B,"sham",!0),n(b,C,B,h)}},qj}var Wj,uTe;function KNe(){if(uTe)return Wj;uTe=1;var t=js(),e=EB(),r=bw(),n=function(o){return e.slice(0,o.length)===o};return Wj=function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":t.Bun&&typeof Bun.version=="string"?"BUN":t.Deno&&typeof Deno.version=="object"?"DENO":r(t.process)==="process"?"NODE":t.window&&t.document?"BROWSER":"REST"}(),Wj}var $j,cTe;function iF(){if(cTe)return $j;cTe=1;var t=KNe();return $j=t==="NODE",$j}var Kj,fTe;function q4t(){if(fTe)return Kj;fTe=1;var t=wl(),e=Rg();return Kj=function(r,n,o){try{return t(e(Object.getOwnPropertyDescriptor(r,n)[o]))}catch{}},Kj}var Yj,hTe;function W4t(){if(hTe)return Yj;hTe=1;var t=nh();return Yj=function(e){return t(e)||e===null},Yj}var Xj,dTe;function $4t(){if(dTe)return Xj;dTe=1;var t=W4t(),e=String,r=TypeError;return Xj=function(n){if(t(n))return n;throw new r("Can't set "+e(n)+" as a prototype")},Xj}var Zj,ATe;function YNe(){if(ATe)return Zj;ATe=1;var t=q4t(),e=nh(),r=ev(),n=$4t();return Zj=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,u={},f;try{f=t(Object.prototype,"__proto__","set"),f(u,[]),o=u instanceof Array}catch{}return function(A,p){return r(A),n(p),e(A)&&(o?f(A,p):A.__proto__=p),A}}():void 0),Zj}var Jj,vTe;function aF(){if(vTe)return Jj;vTe=1;var t=My().f,e=tv(),r=Cu(),n=r("toStringTag");return Jj=function(o,u,f){o&&!f&&(o=o.prototype),o&&!e(o,n)&&t(o,n,{configurable:!0,value:u})},Jj}var eq,pTe;function K4t(){if(pTe)return eq;pTe=1;var t=jNe(),e=My();return eq=function(r,n,o){return o.get&&t(o.get,n,{getter:!0}),o.set&&t(o.set,n,{setter:!0}),e.f(r,n,o)},eq}var tq,gTe;function Y4t(){if(gTe)return tq;gTe=1;var t=_w(),e=K4t(),r=Cu(),n=JA(),o=r("species");return tq=function(u){var f=t(u);n&&f&&!f[o]&&e(f,o,{configurable:!0,get:function(){return this}})},tq}var rq,mTe;function X4t(){if(mTe)return rq;mTe=1;var t=Yk(),e=TypeError;return rq=function(r,n){if(t(n,r))return r;throw new e("Incorrect invocation")},rq}var nq,yTe;function Z4t(){if(yTe)return nq;yTe=1;var t=Cu(),e=t("toStringTag"),r={};return r[e]="z",nq=String(r)==="[object z]",nq}var iq,wTe;function gJ(){if(wTe)return iq;wTe=1;var t=Z4t(),e=bl(),r=bw(),n=Cu(),o=n("toStringTag"),u=Object,f=r(function(){return arguments}())==="Arguments",h=function(A,p){try{return A[p]}catch{}};return iq=t?r:function(A){var p,g,y;return A===void 0?"Undefined":A===null?"Null":typeof(g=h(p=u(A),o))=="string"?g:f?r(p):(y=r(p))==="Object"&&e(p.callee)?"Arguments":y},iq}var aq,bTe;function J4t(){if(bTe)return aq;bTe=1;var t=wl(),e=yl(),r=bl(),n=gJ(),o=_w(),u=hJ(),f=function(){},h=o("Reflect","construct"),A=/^\s*(?:class|function)\b/,p=t(A.exec),g=!A.test(f),y=function(C){if(!r(C))return!1;try{return h(f,[],C),!0}catch{return!1}},_=function(C){if(!r(C))return!1;switch(n(C)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!p(A,u(C))}catch{return!0}};return _.sham=!0,aq=!h||e(function(){var b;return y(y.call)||!y(Object)||!y(function(){b=!0})||b})?_:y,aq}var oq,_Te;function e6t(){if(_Te)return oq;_Te=1;var t=J4t(),e=Xk(),r=TypeError;return oq=function(n){if(t(n))return n;throw new r(e(n)+" is not a constructor")},oq}var sq,STe;function XNe(){if(STe)return sq;STe=1;var t=mf(),e=e6t(),r=Kk(),n=Cu(),o=n("species");return sq=function(u,f){var h=t(u).constructor,A;return h===void 0||r(A=t(h)[o])?f:e(A)},sq}var lq,xTe;function ZNe(){if(xTe)return lq;xTe=1;var t=$k(),e=Function.prototype,r=e.apply,n=e.call;return lq=typeof Reflect=="object"&&Reflect.apply||(t?n.bind(r):function(){return n.apply(r,arguments)}),lq}var uq,CTe;function oF(){if(CTe)return uq;CTe=1;var t=bw(),e=wl();return uq=function(r){if(t(r)==="Function")return e(r)},uq}var cq,TTe;function mJ(){if(TTe)return cq;TTe=1;var t=oF(),e=Rg(),r=$k(),n=t(t.bind);return cq=function(o,u){return e(o),u===void 0?o:r?n(o,u):function(){return o.apply(u,arguments)}},cq}var fq,ETe;function JNe(){if(ETe)return fq;ETe=1;var t=_w();return fq=t("document","documentElement"),fq}var hq,BTe;function t6t(){if(BTe)return hq;BTe=1;var t=wl();return hq=t([].slice),hq}var dq,ITe;function r6t(){if(ITe)return dq;ITe=1;var t=TypeError;return dq=function(e,r){if(e<r)throw new t("Not enough arguments");return e},dq}var Aq,LTe;function eUe(){if(LTe)return Aq;LTe=1;var t=EB();return Aq=/(?:ipad|iphone|ipod).*applewebkit/i.test(t),Aq}var vq,MTe;function tUe(){if(MTe)return vq;MTe=1;var t=js(),e=ZNe(),r=mJ(),n=bl(),o=tv(),u=yl(),f=JNe(),h=t6t(),A=Jk(),p=r6t(),g=eUe(),y=iF(),_=t.setImmediate,b=t.clearImmediate,C=t.process,T=t.Dispatch,B=t.Function,L=t.MessageChannel,P=t.String,I=0,O={},U="onreadystatechange",N,H,z,G;u(function(){N=t.location});var j=function(te){if(o(O,te)){var K=O[te];delete O[te],K()}},q=function(te){return function(){j(te)}},X=function(te){j(te.data)},Y=function(te){t.postMessage(P(te),N.protocol+"//"+N.host)};return(!_||!b)&&(_=function(K){p(arguments.length,1);var ce=n(K)?K:B(K),ae=h(arguments,1);return O[++I]=function(){e(ce,void 0,ae)},H(I),I},b=function(K){delete O[K]},y?H=function(te){C.nextTick(q(te))}:T&&T.now?H=function(te){T.now(q(te))}:L&&!g?(z=new L,G=z.port2,z.port1.onmessage=X,H=r(G.postMessage,G)):t.addEventListener&&n(t.postMessage)&&!t.importScripts&&N&&N.protocol!=="file:"&&!u(Y)?(H=Y,t.addEventListener("message",X,!1)):U in A("script")?H=function(te){f.appendChild(A("script"))[U]=function(){f.removeChild(this),j(te)}}:H=function(te){setTimeout(q(te),0)}),vq={set:_,clear:b},vq}var pq,DTe;function n6t(){if(DTe)return pq;DTe=1;var t=js(),e=JA(),r=Object.getOwnPropertyDescriptor;return pq=function(n){if(!e)return t[n];var o=r(t,n);return o&&o.value},pq}var gq,RTe;function rUe(){if(RTe)return gq;RTe=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(e){var r={item:e,next:null},n=this.tail;n?n.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e){var r=this.head=e.next;return r===null&&(this.tail=null),e.item}}},gq=t,gq}var mq,PTe;function i6t(){if(PTe)return mq;PTe=1;var t=EB();return mq=/ipad|iphone|ipod/i.test(t)&&typeof Pebble<"u",mq}var yq,OTe;function a6t(){if(OTe)return yq;OTe=1;var t=EB();return yq=/web0s(?!.*chrome)/i.test(t),yq}var wq,kTe;function o6t(){if(kTe)return wq;kTe=1;var t=js(),e=n6t(),r=mJ(),n=tUe().set,o=rUe(),u=eUe(),f=i6t(),h=a6t(),A=iF(),p=t.MutationObserver||t.WebKitMutationObserver,g=t.document,y=t.process,_=t.Promise,b=e("queueMicrotask"),C,T,B,L,P;if(!b){var I=new o,O=function(){var U,N;for(A&&(U=y.domain)&&U.exit();N=I.get();)try{N()}catch(H){throw I.head&&C(),H}U&&U.enter()};!u&&!A&&!h&&p&&g?(T=!0,B=g.createTextNode(""),new p(O).observe(B,{characterData:!0}),C=function(){B.data=T=!T}):!f&&_&&_.resolve?(L=_.resolve(void 0),L.constructor=_,P=r(L.then,L),C=function(){P(O)}):A?C=function(){y.nextTick(O)}:(n=r(n,t),C=function(){n(O)}),b=function(U){I.head||C(),I.add(U)}}return wq=b,wq}var bq,FTe;function s6t(){return FTe||(FTe=1,bq=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}}),bq}var _q,NTe;function yJ(){return NTe||(NTe=1,_q=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}),_q}var Sq,UTe;function IB(){if(UTe)return Sq;UTe=1;var t=js();return Sq=t.Promise,Sq}var xq,HTe;function LB(){if(HTe)return xq;HTe=1;var t=js(),e=IB(),r=bl(),n=$Ne(),o=hJ(),u=Cu(),f=KNe(),h=hp(),A=lJ(),p=e&&e.prototype,g=u("species"),y=!1,_=r(t.PromiseRejectionEvent),b=n("Promise",function(){var C=o(e),T=C!==String(e);if(!T&&A===66||h&&!(p.catch&&p.finally))return!0;if(!A||A<51||!/native code/.test(C)){var B=new e(function(I){I(1)}),L=function(I){I(function(){},function(){})},P=B.constructor={};if(P[g]=L,y=B.then(function(){})instanceof L,!y)return!0}return!T&&(f==="BROWSER"||f==="DENO")&&!_});return xq={CONSTRUCTOR:b,REJECTION_EVENT:_,SUBCLASSING:y},xq}var Cq={},QTe;function MB(){if(QTe)return Cq;QTe=1;var t=Rg(),e=TypeError,r=function(n){var o,u;this.promise=new n(function(f,h){if(o!==void 0||u!==void 0)throw new e("Bad Promise constructor");o=f,u=h}),this.resolve=t(o),this.reject=t(u)};return Cq.f=function(n){return new r(n)},Cq}var VTe;function l6t(){if(VTe)return Xxe;VTe=1;var t=yf(),e=hp(),r=iF(),n=js(),o=Xu(),u=Sw(),f=YNe(),h=aF(),A=Y4t(),p=Rg(),g=bl(),y=nh(),_=X4t(),b=XNe(),C=tUe().set,T=o6t(),B=s6t(),L=yJ(),P=rUe(),I=rF(),O=IB(),U=LB(),N=MB(),H="Promise",z=U.CONSTRUCTOR,G=U.REJECTION_EVENT,j=U.SUBCLASSING,q=I.getterFor(H),X=I.set,Y=O&&O.prototype,te=O,K=Y,ce=n.TypeError,ae=n.document,le=n.process,pe=N.f,ie=pe,he=!!(ae&&ae.createEvent&&n.dispatchEvent),re="unhandledrejection",oe="rejectionhandled",ye=0,_e=1,Ce=2,ne=1,xe=2,De,ze,Ye,Ne,yt=function(Be){var $e;return y(Be)&&g($e=Be.then)?$e:!1},Ue=function(Be,$e){var nt=$e.value,ft=$e.state===_e,Mt=ft?Be.ok:Be.fail,Rt=Be.resolve,Bt=Be.reject,It=Be.domain,qt,fr,lr;try{Mt?(ft||($e.rejection===xe&&Me($e),$e.rejection=ne),Mt===!0?qt=nt:(It&&It.enter(),qt=Mt(nt),It&&(It.exit(),lr=!0)),qt===Be.promise?Bt(new ce("Promise-chain cycle")):(fr=yt(qt))?o(fr,qt,Rt,Bt):Rt(qt)):Bt(nt)}catch(_t){It&&!lr&&It.exit(),Bt(_t)}},ue=function(Be,$e){Be.notified||(Be.notified=!0,T(function(){for(var nt=Be.reactions,ft;ft=nt.get();)Ue(ft,Be);Be.notified=!1,$e&&!Be.rejection&&qe(Be)}))},Qe=function(Be,$e,nt){var ft,Mt;he?(ft=ae.createEvent("Event"),ft.promise=$e,ft.reason=nt,ft.initEvent(Be,!1,!0),n.dispatchEvent(ft)):ft={promise:$e,reason:nt},!G&&(Mt=n["on"+Be])?Mt(ft):Be===re&&B("Unhandled promise rejection",nt)},qe=function(Be){o(C,n,function(){var $e=Be.facade,nt=Be.value,ft=Re(Be),Mt;if(ft&&(Mt=L(function(){r?le.emit("unhandledRejection",nt,$e):Qe(re,$e,nt)}),Be.rejection=r||Re(Be)?xe:ne,Mt.error))throw Mt.value})},Re=function(Be){return Be.rejection!==ne&&!Be.parent},Me=function(Be){o(C,n,function(){var $e=Be.facade;r?le.emit("rejectionHandled",$e):Qe(oe,$e,Be.value)})},Ge=function(Be,$e,nt){return function(ft){Be($e,ft,nt)}},Pe=function(Be,$e,nt){Be.done||(Be.done=!0,nt&&(Be=nt),Be.value=$e,Be.state=Ce,ue(Be,!0))},ke=function(Be,$e,nt){if(!Be.done){Be.done=!0,nt&&(Be=nt);try{if(Be.facade===$e)throw new ce("Promise can't be resolved itself");var ft=yt($e);ft?T(function(){var Mt={done:!1};try{o(ft,$e,Ge(ke,Mt,Be),Ge(Pe,Mt,Be))}catch(Rt){Pe(Mt,Rt,Be)}}):(Be.value=$e,Be.state=_e,ue(Be,!1))}catch(Mt){Pe({done:!1},Mt,Be)}}};if(z&&(te=function($e){_(this,K),p($e),o(De,this);var nt=q(this);try{$e(Ge(ke,nt),Ge(Pe,nt))}catch(ft){Pe(nt,ft)}},K=te.prototype,De=function($e){X(this,{type:H,done:!1,notified:!1,parent:!1,reactions:new P,rejection:!1,state:ye,value:null})},De.prototype=u(K,"then",function($e,nt){var ft=q(this),Mt=pe(b(this,te));return ft.parent=!0,Mt.ok=g($e)?$e:!0,Mt.fail=g(nt)&&nt,Mt.domain=r?le.domain:void 0,ft.state===ye?ft.reactions.add(Mt):T(function(){Ue(Mt,ft)}),Mt.promise}),ze=function(){var Be=new De,$e=q(Be);this.promise=Be,this.resolve=Ge(ke,$e),this.reject=Ge(Pe,$e)},N.f=pe=function(Be){return Be===te||Be===Ye?new ze(Be):ie(Be)},!e&&g(O)&&Y!==Object.prototype)){Ne=Y.then,j||u(Y,"then",function($e,nt){var ft=this;return new te(function(Mt,Rt){o(Ne,ft,Mt,Rt)}).then($e,nt)},{unsafe:!0});try{delete Y.constructor}catch{}f&&f(Y,K)}return t({global:!0,constructor:!0,wrap:!0,forced:z},{Promise:te}),h(te,H,!1,!0),A(H),Xxe}var zTe={},Tq,GTe;function DB(){return GTe||(GTe=1,Tq={}),Tq}var Eq,jTe;function u6t(){if(jTe)return Eq;jTe=1;var t=Cu(),e=DB(),r=t("iterator"),n=Array.prototype;return Eq=function(o){return o!==void 0&&(e.Array===o||n[r]===o)},Eq}var Bq,qTe;function nUe(){if(qTe)return Bq;qTe=1;var t=gJ(),e=Ax(),r=Kk(),n=DB(),o=Cu(),u=o("iterator");return Bq=function(f){if(!r(f))return e(f,u)||e(f,"@@iterator")||n[t(f)]},Bq}var Iq,WTe;function c6t(){if(WTe)return Iq;WTe=1;var t=Xu(),e=Rg(),r=mf(),n=Xk(),o=nUe(),u=TypeError;return Iq=function(f,h){var A=arguments.length<2?o(f):h;if(e(A))return r(t(A,f));throw new u(n(f)+" is not iterable")},Iq}var Lq,$Te;function f6t(){if($Te)return Lq;$Te=1;var t=Xu(),e=mf(),r=Ax();return Lq=function(n,o,u){var f,h;e(n);try{if(f=r(n,"return"),!f){if(o==="throw")throw u;return u}f=t(f,n)}catch(A){h=!0,f=A}if(o==="throw")throw u;if(h)throw f;return e(f),u},Lq}var Mq,KTe;function iUe(){if(KTe)return Mq;KTe=1;var t=mJ(),e=Xu(),r=mf(),n=Xk(),o=u6t(),u=vJ(),f=Yk(),h=c6t(),A=nUe(),p=f6t(),g=TypeError,y=function(b,C){this.stopped=b,this.result=C},_=y.prototype;return Mq=function(b,C,T){var B=T&&T.that,L=!!(T&&T.AS_ENTRIES),P=!!(T&&T.IS_RECORD),I=!!(T&&T.IS_ITERATOR),O=!!(T&&T.INTERRUPTED),U=t(C,B),N,H,z,G,j,q,X,Y=function(K){return N&&p(N,"normal",K),new y(!0,K)},te=function(K){return L?(r(K),O?U(K[0],K[1],Y):U(K[0],K[1])):O?U(K,Y):U(K)};if(P)N=b.iterator;else if(I)N=b;else{if(H=A(b),!H)throw new g(n(b)+" is not iterable");if(o(H)){for(z=0,G=u(b);G>z;z++)if(j=te(b[z]),j&&f(_,j))return j;return new y(!1)}N=h(b,H)}for(q=P?b.next:N.next;!(X=e(q,N)).done;){try{j=te(X.value)}catch(K){p(N,"throw",K)}if(typeof j=="object"&&j&&f(_,j))return j}return new y(!1)},Mq}var Dq,YTe;function h6t(){if(YTe)return Dq;YTe=1;var t=Cu(),e=t("iterator"),r=!1;try{var n=0,o={next:function(){return{done:!!n++}},return:function(){r=!0}};o[e]=function(){return this},Array.from(o,function(){throw 2})}catch{}return Dq=function(u,f){try{if(!f&&!r)return!1}catch{return!1}var h=!1;try{var A={};A[e]=function(){return{next:function(){return{done:h=!0}}}},u(A)}catch{}return h},Dq}var Rq,XTe;function aUe(){if(XTe)return Rq;XTe=1;var t=IB(),e=h6t(),r=LB().CONSTRUCTOR;return Rq=r||!e(function(n){t.all(n).then(void 0,function(){})}),Rq}var ZTe;function d6t(){if(ZTe)return zTe;ZTe=1;var t=yf(),e=Xu(),r=Rg(),n=MB(),o=yJ(),u=iUe(),f=aUe();return t({target:"Promise",stat:!0,forced:f},{all:function(A){var p=this,g=n.f(p),y=g.resolve,_=g.reject,b=o(function(){var C=r(p.resolve),T=[],B=0,L=1;u(A,function(P){var I=B++,O=!1;L++,e(C,p,P).then(function(U){O||(O=!0,T[I]=U,--L||y(T))},_)}),--L||y(T)});return b.error&&_(b.value),g.promise}}),zTe}var JTe={},eEe;function A6t(){if(eEe)return JTe;eEe=1;var t=yf(),e=hp(),r=LB().CONSTRUCTOR,n=IB(),o=_w(),u=bl(),f=Sw(),h=n&&n.prototype;if(t({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(p){return this.then(void 0,p)}}),!e&&u(n)){var A=o("Promise").prototype.catch;h.catch!==A&&f(h,"catch",A,{unsafe:!0})}return JTe}var tEe={},rEe;function v6t(){if(rEe)return tEe;rEe=1;var t=yf(),e=Xu(),r=Rg(),n=MB(),o=yJ(),u=iUe(),f=aUe();return t({target:"Promise",stat:!0,forced:f},{race:function(A){var p=this,g=n.f(p),y=g.reject,_=o(function(){var b=r(p.resolve);u(A,function(C){e(b,p,C).then(g.resolve,y)})});return _.error&&y(_.value),g.promise}}),tEe}var nEe={},iEe;function p6t(){if(iEe)return nEe;iEe=1;var t=yf(),e=MB(),r=LB().CONSTRUCTOR;return t({target:"Promise",stat:!0,forced:r},{reject:function(o){var u=e.f(this),f=u.reject;return f(o),u.promise}}),nEe}var aEe={},Pq,oEe;function g6t(){if(oEe)return Pq;oEe=1;var t=mf(),e=nh(),r=MB();return Pq=function(n,o){if(t(n),e(o)&&o.constructor===n)return o;var u=r.f(n),f=u.resolve;return f(o),u.promise},Pq}var sEe;function m6t(){if(sEe)return aEe;sEe=1;var t=yf(),e=_w(),r=hp(),n=IB(),o=LB().CONSTRUCTOR,u=g6t(),f=e("Promise"),h=r&&!o;return t({target:"Promise",stat:!0,forced:r||o},{resolve:function(p){return u(h&&this===f?n:this,p)}}),aEe}var lEe;function y6t(){return lEe||(lEe=1,l6t(),d6t(),A6t(),v6t(),p6t(),m6t()),Yxe}y6t();function uEe(t,e,r,n,o,u,f){try{var h=t[u](f),A=h.value}catch(p){return void r(p)}h.done?e(A):Promise.resolve(A).then(n,o)}function Cg(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var u=t.apply(e,r);function f(A){uEe(u,n,o,f,h,"next",A)}function h(A){uEe(u,n,o,f,h,"throw",A)}f(void 0)})}}var cEe={},fEe={},Oq,hEe;function dp(){if(hEe)return Oq;hEe=1;var t=gJ(),e=String;return Oq=function(r){if(t(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},Oq}var kq,dEe;function oUe(){if(dEe)return kq;dEe=1;var t=mf();return kq=function(){var e=t(this),r="";return e.hasIndices&&(r+="d"),e.global&&(r+="g"),e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.dotAll&&(r+="s"),e.unicode&&(r+="u"),e.unicodeSets&&(r+="v"),e.sticky&&(r+="y"),r},kq}var Fq,AEe;function sUe(){if(AEe)return Fq;AEe=1;var t=yl(),e=js(),r=e.RegExp,n=t(function(){var f=r("a","y");return f.lastIndex=2,f.exec("abcd")!==null}),o=n||t(function(){return!r("a","y").sticky}),u=n||t(function(){var f=r("^r","gy");return f.lastIndex=2,f.exec("str")!==null});return Fq={BROKEN_CARET:u,MISSED_STICKY:o,UNSUPPORTED_Y:n},Fq}var Nq={},Uq,vEe;function w6t(){if(vEe)return Uq;vEe=1;var t=WNe(),e=pJ();return Uq=Object.keys||function(n){return t(n,e)},Uq}var pEe;function b6t(){if(pEe)return Nq;pEe=1;var t=JA(),e=GNe(),r=My(),n=mf(),o=TB(),u=w6t();return Nq.f=t&&!e?Object.defineProperties:function(h,A){n(h);for(var p=o(A),g=u(A),y=g.length,_=0,b;y>_;)r.f(h,b=g[_++],p[b]);return h},Nq}var Hq,gEe;function sF(){if(gEe)return Hq;gEe=1;var t=mf(),e=b6t(),r=pJ(),n=AJ(),o=JNe(),u=Jk(),f=dJ(),h=">",A="<",p="prototype",g="script",y=f("IE_PROTO"),_=function(){},b=function(P){return A+g+h+P+A+"/"+g+h},C=function(P){P.write(b("")),P.close();var I=P.parentWindow.Object;return P=null,I},T=function(){var P=u("iframe"),I="java"+g+":",O;return P.style.display="none",o.appendChild(P),P.src=String(I),O=P.contentWindow.document,O.open(),O.write(b("document.F=Object")),O.close(),O.F},B,L=function(){try{B=new ActiveXObject("htmlfile")}catch{}L=typeof document<"u"?document.domain&&B?C(B):T():C(B);for(var P=r.length;P--;)delete L[p][r[P]];return L()};return n[y]=!0,Hq=Object.create||function(I,O){var U;return I!==null?(_[p]=t(I),U=new _,_[p]=null,U[y]=I):U=L(),O===void 0?U:e.f(U,O)},Hq}var Qq,mEe;function _6t(){if(mEe)return Qq;mEe=1;var t=yl(),e=js(),r=e.RegExp;return Qq=t(function(){var n=r(".","s");return!(n.dotAll&&n.test(`
`)&&n.flags==="s")}),Qq}var Vq,yEe;function S6t(){if(yEe)return Vq;yEe=1;var t=yl(),e=js(),r=e.RegExp;return Vq=t(function(){var n=r("(?<a>b)","g");return n.exec("b").groups.a!=="b"||"b".replace(n,"$<a>c")!=="bc"}),Vq}var zq,wEe;function wJ(){if(wEe)return zq;wEe=1;var t=Xu(),e=wl(),r=dp(),n=oUe(),o=sUe(),u=fJ(),f=sF(),h=rF().get,A=_6t(),p=S6t(),g=u("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,_=y,b=e("".charAt),C=e("".indexOf),T=e("".replace),B=e("".slice),L=function(){var U=/a/,N=/b*/g;return t(y,U,"a"),t(y,N,"a"),U.lastIndex!==0||N.lastIndex!==0}(),P=o.BROKEN_CARET,I=/()??/.exec("")[1]!==void 0,O=L||I||P||A||p;return O&&(_=function(N){var H=this,z=h(H),G=r(N),j=z.raw,q,X,Y,te,K,ce,ae;if(j)return j.lastIndex=H.lastIndex,q=t(_,j,G),H.lastIndex=j.lastIndex,q;var le=z.groups,pe=P&&H.sticky,ie=t(n,H),he=H.source,re=0,oe=G;if(pe&&(ie=T(ie,"y",""),C(ie,"g")===-1&&(ie+="g"),oe=B(G,H.lastIndex),H.lastIndex>0&&(!H.multiline||H.multiline&&b(G,H.lastIndex-1)!==`
`)&&(he="(?: "+he+")",oe=" "+oe,re++),X=new RegExp("^(?:"+he+")",ie)),I&&(X=new RegExp("^"+he+"$(?!\\s)",ie)),L&&(Y=H.lastIndex),te=t(y,pe?X:H,oe),pe?te?(te.input=B(te.input,re),te[0]=B(te[0],re),te.index=H.lastIndex,H.lastIndex+=te[0].length):H.lastIndex=0:L&&te&&(H.lastIndex=H.global?te.index+te[0].length:Y),I&&te&&te.length>1&&t(g,te[0],X,function(){for(K=1;K<arguments.length-2;K++)arguments[K]===void 0&&(te[K]=void 0)}),te&&le)for(te.groups=ce=f(null),K=0;K<le.length;K++)ae=le[K],ce[ae[0]]=te[ae[1]];return te}),zq=_,zq}var bEe;function x6t(){if(bEe)return fEe;bEe=1;var t=yf(),e=wJ();return t({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e}),fEe}var Gq,_Ee;function bJ(){if(_Ee)return Gq;_Ee=1,x6t();var t=Xu(),e=Sw(),r=wJ(),n=yl(),o=Cu(),u=BB(),f=o("species"),h=RegExp.prototype;return Gq=function(A,p,g,y){var _=o(A),b=!n(function(){var L={};return L[_]=function(){return 7},""[A](L)!==7}),C=b&&!n(function(){var L=!1,P=/a/;return A==="split"&&(P={},P.constructor={},P.constructor[f]=function(){return P},P.flags="",P[_]=/./[_]),P.exec=function(){return L=!0,null},P[_](""),!L});if(!b||!C||g){var T=/./[_],B=p(_,""[A],function(L,P,I,O,U){var N=P.exec;return N===r||N===h.exec?b&&!U?{done:!0,value:t(T,P,I,O)}:{done:!0,value:t(L,I,P,O)}:{done:!1}});e(String.prototype,A,B[0]),e(h,_,B[1])}y&&u(h[_],"sham",!0)},Gq}var jq,SEe;function C6t(){if(SEe)return jq;SEe=1;var t=wl(),e=nF(),r=dp(),n=ev(),o=t("".charAt),u=t("".charCodeAt),f=t("".slice),h=function(A){return function(p,g){var y=r(n(p)),_=e(g),b=y.length,C,T;return _<0||_>=b?A?"":void 0:(C=u(y,_),C<55296||C>56319||_+1===b||(T=u(y,_+1))<56320||T>57343?A?o(y,_):C:A?f(y,_,_+2):(C-55296<<10)+(T-56320)+65536)}};return jq={codeAt:h(!1),charAt:h(!0)},jq}var qq,xEe;function _J(){if(xEe)return qq;xEe=1;var t=C6t().charAt;return qq=function(e,r,n){return r+(n?t(e,r).length:1)},qq}var Wq,CEe;function SJ(){if(CEe)return Wq;CEe=1;var t=Xu(),e=mf(),r=bl(),n=bw(),o=wJ(),u=TypeError;return Wq=function(f,h){var A=f.exec;if(r(A)){var p=t(A,f,h);return p!==null&&e(p),p}if(n(f)==="RegExp")return t(o,f,h);throw new u("RegExp#exec called on incompatible receiver")},Wq}var TEe;function T6t(){if(TEe)return cEe;TEe=1;var t=Xu(),e=bJ(),r=mf(),n=nh(),o=vx(),u=dp(),f=ev(),h=Ax(),A=_J(),p=SJ();return e("match",function(g,y,_){return[function(C){var T=f(this),B=n(C)?h(C,g):void 0;return B?t(B,C,T):new RegExp(C)[g](u(T))},function(b){var C=r(this),T=u(b),B=_(y,C,T);if(B.done)return B.value;if(!C.global)return p(C,T);var L=C.unicode;C.lastIndex=0;for(var P=[],I=0,O;(O=p(C,T))!==null;){var U=u(O[0]);P[I]=U,U===""&&(C.lastIndex=A(T,o(C.lastIndex),L)),I++}return I===0?null:P}]}),cEe}T6t();var EEe={},$q,BEe;function E6t(){if(BEe)return $q;BEe=1;var t=wl(),e=Zk(),r=Math.floor,n=t("".charAt),o=t("".replace),u=t("".slice),f=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,h=/\$([$&'`]|\d{1,2})/g;return $q=function(A,p,g,y,_,b){var C=g+A.length,T=y.length,B=h;return _!==void 0&&(_=e(_),B=f),o(b,B,function(L,P){var I;switch(n(P,0)){case"$":return"$";case"&":return A;case"`":return u(p,0,g);case"'":return u(p,C);case"<":I=_[u(P,1,-1)];break;default:var O=+P;if(O===0)return L;if(O>T){var U=r(O/10);return U===0?L:U<=T?y[U-1]===void 0?n(P,1):y[U-1]+n(P,1):L}I=y[O-1]}return I===void 0?"":I})},$q}var IEe;function B6t(){if(IEe)return EEe;IEe=1;var t=ZNe(),e=Xu(),r=wl(),n=bJ(),o=yl(),u=mf(),f=bl(),h=nh(),A=nF(),p=vx(),g=dp(),y=ev(),_=_J(),b=Ax(),C=E6t(),T=SJ(),B=Cu(),L=B("replace"),P=Math.max,I=Math.min,O=r([].concat),U=r([].push),N=r("".indexOf),H=r("".slice),z=function(X){return X===void 0?X:String(X)},G=function(){return"a".replace(/./,"$0")==="$0"}(),j=function(){return/./[L]?/./[L]("a","$0")==="":!1}(),q=!o(function(){var X=/./;return X.exec=function(){var Y=[];return Y.groups={a:"7"},Y},"".replace(X,"$<a>")!=="7"});return n("replace",function(X,Y,te){var K=j?"$":"$0";return[function(ae,le){var pe=y(this),ie=h(ae)?b(ae,L):void 0;return ie?e(ie,ae,pe,le):e(Y,g(pe),ae,le)},function(ce,ae){var le=u(this),pe=g(ce);if(typeof ae=="string"&&N(ae,K)===-1&&N(ae,"$<")===-1){var ie=te(Y,le,pe,ae);if(ie.done)return ie.value}var he=f(ae);he||(ae=g(ae));var re=le.global,oe;re&&(oe=le.unicode,le.lastIndex=0);for(var ye=[],_e;_e=T(le,pe),!(_e===null||(U(ye,_e),!re));){var Ce=g(_e[0]);Ce===""&&(le.lastIndex=_(pe,p(le.lastIndex),oe))}for(var ne="",xe=0,De=0;De<ye.length;De++){_e=ye[De];for(var ze=g(_e[0]),Ye=P(I(A(_e.index),pe.length),0),Ne=[],yt,Ue=1;Ue<_e.length;Ue++)U(Ne,z(_e[Ue]));var ue=_e.groups;if(he){var Qe=O([ze],Ne,Ye,pe);ue!==void 0&&U(Qe,ue),yt=g(t(ae,void 0,Qe))}else yt=C(ze,pe,Ye,Ne,ue,ae);Ye>=xe&&(ne+=H(pe,xe,Ye)+yt,xe=Ye+ze.length)}return ne+H(pe,xe)}]},!q||!G||j),EEe}B6t();var LEe={},Kq,MEe;function I6t(){if(MEe)return Kq;MEe=1;var t=nh(),e=bw(),r=Cu(),n=r("match");return Kq=function(o){var u;return t(o)&&((u=o[n])!==void 0?!!u:e(o)==="RegExp")},Kq}var Yq,DEe;function xJ(){if(DEe)return Yq;DEe=1;var t=I6t(),e=TypeError;return Yq=function(r){if(t(r))throw new e("The method doesn't accept regular expressions");return r},Yq}var Xq,REe;function CJ(){if(REe)return Xq;REe=1;var t=Cu(),e=t("match");return Xq=function(r){var n=/./;try{"/./"[r](n)}catch{try{return n[e]=!1,"/./"[r](n)}catch{}}return!1},Xq}var PEe;function L6t(){if(PEe)return LEe;PEe=1;var t=yf(),e=oF(),r=eF().f,n=vx(),o=dp(),u=xJ(),f=ev(),h=CJ(),A=hp(),p=e("".slice),g=Math.min,y=h("startsWith"),_=!A&&!y&&!!function(){var b=r(String.prototype,"startsWith");return b&&!b.writable}();return t({target:"String",proto:!0,forced:!_&&!y},{startsWith:function(C){var T=o(f(this));u(C);var B=n(g(arguments.length>1?arguments[1]:void 0,T.length)),L=o(C);return p(T,B,B+L.length)===L}}),LEe}L6t();var Zq,OEe;function M6t(){if(OEe)return Zq;OEe=1;var t=Cu(),e=sF(),r=My().f,n=t("unscopables"),o=Array.prototype;return o[n]===void 0&&r(o,n,{configurable:!0,value:e(null)}),Zq=function(u){o[n][u]=!0},Zq}var Jq,kEe;function D6t(){if(kEe)return Jq;kEe=1;var t=yl();return Jq=!t(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Jq}var eW,FEe;function lUe(){if(FEe)return eW;FEe=1;var t=tv(),e=bl(),r=Zk(),n=dJ(),o=D6t(),u=n("IE_PROTO"),f=Object,h=f.prototype;return eW=o?f.getPrototypeOf:function(A){var p=r(A);if(t(p,u))return p[u];var g=p.constructor;return e(g)&&p instanceof g?g.prototype:p instanceof f?h:null},eW}var tW,NEe;function uUe(){if(NEe)return tW;NEe=1;var t=yl(),e=bl(),r=nh(),n=sF(),o=lUe(),u=Sw(),f=Cu(),h=hp(),A=f("iterator"),p=!1,g,y,_;[].keys&&(_=[].keys(),"next"in _?(y=o(o(_)),y!==Object.prototype&&(g=y)):p=!0);var b=!r(g)||t(function(){var C={};return g[A].call(C)!==C});return b?g={}:h&&(g=n(g)),e(g[A])||u(g,A,function(){return this}),tW={IteratorPrototype:g,BUGGY_SAFARI_ITERATORS:p},tW}var rW,UEe;function R6t(){if(UEe)return rW;UEe=1;var t=uUe().IteratorPrototype,e=sF(),r=sJ(),n=aF(),o=DB(),u=function(){return this};return rW=function(f,h,A,p){var g=h+" Iterator";return f.prototype=e(t,{next:r(+!p,A)}),n(f,g,!1,!0),o[g]=u,f},rW}var nW,HEe;function P6t(){if(HEe)return nW;HEe=1;var t=yf(),e=Xu(),r=hp(),n=tF(),o=bl(),u=R6t(),f=lUe(),h=YNe(),A=aF(),p=BB(),g=Sw(),y=Cu(),_=DB(),b=uUe(),C=n.PROPER,T=n.CONFIGURABLE,B=b.IteratorPrototype,L=b.BUGGY_SAFARI_ITERATORS,P=y("iterator"),I="keys",O="values",U="entries",N=function(){return this};return nW=function(H,z,G,j,q,X,Y){u(G,z,j);var te=function(ye){if(ye===q&&pe)return pe;if(!L&&ye&&ye in ae)return ae[ye];switch(ye){case I:return function(){return new G(this,ye)};case O:return function(){return new G(this,ye)};case U:return function(){return new G(this,ye)}}return function(){return new G(this)}},K=z+" Iterator",ce=!1,ae=H.prototype,le=ae[P]||ae["@@iterator"]||q&&ae[q],pe=!L&&le||te(q),ie=z==="Array"&&ae.entries||le,he,re,oe;if(ie&&(he=f(ie.call(new H)),he!==Object.prototype&&he.next&&(!r&&f(he)!==B&&(h?h(he,B):o(he[P])||g(he,P,N)),A(he,K,!0,!0),r&&(_[K]=N))),C&&q===O&&le&&le.name!==O&&(!r&&T?p(ae,"name",O):(ce=!0,pe=function(){return e(le,this)})),q)if(re={values:te(O),keys:X?pe:te(I),entries:te(U)},Y)for(oe in re)(L||ce||!(oe in ae))&&g(ae,oe,re[oe]);else t({target:z,proto:!0,forced:L||ce},re);return(!r||Y)&&ae[P]!==pe&&g(ae,P,pe,{name:q}),_[z]=pe,re},nW}var iW,QEe;function O6t(){return QEe||(QEe=1,iW=function(t,e){return{value:t,done:e}}),iW}var aW,VEe;function cUe(){if(VEe)return aW;VEe=1;var t=TB(),e=M6t(),r=DB(),n=rF(),o=My().f,u=P6t(),f=O6t(),h=hp(),A=JA(),p="Array Iterator",g=n.set,y=n.getterFor(p);aW=u(Array,"Array",function(b,C){g(this,{type:p,target:t(b),index:0,kind:C})},function(){var b=y(this),C=b.target,T=b.index++;if(!C||T>=C.length)return b.target=null,f(void 0,!0);switch(b.kind){case"keys":return f(T,!1);case"values":return f(C[T],!1)}return f([T,C[T]],!1)},"values");var _=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!h&&A&&_.name!=="values")try{o(_,"name",{value:"values"})}catch{}return aW}cUe();var zEe={},oW,GEe;function k6t(){return GEe||(GEe=1,oW={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),oW}var sW,jEe;function F6t(){if(jEe)return sW;jEe=1;var t=Jk(),e=t("span").classList,r=e&&e.constructor&&e.constructor.prototype;return sW=r===Object.prototype?void 0:r,sW}var qEe;function N6t(){if(qEe)return zEe;qEe=1;var t=js(),e=k6t(),r=F6t(),n=cUe(),o=BB(),u=aF(),f=Cu(),h=f("iterator"),A=n.values,p=function(y,_){if(y){if(y[h]!==A)try{o(y,h,A)}catch{y[h]=A}if(u(y,_,!0),e[_]){for(var b in n)if(y[b]!==n[b])try{o(y,b,n[b])}catch{y[b]=n[b]}}}};for(var g in e)p(t[g]&&t[g].prototype,g);return p(r,"DOMTokenList"),zEe}N6t();var WEe={},lW,$Ee;function U6t(){if($Ee)return lW;$Ee=1;var t=Rg(),e=Zk(),r=FNe(),n=vJ(),o=TypeError,u="Reduce of empty array with no initial value",f=function(h){return function(A,p,g,y){var _=e(A),b=r(_),C=n(_);if(t(p),C===0&&g<2)throw new o(u);var T=h?C-1:0,B=h?-1:1;if(g<2)for(;;){if(T in b){y=b[T],T+=B;break}if(T+=B,h?T<0:C<=T)throw new o(u)}for(;h?T>=0:C>T;T+=B)T in b&&(y=p(y,b[T],T,_));return y}};return lW={left:f(!1),right:f(!0)},lW}var uW,KEe;function fUe(){if(KEe)return uW;KEe=1;var t=yl();return uW=function(e,r){var n=[][e];return!!n&&t(function(){n.call(null,r||function(){return 1},1)})},uW}var YEe;function H6t(){if(YEe)return WEe;YEe=1;var t=yf(),e=U6t().left,r=fUe(),n=lJ(),o=iF(),u=!o&&n>79&&n<83,f=u||!r("reduce");return t({target:"Array",proto:!0,forced:f},{reduce:function(A){var p=arguments.length;return e(this,A,p,p>1?arguments[1]:void 0)}}),WEe}H6t();var XEe={},ZEe;function Q6t(){if(ZEe)return XEe;ZEe=1;var t=yf(),e=oF(),r=eF().f,n=vx(),o=dp(),u=xJ(),f=ev(),h=CJ(),A=hp(),p=e("".slice),g=Math.min,y=h("endsWith"),_=!A&&!y&&!!function(){var b=r(String.prototype,"endsWith");return b&&!b.writable}();return t({target:"String",proto:!0,forced:!_&&!y},{endsWith:function(C){var T=o(f(this));u(C);var B=arguments.length>1?arguments[1]:void 0,L=T.length,P=B===void 0?L:g(n(B),L),I=o(C);return p(T,P-I.length,P)===I}}),XEe}Q6t();var JEe={},e2e;function V6t(){if(e2e)return JEe;e2e=1;var t=Xu(),e=wl(),r=bJ(),n=mf(),o=nh(),u=ev(),f=XNe(),h=_J(),A=vx(),p=dp(),g=Ax(),y=SJ(),_=sUe(),b=yl(),C=_.UNSUPPORTED_Y,T=4294967295,B=Math.min,L=e([].push),P=e("".slice),I=!b(function(){var U=/(?:)/,N=U.exec;U.exec=function(){return N.apply(this,arguments)};var H="ab".split(U);return H.length!==2||H[0]!=="a"||H[1]!=="b"}),O="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;return r("split",function(U,N,H){var z="0".split(void 0,0).length?function(G,j){return G===void 0&&j===0?[]:t(N,this,G,j)}:N;return[function(j,q){var X=u(this),Y=o(j)?g(j,U):void 0;return Y?t(Y,j,X,q):t(z,p(X),j,q)},function(G,j){var q=n(this),X=p(G);if(!O){var Y=H(z,q,X,j,z!==N);if(Y.done)return Y.value}var te=f(q,RegExp),K=q.unicode,ce=(q.ignoreCase?"i":"")+(q.multiline?"m":"")+(q.unicode?"u":"")+(C?"g":"y"),ae=new te(C?"^(?:"+q.source+")":q,ce),le=j===void 0?T:j>>>0;if(le===0)return[];if(X.length===0)return y(ae,X)===null?[X]:[];for(var pe=0,ie=0,he=[];ie<X.length;){ae.lastIndex=C?0:ie;var re=y(ae,C?P(X,ie):X),oe;if(re===null||(oe=B(A(ae.lastIndex+(C?ie:0)),X.length))===pe)ie=h(X,ie,K);else{if(L(he,P(X,pe,ie)),he.length===le)return he;for(var ye=1;ye<=re.length-1;ye++)if(L(he,re[ye]),he.length===le)return he;ie=pe=oe}}return L(he,P(X,pe)),he}]},O||!I,C),JEe}V6t();var $T={exports:{}},y1={exports:{}},z6t=y1.exports,t2e;function G6t(){if(t2e)return y1.exports;t2e=1;var t={env:{NODE_ENV:"production"}};return(function(){var e,r,n,o,u,f;typeof performance<"u"&&performance!==null&&performance.now?y1.exports=function(){return performance.now()}:typeof t<"u"&&t!==null&&t.hrtime?(y1.exports=function(){return(e()-u)/1e6},r=t.hrtime,e=function(){var h;return h=r(),h[0]*1e9+h[1]},o=e(),f=t.uptime()*1e9,u=o-f):Date.now?(y1.exports=function(){return Date.now()-n},n=Date.now()):(y1.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(z6t),y1.exports}var r2e;function j6t(){if(r2e)return $T.exports;r2e=1;for(var t=G6t(),e=typeof window>"u"?Gf:window,r=["moz","webkit"],n="AnimationFrame",o=e["request"+n],u=e["cancel"+n]||e["cancelRequest"+n],f=0;!o&&f<r.length;f++)o=e[r[f]+"Request"+n],u=e[r[f]+"Cancel"+n]||e[r[f]+"CancelRequest"+n];if(!o||!u){var h=0,A=0,p=[],g=1e3/60;o=function(y){if(p.length===0){var _=t(),b=Math.max(0,g-(_-h));h=b+_,setTimeout(function(){var C=p.slice(0);p.length=0;for(var T=0;T<C.length;T++)if(!C[T].cancelled)try{C[T].callback(h)}catch(B){setTimeout(function(){throw B},0)}},Math.round(b))}return p.push({handle:++A,callback:y,cancelled:!1}),A},u=function(y){for(var _=0;_<p.length;_++)p[_].handle===y&&(p[_].cancelled=!0)}}return $T.exports=function(y){return o.call(e,y)},$T.exports.cancel=function(){u.apply(e,arguments)},$T.exports.polyfill=function(y){y||(y=e),y.requestAnimationFrame=o,y.cancelAnimationFrame=u},$T.exports}var q6t=j6t();const cW=Dn(q6t);var n2e={},fW,i2e;function hUe(){return i2e||(i2e=1,fW=`
\v\f\r \u2028\u2029\uFEFF`),fW}var hW,a2e;function W6t(){if(a2e)return hW;a2e=1;var t=wl(),e=ev(),r=dp(),n=hUe(),o=t("".replace),u=RegExp("^["+n+"]+"),f=RegExp("(^|[^"+n+"])["+n+"]+$"),h=function(A){return function(p){var g=r(e(p));return A&1&&(g=o(g,u,"")),A&2&&(g=o(g,f,"$1")),g}};return hW={start:h(1),end:h(2),trim:h(3)},hW}var dW,o2e;function $6t(){if(o2e)return dW;o2e=1;var t=tF().PROPER,e=yl(),r=hUe(),n="
";return dW=function(o){return e(function(){return!!r[o]()||n[o]()!==n||t&&r[o].name!==o})},dW}var s2e;function K6t(){if(s2e)return n2e;s2e=1;var t=yf(),e=W6t().trim,r=$6t();return t({target:"String",proto:!0,forced:r("trim")},{trim:function(){return e(this)}}),n2e}K6t();var AW,l2e;function Y6t(){return l2e||(l2e=1,AW=function(t){this.ok=!1,this.alpha=1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(A){return[parseInt(A[1]),parseInt(A[2]),parseInt(A[3]),parseFloat(A[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(A){return[parseInt(A[1]),parseInt(A[2]),parseInt(A[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(A){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(A){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16)]}}],n=0;n<r.length;n++){var o=r[n].re,u=r[n].process,f=o.exec(t);if(f){var h=u(f);this.r=h[0],this.g=h[1],this.b=h[2],h.length>3&&(this.alpha=h[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var A=this.r.toString(16),p=this.g.toString(16),g=this.b.toString(16);return A.length==1&&(A="0"+A),p.length==1&&(p="0"+p),g.length==1&&(g="0"+g),"#"+A+p+g},this.getHelpXML=function(){for(var A=new Array,p=0;p<r.length;p++)for(var g=r[p].example,y=0;y<g.length;y++)A[A.length]=g[y];for(var _ in e)A[A.length]=_;var b=document.createElement("ul");b.setAttribute("id","rgbcolor-examples");for(var p=0;p<A.length;p++)try{var C=document.createElement("li"),T=new RGBColor(A[p]),B=document.createElement("div");B.style.cssText="margin: 3px; border: 1px solid black; background:"+T.toHex()+"; color:"+T.toHex(),B.appendChild(document.createTextNode("test"));var L=document.createTextNode(" "+A[p]+" -> "+T.toRGB()+" -> "+T.toHex());C.appendChild(B),C.appendChild(L),b.appendChild(C)}catch{}return b}}),AW}var X6t=Y6t();const fY=Dn(X6t);var u2e={},c2e;function Z6t(){if(c2e)return u2e;c2e=1;var t=yf(),e=oF(),r=qNe().indexOf,n=fUe(),o=e([].indexOf),u=!!o&&1/o([1],1,-0)<0,f=u||!n("indexOf");return t({target:"Array",proto:!0,forced:f},{indexOf:function(A){var p=arguments.length>1?arguments[1]:void 0;return u?o(this,A,p)||0:r(this,A,p)}}),u2e}Z6t();var f2e={},h2e;function J6t(){if(h2e)return f2e;h2e=1;var t=yf(),e=wl(),r=xJ(),n=ev(),o=dp(),u=CJ(),f=e("".indexOf);return t({target:"String",proto:!0,forced:!u("includes")},{includes:function(A){return!!~f(o(n(this)),o(r(A)),arguments.length>1?arguments[1]:void 0)}}),f2e}J6t();var d2e={},vW,A2e;function eHt(){if(A2e)return vW;A2e=1;var t=bw();return vW=Array.isArray||function(r){return t(r)==="Array"},vW}var v2e;function tHt(){if(v2e)return d2e;v2e=1;var t=yf(),e=wl(),r=eHt(),n=e([].reverse),o=[1,2];return t({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),n(this)}}),d2e}tHt();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var dUe=function(t,e){return(dUe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])})(t,e)};function AUe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}dUe(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function rHt(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var n=t[r];if(n.type===Dr.CLOSE_PATH)e+="z";else if(n.type===Dr.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===Dr.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===Dr.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===Dr.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===Dr.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Dr.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Dr.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===Dr.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==Dr.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e}function hY(t,e){var r=t[0],n=t[1];return[r*Math.cos(e)-n*Math.sin(e),r*Math.sin(e)+n*Math.cos(e)]}function EA(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if(typeof t[r]!="number")throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var $m=Math.PI;function pW(t,e,r){t.lArcFlag=t.lArcFlag===0?0:1,t.sweepFlag=t.sweepFlag===0?0:1;var n=t.rX,o=t.rY,u=t.x,f=t.y;n=Math.abs(t.rX),o=Math.abs(t.rY);var h=hY([(e-u)/2,(r-f)/2],-t.xRot/180*$m),A=h[0],p=h[1],g=Math.pow(A,2)/Math.pow(n,2)+Math.pow(p,2)/Math.pow(o,2);1<g&&(n*=Math.sqrt(g),o*=Math.sqrt(g)),t.rX=n,t.rY=o;var y=Math.pow(n,2)*Math.pow(p,2)+Math.pow(o,2)*Math.pow(A,2),_=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(o,2)-y)/y)),b=n*p/o*_,C=-o*A/n*_,T=hY([b,C],t.xRot/180*$m);t.cX=T[0]+(e+u)/2,t.cY=T[1]+(r+f)/2,t.phi1=Math.atan2((p-C)/o,(A-b)/n),t.phi2=Math.atan2((-p-C)/o,(-A-b)/n),t.sweepFlag===0&&t.phi2>t.phi1&&(t.phi2-=2*$m),t.sweepFlag===1&&t.phi2<t.phi1&&(t.phi2+=2*$m),t.phi1*=180/$m,t.phi2*=180/$m}function p2e(t,e,r){EA(t,e,r);var n=t*t+e*e-r*r;if(0>n)return[];if(n===0)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var o=Math.sqrt(n);return[[(t*r+e*o)/(t*t+e*e),(e*r-t*o)/(t*t+e*e)],[(t*r-e*o)/(t*t+e*e),(e*r+t*o)/(t*t+e*e)]]}var Rl,rg=Math.PI/180;function g2e(t,e,r){return(1-r)*t+r*e}function m2e(t,e,r,n){return t+Math.cos(n/180*$m)*e+Math.sin(n/180*$m)*r}function y2e(t,e,r,n){var o=1e-6,u=e-t,f=r-e,h=3*u+3*(n-r)-6*f,A=6*(f-u),p=3*u;return Math.abs(h)<o?[-p/A]:function(g,y,_){var b=g*g/4-y;if(b<-_)return[];if(b<=_)return[-g/2];var C=Math.sqrt(b);return[-g/2-C,-g/2+C]}(A/h,p/h,o)}function w2e(t,e,r,n,o){var u=1-o;return t*(u*u*u)+e*(3*u*u*o)+r*(3*u*o*o)+n*(o*o*o)}(function(t){function e(){return o(function(h,A,p){return h.relative&&(h.x1!==void 0&&(h.x1+=A),h.y1!==void 0&&(h.y1+=p),h.x2!==void 0&&(h.x2+=A),h.y2!==void 0&&(h.y2+=p),h.x!==void 0&&(h.x+=A),h.y!==void 0&&(h.y+=p),h.relative=!1),h})}function r(){var h=NaN,A=NaN,p=NaN,g=NaN;return o(function(y,_,b){return y.type&Dr.SMOOTH_CURVE_TO&&(y.type=Dr.CURVE_TO,h=isNaN(h)?_:h,A=isNaN(A)?b:A,y.x1=y.relative?_-h:2*_-h,y.y1=y.relative?b-A:2*b-A),y.type&Dr.CURVE_TO?(h=y.relative?_+y.x2:y.x2,A=y.relative?b+y.y2:y.y2):(h=NaN,A=NaN),y.type&Dr.SMOOTH_QUAD_TO&&(y.type=Dr.QUAD_TO,p=isNaN(p)?_:p,g=isNaN(g)?b:g,y.x1=y.relative?_-p:2*_-p,y.y1=y.relative?b-g:2*b-g),y.type&Dr.QUAD_TO?(p=y.relative?_+y.x1:y.x1,g=y.relative?b+y.y1:y.y1):(p=NaN,g=NaN),y})}function n(){var h=NaN,A=NaN;return o(function(p,g,y){if(p.type&Dr.SMOOTH_QUAD_TO&&(p.type=Dr.QUAD_TO,h=isNaN(h)?g:h,A=isNaN(A)?y:A,p.x1=p.relative?g-h:2*g-h,p.y1=p.relative?y-A:2*y-A),p.type&Dr.QUAD_TO){h=p.relative?g+p.x1:p.x1,A=p.relative?y+p.y1:p.y1;var _=p.x1,b=p.y1;p.type=Dr.CURVE_TO,p.x1=((p.relative?0:g)+2*_)/3,p.y1=((p.relative?0:y)+2*b)/3,p.x2=(p.x+2*_)/3,p.y2=(p.y+2*b)/3}else h=NaN,A=NaN;return p})}function o(h){var A=0,p=0,g=NaN,y=NaN;return function(_){if(isNaN(g)&&!(_.type&Dr.MOVE_TO))throw new Error("path must start with moveto");var b=h(_,A,p,g,y);return _.type&Dr.CLOSE_PATH&&(A=g,p=y),_.x!==void 0&&(A=_.relative?A+_.x:_.x),_.y!==void 0&&(p=_.relative?p+_.y:_.y),_.type&Dr.MOVE_TO&&(g=A,y=p),b}}function u(h,A,p,g,y,_){return EA(h,A,p,g,y,_),o(function(b,C,T,B){var L=b.x1,P=b.x2,I=b.relative&&!isNaN(B),O=b.x!==void 0?b.x:I?0:C,U=b.y!==void 0?b.y:I?0:T;function N(re){return re*re}b.type&Dr.HORIZ_LINE_TO&&A!==0&&(b.type=Dr.LINE_TO,b.y=b.relative?0:T),b.type&Dr.VERT_LINE_TO&&p!==0&&(b.type=Dr.LINE_TO,b.x=b.relative?0:C),b.x!==void 0&&(b.x=b.x*h+U*p+(I?0:y)),b.y!==void 0&&(b.y=O*A+b.y*g+(I?0:_)),b.x1!==void 0&&(b.x1=b.x1*h+b.y1*p+(I?0:y)),b.y1!==void 0&&(b.y1=L*A+b.y1*g+(I?0:_)),b.x2!==void 0&&(b.x2=b.x2*h+b.y2*p+(I?0:y)),b.y2!==void 0&&(b.y2=P*A+b.y2*g+(I?0:_));var H=h*g-A*p;if(b.xRot!==void 0&&(h!==1||A!==0||p!==0||g!==1))if(H===0)delete b.rX,delete b.rY,delete b.xRot,delete b.lArcFlag,delete b.sweepFlag,b.type=Dr.LINE_TO;else{var z=b.xRot*Math.PI/180,G=Math.sin(z),j=Math.cos(z),q=1/N(b.rX),X=1/N(b.rY),Y=N(j)*q+N(G)*X,te=2*G*j*(q-X),K=N(G)*q+N(j)*X,ce=Y*g*g-te*A*g+K*A*A,ae=te*(h*g+A*p)-2*(Y*p*g+K*h*A),le=Y*p*p-te*h*p+K*h*h,pe=(Math.atan2(ae,ce-le)+Math.PI)%Math.PI/2,ie=Math.sin(pe),he=Math.cos(pe);b.rX=Math.abs(H)/Math.sqrt(ce*N(he)+ae*ie*he+le*N(ie)),b.rY=Math.abs(H)/Math.sqrt(ce*N(ie)-ae*ie*he+le*N(he)),b.xRot=180*pe/Math.PI}return b.sweepFlag!==void 0&&0>H&&(b.sweepFlag=+!b.sweepFlag),b})}function f(){return function(h){var A={};for(var p in h)A[p]=h[p];return A}}t.ROUND=function(h){function A(p){return Math.round(p*h)/h}return h===void 0&&(h=1e13),EA(h),function(p){return p.x1!==void 0&&(p.x1=A(p.x1)),p.y1!==void 0&&(p.y1=A(p.y1)),p.x2!==void 0&&(p.x2=A(p.x2)),p.y2!==void 0&&(p.y2=A(p.y2)),p.x!==void 0&&(p.x=A(p.x)),p.y!==void 0&&(p.y=A(p.y)),p.rX!==void 0&&(p.rX=A(p.rX)),p.rY!==void 0&&(p.rY=A(p.rY)),p}},t.TO_ABS=e,t.TO_REL=function(){return o(function(h,A,p){return h.relative||(h.x1!==void 0&&(h.x1-=A),h.y1!==void 0&&(h.y1-=p),h.x2!==void 0&&(h.x2-=A),h.y2!==void 0&&(h.y2-=p),h.x!==void 0&&(h.x-=A),h.y!==void 0&&(h.y-=p),h.relative=!0),h})},t.NORMALIZE_HVZ=function(h,A,p){return h===void 0&&(h=!0),A===void 0&&(A=!0),p===void 0&&(p=!0),o(function(g,y,_,b,C){if(isNaN(b)&&!(g.type&Dr.MOVE_TO))throw new Error("path must start with moveto");return A&&g.type&Dr.HORIZ_LINE_TO&&(g.type=Dr.LINE_TO,g.y=g.relative?0:_),p&&g.type&Dr.VERT_LINE_TO&&(g.type=Dr.LINE_TO,g.x=g.relative?0:y),h&&g.type&Dr.CLOSE_PATH&&(g.type=Dr.LINE_TO,g.x=g.relative?b-y:b,g.y=g.relative?C-_:C),g.type&Dr.ARC&&(g.rX===0||g.rY===0)&&(g.type=Dr.LINE_TO,delete g.rX,delete g.rY,delete g.xRot,delete g.lArcFlag,delete g.sweepFlag),g})},t.NORMALIZE_ST=r,t.QT_TO_C=n,t.INFO=o,t.SANITIZE=function(h){h===void 0&&(h=0),EA(h);var A=NaN,p=NaN,g=NaN,y=NaN;return o(function(_,b,C,T,B){var L=Math.abs,P=!1,I=0,O=0;if(_.type&Dr.SMOOTH_CURVE_TO&&(I=isNaN(A)?0:b-A,O=isNaN(p)?0:C-p),_.type&(Dr.CURVE_TO|Dr.SMOOTH_CURVE_TO)?(A=_.relative?b+_.x2:_.x2,p=_.relative?C+_.y2:_.y2):(A=NaN,p=NaN),_.type&Dr.SMOOTH_QUAD_TO?(g=isNaN(g)?b:2*b-g,y=isNaN(y)?C:2*C-y):_.type&Dr.QUAD_TO?(g=_.relative?b+_.x1:_.x1,y=_.relative?C+_.y1:_.y2):(g=NaN,y=NaN),_.type&Dr.LINE_COMMANDS||_.type&Dr.ARC&&(_.rX===0||_.rY===0||!_.lArcFlag)||_.type&Dr.CURVE_TO||_.type&Dr.SMOOTH_CURVE_TO||_.type&Dr.QUAD_TO||_.type&Dr.SMOOTH_QUAD_TO){var U=_.x===void 0?0:_.relative?_.x:_.x-b,N=_.y===void 0?0:_.relative?_.y:_.y-C;I=isNaN(g)?_.x1===void 0?I:_.relative?_.x:_.x1-b:g-b,O=isNaN(y)?_.y1===void 0?O:_.relative?_.y:_.y1-C:y-C;var H=_.x2===void 0?0:_.relative?_.x:_.x2-b,z=_.y2===void 0?0:_.relative?_.y:_.y2-C;L(U)<=h&&L(N)<=h&&L(I)<=h&&L(O)<=h&&L(H)<=h&&L(z)<=h&&(P=!0)}return _.type&Dr.CLOSE_PATH&&L(b-T)<=h&&L(C-B)<=h&&(P=!0),P?[]:_})},t.MATRIX=u,t.ROTATE=function(h,A,p){A===void 0&&(A=0),p===void 0&&(p=0),EA(h,A,p);var g=Math.sin(h),y=Math.cos(h);return u(y,g,-g,y,A-A*y+p*g,p-A*g-p*y)},t.TRANSLATE=function(h,A){return A===void 0&&(A=0),EA(h,A),u(1,0,0,1,h,A)},t.SCALE=function(h,A){return A===void 0&&(A=h),EA(h,A),u(h,0,0,A,0,0)},t.SKEW_X=function(h){return EA(h),u(1,0,Math.atan(h),1,0,0)},t.SKEW_Y=function(h){return EA(h),u(1,Math.atan(h),0,1,0,0)},t.X_AXIS_SYMMETRY=function(h){return h===void 0&&(h=0),EA(h),u(-1,0,0,1,h,0)},t.Y_AXIS_SYMMETRY=function(h){return h===void 0&&(h=0),EA(h),u(1,0,0,-1,0,h)},t.A_TO_C=function(){return o(function(h,A,p){return Dr.ARC===h.type?function(g,y,_){var b,C,T,B;g.cX||pW(g,y,_);for(var L=Math.min(g.phi1,g.phi2),P=Math.max(g.phi1,g.phi2)-L,I=Math.ceil(P/90),O=new Array(I),U=y,N=_,H=0;H<I;H++){var z=g2e(g.phi1,g.phi2,H/I),G=g2e(g.phi1,g.phi2,(H+1)/I),j=G-z,q=4/3*Math.tan(j*rg/4),X=[Math.cos(z*rg)-q*Math.sin(z*rg),Math.sin(z*rg)+q*Math.cos(z*rg)],Y=X[0],te=X[1],K=[Math.cos(G*rg),Math.sin(G*rg)],ce=K[0],ae=K[1],le=[ce+q*Math.sin(G*rg),ae-q*Math.cos(G*rg)],pe=le[0],ie=le[1];O[H]={relative:g.relative,type:Dr.CURVE_TO};var he=function(re,oe){var ye=hY([re*g.rX,oe*g.rY],g.xRot),_e=ye[0],Ce=ye[1];return[g.cX+_e,g.cY+Ce]};b=he(Y,te),O[H].x1=b[0],O[H].y1=b[1],C=he(pe,ie),O[H].x2=C[0],O[H].y2=C[1],T=he(ce,ae),O[H].x=T[0],O[H].y=T[1],g.relative&&(O[H].x1-=U,O[H].y1-=N,O[H].x2-=U,O[H].y2-=N,O[H].x-=U,O[H].y-=N),U=(B=[O[H].x,O[H].y])[0],N=B[1]}return O}(h,h.relative?0:A,h.relative?0:p):h})},t.ANNOTATE_ARCS=function(){return o(function(h,A,p){return h.relative&&(A=0,p=0),Dr.ARC===h.type&&pW(h,A,p),h})},t.CLONE=f,t.CALCULATE_BOUNDS=function(){var h=function(_){var b={};for(var C in _)b[C]=_[C];return b},A=e(),p=n(),g=r(),y=o(function(_,b,C){var T=g(p(A(h(_))));function B(ie){ie>y.maxX&&(y.maxX=ie),ie<y.minX&&(y.minX=ie)}function L(ie){ie>y.maxY&&(y.maxY=ie),ie<y.minY&&(y.minY=ie)}if(T.type&Dr.DRAWING_COMMANDS&&(B(b),L(C)),T.type&Dr.HORIZ_LINE_TO&&B(T.x),T.type&Dr.VERT_LINE_TO&&L(T.y),T.type&Dr.LINE_TO&&(B(T.x),L(T.y)),T.type&Dr.CURVE_TO){B(T.x),L(T.y);for(var P=0,I=y2e(b,T.x1,T.x2,T.x);P<I.length;P++)0<(pe=I[P])&&1>pe&&B(w2e(b,T.x1,T.x2,T.x,pe));for(var O=0,U=y2e(C,T.y1,T.y2,T.y);O<U.length;O++)0<(pe=U[O])&&1>pe&&L(w2e(C,T.y1,T.y2,T.y,pe))}if(T.type&Dr.ARC){B(T.x),L(T.y),pW(T,b,C);for(var N=T.xRot/180*Math.PI,H=Math.cos(N)*T.rX,z=Math.sin(N)*T.rX,G=-Math.sin(N)*T.rY,j=Math.cos(N)*T.rY,q=T.phi1<T.phi2?[T.phi1,T.phi2]:-180>T.phi2?[T.phi2+360,T.phi1+360]:[T.phi2,T.phi1],X=q[0],Y=q[1],te=function(ie){var he=ie[0],re=ie[1],oe=180*Math.atan2(re,he)/Math.PI;return oe<X?oe+360:oe},K=0,ce=p2e(G,-H,0).map(te);K<ce.length;K++)(pe=ce[K])>X&&pe<Y&&B(m2e(T.cX,H,G,pe));for(var ae=0,le=p2e(j,-z,0).map(te);ae<le.length;ae++){var pe;(pe=le[ae])>X&&pe<Y&&L(m2e(T.cY,z,j,pe))}}return _});return y.minX=1/0,y.maxX=-1/0,y.minY=1/0,y.maxY=-1/0,y}})(Rl||(Rl={}));var xA,vUe=function(){function t(){}return t.prototype.round=function(e){return this.transform(Rl.ROUND(e))},t.prototype.toAbs=function(){return this.transform(Rl.TO_ABS())},t.prototype.toRel=function(){return this.transform(Rl.TO_REL())},t.prototype.normalizeHVZ=function(e,r,n){return this.transform(Rl.NORMALIZE_HVZ(e,r,n))},t.prototype.normalizeST=function(){return this.transform(Rl.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(Rl.QT_TO_C())},t.prototype.aToC=function(){return this.transform(Rl.A_TO_C())},t.prototype.sanitize=function(e){return this.transform(Rl.SANITIZE(e))},t.prototype.translate=function(e,r){return this.transform(Rl.TRANSLATE(e,r))},t.prototype.scale=function(e,r){return this.transform(Rl.SCALE(e,r))},t.prototype.rotate=function(e,r,n){return this.transform(Rl.ROTATE(e,r,n))},t.prototype.matrix=function(e,r,n,o,u,f){return this.transform(Rl.MATRIX(e,r,n,o,u,f))},t.prototype.skewX=function(e){return this.transform(Rl.SKEW_X(e))},t.prototype.skewY=function(e){return this.transform(Rl.SKEW_Y(e))},t.prototype.xSymmetry=function(e){return this.transform(Rl.X_AXIS_SYMMETRY(e))},t.prototype.ySymmetry=function(e){return this.transform(Rl.Y_AXIS_SYMMETRY(e))},t.prototype.annotateArcs=function(){return this.transform(Rl.ANNOTATE_ARCS())},t}(),nHt=function(t){return t===" "||t===" "||t==="\r"||t===`
`},b2e=function(t){return 48<=t.charCodeAt(0)&&t.charCodeAt(0)<=57},iHt=function(t){function e(){var r=t.call(this)||this;return r.curNumber="",r.curCommandType=-1,r.curCommandRelative=!1,r.canParseCommandOrComma=!0,r.curNumberHasExp=!1,r.curNumberHasExpDigits=!1,r.curNumberHasDecimal=!1,r.curArgs=[],r}return AUe(e,t),e.prototype.finish=function(r){if(r===void 0&&(r=[]),this.parse(" ",r),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return r},e.prototype.parse=function(r,n){var o=this;n===void 0&&(n=[]);for(var u=function(y){n.push(y),o.curArgs.length=0,o.canParseCommandOrComma=!0},f=0;f<r.length;f++){var h=r[f],A=!(this.curCommandType!==Dr.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),p=b2e(h)&&(this.curNumber==="0"&&h==="0"||A);if(!b2e(h)||p)if(h!=="e"&&h!=="E")if(h!=="-"&&h!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(h!=="."||this.curNumberHasExp||this.curNumberHasDecimal||A){if(this.curNumber&&this.curCommandType!==-1){var g=Number(this.curNumber);if(isNaN(g))throw new SyntaxError("Invalid number ending at "+f);if(this.curCommandType===Dr.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>g)throw new SyntaxError('Expected positive number, got "'+g+'" at index "'+f+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+f+'"')}this.curArgs.push(g),this.curArgs.length===aHt[this.curCommandType]&&(Dr.HORIZ_LINE_TO===this.curCommandType?u({type:Dr.HORIZ_LINE_TO,relative:this.curCommandRelative,x:g}):Dr.VERT_LINE_TO===this.curCommandType?u({type:Dr.VERT_LINE_TO,relative:this.curCommandRelative,y:g}):this.curCommandType===Dr.MOVE_TO||this.curCommandType===Dr.LINE_TO||this.curCommandType===Dr.SMOOTH_QUAD_TO?(u({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Dr.MOVE_TO===this.curCommandType&&(this.curCommandType=Dr.LINE_TO)):this.curCommandType===Dr.CURVE_TO?u({type:Dr.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Dr.SMOOTH_CURVE_TO?u({type:Dr.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Dr.QUAD_TO?u({type:Dr.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Dr.ARC&&u({type:Dr.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!nHt(h))if(h===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(h!=="+"&&h!=="-"&&h!==".")if(p)this.curNumber=h,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+f+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+h+'" at index '+f+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,h!=="z"&&h!=="Z")if(h==="h"||h==="H")this.curCommandType=Dr.HORIZ_LINE_TO,this.curCommandRelative=h==="h";else if(h==="v"||h==="V")this.curCommandType=Dr.VERT_LINE_TO,this.curCommandRelative=h==="v";else if(h==="m"||h==="M")this.curCommandType=Dr.MOVE_TO,this.curCommandRelative=h==="m";else if(h==="l"||h==="L")this.curCommandType=Dr.LINE_TO,this.curCommandRelative=h==="l";else if(h==="c"||h==="C")this.curCommandType=Dr.CURVE_TO,this.curCommandRelative=h==="c";else if(h==="s"||h==="S")this.curCommandType=Dr.SMOOTH_CURVE_TO,this.curCommandRelative=h==="s";else if(h==="q"||h==="Q")this.curCommandType=Dr.QUAD_TO,this.curCommandRelative=h==="q";else if(h==="t"||h==="T")this.curCommandType=Dr.SMOOTH_QUAD_TO,this.curCommandRelative=h==="t";else{if(h!=="a"&&h!=="A")throw new SyntaxError('Unexpected character "'+h+'" at index '+f+".");this.curCommandType=Dr.ARC,this.curCommandRelative=h==="a"}else n.push({type:Dr.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=h,this.curNumberHasDecimal=h==="."}else this.curNumber+=h,this.curNumberHasDecimal=!0;else this.curNumber+=h;else this.curNumber+=h,this.curNumberHasExp=!0;else this.curNumber+=h,this.curNumberHasExpDigits=this.curNumberHasExp}return n},e.prototype.transform=function(r){return Object.create(this,{parse:{value:function(n,o){o===void 0&&(o=[]);for(var u=0,f=Object.getPrototypeOf(this).parse.call(this,n);u<f.length;u++){var h=f[u],A=r(h);Array.isArray(A)?o.push.apply(o,A):o.push(A)}return o}}})},e}(vUe),Dr=function(t){function e(r){var n=t.call(this)||this;return n.commands=typeof r=="string"?e.parse(r):r,n}return AUe(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var r=Rl.CALCULATE_BOUNDS();return this.transform(r),r},e.prototype.transform=function(r){for(var n=[],o=0,u=this.commands;o<u.length;o++){var f=r(u[o]);Array.isArray(f)?n.push.apply(n,f):n.push(f)}return this.commands=n,this},e.encode=function(r){return rHt(r)},e.parse=function(r){var n=new iHt,o=[];return n.parse(r,o),n.finish(o),o},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(vUe),aHt=((xA={})[Dr.MOVE_TO]=2,xA[Dr.LINE_TO]=2,xA[Dr.HORIZ_LINE_TO]=1,xA[Dr.VERT_LINE_TO]=1,xA[Dr.CLOSE_PATH]=0,xA[Dr.QUAD_TO]=4,xA[Dr.SMOOTH_QUAD_TO]=2,xA[Dr.CURVE_TO]=6,xA[Dr.SMOOTH_CURVE_TO]=4,xA[Dr.ARC]=7,xA),_2e={},gW,S2e;function oHt(){if(S2e)return gW;S2e=1;var t=Xu(),e=tv(),r=Yk(),n=oUe(),o=RegExp.prototype;return gW=function(u){var f=u.flags;return f===void 0&&!("flags"in o)&&!e(u,"flags")&&r(o,u)?t(n,u):f},gW}var x2e;function sHt(){if(x2e)return _2e;x2e=1;var t=tF().PROPER,e=Sw(),r=mf(),n=dp(),o=yl(),u=oHt(),f="toString",h=RegExp.prototype,A=h[f],p=o(function(){return A.call({source:"a",flags:"b"})!=="/a/b"}),g=t&&A.name!==f;return(p||g)&&e(h,f,function(){var _=r(this),b=n(_.source),C=n(u(_));return"/"+b+"/"+C},{unsafe:!0}),_2e}sHt();function LR(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?LR=function(e){return typeof e}:LR=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LR(t)}function lHt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var uHt=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],cHt=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function fHt(t,e,r,n,o){if(typeof t=="string"&&(t=document.getElementById(t)),!t||LR(t)!=="object"||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var u=t.getContext("2d");try{return u.getImageData(e,r,n,o)}catch(f){throw new Error("unable to access image data: "+f)}}function hHt(t,e,r,n,o,u){if(!(isNaN(u)||u<1)){u|=0;var f=fHt(t,e,r,n,o);f=dHt(f,e,r,n,o,u),t.getContext("2d").putImageData(f,e,r)}}function dHt(t,e,r,n,o,u){for(var f=t.data,h=2*u+1,A=n-1,p=o-1,g=u+1,y=g*(g+1)/2,_=new C2e,b=_,C,T=1;T<h;T++)b=b.next=new C2e,T===g&&(C=b);b.next=_;for(var B=null,L=null,P=0,I=0,O=uHt[u],U=cHt[u],N=0;N<o;N++){b=_;for(var H=f[I],z=f[I+1],G=f[I+2],j=f[I+3],q=0;q<g;q++)b.r=H,b.g=z,b.b=G,b.a=j,b=b.next;for(var X=0,Y=0,te=0,K=0,ce=g*H,ae=g*z,le=g*G,pe=g*j,ie=y*H,he=y*z,re=y*G,oe=y*j,ye=1;ye<g;ye++){var _e=I+((A<ye?A:ye)<<2),Ce=f[_e],ne=f[_e+1],xe=f[_e+2],De=f[_e+3],ze=g-ye;ie+=(b.r=Ce)*ze,he+=(b.g=ne)*ze,re+=(b.b=xe)*ze,oe+=(b.a=De)*ze,X+=Ce,Y+=ne,te+=xe,K+=De,b=b.next}B=_,L=C;for(var Ye=0;Ye<n;Ye++){var Ne=oe*O>>>U;if(f[I+3]=Ne,Ne!==0){var yt=255/Ne;f[I]=(ie*O>>>U)*yt,f[I+1]=(he*O>>>U)*yt,f[I+2]=(re*O>>>U)*yt}else f[I]=f[I+1]=f[I+2]=0;ie-=ce,he-=ae,re-=le,oe-=pe,ce-=B.r,ae-=B.g,le-=B.b,pe-=B.a;var Ue=Ye+u+1;Ue=P+(Ue<A?Ue:A)<<2,X+=B.r=f[Ue],Y+=B.g=f[Ue+1],te+=B.b=f[Ue+2],K+=B.a=f[Ue+3],ie+=X,he+=Y,re+=te,oe+=K,B=B.next;var ue=L,Qe=ue.r,qe=ue.g,Re=ue.b,Me=ue.a;ce+=Qe,ae+=qe,le+=Re,pe+=Me,X-=Qe,Y-=qe,te-=Re,K-=Me,L=L.next,I+=4}P+=n}for(var Ge=0;Ge<n;Ge++){I=Ge<<2;var Pe=f[I],ke=f[I+1],Be=f[I+2],$e=f[I+3],nt=g*Pe,ft=g*ke,Mt=g*Be,Rt=g*$e,Bt=y*Pe,It=y*ke,qt=y*Be,fr=y*$e;b=_;for(var lr=0;lr<g;lr++)b.r=Pe,b.g=ke,b.b=Be,b.a=$e,b=b.next;for(var _t=n,br=0,on=0,Br=0,rn=0,Yr=1;Yr<=u;Yr++){I=_t+Ge<<2;var cn=g-Yr;Bt+=(b.r=Pe=f[I])*cn,It+=(b.g=ke=f[I+1])*cn,qt+=(b.b=Be=f[I+2])*cn,fr+=(b.a=$e=f[I+3])*cn,rn+=Pe,br+=ke,on+=Be,Br+=$e,b=b.next,Yr<p&&(_t+=n)}I=Ge,B=_,L=C;for(var Vn=0;Vn<o;Vn++){var Nr=I<<2;f[Nr+3]=$e=fr*O>>>U,$e>0?($e=255/$e,f[Nr]=(Bt*O>>>U)*$e,f[Nr+1]=(It*O>>>U)*$e,f[Nr+2]=(qt*O>>>U)*$e):f[Nr]=f[Nr+1]=f[Nr+2]=0,Bt-=nt,It-=ft,qt-=Mt,fr-=Rt,nt-=B.r,ft-=B.g,Mt-=B.b,Rt-=B.a,Nr=Ge+((Nr=Vn+g)<p?Nr:p)*n<<2,Bt+=rn+=B.r=f[Nr],It+=br+=B.g=f[Nr+1],qt+=on+=B.b=f[Nr+2],fr+=Br+=B.a=f[Nr+3],B=B.next,nt+=Pe=L.r,ft+=ke=L.g,Mt+=Be=L.b,Rt+=$e=L.a,rn-=Pe,br-=ke,on-=Be,Br-=$e,L=L.next,I+=n}}return t}var C2e=function t(){lHt(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null},AHt={};function vHt(){var{DOMParser:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas(r,n){return new OffscreenCanvas(r,n)},createImage(r){return Cg(function*(){var n=yield fetch(r),o=yield n.blob(),u=yield createImageBitmap(o);return u})()}};return(typeof DOMParser<"u"||typeof t>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function pHt(t){var{DOMParser:e,canvas:r,fetch:n}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:n,createCanvas:r.createCanvas,createImage:r.loadImage}}var gHt=Object.freeze({__proto__:null,offscreen:vHt,node:pHt});function xw(t){return t.replace(/(?!\u3000)\s+/gm," ")}function pUe(t){return t.replace(/^[\n \t]+/,"")}function gUe(t){return t.replace(/[\n \t]+$/,"")}function Yf(t){var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var mHt=/^[A-Z-]+$/;function mUe(t){return mHt.test(t)?t.toLowerCase():t}function TJ(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function yUe(t){if(!t.startsWith("rgb"))return t;var e=3,r=t.replace(/\d+(\.\d+)?/g,(n,o)=>e--&&o?String(Math.round(parseFloat(n))):n);return r}var yHt=/(\[[^\]]+\])/g,wHt=/(#[^\s+>~.[:]+)/g,bHt=/(\.[^\s+>~.[:]+)/g,_Ht=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,SHt=/(:[\w-]+\([^)]*\))/gi,xHt=/(:[^\s+>~.[:]+)/g,CHt=/([^\s+>~.[:]+)/g;function h1(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function wUe(t){var e=[0,0,0],r=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0;return[r,n]=h1(r,yHt),e[1]+=n,[r,n]=h1(r,wHt),e[0]+=n,[r,n]=h1(r,bHt),e[1]+=n,[r,n]=h1(r,_Ht),e[2]+=n,[r,n]=h1(r,SHt),e[1]+=n,[r,n]=h1(r,xHt),e[1]+=n,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,n]=h1(r,CHt),e[2]+=n,e.join("")}var j1=1e-8;function dY(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function vO(t,e){return(t[0]*e[0]+t[1]*e[1])/(dY(t)*dY(e))}function AY(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(vO(t,e))}function vY(t){return t*t*t}function pY(t){return 3*t*t*(1-t)}function gY(t){return 3*t*(1-t)*(1-t)}function mY(t){return(1-t)*(1-t)*(1-t)}function yY(t){return t*t}function wY(t){return 2*t*(1-t)}function bY(t){return(1-t)*(1-t)}class jn{constructor(e,r,n){this.document=e,this.name=r,this.value=n,this.isNormalizedColor=!1}static empty(e){return new jn(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:r,name:n}=this;return xw(this.getString()).trim().split(e).map(o=>new jn(r,n,o))}hasValue(e){var{value:r}=this;return r!==null&&r!==""&&(e||r!==0)&&typeof r<"u"}isString(e){var{value:r}=this,n=typeof r=="string";return!n||!e?n:e.test(r)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:r}=this,n=parseFloat(r);return this.isString(/%$/)&&(n/=100),n}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var r=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,r=yUe(r),this.value=r),r}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[n,o]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:u}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(u.computeSize("x"),u.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(u.computeSize("x"),u.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*u.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*u.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&o):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*u.computeSize(n);default:{var f=this.getNumber();return r&&f<1?f*u.computeSize(n):f}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),r=/#([^)'"]+)/.exec(e);return r&&(r=r[1]),r||(r=e),this.document.definitions[r]}getFillStyleDefinition(e,r){var n=this.getDefinition();if(!n)return null;if(typeof n.createGradient=="function")return n.createGradient(this.document.ctx,e,r);if(typeof n.createPattern=="function"){if(n.getHrefAttribute().hasValue()){var o=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),o.hasValue()&&n.getAttribute("patternTransform",!0).setValue(o.value)}return n.createPattern(this.document.ctx,e,r)}return null}getTextBaseline(){return this.hasValue()?jn.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var r=this.getColor(),n=r.length,o=0,u=0;u<n&&(r[u]===","&&o++,o!==3);u++);if(e.hasValue()&&this.isString()&&o!==3){var f=new fY(r);f.ok&&(f.alpha=e.getNumber(),r=f.toRGBA())}return new jn(this.document,this.name,r)}}jn.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class bUe{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,r){this.viewPorts.push({width:e,height:r})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e=="number"?e:e==="x"?this.width:e==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Qs{constructor(e,r){this.x=e,this.y=r}static parse(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[n=r,o=r]=Yf(e);return new Qs(n,o)}static parseScale(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[n=r,o=n]=Yf(e);return new Qs(n,o)}static parsePath(e){for(var r=Yf(e),n=r.length,o=[],u=0;u<n;u+=2)o.push(new Qs(r[u],r[u+1]));return o}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:r,y:n}=this,o=r*e[0]+n*e[2]+e[4],u=r*e[1]+n*e[3]+e[5];this.x=o,this.y=u}}class _Ue{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:r,onMouseMove:n}=this,o=e.ctx.canvas;o.onclick=r,o.onmousemove=n,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:r,eventElements:n}=this,{style:o}=e.ctx.canvas;o&&(o.cursor=""),r.forEach((u,f)=>{for(var{run:h}=u,A=n[f];A;)h(A),A=A.parent}),this.events=[],this.eventElements=[]}}checkPath(e,r){if(!(!this.working||!r)){var{events:n,eventElements:o}=this;n.forEach((u,f)=>{var{x:h,y:A}=u;!o[f]&&r.isPointInPath&&r.isPointInPath(h,A)&&(o[f]=e)})}}checkBoundingBox(e,r){if(!(!this.working||!r)){var{events:n,eventElements:o}=this;n.forEach((u,f)=>{var{x:h,y:A}=u;!o[f]&&r.isPointInBox(h,A)&&(o[f]=e)})}}mapXY(e,r){for(var{window:n,ctx:o}=this.screen,u=new Qs(e,r),f=o.canvas;f;)u.x-=f.offsetLeft,u.y-=f.offsetTop,f=f.offsetParent;return n.scrollX&&(u.x+=n.scrollX),n.scrollY&&(u.y+=n.scrollY),u}onClick(e){var{x:r,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:r,y:n,run(o){o.onClick&&o.onClick()}})}onMouseMove(e){var{x:r,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:r,y:n,run(o){o.onMouseMove&&o.onMouseMove()}})}}var SUe=typeof window<"u"?window:null,xUe=typeof fetch<"u"?fetch.bind(void 0):null;class RB{constructor(e){var{fetch:r=xUe,window:n=SUe}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new bUe,this.mouse=new _Ue(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=r}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(r=>r());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:r,ctx:n,aspectRatio:o,width:u,desiredWidth:f,height:h,desiredHeight:A,minX:p=0,minY:g=0,refX:y,refY:_,clip:b=!1,clipX:C=0,clipY:T=0}=e,B=xw(o).replace(/^defer\s/,""),[L,P]=B.split(" "),I=L||"xMidYMid",O=P||"meet",U=u/f,N=h/A,H=Math.min(U,N),z=Math.max(U,N),G=f,j=A;O==="meet"&&(G*=H,j*=H),O==="slice"&&(G*=z,j*=z);var q=new jn(r,"refX",y),X=new jn(r,"refY",_),Y=q.hasValue()&&X.hasValue();if(Y&&n.translate(-H*q.getPixels("x"),-H*X.getPixels("y")),b){var te=H*C,K=H*T;n.beginPath(),n.moveTo(te,K),n.lineTo(u,K),n.lineTo(u,h),n.lineTo(te,h),n.closePath(),n.clip()}if(!Y){var ce=O==="meet"&&H===N,ae=O==="slice"&&z===N,le=O==="meet"&&H===U,pe=O==="slice"&&z===U;I.startsWith("xMid")&&(ce||ae)&&n.translate(u/2-G/2,0),I.endsWith("YMid")&&(le||pe)&&n.translate(0,h/2-j/2),I.startsWith("xMax")&&(ce||ae)&&n.translate(u-G,0),I.endsWith("YMax")&&(le||pe)&&n.translate(0,h-j)}switch(!0){case I==="none":n.scale(U,N);break;case O==="meet":n.scale(H,H);break;case O==="slice":n.scale(z,z);break}n.translate(-p,-g)}start(e){var{enableRedraw:r=!1,ignoreMouse:n=!1,ignoreAnimation:o=!1,ignoreDimensions:u=!1,ignoreClear:f=!1,forceRedraw:h,scaleWidth:A,scaleHeight:p,offsetX:g,offsetY:y}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:_,mouse:b}=this,C=1e3/_;if(this.frameDuration=C,this.readyPromise=new Promise(I=>{this.resolveReady=I}),this.isReady()&&this.render(e,u,f,A,p,g,y),!!r){var T=Date.now(),B=T,L=0,P=()=>{T=Date.now(),L=T-B,L>=C&&(B=T-L%C,this.shouldUpdate(o,h)&&(this.render(e,u,f,A,p,g,y),b.runEvents())),this.intervalId=cW(P)};n||b.start(),this.intervalId=cW(P)}}stop(){this.intervalId&&(cW.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,r){if(!e){var{frameDuration:n}=this,o=this.animations.reduce((u,f)=>f.update(n)||u,!1);if(o)return!0}return!!(typeof r=="function"&&r()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,r,n,o,u,f,h){var{CLIENT_WIDTH:A,CLIENT_HEIGHT:p,viewPort:g,ctx:y,isFirstRender:_}=this,b=y.canvas;g.clear(),b.width&&b.height?g.setCurrent(b.width,b.height):g.setCurrent(A,p);var C=e.getStyle("width"),T=e.getStyle("height");!r&&(_||typeof o!="number"&&typeof u!="number")&&(C.hasValue()&&(b.width=C.getPixels("x"),b.style&&(b.style.width="".concat(b.width,"px"))),T.hasValue()&&(b.height=T.getPixels("y"),b.style&&(b.style.height="".concat(b.height,"px"))));var B=b.clientWidth||b.width,L=b.clientHeight||b.height;if(r&&C.hasValue()&&T.hasValue()&&(B=C.getPixels("x"),L=T.getPixels("y")),g.setCurrent(B,L),typeof f=="number"&&e.getAttribute("x",!0).setValue(f),typeof h=="number"&&e.getAttribute("y",!0).setValue(h),typeof o=="number"||typeof u=="number"){var P=Yf(e.getAttribute("viewBox").getString()),I=0,O=0;if(typeof o=="number"){var U=e.getStyle("width");U.hasValue()?I=U.getPixels("x")/o:isNaN(P[2])||(I=P[2]/o)}if(typeof u=="number"){var N=e.getStyle("height");N.hasValue()?O=N.getPixels("y")/u:isNaN(P[3])||(O=P[3]/u)}I||(I=O),O||(O=I),e.getAttribute("width",!0).setValue(o),e.getAttribute("height",!0).setValue(u);var H=e.getStyle("transform",!0,!0);H.setValue("".concat(H.getString()," scale(").concat(1/I,", ").concat(1/O,")"))}n||y.clearRect(0,0,B,L),e.render(y),_&&(this.isFirstRender=!1)}}RB.defaultWindow=SUe;RB.defaultFetch=xUe;var{defaultFetch:THt}=RB,EHt=typeof DOMParser<"u"?DOMParser:null;class MR{constructor(){var{fetch:e=THt,DOMParser:r=EHt}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=r}parse(e){var r=this;return Cg(function*(){return e.startsWith("<")?r.parseFromString(e):r.load(e)})()}parseFromString(e){var r=new this.DOMParser;try{return this.checkDocument(r.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(r.parseFromString(e,"text/xml"))}}checkDocument(e){var r=e.getElementsByTagName("parsererror")[0];if(r)throw new Error(r.textContent);return e}load(e){var r=this;return Cg(function*(){var n=yield r.fetch(e),o=yield n.text();return r.parseFromString(o)})()}}class CUe{constructor(e,r){this.type="translate",this.point=null,this.point=Qs.parse(r)}apply(e){var{x:r,y:n}=this.point;e.translate(r||0,n||0)}unapply(e){var{x:r,y:n}=this.point;e.translate(-1*r||0,-1*n||0)}applyToPoint(e){var{x:r,y:n}=this.point;e.applyTransform([1,0,0,1,r||0,n||0])}}class TUe{constructor(e,r,n){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var o=Yf(r);this.angle=new jn(e,"angle",o[0]),this.originX=n[0],this.originY=n[1],this.cx=o[1]||0,this.cy=o[2]||0}apply(e){var{cx:r,cy:n,originX:o,originY:u,angle:f}=this,h=r+o.getPixels("x"),A=n+u.getPixels("y");e.translate(h,A),e.rotate(f.getRadians()),e.translate(-h,-A)}unapply(e){var{cx:r,cy:n,originX:o,originY:u,angle:f}=this,h=r+o.getPixels("x"),A=n+u.getPixels("y");e.translate(h,A),e.rotate(-1*f.getRadians()),e.translate(-h,-A)}applyToPoint(e){var{cx:r,cy:n,angle:o}=this,u=o.getRadians();e.applyTransform([1,0,0,1,r||0,n||0]),e.applyTransform([Math.cos(u),Math.sin(u),-Math.sin(u),Math.cos(u),0,0]),e.applyTransform([1,0,0,1,-r||0,-n||0])}}class EUe{constructor(e,r,n){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var o=Qs.parseScale(r);(o.x===0||o.y===0)&&(o.x=j1,o.y=j1),this.scale=o,this.originX=n[0],this.originY=n[1]}apply(e){var{scale:{x:r,y:n},originX:o,originY:u}=this,f=o.getPixels("x"),h=u.getPixels("y");e.translate(f,h),e.scale(r,n||r),e.translate(-f,-h)}unapply(e){var{scale:{x:r,y:n},originX:o,originY:u}=this,f=o.getPixels("x"),h=u.getPixels("y");e.translate(f,h),e.scale(1/r,1/n||r),e.translate(-f,-h)}applyToPoint(e){var{x:r,y:n}=this.scale;e.applyTransform([r||0,0,0,n||0,0,0])}}class EJ{constructor(e,r,n){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Yf(r),this.originX=n[0],this.originY=n[1]}apply(e){var{originX:r,originY:n,matrix:o}=this,u=r.getPixels("x"),f=n.getPixels("y");e.translate(u,f),e.transform(o[0],o[1],o[2],o[3],o[4],o[5]),e.translate(-u,-f)}unapply(e){var{originX:r,originY:n,matrix:o}=this,u=o[0],f=o[2],h=o[4],A=o[1],p=o[3],g=o[5],y=0,_=0,b=1,C=1/(u*(p*b-g*_)-f*(A*b-g*y)+h*(A*_-p*y)),T=r.getPixels("x"),B=n.getPixels("y");e.translate(T,B),e.transform(C*(p*b-g*_),C*(g*y-A*b),C*(h*_-f*b),C*(u*b-h*y),C*(f*g-h*p),C*(h*A-u*g)),e.translate(-T,-B)}applyToPoint(e){e.applyTransform(this.matrix)}}class BJ extends EJ{constructor(e,r,n){super(e,r,n),this.type="skew",this.angle=null,this.angle=new jn(e,"angle",r)}}class BUe extends BJ{constructor(e,r,n){super(e,r,n),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class IUe extends BJ{constructor(e,r,n){super(e,r,n),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function BHt(t){return xw(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function IHt(t){var[e,r]=t.split("(");return[e.trim(),r.trim().replace(")","")]}class Cy{constructor(e,r,n){this.document=e,this.transforms=[];var o=BHt(r);o.forEach(u=>{if(u!=="none"){var[f,h]=IHt(u),A=Cy.transformTypes[f];typeof A<"u"&&this.transforms.push(new A(this.document,h,n))}})}static fromElement(e,r){var n=r.getStyle("transform",!1,!0),[o,u=o]=r.getStyle("transform-origin",!1,!0).split(),f=[o,u];return n.hasValue()?new Cy(e,n.getString(),f):null}apply(e){for(var{transforms:r}=this,n=r.length,o=0;o<n;o++)r[o].apply(e)}unapply(e){for(var{transforms:r}=this,n=r.length,o=n-1;o>=0;o--)r[o].unapply(e)}applyToPoint(e){for(var{transforms:r}=this,n=r.length,o=0;o<n;o++)r[o].applyToPoint(e)}}Cy.transformTypes={translate:CUe,rotate:TUe,scale:EUe,matrix:EJ,skewX:BUe,skewY:IUe};let Is=class _Y{constructor(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=r,this.captureTextNodes=n,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!r||r.nodeType!==1)){if(Array.from(r.attributes).forEach(h=>{var A=mUe(h.nodeName);this.attributes[A]=new jn(e,A,h.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var o=this.getAttribute("style").getString().split(";").map(h=>h.trim());o.forEach(h=>{if(h){var[A,p]=h.split(":").map(g=>g.trim());this.styles[A]=new jn(e,A,p)}})}var{definitions:u}=e,f=this.getAttribute("id");f.hasValue()&&(u[f.getString()]||(u[f.getString()]=this)),Array.from(r.childNodes).forEach(h=>{if(h.nodeType===1)this.addChild(h);else if(n&&(h.nodeType===3||h.nodeType===4)){var A=e.createTextNode(h);A.getText().length>0&&this.addChild(A)}})}}getAttribute(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.attributes[e];if(!n&&r){var o=new jn(this.document,e,"");return this.attributes[e]=o,o}return n||jn.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return jn.empty(this.document)}getStyle(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.styles[e];if(o)return o;var u=this.getAttribute(e);if(u!=null&&u.hasValue())return this.styles[e]=u,u;if(!n){var{parent:f}=this;if(f){var h=f.getStyle(e);if(h!=null&&h.hasValue())return h}}if(r){var A=new jn(this.document,e,"");return this.styles[e]=A,A}return o||jn.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var r=this.getStyle("mask").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var n=this.getStyle("filter").getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var r=Cy.fromElement(this.document,this);r&&r.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var o=n.getDefinition();o&&o.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(r=>{r.render(e)})}addChild(e){var r=e instanceof _Y?e:this.document.createElement(e);r.parent=this,_Y.ignoreChildTypes.includes(r.type)||this.children.push(r)}matchesSelector(e){var r,{node:n}=this;if(typeof n.matches=="function")return n.matches(e);var o=(r=n.getAttribute)===null||r===void 0?void 0:r.call(n,"class");return!o||o===""?!1:o.split(" ").some(u=>".".concat(u)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:r}=this.document;for(var n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){var o=e[n],u=r[n];if(o)for(var f in o){var h=this.stylesSpecificity[f];typeof h>"u"&&(h="000"),u>=h&&(this.styles[f]=o[f],this.stylesSpecificity[f]=u)}}}removeStyles(e,r){var n=r.reduce((o,u)=>{var f=e.getStyle(u);if(!f.hasValue())return o;var h=f.getString();return f.setValue(""),[...o,[u,h]]},[]);return n}restoreStyles(e,r){r.forEach(n=>{var[o,u]=n;e.getStyle(o,!0).setValue(u)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}};Is.ignoreChildTypes=["title"];class LUe extends Is{constructor(e,r,n){super(e,r,n)}}function LHt(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function MHt(t){return typeof AHt>"u"?t:t.trim().split(",").map(LHt).join(",")}function DHt(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function RHt(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class Dc{constructor(e,r,n,o,u,f){var h=f?typeof f=="string"?Dc.parse(f):f:{};this.fontFamily=u||h.fontFamily,this.fontSize=o||h.fontSize,this.fontStyle=e||h.fontStyle,this.fontWeight=n||h.fontWeight,this.fontVariant=r||h.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n="",o="",u="",f="",h="",A=xw(e).trim().split(" "),p={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return A.forEach(g=>{switch(!0){case(!p.fontStyle&&Dc.styles.includes(g)):g!=="inherit"&&(n=g),p.fontStyle=!0;break;case(!p.fontVariant&&Dc.variants.includes(g)):g!=="inherit"&&(o=g),p.fontStyle=!0,p.fontVariant=!0;break;case(!p.fontWeight&&Dc.weights.includes(g)):g!=="inherit"&&(u=g),p.fontStyle=!0,p.fontVariant=!0,p.fontWeight=!0;break;case!p.fontSize:g!=="inherit"&&([f]=g.split("/")),p.fontStyle=!0,p.fontVariant=!0,p.fontWeight=!0,p.fontSize=!0;break;default:g!=="inherit"&&(h+=g)}}),new Dc(n,o,u,f,h,r)}toString(){return[DHt(this.fontStyle),this.fontVariant,RHt(this.fontWeight),this.fontSize,MHt(this.fontFamily)].join(" ").trim()}}Dc.styles="normal|italic|oblique|inherit";Dc.variants="normal|small-caps|inherit";Dc.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class $d{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=r,this.x2=n,this.y2=o,this.addPoint(e,r),this.addPoint(n,o)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,r){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof r<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=r,this.y2=r),r<this.y1&&(this.y1=r),r>this.y2&&(this.y2=r))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:r,y1:n,x2:o,y2:u}=e;this.addPoint(r,n),this.addPoint(o,u)}}sumCubic(e,r,n,o,u){return Math.pow(1-e,3)*r+3*Math.pow(1-e,2)*e*n+3*(1-e)*Math.pow(e,2)*o+Math.pow(e,3)*u}bezierCurveAdd(e,r,n,o,u){var f=6*r-12*n+6*o,h=-3*r+9*n-9*o+3*u,A=3*n-3*r;if(h===0){if(f===0)return;var p=-A/f;0<p&&p<1&&(e?this.addX(this.sumCubic(p,r,n,o,u)):this.addY(this.sumCubic(p,r,n,o,u)));return}var g=Math.pow(f,2)-4*A*h;if(!(g<0)){var y=(-f+Math.sqrt(g))/(2*h);0<y&&y<1&&(e?this.addX(this.sumCubic(y,r,n,o,u)):this.addY(this.sumCubic(y,r,n,o,u)));var _=(-f-Math.sqrt(g))/(2*h);0<_&&_<1&&(e?this.addX(this.sumCubic(_,r,n,o,u)):this.addY(this.sumCubic(_,r,n,o,u)))}}addBezierCurve(e,r,n,o,u,f,h,A){this.addPoint(e,r),this.addPoint(h,A),this.bezierCurveAdd(!0,e,n,u,h),this.bezierCurveAdd(!1,r,o,f,A)}addQuadraticCurve(e,r,n,o,u,f){var h=e+.6666666666666666*(n-e),A=r+2/3*(o-r),p=h+1/3*(u-e),g=A+1/3*(f-r);this.addBezierCurve(e,r,h,p,A,g,u,f)}isPointInBox(e,r){var{x1:n,y1:o,x2:u,y2:f}=this;return n<=e&&e<=u&&o<=r&&r<=f}}class zi extends Dr{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Qs(0,0),this.control=new Qs(0,0),this.current=new Qs(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:r}=this;return e>=r.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",n=new Qs(this.command[e],this.command[r]);return this.makeAbsolute(n)}getAsControlPoint(e,r){var n=this.getPoint(e,r);return this.control=n,n}getAsCurrentPoint(e,r){var n=this.getPoint(e,r);return this.current=n,n}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==Dr.CURVE_TO&&e!==Dr.SMOOTH_CURVE_TO&&e!==Dr.QUAD_TO&&e!==Dr.SMOOTH_QUAD_TO)return this.current;var{current:{x:r,y:n},control:{x:o,y:u}}=this,f=new Qs(2*r-o,2*n-u);return f}makeAbsolute(e){if(this.command.relative){var{x:r,y:n}=this.current;e.x+=r,e.y+=n}return e}addMarker(e,r,n){var{points:o,angles:u}=this;n&&u.length>0&&!u[u.length-1]&&(u[u.length-1]=o[o.length-1].angleTo(n)),this.addMarkerAngle(e,r?r.angleTo(e):null)}addMarkerAngle(e,r){this.points.push(e),this.angles.push(r)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,r=e.length,n=0;n<r;n++)if(!e[n]){for(var o=n+1;o<r;o++)if(e[o]){e[n]=e[o];break}}return e}}class Dy extends Is{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,r=this;r;){var n=r.getStyle("opacity",!1,!0);n.hasValue(!0)&&(e*=n.getNumber()),r=r.parent}return e}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!r){var n=this.getStyle("fill"),o=this.getStyle("fill-opacity"),u=this.getStyle("stroke"),f=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var h=n.getFillStyleDefinition(this,o);h&&(e.fillStyle=h)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var A=n.getColor();A!=="inherit"&&(e.fillStyle=A==="none"?"rgba(0,0,0,0)":A)}if(o.hasValue()){var p=new jn(this.document,"fill",e.fillStyle).addOpacity(o).getColor();e.fillStyle=p}if(u.isUrlDefinition()){var g=u.getFillStyleDefinition(this,f);g&&(e.strokeStyle=g)}else if(u.hasValue()){u.getString()==="currentColor"&&u.setValue(this.getStyle("color").getColor());var y=u.getString();y!=="inherit"&&(e.strokeStyle=y==="none"?"rgba(0,0,0,0)":y)}if(f.hasValue()){var _=new jn(this.document,"stroke",e.strokeStyle).addOpacity(f).getString();e.strokeStyle=_}var b=this.getStyle("stroke-width");if(b.hasValue()){var C=b.getPixels();e.lineWidth=C||j1}var T=this.getStyle("stroke-linecap"),B=this.getStyle("stroke-linejoin"),L=this.getStyle("stroke-miterlimit"),P=this.getStyle("stroke-dasharray"),I=this.getStyle("stroke-dashoffset");if(T.hasValue()&&(e.lineCap=T.getString()),B.hasValue()&&(e.lineJoin=B.getString()),L.hasValue()&&(e.miterLimit=L.getNumber()),P.hasValue()&&P.getString()!=="none"){var O=Yf(P.getString());typeof e.setLineDash<"u"?e.setLineDash(O):typeof e.webkitLineDash<"u"?e.webkitLineDash=O:typeof e.mozDash<"u"&&!(O.length===1&&O[0]===0)&&(e.mozDash=O);var U=I.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=U:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=U:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=U)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var N=this.getStyle("font"),H=this.getStyle("font-style"),z=this.getStyle("font-variant"),G=this.getStyle("font-weight"),j=this.getStyle("font-size"),q=this.getStyle("font-family"),X=new Dc(H.getString(),z.getString(),G.getString(),j.hasValue()?"".concat(j.getPixels(!0),"px"):"",q.getString(),Dc.parse(N.getString(),e.font));H.setValue(X.fontStyle),z.setValue(X.fontVariant),G.setValue(X.fontWeight),j.setValue(X.fontSize),q.setValue(X.fontFamily),e.font=X.toString(),j.isPixels()&&(this.document.emSize=j.getPixels(),this.modifiedEmSizeStack=!0)}r||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class io extends Dy{constructor(e,r,n){super(e,r,n),this.type="path",this.pathParser=null,this.pathParser=new zi(this.getAttribute("d").getString())}path(e){var{pathParser:r}=this,n=new $d;for(r.reset(),e&&e.beginPath();!r.isEnd();)switch(r.next().type){case zi.MOVE_TO:this.pathM(e,n);break;case zi.LINE_TO:this.pathL(e,n);break;case zi.HORIZ_LINE_TO:this.pathH(e,n);break;case zi.VERT_LINE_TO:this.pathV(e,n);break;case zi.CURVE_TO:this.pathC(e,n);break;case zi.SMOOTH_CURVE_TO:this.pathS(e,n);break;case zi.QUAD_TO:this.pathQ(e,n);break;case zi.SMOOTH_QUAD_TO:this.pathT(e,n);break;case zi.ARC:this.pathA(e,n);break;case zi.CLOSE_PATH:this.pathZ(e,n);break}return n}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,r=e.getMarkerPoints(),n=e.getMarkerAngles(),o=r.map((u,f)=>[u,n[f]]);return o}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var r=this.getStyle("fill-rule");e.fillStyle!==""&&(r.getString("inherit")!=="inherit"?e.fill(r.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var o=n.length-1,u=this.getStyle("marker-start"),f=this.getStyle("marker-mid"),h=this.getStyle("marker-end");if(u.isUrlDefinition()){var A=u.getDefinition(),[p,g]=n[0];A.render(e,p,g)}if(f.isUrlDefinition())for(var y=f.getDefinition(),_=1;_<o;_++){var[b,C]=n[_];y.render(e,b,C)}if(h.isUrlDefinition()){var T=h.getDefinition(),[B,L]=n[o];T.render(e,B,L)}}}static pathM(e){var r=e.getAsCurrentPoint();return e.start=e.current,{point:r}}pathM(e,r){var{pathParser:n}=this,{point:o}=io.pathM(n),{x:u,y:f}=o;n.addMarker(o),r.addPoint(u,f),e&&e.moveTo(u,f)}static pathL(e){var{current:r}=e,n=e.getAsCurrentPoint();return{current:r,point:n}}pathL(e,r){var{pathParser:n}=this,{current:o,point:u}=io.pathL(n),{x:f,y:h}=u;n.addMarker(u,o),r.addPoint(f,h),e&&e.lineTo(f,h)}static pathH(e){var{current:r,command:n}=e,o=new Qs((n.relative?r.x:0)+n.x,r.y);return e.current=o,{current:r,point:o}}pathH(e,r){var{pathParser:n}=this,{current:o,point:u}=io.pathH(n),{x:f,y:h}=u;n.addMarker(u,o),r.addPoint(f,h),e&&e.lineTo(f,h)}static pathV(e){var{current:r,command:n}=e,o=new Qs(r.x,(n.relative?r.y:0)+n.y);return e.current=o,{current:r,point:o}}pathV(e,r){var{pathParser:n}=this,{current:o,point:u}=io.pathV(n),{x:f,y:h}=u;n.addMarker(u,o),r.addPoint(f,h),e&&e.lineTo(f,h)}static pathC(e){var{current:r}=e,n=e.getPoint("x1","y1"),o=e.getAsControlPoint("x2","y2"),u=e.getAsCurrentPoint();return{current:r,point:n,controlPoint:o,currentPoint:u}}pathC(e,r){var{pathParser:n}=this,{current:o,point:u,controlPoint:f,currentPoint:h}=io.pathC(n);n.addMarker(h,f,u),r.addBezierCurve(o.x,o.y,u.x,u.y,f.x,f.y,h.x,h.y),e&&e.bezierCurveTo(u.x,u.y,f.x,f.y,h.x,h.y)}static pathS(e){var{current:r}=e,n=e.getReflectedControlPoint(),o=e.getAsControlPoint("x2","y2"),u=e.getAsCurrentPoint();return{current:r,point:n,controlPoint:o,currentPoint:u}}pathS(e,r){var{pathParser:n}=this,{current:o,point:u,controlPoint:f,currentPoint:h}=io.pathS(n);n.addMarker(h,f,u),r.addBezierCurve(o.x,o.y,u.x,u.y,f.x,f.y,h.x,h.y),e&&e.bezierCurveTo(u.x,u.y,f.x,f.y,h.x,h.y)}static pathQ(e){var{current:r}=e,n=e.getAsControlPoint("x1","y1"),o=e.getAsCurrentPoint();return{current:r,controlPoint:n,currentPoint:o}}pathQ(e,r){var{pathParser:n}=this,{current:o,controlPoint:u,currentPoint:f}=io.pathQ(n);n.addMarker(f,u,u),r.addQuadraticCurve(o.x,o.y,u.x,u.y,f.x,f.y),e&&e.quadraticCurveTo(u.x,u.y,f.x,f.y)}static pathT(e){var{current:r}=e,n=e.getReflectedControlPoint();e.control=n;var o=e.getAsCurrentPoint();return{current:r,controlPoint:n,currentPoint:o}}pathT(e,r){var{pathParser:n}=this,{current:o,controlPoint:u,currentPoint:f}=io.pathT(n);n.addMarker(f,u,u),r.addQuadraticCurve(o.x,o.y,u.x,u.y,f.x,f.y),e&&e.quadraticCurveTo(u.x,u.y,f.x,f.y)}static pathA(e){var{current:r,command:n}=e,{rX:o,rY:u,xRot:f,lArcFlag:h,sweepFlag:A}=n,p=f*(Math.PI/180),g=e.getAsCurrentPoint(),y=new Qs(Math.cos(p)*(r.x-g.x)/2+Math.sin(p)*(r.y-g.y)/2,-Math.sin(p)*(r.x-g.x)/2+Math.cos(p)*(r.y-g.y)/2),_=Math.pow(y.x,2)/Math.pow(o,2)+Math.pow(y.y,2)/Math.pow(u,2);_>1&&(o*=Math.sqrt(_),u*=Math.sqrt(_));var b=(h===A?-1:1)*Math.sqrt((Math.pow(o,2)*Math.pow(u,2)-Math.pow(o,2)*Math.pow(y.y,2)-Math.pow(u,2)*Math.pow(y.x,2))/(Math.pow(o,2)*Math.pow(y.y,2)+Math.pow(u,2)*Math.pow(y.x,2)));isNaN(b)&&(b=0);var C=new Qs(b*o*y.y/u,b*-u*y.x/o),T=new Qs((r.x+g.x)/2+Math.cos(p)*C.x-Math.sin(p)*C.y,(r.y+g.y)/2+Math.sin(p)*C.x+Math.cos(p)*C.y),B=AY([1,0],[(y.x-C.x)/o,(y.y-C.y)/u]),L=[(y.x-C.x)/o,(y.y-C.y)/u],P=[(-y.x-C.x)/o,(-y.y-C.y)/u],I=AY(L,P);return vO(L,P)<=-1&&(I=Math.PI),vO(L,P)>=1&&(I=0),{currentPoint:g,rX:o,rY:u,sweepFlag:A,xAxisRotation:p,centp:T,a1:B,ad:I}}pathA(e,r){var{pathParser:n}=this,{currentPoint:o,rX:u,rY:f,sweepFlag:h,xAxisRotation:A,centp:p,a1:g,ad:y}=io.pathA(n),_=1-h?1:-1,b=g+_*(y/2),C=new Qs(p.x+u*Math.cos(b),p.y+f*Math.sin(b));if(n.addMarkerAngle(C,b-_*Math.PI/2),n.addMarkerAngle(o,b-_*Math.PI),r.addPoint(o.x,o.y),e&&!isNaN(g)&&!isNaN(y)){var T=u>f?u:f,B=u>f?1:u/f,L=u>f?f/u:1;e.translate(p.x,p.y),e.rotate(A),e.scale(B,L),e.arc(0,0,T,g,g+y,!!(1-h)),e.scale(1/B,1/L),e.rotate(-A),e.translate(-p.x,-p.y)}}static pathZ(e){e.current=e.start}pathZ(e,r){io.pathZ(this.pathParser),e&&r.x1!==r.x2&&r.y1!==r.y2&&e.closePath()}}class IJ extends io{constructor(e,r,n){super(e,r,n),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Tg extends Dy{constructor(e,r,n){super(e,r,new.target===Tg?!0:n),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,r);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(e.textBaseline=n)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var r=null;return this.children.forEach((n,o)=>{var u=this.getChildBoundingBox(e,this,this,o);r?r.addBoundingBox(u):r=u}),r}getFontSize(){var{document:e,parent:r}=this,n=Dc.parse(e.ctx.font).fontSize,o=r.getStyle("font-size").getNumber(n);return o}getTElementBoundingBox(e){var r=this.getFontSize();return new $d(this.x,this.y-r,this.x+this.measureText(e),this.y)}getGlyph(e,r,n){var o=r[n],u=null;if(e.isArabic){var f=r.length,h=r[n-1],A=r[n+1],p="isolated";if((n===0||h===" ")&&n<f-1&&A!==" "&&(p="terminal"),n>0&&h!==" "&&n<f-1&&A!==" "&&(p="medial"),n>0&&h!==" "&&(n===f-1||A===" ")&&(p="initial"),typeof e.glyphs[o]<"u"){var g=e.glyphs[o];u=g instanceof IJ?g:g[p]}}else u=e.glyphs[o];return u||(u=e.missingGlyph),u}getText(){return""}getTextFromNode(e){var r=e||this.node,n=Array.from(r.parentNode.childNodes),o=n.indexOf(r),u=n.length-1,f=xw(r.textContent||"");return o===0&&(f=pUe(f)),o===u&&(f=gUe(f)),f}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((n,o)=>{this.renderChild(e,this,this,o)});var{mouse:r}=this.document.screen;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:r,parent:n}=this,o=this.getText(),u=n.getStyle("font-family").getDefinition();if(u){for(var{unitsPerEm:f}=u.fontFace,h=Dc.parse(r.ctx.font),A=n.getStyle("font-size").getNumber(h.fontSize),p=n.getStyle("font-style").getString(h.fontStyle),g=A/f,y=u.isRTL?o.split("").reverse().join(""):o,_=Yf(n.getAttribute("dx").getString()),b=y.length,C=0;C<b;C++){var T=this.getGlyph(u,y,C);e.translate(this.x,this.y),e.scale(g,-g);var B=e.lineWidth;e.lineWidth=e.lineWidth*f/A,p==="italic"&&e.transform(1,0,.4,1,0,0),T.render(e),p==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=B,e.scale(1/g,-1/g),e.translate(-this.x,-this.y),this.x+=A*(T.horizAdvX||u.horizAdvX)/f,typeof _[C]<"u"&&!isNaN(_[C])&&(this.x+=_[C])}return}var{x:L,y:P}=this;e.fillStyle&&e.fillText(o,L,P),e.strokeStyle&&e.strokeText(o,L,P)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],r=e.getStyle("text-anchor").getString("start"),n=!1,o=0;r==="start"&&!n||r==="end"&&n?o=e.x-this.minX:r==="end"&&!n||r==="start"&&n?o=e.x-this.maxX:o=e.x-(this.minX+this.maxX)/2;for(var u=this.textChunkStart;u<this.leafTexts.length;u++)this.leafTexts[u].x+=o;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((r,n)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,n)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,r,n,o){var u=n.children[o];u.children.length>0?u.children.forEach((f,h)=>{r.adjustChildCoordinatesRecursiveCore(e,r,u,h)}):this.adjustChildCoordinates(e,r,n,o)}adjustChildCoordinates(e,r,n,o){var u=n.children[o];if(typeof u.measureText!="function")return u;e.save(),u.setContext(e,!0);var f=u.getAttribute("x"),h=u.getAttribute("y"),A=u.getAttribute("dx"),p=u.getAttribute("dy"),g=u.getStyle("font-family").getDefinition(),y=!!g&&g.isRTL;o===0&&(f.hasValue()||f.setValue(u.getInheritedAttribute("x")),h.hasValue()||h.setValue(u.getInheritedAttribute("y")),A.hasValue()||A.setValue(u.getInheritedAttribute("dx")),p.hasValue()||p.setValue(u.getInheritedAttribute("dy")));var _=u.measureText(e);return y&&(r.x-=_),f.hasValue()?(r.applyAnchoring(),u.x=f.getPixels("x"),A.hasValue()&&(u.x+=A.getPixels("x"))):(A.hasValue()&&(r.x+=A.getPixels("x")),u.x=r.x),r.x=u.x,y||(r.x+=_),h.hasValue()?(u.y=h.getPixels("y"),p.hasValue()&&(u.y+=p.getPixels("y"))):(p.hasValue()&&(r.y+=p.getPixels("y")),u.y=r.y),r.y=u.y,r.leafTexts.push(u),r.minX=Math.min(r.minX,u.x,u.x+_),r.maxX=Math.max(r.maxX,u.x,u.x+_),u.clearContext(e),e.restore(),u}getChildBoundingBox(e,r,n,o){var u=n.children[o];if(typeof u.getBoundingBox!="function")return null;var f=u.getBoundingBox(e);return f?(u.children.forEach((h,A)=>{var p=r.getChildBoundingBox(e,r,u,A);f.addBoundingBox(p)}),f):null}renderChild(e,r,n,o){var u=n.children[o];u.render(e),u.children.forEach((f,h)=>{r.renderChild(e,r,u,h)})}measureText(e){var{measureCache:r}=this;if(~r)return r;var n=this.getText(),o=this.measureTargetText(e,n);return this.measureCache=o,o}measureTargetText(e,r){if(!r.length)return 0;var{parent:n}=this,o=n.getStyle("font-family").getDefinition();if(o){for(var u=this.getFontSize(),f=o.isRTL?r.split("").reverse().join(""):r,h=Yf(n.getAttribute("dx").getString()),A=f.length,p=0,g=0;g<A;g++){var y=this.getGlyph(o,f,g);p+=(y.horizAdvX||o.horizAdvX)*u/o.fontFace.unitsPerEm,typeof h[g]<"u"&&!isNaN(h[g])&&(p+=h[g])}return p}if(!e.measureText)return r.length*10;e.save(),this.setContext(e,!0);var{width:_}=e.measureText(r);return this.clearContext(e),e.restore(),_}getInheritedAttribute(e){for(var r=this;r instanceof Tg&&r.isFirstChild();){var n=r.parent.getAttribute(e);if(n.hasValue(!0))return n.getValue("0");r=r.parent}return null}}class PB extends Tg{constructor(e,r,n){super(e,r,new.target===PB?!0:n),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class PHt extends PB{constructor(){super(...arguments),this.type="textNode"}}class px extends Dy{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var r,{document:n}=this,{screen:o,window:u}=n,f=e.canvas;if(o.setDefaults(e),f.style&&typeof e.font<"u"&&u&&typeof u.getComputedStyle<"u"){e.font=u.getComputedStyle(f).getPropertyValue("font");var h=new jn(n,"fontSize",Dc.parse(e.font).fontSize);h.hasValue()&&(n.rootEmSize=h.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:A,height:p}=o.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var g=this.getAttribute("refX"),y=this.getAttribute("refY"),_=this.getAttribute("viewBox"),b=_.hasValue()?Yf(_.getString()):null,C=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",T=0,B=0,L=0,P=0;b&&(T=b[0],B=b[1]),this.root||(A=this.getStyle("width").getPixels("x"),p=this.getStyle("height").getPixels("y"),this.type==="marker"&&(L=T,P=B,T=0,B=0)),o.viewPort.setCurrent(A,p),this.node&&(!this.parent||((r=this.node.parentNode)===null||r===void 0?void 0:r.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),b&&(A=b[2],p=b[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o.viewPort.width,desiredWidth:A,height:o.viewPort.height,desiredHeight:p,minX:T,minY:B,refX:g.getValue(),refY:y.getValue(),clip:C,clipX:L,clipY:P}),b&&(o.viewPort.removeCurrent(),o.viewPort.setCurrent(A,p))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.getAttribute("width",!0),u=this.getAttribute("height",!0),f=this.getAttribute("viewBox"),h=this.getAttribute("style"),A=o.getNumber(0),p=u.getNumber(0);if(n)if(typeof n=="string")this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var g=this.getAttribute("preserveAspectRatio");g.hasValue()&&g.setValue(g.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(o.setValue(e),u.setValue(r),f.hasValue()||f.setValue("0 0 ".concat(A||e," ").concat(p||r)),h.hasValue()){var y=this.getStyle("width"),_=this.getStyle("height");y.hasValue()&&y.setValue("".concat(e,"px")),_.hasValue()&&_.setValue("".concat(r,"px"))}}}class LJ extends io{constructor(){super(...arguments),this.type="rect"}path(e){var r=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),o=this.getStyle("width",!1,!0).getPixels("x"),u=this.getStyle("height",!1,!0).getPixels("y"),f=this.getAttribute("rx"),h=this.getAttribute("ry"),A=f.getPixels("x"),p=h.getPixels("y");if(f.hasValue()&&!h.hasValue()&&(p=A),h.hasValue()&&!f.hasValue()&&(A=p),A=Math.min(A,o/2),p=Math.min(p,u/2),e){var g=4*((Math.sqrt(2)-1)/3);e.beginPath(),u>0&&o>0&&(e.moveTo(r+A,n),e.lineTo(r+o-A,n),e.bezierCurveTo(r+o-A+g*A,n,r+o,n+p-g*p,r+o,n+p),e.lineTo(r+o,n+u-p),e.bezierCurveTo(r+o,n+u-p+g*p,r+o-A+g*A,n+u,r+o-A,n+u),e.lineTo(r+A,n+u),e.bezierCurveTo(r+A-g*A,n+u,r,n+u-p+g*p,r,n+u-p),e.lineTo(r,n+p),e.bezierCurveTo(r,n+p-g*p,r+A-g*A,n,r+A,n),e.closePath())}return new $d(r,n,r+o,n+u)}getMarkers(){return null}}class MUe extends io{constructor(){super(...arguments),this.type="circle"}path(e){var r=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),o=this.getAttribute("r").getPixels();return e&&o>0&&(e.beginPath(),e.arc(r,n,o,0,Math.PI*2,!1),e.closePath()),new $d(r-o,n-o,r+o,n+o)}getMarkers(){return null}}class DUe extends io{constructor(){super(...arguments),this.type="ellipse"}path(e){var r=4*((Math.sqrt(2)-1)/3),n=this.getAttribute("rx").getPixels("x"),o=this.getAttribute("ry").getPixels("y"),u=this.getAttribute("cx").getPixels("x"),f=this.getAttribute("cy").getPixels("y");return e&&n>0&&o>0&&(e.beginPath(),e.moveTo(u+n,f),e.bezierCurveTo(u+n,f+r*o,u+r*n,f+o,u,f+o),e.bezierCurveTo(u-r*n,f+o,u-n,f+r*o,u-n,f),e.bezierCurveTo(u-n,f-r*o,u-r*n,f-o,u,f-o),e.bezierCurveTo(u+r*n,f-o,u+n,f-r*o,u+n,f),e.closePath()),new $d(u-n,f-o,u+n,f+o)}getMarkers(){return null}}class RUe extends io{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Qs(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Qs(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:r,y:n},{x:o,y:u}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(r,n),e.lineTo(o,u)),new $d(r,n,o,u)}getMarkers(){var[e,r]=this.getPoints(),n=e.angleTo(r);return[[e,n],[r,n]]}}class MJ extends io{constructor(e,r,n){super(e,r,n),this.type="polyline",this.points=[],this.points=Qs.parsePath(this.getAttribute("points").getString())}path(e){var{points:r}=this,[{x:n,y:o}]=r,u=new $d(n,o);return e&&(e.beginPath(),e.moveTo(n,o)),r.forEach(f=>{var{x:h,y:A}=f;u.addPoint(h,A),e&&e.lineTo(h,A)}),u}getMarkers(){var{points:e}=this,r=e.length-1,n=[];return e.forEach((o,u)=>{u!==r&&n.push([o,o.angleTo(e[u+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}class PUe extends MJ{constructor(){super(...arguments),this.type="polygon"}path(e){var r=super.path(e),[{x:n,y:o}]=this.points;return e&&(e.lineTo(n,o),e.closePath()),r}}class OUe extends Is{constructor(){super(...arguments),this.type="pattern"}createPattern(e,r,n){var o=this.getStyle("width").getPixels("x",!0),u=this.getStyle("height").getPixels("y",!0),f=new px(this.document,null);f.attributes.viewBox=new jn(this.document,"viewBox",this.getAttribute("viewBox").getValue()),f.attributes.width=new jn(this.document,"width","".concat(o,"px")),f.attributes.height=new jn(this.document,"height","".concat(u,"px")),f.attributes.transform=new jn(this.document,"transform",this.getAttribute("patternTransform").getValue()),f.children=this.children;var h=this.document.createCanvas(o,u),A=h.getContext("2d"),p=this.getAttribute("x"),g=this.getAttribute("y");p.hasValue()&&g.hasValue()&&A.translate(p.getPixels("x",!0),g.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var y=-1;y<=1;y++)for(var _=-1;_<=1;_++)A.save(),f.attributes.x=new jn(this.document,"x",y*h.width),f.attributes.y=new jn(this.document,"y",_*h.height),f.render(A),A.restore();var b=e.createPattern(h,"repeat");return b}}class kUe extends Is{constructor(){super(...arguments),this.type="marker"}render(e,r,n){if(r){var{x:o,y:u}=r,f=this.getAttribute("orient").getString("auto"),h=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(o,u),f==="auto"&&e.rotate(n),h==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var A=new px(this.document,null);A.type=this.type,A.attributes.viewBox=new jn(this.document,"viewBox",this.getAttribute("viewBox").getValue()),A.attributes.refX=new jn(this.document,"refX",this.getAttribute("refX").getValue()),A.attributes.refY=new jn(this.document,"refY",this.getAttribute("refY").getValue()),A.attributes.width=new jn(this.document,"width",this.getAttribute("markerWidth").getValue()),A.attributes.height=new jn(this.document,"height",this.getAttribute("markerHeight").getValue()),A.attributes.overflow=new jn(this.document,"overflow",this.getAttribute("overflow").getValue()),A.attributes.fill=new jn(this.document,"fill",this.getAttribute("fill").getColor("black")),A.attributes.stroke=new jn(this.document,"stroke",this.getAttribute("stroke").getValue("none")),A.children=this.children,A.render(e),e.restore(),h==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),f==="auto"&&e.rotate(-n),e.translate(-o,-u)}}}class FUe extends Is{constructor(){super(...arguments),this.type="defs"}render(){}}class lF extends Dy{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var r=new $d;return this.children.forEach(n=>{r.addBoundingBox(n.getBoundingBox(e))}),r}}class DJ extends Is{constructor(e,r,n){super(e,r,n),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:o,children:u}=this;u.forEach(f=>{f.type==="stop"&&o.push(f)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,r,n){var o=this;this.getHrefAttribute().hasValue()&&(o=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(o));var{stops:u}=o,f=this.getGradient(e,r);if(!f)return this.addParentOpacity(n,u[u.length-1].color);if(u.forEach(B=>{f.addColorStop(B.offset,this.addParentOpacity(n,B.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:h}=this,{MAX_VIRTUAL_PIXELS:A,viewPort:p}=h.screen,[g]=p.viewPorts,y=new LJ(h,null);y.attributes.x=new jn(h,"x",-A/3),y.attributes.y=new jn(h,"y",-A/3),y.attributes.width=new jn(h,"width",A),y.attributes.height=new jn(h,"height",A);var _=new lF(h,null);_.attributes.transform=new jn(h,"transform",this.getAttribute("gradientTransform").getValue()),_.children=[y];var b=new px(h,null);b.attributes.x=new jn(h,"x",0),b.attributes.y=new jn(h,"y",0),b.attributes.width=new jn(h,"width",g.width),b.attributes.height=new jn(h,"height",g.height),b.children=[_];var C=h.createCanvas(g.width,g.height),T=C.getContext("2d");return T.fillStyle=f,b.render(T),T.createPattern(C,"no-repeat")}return f}inheritStopContainer(e){this.attributesToInherit.forEach(r=>{!this.getAttribute(r).hasValue()&&e.getAttribute(r).hasValue()&&this.getAttribute(r,!0).setValue(e.getAttribute(r).getValue())})}addParentOpacity(e,r){if(e.hasValue()){var n=new jn(this.document,"color",r);return n.addOpacity(e).getColor()}return r}}class NUe extends DJ{constructor(e,r,n){super(e,r,n),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,r){var n=this.getGradientUnits()==="objectBoundingBox",o=n?r.getBoundingBox(e):null;if(n&&!o)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var u=n?o.x+o.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),f=n?o.y+o.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),h=n?o.x+o.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),A=n?o.y+o.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return u===h&&f===A?null:e.createLinearGradient(u,f,h,A)}}class UUe extends DJ{constructor(e,r,n){super(e,r,n),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,r){var n=this.getGradientUnits()==="objectBoundingBox",o=r.getBoundingBox(e);if(n&&!o)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var u=n?o.x+o.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),f=n?o.y+o.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),h=u,A=f;this.getAttribute("fx").hasValue()&&(h=n?o.x+o.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(A=n?o.y+o.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var p=n?(o.width+o.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),g=this.getAttribute("fr").getPixels();return e.createRadialGradient(h,A,g,u,f,p)}}class HUe extends Is{constructor(e,r,n){super(e,r,n),this.type="stop";var o=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),u=this.getStyle("stop-opacity"),f=this.getStyle("stop-color",!0);f.getString()===""&&f.setValue("#000"),u.hasValue()&&(f=f.addOpacity(u)),this.offset=o,this.color=f.getColor()}}class uF extends Is{constructor(e,r,n){super(e,r,n),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new jn(e,"values",null);var o=this.getAttribute("values");o.hasValue()&&this.values.setValue(o.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),r=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(r,!0):this.parent.getAttribute(r,!0)}calcValue(){var{initialUnits:e}=this,{progress:r,from:n,to:o}=this.getProgress(),u=n.getNumber()+(o.getNumber()-n.getNumber())*r;return e==="%"&&(u*=100),"".concat(u).concat(e)}update(e){var{parent:r}=this,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var o=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(o==="freeze"&&!this.frozen)this.frozen=!0,r.animationFrozen=!0,r.animationFrozenValue=n.getString();else if(o==="remove"&&!this.removed)return this.removed=!0,n.setValue(r.animationFrozen?r.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var u=!1;if(this.begin<this.duration){var f=this.calcValue(),h=this.getAttribute("type");if(h.hasValue()){var A=h.getString();f="".concat(A,"(").concat(f,")")}n.setValue(f),u=!0}return u}getProgress(){var{document:e,values:r}=this,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(r.hasValue()){var o=n.progress*(r.getValue().length-1),u=Math.floor(o),f=Math.ceil(o);n.from=new jn(e,"from",parseFloat(r.getValue()[u])),n.to=new jn(e,"to",parseFloat(r.getValue()[f])),n.progress=(o-u)/(f-u)}else n.from=this.from,n.to=this.to;return n}}class QUe extends uF{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:r,to:n}=this.getProgress(),o=new fY(r.getColor()),u=new fY(n.getColor());if(o.ok&&u.ok){var f=o.r+(u.r-o.r)*e,h=o.g+(u.g-o.g)*e,A=o.b+(u.b-o.b)*e;return"rgb(".concat(Math.floor(f),", ").concat(Math.floor(h),", ").concat(Math.floor(A),")")}return this.getAttribute("from").getColor()}}class VUe extends uF{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:r,to:n}=this.getProgress(),o=Yf(r.getString()),u=Yf(n.getString()),f=o.map((h,A)=>{var p=u[A];return h+(p-h)*e}).join(" ");return f}}class zUe extends Is{constructor(e,r,n){super(e,r,n),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:o}=e,{children:u}=this;for(var f of u)switch(f.type){case"font-face":{this.fontFace=f;var h=f.getStyle("font-family");h.hasValue()&&(o[h.getString()]=this);break}case"missing-glyph":this.missingGlyph=f;break;case"glyph":{var A=f;A.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[A.unicode]>"u"&&(this.glyphs[A.unicode]=Object.create(null)),this.glyphs[A.unicode][A.arabicForm]=A):this.glyphs[A.unicode]=A;break}}}render(){}}class GUe extends Is{constructor(e,r,n){super(e,r,n),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class jUe extends io{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class qUe extends Tg{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var r=e.children[0];if(r)return r.getText()}return""}}class WUe extends Tg{constructor(e,r,n){super(e,r,n),this.type="a";var{childNodes:o}=r,u=o[0],f=o.length>0&&Array.from(o).every(h=>h.nodeType===3);this.hasText=f,this.text=f?this.getTextFromNode(u):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:r,x:n,y:o}=this,{mouse:u}=r.screen,f=new jn(r,"fontSize",Dc.parse(r.ctx.font).fontSize);u.isWorking()&&u.checkBoundingBox(this,new $d(n,o-f.getPixels("y"),n+this.measureText(e),o))}else if(this.children.length>0){var h=new lF(this.document,null);h.children=this.children,h.parent=this,h.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}function T2e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function h5(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?T2e(Object(r),!0).forEach(function(n){sa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T2e(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}class $Ue extends Tg{constructor(e,r,n){super(e,r,n),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var o=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(o)}getText(){return this.text}path(e){var{dataArray:r}=this;e&&e.beginPath(),r.forEach(n=>{var{type:o,points:u}=n;switch(o){case zi.LINE_TO:e&&e.lineTo(u[0],u[1]);break;case zi.MOVE_TO:e&&e.moveTo(u[0],u[1]);break;case zi.CURVE_TO:e&&e.bezierCurveTo(u[0],u[1],u[2],u[3],u[4],u[5]);break;case zi.QUAD_TO:e&&e.quadraticCurveTo(u[0],u[1],u[2],u[3]);break;case zi.ARC:{var[f,h,A,p,g,y,_,b]=u,C=A>p?A:p,T=A>p?1:A/p,B=A>p?p/A:1;e&&(e.translate(f,h),e.rotate(_),e.scale(T,B),e.arc(0,0,C,g,g+y,!!(1-b)),e.scale(1/T,1/B),e.rotate(-_),e.translate(-f,-h));break}case zi.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var r=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),{glyphInfo:o}=this,u=e.fillStyle;r==="underline"&&e.beginPath(),o.forEach((f,h)=>{var{p0:A,p1:p,rotation:g,text:y}=f;e.save(),e.translate(A.x,A.y),e.rotate(g),e.fillStyle&&e.fillText(y,0,0),e.strokeStyle&&e.strokeText(y,0,0),e.restore(),r==="underline"&&(h===0&&e.moveTo(A.x,A.y+n/8),e.lineTo(p.x,p.y+n/5))}),r==="underline"&&(e.lineWidth=n/20,e.strokeStyle=u,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,r,n,o,u,f,h,A,p){var g=f,y=this.measureText(e,A);A===" "&&r==="justify"&&n<o&&(y+=(o-n)/u),p>-1&&(g+=this.getLetterSpacingAt(p));var _=this.textHeight/20,b=this.getEquidistantPointOnPath(g,_,0),C=this.getEquidistantPointOnPath(g+y,_,0),T={p0:b,p1:C},B=b&&C?Math.atan2(C.y-b.y,C.x-b.x):0;if(h){var L=Math.cos(Math.PI/2+B)*h,P=Math.cos(-B)*h;T.p0=h5(h5({},b),{},{x:b.x+L,y:b.y+P}),T.p1=h5(h5({},C),{},{x:C.x+L,y:C.y+P})}return g+=y,{offset:g,segment:T,rotation:B}}measureText(e,r){var{measuresCache:n}=this,o=r||this.getText();if(n.has(o))return n.get(o);var u=this.measureTargetText(e,o);return n.set(o,u),u}setTextData(e){if(!this.glyphInfo){var r=this.getText(),n=r.split(""),o=r.split(" ").length-1,u=this.parent.getAttribute("dx").split().map(O=>O.getPixels("x")),f=this.parent.getAttribute("dy").getPixels("y"),h=this.parent.getStyle("text-anchor").getString("start"),A=this.getStyle("letter-spacing"),p=this.parent.getStyle("letter-spacing"),g=0;!A.hasValue()||A.getValue()==="inherit"?g=p.getPixels():A.hasValue()&&A.getValue()!=="initial"&&A.getValue()!=="unset"&&(g=A.getPixels());var y=[],_=r.length;this.letterSpacingCache=y;for(var b=0;b<_;b++)y.push(typeof u[b]<"u"?u[b]:g);var C=y.reduce((O,U,N)=>N===0?0:O+U||0,0),T=this.measureText(e),B=Math.max(T+C,0);this.textWidth=T,this.textHeight=this.getFontSize(),this.glyphInfo=[];var L=this.getPathLength(),P=this.getStyle("startOffset").getNumber(0)*L,I=0;(h==="middle"||h==="center")&&(I=-B/2),(h==="end"||h==="right")&&(I=-B),I+=P,n.forEach((O,U)=>{var{offset:N,segment:H,rotation:z}=this.findSegmentToFitChar(e,h,B,L,o,I,f,O,U);I=N,!(!H.p0||!H.p1)&&this.glyphInfo.push({text:n[U],p0:H.p0,p1:H.p1,rotation:z})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var r=[],{pathParser:n}=e;for(n.reset();!n.isEnd();){var{current:o}=n,u=o?o.x:0,f=o?o.y:0,h=n.next(),A=h.type,p=[];switch(h.type){case zi.MOVE_TO:this.pathM(n,p);break;case zi.LINE_TO:A=this.pathL(n,p);break;case zi.HORIZ_LINE_TO:A=this.pathH(n,p);break;case zi.VERT_LINE_TO:A=this.pathV(n,p);break;case zi.CURVE_TO:this.pathC(n,p);break;case zi.SMOOTH_CURVE_TO:A=this.pathS(n,p);break;case zi.QUAD_TO:this.pathQ(n,p);break;case zi.SMOOTH_QUAD_TO:A=this.pathT(n,p);break;case zi.ARC:p=this.pathA(n);break;case zi.CLOSE_PATH:io.pathZ(n);break}h.type!==zi.CLOSE_PATH?r.push({type:A,points:p,start:{x:u,y:f},pathLength:this.calcLength(u,f,A,p)}):r.push({type:zi.CLOSE_PATH,points:[],pathLength:0})}return r}pathM(e,r){var{x:n,y:o}=io.pathM(e).point;r.push(n,o)}pathL(e,r){var{x:n,y:o}=io.pathL(e).point;return r.push(n,o),zi.LINE_TO}pathH(e,r){var{x:n,y:o}=io.pathH(e).point;return r.push(n,o),zi.LINE_TO}pathV(e,r){var{x:n,y:o}=io.pathV(e).point;return r.push(n,o),zi.LINE_TO}pathC(e,r){var{point:n,controlPoint:o,currentPoint:u}=io.pathC(e);r.push(n.x,n.y,o.x,o.y,u.x,u.y)}pathS(e,r){var{point:n,controlPoint:o,currentPoint:u}=io.pathS(e);return r.push(n.x,n.y,o.x,o.y,u.x,u.y),zi.CURVE_TO}pathQ(e,r){var{controlPoint:n,currentPoint:o}=io.pathQ(e);r.push(n.x,n.y,o.x,o.y)}pathT(e,r){var{controlPoint:n,currentPoint:o}=io.pathT(e);return r.push(n.x,n.y,o.x,o.y),zi.QUAD_TO}pathA(e){var{rX:r,rY:n,sweepFlag:o,xAxisRotation:u,centp:f,a1:h,ad:A}=io.pathA(e);return o===0&&A>0&&(A-=2*Math.PI),o===1&&A<0&&(A+=2*Math.PI),[f.x,f.y,r,n,h,A,u,o]}calcLength(e,r,n,o){var u=0,f=null,h=null,A=0;switch(n){case zi.LINE_TO:return this.getLineLength(e,r,o[0],o[1]);case zi.CURVE_TO:for(u=0,f=this.getPointOnCubicBezier(0,e,r,o[0],o[1],o[2],o[3],o[4],o[5]),A=.01;A<=1;A+=.01)h=this.getPointOnCubicBezier(A,e,r,o[0],o[1],o[2],o[3],o[4],o[5]),u+=this.getLineLength(f.x,f.y,h.x,h.y),f=h;return u;case zi.QUAD_TO:for(u=0,f=this.getPointOnQuadraticBezier(0,e,r,o[0],o[1],o[2],o[3]),A=.01;A<=1;A+=.01)h=this.getPointOnQuadraticBezier(A,e,r,o[0],o[1],o[2],o[3]),u+=this.getLineLength(f.x,f.y,h.x,h.y),f=h;return u;case zi.ARC:{u=0;var p=o[4],g=o[5],y=o[4]+g,_=Math.PI/180;if(Math.abs(p-y)<_&&(_=Math.abs(p-y)),f=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],p,0),g<0)for(A=p-_;A>y;A-=_)h=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],A,0),u+=this.getLineLength(f.x,f.y,h.x,h.y),f=h;else for(A=p+_;A<y;A+=_)h=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],A,0),u+=this.getLineLength(f.x,f.y,h.x,h.y),f=h;return h=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],y,0),u+=this.getLineLength(f.x,f.y,h.x,h.y),u}}return 0}getPointOnLine(e,r,n,o,u){var f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:r,h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:n,A=(u-n)/(o-r+j1),p=Math.sqrt(e*e/(1+A*A));o<r&&(p*=-1);var g=A*p,y=null;if(o===r)y={x:f,y:h+g};else if((h-n)/(f-r+j1)===A)y={x:f+p,y:h+g};else{var _=0,b=0,C=this.getLineLength(r,n,o,u);if(C<j1)return null;var T=(f-r)*(o-r)+(h-n)*(u-n);T/=C*C,_=r+T*(o-r),b=n+T*(u-n);var B=this.getLineLength(f,h,_,b),L=Math.sqrt(e*e-B*B);p=Math.sqrt(L*L/(1+A*A)),o<r&&(p*=-1),g=A*p,y={x:_+p,y:b+g}}return y}getPointOnPath(e){var r=this.getPathLength(),n=0,o=null;if(e<-5e-5||e-5e-5>r)return null;var{dataArray:u}=this;for(var f of u){if(f&&(f.pathLength<5e-5||n+f.pathLength+5e-5<e)){n+=f.pathLength;continue}var h=e-n,A=0;switch(f.type){case zi.LINE_TO:o=this.getPointOnLine(h,f.start.x,f.start.y,f.points[0],f.points[1],f.start.x,f.start.y);break;case zi.ARC:{var p=f.points[4],g=f.points[5],y=f.points[4]+g;if(A=p+h/f.pathLength*g,g<0&&A<y||g>=0&&A>y)break;o=this.getPointOnEllipticalArc(f.points[0],f.points[1],f.points[2],f.points[3],A,f.points[6]);break}case zi.CURVE_TO:A=h/f.pathLength,A>1&&(A=1),o=this.getPointOnCubicBezier(A,f.start.x,f.start.y,f.points[0],f.points[1],f.points[2],f.points[3],f.points[4],f.points[5]);break;case zi.QUAD_TO:A=h/f.pathLength,A>1&&(A=1),o=this.getPointOnQuadraticBezier(A,f.start.x,f.start.y,f.points[0],f.points[1],f.points[2],f.points[3]);break}if(o)return o;break}return null}getLineLength(e,r,n,o){return Math.sqrt((n-e)*(n-e)+(o-r)*(o-r))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,r)=>r.pathLength>0?e+r.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,r,n,o,u,f,h,A,p){var g=A*vY(e)+f*pY(e)+o*gY(e)+r*mY(e),y=p*vY(e)+h*pY(e)+u*gY(e)+n*mY(e);return{x:g,y}}getPointOnQuadraticBezier(e,r,n,o,u,f,h){var A=f*yY(e)+o*wY(e)+r*bY(e),p=h*yY(e)+u*wY(e)+n*bY(e);return{x:A,y:p}}getPointOnEllipticalArc(e,r,n,o,u,f){var h=Math.cos(f),A=Math.sin(f),p={x:n*Math.cos(u),y:o*Math.sin(u)};return{x:e+(p.x*h-p.y*A),y:r+(p.x*A+p.y*h)}}buildEquidistantCache(e,r){var n=this.getPathLength(),o=r||.25,u=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==u||this.equidistantCache.precision!==o){this.equidistantCache={step:u,precision:o,points:[]};for(var f=0,h=0;h<=n;h+=o){var A=this.getPointOnPath(h),p=this.getPointOnPath(h+o);!A||!p||(f+=this.getLineLength(A.x,A.y,p.x,p.y),f>=u&&(this.equidistantCache.points.push({x:A.x,y:A.y,distance:h}),f-=u))}}}getEquidistantPointOnPath(e,r,n){if(this.buildEquidistantCache(r,n),e<0||e-this.getPathLength()>5e-5)return null;var o=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[o]||null}}var OHt=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class KUe extends Dy{constructor(e,r,n){super(e,r,n),this.type="image",this.loaded=!1;var o=this.getHrefAttribute().getString();if(o){var u=o.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(o);e.images.push(this),u?this.loadSvg(o):this.loadImage(o),this.isSvg=u}}loadImage(e){var r=this;return Cg(function*(){try{var n=yield r.document.createImage(e);r.image=n}catch(o){console.error('Error while loading image "'.concat(e,'":'),o)}r.loaded=!0})()}loadSvg(e){var r=this;return Cg(function*(){var n=OHt.exec(e);if(n){var o=n[5];n[4]==="base64"?r.image=atob(o):r.image=decodeURIComponent(o)}else try{var u=yield r.document.fetch(e),f=yield u.text();r.image=f}catch(h){console.error('Error while loading image "'.concat(e,'":'),h)}r.loaded=!0})()}renderChildren(e){var{document:r,image:n,loaded:o}=this,u=this.getAttribute("x").getPixels("x"),f=this.getAttribute("y").getPixels("y"),h=this.getStyle("width").getPixels("x"),A=this.getStyle("height").getPixels("y");if(!(!o||!n||!h||!A)){if(e.save(),e.translate(u,f),this.isSvg){var p=r.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:h,scaleHeight:A});p.document.documentElement.parent=this,p.render()}else{var g=this.image;r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:h,desiredWidth:g.width,height:A,desiredHeight:g.height}),this.loaded&&(typeof g.complete>"u"||g.complete)&&e.drawImage(g,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");return new $d(e,r,e+n,r+o)}}class YUe extends Dy{constructor(){super(...arguments),this.type="symbol"}render(e){}}class XUe{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,r){var n=this;return Cg(function*(){try{var{document:o}=n,u=yield o.canvg.parser.load(r),f=u.getElementsByTagName("font");Array.from(f).forEach(h=>{var A=o.createElement(h);o.definitions[e]=A})}catch(h){console.error('Error while loading font "'.concat(r,'":'),h)}n.loaded=!0})()}}class RJ extends Is{constructor(e,r,n){super(e,r,n),this.type="style";var o=xw(Array.from(r.childNodes).map(f=>f.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),u=o.split("}");u.forEach(f=>{var h=f.trim();if(h){var A=h.split("{"),p=A[0].split(","),g=A[1].split(";");p.forEach(y=>{var _=y.trim();if(_){var b=e.styles[_]||{};if(g.forEach(B=>{var L=B.indexOf(":"),P=B.substr(0,L).trim(),I=B.substr(L+1,B.length-L).trim();P&&I&&(b[P]=new jn(e,P,I))}),e.styles[_]=b,e.stylesSpecificity[_]=wUe(_),_==="@font-face"){var C=b["font-family"].getString().replace(/"|'/g,""),T=b.src.getString().split(",");T.forEach(B=>{if(B.indexOf('format("svg")')>0){var L=TJ(B);L&&new XUe(e).load(C,L)}})}}})}})}}RJ.parseExternalUrl=TJ;class ZUe extends Dy{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var r=this.getAttribute("x"),n=this.getAttribute("y");r.hasValue()&&e.translate(r.getPixels("x"),0),n.hasValue()&&e.translate(0,n.getPixels("y"))}path(e){var{element:r}=this;r&&r.path(e)}renderChildren(e){var{document:r,element:n}=this;if(n){var o=n;if(n.type==="symbol"&&(o=new px(r,null),o.attributes.viewBox=new jn(r,"viewBox",n.getAttribute("viewBox").getString()),o.attributes.preserveAspectRatio=new jn(r,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),o.attributes.overflow=new jn(r,"overflow",n.getAttribute("overflow").getString()),o.children=n.children,n.styles.opacity=new jn(r,"opacity",this.calculateOpacity())),o.type==="svg"){var u=this.getStyle("width",!1,!0),f=this.getStyle("height",!1,!0);u.hasValue()&&(o.attributes.width=new jn(r,"width",u.getString())),f.hasValue()&&(o.attributes.height=new jn(r,"height",f.getString()))}var h=o.parent;o.parent=this,o.render(e),o.parent=h}}getBoundingBox(e){var{element:r}=this;return r?r.getBoundingBox(e):null}elementTransform(){var{document:e,element:r}=this;return Cy.fromElement(e,r)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function d5(t,e,r,n,o,u){return t[r*n*4+e*4+u]}function A5(t,e,r,n,o,u,f){t[r*n*4+e*4+u]=f}function Dl(t,e,r){var n=t[e];return n*r}function ng(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}class PJ extends Is{constructor(e,r,n){super(e,r,n),this.type="feColorMatrix";var o=Yf(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var u=o[0];o=[.213+.787*u,.715-.715*u,.072-.072*u,0,0,.213-.213*u,.715+.285*u,.072-.072*u,0,0,.213-.213*u,.715-.715*u,.072+.928*u,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var f=o[0]*Math.PI/180;o=[ng(f,.213,.787,-.213),ng(f,.715,-.715,-.715),ng(f,.072,-.072,.928),0,0,ng(f,.213,-.213,.143),ng(f,.715,.285,.14),ng(f,.072,-.072,-.283),0,0,ng(f,.213,-.213,-.787),ng(f,.715,-.715,.715),ng(f,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=o,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,r,n,o,u){for(var{includeOpacity:f,matrix:h}=this,A=e.getImageData(0,0,o,u),p=0;p<u;p++)for(var g=0;g<o;g++){var y=d5(A.data,g,p,o,u,0),_=d5(A.data,g,p,o,u,1),b=d5(A.data,g,p,o,u,2),C=d5(A.data,g,p,o,u,3),T=Dl(h,0,y)+Dl(h,1,_)+Dl(h,2,b)+Dl(h,3,C)+Dl(h,4,1),B=Dl(h,5,y)+Dl(h,6,_)+Dl(h,7,b)+Dl(h,8,C)+Dl(h,9,1),L=Dl(h,10,y)+Dl(h,11,_)+Dl(h,12,b)+Dl(h,13,C)+Dl(h,14,1),P=Dl(h,15,y)+Dl(h,16,_)+Dl(h,17,b)+Dl(h,18,C)+Dl(h,19,1);f&&(T=0,B=0,L=0,P*=C/255),A5(A.data,g,p,o,u,0,T),A5(A.data,g,p,o,u,1,B),A5(A.data,g,p,o,u,2,L),A5(A.data,g,p,o,u,3,P)}e.clearRect(0,0,o,u),e.putImageData(A,0,0)}}class OB extends Is{constructor(){super(...arguments),this.type="mask"}apply(e,r){var{document:n}=this,o=this.getAttribute("x").getPixels("x"),u=this.getAttribute("y").getPixels("y"),f=this.getStyle("width").getPixels("x"),h=this.getStyle("height").getPixels("y");if(!f&&!h){var A=new $d;this.children.forEach(C=>{A.addBoundingBox(C.getBoundingBox(e))}),o=Math.floor(A.x1),u=Math.floor(A.y1),f=Math.floor(A.width),h=Math.floor(A.height)}var p=this.removeStyles(r,OB.ignoreStyles),g=n.createCanvas(o+f,u+h),y=g.getContext("2d");n.screen.setDefaults(y),this.renderChildren(y),new PJ(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(y,0,0,o+f,u+h);var _=n.createCanvas(o+f,u+h),b=_.getContext("2d");n.screen.setDefaults(b),r.render(b),b.globalCompositeOperation="destination-in",b.fillStyle=y.createPattern(g,"no-repeat"),b.fillRect(0,0,o+f,u+h),e.fillStyle=b.createPattern(_,"no-repeat"),e.fillRect(0,0,o+f,u+h),this.restoreStyles(r,p)}render(e){}}OB.ignoreStyles=["mask","transform","clip-path"];var E2e=()=>{};class JUe extends Is{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:r}=this,n=Reflect.getPrototypeOf(e),{beginPath:o,closePath:u}=e;n&&(n.beginPath=E2e,n.closePath=E2e),Reflect.apply(o,e,[]),this.children.forEach(f=>{if(!(typeof f.path>"u")){var h=typeof f.elementTransform<"u"?f.elementTransform():null;h||(h=Cy.fromElement(r,f)),h&&h.apply(e),f.path(e),n&&(n.closePath=u),h&&h.unapply(e)}}),Reflect.apply(u,e,[]),e.clip(),n&&(n.beginPath=o,n.closePath=u)}render(e){}}class kB extends Is{constructor(){super(...arguments),this.type="filter"}apply(e,r){var{document:n,children:o}=this,u=r.getBoundingBox(e);if(u){var f=0,h=0;o.forEach(L=>{var P=L.extraFilterDistance||0;f=Math.max(f,P),h=Math.max(h,P)});var A=Math.floor(u.width),p=Math.floor(u.height),g=A+2*f,y=p+2*h;if(!(g<1||y<1)){var _=Math.floor(u.x),b=Math.floor(u.y),C=this.removeStyles(r,kB.ignoreStyles),T=n.createCanvas(g,y),B=T.getContext("2d");n.screen.setDefaults(B),B.translate(-_+f,-b+h),r.render(B),o.forEach(L=>{typeof L.apply=="function"&&L.apply(B,0,0,g,y)}),e.drawImage(T,0,0,g,y,_-f,b-h,g,y),this.restoreStyles(r,C)}}}render(e){}}kB.ignoreStyles=["filter","transform","clip-path"];class e4e extends Is{constructor(e,r,n){super(e,r,n),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,r,n,o,u){}}class t4e extends Is{constructor(){super(...arguments),this.type="feMorphology"}apply(e,r,n,o,u){}}class r4e extends Is{constructor(){super(...arguments),this.type="feComposite"}apply(e,r,n,o,u){}}class n4e extends Is{constructor(e,r,n){super(e,r,n),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,r,n,o,u){var{document:f,blurRadius:h}=this,A=f.window?f.window.document.body:null,p=e.canvas;p.id=f.getUniqueId(),A&&(p.style.display="none",A.appendChild(p)),hHt(p,r,n,o,u,h),A&&A.removeChild(p)}}class i4e extends Is{constructor(){super(...arguments),this.type="title"}}class a4e extends Is{constructor(){super(...arguments),this.type="desc"}}var kHt={svg:px,rect:LJ,circle:MUe,ellipse:DUe,line:RUe,polyline:MJ,polygon:PUe,path:io,pattern:OUe,marker:kUe,defs:FUe,linearGradient:NUe,radialGradient:UUe,stop:HUe,animate:uF,animateColor:QUe,animateTransform:VUe,font:zUe,"font-face":GUe,"missing-glyph":jUe,glyph:IJ,text:Tg,tspan:PB,tref:qUe,a:WUe,textPath:$Ue,image:KUe,g:lF,symbol:YUe,style:RJ,use:ZUe,mask:OB,clipPath:JUe,filter:kB,feDropShadow:e4e,feMorphology:t4e,feComposite:r4e,feColorMatrix:PJ,feGaussianBlur:n4e,title:i4e,desc:a4e};function B2e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function FHt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?B2e(Object(r),!0).forEach(function(n){sa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):B2e(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function NHt(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r}function UHt(t){return SY.apply(this,arguments)}function SY(){return SY=Cg(function*(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise((n,o)=>{r.onload=()=>{n(r)},r.onerror=(u,f,h,A,p)=>{o(p)},r.src=t})}),SY.apply(this,arguments)}class pg{constructor(e){var{rootEmSize:r=12,emSize:n=12,createCanvas:o=pg.createCanvas,createImage:u=pg.createImage,anonymousCrossOrigin:f}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=r,this.emSize=n,this.createCanvas=o,this.createImage=this.bindCreateImage(u,f),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,r){return typeof r=="boolean"?(n,o)=>e(n,typeof o=="boolean"?o:r):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:r}=this;r.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var r=this.createElement(e.documentElement);return r.root=!0,r.addStylesFromStyleDefinition(),this.documentElement=r,r}createElement(e){var r=e.nodeName.replace(/^[^:]+:/,""),n=pg.elementTypes[r];return typeof n<"u"?new n(this,e):new LUe(this,e)}createTextNode(e){return new PHt(this,e)}setViewBox(e){this.screen.setViewBox(FHt({document:this},e))}}pg.createCanvas=NHt;pg.createImage=UHt;pg.elementTypes=kHt;function I2e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function d1(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?I2e(Object(r),!0).forEach(function(n){sa(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I2e(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}class P1{constructor(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new MR(n),this.screen=new RB(e,n),this.options=n;var o=new pg(this,n),u=o.createDocumentElement(r);this.document=o,this.documentElement=u}static from(e,r){var n=arguments;return Cg(function*(){var o=n.length>2&&n[2]!==void 0?n[2]:{},u=new MR(o),f=yield u.parse(r);return new P1(e,f,o)})()}static fromString(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=new MR(n),u=o.parseFromString(r);return new P1(e,u,n)}fork(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return P1.from(e,r,d1(d1({},this.options),n))}forkString(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return P1.fromString(e,r,d1(d1({},this.options),n))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,r=this;return Cg(function*(){var n=e.length>0&&e[0]!==void 0?e[0]:{};r.start(d1({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),yield r.ready(),r.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:r,screen:n,options:o}=this;n.start(r,d1(d1({enableRedraw:!0},o),e))}stop(){this.screen.stop()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,r,n)}}const HHt=Object.freeze(Object.defineProperty({__proto__:null,AElement:WUe,AnimateColorElement:QUe,AnimateElement:uF,AnimateTransformElement:VUe,BoundingBox:$d,CB1:vY,CB2:pY,CB3:gY,CB4:mY,Canvg:P1,CircleElement:MUe,ClipPathElement:JUe,DefsElement:FUe,DescElement:a4e,Document:pg,Element:Is,EllipseElement:DUe,FeColorMatrixElement:PJ,FeCompositeElement:r4e,FeDropShadowElement:e4e,FeGaussianBlurElement:n4e,FeMorphologyElement:t4e,FilterElement:kB,Font:Dc,FontElement:zUe,FontFaceElement:GUe,GElement:lF,GlyphElement:IJ,GradientElement:DJ,ImageElement:KUe,LineElement:RUe,LinearGradientElement:NUe,MarkerElement:kUe,MaskElement:OB,Matrix:EJ,MissingGlyphElement:jUe,Mouse:_Ue,PSEUDO_ZERO:j1,Parser:MR,PathElement:io,PathParser:zi,PatternElement:OUe,Point:Qs,PolygonElement:PUe,PolylineElement:MJ,Property:jn,QB1:yY,QB2:wY,QB3:bY,RadialGradientElement:UUe,RectElement:LJ,RenderedElement:Dy,Rotate:TUe,SVGElement:px,SVGFontLoader:XUe,Scale:EUe,Screen:RB,Skew:BJ,SkewX:BUe,SkewY:IUe,StopElement:HUe,StyleElement:RJ,SymbolElement:YUe,TRefElement:qUe,TSpanElement:PB,TextElement:Tg,TextPathElement:$Ue,TitleElement:i4e,Transform:Cy,Translate:CUe,UnknownElement:LUe,UseElement:ZUe,ViewPort:bUe,compressSpaces:xw,default:P1,getSelectorSpecificity:wUe,normalizeAttributeName:mUe,normalizeColor:yUe,parseExternalUrl:TJ,presets:gHt,toNumbers:Yf,trimLeft:pUe,trimRight:gUe,vectorMagnitude:dY,vectorsAngle:AY,vectorsRatio:vO},Symbol.toStringTag,{value:"Module"}));var v5={exports:{}},L2e;function QHt(){return L2e||(L2e=1,function(t,e){var r=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Gf<"u"&&Gf,n=function(){function u(){this.fetch=!1,this.DOMException=r.DOMException}return u.prototype=r,new u}();(function(u){(function(f){var h=typeof u<"u"&&u||typeof self<"u"&&self||typeof h<"u"&&h,A={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function p(K){return K&&DataView.prototype.isPrototypeOf(K)}if(A.arrayBuffer)var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],y=ArrayBuffer.isView||function(K){return K&&g.indexOf(Object.prototype.toString.call(K))>-1};function _(K){if(typeof K!="string"&&(K=String(K)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(K)||K==="")throw new TypeError('Invalid character in header field name: "'+K+'"');return K.toLowerCase()}function b(K){return typeof K!="string"&&(K=String(K)),K}function C(K){var ce={next:function(){var ae=K.shift();return{done:ae===void 0,value:ae}}};return A.iterable&&(ce[Symbol.iterator]=function(){return ce}),ce}function T(K){this.map={},K instanceof T?K.forEach(function(ce,ae){this.append(ae,ce)},this):Array.isArray(K)?K.forEach(function(ce){this.append(ce[0],ce[1])},this):K&&Object.getOwnPropertyNames(K).forEach(function(ce){this.append(ce,K[ce])},this)}T.prototype.append=function(K,ce){K=_(K),ce=b(ce);var ae=this.map[K];this.map[K]=ae?ae+", "+ce:ce},T.prototype.delete=function(K){delete this.map[_(K)]},T.prototype.get=function(K){return K=_(K),this.has(K)?this.map[K]:null},T.prototype.has=function(K){return this.map.hasOwnProperty(_(K))},T.prototype.set=function(K,ce){this.map[_(K)]=b(ce)},T.prototype.forEach=function(K,ce){for(var ae in this.map)this.map.hasOwnProperty(ae)&&K.call(ce,this.map[ae],ae,this)},T.prototype.keys=function(){var K=[];return this.forEach(function(ce,ae){K.push(ae)}),C(K)},T.prototype.values=function(){var K=[];return this.forEach(function(ce){K.push(ce)}),C(K)},T.prototype.entries=function(){var K=[];return this.forEach(function(ce,ae){K.push([ae,ce])}),C(K)},A.iterable&&(T.prototype[Symbol.iterator]=T.prototype.entries);function B(K){if(K.bodyUsed)return Promise.reject(new TypeError("Already read"));K.bodyUsed=!0}function L(K){return new Promise(function(ce,ae){K.onload=function(){ce(K.result)},K.onerror=function(){ae(K.error)}})}function P(K){var ce=new FileReader,ae=L(ce);return ce.readAsArrayBuffer(K),ae}function I(K){var ce=new FileReader,ae=L(ce);return ce.readAsText(K),ae}function O(K){for(var ce=new Uint8Array(K),ae=new Array(ce.length),le=0;le<ce.length;le++)ae[le]=String.fromCharCode(ce[le]);return ae.join("")}function U(K){if(K.slice)return K.slice(0);var ce=new Uint8Array(K.byteLength);return ce.set(new Uint8Array(K)),ce.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(K){this.bodyUsed=this.bodyUsed,this._bodyInit=K,K?typeof K=="string"?this._bodyText=K:A.blob&&Blob.prototype.isPrototypeOf(K)?this._bodyBlob=K:A.formData&&FormData.prototype.isPrototypeOf(K)?this._bodyFormData=K:A.searchParams&&URLSearchParams.prototype.isPrototypeOf(K)?this._bodyText=K.toString():A.arrayBuffer&&A.blob&&p(K)?(this._bodyArrayBuffer=U(K.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):A.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(K)||y(K))?this._bodyArrayBuffer=U(K):this._bodyText=K=Object.prototype.toString.call(K):this._bodyText="",this.headers.get("content-type")||(typeof K=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):A.searchParams&&URLSearchParams.prototype.isPrototypeOf(K)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},A.blob&&(this.blob=function(){var K=B(this);if(K)return K;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var K=B(this);return K||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(P)}),this.text=function(){var K=B(this);if(K)return K;if(this._bodyBlob)return I(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(O(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},A.formData&&(this.formData=function(){return this.text().then(j)}),this.json=function(){return this.text().then(JSON.parse)},this}var H=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function z(K){var ce=K.toUpperCase();return H.indexOf(ce)>-1?ce:K}function G(K,ce){if(!(this instanceof G))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');ce=ce||{};var ae=ce.body;if(K instanceof G){if(K.bodyUsed)throw new TypeError("Already read");this.url=K.url,this.credentials=K.credentials,ce.headers||(this.headers=new T(K.headers)),this.method=K.method,this.mode=K.mode,this.signal=K.signal,!ae&&K._bodyInit!=null&&(ae=K._bodyInit,K.bodyUsed=!0)}else this.url=String(K);if(this.credentials=ce.credentials||this.credentials||"same-origin",(ce.headers||!this.headers)&&(this.headers=new T(ce.headers)),this.method=z(ce.method||this.method||"GET"),this.mode=ce.mode||this.mode||null,this.signal=ce.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ae)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(ae),(this.method==="GET"||this.method==="HEAD")&&(ce.cache==="no-store"||ce.cache==="no-cache")){var le=/([?&])_=[^&]*/;if(le.test(this.url))this.url=this.url.replace(le,"$1_="+new Date().getTime());else{var pe=/\?/;this.url+=(pe.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}G.prototype.clone=function(){return new G(this,{body:this._bodyInit})};function j(K){var ce=new FormData;return K.trim().split("&").forEach(function(ae){if(ae){var le=ae.split("="),pe=le.shift().replace(/\+/g," "),ie=le.join("=").replace(/\+/g," ");ce.append(decodeURIComponent(pe),decodeURIComponent(ie))}}),ce}function q(K){var ce=new T,ae=K.replace(/\r?\n[\t ]+/g," ");return ae.split("\r").map(function(le){return le.indexOf(`
`)===0?le.substr(1,le.length):le}).forEach(function(le){var pe=le.split(":"),ie=pe.shift().trim();if(ie){var he=pe.join(":").trim();ce.append(ie,he)}}),ce}N.call(G.prototype);function X(K,ce){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');ce||(ce={}),this.type="default",this.status=ce.status===void 0?200:ce.status,this.ok=this.status>=200&&this.status<300,this.statusText=ce.statusText===void 0?"":""+ce.statusText,this.headers=new T(ce.headers),this.url=ce.url||"",this._initBody(K)}N.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new T(this.headers),url:this.url})},X.error=function(){var K=new X(null,{status:0,statusText:""});return K.type="error",K};var Y=[301,302,303,307,308];X.redirect=function(K,ce){if(Y.indexOf(ce)===-1)throw new RangeError("Invalid status code");return new X(null,{status:ce,headers:{location:K}})},f.DOMException=h.DOMException;try{new f.DOMException}catch{f.DOMException=function(ce,ae){this.message=ce,this.name=ae;var le=Error(ce);this.stack=le.stack},f.DOMException.prototype=Object.create(Error.prototype),f.DOMException.prototype.constructor=f.DOMException}function te(K,ce){return new Promise(function(ae,le){var pe=new G(K,ce);if(pe.signal&&pe.signal.aborted)return le(new f.DOMException("Aborted","AbortError"));var ie=new XMLHttpRequest;function he(){ie.abort()}ie.onload=function(){var oe={status:ie.status,statusText:ie.statusText,headers:q(ie.getAllResponseHeaders()||"")};oe.url="responseURL"in ie?ie.responseURL:oe.headers.get("X-Request-URL");var ye="response"in ie?ie.response:ie.responseText;setTimeout(function(){ae(new X(ye,oe))},0)},ie.onerror=function(){setTimeout(function(){le(new TypeError("Network request failed"))},0)},ie.ontimeout=function(){setTimeout(function(){le(new TypeError("Network request failed"))},0)},ie.onabort=function(){setTimeout(function(){le(new f.DOMException("Aborted","AbortError"))},0)};function re(oe){try{return oe===""&&h.location.href?h.location.href:oe}catch{return oe}}ie.open(pe.method,re(pe.url),!0),pe.credentials==="include"?ie.withCredentials=!0:pe.credentials==="omit"&&(ie.withCredentials=!1),"responseType"in ie&&(A.blob?ie.responseType="blob":A.arrayBuffer&&pe.headers.get("Content-Type")&&pe.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(ie.responseType="arraybuffer")),ce&&typeof ce.headers=="object"&&!(ce.headers instanceof T)?Object.getOwnPropertyNames(ce.headers).forEach(function(oe){ie.setRequestHeader(oe,b(ce.headers[oe]))}):pe.headers.forEach(function(oe,ye){ie.setRequestHeader(ye,oe)}),pe.signal&&(pe.signal.addEventListener("abort",he),ie.onreadystatechange=function(){ie.readyState===4&&pe.signal.removeEventListener("abort",he)}),ie.send(typeof pe._bodyInit>"u"?null:pe._bodyInit)})}return te.polyfill=!0,h.fetch||(h.fetch=te,h.Headers=T,h.Request=G,h.Response=X),f.Headers=T,f.Request=G,f.Response=X,f.fetch=te,f})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var o=r.fetch?r:n;e=o.fetch,e.default=o.fetch,e.fetch=o.fetch,e.Headers=o.Headers,e.Request=o.Request,e.Response=o.Response,t.exports=e}(v5,v5.exports)),v5.exports}var o4e=QHt();const VHt=Dn(o4e),zHt=ml({__proto__:null,default:VHt},[o4e]);export{v8t as $,s8t as A,e8t as B,c8t as C,u8t as D,Drt as E,i8t as F,o8t as G,l8t as H,h8t as I,Cit as J,Tit as K,Urt as L,QS as M,mBe as N,DO as O,bnt as P,Lnt as Q,K2 as R,Oh as S,Ort as T,_Be as U,Fnt as V,fit as W,d8t as X,Rnt as Y,A8t as Z,Dn as _,UQt as a,U8t as a$,_it as a0,jrt as a1,Lit as a2,vf as a3,p8t as a4,vBe as a5,Bit as a6,g8t as a7,xJe as a8,Q2 as a9,D8t as aA,M8t as aB,KT as aC,I8t as aD,rft as aE,_ct as aF,Fct as aG,Vct as aH,Kct as aI,Uct as aJ,jct as aK,Dct as aL,nLe as aM,dIe as aN,act as aO,tct as aP,nct as aQ,R8t as aR,Cge as aS,P8t as aT,$Ie as aU,_dt as aV,O8t as aW,k8t as aX,N8t as aY,G8t as aZ,J8t as a_,m8t as aa,Uit as ab,y8t as ac,w8t as ad,xit as ae,b8t as af,eX as ag,mst as ah,_8t as ai,put as aj,zct as ak,rLe as al,lct as am,oct as an,mct as ao,Aw as ap,S8t as aq,Aut as ar,x8t as as,C8t as at,T8t as au,B8t as av,WIe as aw,L8t as ax,Er as ay,Sn as az,qQt as b,U2 as b$,F8t as b0,z8t as b1,V8t as b2,Q8t as b3,Z8t as b4,H8t as b5,Dpt as b6,ogt as b7,tQt as b8,kdt as b9,Bo as bA,Pi as bB,AQt as bC,a9 as bD,zn as bE,gQt as bF,pQt as bG,e2 as bH,hQt as bI,vQt as bJ,gf as bK,X2t as bL,dBt as bM,wQt as bN,SQt as bO,mQt as bP,f2t as bQ,cQt as bR,_Qt as bS,QBt as bT,htt as bU,LY as bV,yNt as bW,jHt as bX,RQt as bY,PQt as bZ,bQt as b_,Adt as ba,eQt as bb,M5 as bc,nQt as bd,rQt as be,aQt as bf,X8t as bg,J1 as bh,j8t as bi,K8t as bj,Y8t as bk,$8t as bl,W8t as bm,oQt as bn,PMe as bo,uQt as bp,sQt as bq,iQt as br,Ts as bs,MQt as bt,th as bu,DQt as bv,WHt as bw,GHt as bx,Fmt as by,fQt as bz,OQt as c,EQt as c0,TQt as c1,BQt as c2,IQt as c3,xQt as c4,LQt as c5,CQt as c6,$Ht as c7,w1 as c8,KHt as c9,Ett as ca,YHt as cb,Hs as cc,XHt as cd,uu as ce,qHt as cf,ZHt as cg,kQt as d,FQt as e,NQt as f,$Qt as g,QQt as h,zQt as i,GQt as j,YQt as k,XQt as l,ZQt as m,xO as n,t8t as o,jQt as p,r8t as q,WQt as r,HQt as s,KQt as t,Gn as u,VQt as v,Ae as w,f8t as x,n8t as y,a8t as z};
//# sourceMappingURL=vendor-Q8f6fy5u.js.map