SHA256
335 lines
2.0 MiB
Plaintext
335 lines
2.0 MiB
Plaintext
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.6`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.6`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},z=[],B=-1;function V(e){return{current:e}}function H(e){0>B||(e.current=z[B],z[B]=null,B--)}function U(e,t){B++,z[B]=e.current,e.current=t}var ee=V(null),te=V(null),W=V(null),ne=V(null);function re(e,t){switch(U(W,t),U(te,e),U(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Jd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Jd(t),e=Yd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}H(ee),U(ee,e)}function ie(){H(ee),H(te),H(W)}function ae(e){e.memoizedState!==null&&U(ne,e);var t=ee.current,n=Yd(t,e.type);t!==n&&(U(te,e),U(ee,n))}function oe(e){te.current===e&&(H(ee),H(te)),ne.current===e&&(H(ne),ap._currentValue=R)}var se,ce;function le(e){if(se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);se=t&&t[1]||``,ce=-1<e.stack.indexOf(`
|
||
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
||
`+se+e+ce}var ue=!1;function de(e,t){if(!e||ue)return``;ue=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
||
`),l=s.split(`
|
||
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
||
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ue=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?le(n):``}function fe(e,t){switch(e.tag){case 26:case 27:case 5:return le(e.type);case 16:return le(`Lazy`);case 13:return e.child!==t&&t!==null?le(`Suspense Fallback`):le(`Suspense`);case 19:return le(`SuspenseList`);case 0:case 15:return de(e.type,!1);case 11:return de(e.type.render,!1);case 1:return de(e.type,!0);case 31:return le(`Activity`);default:return``}}function pe(e){try{var t=``,n=null;do t+=fe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
||
Error generating stack: `+e.message+`
|
||
`+e.stack}}var me=Object.prototype.hasOwnProperty,he=t.unstable_scheduleCallback,ge=t.unstable_cancelCallback,_e=t.unstable_shouldYield,ve=t.unstable_requestPaint,ye=t.unstable_now,be=t.unstable_getCurrentPriorityLevel,xe=t.unstable_ImmediatePriority,Se=t.unstable_UserBlockingPriority,Ce=t.unstable_NormalPriority,we=t.unstable_LowPriority,Te=t.unstable_IdlePriority,Ee=t.log,De=t.unstable_setDisableYieldValue,Oe=null,ke=null;function Ae(e){if(typeof Ee==`function`&&De(e),ke&&typeof ke.setStrictMode==`function`)try{ke.setStrictMode(Oe,e)}catch{}}var je=Math.clz32?Math.clz32:Pe,Me=Math.log,Ne=Math.LN2;function Pe(e){return e>>>=0,e===0?32:31-(Me(e)/Ne|0)|0}var Fe=256,Ie=262144,Le=4194304;function Re(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function G(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Re(n))):i=Re(o):i=Re(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Re(n))):i=Re(o)):i=Re(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Be(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ve(){var e=Le;return Le<<=1,!(Le&62914560)&&(Le=4194304),e}function He(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ue(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function We(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-je(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ge(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ge(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-je(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ke(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-je(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function qe(e,t){var n=t&-t;return n=n&42?1:Je(n),(n&(e.suspendedLanes|t))===0?n:0}function Je(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ye(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Xe(){var e=L.p;return e===0?(e=window.event,e===void 0?32:xp(e.type)):e}function Ze(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var Qe=Math.random().toString(36).slice(2),$e=`__reactFiber$`+Qe,et=`__reactProps$`+Qe,tt=`__reactContainer$`+Qe,nt=`__reactEvents$`+Qe,rt=`__reactListeners$`+Qe,it=`__reactHandles$`+Qe,at=`__reactResources$`+Qe,ot=`__reactMarker$`+Qe;function st(e){delete e[$e],delete e[et],delete e[nt],delete e[rt],delete e[it]}function ct(e){var t=e[$e];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tt]||n[$e]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vf(e);e!==null;){if(n=e[$e])return n;e=vf(e)}return t}e=n,n=e.parentNode}return null}function lt(e){if(e=e[$e]||e[tt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ut(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function dt(e){var t=e[at];return t||=e[at]={hoistableStyles:new Map,hoistableScripts:new Map},t}function ft(e){e[ot]=!0}var pt=new Set,mt={};function ht(e,t){gt(e,t),gt(e+`Capture`,t)}function gt(e,t){for(mt[e]=t,e=0;e<t.length;e++)pt.add(t[e])}var _t=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),vt={},yt={};function bt(e){return me.call(yt,e)?!0:me.call(vt,e)?!1:_t.test(e)?yt[e]=!0:(vt[e]=!0,!1)}function xt(e,t,n){if(bt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function St(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Ct(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function wt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Tt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Et(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dt(e){if(!e._valueTracker){var t=Tt(e)?`checked`:`value`;e._valueTracker=Et(e,t,``+e[t])}}function Ot(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Tt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function kt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var At=/[\n"\\]/g;function jt(e){return e.replace(At,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Mt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+wt(t)):e.value!==``+wt(t)&&(e.value=``+wt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Pt(e,o,wt(n)):Pt(e,o,wt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+wt(s):e.removeAttribute(`name`)}function Nt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Dt(e);return}n=n==null?``:``+wt(n),t=t==null?n:``+wt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Dt(e)}function Pt(e,t,n){t===`number`&&kt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ft(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+wt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function It(e,t,n){if(t!=null&&(t=``+wt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+wt(n)}function Lt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(F(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=wt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Dt(e)}function Rt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var zt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Bt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||zt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function K(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Bt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Bt(e,o,t[o])}function Vt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Ht=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Ut=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Wt(e){return Ut.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Gt(){}var Kt=null;function qt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jt=null,Yt=null;function Xt(e){var t=lt(e);if(t&&(e=t.stateNode)){var n=e[et]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Mt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+jt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[et]||null;if(!a)throw Error(i(90));Mt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ot(r)}break a;case`textarea`:It(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ft(e,!!n.multiple,t,!1)}}}var Zt=!1;function Qt(e,t,n){if(Zt)return e(t,n);Zt=!0;try{return e(t)}finally{if(Zt=!1,(Jt!==null||Yt!==null)&&(wu(),Jt&&(t=Jt,e=Yt,Yt=Jt=null,Xt(t),e)))for(t=0;t<e.length;t++)Xt(e[t])}}function $t(e,t){var n=e.stateNode;if(n===null)return null;var r=n[et]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var en=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),tn=!1;if(en)try{var nn={};Object.defineProperty(nn,`passive`,{get:function(){tn=!0}}),window.addEventListener(`test`,nn,nn),window.removeEventListener(`test`,nn,nn)}catch{tn=!1}var rn=null,an=null,on=null;function sn(){if(on)return on;var e,t=an,n=t.length,r,i=`value`in rn?rn.value:rn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return on=i.slice(e,1<r?1-r:void 0)}function cn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ln(){return!0}function un(){return!1}function dn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?ln:un,this.isPropagationStopped=un,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=ln)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=ln)},persist:function(){},isPersistent:ln}),t}var fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=dn(fn),mn=m({},fn,{view:0,detail:0}),hn=dn(mn),gn,_n,vn,yn=m({},mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==vn&&(vn&&e.type===`mousemove`?(gn=e.screenX-vn.screenX,_n=e.screenY-vn.screenY):_n=gn=0,vn=e),gn)},movementY:function(e){return`movementY`in e?e.movementY:_n}}),bn=dn(yn),xn=dn(m({},yn,{dataTransfer:0})),Sn=dn(m({},mn,{relatedTarget:0})),Cn=dn(m({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=dn(m({},fn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Tn=dn(m({},fn,{data:0})),En={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Dn={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`},On={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=On[e])?!!t[e]:!1}function An(){return kn}var jn=dn(m({},mn,{key:function(e){if(e.key){var t=En[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=cn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Dn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return e.type===`keypress`?cn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?cn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Mn=dn(m({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=dn(m({},mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),Pn=dn(m({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Fn=dn(m({},yn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),In=dn(m({},fn,{newState:0,oldState:0})),Ln=[9,13,27,32],Rn=en&&`CompositionEvent`in window,zn=null;en&&`documentMode`in document&&(zn=document.documentMode);var Bn=en&&`TextEvent`in window&&!zn,Vn=en&&(!Rn||zn&&8<zn&&11>=zn),Hn=` `,Un=!1;function Wn(e,t){switch(e){case`keyup`:return Ln.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Gn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Kn=!1;function qn(e,t){switch(e){case`compositionend`:return Gn(t);case`keypress`:return t.which===32?(Un=!0,Hn):null;case`textInput`:return e=t.data,e===Hn&&Un?null:e;default:return null}}function Jn(e,t){if(Kn)return e===`compositionend`||!Rn&&Wn(e,t)?(e=sn(),on=an=rn=null,Kn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Vn&&t.locale!==`ko`?null:t.data;default:return null}}var Yn={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 Xn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Yn[e.type]:t===`textarea`}function Zn(e,t,n,r){Jt?Yt?Yt.push(r):Yt=[r]:Jt=r,t=Md(t,`onChange`),0<t.length&&(n=new pn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Qn=null,$n=null;function er(e){wd(e,0)}function tr(e){if(Ot(ut(e)))return e}function nr(e,t){if(e===`change`)return t}var rr=!1;if(en){var ir;if(en){var ar=`oninput`in document;if(!ar){var or=document.createElement(`div`);or.setAttribute(`oninput`,`return;`),ar=typeof or.oninput==`function`}ir=ar}else ir=!1;rr=ir&&(!document.documentMode||9<document.documentMode)}function sr(){Qn&&(Qn.detachEvent(`onpropertychange`,cr),$n=Qn=null)}function cr(e){if(e.propertyName===`value`&&tr($n)){var t=[];Zn(t,$n,e,qt(e)),Qt(er,t)}}function lr(e,t,n){e===`focusin`?(sr(),Qn=t,$n=n,Qn.attachEvent(`onpropertychange`,cr)):e===`focusout`&&sr()}function ur(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return tr($n)}function dr(e,t){if(e===`click`)return tr(t)}function fr(e,t){if(e===`input`||e===`change`)return tr(t)}function pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var mr=typeof Object.is==`function`?Object.is:pr;function hr(e,t){if(mr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!me.call(t,i)||!mr(e[i],t[i]))return!1}return!0}function gr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _r(e,t){var n=gr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=gr(n)}}function vr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=kt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=kt(e.document)}return t}function br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var xr=en&&`documentMode`in document&&11>=document.documentMode,Sr=null,Cr=null,wr=null,Tr=!1;function Er(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tr||Sr==null||Sr!==kt(r)||(r=Sr,`selectionStart`in r&&br(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wr&&hr(wr,r)||(wr=r,r=Md(Cr,`onSelect`),0<r.length&&(t=new pn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Sr)))}function Dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Or={animationend:Dr(`Animation`,`AnimationEnd`),animationiteration:Dr(`Animation`,`AnimationIteration`),animationstart:Dr(`Animation`,`AnimationStart`),transitionrun:Dr(`Transition`,`TransitionRun`),transitionstart:Dr(`Transition`,`TransitionStart`),transitioncancel:Dr(`Transition`,`TransitionCancel`),transitionend:Dr(`Transition`,`TransitionEnd`)},kr={},Ar={};en&&(Ar=document.createElement(`div`).style,`AnimationEvent`in window||(delete Or.animationend.animation,delete Or.animationiteration.animation,delete Or.animationstart.animation),`TransitionEvent`in window||delete Or.transitionend.transition);function jr(e){if(kr[e])return kr[e];if(!Or[e])return e;var t=Or[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ar)return kr[e]=t[n];return e}var Mr=jr(`animationend`),Nr=jr(`animationiteration`),Pr=jr(`animationstart`),Fr=jr(`transitionrun`),Ir=jr(`transitionstart`),Lr=jr(`transitioncancel`),Rr=jr(`transitionend`),zr=new Map,Br=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Br.push(`scrollEnd`);function Vr(e,t){zr.set(e,t),ht(t,[e])}var Hr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Ur=[],Wr=0,Gr=0;function Kr(){for(var e=Wr,t=Gr=Wr=0;t<e;){var n=Ur[t];Ur[t++]=null;var r=Ur[t];Ur[t++]=null;var i=Ur[t];Ur[t++]=null;var a=Ur[t];if(Ur[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Xr(n,i,a)}}function qr(e,t,n,r){Ur[Wr++]=e,Ur[Wr++]=t,Ur[Wr++]=n,Ur[Wr++]=r,Gr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Jr(e,t,n,r){return qr(e,t,n,r),Zr(e)}function Yr(e,t){return qr(e,null,null,t),Zr(e)}function Xr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-je(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Zr(e){if(50<hu)throw hu=0,gu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Qr={};function $r(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ei(e,t,n,r){return new $r(e,t,n,r)}function ti(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ni(e,t){var n=e.alternate;return n===null?(n=ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ri(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ii(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ti(e)&&(s=1);else if(typeof e==`string`)s=Xf(e,n,ee.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ei(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return ai(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ei(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ei(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ei(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ei(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ai(e,t,n,r){return e=ei(7,e,r,t),e.lanes=n,e}function oi(e,t,n){return e=ei(6,e,null,t),e.lanes=n,e}function si(e){var t=ei(18,null,null,0);return t.stateNode=e,t}function ci(e,t,n){return t=ei(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var li=new WeakMap;function ui(e,t){if(typeof e==`object`&&e){var n=li.get(e);return n===void 0?(t={value:e,source:t,stack:pe(t)},li.set(e,t),t):n}return{value:e,source:t,stack:pe(t)}}var di=[],fi=0,pi=null,mi=0,hi=[],gi=0,_i=null,vi=1,yi=``;function bi(e,t){di[fi++]=mi,di[fi++]=pi,pi=e,mi=t}function xi(e,t,n){hi[gi++]=vi,hi[gi++]=yi,hi[gi++]=_i,_i=e;var r=vi;e=yi;var i=32-je(r)-1;r&=~(1<<i),n+=1;var a=32-je(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,vi=1<<32-je(t)+i|n<<i|r,yi=a+e}else vi=1<<a|n<<i|r,yi=e}function Si(e){e.return!==null&&(bi(e,1),xi(e,1,0))}function Ci(e){for(;e===pi;)pi=di[--fi],di[fi]=null,mi=di[--fi],di[fi]=null;for(;e===_i;)_i=hi[--gi],hi[gi]=null,yi=hi[--gi],hi[gi]=null,vi=hi[--gi],hi[gi]=null}function wi(e,t){hi[gi++]=vi,hi[gi++]=yi,hi[gi++]=_i,vi=t.id,yi=t.overflow,_i=e}var Ti=null,Ei=null,Di=!1,Oi=null,ki=!1,Ai=Error(i(519));function ji(e){throw Li(ui(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ai}function Mi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[$e]=e,t[et]=r,n){case`dialog`:Td(`cancel`,t),Td(`close`,t);break;case`iframe`:case`object`:case`embed`:Td(`load`,t);break;case`video`:case`audio`:for(n=0;n<Sd.length;n++)Td(Sd[n],t);break;case`source`:Td(`error`,t);break;case`img`:case`image`:case`link`:Td(`error`,t),Td(`load`,t);break;case`details`:Td(`toggle`,t);break;case`input`:Td(`invalid`,t),Nt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Td(`invalid`,t);break;case`textarea`:Td(`invalid`,t),Lt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Rd(t.textContent,n)?(r.popover!=null&&(Td(`beforetoggle`,t),Td(`toggle`,t)),r.onScroll!=null&&Td(`scroll`,t),r.onScrollEnd!=null&&Td(`scrollend`,t),r.onClick!=null&&(t.onclick=Gt),t=!0):t=!1,t||ji(e,!0)}function Ni(e){for(Ti=e.return;Ti;)switch(Ti.tag){case 5:case 31:case 13:ki=!1;return;case 27:case 3:ki=!0;return;default:Ti=Ti.return}}function Pi(e){if(e!==Ti)return!1;if(!Di)return Ni(e),Di=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Xd(e.type,e.memoizedProps)),n=!n),n&&Ei&&ji(e),Ni(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ei=_f(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ei=_f(e)}else t===27?(t=Ei,af(e.type)?(e=gf,gf=null,Ei=e):Ei=t):Ei=Ti?hf(e.stateNode.nextSibling):null;return!0}function Fi(){Ei=Ti=null,Di=!1}function Ii(){var e=Oi;return e!==null&&(tu===null?tu=e:tu.push.apply(tu,e),Oi=null),e}function Li(e){Oi===null?Oi=[e]:Oi.push(e)}var Ri=V(null),zi=null,Bi=null;function Vi(e,t,n){U(Ri,t._currentValue),t._currentValue=n}function Hi(e){e._currentValue=Ri.current,H(Ri)}function Ui(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Wi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ui(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ui(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Gi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;mr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ne.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ap]:e.push(ap))}a=a.return}e!==null&&Wi(t,e,n,r),t.flags|=262144}function Ki(e){for(e=e.firstContext;e!==null;){if(!mr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qi(e){zi=e,Bi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ji(e){return Xi(zi,e)}function Yi(e,t){return zi===null&&qi(e),Xi(e,t)}function Xi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Bi===null){if(e===null)throw Error(i(308));Bi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Bi=Bi.next=t;return n}var Zi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Qi=t.unstable_scheduleCallback,$i=t.unstable_NormalPriority,ea={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ta(){return{controller:new Zi,data:new Map,refCount:0}}function na(e){e.refCount--,e.refCount===0&&Qi($i,function(){e.controller.abort()})}var ra=null,ia=0,aa=0,oa=null;function sa(e,t){if(ra===null){var n=ra=[];ia=0,aa=gd(),oa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ia++,t.then(ca,ca),t}function ca(){if(--ia===0&&ra!==null){oa!==null&&(oa.status=`fulfilled`);var e=ra;ra=null,aa=0,oa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function la(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ua=I.S;I.S=function(e,t){iu=ye(),typeof t==`object`&&t&&typeof t.then==`function`&&sa(e,t),ua!==null&&ua(e,t)};var da=V(null);function fa(){var e=da.current;return e===null?zl.pooledCache:e}function pa(e,t){t===null?U(da,da.current):U(da,t.pool)}function ma(){var e=fa();return e===null?null:{parent:ea._currentValue,pool:e}}var ha=Error(i(460)),ga=Error(i(474)),_a=Error(i(542)),va={then:function(){}};function ya(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ba(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Gt,Gt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,wa(e),e;default:if(typeof t.status==`string`)t.then(Gt,Gt);else{if(e=zl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,wa(e),e}throw Sa=t,ha}}function xa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Sa=e,ha):e}}var Sa=null;function Ca(){if(Sa===null)throw Error(i(459));var e=Sa;return Sa=null,e}function wa(e){if(e===ha||e===_a)throw Error(i(483))}var Ta=null,Ea=0;function Da(e){var t=Ea;return Ea+=1,Ta===null&&(Ta=[]),ba(Ta,e,t)}function Oa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ka(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Aa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ni(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=oi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&xa(i)===t.type)?(t=a(t,n.props),Oa(t,n),t.return=e,t):(t=ii(n.type,n.key,n.props,null,e.mode,r),Oa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=ci(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ai(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=oi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=ii(t.type,t.key,t.props,null,e.mode,n),Oa(n,t),n.return=e,n;case v:return t=ci(t,e.mode,n),t.return=e,t;case O:return t=xa(t),f(e,t,n)}if(F(t)||M(t))return t=ai(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Da(t),n);if(t.$$typeof===C)return f(e,Yi(e,t),n);ka(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=xa(n),p(e,t,n,r)}if(F(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Da(n),r);if(n.$$typeof===C)return p(e,t,Yi(e,n),r);ka(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=xa(r),m(e,t,n,r,i)}if(F(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Da(r),i);if(r.$$typeof===C)return m(e,t,n,Yi(t,r),i);ka(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Di&&bi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Di&&bi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Di&&bi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Di&&bi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Di&&bi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Di&&bi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&xa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Oa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=ai(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ii(o.type,o.key,o.props,null,e.mode,c),Oa(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=ci(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=xa(o),b(e,r,o,c)}if(F(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Da(o),c);if(o.$$typeof===C)return b(e,r,Yi(e,o),c);ka(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=oi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ea=0;var i=b(e,t,n,r);return Ta=null,i}catch(t){if(t===ha||t===_a)throw t;var a=ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ja=Aa(!0),Ma=Aa(!1),Na=!1;function Pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Rl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Zr(e),Xr(e,null,n),t}return qr(e,r,t,n),Zr(e)}function Ra(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}function za(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ba=!1;function Va(){if(Ba){var e=oa;if(e!==null)throw e}}function Ha(e,t,n,r){Ba=!1;var i=e.updateQueue;Na=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Vl&f)===f:(r&f)===f){f!==0&&f===aa&&(Ba=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Na=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Yl|=o,e.lanes=o,e.memoizedState=d}}function Ua(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Wa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ua(n[e],t)}var Ga=V(null),Ka=V(0);function qa(e,t){e=ql,U(Ka,e),U(Ga,t),ql=e|t.baseLanes}function Ja(){U(Ka,ql),U(Ga,Ga.current)}function Ya(){ql=Ka.current,H(Ga),H(Ka)}var Xa=V(null),Za=null;function Qa(e){var t=e.alternate;U(ro,ro.current&1),U(Xa,e),Za===null&&(t===null||Ga.current!==null||t.memoizedState!==null)&&(Za=e)}function $a(e){U(ro,ro.current),U(Xa,e),Za===null&&(Za=e)}function eo(e){e.tag===22?(U(ro,ro.current),U(Xa,e),Za===null&&(Za=e)):to(e)}function to(){U(ro,ro.current),U(Xa,Xa.current)}function no(e){H(Xa),Za===e&&(Za=null),H(ro)}var ro=V(0);function io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ff(n)||pf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ao=0,oo=null,so=null,co=null,lo=!1,uo=!1,fo=!1,po=0,mo=0,ho=null,go=0;function _o(){throw Error(i(321))}function vo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mr(e[n],t[n]))return!1;return!0}function yo(e,t,n,r,i,a){return ao=a,oo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Is:Ls,fo=!1,a=n(r,i),fo=!1,uo&&(a=xo(t,n,r,i)),bo(e),a}function bo(e){I.H=Fs;var t=so!==null&&so.next!==null;if(ao=0,co=so=oo=null,lo=!1,mo=0,ho=null,t)throw Error(i(300));e===null||ec||(e=e.dependencies,e!==null&&Ki(e)&&(ec=!0))}function xo(e,t,n,r){oo=e;var a=0;do{if(uo&&(ho=null),mo=0,uo=!1,25<=a)throw Error(i(301));if(a+=1,co=so=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}I.H=Rs,o=t(n,r)}while(uo);return o}function So(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?ko(t):t,e=e.useState()[0],(so===null?null:so.memoizedState)!==e&&(oo.flags|=1024),t}function Co(){var e=po!==0;return po=0,e}function wo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function To(e){if(lo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lo=!1}ao=0,co=so=oo=null,uo=!1,mo=po=0,ho=null}function Eo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return co===null?oo.memoizedState=co=e:co=co.next=e,co}function Do(){if(so===null){var e=oo.alternate;e=e===null?null:e.memoizedState}else e=so.next;var t=co===null?oo.memoizedState:co.next;if(t!==null)co=t,so=e;else{if(e===null)throw oo.alternate===null?Error(i(467)):Error(i(310));so=e,e={memoizedState:so.memoizedState,baseState:so.baseState,baseQueue:so.baseQueue,queue:so.queue,next:null},co===null?oo.memoizedState=co=e:co=co.next=e}return co}function Oo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ko(e){var t=mo;return mo+=1,ho===null&&(ho=[]),e=ba(ho,e,t),t=oo,(co===null?t.memoizedState:co.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Is:Ls),e}function Ao(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ko(e);if(e.$$typeof===C)return Ji(e)}throw Error(i(438,String(e)))}function jo(e){var t=null,n=oo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=oo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Oo(),oo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function Mo(e,t){return typeof t==`function`?t(e):t}function No(e){return Po(Do(),so,e)}function Po(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(ao&f)===f:(Vl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===aa&&(d=!0);else if((ao&p)===p){u=u.next,p===aa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,oo.lanes|=p,Yl|=p;f=u.action,fo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,oo.lanes|=f,Yl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!mr(o,e.memoizedState)&&(ec=!0,d&&(n=oa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Fo(e){var t=Do(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);mr(o,t.memoizedState)||(ec=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Io(e,t,n){var r=oo,a=Do(),o=Di;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!mr((so||a).memoizedState,n);if(s&&(a.memoizedState=n,ec=!0),a=a.queue,ss(zo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||co!==null&&co.memoizedState.tag&1){if(r.flags|=2048,ns(9,{destroy:void 0},Ro.bind(null,r,a,n,t),null),zl===null)throw Error(i(349));o||ao&127||Lo(r,t,n)}return n}function Lo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oo.updateQueue,t===null?(t=Oo(),oo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ro(e,t,n,r){t.value=n,t.getSnapshot=r,Bo(t)&&Vo(e)}function zo(e,t,n){return n(function(){Bo(t)&&Vo(e)})}function Bo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mr(e,n)}catch{return!0}}function Vo(e){var t=Yr(e,2);t!==null&&yu(t,e,2)}function Ho(e){var t=Eo();if(typeof e==`function`){var n=e;if(e=n(),fo){Ae(!0);try{n()}finally{Ae(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:e},t}function Uo(e,t,n,r){return e.baseState=n,Po(e,so,typeof r==`function`?r:Mo)}function Wo(e,t,n,r,a){if(Ms(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};I.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Go(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Go(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),Ko(e,t,s)}catch(n){Jo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),Ko(e,t,a)}catch(n){Jo(e,t,n)}}function Ko(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){qo(e,t,n)},function(n){return Jo(e,t,n)}):qo(e,t,n)}function qo(e,t,n){t.status=`fulfilled`,t.value=n,Yo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Go(e,n)))}function Jo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Yo(t),t=t.next;while(t!==r)}e.action=null}function Yo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xo(e,t){return t}function Zo(e,t){if(Di){var n=zl.formState;if(n!==null){a:{var r=oo;if(Di){if(Ei){b:{for(var i=Ei,a=ki;i.nodeType!==8;){if(!a){i=null;break b}if(i=hf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ei=hf(i.nextSibling),r=i.data===`F!`;break a}}ji(r)}r=!1}r&&(t=n[0])}}return n=Eo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:t},n.queue=r,n=ks.bind(null,oo,r),r.dispatch=n,r=Ho(!1),a=js.bind(null,oo,!1,r.queue),r=Eo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Wo.bind(null,oo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Qo(e){return $o(Do(),so,e)}function $o(e,t,n){if(t=Po(e,t,Xo)[0],e=No(Mo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ko(t)}catch(e){throw e===ha?_a:e}else r=t;t=Do();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(oo.flags|=2048,ns(9,{destroy:void 0},es.bind(null,i,n),null)),[r,a,e]}function es(e,t){e.action=t}function ts(e){var t=Do(),n=so;if(n!==null)return $o(t,n,e);Do(),t=t.memoizedState,n=Do();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ns(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=oo.updateQueue,t===null&&(t=Oo(),oo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function rs(){return Do().memoizedState}function is(e,t,n,r){var i=Eo();oo.flags|=e,i.memoizedState=ns(1|t,{destroy:void 0},n,r===void 0?null:r)}function as(e,t,n,r){var i=Do();r=r===void 0?null:r;var a=i.memoizedState.inst;so!==null&&r!==null&&vo(r,so.memoizedState.deps)?i.memoizedState=ns(t,a,n,r):(oo.flags|=e,i.memoizedState=ns(1|t,a,n,r))}function os(e,t){is(8390656,8,e,t)}function ss(e,t){as(2048,8,e,t)}function cs(e){oo.flags|=4;var t=oo.updateQueue;if(t===null)t=Oo(),oo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ls(e){var t=Do().memoizedState;return cs({ref:t,nextImpl:e}),function(){if(Rl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function us(e,t){return as(4,2,e,t)}function ds(e,t){return as(4,4,e,t)}function fs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ps(e,t,n){n=n==null?null:n.concat([e]),as(4,4,fs.bind(null,t,e),n)}function ms(){}function hs(e,t){var n=Do();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&vo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gs(e,t){var n=Do();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&vo(t,r[1]))return r[0];if(r=e(),fo){Ae(!0);try{e()}finally{Ae(!1)}}return n.memoizedState=[r,t],r}function _s(e,t,n){return n===void 0||ao&1073741824&&!(Vl&261930)?e.memoizedState=t:(e.memoizedState=n,e=vu(),oo.lanes|=e,Yl|=e,n)}function vs(e,t,n,r){return mr(n,t)?n:Ga.current===null?!(ao&42)||ao&1073741824&&!(Vl&261930)?(ec=!0,e.memoizedState=n):(e=vu(),oo.lanes|=e,Yl|=e,t):(e=_s(e,n,r),mr(e,t)||(ec=!0),e)}function ys(e,t,n,r,i){var a=L.p;L.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,js(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?As(e,t,la(c,r),_u(e)):As(e,t,r,_u(e))}catch(n){As(e,t,{then:function(){},status:`rejected`,reason:n},_u())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function bs(){}function xs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ss(e).queue;ys(e,a,t,R,n===null?bs:function(){return Cs(e),n(r)})}function Ss(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:R},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cs(e){var t=Ss(e);t.next===null&&(t=e.alternate.memoizedState),As(e,t.next.queue,{},_u())}function ws(){return Ji(ap)}function Ts(){return Do().memoizedState}function Es(){return Do().memoizedState}function Ds(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=_u();e=Ia(n);var r=La(t,e,n);r!==null&&(yu(r,t,n),Ra(r,t,n)),t={cache:ta()},e.payload=t;return}t=t.return}}function Os(e,t,n){var r=_u();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ms(e)?Ns(t,n):(n=Jr(e,t,n,r),n!==null&&(yu(n,e,r),Ps(n,t,r)))}function ks(e,t,n){As(e,t,n,_u())}function As(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ms(e))Ns(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,mr(s,o))return qr(e,t,i,0),zl===null&&Kr(),!1}catch{}if(n=Jr(e,t,i,r),n!==null)return yu(n,e,r),Ps(n,t,r),!0}return!1}function js(e,t,n,r){if(r={lane:2,revertLane:gd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ms(e)){if(t)throw Error(i(479))}else t=Jr(e,n,r,2),t!==null&&yu(t,e,2)}function Ms(e){var t=e.alternate;return e===oo||t!==null&&t===oo}function Ns(e,t){uo=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ps(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}var Fs={readContext:Ji,use:Ao,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useLayoutEffect:_o,useInsertionEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useSyncExternalStore:_o,useId:_o,useHostTransitionStatus:_o,useFormState:_o,useActionState:_o,useOptimistic:_o,useMemoCache:_o,useCacheRefresh:_o};Fs.useEffectEvent=_o;var Is={readContext:Ji,use:Ao,useCallback:function(e,t){return Eo().memoizedState=[e,t===void 0?null:t],e},useContext:Ji,useEffect:os,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),is(4194308,4,fs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return is(4194308,4,e,t)},useInsertionEffect:function(e,t){is(4,2,e,t)},useMemo:function(e,t){var n=Eo();t=t===void 0?null:t;var r=e();if(fo){Ae(!0);try{e()}finally{Ae(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Eo();if(n!==void 0){var i=n(t);if(fo){Ae(!0);try{n(t)}finally{Ae(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Os.bind(null,oo,e),[r.memoizedState,e]},useRef:function(e){var t=Eo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ho(e);var t=e.queue,n=ks.bind(null,oo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ms,useDeferredValue:function(e,t){return _s(Eo(),e,t)},useTransition:function(){var e=Ho(!1);return e=ys.bind(null,oo,e.queue,!0,!1),Eo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=oo,a=Eo();if(Di){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),zl===null)throw Error(i(349));Vl&127||Lo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,os(zo.bind(null,r,o,e),[e]),r.flags|=2048,ns(9,{destroy:void 0},Ro.bind(null,r,o,n,t),null),n},useId:function(){var e=Eo(),t=zl.identifierPrefix;if(Di){var n=yi,r=vi;n=(r&~(1<<32-je(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=po++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=go++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ws,useFormState:Zo,useActionState:Zo,useOptimistic:function(e){var t=Eo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=js.bind(null,oo,!0,n),n.dispatch=t,[e,t]},useMemoCache:jo,useCacheRefresh:function(){return Eo().memoizedState=Ds.bind(null,oo)},useEffectEvent:function(e){var t=Eo(),n={impl:e};return t.memoizedState=n,function(){if(Rl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ls={readContext:Ji,use:Ao,useCallback:hs,useContext:Ji,useEffect:ss,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:No,useRef:rs,useState:function(){return No(Mo)},useDebugValue:ms,useDeferredValue:function(e,t){return vs(Do(),so.memoizedState,e,t)},useTransition:function(){var e=No(Mo)[0],t=Do().memoizedState;return[typeof e==`boolean`?e:ko(e),t]},useSyncExternalStore:Io,useId:Ts,useHostTransitionStatus:ws,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){return Uo(Do(),so,e,t)},useMemoCache:jo,useCacheRefresh:Es};Ls.useEffectEvent=ls;var Rs={readContext:Ji,use:Ao,useCallback:hs,useContext:Ji,useEffect:ss,useImperativeHandle:ps,useInsertionEffect:us,useLayoutEffect:ds,useMemo:gs,useReducer:Fo,useRef:rs,useState:function(){return Fo(Mo)},useDebugValue:ms,useDeferredValue:function(e,t){var n=Do();return so===null?_s(n,e,t):vs(n,so.memoizedState,e,t)},useTransition:function(){var e=Fo(Mo)[0],t=Do().memoizedState;return[typeof e==`boolean`?e:ko(e),t]},useSyncExternalStore:Io,useId:Ts,useHostTransitionStatus:ws,useFormState:ts,useActionState:ts,useOptimistic:function(e,t){var n=Do();return so===null?(n.baseState=e,[e,n.queue.dispatch]):Uo(n,so,e,t)},useMemoCache:jo,useCacheRefresh:Es};Rs.useEffectEvent=ls;function zs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_u(),i=Ia(r);i.payload=t,n!=null&&(i.callback=n),t=La(e,i,r),t!==null&&(yu(t,e,r),Ra(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_u(),i=Ia(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=La(e,i,r),t!==null&&(yu(t,e,r),Ra(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_u(),r=Ia(n);r.tag=2,t!=null&&(r.callback=t),t=La(e,r,n),t!==null&&(yu(t,e,n),Ra(t,e,n))}};function Vs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!hr(n,r)||!hr(i,a):!0}function Hs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bs.enqueueReplaceState(t,t.state,null)}function Us(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ws(e){Hr(e)}function Gs(e){console.error(e)}function Ks(e){Hr(e)}function qs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Js(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ys(e,t,n){return n=Ia(n),n.tag=3,n.payload={element:null},n.callback=function(){qs(e,t)},n}function Xs(e){return e=Ia(e),e.tag=3,e}function Zs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Js(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Js(t,n,r),typeof i!=`function`&&(su===null?su=new Set([this]):su.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Qs(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Gi(t,n,a,!0),n=Xa.current,n!==null){switch(n.tag){case 31:case 13:return Za===null?ju():n.alternate===null&&Jl===0&&(Jl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===va?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Xu(e,r,a)),!1;case 22:return n.flags|=65536,r===va?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Xu(e,r,a)),!1}throw Error(i(435,n.tag))}return Xu(e,r,a),ju(),!1}if(Di)return t=Xa.current,t===null?(r!==Ai&&(t=Error(i(423),{cause:r}),Li(ui(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=ui(r,n),a=Ys(e.stateNode,r,a),za(e,a),Jl!==4&&(Jl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ai&&(e=Error(i(422),{cause:r}),Li(ui(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=ui(o,n),eu===null?eu=[o]:eu.push(o),Jl!==4&&(Jl=2),t===null)return!0;r=ui(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ys(n.stateNode,r,e),za(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(su===null||!su.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Xs(a),Zs(a,e,n,r),za(n,a),!1}n=n.return}while(n!==null);return!1}var $s=Error(i(461)),ec=!1;function tc(e,t,n,r){t.child=e===null?Ma(t,null,n,r):ja(t,e.child,n,r)}function nc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return qi(t),r=yo(e,t,n,o,a,i),s=Co(),e!==null&&!ec?(wo(e,t,i),Ec(e,t,i)):(Di&&s&&Si(t),t.flags|=1,tc(e,t,r,i),t.child)}function rc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ti(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ic(e,t,a,r,i)):(e=ii(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Dc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?hr:n,n(o,r)&&e.ref===t.ref)return Ec(e,t,i)}return t.flags|=1,e=ni(a,r),e.ref=t.ref,e.return=t,t.child=e}function ic(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(hr(a,r)&&e.ref===t.ref)if(ec=!1,t.pendingProps=r=a,Dc(e,i))e.flags&131072&&(ec=!0);else return t.lanes=e.lanes,Ec(e,t,i)}return fc(e,t,n,r,i)}function ac(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return sc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pa(t,a===null?null:a.cachePool),a===null?Ja():qa(t,a),eo(t);else return r=t.lanes=536870912,sc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&pa(t,null),Ja(),to(t)):(pa(t,a.cachePool),qa(t,a),to(t),t.memoizedState=null);return tc(e,t,i,n),t.child}function oc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sc(e,t,n,r,i){var a=fa();return a=a===null?null:{parent:ea._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&pa(t,null),Ja(),eo(t),e!==null&&Gi(e,t,r,!0),t.childLanes=i,null}function cc(e,t){return t=xc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function lc(e,t,n){return ja(t,e.child,null,n),e=cc(t,t.pendingProps),e.flags|=2,no(t),t.memoizedState=null,e}function uc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Di){if(r.mode===`hidden`)return e=cc(t,r),t.lanes=536870912,oc(null,e);if($a(t),(e=Ei)?(e=df(e,ki),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_i===null?null:{id:vi,overflow:yi},retryLane:536870912,hydrationErrors:null},n=si(e),n.return=t,t.child=n,Ti=t,Ei=null)):e=null,e===null)throw ji(t);return t.lanes=536870912,null}return cc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if($a(t),a)if(t.flags&256)t.flags&=-257,t=lc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ec||Gi(e,t,n,!1),a=(n&e.childLanes)!==0,ec||a){if(r=zl,r!==null&&(s=qe(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Yr(e,s),yu(r,e,s),$s;ju(),t=lc(e,t,n)}else e=o.treeContext,Ei=hf(s.nextSibling),Ti=t,Di=!0,Oi=null,ki=!1,e!==null&&wi(t,e),t=cc(t,r),t.flags|=4096;return t}return e=ni(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function dc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function fc(e,t,n,r,i){return qi(t),n=yo(e,t,n,r,void 0,i),r=Co(),e!==null&&!ec?(wo(e,t,i),Ec(e,t,i)):(Di&&r&&Si(t),t.flags|=1,tc(e,t,n,i),t.child)}function pc(e,t,n,r,i,a){return qi(t),t.updateQueue=null,n=xo(t,r,n,i),bo(e),r=Co(),e!==null&&!ec?(wo(e,t,a),Ec(e,t,a)):(Di&&r&&Si(t),t.flags|=1,tc(e,t,n,a),t.child)}function mc(e,t,n,r,i){if(qi(t),t.stateNode===null){var a=Qr,o=n.contextType;typeof o==`object`&&o&&(a=Ji(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Bs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Pa(t),o=n.contextType,a.context=typeof o==`object`&&o?Ji(o):Qr,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(zs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Bs.enqueueReplaceState(a,a.state,null),Ha(t,r,a,i),Va(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Us(n,s);a.props=c;var l=a.context,u=n.contextType;o=Qr,typeof u==`object`&&u&&(o=Ji(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Hs(t,a,r,o),Na=!1;var f=t.memoizedState;a.state=f,Ha(t,r,a,i),Va(),l=t.memoizedState,s||f!==l||Na?(typeof d==`function`&&(zs(t,n,d,r),l=t.memoizedState),(c=Na||Vs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fa(e,t),o=t.memoizedProps,u=Us(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Qr,typeof l==`object`&&l&&(c=Ji(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Hs(t,a,r,c),Na=!1,f=t.memoizedState,a.state=f,Ha(t,r,a,i),Va();var p=t.memoizedState;o!==d||f!==p||Na||e!==null&&e.dependencies!==null&&Ki(e.dependencies)?(typeof s==`function`&&(zs(t,n,s,r),p=t.memoizedState),(u=Na||Vs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ki(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,dc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ja(t,e.child,null,i),t.child=ja(t,null,n,i)):tc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ec(e,t,i),e}function hc(e,t,n,r){return Fi(),t.flags|=256,tc(e,t,n,r),t.child}var gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _c(e){return{baseLanes:e,cachePool:ma()}}function vc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Ql),e}function yc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(ro.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Di){if(a?Qa(t):to(t),(e=Ei)?(e=df(e,ki),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_i===null?null:{id:vi,overflow:yi},retryLane:536870912,hydrationErrors:null},n=si(e),n.return=t,t.child=n,Ti=t,Ei=null)):e=null,e===null)throw ji(t);return pf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(to(t),a=t.mode,c=xc({mode:`hidden`,children:c},a),r=ai(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=_c(n),r.childLanes=vc(e,s,n),t.memoizedState=gc,oc(null,r)):(Qa(t),bc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Qa(t),t.flags&=-257,t=Sc(e,t,n)):t.memoizedState===null?(to(t),c=r.fallback,a=t.mode,r=xc({mode:`visible`,children:r.children},a),c=ai(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,ja(t,e.child,null,n),r=t.child,r.memoizedState=_c(n),r.childLanes=vc(e,s,n),t.memoizedState=gc,t=oc(null,r)):(to(t),t.child=e.child,t.flags|=128,t=null);else if(Qa(t),pf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Li({value:r,source:null,stack:null}),t=Sc(e,t,n)}else if(ec||Gi(e,t,n,!1),s=(n&e.childLanes)!==0,ec||s){if(s=zl,s!==null&&(r=qe(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Yr(e,r),yu(s,e,r),$s;ff(c)||ju(),t=Sc(e,t,n)}else ff(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ei=hf(c.nextSibling),Ti=t,Di=!0,Oi=null,ki=!1,e!==null&&wi(t,e),t=bc(t,r.children),t.flags|=4096);return t}return a?(to(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ni(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ai(c,a,n,null),c.flags|=2):c=ni(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,oc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=_c(n):(a=c.cachePool,a===null?a=ma():(l=ea._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=vc(e,s,n),t.memoizedState=gc,oc(e.child,r)):(Qa(t),n=e.child,e=n.sibling,n=ni(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function bc(e,t){return t=xc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function xc(e,t){return e=ei(22,e,null,t),e.lanes=0,e}function Sc(e,t,n){return ja(t,e.child,null,n),e=bc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ui(e.return,t,n)}function wc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Tc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ro.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,U(ro,o),tc(e,t,r,n),r=Di?mi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cc(e,n,t);else if(e.tag===19)Cc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&io(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),wc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&io(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}wc(t,!0,n,null,a,r);break;case`together`:wc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ec(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Yl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Gi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ni(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ni(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Dc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Ki(e))):!0}function Oc(e,t,n){switch(t.tag){case 3:re(t,t.stateNode.containerInfo),Vi(t,ea,e.memoizedState.cache),Fi();break;case 27:case 5:ae(t);break;case 4:re(t,t.stateNode.containerInfo);break;case 10:Vi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,$a(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Qa(t),e=Ec(e,t,n),e===null?null:e.sibling):yc(e,t,n):(Qa(t),t.flags|=128,null);Qa(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Gi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Tc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(ro,ro.current),r)break;return null;case 22:return t.lanes=0,ac(e,t,n,t.pendingProps);case 24:Vi(t,ea,e.memoizedState.cache)}return Ec(e,t,n)}function kc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ec=!0;else{if(!Dc(e,n)&&!(t.flags&128))return ec=!1,Oc(e,t,n);ec=!!(e.flags&131072)}else ec=!1,Di&&t.flags&1048576&&xi(t,mi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=xa(t.elementType),t.type=e,typeof e==`function`)ti(e)?(r=Us(e,r),t.tag=1,t=mc(null,t,e,r,n)):(t.tag=0,t=fc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=nc(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=rc(null,t,e,r,n);break a}}throw t=P(e)||e,Error(i(306,t,``))}}return t;case 0:return fc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Us(r,t.pendingProps),mc(e,t,r,a,n);case 3:a:{if(re(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Fa(e,t),Ha(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Vi(t,ea,r),r!==o.cache&&Wi(t,[ea],n,!0),Va(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=hc(e,t,r,n);break a}else if(r!==a){a=ui(Error(i(424)),t),Li(a),t=hc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ei=hf(e.firstChild),Ti=t,Di=!0,Oi=null,ki=!0,n=Ma(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Fi(),r===a){t=Ec(e,t,n);break a}tc(e,t,r,n)}t=t.child}return t;case 26:return dc(e,t),e===null?(n=If(t.type,null,t.pendingProps,null))?t.memoizedState=n:Di||(n=t.type,e=t.pendingProps,r=qd(W.current).createElement(n),r[$e]=t,r[et]=e,Vd(r,n,e),ft(r),t.stateNode=r):t.memoizedState=If(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ae(t),e===null&&Di&&(r=t.stateNode=yf(t.type,t.pendingProps,W.current),Ti=t,ki=!0,a=Ei,af(t.type)?(gf=a,Ei=hf(r.firstChild)):Ei=a),tc(e,t,t.pendingProps.children,n),dc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Di&&((a=r=Ei)&&(r=lf(r,t.type,t.pendingProps,ki),r===null?a=!1:(t.stateNode=r,Ti=t,Ei=hf(r.firstChild),ki=!1,a=!0)),a||ji(t)),ae(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Xd(a,o)?r=null:s!==null&&Xd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=yo(e,t,So,null,null,n),ap._currentValue=a),dc(e,t),tc(e,t,r,n),t.child;case 6:return e===null&&Di&&((e=n=Ei)&&(n=uf(n,t.pendingProps,ki),n===null?e=!1:(t.stateNode=n,Ti=t,Ei=null,e=!0)),e||ji(t)),null;case 13:return yc(e,t,n);case 4:return re(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ja(t,null,r,n):tc(e,t,r,n),t.child;case 11:return nc(e,t,t.type,t.pendingProps,n);case 7:return tc(e,t,t.pendingProps,n),t.child;case 8:return tc(e,t,t.pendingProps.children,n),t.child;case 12:return tc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Vi(t,t.type,r.value),tc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,qi(t),a=Ji(a),r=r(a),t.flags|=1,tc(e,t,r,n),t.child;case 14:return rc(e,t,t.type,t.pendingProps,n);case 15:return ic(e,t,t.type,t.pendingProps,n);case 19:return Tc(e,t,n);case 31:return uc(e,t,n);case 22:return ac(e,t,n,t.pendingProps);case 24:return qi(t),r=Ji(ea),e===null?(a=fa(),a===null&&(a=zl,o=ta(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Pa(t),Vi(t,ea,a)):((e.lanes&n)!==0&&(Fa(e,t),Ha(t,null,null,n),Va()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Vi(t,ea,r),r!==a.cache&&Wi(t,[ea],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Vi(t,ea,r))),tc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ac(e){e.flags|=4}function jc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Ou())e.flags|=8192;else throw Sa=va,ga}else e.flags&=-16777217}function Mc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zf(t))if(Ou())e.flags|=8192;else throw Sa=va,ga}function Nc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ve(),e.lanes|=t,$l|=t)}function Pc(e,t){if(!Di)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ic(e,t,n){var r=t.pendingProps;switch(Ci(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fc(t),null;case 1:return Fc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Hi(ea),ie(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Pi(t)?Ac(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ii())),Fc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Ac(t),o===null?(Fc(t),jc(t,a,null,r,n)):(Fc(t),Mc(t,o))):o?o===e.memoizedState?(Fc(t),t.flags&=-16777217):(Ac(t),Fc(t),Mc(t,o)):(e=e.memoizedProps,e!==r&&Ac(t),Fc(t),jc(t,a,e,r,n)),null;case 27:if(oe(t),n=W.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ac(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Fc(t),null}e=ee.current,Pi(t)?Mi(t,e):(e=yf(a,r,n),t.stateNode=e,Ac(t))}return Fc(t),null;case 5:if(oe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ac(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Fc(t),null}if(o=ee.current,Pi(t))Mi(t,o);else{var s=qd(W.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[$e]=t,o[et]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Vd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ac(t)}}return Fc(t),jc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ac(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=W.current,Pi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ti,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[$e]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Rd(e.nodeValue,n)),e||ji(t,!0)}else e=qd(e).createTextNode(r),e[$e]=t,t.stateNode=e}return Fc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Pi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[$e]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fc(t),e=!1}else n=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(no(t),t):(no(t),null);if(t.flags&128)throw Error(i(558))}return Fc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Pi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[$e]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fc(t),a=!1}else a=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(no(t),t):(no(t),null)}return no(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Nc(t,t.updateQueue),Fc(t),null);case 4:return ie(),e===null&&Od(t.stateNode.containerInfo),Fc(t),null;case 10:return Hi(t.type),Fc(t),null;case 19:if(H(ro),r=t.memoizedState,r===null)return Fc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Pc(r,!1);else{if(Jl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=io(e),o!==null){for(t.flags|=128,Pc(r,!1),e=o.updateQueue,t.updateQueue=e,Nc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ri(n,e),n=n.sibling;return U(ro,ro.current&1|2),Di&&bi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ye()>au&&(t.flags|=128,a=!0,Pc(r,!1),t.lanes=4194304)}else{if(!a)if(e=io(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Nc(t,e),Pc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Di)return Fc(t),null}else 2*ye()-r.renderingStartTime>au&&n!==536870912&&(t.flags|=128,a=!0,Pc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Fc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ye(),e.sibling=null,n=ro.current,U(ro,a?n&1|2:n&1),Di&&bi(t,r.treeForkCount),e);case 22:case 23:return no(t),Ya(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Fc(t),t.subtreeFlags&6&&(t.flags|=8192)):Fc(t),n=t.updateQueue,n!==null&&Nc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&H(da),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Hi(ea),Fc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Lc(e,t){switch(Ci(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hi(ea),ie(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return oe(t),null;case 31:if(t.memoizedState!==null){if(no(t),t.alternate===null)throw Error(i(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(no(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(ro),null;case 4:return ie(),null;case 10:return Hi(t.type),null;case 22:case 23:return no(t),Ya(),e!==null&&H(da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hi(ea),null;case 25:return null;default:return null}}function Rc(e,t){switch(Ci(t),t.tag){case 3:Hi(ea),ie();break;case 26:case 27:case 5:oe(t);break;case 4:ie();break;case 31:t.memoizedState!==null&&no(t);break;case 13:no(t);break;case 19:H(ro);break;case 10:Hi(t.type);break;case 22:case 23:no(t),Ya(),e!==null&&H(da);break;case 24:Hi(ea)}}function zc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Yu(t,t.return,e)}}function Bc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Yu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Yu(t,t.return,e)}}function Vc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Wa(t,n)}catch(t){Yu(e,e.return,t)}}}function Hc(e,t,n){n.props=Us(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Yu(e,t,n)}}function Uc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Yu(e,t,n)}}function Wc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Yu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Yu(e,t,n)}else n.current=null}function Gc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Yu(e,e.return,t)}}function Kc(e,t,n){try{var r=e.stateNode;Hd(r,e.type,n,t),r[et]=t}catch(t){Yu(e,e.return,t)}}function qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&af(e.type)||e.tag===4}function Jc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||qc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&af(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gt));else if(r!==4&&(r===27&&af(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&af(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Vd(t,r,n),t[$e]=e,t[et]=n}catch(t){Yu(e,e.return,t)}}var Qc=!1,$c=!1,el=!1,tl=typeof WeakSet==`function`?WeakSet:Set,nl=null;function rl(e,t){if(e=e.containerInfo,Gd=mp,e=yr(e),br(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Kd={focusedElem:e,selectionRange:n},mp=!1,nl=t;nl!==null;)if(t=nl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,nl=e;else for(;nl!==null;){switch(t=nl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Us(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Yu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)cf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:cf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,nl=e;break}nl=t.return}}function il(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:yl(e,n),r&4&&zc(5,n);break;case 1:if(yl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Yu(n,n.return,e)}else{var i=Us(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Yu(n,n.return,e)}}r&64&&Vc(n),r&512&&Uc(n,n.return);break;case 3:if(yl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Wa(e,t)}catch(e){Yu(n,n.return,e)}}break;case 27:t===null&&r&4&&Zc(n);case 26:case 5:yl(e,n),t===null&&r&4&&Gc(n),r&512&&Uc(n,n.return);break;case 12:yl(e,n);break;case 31:yl(e,n),r&4&&ul(e,n);break;case 13:yl(e,n),r&4&&dl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=$u.bind(null,n),mf(e,n))));break;case 22:if(r=n.memoizedState!==null||Qc,!r){t=t!==null&&t.memoizedState!==null||$c,i=Qc;var a=$c;Qc=r,($c=t)&&!a?xl(e,n,(n.subtreeFlags&8772)!=0):yl(e,n),Qc=i,$c=a}break;case 30:break;default:yl(e,n)}}function al(e){var t=e.alternate;t!==null&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&st(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ol=null,sl=!1;function cl(e,t,n){for(n=n.child;n!==null;)ll(e,t,n),n=n.sibling}function ll(e,t,n){if(ke&&typeof ke.onCommitFiberUnmount==`function`)try{ke.onCommitFiberUnmount(Oe,n)}catch{}switch(n.tag){case 26:$c||Wc(n,t),cl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:$c||Wc(n,t);var r=ol,i=sl;af(n.type)&&(ol=n.stateNode,sl=!1),cl(e,t,n),bf(n.stateNode),ol=r,sl=i;break;case 5:$c||Wc(n,t);case 6:if(r=ol,i=sl,ol=null,cl(e,t,n),ol=r,sl=i,ol!==null)if(sl)try{(ol.nodeType===9?ol.body:ol.nodeName===`HTML`?ol.ownerDocument.body:ol).removeChild(n.stateNode)}catch(e){Yu(n,t,e)}else try{ol.removeChild(n.stateNode)}catch(e){Yu(n,t,e)}break;case 18:ol!==null&&(sl?(e=ol,of(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Bp(e)):of(ol,n.stateNode));break;case 4:r=ol,i=sl,ol=n.stateNode.containerInfo,sl=!0,cl(e,t,n),ol=r,sl=i;break;case 0:case 11:case 14:case 15:Bc(2,n,t),$c||Bc(4,n,t),cl(e,t,n);break;case 1:$c||(Wc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Hc(n,t,r)),cl(e,t,n);break;case 21:cl(e,t,n);break;case 22:$c=(r=$c)||n.memoizedState!==null,cl(e,t,n),$c=r;break;default:cl(e,t,n)}}function ul(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bp(e)}catch(e){Yu(t,t.return,e)}}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bp(e)}catch(e){Yu(t,t.return,e)}}function fl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tl),t;default:throw Error(i(435,e.tag))}}function pl(e,t){var n=fl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=ed.bind(null,e,t);t.then(r,r)}})}function ml(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(af(c.type)){ol=c.stateNode,sl=!1;break a}break;case 5:ol=c.stateNode,sl=!1;break a;case 3:case 4:ol=c.stateNode.containerInfo,sl=!0;break a}c=c.return}if(ol===null)throw Error(i(160));ll(o,s,a),ol=null,sl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gl(t,e),t=t.sibling}var hl=null;function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ml(t,e),_l(e),r&4&&(Bc(3,e,e.return),zc(3,e),Bc(5,e,e.return));break;case 1:ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),r&64&&Qc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=hl;if(ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ot]||o[$e]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Vd(o,r,n),o[$e]=e,ft(o),r=o;break a;case`link`:var s=Jf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Vd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Jf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Vd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[$e]=e,ft(o),r=o}e.stateNode=r}else Yf(a,e.type,e.stateNode);else e.stateNode=Uf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Kc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Yf(a,e.type,e.stateNode):Uf(a,r,e.memoizedProps))}break;case 27:ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),n!==null&&r&4&&Kc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),e.flags&32){a=e.stateNode;try{Rt(a,``)}catch(t){Yu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Kc(e,a,n===null?a:n.memoizedProps)),r&1024&&(el=!0);break;case 6:if(ml(t,e),_l(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Yu(e,e.return,t)}}break;case 3:if(qf=null,a=hl,hl=Cf(t.containerInfo),ml(t,e),hl=a,_l(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bp(t.containerInfo)}catch(t){Yu(e,e.return,t)}el&&(el=!1,vl(e));break;case 4:r=hl,hl=Cf(e.stateNode.containerInfo),ml(t,e),_l(e),hl=r;break;case 12:ml(t,e),_l(e);break;case 31:ml(t,e),_l(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 13:ml(t,e),_l(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ru=ye()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Qc,d=$c;if(Qc=u||a,$c=d||l,ml(t,e),$c=d,Qc=u,_l(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Qc||$c||bl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Yu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Yu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?sf(m,!0):sf(l.stateNode,!1)}catch(e){Yu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,pl(e,n))));break;case 19:ml(t,e),_l(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 30:break;case 21:break;default:ml(t,e),_l(e)}}function _l(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(qc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Xc(e,Jc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Rt(o,``),n.flags&=-33),Xc(e,Jc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Yc(e,Jc(e),s);break;default:throw Error(i(161))}}catch(t){Yu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)il(e,t.alternate,t),t=t.sibling}function bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Bc(4,t,t.return),bl(t);break;case 1:Wc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Hc(t,t.return,n),bl(t);break;case 27:bf(t.stateNode);case 26:case 5:Wc(t,t.return),bl(t);break;case 22:t.memoizedState===null&&bl(t);break;case 30:bl(t);break;default:bl(t)}e=e.sibling}}function xl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:xl(i,a,n),zc(4,a);break;case 1:if(xl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Yu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ua(c[i],s)}catch(e){Yu(r,r.return,e)}}n&&o&64&&Vc(a),Uc(a,a.return);break;case 27:Zc(a);case 26:case 5:xl(i,a,n),n&&r===null&&o&4&&Gc(a),Uc(a,a.return);break;case 12:xl(i,a,n);break;case 31:xl(i,a,n),n&&o&4&&ul(i,a);break;case 13:xl(i,a,n),n&&o&4&&dl(i,a);break;case 22:a.memoizedState===null&&xl(i,a,n),Uc(a,a.return);break;case 30:break;default:xl(i,a,n)}t=t.sibling}}function Sl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&na(n))}function Cl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&na(e))}function wl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tl(e,t,n,r),t=t.sibling}function Tl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:wl(e,t,n,r),i&2048&&zc(9,t);break;case 1:wl(e,t,n,r);break;case 3:wl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&na(e)));break;case 12:if(i&2048){wl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Yu(t,t.return,e)}}else wl(e,t,n,r);break;case 31:wl(e,t,n,r);break;case 13:wl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?wl(e,t,n,r):(a._visibility|=2,El(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?wl(e,t,n,r):Dl(e,t),i&2048&&Sl(o,t);break;case 24:wl(e,t,n,r),i&2048&&Cl(t.alternate,t);break;default:wl(e,t,n,r)}}function El(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:El(a,o,s,c,i),zc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,El(a,o,s,c,i)):u._visibility&2?El(a,o,s,c,i):Dl(a,o),i&&l&2048&&Sl(o.alternate,o);break;case 24:El(a,o,s,c,i),i&&l&2048&&Cl(o.alternate,o);break;default:El(a,o,s,c,i)}t=t.sibling}}function Dl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Dl(n,r),i&2048&&Sl(r.alternate,r);break;case 24:Dl(n,r),i&2048&&Cl(r.alternate,r);break;default:Dl(n,r)}t=t.sibling}}var Ol=8192;function kl(e,t,n){if(e.subtreeFlags&Ol)for(e=e.child;e!==null;)Al(e,t,n),e=e.sibling}function Al(e,t,n){switch(e.tag){case 26:kl(e,t,n),e.flags&Ol&&e.memoizedState!==null&&Qf(n,hl,e.memoizedState,e.memoizedProps);break;case 5:kl(e,t,n);break;case 3:case 4:var r=hl;hl=Cf(e.stateNode.containerInfo),kl(e,t,n),hl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ol,Ol=16777216,kl(e,t,n),Ol=r):kl(e,t,n));break;default:kl(e,t,n)}}function jl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ml(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Fl(r,e)}jl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nl(e),e=e.sibling}function Nl(e){switch(e.tag){case 0:case 11:case 15:Ml(e),e.flags&2048&&Bc(9,e,e.return);break;case 3:Ml(e);break;case 12:Ml(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pl(e)):Ml(e);break;default:Ml(e)}}function Pl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Fl(r,e)}jl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Bc(8,t,t.return),Pl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Pl(t));break;default:Pl(t)}e=e.sibling}}function Fl(e,t){for(;nl!==null;){var n=nl;switch(n.tag){case 0:case 11:case 15:Bc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:na(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,nl=r;else a:for(n=e;nl!==null;){r=nl;var i=r.sibling,a=r.return;if(al(r),r===n){nl=null;break a}if(i!==null){i.return=a,nl=i;break a}nl=a}}}var Il={getCacheForType:function(e){var t=Ji(ea),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ji(ea).controller.signal}},Ll=typeof WeakMap==`function`?WeakMap:Map,Rl=0,zl=null,Bl=null,Vl=0,Hl=0,Ul=null,Wl=!1,Gl=!1,Kl=!1,ql=0,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=null,tu=null,nu=!1,ru=0,iu=0,au=1/0,ou=null,su=null,cu=0,lu=null,uu=null,du=0,fu=0,pu=null,mu=null,hu=0,gu=null;function _u(){return Rl&2&&Vl!==0?Vl&-Vl:I.T===null?Xe():gd()}function vu(){if(Ql===0)if(!(Vl&536870912)||Di){var e=Ie;Ie<<=1,!(Ie&3932160)&&(Ie=262144),Ql=e}else Ql=536870912;return e=Xa.current,e!==null&&(e.flags|=32),Ql}function yu(e,t,n){(e===zl&&(Hl===2||Hl===9)||e.cancelPendingCommit!==null)&&(Eu(e,0),Cu(e,Vl,Ql,!1)),Ue(e,n),(!(Rl&2)||e!==zl)&&(e===zl&&(!(Rl&2)&&(Xl|=n),Jl===4&&Cu(e,Vl,Ql,!1)),cd(e))}function bu(e,t,n){if(Rl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||ze(e,t),a=r?Pu(e,t):Mu(e,t,!0),o=r;do{if(a===0){Gl&&!r&&Cu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Su(n)){a=Mu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=eu;var l=c.current.memoizedState.isDehydrated;if(l&&(Eu(c,s).flags|=256),s=Mu(c,s,!1),s!==2){if(Kl&&!l){c.errorRecoveryDisabledLanes|=o,Xl|=o,a=4;break a}o=tu,tu=a,o!==null&&(tu===null?tu=o:tu.push.apply(tu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Eu(e,0),Cu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Cu(r,t,Ql,!Wl);break a;case 2:tu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=ru+300-ye(),10<a)){if(Cu(r,t,Ql,!Wl),G(r,0,!0)!==0)break a;du=t,r.timeoutHandle=$d(xu.bind(null,r,n,tu,ou,nu,t,Ql,Xl,$l,Wl,o,`Throttled`,-0,0),a);break a}xu(r,n,tu,ou,nu,t,Ql,Xl,$l,Wl,o,null,-0,0)}}break}while(1);cd(e)}function xu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gt},Al(t,a,d);var m=(a&62914560)===a?ru-ye():(a&4194048)===a?iu-ye():0;if(m=ep(d,m),m!==null){du=a,e.cancelPendingCommit=m(Vu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Cu(e,a,o,!l);return}}Vu(e,t,a,n,r,i,o,s,c)}function Su(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!mr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cu(e,t,n,r){t&=~Zl,t&=~Xl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-je(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ge(e,n,t)}function wu(){return Rl&6?!0:(ld(0,!1),!1)}function Tu(){if(Bl!==null){if(Hl===0)var e=Bl.return;else e=Bl,Bi=zi=null,To(e),Ta=null,Ea=0,e=Bl;for(;e!==null;)Rc(e.alternate,e),e=e.return;Bl=null}}function Eu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,ef(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),du=0,Tu(),zl=e,Bl=n=ni(e.current,null),Vl=t,Hl=0,Ul=null,Wl=!1,Gl=ze(e,t),Kl=!1,$l=Ql=Zl=Xl=Yl=Jl=0,tu=eu=null,nu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-je(r),a=1<<i;t|=e[i],r&=~a}return ql=t,Kr(),n}function Du(e,t){oo=null,I.H=Fs,t===ha||t===_a?(t=Ca(),Hl=3):t===ga?(t=Ca(),Hl=4):Hl=t===$s?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ul=t,Bl===null&&(Jl=1,qs(e,ui(t,e.current)))}function Ou(){var e=Xa.current;return e===null?!0:(Vl&4194048)===Vl?Za===null:(Vl&62914560)===Vl||Vl&536870912?e===Za:!1}function ku(){var e=I.H;return I.H=Fs,e===null?Fs:e}function Au(){var e=I.A;return I.A=Il,e}function ju(){Jl=4,Wl||(Vl&4194048)!==Vl&&Xa.current!==null||(Gl=!0),!(Yl&134217727)&&!(Xl&134217727)||zl===null||Cu(zl,Vl,Ql,!1)}function Mu(e,t,n){var r=Rl;Rl|=2;var i=ku(),a=Au();(zl!==e||Vl!==t)&&(ou=null,Eu(e,t)),t=!1;var o=Jl;a:do try{if(Hl!==0&&Bl!==null){var s=Bl,c=Ul;switch(Hl){case 8:Tu(),o=6;break a;case 3:case 2:case 9:case 6:Xa.current===null&&(t=!0);var l=Hl;if(Hl=0,Ul=null,Ru(e,s,c,l),n&&Gl){o=0;break a}break;default:l=Hl,Hl=0,Ul=null,Ru(e,s,c,l)}}Nu(),o=Jl;break}catch(t){Du(e,t)}while(1);return t&&e.shellSuspendCounter++,Bi=zi=null,Rl=r,I.H=i,I.A=a,Bl===null&&(zl=null,Vl=0,Kr()),o}function Nu(){for(;Bl!==null;)Iu(Bl)}function Pu(e,t){var n=Rl;Rl|=2;var r=ku(),a=Au();zl!==e||Vl!==t?(ou=null,au=ye()+500,Eu(e,t)):Gl=ze(e,t);a:do try{if(Hl!==0&&Bl!==null){t=Bl;var o=Ul;b:switch(Hl){case 1:Hl=0,Ul=null,Ru(e,t,o,1);break;case 2:case 9:if(ya(o)){Hl=0,Ul=null,Lu(t);break}t=function(){Hl!==2&&Hl!==9||zl!==e||(Hl=7),cd(e)},o.then(t,t);break a;case 3:Hl=7;break a;case 4:Hl=5;break a;case 7:ya(o)?(Hl=0,Ul=null,Lu(t)):(Hl=0,Ul=null,Ru(e,t,o,7));break;case 5:var s=null;switch(Bl.tag){case 26:s=Bl.memoizedState;case 5:case 27:var c=Bl;if(s?Zf(s):c.stateNode.complete){Hl=0,Ul=null;var l=c.sibling;if(l!==null)Bl=l;else{var u=c.return;u===null?Bl=null:(Bl=u,zu(u))}break b}}Hl=0,Ul=null,Ru(e,t,o,5);break;case 6:Hl=0,Ul=null,Ru(e,t,o,6);break;case 8:Tu(),Jl=6;break a;default:throw Error(i(462))}}Fu();break}catch(t){Du(e,t)}while(1);return Bi=zi=null,I.H=r,I.A=a,Rl=n,Bl===null?(zl=null,Vl=0,Kr(),Jl):0}function Fu(){for(;Bl!==null&&!_e();)Iu(Bl)}function Iu(e){var t=kc(e.alternate,e,ql);e.memoizedProps=e.pendingProps,t===null?zu(e):Bl=t}function Lu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=pc(n,t,t.pendingProps,t.type,void 0,Vl);break;case 11:t=pc(n,t,t.pendingProps,t.type.render,t.ref,Vl);break;case 5:To(t);default:Rc(n,t),t=Bl=ri(t,ql),t=kc(n,t,ql)}e.memoizedProps=e.pendingProps,t===null?zu(e):Bl=t}function Ru(e,t,n,r){Bi=zi=null,To(t),Ta=null,Ea=0;var i=t.return;try{if(Qs(e,i,t,n,Vl)){Jl=1,qs(e,ui(n,e.current)),Bl=null;return}}catch(t){if(i!==null)throw Bl=i,t;Jl=1,qs(e,ui(n,e.current)),Bl=null;return}t.flags&32768?(Di||r===1?e=!0:Gl||Vl&536870912?e=!1:(Wl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Xa.current,r!==null&&r.tag===13&&(r.flags|=16384))),Bu(t,e)):zu(t)}function zu(e){var t=e;do{if(t.flags&32768){Bu(t,Wl);return}e=t.return;var n=Ic(t.alternate,t,ql);if(n!==null){Bl=n;return}if(t=t.sibling,t!==null){Bl=t;return}Bl=t=e}while(t!==null);Jl===0&&(Jl=5)}function Bu(e,t){do{var n=Lc(e.alternate,e);if(n!==null){n.flags&=32767,Bl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Bl=e;return}Bl=e=n}while(e!==null);Jl=6,Bl=null}function Vu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Ku();while(cu!==0);if(Rl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Gr,We(e,n,o,s,c,l),e===zl&&(Bl=zl=null,Vl=0),uu=t,lu=e,du=n,fu=o,pu=a,mu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,td(Ce,function(){return qu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=I.T,I.T=null,a=L.p,L.p=2,s=Rl,Rl|=4;try{rl(e,t,n)}finally{Rl=s,L.p=a,I.T=r}}cu=1,Hu(),Uu(),Wu()}}function Hu(){if(cu===1){cu=0;var e=lu,t=uu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Rl;Rl|=4;try{gl(t,e);var a=Kd,o=yr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&vr(s.ownerDocument.documentElement,s)){if(c!==null&&br(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=_r(s,h),v=_r(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}mp=!!Gd,Kd=Gd=null}finally{Rl=i,L.p=r,I.T=n}}e.current=t,cu=2}}function Uu(){if(cu===2){cu=0;var e=lu,t=uu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Rl;Rl|=4;try{il(e,t.alternate,t)}finally{Rl=i,L.p=r,I.T=n}}cu=3}}function Wu(){if(cu===4||cu===3){cu=0,ve();var e=lu,t=uu,n=du,r=mu;t.subtreeFlags&10256||t.flags&10256?cu=5:(cu=0,uu=lu=null,Gu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(su=null),Ye(n),t=t.stateNode,ke&&typeof ke.onCommitFiberRoot==`function`)try{ke.onCommitFiberRoot(Oe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=L.p,L.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{I.T=t,L.p=i}}du&3&&Ku(),cd(e),i=e.pendingLanes,n&261930&&i&42?e===gu?hu++:(hu=0,gu=e):hu=0,ld(0,!1)}}function Gu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,na(t)))}function Ku(){return Hu(),Uu(),Wu(),qu()}function qu(){if(cu!==5)return!1;var e=lu,t=fu;fu=0;var n=Ye(du),r=I.T,a=L.p;try{L.p=32>n?32:n,I.T=null,n=pu,pu=null;var o=lu,s=du;if(cu=0,uu=lu=null,du=0,Rl&6)throw Error(i(331));var c=Rl;if(Rl|=4,Nl(o.current),Tl(o,o.current,s,n),Rl=c,ld(0,!1),ke&&typeof ke.onPostCommitFiberRoot==`function`)try{ke.onPostCommitFiberRoot(Oe,o)}catch{}return!0}finally{L.p=a,I.T=r,Gu(e,t)}}function Ju(e,t,n){t=ui(n,t),t=Ys(e.stateNode,t,2),e=La(e,t,2),e!==null&&(Ue(e,2),cd(e))}function Yu(e,t,n){if(e.tag===3)Ju(e,e,n);else for(;t!==null;){if(t.tag===3){Ju(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(su===null||!su.has(r))){e=ui(n,e),n=Xs(2),r=La(t,n,2),r!==null&&(Zs(n,r,t,e),Ue(r,2),cd(r));break}}t=t.return}}function Xu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ll;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Kl=!0,i.add(n),e=Zu.bind(null,e,t,n),t.then(e,e))}function Zu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,zl===e&&(Vl&n)===n&&(Jl===4||Jl===3&&(Vl&62914560)===Vl&&300>ye()-ru?!(Rl&2)&&Eu(e,0):Zl|=n,$l===Vl&&($l=0)),cd(e)}function Qu(e,t){t===0&&(t=Ve()),e=Yr(e,t),e!==null&&(Ue(e,t),cd(e))}function $u(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qu(e,n)}function ed(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Qu(e,n)}function td(e,t){return he(e,t)}var nd=null,rd=null,id=!1,ad=!1,od=!1,sd=0;function cd(e){e!==rd&&e.next===null&&(rd===null?nd=rd=e:rd=rd.next=e),ad=!0,id||(id=!0,hd())}function ld(e,t){if(!od&&ad){od=!0;do for(var n=!1,r=nd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-je(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,md(r,a))}else a=Vl,a=G(r,r===zl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ze(r,a)||(n=!0,md(r,a));r=r.next}while(n);od=!1}}function ud(){dd()}function dd(){ad=id=!1;var e=0;sd!==0&&Qd()&&(e=sd);for(var t=ye(),n=null,r=nd;r!==null;){var i=r.next,a=fd(r,t);a===0?(r.next=null,n===null?nd=i:n.next=i,i===null&&(rd=n)):(n=r,(e!==0||a&3)&&(ad=!0)),r=i}cu!==0&&cu!==5||ld(e,!1),sd!==0&&(sd=0)}function fd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-je(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Be(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=zl,n=Vl,n=G(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Hl===2||Hl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ge(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ze(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ge(r),Ye(n)){case 2:case 8:n=Se;break;case 32:n=Ce;break;case 268435456:n=Te;break;default:n=Ce}return r=pd.bind(null,e),n=he(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ge(r),e.callbackPriority=2,e.callbackNode=null,2}function pd(e,t){if(cu!==0&&cu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ku()&&e.callbackNode!==n)return null;var r=Vl;return r=G(e,e===zl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(bu(e,r,t),fd(e,ye()),e.callbackNode!=null&&e.callbackNode===n?pd.bind(null,e):null)}function md(e,t){if(Ku())return null;bu(e,t,!0)}function hd(){nf(function(){Rl&6?he(xe,ud):dd()})}function gd(){if(sd===0){var e=aa;e===0&&(e=Fe,Fe<<=1,!(Fe&261888)&&(Fe=256)),sd=e}return sd}function _d(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Wt(``+e)}function vd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function yd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=_d((i[et]||null).action),o=r.submitter;o&&(t=(t=o[et]||null)?_d(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new pn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(sd!==0){var e=o?vd(i,o):new FormData(i);xs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?vd(i,o):new FormData(i),xs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var bd=0;bd<Br.length;bd++){var xd=Br[bd];Vr(xd.toLowerCase(),`on`+(xd[0].toUpperCase()+xd.slice(1)))}Vr(Mr,`onAnimationEnd`),Vr(Nr,`onAnimationIteration`),Vr(Pr,`onAnimationStart`),Vr(`dblclick`,`onDoubleClick`),Vr(`focusin`,`onFocus`),Vr(`focusout`,`onBlur`),Vr(Fr,`onTransitionRun`),Vr(Ir,`onTransitionStart`),Vr(Lr,`onTransitionCancel`),Vr(Rr,`onTransitionEnd`),gt(`onMouseEnter`,[`mouseout`,`mouseover`]),gt(`onMouseLeave`,[`mouseout`,`mouseover`]),gt(`onPointerEnter`,[`pointerout`,`pointerover`]),gt(`onPointerLeave`,[`pointerout`,`pointerover`]),ht(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),ht(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),ht(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),ht(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),ht(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),ht(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Sd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Cd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Sd));function wd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Hr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Hr(e)}i.currentTarget=null,a=c}}}}function Td(e,t){var n=t[nt];n===void 0&&(n=t[nt]=new Set);var r=e+`__bubble`;n.has(r)||(kd(t,e,2,!1),n.add(r))}function Ed(e,t,n){var r=0;t&&(r|=4),kd(n,e,r,t)}var Dd=`_reactListening`+Math.random().toString(36).slice(2);function Od(e){if(!e[Dd]){e[Dd]=!0,pt.forEach(function(t){t!==`selectionchange`&&(Cd.has(t)||Ed(t,!1,e),Ed(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Dd]||(t[Dd]=!0,Ed(`selectionchange`,!1,t))}}function kd(e,t,n,r){switch(xp(t)){case 2:var i=hp;break;case 8:i=gp;break;default:i=_p}n=i.bind(null,t,n,e),i=void 0,!tn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Ad(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=ct(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Qt(function(){var r=a,i=qt(n),s=[];a:{var c=zr.get(e);if(c!==void 0){var l=pn,u=e;switch(e){case`keypress`:if(cn(n)===0)break a;case`keydown`:case`keyup`:l=jn;break;case`focusin`:u=`focus`,l=Sn;break;case`focusout`:u=`blur`,l=Sn;break;case`beforeblur`:case`afterblur`:l=Sn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=bn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=xn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Nn;break;case Mr:case Nr:case Pr:l=Cn;break;case Rr:l=Pn;break;case`scroll`:case`scrollend`:l=hn;break;case`wheel`:l=Fn;break;case`copy`:case`cut`:case`paste`:l=wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Mn;break;case`toggle`:case`beforetoggle`:l=In}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=$t(m,p),g!=null&&d.push(jd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Kt&&(u=n.relatedTarget||n.fromElement)&&(ct(u)||u[tt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ct(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=bn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Mn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:ut(l),h=u==null?c:ut(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ct(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Nd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Pd(s,c,l,d,!1),u!==null&&f!==null&&Pd(s,f,u,d,!0)}}a:{if(c=r?ut(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=nr;else if(Xn(c))if(rr)v=fr;else{v=ur;var y=lr}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Vt(r.elementType)&&(v=nr):v=dr;if(v&&=v(e,r)){Zn(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Pt(c,`number`,c.value)}switch(y=r?ut(r):window,e){case`focusin`:(Xn(y)||y.contentEditable===`true`)&&(Sr=y,Cr=r,wr=null);break;case`focusout`:wr=Cr=Sr=null;break;case`mousedown`:Tr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Tr=!1,Er(s,n,i);break;case`selectionchange`:if(xr)break;case`keydown`:case`keyup`:Er(s,n,i)}var b;if(Rn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Kn?Wn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Vn&&n.locale!==`ko`&&(Kn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Kn&&(b=sn()):(rn=i,an=`value`in rn?rn.value:rn.textContent,Kn=!0)),y=Md(r,x),0<y.length&&(x=new Tn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Gn(n),b!==null&&(x.data=b)))),(b=Bn?qn(e,n):Jn(e,n))&&(x=Md(r,`onBeforeInput`),0<x.length&&(y=new Tn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),yd(s,e,r,n,i)}wd(s,t)})}function jd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Md(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=$t(e,n),i!=null&&r.unshift(jd(e,i,a)),i=$t(e,t),i!=null&&r.push(jd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Nd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Pd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=$t(n,a),l!=null&&o.unshift(jd(n,l,c))):i||(l=$t(n,a),l!=null&&o.push(jd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Fd=/\r\n?/g,Id=/\u0000|\uFFFD/g;function Ld(e){return(typeof e==`string`?e:``+e).replace(Fd,`
|
||
`).replace(Id,``)}function Rd(e,t){return t=Ld(t),Ld(e)===t}function zd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Rt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Rt(e,``+r);break;case`className`:St(e,`class`,r);break;case`tabIndex`:St(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:St(e,n,r);break;case`style`:K(e,r,o);break;case`data`:if(t!==`object`){St(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Wt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&zd(e,t,`name`,a.name,a,null),zd(e,t,`formEncType`,a.formEncType,a,null),zd(e,t,`formMethod`,a.formMethod,a,null),zd(e,t,`formTarget`,a.formTarget,a,null)):(zd(e,t,`encType`,a.encType,a,null),zd(e,t,`method`,a.method,a,null),zd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Wt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Gt);break;case`onScroll`:r!=null&&Td(`scroll`,e);break;case`onScrollEnd`:r!=null&&Td(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Wt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Td(`beforetoggle`,e),Td(`toggle`,e),xt(e,`popover`,r);break;case`xlinkActuate`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:xt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Ht.get(n)||n,xt(e,n,r))}}function Bd(e,t,n,r,a,o){switch(n){case`style`:K(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Rt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Rt(e,``+r);break;case`onScroll`:r!=null&&Td(`scroll`,e);break;case`onScrollEnd`:r!=null&&Td(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Gt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!mt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[et]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):xt(e,n,r)}}}function Vd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Td(`error`,e),Td(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:zd(e,t,o,s,n,null)}}a&&zd(e,t,`srcSet`,n.srcSet,n,null),r&&zd(e,t,`src`,n.src,n,null);return;case`input`:Td(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:zd(e,t,r,d,n,null)}}Nt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Td(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:zd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ft(e,!!r,n,!0):Ft(e,!!r,t,!1);return;case`textarea`:for(s in Td(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:zd(e,t,s,c,n,null)}Lt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:zd(e,t,l,r,n,null)}return;case`dialog`:Td(`beforetoggle`,e),Td(`toggle`,e),Td(`cancel`,e),Td(`close`,e);break;case`iframe`:case`object`:Td(`load`,e);break;case`video`:case`audio`:for(r=0;r<Sd.length;r++)Td(Sd[r],e);break;case`image`:Td(`error`,e),Td(`load`,e);break;case`details`:Td(`toggle`,e);break;case`embed`:case`source`:case`link`:Td(`error`,e),Td(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:zd(e,t,u,r,n,null)}return;default:if(Vt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Bd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&zd(e,t,c,r,n,null))}function Hd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||zd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&zd(e,t,p,m,r,f)}}Mt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||zd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&zd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ft(e,!!n,n?[]:``,!1):Ft(e,!!n,t,!0)):Ft(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:zd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&zd(e,t,s,a,r,o)}It(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:zd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:zd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&zd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:zd(e,t,u,p,r,m)}return;default:if(Vt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Bd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Bd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&zd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||zd(e,t,f,p,r,m)}function Ud(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Wd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ud(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ud(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Gd=null,Kd=null;function qd(e){return e.nodeType===9?e:e.ownerDocument}function Jd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Yd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Xd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zd=null;function Qd(){var e=window.event;return e&&e.type===`popstate`?e===Zd?!1:(Zd=e,!0):(Zd=null,!1)}var $d=typeof setTimeout==`function`?setTimeout:void 0,ef=typeof clearTimeout==`function`?clearTimeout:void 0,tf=typeof Promise==`function`?Promise:void 0,nf=typeof queueMicrotask==`function`?queueMicrotask:tf===void 0?$d:function(e){return tf.resolve(null).then(e).catch(rf)};function rf(e){setTimeout(function(){throw e})}function af(e){return e===`head`}function of(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Bp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)bf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,bf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ot]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&bf(e.ownerDocument.body);n=i}while(n);Bp(t)}function sf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function cf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:cf(n),st(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function lf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ot])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=hf(e.nextSibling),e===null)break}return null}function uf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=hf(e.nextSibling),e===null))return null;return e}function df(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=hf(e.nextSibling),e===null))return null;return e}function ff(e){return e.data===`$?`||e.data===`$~`}function pf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function mf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function hf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var gf=null;function _f(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return hf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function vf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function yf(e,t,n){switch(t=qd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function bf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);st(e)}var xf=new Map,Sf=new Set;function Cf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wf=L.d;L.d={f:Tf,r:Ef,D:kf,C:Af,L:jf,m:Mf,X:Pf,S:Nf,M:Ff};function Tf(){var e=wf.f(),t=wu();return e||t}function Ef(e){var t=lt(e);t!==null&&t.tag===5&&t.type===`form`?Cs(t):wf.r(e)}var Df=typeof document>`u`?null:document;function Of(e,t,n){var r=Df;if(r&&typeof t==`string`&&t){var i=jt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Sf.has(i)||(Sf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Vd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function kf(e){wf.D(e),Of(`dns-prefetch`,e,null)}function Af(e,t){wf.C(e,t),Of(`preconnect`,e,t)}function jf(e,t,n){wf.L(e,t,n);var r=Df;if(r&&e&&t){var i=`link[rel="preload"][as="`+jt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+jt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+jt(n.imageSizes)+`"]`)):i+=`[href="`+jt(e)+`"]`;var a=i;switch(t){case`style`:a=Lf(e);break;case`script`:a=Vf(e)}xf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),xf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Rf(a))||t===`script`&&r.querySelector(Hf(a))||(t=r.createElement(`link`),Vd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Mf(e,t){wf.m(e,t);var n=Df;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+jt(r)+`"][href="`+jt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Vf(e)}if(!xf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),xf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Hf(a)))return}r=n.createElement(`link`),Vd(r,`link`,e),ft(r),n.head.appendChild(r)}}}function Nf(e,t,n){wf.S(e,t,n);var r=Df;if(r&&e){var i=dt(r).hoistableStyles,a=Lf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Rf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=xf.get(a))&&Gf(e,n);var c=o=r.createElement(`link`);ft(c),Vd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Wf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Pf(e,t){wf.X(e,t);var n=Df;if(n&&e){var r=dt(n).hoistableScripts,i=Vf(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=m({src:e,async:!0},t),(t=xf.get(i))&&Kf(e,t),a=n.createElement(`script`),ft(a),Vd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Ff(e,t){wf.M(e,t);var n=Df;if(n&&e){var r=dt(n).hoistableScripts,i=Vf(e),a=r.get(i);a||(a=n.querySelector(Hf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=xf.get(i))&&Kf(e,t),a=n.createElement(`script`),ft(a),Vd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t,n,r){var a=(a=W.current)?Cf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Lf(n.href),n=dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Lf(n.href);var o=dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Rf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),xf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xf.set(e,n),o||Bf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Vf(n),n=dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Lf(e){return`href="`+jt(e)+`"`}function Rf(e){return`link[rel="stylesheet"][`+e+`]`}function zf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Bf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Vd(t,`link`,n),ft(t),e.head.appendChild(t))}function Vf(e){return`[src="`+jt(e)+`"]`}function Hf(e){return`script[async]`+e}function Uf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+jt(n.href)+`"]`);if(r)return t.instance=r,ft(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ft(r),Vd(r,`style`,a),Wf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Lf(n.href);var o=e.querySelector(Rf(a));if(o)return t.state.loading|=4,t.instance=o,ft(o),o;r=zf(n),(a=xf.get(a))&&Gf(r,a),o=(e.ownerDocument||e).createElement(`link`),ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Vd(o,`link`,r),t.state.loading|=4,Wf(o,n.precedence,e),t.instance=o;case`script`:return o=Vf(n.src),(a=e.querySelector(Hf(o)))?(t.instance=a,ft(a),a):(r=n,(a=xf.get(o))&&(r=m({},n),Kf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ft(a),Vd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Wf(r,n.precedence,e));return t.instance}function Wf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Kf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var qf=null;function Jf(e,t,n){if(qf===null){var r=new Map,i=qf=new Map;i.set(n,r)}else i=qf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ot]||a[$e]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Yf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Zf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Lf(r.href),a=t.querySelector(Rf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=tp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ft(a);return}a=t.ownerDocument||t,r=zf(r),(i=xf.get(i))&&Gf(r,i),a=a.createElement(`link`),ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Vd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=tp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $f=0;function ep(e,t){return e.stylesheets&&e.count===0&&rp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&rp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$f===0&&($f=62500*Wd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&rp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$f?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function tp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var np=null;function rp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,np=new Map,t.forEach(ip,e),np=null,tp.call(e))}function ip(e,t){if(!(t.state.loading&4)){var n=np.get(e);if(n)var r=n.get(null);else{n=new Map,np.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=tp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ap={$$typeof:C,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function op(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=He(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=He(0),this.hiddenUpdates=He(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function sp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new op(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ei(3,null,null,t),e.current=a,a.stateNode=e,t=ta(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Pa(a),e}function cp(e){return e?(e=Qr,e):Qr}function lp(e,t,n,r,i,a){i=cp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ia(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=La(e,r,t),n!==null&&(yu(n,e,t),Ra(n,e,t))}function up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function dp(e,t){up(e,t),(e=e.alternate)&&up(e,t)}function fp(e){if(e.tag===13||e.tag===31){var t=Yr(e,67108864);t!==null&&yu(t,e,67108864),dp(e,67108864)}}function pp(e){if(e.tag===13||e.tag===31){var t=_u();t=Je(t);var n=Yr(e,t);n!==null&&yu(n,e,t),dp(e,t)}}var mp=!0;function hp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=2,_p(e,t,n,r)}finally{L.p=a,I.T=i}}function gp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=8,_p(e,t,n,r)}finally{L.p=a,I.T=i}}function _p(e,t,n,r){if(mp){var i=vp(r);if(i===null)Ad(e,t,r,yp,n),Ap(e,r);else if(Mp(i,e,t,n,r))r.stopPropagation();else if(Ap(e,r),t&4&&-1<kp.indexOf(e)){for(;i!==null;){var a=lt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Re(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-je(o);s.entanglements[1]|=c,o&=~c}cd(a),!(Rl&6)&&(au=ye()+500,ld(0,!1))}}break;case 31:case 13:s=Yr(a,2),s!==null&&yu(s,a,2),wu(),dp(a,2)}if(a=vp(r),a===null&&Ad(e,t,r,yp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ad(e,t,r,null,n)}}function vp(e){return e=qt(e),bp(e)}var yp=null;function bp(e){if(yp=null,e=ct(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return yp=e,null}function xp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(be()){case xe:return 2;case Se:return 8;case Ce:case we:return 32;case Te:return 268435456;default:return 32}default:return 32}}var Sp=!1,Cp=null,wp=null,Tp=null,Ep=new Map,Dp=new Map,Op=[],kp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Ap(e,t){switch(e){case`focusin`:case`focusout`:Cp=null;break;case`dragenter`:case`dragleave`:wp=null;break;case`mouseover`:case`mouseout`:Tp=null;break;case`pointerover`:case`pointerout`:Ep.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Dp.delete(t.pointerId)}}function jp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=lt(t),t!==null&&fp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Mp(e,t,n,r,i){switch(t){case`focusin`:return Cp=jp(Cp,e,t,n,r,i),!0;case`dragenter`:return wp=jp(wp,e,t,n,r,i),!0;case`mouseover`:return Tp=jp(Tp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ep.set(a,jp(Ep.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Dp.set(a,jp(Dp.get(a)||null,e,t,n,r,i)),!0}return!1}function Np(e){var t=ct(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Ze(e.priority,function(){pp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Ze(e.priority,function(){pp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Kt=r,n.target.dispatchEvent(r),Kt=null}else return t=lt(n),t!==null&&fp(t),e.blockedOn=n,!1;t.shift()}return!0}function Fp(e,t,n){Pp(e)&&n.delete(t)}function Ip(){Sp=!1,Cp!==null&&Pp(Cp)&&(Cp=null),wp!==null&&Pp(wp)&&(wp=null),Tp!==null&&Pp(Tp)&&(Tp=null),Ep.forEach(Fp),Dp.forEach(Fp)}function Lp(e,n){e.blockedOn===n&&(e.blockedOn=null,Sp||(Sp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ip)))}var Rp=null;function zp(e){Rp!==e&&(Rp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Rp===e&&(Rp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(bp(r||n)===null)continue;break}var a=lt(n);a!==null&&(e.splice(t,3),t-=3,xs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Bp(e){function t(t){return Lp(t,e)}Cp!==null&&Lp(Cp,e),wp!==null&&Lp(wp,e),Tp!==null&&Lp(Tp,e),Ep.forEach(t),Dp.forEach(t);for(var n=0;n<Op.length;n++){var r=Op[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Op.length&&(n=Op[0],n.blockedOn===null);)Np(n),n.blockedOn===null&&Op.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[et]||null;if(typeof a==`function`)o||zp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[et]||null)s=o.formAction;else if(bp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),zp(n)}}}function Vp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Hp(e){this._internalRoot=e}Up.prototype.render=Hp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;lp(n,_u(),e,t,null,null)},Up.prototype.unmount=Hp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;lp(e.current,2,null,e,null,null),wu(),t[tt]=null}};function Up(e){this._internalRoot=e}Up.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Op.length&&t!==0&&t<Op[n].priority;n++);Op.splice(n,0,e),n===0&&Np(e)}};var Wp=n.version;if(Wp!==`19.2.6`)throw Error(i(527,Wp,`19.2.6`));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Gp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Kp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kp.isDisabled&&Kp.supportsFiber)try{Oe=Kp.inject(Gp),ke=Kp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ws,s=Gs,c=Ks;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=sp(e,1,!1,null,null,n,r,null,o,s,c,Vp),e[tt]=t.current,Od(e),new Hp(t)}})),_=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=l(d()),y=_(),b=e=>{let t=v.useRef(e);return t.current=e,v.useCallback((...e)=>t.current?.(...e),[])};function x(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var S=x()?v.useLayoutEffect:v.useEffect,C=(e,t)=>{let n=v.useRef(!0);S(()=>e(n.current),t),S(()=>(n.current=!1,()=>{n.current=!0}),[])},w=(e,t)=>{C(t=>{if(!t)return e()},t)},T=e=>{let t=v.useRef(!1),[n,r]=v.useState(e);v.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(e,n){n&&t.current||r(e)}return[n,i]};function E(e,t){let[n,r]=(0,v.useState)(e),i=t===void 0?n:t;return C(e=>{e||r(t)},[t]),[i,r]}var D=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case u:case d:return e;default:switch(e&&=e.$$typeof,e){case c:case s:case l:case p:case f:case o:return e;default:return m}}case n:return m}}}e.ForwardRef=l,e.isMemo=function(e){return m(e)===f}})),O=o(((e,t)=>{t.exports=D()}));function k(e,t,n){let r=v.useRef({});return(!(`value`in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var A=Symbol.for(`react.element`),j=Symbol.for(`react.transitional.element`),M=Symbol.for(`react.fragment`);function N(e){return e&&typeof e==`object`&&(e.$$typeof===A||e.$$typeof===j)&&e.type===M}var P=O(),F=Number(v.version.split(`.`)[0]),I=(e,t)=>{typeof e==`function`?e(t):typeof e==`object`&&e&&`current`in e&&(e.current=t)},L=(...e)=>{let t=e.filter(Boolean);return t.length<=1?t[0]:t=>{e.forEach(e=>{I(e,t)})}},R=(...e)=>k(()=>L(...e),e,(e,t)=>e.length!==t.length||e.every((e,n)=>e!==t[n])),z=e=>{if(!e)return!1;if(B(e)&&F>=19)return!0;let t=(0,P.isMemo)(e)?e.type.type:e.type;return!(typeof t==`function`&&!t.prototype?.render&&t.$$typeof!==P.ForwardRef||typeof e==`function`&&!e.prototype?.render&&e.$$typeof!==P.ForwardRef)};function B(e){return(0,v.isValidElement)(e)&&!N(e)}var V=e=>B(e)&&z(e),H=e=>{if(e&&B(e)){let t=e;return t.props.propertyIsEnumerable(`ref`)?t.props.ref:t.ref}return null};function U(e,t){let n=e;for(let e=0;e<t.length;e+=1){if(n==null)return;n=n[t[e]]}return n}function ee(e,t,n,r){if(!t.length)return n;let[i,...a]=t,o;return o=!e&&typeof i==`number`?[]:Array.isArray(e)?[...e]:{...e},r&&n===void 0&&a.length===1?delete o[i][a[0]]:o[i]=ee(o[i],a,n,r),o}function te(e,t,n,r=!1){return t.length&&r&&n===void 0&&!U(e,t.slice(0,-1))?e:ee(e,t,n,r)}function W(e){return typeof e==`object`&&!!e&&Object.getPrototypeOf(e)===Object.prototype}function ne(e){return Array.isArray(e)?[]:{}}var re=typeof Reflect>`u`?Object.keys:Reflect.ownKeys;function ie(e,t={}){let{prepareArray:n}=t,r=n||(()=>[]),i=ne(e[0]);return e.forEach(e=>{function t(n,a){let o=new Set(a),s=U(e,n),c=Array.isArray(s);if(c||W(s)){if(!o.has(s)){o.add(s);let e=U(i,n);c?i=te(i,n,r(e,s)):(!e||typeof e!=`object`)&&(i=te(i,n,ne(s))),re(s).forEach(e=>{Object.getOwnPropertyDescriptor(s,e).enumerable&&t([...n,e],o)})}}else i=te(i,n,s)}t([])}),i}function ae(...e){return ie(e)}var oe={},se=[],ce=e=>{se.push(e)};function le(e,t){}function ue(e,t){}function de(){oe={}}function fe(e,t,n){!t&&!oe[n]&&(e(!1,n),oe[n]=!0)}function pe(e,t){fe(le,e,t)}function me(e,t){fe(ue,e,t)}pe.preMessage=ce,pe.resetWarned=de,pe.noteOnce=me;function he(e,t){let n=Object.assign({},e);return Array.isArray(t)&&t.forEach(e=>{delete n[e]}),n}function ge(e,t={}){let n=[];return v.Children.forEach(e,e=>{e==null&&!t.keepEmpty||(Array.isArray(e)?n=n.concat(ge(e)):N(e)&&e.props?n=n.concat(ge(e.props.children,t)):n.push(e))}),n}function _e(){}var{resetWarned:ve}=pe,ye=v.createContext({}),be=()=>{let e=()=>{};return e.deprecated=_e,e};function xe(e){return e instanceof HTMLElement||e instanceof SVGElement}function Se(e){return e&&typeof e==`object`&&xe(e.nativeElement)?e.nativeElement:xe(e)?e:null}var Ce=v.createContext(null);function we({children:e,onBatchResize:t}){let n=v.useRef(0),r=v.useRef([]),i=v.useContext(Ce),a=v.useCallback((e,a,o)=>{n.current+=1;let s=n.current;r.current.push({size:e,element:a,data:o}),Promise.resolve().then(()=>{s===n.current&&(t?.(r.current),r.current=[])}),i?.(e,a,o)},[t,i]);return v.createElement(Ce.Provider,{value:a},e)}var Te=new Map;function Ee(e){e.forEach(e=>{let{target:t}=e;Te.get(t)?.forEach(e=>e(t))})}var De;function Oe(){return De||=new ResizeObserver(Ee),De}function ke(e,t){Te.has(e)||(Te.set(e,new Set),Oe().observe(e)),Te.get(e).add(t)}function Ae(e,t){Te.has(e)&&(Te.get(e).delete(t),Te.get(e).size||(Oe().unobserve(e),Te.delete(e)))}function je(e,t,n,r){let i=v.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),a=b(e=>{let{width:t,height:a}=e.getBoundingClientRect(),{offsetWidth:o,offsetHeight:s}=e,c=Math.floor(t),l=Math.floor(a);if(i.current.width!==c||i.current.height!==l||i.current.offsetWidth!==o||i.current.offsetHeight!==s){let u={width:c,height:l,offsetWidth:o,offsetHeight:s};i.current=u;let d=o===Math.round(t)?t:o,f=s===Math.round(a)?a:s,p={...u,offsetWidth:d,offsetHeight:f};r?.(p,e),Promise.resolve().then(()=>{n?.(p,e)})}}),o=typeof t==`function`,s=v.useRef(0);v.useEffect(()=>{let n=o?t():t;return n&&e?ke(n,a):e&&o&&(s.current+=1),()=>{n&&Ae(n,a)}},[e,o?s.current:t])}function Me(e,t){let{children:n,disabled:r,onResize:i,data:a}=e,o=v.useRef(null),s=v.useContext(Ce),c=typeof n==`function`,l=c?n(o):n,u=!c&&v.isValidElement(l)&&z(l),d=R(u?H(l):null,o),f=()=>Se(o.current);return v.useImperativeHandle(t,()=>f()),je(!r,f,i,(e,t)=>{s?.(e,t,a)}),u?v.cloneElement(l,{ref:d}):l}var Ne=v.forwardRef(Me);function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(this,arguments)}var Fe=`rc-observer-key`;function Ie(e,t){let{children:n}=e;return(typeof n==`function`?[n]:ge(n)).map((n,r)=>{let i=n?.key||`${Fe}-${r}`;return v.createElement(Ne,Pe({},e,{key:i,ref:r===0?t:void 0}),n)})}var Le=v.forwardRef(Ie);Le.Collection=we;function Re(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Re(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function G(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Re(e))&&(r&&(r+=` `),r+=t);return r}function ze(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Be(e){if(Array.isArray(e))return ze(e)}function Ve(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function He(e,t){if(e){if(typeof e==`string`)return ze(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ze(e,t):void 0}}function Ue(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function We(e){return Be(e)||Ve(e)||He(e)||Ue()}var Ge=e=>+setTimeout(e,16),Ke=e=>clearTimeout(e);typeof window<`u`&&`requestAnimationFrame`in window&&(Ge=e=>window.requestAnimationFrame(e),Ke=e=>window.cancelAnimationFrame(e));var qe=0,Je=new Map;function Ye(e){Je.delete(e)}var Xe=(e,t=1)=>{qe+=1;let n=qe;function r(t){if(t===0)Ye(n),e();else{let e=Ge(()=>{r(t-1)});Je.set(n,e)}}return r(t),n};Xe.cancel=e=>{let t=Je.get(e);return Ye(e),Ke(t)};var Ze=`anticon`,Qe=[`outlined`,`borderless`,`filled`,`underlined`],$e=v.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:`ant`),iconPrefixCls:Ze}),{Consumer:et}=$e,tt={};function nt(e){let t=v.useContext($e),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}=t;return{classNames:tt,styles:tt,...t[e],getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:a}}function rt(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function it(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}var at=`data-rc-order`,ot=`data-rc-priority`,st=`rc-util-key`,ct=new Map;function lt({mark:e}={}){return e?e.startsWith(`data-`)?e:`data-${e}`:st}function ut(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function dt(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function ft(e){return Array.from((ct.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function pt(e,t={}){if(!x())return null;let{csp:n,prepend:r,priority:i=0}=t,a=dt(r),o=a===`prependQueue`,s=document.createElement(`style`);s.setAttribute(at,a),o&&i&&s.setAttribute(ot,`${i}`),n?.nonce&&(s.nonce=n?.nonce),s.innerHTML=e;let c=ut(t),{firstChild:l}=c;if(r){if(o){let e=(t.styles||ft(c)).filter(e=>[`prepend`,`prependQueue`].includes(e.getAttribute(at))?i>=Number(e.getAttribute(ot)||0):!1);if(e.length)return c.insertBefore(s,e[e.length-1].nextSibling),s}c.insertBefore(s,l)}else c.appendChild(s);return s}function mt(e,t={}){let{styles:n}=t;return n||=ft(ut(t)),n.find(n=>n.getAttribute(lt(t))===e)}function ht(e,t={}){let n=mt(e,t);n&&ut(t).removeChild(n)}function gt(e,t){let n=ct.get(e);if(!n||!it(document,n)){let n=pt(``,t),{parentNode:r}=n;ct.set(e,r),e.removeChild(n)}}function _t(e,t,n={}){let r=ut(n),i=ft(r),a={...n,styles:i};gt(r,a);let o=mt(t,a);if(o)return a.csp?.nonce&&o.nonce!==a.csp?.nonce&&(o.nonce=a.csp?.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;let s=pt(e,a);return s.setAttribute(lt(a),t),s}function vt(e,t,n=!1){let r=new Set;function i(e,t,a=1){let o=r.has(e);if(pe(!o,`Warning: There may be circular references`),o)return!1;if(e===t)return!0;if(n&&a>1)return!1;r.add(e);let s=a+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!i(e[n],t[n],s))return!1;return!0}if(e&&t&&typeof e==`object`&&typeof t==`object`){let n=Object.keys(e);return n.length===Object.keys(t).length?n.every(n=>i(e[n],t[n],s)):!1}return!1}return i(e,t)}var yt=`%`;function bt(e){return e.join(yt)}var xt=0,St=class{instanceId;constructor(e){this.instanceId=e}cache=new Map;updateTimes=new Map;extracted=new Set;get(e){return this.opGet(bt(e))}opGet(e){return this.cache.get(e)||null}update(e,t){return this.opUpdate(bt(e),t)}opUpdate(e,t){let n=t(this.cache.get(e));n===null?(this.cache.delete(e),this.updateTimes.delete(e)):(this.cache.set(e,n),this.updateTimes.set(e,xt),xt+=1)}},Ct=`data-token-hash`,wt=`data-css-hash`,Tt=`__cssinjs_instance__`;function Et(){let e=Math.random().toString(12).slice(2);if(typeof document<`u`&&document.head&&document.body){let t=document.body.querySelectorAll(`style[data-css-hash]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[Tt]||=e,t.__cssinjs_instance__===e&&document.head.insertBefore(t,n)});let r={};Array.from(document.querySelectorAll(`style[${wt}]`)).forEach(t=>{let n=t.getAttribute(wt);r[n]?t.__cssinjs_instance__===e&&t.parentNode?.removeChild(t):r[n]=!0})}return new St(e)}var Dt=v.createContext({hashPriority:`low`,cache:Et(),defaultCache:!0,autoPrefix:!1});function Ot(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var kt=class e{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let n={map:this.cache};return e.forEach(e=>{n=n?n?.map?.get(e):void 0}),n?.value&&t&&(n.value[1]=this.cacheCallTimes++),n?.value}get(e){return this.internalGet(e,!0)?.[0]}has(e){return!!this.internalGet(e)}set(t,n){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){let[e]=this.keys.reduce((e,t)=>{let[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(t)}let r=this.cache;t.forEach((e,i)=>{if(i===t.length-1)r.set(e,{value:[n,this.cacheCallTimes++]});else{let t=r.get(e);t?t.map||=new Map:r.set(e,{map:new Map}),r=r.get(e).map}})}deleteByPath(e,t){let n=e.get(t[0]);if(t.length===1)return n.map?e.set(t[0],{map:n.map}):e.delete(t[0]),n.value?.[0];let r=this.deleteByPath(n.map,t.slice(1));return(!n.map||n.map.size===0)&&!n.value&&e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!Ot(t,e)),this.deleteByPath(this.cache,e)}},At=0,jt=class{derivatives;id;constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=At,e.length===0&&e.length,At+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}},Mt=new kt;function Nt(e){let t=Array.isArray(e)?e:[e];return Mt.has(t)||Mt.set(t,new jt(t)),Mt.get(t)}var Pt=new WeakMap,Ft={};function It(e,t){let n=Pt;for(let e=0;e<t.length;e+=1){let r=t[e];n.has(r)||n.set(r,new WeakMap),n=n.get(r)}return n.has(Ft)||n.set(Ft,e()),n.get(Ft)}var Lt=new WeakMap;function Rt(e){let t=Lt.get(e)||``;return t||(Object.keys(e).forEach(n=>{let r=e[n];t+=n,r instanceof jt?t+=r.id:r&&typeof r==`object`?t+=Rt(r):t+=r}),t=rt(t),Lt.set(e,t)),t}function zt(e,t){return rt(`${t}_${Rt(e)}`)}`random-${Date.now()}-${Math.random()}`.replace(/\./g,``);var Bt=x();function K(e){return typeof e==`number`?`${e}px`:e}function Vt(e){let{hashCls:t,hashPriority:n=`low`}=e||{};if(!t)return``;let r=`.${t}`;return n===`low`?`:where(${r})`:r}var Ht=e=>e!=null;function Ut(e,t){let n=typeof t==`function`?t():t;return n?{...e,csp:{...e.csp,nonce:n}}:e}var Wt=(e,t=``)=>`--${t?`${t}-`:``}${e}`.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,`$1-$2`).replace(/([a-z])([A-Z0-9])/g,`$1-$2`).toLowerCase(),Gt=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,scope:a}=n||{};if(!Object.keys(e).length)return``;let o=`${Vt({hashCls:r,hashPriority:i})}.${t}`,s=[a].flat().filter(Boolean);return`${s.length?s.map(e=>`${o}.${e}`).join(`, `):o}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join(``)}}`},Kt=(e,t,n)=>{let{hashCls:r,hashPriority:i=`low`,prefix:a,unitless:o,ignore:s,preserve:c}=n||{},l={},u={};return Object.entries(e).forEach(([e,t])=>{if(c?.[e])u[e]=t;else if((typeof t==`string`||typeof t==`number`)&&!s?.[e]){let n=Wt(e,a);l[n]=typeof t==`number`&&!o?.[e]?`${t}px`:String(t),u[e]=`var(${n})`}}),[u,Gt(l,t,{scope:n?.scope,hashCls:r,hashPriority:i})]},qt=new Map;function Jt(e,t,n,r,i){let{cache:a}=v.useContext(Dt),o=bt([e,...t]),s=e=>{a.opUpdate(o,t=>{let[r=0,i]=t||[void 0,void 0],a=[r,i||n()];return e?e(a):a})};v.useMemo(()=>{s()},[o]);let c=a.opGet(o)[1];return(0,v.useInsertionEffect)(()=>(s(([e,t])=>[e+1,t]),qt.has(o)||(i?.(c),qt.set(o,!0),Promise.resolve().then(()=>{qt.delete(o)})),()=>{a.opUpdate(o,e=>{let[t=0,n]=e||[];return t-1==0?(r?.(n,!1),qt.delete(o),null):[t-1,n]})}),[o]),c}var Yt={},Xt=`css`,Zt=new Map;function Qt(e){Zt.set(e,(Zt.get(e)||0)+1)}function $t(e,t){typeof document<`u`&&document.querySelectorAll(`style[${Ct}="${e}"]`).forEach(e=>{e.__cssinjs_instance__===t&&e.parentNode?.removeChild(e)})}var en=-1;function tn(e,t){Zt.set(e,(Zt.get(e)||0)-1);let n=new Set;Zt.forEach((e,t)=>{e<=0&&n.add(t)}),Zt.size-n.size>en&&n.forEach(e=>{$t(e,t),Zt.delete(e)})}var nn=(e,t,n,r)=>{let i={...n.getDerivativeToken(e),...t};return r&&(i=r(i)),i},rn=`token`;function an(e,t,n){let{cache:{instanceId:r},container:i,hashPriority:a}=(0,v.useContext)(Dt),{salt:o=``,override:s=Yt,formatToken:c,getComputedToken:l,cssVar:u,nonce:d}=n,f=It(()=>Object.assign({},...t),t),p=Rt(f),m=Rt(s),h=Rt(u);return Jt(rn,[o,e.id,p,m,h],()=>{let t=l?l(f,s,e):nn(f,s,e,c),n={...t},r=`${o}_${u.prefix}`,i=rt(r),d=`${Xt}-${i}`;n._tokenKey=zt(n,r);let[p,m]=Kt(t,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:a,hashCls:u.hashed?d:void 0});return p._hashId=i,Qt(u.key),[p,d,n,m,u.key]},([,,,,e])=>{tn(e,r)},([,,,e,t])=>{if(!e)return;let n={mark:wt,prepend:`queue`,attachTo:i,priority:-999};n=Ut(n,d);let a=_t(e,rt(`css-var-${t}`),n);a[Tt]=r,a.setAttribute(Ct,t)})}var on={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},sn=`-ms-`,cn=`-moz-`,ln=`-webkit-`,un=`comm`,dn=`rule`,fn=`decl`,pn=`@import`,mn=`@namespace`,hn=`@keyframes`,gn=`@layer`,_n=Math.abs,vn=String.fromCharCode,yn=Object.assign;function bn(e,t){return Tn(e,0)^45?(((t<<2^Tn(e,0))<<2^Tn(e,1))<<2^Tn(e,2))<<2^Tn(e,3):0}function xn(e){return e.trim()}function Sn(e,t){return(e=t.exec(e))?e[0]:e}function Cn(e,t,n){return e.replace(t,n)}function wn(e,t){return e.indexOf(t)}function Tn(e,t){return e.charCodeAt(t)|0}function En(e,t,n){return e.slice(t,n)}function Dn(e){return e.length}function On(e){return e.length}function kn(e,t){return t.push(e),e}function An(e,t){return e.map(t).join(``)}function jn(e,t){return e.filter(function(e){return!Sn(e,t)})}var Mn=1,Nn=1,Pn=0,Fn=0,In=0,Ln=``;function Rn(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Mn,column:Nn,length:o,return:``,siblings:s}}function zn(e,t){return yn(Rn(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function Bn(e){for(;e.root;)e=zn(e.root,{children:[e]});kn(e,e.siblings)}function Vn(){return In}function Hn(){return In=Fn>0?Tn(Ln,--Fn):0,Nn--,In===10&&(Nn=1,Mn--),In}function Un(){return In=Fn<Pn?Tn(Ln,Fn++):0,Nn++,In===10&&(Nn=1,Mn++),In}function Wn(){return Tn(Ln,Fn)}function Gn(){return Fn}function Kn(e,t){return En(Ln,e,t)}function qn(e){switch(e){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 Jn(e){return Mn=Nn=1,Pn=Dn(Ln=e),Fn=0,[]}function Yn(e){return Ln=``,e}function Xn(e){return xn(Kn(Fn-1,$n(e===91?e+2:e===40?e+1:e)))}function Zn(e){for(;(In=Wn())&&In<33;)Un();return qn(e)>2||qn(In)>3?``:` `}function Qn(e,t){for(;--t&&Un()&&!(In<48||In>102||In>57&&In<65||In>70&&In<97););return Kn(e,Gn()+(t<6&&Wn()==32&&Un()==32))}function $n(e){for(;Un();)switch(In){case e:return Fn;case 34:case 39:e!==34&&e!==39&&$n(In);break;case 40:e===41&&$n(e);break;case 92:Un();break}return Fn}function er(e,t){for(;Un()&&e+In!==57&&!(e+In===84&&Wn()===47););return`/*`+Kn(t,Fn-1)+`*`+vn(e===47?e:Un())}function tr(e){for(;!qn(Wn());)Un();return Kn(e,Fn)}function nr(e){return Yn(rr(``,null,null,null,[``],e=Jn(e),0,[0],e))}function rr(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=0,b=``,x=i,S=a,C=r,w=b;g;)switch(m=y,y=Un()){case 40:m!=108&&Tn(w,d-1)==58?(v++,w+=`(`):w+=Xn(y);break;case 41:v--,w+=`)`;break;case 34:case 39:case 91:w+=Xn(y);break;case 9:case 10:case 13:case 32:if(v>0){w+=vn(y);break}w+=Zn(m);break;case 92:w+=Qn(Gn()-1,7);continue;case 47:switch(Wn()){case 42:case 47:kn(ar(er(Un(),Gn()),t,n,c),c),(qn(m||1)==5||qn(Wn()||1)==5)&&Dn(w)&&En(w,-1,void 0)!==` `&&(w+=` `);break;default:w+=`/`}break;case 123*h:s[l++]=Dn(w)*_;case 125*h:case 59:case 0:if(v>0&&y){w+=vn(y);break}switch(y){case 0:case 125:g=0;case 59+u:_==-1&&(w=Cn(w,/\f/g,``)),p>0&&(Dn(w)-d||h===0)&&kn(p>32?or(w+`;`,r,n,d-1,c):or(Cn(w,` `,``)+`;`,r,n,d-2,c),c);break;case 59:w+=`;`;default:if(kn(C=ir(w,t,n,l,u,i,s,b,x=[],S=[],d,a),a),y===123)if(u===0)rr(w,t,C,C,x,a,d,s,S);else{switch(f){case 99:if(Tn(w,3)===110)break;case 108:if(Tn(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?rr(e,C,C,r&&kn(ir(e,C,C,0,0,i,s,b,i,x=[],d,S),S),i,S,d,s,r?x:S):rr(w,C,C,C,[``],S,0,s,S)}}l=u=p=0,h=_=1,b=w=``,d=o;break;case 58:d=1+Dn(w),p=m;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&Hn()==125)continue}switch(w+=vn(y),y*h){case 38:_=u>0?1:(w+=`\f`,-1);break;case 44:if(v>0)break;s[l++]=(Dn(w)-1)*_,_=1;break;case 64:Wn()===45&&(w+=Xn(Un())),f=Wn(),u=d=Dn(b=w+=tr(Gn())),y++;break;case 45:m===45&&Dn(w)==2&&(h=0)}}return a}function ir(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=On(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=En(e,f+1,f=_n(g=o[h])),b=e;v<m;++v)(b=xn(g>0?p[v]+` `+y:Cn(y,/&\f/g,p[v])))&&(c[_++]=b);return Rn(e,t,n,i===0?dn:s,c,l,u,d)}function ar(e,t,n,r){return Rn(e,t,n,un,vn(Vn()),En(e,2,-2),0,r)}function or(e,t,n,r,i){return Rn(e,t,n,fn,En(e,0,r),En(e,r+1,-1),r,i)}function sr(e,t,n){switch(bn(e,t)){case 5103:return ln+`print-`+e+e;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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return ln+e+e;case 4855:return ln+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return cn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ln+e+cn+e+sn+e+e;case 5936:switch(Tn(e,t+11)){case 114:return ln+e+sn+Cn(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return ln+e+sn+Cn(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return ln+e+sn+Cn(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return ln+e+sn+e+e;case 6165:return ln+e+sn+`flex-`+e+e;case 5187:return ln+e+Cn(e,/(\w+).+(:[^]+)/,ln+`box-$1$2`+sn+`flex-$1$2`)+e;case 5443:return ln+e+sn+`flex-item-`+Cn(e,/flex-|-self/g,``)+(Sn(e,/flex-|baseline/)?``:sn+`grid-row-`+Cn(e,/flex-|-self/g,``))+e;case 4675:return ln+e+sn+`flex-line-pack`+Cn(e,/align-content|flex-|-self/g,``)+e;case 5548:return ln+e+sn+Cn(e,`shrink`,`negative`)+e;case 5292:return ln+e+sn+Cn(e,`basis`,`preferred-size`)+e;case 6060:return ln+`box-`+Cn(e,`-grow`,``)+ln+e+sn+Cn(e,`grow`,`positive`)+e;case 4554:return ln+Cn(e,/([^-])(transform)/g,`$1`+ln+`$2`)+e;case 6187:return Cn(Cn(Cn(e,/(zoom-|grab)/,ln+`$1`),/(image-set)/,ln+`$1`),e,``)+e;case 5495:case 3959:return Cn(e,/(image-set\([^]*)/,ln+"$1$`$1");case 4968:return Cn(Cn(e,/(.+:)(flex-)?(.*)/,ln+`box-pack:$3`+sn+`flex-pack:$3`),/space-between/,`justify`)+ln+e+e;case 4200:if(!Sn(e,/flex-|baseline/))return sn+`grid-column-align`+En(e,t)+e;break;case 2592:case 3360:return sn+Cn(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Sn(e.props,/grid-\w+-end/)})?~wn(e+(n=n[t].value),`span`)?e:sn+Cn(e,`-start`,``)+e+sn+`grid-row-span:`+(~wn(n,`span`)?Sn(n,/\d+/):Sn(n,/\d+/)-+Sn(e,/\d+/))+`;`:sn+Cn(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return Sn(e.props,/grid-\w+-start/)})?e:sn+Cn(Cn(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return Cn(e,/(.+)-inline(.+)/,ln+`$1$2`)+e;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(Dn(e)-1-t>6)switch(Tn(e,t+1)){case 109:if(Tn(e,t+4)!==45)break;case 102:return Cn(e,/(.+:)(.+)-([^]+)/,`$1`+ln+`$2-$3$1`+cn+(Tn(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~wn(e,`stretch`)?sr(Cn(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return Cn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return sn+n+`:`+r+s+(i?sn+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(Tn(e,t+6)===121)return Cn(e,`:`,`:`+ln)+e;break;case 6444:switch(Tn(e,Tn(e,14)===45?18:11)){case 120:return Cn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+ln+(Tn(e,14)===45?`inline-`:``)+`box$3$1`+ln+`$2$3$1`+sn+`$2box$3`)+e;case 100:return Cn(e,`:`,`:`+sn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Cn(e,`scroll-`,`scroll-snap-`)+e}return e}function cr(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function lr(e,t,n,r){switch(e.type){case gn:if(e.children.length)break;case pn:case mn:case fn:return e.return=e.return||e.value;case un:return``;case hn:return e.return=e.value+`{`+cr(e.children,r)+`}`;case dn:if(!Dn(e.value=e.props.join(`,`)))return``}return Dn(n=cr(e.children,r))?e.return=e.value+`{`+n+`}`:``}function ur(e){var t=On(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function dr(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case fn:e.return=sr(e.value,e.length,n);return;case hn:return cr([zn(e,{value:Cn(e.value,`@`,`@`+ln)})],r);case dn:if(e.length)return An(n=e.props,function(t){switch(Sn(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:Bn(zn(e,{props:[Cn(t,/:(read-\w+)/,`:`+cn+`$1`)]})),Bn(zn(e,{props:[t]})),yn(e,{props:jn(n,r)});break;case`::placeholder`:Bn(zn(e,{props:[Cn(t,/:(plac\w+)/,`:`+ln+`input-$1`)]})),Bn(zn(e,{props:[Cn(t,/:(plac\w+)/,`:`+cn+`$1`)]})),Bn(zn(e,{props:[Cn(t,/:(plac\w+)/,sn+`input-$1`)]})),Bn(zn(e,{props:[t]})),yn(e,{props:jn(n,r)});break}return``})}}var fr=`data-ant-cssinjs-cache-path`,pr=`_FILE_STYLE__`,mr,hr=!0;function gr(){if(!mr&&(mr={},x())){let e=document.createElement(`div`);e.className=fr,e.style.position=`fixed`,e.style.visibility=`hidden`,e.style.top=`-9999px`,document.body.appendChild(e);let t=getComputedStyle(e).content||``;t=t.replace(/^"/,``).replace(/"$/,``),t.split(`;`).forEach(e=>{let[t,n]=e.split(`:`);mr[t]=n});let n=document.querySelector(`style[${fr}]`);n&&(hr=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function _r(e){return gr(),!!mr[e]}function vr(e){let t=mr[e],n=null;if(t&&x())if(hr)n=pr;else{let t=document.querySelector(`style[${wt}="${mr[e]}"]`);t?n=t.innerHTML:delete mr[e]}return[n,t]}var yr=`_skip_check_`,br=`_multi_value_`;function xr(e,t){return(t?cr(nr(e),ur([dr,lr])):cr(nr(e),lr)).replace(/\{%%%\:[^;];}/g,`;`)}function Sr(e){return typeof e==`object`&&e&&(yr in e||br in e)}function Cr(e,t,n=`high`){if(!t)return e;let r=Vt({hashCls:t,hashPriority:n});return e.split(`,`).map(e=>{let t=e.trim().split(/\s+/),n=t[0]||``,i=n.match(/^\w+/)?.[0]||``;return n=`${i}${r}${n.slice(i.length)}`,[n,...t.slice(1)].join(` `)}).join(`,`)}var wr=(e,t={},{root:n,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{let{hashId:a,layer:o,path:s,hashPriority:c,transformers:l=[],linters:u=[]}=t,d=``,f={};function p(e){let n=e.getName(a);if(!f[n]){let[r]=wr(e.style,t,{root:!1,parentSelectors:i});f[n]=`@keyframes ${e.getName(a)}${r}`}}function m(e,t=[]){return e.forEach(e=>{Array.isArray(e)?m(e,t):e&&t.push(e)}),t}return m(Array.isArray(e)?e:[e]).forEach(e=>{let o=typeof e==`string`&&!n?{}:e;if(typeof o==`string`)d+=`${o}\n`;else if(o._keyframe)p(o);else{let e=l.reduce((e,t)=>t?.visit?.(e)||e,o);Object.keys(e).forEach(o=>{let s=e[o];if(typeof s==`object`&&s&&(o!==`animationName`||!s._keyframe)&&!Sr(s)){let e=!1,l=o.trim(),u=!1;(n||r)&&a?l.startsWith(`@`)?e=!0:l=Cr(l===`&`?``:o,a,c):n&&!a&&(l===`&`||l===``)&&(l=``,u=!0);let[p,m]=wr(s,t,{root:u,injectHash:e,parentSelectors:[...i,l]});f={...f,...m},d+=`${l}${p}`}else{function e(e,t){let n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),r=t;!on[e]&&typeof r==`number`&&r!==0&&(r=`${r}px`),e===`animationName`&&t?._keyframe&&(p(t),r=t.getName(a)),d+=`${n}:${r};`}let t=s?.value??s;typeof s==`object`&&s?.[br]&&Array.isArray(t)?t.forEach(t=>{e(o,t)}):Ht(t)&&e(o,t)}})}}),n?o&&(d&&=`@layer ${o.name} {${d}}`,o.dependencies&&(f[`@layer ${o.name}`]=o.dependencies.map(e=>`@layer ${e}, ${o.name};`).join(`
|
||
`))):d=`{${d}}`,[d,f]};function Tr(e,t){return rt(`${e.join(`%`)}${t}`)}var Er=`style`;function Dr(e,t){let{path:n,hashId:r,layer:i,nonce:a,clientOnly:o,order:s=0}=e,{mock:c,hashPriority:l,container:u,transformers:d,linters:f,cache:p,layer:m,autoPrefix:h}=v.useContext(Dt),g=[r||``];m&&g.push(`layer`),g.push(...n);let _=Bt;Jt(Er,g,()=>{let e=g.join(`|`);if(_r(e)){let[t,n]=vr(e);if(t)return[t,n,{},o,s]}let[a,c]=wr(t(),{hashId:r,hashPriority:l,layer:m?i:void 0,path:n.join(`-`),transformers:d,linters:f}),u=xr(a,h||!1);return[u,Tr(g,u),c,o,s]},(e,t)=>{let[,n]=e;t&&Bt&&ht(n,{mark:wt,attachTo:u})},e=>{let[t,n,r,,i]=e;if(_&&t!==`_FILE_STYLE__`){let e={mark:wt,prepend:m?!1:`queue`,attachTo:u,priority:i};e=Ut(e,a);let o=[],s=[];Object.keys(r).forEach(e=>{e.startsWith(`@layer`)?o.push(e):s.push(e)}),o.forEach(t=>{_t(xr(r[t],h||!1),`_layer-${t}`,{...e,prepend:!0})});let c=_t(t,n,e);c[Tt]=p.instanceId,s.forEach(t=>{_t(xr(r[t],h||!1),`_effect-${t}`,e)})}})}var Or=`cssVar`,kr=(e,t)=>{let{key:n,prefix:r,unitless:i,ignore:a,token:o,hashId:s,scope:c,nonce:l}=e,{cache:{instanceId:u},container:d,hashPriority:f}=(0,v.useContext)(Dt),{_tokenKey:p}=o,m=Array.isArray(c)?c.join(`@@`):c,h=[...e.path,n,m,p];return Jt(Or,h,()=>{let[e,o]=Kt(t(),n,{prefix:r,unitless:i,ignore:a,scope:c,hashPriority:f,hashCls:s});return[e,o,Tr(h,o),n]},([,,e])=>{Bt&&ht(e,{mark:wt,attachTo:d})},([,e,t])=>{if(!e)return;let r={mark:wt,prepend:`queue`,attachTo:d,priority:-999};r=Ut(r,l);let i=_t(e,t,r);i[Tt]=u,i.setAttribute(Ct,n)})},Ar=class{name;style;constructor(e,t){this.name=e,this.style=t}getName(e=``){return e?`${e}-${this.name}`:this.name}_keyframe=!0};function jr(e){return e.notSplit=!0,e}jr([`borderTop`,`borderBottom`]),jr([`borderTop`]),jr([`borderBottom`]),jr([`borderLeft`,`borderRight`]),jr([`borderLeft`]),jr([`borderRight`]);function Mr(e){"@babel/helpers - typeof";return Mr=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},Mr(e)}function Nr(e){if(Array.isArray(e))return e}function Pr(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Fr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ir(e,t){return Nr(e)||Pr(e,t)||He(e,t)||Fr()}function Lr(e,t){if(Mr(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Mr(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Rr(e){var t=Lr(e,`string`);return Mr(t)==`symbol`?t:t+``}function zr(e,t,n){return(t=Rr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Br(Object(n),!0).forEach(function(t){zr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Br(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hr(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Rr(r.key),r)}}function Wr(e,t,n){return t&&Ur(e.prototype,t),n&&Ur(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Gr(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Kr(e,t){return Kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kr(e,t)}function qr(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Kr(e,t)}function Jr(e){return Jr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jr(e)}function Yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yr=function(){return!!e})()}function Xr(e,t){if(t&&(Mr(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Gr(e)}function Zr(e){var t=Yr();return function(){var n,r=Jr(e);if(t){var i=Jr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Xr(this,n)}}var Qr=Wr(function e(){Hr(this,e)}),$r=`CALC_UNIT`,ei=new RegExp($r,`g`);function ti(e){return typeof e==`number`?`${e}${$r}`:e}var ni=function(e){qr(n,e);var t=Zr(n);function n(e,r){var i;Hr(this,n),i=t.call(this),zr(Gr(i),`result`,``),zr(Gr(i),`unitlessCssVar`,void 0),zr(Gr(i),`lowPriority`,void 0);var a=Mr(e);return i.unitlessCssVar=r,e instanceof n?i.result=`(${e.result})`:a===`number`?i.result=ti(e):a===`string`&&(i.result=e),i}return Wr(n,[{key:`add`,value:function(e){return e instanceof n?this.result=`${this.result} + ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} + ${ti(e)}`),this.lowPriority=!0,this}},{key:`sub`,value:function(e){return e instanceof n?this.result=`${this.result} - ${e.getResult()}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} - ${ti(e)}`),this.lowPriority=!0,this}},{key:`mul`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} * ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:`div`,value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof n?this.result=`${this.result} / ${e.getResult(!0)}`:(typeof e==`number`||typeof e==`string`)&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:`getResult`,value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:`equal`,value:function(e){var t=this,n=(e||{}).unit,r=!0;return typeof n==`boolean`?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(ei,r?`px`:``),this.lowPriority===void 0?this.result:`calc(${this.result})`}}]),n}(Qr),ri=function(e){qr(n,e);var t=Zr(n);function n(e){var r;return Hr(this,n),r=t.call(this),zr(Gr(r),`result`,0),e instanceof n?r.result=e.result:typeof e==`number`&&(r.result=e),r}return Wr(n,[{key:`add`,value:function(e){return e instanceof n?this.result+=e.result:typeof e==`number`&&(this.result+=e),this}},{key:`sub`,value:function(e){return e instanceof n?this.result-=e.result:typeof e==`number`&&(this.result-=e),this}},{key:`mul`,value:function(e){return e instanceof n?this.result*=e.result:typeof e==`number`&&(this.result*=e),this}},{key:`div`,value:function(e){return e instanceof n?this.result/=e.result:typeof e==`number`&&(this.result/=e),this}},{key:`equal`,value:function(){return this.result}}]),n}(Qr),ii=function(e,t){var n=e===`css`?ni:ri;return function(e){return new n(e,t)}},ai=function(e,t){return`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,`$1-$2`).replace(/([a-z])([A-Z])/g,`$1-$2`)].filter(Boolean).join(`-`)}`};function oi(e,t,n,r){var i=Vr({},t[e]);r!=null&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=Ir(e,2),n=t[0],r=t[1];(i!=null&&i[n]||i!=null&&i[r])&&(i[r]??(i[r]=i?.[n]))});var a=Vr(Vr({},n),i);return Object.keys(a).forEach(function(e){a[e]===t[e]&&delete a[e]}),a}var si=typeof CSSINJS_STATISTIC<`u`,ci=!0;function li(){var e=[...arguments];if(!si)return Object.assign.apply(Object,[{}].concat(e));ci=!1;var t={};return e.forEach(function(e){Mr(e)===`object`&&Object.keys(e).forEach(function(n){Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:function(){return e[n]}})})}),ci=!0,t}var ui={};function di(){}var fi=function(e){var t,n=e,r=di;return si&&typeof Proxy<`u`&&(t=new Set,n=new Proxy(e,{get:function(e,n){if(ci){var r;(r=t)==null||r.add(n)}return e[n]}}),r=function(e,n){ui[e]={global:Array.from(t),component:Vr(Vr({},ui[e]?.component),n)}}),{token:n,keys:t,flush:r}};function pi(e,t,n){return typeof n==`function`?n(li(t,t[e]??{})):n??{}}function mi(e){return e===`js`?{max:Math.max,min:Math.min}:{max:function(){return`max(${[...arguments].map(function(e){return K(e)}).join(`,`)})`},min:function(){return`min(${[...arguments].map(function(e){return K(e)}).join(`,`)})`}}}var hi=1e3*60*10,gi=new(function(){function e(){Hr(this,e),zr(this,`map`,new Map),zr(this,`objectIDMap`,new WeakMap),zr(this,`nextID`,0),zr(this,`lastAccessBeat`,new Map),zr(this,`accessBeat`,0)}return Wr(e,[{key:`set`,value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:`get`,value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:`getCompositeKey`,value:function(e){var t=this;return e.map(function(e){return e&&Mr(e)===`object`?`obj_${t.getObjectID(e)}`:`${Mr(e)}_${e}`}).join(`|`)}},{key:`getObjectID`,value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:`clear`,value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>hi&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());function _i(e,t){return v.useMemo(function(){var n=gi.get(t);if(n)return n;var r=e();return gi.set(t,r),r},t)}var vi=function(){return{}};function yi(e){var t=e.useCSP,n=t===void 0?vi:t,r=e.useToken,i=e.usePrefix,a=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function c(e,t,n,r){var i=Array.isArray(e)?e[0]:e;function a(e){return`${String(i)}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}var o=r?.unitless||{},c=Vr(Vr({},typeof s==`function`?s(e):{}),{},zr({},a(`zIndexPopup`),!0));Object.keys(o).forEach(function(e){c[a(e)]=o[e]});var d=Vr(Vr({},r),{},{unitless:c,prefixToken:a}),f=u(e,t,n,d),p=l(i,n,d);return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=f(e,t),i=r?.extraCssVarPrefixCls,a=typeof i==`function`?i({prefixCls:e,rootCls:t}):i;return[n,p(a!=null&&a.length?[t].concat(We(a)):t)]}}function l(e,t,i){var a=i.unitless,o=i.prefixToken,s=i.ignore;return function(c){var l=r(),u=l.cssVar,d=l.realToken,f=n();return kr({path:[e],prefix:u.prefix,key:u.key,unitless:a,ignore:s,token:d,scope:c,nonce:function(){return f.nonce}},function(){var n=pi(e,d,t),r=oi(e,d,n,{deprecatedTokens:i?.deprecatedTokens});return n&&Object.keys(n).forEach(function(e){r[o(e)]=r[e],delete r[e]}),r}),u?.key}}function u(t,s,c){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=Ir(u,1)[0],f=u.join(`-`),p=e.layer||{name:`antd`};return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,u=r(),m=u.theme,h=u.realToken,g=u.hashId,_=u.token,y=u.cssVar,b=u.zeroRuntime;if((0,v.useMemo)(function(){return b},[]))return g;var x=i(),S=x.rootPrefixCls,C=x.iconPrefixCls,w=n(),T=`css`,E=_i(function(){var e=new Set;return Object.keys(l.unitless||{}).forEach(function(t){e.add(Wt(t,y.prefix)),e.add(Wt(t,ai(d,y.prefix)))}),ii(T,e)},[T,d,y?.prefix]),D=mi(T),O=D.max,k=D.min,A={theme:m,token:_,hashId:g,nonce:function(){return w.nonce},clientOnly:l.clientOnly,layer:p,order:l.order||-999};return typeof a==`function`&&Dr(Vr(Vr({},A),{},{clientOnly:!1,path:[`Shared`,S]}),function(){return a(_,{prefix:{rootPrefixCls:S,iconPrefixCls:C},csp:w})}),Dr(Vr(Vr({},A),{},{path:[f,e,C]}),function(){if(l.injectStyle===!1)return[];var n=fi(_),r=n.token,i=n.flush,a=pi(d,h,c),u=`.${e}`,f=oi(d,h,a,{deprecatedTokens:l.deprecatedTokens});a&&Mr(a)===`object`&&Object.keys(a).forEach(function(e){a[e]=`var(${Wt(e,ai(d,y.prefix))})`});var p=li(r,{componentCls:u,prefixCls:e,iconCls:`.${C}`,antCls:`.${S}`,calc:E,max:O,min:k},a),m=s(p,{hashId:g,prefixCls:e,rootPrefixCls:S,iconPrefixCls:C});i(d,f);var v=typeof o==`function`?o(p,e,t,l.resetFont):null;return[l.resetStyle===!1?null:v,m]}),g}}function d(e,t,n){var r=u(e,t,n,Vr({resetStyle:!1,order:-998},arguments.length>3&&arguments[3]!==void 0?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,n===void 0?t:n),null}}return{genStyleHooks:c,genSubStyleComponent:d,genComponentStyleHook:u}}var bi=[`blue`,`purple`,`cyan`,`green`,`magenta`,`pink`,`red`,`orange`,`yellow`,`volcano`,`geekblue`,`lime`,`gold`];function xi(e){return(e+8)/e}function Si(e){let t=Array.from({length:10}).map((t,n)=>{let r=n-1,i=e*Math.E**(r/5);return Math.floor((n>1?Math.floor(i):Math.ceil(i))/2)*2});return t[1]=e,t.map(e=>({size:e,lineHeight:xi(e)}))}var Ci=`6.3.7`,wi={blue:`#1677FF`,purple:`#722ED1`,cyan:`#13C2C2`,green:`#52C41A`,magenta:`#EB2F96`,pink:`#EB2F96`,red:`#F5222D`,orange:`#FA8C16`,yellow:`#FADB14`,volcano:`#FA541C`,geekblue:`#2F54EB`,gold:`#FAAD14`,lime:`#A0D911`},Ti={...wi,colorPrimary:`#1677ff`,colorSuccess:`#52c41a`,colorWarning:`#faad14`,colorError:`#ff4d4f`,colorInfo:`#1677ff`,colorLink:``,colorTextBase:``,colorBgBase:``,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||
'Noto Color Emoji'`,fontFamilyCode:`'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,fontSize:14,lineWidth:1,lineType:`solid`,motionUnit:.1,motionBase:0,motionEaseOutCirc:`cubic-bezier(0.08, 0.82, 0.17, 1)`,motionEaseInOutCirc:`cubic-bezier(0.78, 0.14, 0.15, 0.86)`,motionEaseOut:`cubic-bezier(0.215, 0.61, 0.355, 1)`,motionEaseInOut:`cubic-bezier(0.645, 0.045, 0.355, 1)`,motionEaseOutBack:`cubic-bezier(0.12, 0.4, 0.29, 1.46)`,motionEaseInBack:`cubic-bezier(0.71, -0.46, 0.88, 0.6)`,motionEaseInQuint:`cubic-bezier(0.755, 0.05, 0.855, 0.06)`,motionEaseOutQuint:`cubic-bezier(0.23, 1, 0.32, 1)`,borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0},Ei={aliceblue:`9ehhb`,antiquewhite:`9sgk7`,aqua:`1ekf`,aquamarine:`4zsno`,azure:`9eiv3`,beige:`9lhp8`,bisque:`9zg04`,black:`0`,blanchedalmond:`9zhe5`,blue:`73`,blueviolet:`5e31e`,brown:`6g016`,burlywood:`8ouiv`,cadetblue:`3qba8`,chartreuse:`4zshs`,chocolate:`87k0u`,coral:`9yvyo`,cornflowerblue:`3xael`,cornsilk:`9zjz0`,crimson:`8l4xo`,cyan:`1ekf`,darkblue:`3v`,darkcyan:`rkb`,darkgoldenrod:`776yz`,darkgray:`6mbhl`,darkgreen:`jr4`,darkgrey:`6mbhl`,darkkhaki:`7ehkb`,darkmagenta:`5f91n`,darkolivegreen:`3bzfz`,darkorange:`9yygw`,darkorchid:`5z6x8`,darkred:`5f8xs`,darksalmon:`9441m`,darkseagreen:`5lwgf`,darkslateblue:`2th1n`,darkslategray:`1ugcv`,darkslategrey:`1ugcv`,darkturquoise:`14up`,darkviolet:`5rw7n`,deeppink:`9yavn`,deepskyblue:`11xb`,dimgray:`442g9`,dimgrey:`442g9`,dodgerblue:`16xof`,firebrick:`6y7tu`,floralwhite:`9zkds`,forestgreen:`1cisi`,fuchsia:`9y70f`,gainsboro:`8m8kc`,ghostwhite:`9pq0v`,goldenrod:`8j4f4`,gold:`9zda8`,gray:`50i2o`,green:`pa8`,greenyellow:`6senj`,grey:`50i2o`,honeydew:`9eiuo`,hotpink:`9yrp0`,indianred:`80gnw`,indigo:`2xcoy`,ivory:`9zldc`,khaki:`9edu4`,lavenderblush:`9ziet`,lavender:`90c8q`,lawngreen:`4vk74`,lemonchiffon:`9zkct`,lightblue:`6s73a`,lightcoral:`9dtog`,lightcyan:`8s1rz`,lightgoldenrodyellow:`9sjiq`,lightgray:`89jo3`,lightgreen:`5nkwg`,lightgrey:`89jo3`,lightpink:`9z6wx`,lightsalmon:`9z2ii`,lightseagreen:`19xgq`,lightskyblue:`5arju`,lightslategray:`4nwk9`,lightslategrey:`4nwk9`,lightsteelblue:`6wau6`,lightyellow:`9zlcw`,lime:`1edc`,limegreen:`1zcxe`,linen:`9shk6`,magenta:`9y70f`,maroon:`4zsow`,mediumaquamarine:`40eju`,mediumblue:`5p`,mediumorchid:`79qkz`,mediumpurple:`5r3rv`,mediumseagreen:`2d9ip`,mediumslateblue:`4tcku`,mediumspringgreen:`1di2`,mediumturquoise:`2uabw`,mediumvioletred:`7rn9h`,midnightblue:`z980`,mintcream:`9ljp6`,mistyrose:`9zg0x`,moccasin:`9zfzp`,navajowhite:`9zest`,navy:`3k`,oldlace:`9wq92`,olive:`50hz4`,olivedrab:`472ub`,orange:`9z3eo`,orangered:`9ykg0`,orchid:`8iu3a`,palegoldenrod:`9bl4a`,palegreen:`5yw0o`,paleturquoise:`6v4ku`,palevioletred:`8k8lv`,papayawhip:`9zi6t`,peachpuff:`9ze0p`,peru:`80oqn`,pink:`9z8wb`,plum:`8nba5`,powderblue:`6wgdi`,purple:`4zssg`,rebeccapurple:`3zk49`,red:`9y6tc`,rosybrown:`7cv4f`,royalblue:`2jvtt`,saddlebrown:`5fmkz`,salmon:`9rvci`,sandybrown:`9jn1c`,seagreen:`1tdnb`,seashell:`9zje6`,sienna:`6973h`,silver:`7ir40`,skyblue:`5arjf`,slateblue:`45e4t`,slategray:`4e100`,slategrey:`4e100`,snow:`9zke2`,springgreen:`1egv`,steelblue:`2r1kk`,tan:`87yx8`,teal:`pds`,thistle:`8ggk8`,tomato:`9yqfb`,turquoise:`2j4r4`,violet:`9b10u`,wheat:`9ld4j`,white:`9zldr`,whitesmoke:`9lhpx`,yellow:`9zl6o`,yellowgreen:`61fzm`},Di=Math.round;function Oi(e,t){let n=e.replace(/^[^(]*\((.*)/,`$1`).replace(/\).*/,``).match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||``,e);return n[3]?r[3]=n[3].includes(`%`)?r[3]/100:r[3]:r[3]=1,r}var ki=(e,t,n)=>n===0?e:e/100;function Ai(e,t){let n=t||255;return e>n?n:e<0?0:e}var ji=class e{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function n(e){return e[0]in t&&e[1]in t&&e[2]in t}if(t)if(typeof t==`string`){let e=t.trim();function n(t){return e.startsWith(t)}if(/^#?[A-F\d]{3,8}$/i.test(e))this.fromHexString(e);else if(n(`rgb`))this.fromRgbString(e);else if(n(`hsl`))this.fromHslString(e);else if(n(`hsv`)||n(`hsb`))this.fromHsvString(e);else{let t=Ei[e.toLowerCase()];t&&this.fromHexString(parseInt(t,36).toString(16).padStart(6,`0`))}}else if(t instanceof e)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n(`rgb`))this.r=Ai(t.r),this.g=Ai(t.g),this.b=Ai(t.b),this.a=typeof t.a==`number`?Ai(t.a,1):1;else if(n(`hsl`))this.fromHsl(t);else if(n(`hsv`))this.fromHsv(t);else throw Error(`@ant-design/fast-color: unsupported input `+JSON.stringify(t))}setR(e){return this._sc(`r`,e)}setG(e){return this._sc(`g`,e)}setB(e){return this._sc(`b`,e)}setA(e){return this._sc(`a`,e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}let t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(this._h===void 0){let e=this.getMax()-this.getMin();e===0?this._h=0:this._h=Di(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(this._hsv_s===void 0){let e=this.getMax()-this.getMin();e===0?this._hsv_s=0:this._hsv_s=e/this.getMax()}return this._hsv_s}getHSLSaturation(){if(this._hsl_s===void 0){let e=this.getMax()-this.getMin();if(e===0)this._hsl_s=0;else{let t=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*t-1))}}return this._hsl_s}getLightness(){return this._l===void 0&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return this._v===void 0&&(this._v=this.getMax()/255),this._v}getBrightness(){return this._brightness===void 0&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){let t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:Di(i(`r`)),g:Di(i(`g`)),b:Di(i(`b`)),a:Di(i(`a`)*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>Di((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r(`r`),g:r(`g`),b:r(`b`),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e=`#`,t=(this.r||0).toString(16);e+=t.length===2?t:`0`+t;let n=(this.g||0).toString(16);e+=n.length===2?n:`0`+n;let r=(this.b||0).toString(16);if(e+=r.length===2?r:`0`+r,typeof this.a==`number`&&this.a>=0&&this.a<1){let t=Di(this.a*255).toString(16);e+=t.length===2?t:`0`+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=Di(this.getHSLSaturation()*100),n=Di(this.getLightness()*100);return this.a===1?`hsl(${e},${t}%,${n}%)`:`hsla(${e},${t}%,${n}%,${this.a})`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a===1?`rgb(${this.r},${this.g},${this.b})`:`rgba(${this.r},${this.g},${this.b},${this.a})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=Ai(t,n),r}_c(e){return new this.constructor(e)}getMax(){return this._max===void 0&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return this._min===void 0&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace(`#`,``);function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){let i=(e%360+360)%360;if(this._h=i,this._hsl_s=t,this._l=n,this.a=typeof r==`number`?r:1,t<=0){let e=Di(n*255);this.r=e,this.g=e,this.b=e;return}let a=0,o=0,s=0,c=i/60,l=(1-Math.abs(2*n-1))*t,u=l*(1-Math.abs(c%2-1));c>=0&&c<1?(a=l,o=u):c>=1&&c<2?(a=u,o=l):c>=2&&c<3?(o=l,s=u):c>=3&&c<4?(o=u,s=l):c>=4&&c<5?(a=u,s=l):c>=5&&c<6&&(a=l,s=u);let d=n-l/2;this.r=Di((a+d)*255),this.g=Di((o+d)*255),this.b=Di((s+d)*255)}fromHsv({h:e,s:t,v:n,a:r}){let i=(e%360+360)%360;this._h=i,this._hsv_s=t,this._v=n,this.a=typeof r==`number`?r:1;let a=Di(n*255);if(this.r=a,this.g=a,this.b=a,t<=0)return;let o=i/60,s=Math.floor(o),c=o-s,l=Di(n*(1-t)*255),u=Di(n*(1-t*c)*255),d=Di(n*(1-t*(1-c))*255);switch(s){case 0:this.g=d,this.b=l;break;case 1:this.r=u,this.b=l;break;case 2:this.r=l,this.b=d;break;case 3:this.r=l,this.g=u;break;case 4:this.r=d,this.g=l;break;default:this.g=l,this.b=u;break}}fromHsvString(e){let t=Oi(e,ki);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=Oi(e,ki);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=Oi(e,(e,t)=>t.includes(`%`)?Di(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}},Mi=2,Ni=.16,Pi=.05,Fi=.05,Ii=.15,Li=5,Ri=4,zi=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Bi(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-Mi*t:Math.round(e.h)+Mi*t:n?Math.round(e.h)+Mi*t:Math.round(e.h)-Mi*t,r<0?r+=360:r>=360&&(r-=360),r}function Vi(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return r=n?e.s-Ni*t:t===Ri?e.s+Ni:e.s+Pi*t,r>1&&(r=1),n&&t===Li&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Hi(e,t,n){let r;return r=n?e.v+Fi*t:e.v-Ii*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Ui(e,t={}){let n=[],r=new ji(e),i=r.toHsv();for(let e=Li;e>0;--e){let t=new ji({h:Bi(i,e,!0),s:Vi(i,e,!0),v:Hi(i,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=Ri;e+=1){let t=new ji({h:Bi(i,e),s:Vi(i,e),v:Hi(i,e)});n.push(t)}return t.theme===`dark`?zi.map(({index:e,amount:r})=>new ji(t.backgroundColor||`#141414`).mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}var Wi={red:`#F5222D`,volcano:`#FA541C`,orange:`#FA8C16`,gold:`#FAAD14`,yellow:`#FADB14`,lime:`#A0D911`,green:`#52C41A`,cyan:`#13C2C2`,blue:`#1677FF`,geekblue:`#2F54EB`,purple:`#722ED1`,magenta:`#EB2F96`,grey:`#666666`},Gi=[`#fff1f0`,`#ffccc7`,`#ffa39e`,`#ff7875`,`#ff4d4f`,`#f5222d`,`#cf1322`,`#a8071a`,`#820014`,`#5c0011`];Gi.primary=Gi[5];var Ki=[`#fff2e8`,`#ffd8bf`,`#ffbb96`,`#ff9c6e`,`#ff7a45`,`#fa541c`,`#d4380d`,`#ad2102`,`#871400`,`#610b00`];Ki.primary=Ki[5];var qi=[`#fff7e6`,`#ffe7ba`,`#ffd591`,`#ffc069`,`#ffa940`,`#fa8c16`,`#d46b08`,`#ad4e00`,`#873800`,`#612500`];qi.primary=qi[5];var Ji=[`#fffbe6`,`#fff1b8`,`#ffe58f`,`#ffd666`,`#ffc53d`,`#faad14`,`#d48806`,`#ad6800`,`#874d00`,`#613400`];Ji.primary=Ji[5];var Yi=[`#feffe6`,`#ffffb8`,`#fffb8f`,`#fff566`,`#ffec3d`,`#fadb14`,`#d4b106`,`#ad8b00`,`#876800`,`#614700`];Yi.primary=Yi[5];var Xi=[`#fcffe6`,`#f4ffb8`,`#eaff8f`,`#d3f261`,`#bae637`,`#a0d911`,`#7cb305`,`#5b8c00`,`#3f6600`,`#254000`];Xi.primary=Xi[5];var Zi=[`#f6ffed`,`#d9f7be`,`#b7eb8f`,`#95de64`,`#73d13d`,`#52c41a`,`#389e0d`,`#237804`,`#135200`,`#092b00`];Zi.primary=Zi[5];var Qi=[`#e6fffb`,`#b5f5ec`,`#87e8de`,`#5cdbd3`,`#36cfc9`,`#13c2c2`,`#08979c`,`#006d75`,`#00474f`,`#002329`];Qi.primary=Qi[5];var $i=[`#e6f4ff`,`#bae0ff`,`#91caff`,`#69b1ff`,`#4096ff`,`#1677ff`,`#0958d9`,`#003eb3`,`#002c8c`,`#001d66`];$i.primary=$i[5];var ea=[`#f0f5ff`,`#d6e4ff`,`#adc6ff`,`#85a5ff`,`#597ef7`,`#2f54eb`,`#1d39c4`,`#10239e`,`#061178`,`#030852`];ea.primary=ea[5];var ta=[`#f9f0ff`,`#efdbff`,`#d3adf7`,`#b37feb`,`#9254de`,`#722ed1`,`#531dab`,`#391085`,`#22075e`,`#120338`];ta.primary=ta[5];var na=[`#fff0f6`,`#ffd6e7`,`#ffadd2`,`#ff85c0`,`#f759ab`,`#eb2f96`,`#c41d7f`,`#9e1068`,`#780650`,`#520339`];na.primary=na[5];var ra=[`#a6a6a6`,`#999999`,`#8c8c8c`,`#808080`,`#737373`,`#666666`,`#404040`,`#1a1a1a`,`#000000`,`#000000`];ra.primary=ra[5];var ia={red:Gi,volcano:Ki,orange:qi,gold:Ji,yellow:Yi,lime:Xi,green:Zi,cyan:Qi,blue:$i,geekblue:ea,purple:ta,magenta:na,grey:ra},aa=[`#2a1215`,`#431418`,`#58181c`,`#791a1f`,`#a61d24`,`#d32029`,`#e84749`,`#f37370`,`#f89f9a`,`#fac8c3`];aa.primary=aa[5];var oa=[`#2b1611`,`#441d12`,`#592716`,`#7c3118`,`#aa3e19`,`#d84a1b`,`#e87040`,`#f3956a`,`#f8b692`,`#fad4bc`];oa.primary=oa[5];var sa=[`#2b1d11`,`#442a11`,`#593815`,`#7c4a15`,`#aa6215`,`#d87a16`,`#e89a3c`,`#f3b765`,`#f8cf8d`,`#fae3b7`];sa.primary=sa[5];var ca=[`#2b2111`,`#443111`,`#594214`,`#7c5914`,`#aa7714`,`#d89614`,`#e8b339`,`#f3cc62`,`#f8df8b`,`#faedb5`];ca.primary=ca[5];var la=[`#2b2611`,`#443b11`,`#595014`,`#7c6e14`,`#aa9514`,`#d8bd14`,`#e8d639`,`#f3ea62`,`#f8f48b`,`#fafab5`];la.primary=la[5];var ua=[`#1f2611`,`#2e3c10`,`#3e4f13`,`#536d13`,`#6f9412`,`#8bbb11`,`#a9d134`,`#c9e75d`,`#e4f88b`,`#f0fab5`];ua.primary=ua[5];var da=[`#162312`,`#1d3712`,`#274916`,`#306317`,`#3c8618`,`#49aa19`,`#6abe39`,`#8fd460`,`#b2e58b`,`#d5f2bb`];da.primary=da[5];var fa=[`#112123`,`#113536`,`#144848`,`#146262`,`#138585`,`#13a8a8`,`#33bcb7`,`#58d1c9`,`#84e2d8`,`#b2f1e8`];fa.primary=fa[5];var pa=[`#111a2c`,`#112545`,`#15325b`,`#15417e`,`#1554ad`,`#1668dc`,`#3c89e8`,`#65a9f3`,`#8dc5f8`,`#b7dcfa`];pa.primary=pa[5];var ma=[`#131629`,`#161d40`,`#1c2755`,`#203175`,`#263ea0`,`#2b4acb`,`#5273e0`,`#7f9ef3`,`#a8c1f8`,`#d2e0fa`];ma.primary=ma[5];var ha=[`#1a1325`,`#24163a`,`#301c4d`,`#3e2069`,`#51258f`,`#642ab5`,`#854eca`,`#ab7ae0`,`#cda8f0`,`#ebd7fa`];ha.primary=ha[5];var ga=[`#291321`,`#40162f`,`#551c3b`,`#75204f`,`#a02669`,`#cb2b83`,`#e0529c`,`#f37fb7`,`#f8a8cc`,`#fad2e3`];ga.primary=ga[5];var _a=[`#151515`,`#1f1f1f`,`#2d2d2d`,`#393939`,`#494949`,`#5a5a5a`,`#6a6a6a`,`#7b7b7b`,`#888888`,`#969696`];_a.primary=_a[5];function va(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){let{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:o,colorPrimary:s,colorBgBase:c,colorTextBase:l}=e,u=t(s),d=t(r),f=t(i),p=t(a),m=t(o),h=n(c,l),g=t(e.colorLink||e.colorInfo),_=new ji(p[1]).mix(new ji(p[3]),50).toHexString(),v={};return bi.forEach(n=>{let r=e[n];if(r){let e=t(r);v[`${n}Hover`]=e[5],v[`${n}Active`]=e[7]}}),{...h,colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:_,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],...v,colorBgMask:new ji(`#000`).setA(.45).toRgbString(),colorWhite:`#fff`}}var ya=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function ba(e){let{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1,...ya(r)}}var xa=e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Sa=e=>{let t=Si(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),i=n[1],a=n[0],o=n[2],s=r[1],c=r[0],l=r[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:l,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(l*o),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Ca(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var wa=(e,t)=>new ji(e).setA(t).toRgbString(),Ta=(e,t)=>new ji(e).darken(t).toHexString(),Ea=e=>{let t=Ui(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Da=(e,t,n)=>{let r=e||`#fff`,i=t||`#000`;return{colorBgBase:r,colorTextBase:i,colorShadow:n||`#000`,colorText:wa(i,.88),colorTextSecondary:wa(i,.65),colorTextTertiary:wa(i,.45),colorTextQuaternary:wa(i,.25),colorFill:wa(i,.15),colorFillSecondary:wa(i,.06),colorFillTertiary:wa(i,.04),colorFillQuaternary:wa(i,.02),colorBgSolid:wa(i,1),colorBgSolidHover:wa(i,.75),colorBgSolidActive:wa(i,.95),colorBgLayout:Ta(r,4),colorBgContainer:Ta(r,0),colorBgElevated:Ta(r,0),colorBgSpotlight:wa(i,.85),colorBgBlur:`transparent`,colorBorder:Ta(r,15),colorBorderDisabled:Ta(r,15),colorBorderSecondary:Ta(r,6)}};function Oa(e){Wi.pink=Wi.magenta,ia.pink=ia.magenta;let t=Object.keys(wi).map(t=>{let n=e[t]===Wi[t]?ia[t]:Ui(e[t]);return Array.from({length:10},()=>1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e[`${t}${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e={...e,...t},e),{});return{...e,...t,...va(e,{generateColorPalettes:Ea,generateNeutralColorPalettes:Da}),...Sa(e.fontSize),...Ca(e),...xa(e),...ba(e)}}var ka=Nt(Oa),Aa={token:Ti,override:{override:Ti},hashed:!0},ja=v.createContext(Aa);function Ma(e){return e>=0&&e<=255}function Na(e,t){let{r:n,g:r,b:i,a}=new ji(e).toRgb();if(a<1)return e;let{r:o,g:s,b:c}=new ji(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-o*(1-e))/e),a=Math.round((r-s*(1-e))/e),l=Math.round((i-c*(1-e))/e);if(Ma(t)&&Ma(a)&&Ma(l))return new ji({r:t,g:a,b:l,a:Math.round(e*100)/100}).toRgbString()}return new ji({r:n,g:r,b:i,a:1}).toRgbString()}function Pa(e){let{override:t,...n}=e,r={...t};Object.keys(Ti).forEach(e=>{delete r[e]});let i={...n,...r},a=new ji(i.colorShadow),o=a.a,s=e=>a.clone().setA(o*e).toRgbString(),c=1200,l=1600,u=1920;return i.motion===!1&&(i.motionDurationFast=`0s`,i.motionDurationMid=`0s`,i.motionDurationSlow=`0s`),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Na(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Na(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Na(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Na(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:`none`,linkHoverDecoration:`none`,linkFocusDecoration:`none`,controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
||
0 6px 16px 0 ${s(.08)},
|
||
0 3px 6px -4px ${s(.12)},
|
||
0 9px 28px 8px ${s(.05)}
|
||
`,boxShadowSecondary:`
|
||
0 6px 16px 0 ${s(.08)},
|
||
0 3px 6px -4px ${s(.12)},
|
||
0 9px 28px 8px ${s(.05)}
|
||
`,boxShadowTertiary:`
|
||
0 1px 2px 0 ${s(.03)},
|
||
0 1px 6px -1px ${s(.02)},
|
||
0 2px 4px 0 ${s(.02)}
|
||
`,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:l-1,screenXXL:l,screenXXLMin:l,screenXXLMax:u-1,screenXXXL:u,screenXXXLMin:u,boxShadowPopoverArrow:`2px 2px 5px ${s(.05)}`,boxShadowCard:`
|
||
0 1px 2px -2px ${s(.16)},
|
||
0 3px 6px 0 ${s(.12)},
|
||
0 5px 12px 4px ${s(.09)}
|
||
`,boxShadowDrawerRight:`
|
||
-6px 0 16px 0 ${s(.08)},
|
||
-3px 0 6px -4px ${s(.12)},
|
||
-9px 0 28px 8px ${s(.05)}
|
||
`,boxShadowDrawerLeft:`
|
||
6px 0 16px 0 ${s(.08)},
|
||
3px 0 6px -4px ${s(.12)},
|
||
9px 0 28px 8px ${s(.05)}
|
||
`,boxShadowDrawerUp:`
|
||
0 6px 16px 0 ${s(.08)},
|
||
0 3px 6px -4px ${s(.12)},
|
||
0 9px 28px 8px ${s(.05)}
|
||
`,boxShadowDrawerDown:`
|
||
0 -6px 16px 0 ${s(.08)},
|
||
0 -3px 6px -4px ${s(.12)},
|
||
0 -9px 28px 8px ${s(.05)}
|
||
`,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${s(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${s(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${s(.08)}`,...r}}var Fa={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Ia={motionBase:!0,motionUnit:!0},La={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0,screenXXLMax:!0,screenXXXL:!0,screenXXXLMin:!0},Ra=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:i,...a}=t,o={...r,override:i};return o=Pa(o),a&&Object.entries(a).forEach(([e,t])=>{let{theme:n,...r}=t,i=r;n&&(i=Ra({...o,...r},{override:r},n)),o[e]=i}),o};function za(){let{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:a}=v.useContext(ja),{csp:o}=v.useContext($e),s={prefix:i?.prefix??`ant`,key:i?.key??`css-var-root`},c=`${Ci}-${t||``}`,l=n||ka,[u,d,f]=an(l,[Ti,e],{salt:c,override:r,getComputedToken:Ra,cssVar:{...s,unitless:Fa,ignore:Ia,preserve:La},nonce:o?.nonce});return[l,f,t?d:``,u,s,!!a]}var Ba={overflow:`hidden`,whiteSpace:`nowrap`,textOverflow:`ellipsis`},Va=(e,t=!1)=>({boxSizing:`border-box`,margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:`none`,fontFamily:t?`inherit`:e.fontFamily}),Ha=()=>({display:`inline-flex`,alignItems:`center`,color:`inherit`,fontStyle:`normal`,lineHeight:0,textAlign:`center`,textTransform:`none`,verticalAlign:`-0.125em`,textRendering:`optimizeLegibility`,"-webkit-font-smoothing":`antialiased`,"-moz-osx-font-smoothing":`grayscale`,"> *":{lineHeight:1},svg:{display:`inline-block`}}),Ua=()=>({"&::before":{display:`table`,content:`""`},"&::after":{display:`table`,clear:`both`,content:`""`}}),Wa=(e,t)=>({outline:`${K(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:[`outline-offset`,`outline`].map(e=>`${e} 0s`).join(`, `)}),Ga=(e,t)=>({"&:focus-visible":Wa(e,t)}),Ka=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:`transparent`,outline:`none`,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":`objects`,"&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},...Ga(e),"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}}),qa=(e,t,n,r)=>{let i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`}},s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:{...s,...o,[i]:o}}},Ja=e=>({[`.${e}`]:{...Ha(),[`.${e} .${e}-icon`]:{display:`block`}}}),Ya=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:`none`,userSelect:`none`,...Ga(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Xa,genComponentStyleHook:Za,genSubStyleComponent:Qa}=yi({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,v.useContext)($e);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,i,a]=za();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:a}},useCSP:()=>{let{csp:e}=(0,v.useContext)($e);return e??{}},getResetStyles:(e,t)=>{let n=Ka(e);return[n,{"&":n},Ja(t?.prefix.iconPrefixCls??`anticon`)]},getCommonStyle:qa,getCompUnitless:()=>Fa}),$a=(e,t)=>{let n=`--${e.replace(/\./g,``)}-${t}-`;return[e=>`${n}${e}`,(e,t)=>t?`var(${n}${e}, ${t})`:`var(${n}${e})`]};function eo(e,t){return bi.reduce((n,r)=>{let i=e[`${r}1`],a=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return{...n,...t(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s})}},{})}var to=(e,t)=>{let[n,r]=za();return Dr({theme:n,token:r,hashId:``,path:[`ant-design-icons`,e],nonce:()=>t?.nonce,layer:{name:`antd`}},()=>Ja(e))},no=(0,v.createContext)({});function ro(e){return e?.getRootNode?.()}function io(e){return ro(e)instanceof ShadowRoot}function ao(e){return io(e)?ro(e):null}function oo(e){return e.replace(/-(.)/g,(e,t)=>t.toUpperCase())}function so(e,t){pe(e,`[@ant-design/icons] ${t}`)}function co(e){return typeof e==`object`&&typeof e.name==`string`&&typeof e.theme==`string`&&(typeof e.icon==`object`||typeof e.icon==`function`)}function lo(e={}){return Object.keys(e).reduce((t,n)=>{let r=e[n];switch(n){case`class`:t.className=r,delete t.class;break;default:delete t[n],t[oo(n)]=r}return t},{})}function uo(e,t,n){return n?v.createElement(e.tag,{key:t,...lo(e.attrs),...n},(e.children||[]).map((n,r)=>uo(n,`${t}-${e.tag}-${r}`))):v.createElement(e.tag,{key:t,...lo(e.attrs)},(e.children||[]).map((n,r)=>uo(n,`${t}-${e.tag}-${r}`)))}function fo(e){return Ui(e)[0]}function po(e){return e?Array.isArray(e)?e:[e]:[]}var mo=`
|
||
.anticon {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
color: inherit;
|
||
font-style: normal;
|
||
line-height: 0;
|
||
text-align: center;
|
||
text-transform: none;
|
||
vertical-align: -0.125em;
|
||
text-rendering: optimizeLegibility;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
.anticon > * {
|
||
line-height: 1;
|
||
}
|
||
|
||
.anticon svg {
|
||
display: inline-block;
|
||
vertical-align: inherit;
|
||
}
|
||
|
||
.anticon::before {
|
||
display: none;
|
||
}
|
||
|
||
.anticon .anticon-icon {
|
||
display: block;
|
||
}
|
||
|
||
.anticon[tabindex] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.anticon-spin {
|
||
-webkit-animation: loadingCircle 1s infinite linear;
|
||
animation: loadingCircle 1s infinite linear;
|
||
}
|
||
|
||
@-webkit-keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
`,ho=e=>{let{csp:t,prefixCls:n,layer:r}=(0,v.useContext)(no),i=mo;n&&(i=i.replace(/anticon/g,n)),r&&(i=`@layer ${r} {\n${i}\n}`),(0,v.useEffect)(()=>{let n=e.current,a=ao(n);_t(i,`@ant-design-icons`,{prepend:!r,csp:t,attachTo:a})},[])},go={primaryColor:`#333`,secondaryColor:`#E6E6E6`,calculated:!1};function _o({primaryColor:e,secondaryColor:t}){go.primaryColor=e,go.secondaryColor=t||fo(e),go.calculated=!!t}function vo(){return{...go}}var yo=e=>{let{icon:t,className:n,onClick:r,style:i,primaryColor:a,secondaryColor:o,...s}=e,c=v.useRef(null),l=go;if(a&&(l={primaryColor:a,secondaryColor:o||fo(a)}),ho(c),so(co(t),`icon should be icon definiton, but got ${t}`),!co(t))return null;let u=t;return u&&typeof u.icon==`function`&&(u={...u,icon:u.icon(l.primaryColor,l.secondaryColor)}),uo(u.icon,`svg-${u.name}`,{className:n,onClick:r,style:i,"data-icon":u.name,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,...s,ref:c})};yo.displayName=`IconReact`,yo.getTwoToneColors=vo,yo.setTwoToneColors=_o;function bo(e){let[t,n]=po(e);return yo.setTwoToneColors({primaryColor:t,secondaryColor:n})}function xo(){let e=yo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},So.apply(this,arguments)}bo($i.primary);var Co=v.forwardRef((e,t)=>{let{className:n,icon:r,spin:i,rotate:a,tabIndex:o,onClick:s,twoToneColor:c,...l}=e,{prefixCls:u=`anticon`,rootClassName:d}=v.useContext(no),f=G(d,u,{[`${u}-${r.name}`]:!!r.name,[`${u}-spin`]:!!i||r.name===`loading`},n),p=o;p===void 0&&s&&(p=-1);let m=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[h,g]=po(c);return v.createElement(`span`,So({role:`img`,"aria-label":r.name},l,{ref:t,tabIndex:p,onClick:s,className:f}),v.createElement(yo,{icon:r,primaryColor:h,secondaryColor:g,style:m}))});Co.getTwoToneColor=xo,Co.setTwoToneColor=bo;var wo={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z`}}]},name:`close-circle`,theme:`filled`};function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},To.apply(this,arguments)}var Eo=v.forwardRef((e,t)=>v.createElement(Co,To({},e,{ref:t,icon:wo}))),Do={icon:{tag:`svg`,attrs:{"fill-rule":`evenodd`,viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z`}}]},name:`close`,theme:`outlined`};function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oo.apply(this,arguments)}var ko=v.forwardRef((e,t)=>v.createElement(Co,Oo({},e,{ref:t,icon:Do}))),Ao=v.createContext({}),jo=e=>{let{children:t,...n}=e,r=v.useMemo(()=>({motion:n.motion}),[n.motion]);return v.createElement(Ao.Provider,{value:r},t)};function Mo(e){let[,t]=v.useReducer(e=>e+1,0),n=v.useRef(e);return[b(()=>n.current),b(e=>{n.current=typeof e==`function`?e(n.current):e,t()})]}var No=`none`,Po=`appear`,Fo=`enter`,Io=`leave`,Lo=`none`,Ro=`prepare`,zo=`start`,Bo=`active`,Vo=`prepared`;function Ho(e,t){let n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function Uo(e,t){let n={animationend:Ho(`Animation`,`AnimationEnd`),transitionend:Ho(`Transition`,`TransitionEnd`)};return e&&(`AnimationEvent`in t||delete n.animationend.animation,`TransitionEvent`in t||delete n.transitionend.transition),n}var Wo=Uo(x(),typeof window<`u`?window:{}),Go={};x()&&({style:Go}=document.createElement(`div`));var Ko={};function qo(e){if(Ko[e])return Ko[e];let t=Wo[e];if(t){let n=Object.keys(t),r=n.length;for(let i=0;i<r;i+=1){let r=n[i];if(Object.prototype.hasOwnProperty.call(t,r)&&r in Go)return Ko[e]=t[r],Ko[e]}}return``}var Jo=qo(`animationend`),Yo=qo(`transitionend`),Xo=!!(Jo&&Yo),Zo=Jo||`animationend`,Qo=Yo||`transitionend`;function $o(e,t){return e?typeof e==`object`?e[t.replace(/-\w/g,e=>e[1].toUpperCase())]:`${e}-${t}`:null}var es=(e=>{let t=(0,v.useRef)();function n(t){t&&(t.removeEventListener(Qo,e),t.removeEventListener(Zo,e))}function r(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(Qo,e),r.addEventListener(Zo,e),t.current=r)}return v.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),ts=x()?v.useLayoutEffect:v.useEffect,ns=(()=>{let e=v.useRef(null);function t(){Xe.cancel(e.current)}function n(r,i=2){t();let a=Xe(()=>{i<=1?r({isCanceled:()=>a!==e.current}):n(r,i-1)});e.current=a}return v.useEffect(()=>()=>{t()},[]),[n,t]}),rs=[Ro,zo,Bo,`end`],is=[Ro,Vo];function as(e){return e===`active`||e===`end`}var os=((e,t,n)=>{let[r,i]=T(Lo),[a,o]=ns();function s(){i(Ro,!0)}let c=t?is:rs;return ts(()=>{if(r!==`none`&&r!==`end`){let e=c[c.indexOf(r)+1],t=n(r);t===!1?i(e,!0):e&&a(n=>{function r(){n.isCanceled()||i(e,!0)}t===!0?r():Promise.resolve(t).then(r)})}},[e,r]),v.useEffect(()=>()=>{o()},[]),[s,r]});function ss(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:a=!0,motionDeadline:o,motionLeaveImmediately:s,onAppearPrepare:c,onEnterPrepare:l,onLeavePrepare:u,onAppearStart:d,onEnterStart:f,onLeaveStart:p,onAppearActive:m,onEnterActive:h,onLeaveActive:g,onAppearEnd:_,onEnterEnd:y,onLeaveEnd:x,onVisibleChanged:S}){let[C,w]=v.useState(),[T,E]=Mo(No),[D,O]=v.useState([null,null]),k=T(),A=(0,v.useRef)(!1),j=(0,v.useRef)(null);function M(){return n()}let N=(0,v.useRef)(!1);function P(){E(No),O([null,null])}let F=b(e=>{let t=T();if(t===`none`)return;let n=M();if(e&&!e.deadline&&e.target!==n)return;let r=N.current,i;t===`appear`&&r?i=_?.(n,e):t===`enter`&&r?i=y?.(n,e):t===`leave`&&r&&(i=x?.(n,e)),r&&i!==!1&&P()}),[I]=es(F),L=e=>{switch(e){case Po:return{[Ro]:c,[zo]:d,[Bo]:m};case Fo:return{[Ro]:l,[zo]:f,[Bo]:h};case Io:return{[Ro]:u,[zo]:p,[Bo]:g};default:return{}}},R=v.useMemo(()=>L(k),[k]),[z,B]=os(k,!e,e=>{if(e===`prepare`){let e=R[Ro];return e?e(M()):!1}return e in R&&O([R[e]?.(M(),null)||null,e]),e===`active`&&k!==`none`&&(I(M()),o>0&&(clearTimeout(j.current),j.current=setTimeout(()=>{F({deadline:!0})},o))),e===`prepared`&&P(),!0});N.current=as(B);let V=(0,v.useRef)(null);ts(()=>{if(A.current&&V.current===t)return;w(t);let n=A.current;A.current=!0;let o;!n&&t&&i&&(o=Po),n&&t&&r&&(o=Fo),(n&&!t&&a||!n&&s&&!t&&a)&&(o=Io);let c=L(o);o&&(e||c.prepare)?(E(o),z()):E(No),V.current=t},[t]),(0,v.useEffect)(()=>{(k===`appear`&&!i||k===`enter`&&!r||k===`leave`&&!a)&&E(No)},[i,r,a]),(0,v.useEffect)(()=>()=>{A.current=!1,clearTimeout(j.current)},[]);let H=v.useRef(!1);(0,v.useEffect)(()=>{C&&(H.current=!0),C!==void 0&&k===`none`&&((H.current||C)&&S?.(C),H.current=!0)},[C,k]);let U=D[0];R.prepare&&B===`start`&&(U={transition:`none`,...U});let ee=D[1];return[T,B,U,C??t,!A.current&&k===`none`&&e&&i?`NONE`:B===`start`||B===`active`?ee===B:!0]}function cs(e){return e?.length<2}function ls(e){let t=e;typeof e==`object`&&({transitionSupport:t}=e);function n(e,n){return!!(e.motionName&&t&&n!==!1)}let r=v.forwardRef((e,t)=>{let{visible:r=!0,removeOnLeave:i=!0,forceRender:a,children:o,motionName:s,leavedClassName:c,eventProps:l}=e,{motion:u}=v.useContext(Ao),d=n(e,u),f=(0,v.useRef)();function p(){return Se(f.current)}let[m,h,g,_,y]=ss(d,r,p,e),b=m(),x=v.useRef(_);_&&(x.current=!0);let S=v.useMemo(()=>{let e={};return Object.defineProperties(e,{nativeElement:{enumerable:!0,get:p},inMotion:{enumerable:!0,get:()=>()=>m()!==No},enableMotion:{enumerable:!0,get:()=>()=>d}}),e},[]);v.useImperativeHandle(t,()=>S,[]);let C=v.useRef(0);y&&(C.current+=1);let w=v.useMemo(()=>{if(y===`NONE`)return null;let e,t={...l,visible:r};if(!o)e=null;else if(b===`none`)e=_?o({...t},f):!i&&x.current&&c?o({...t,className:c},f):a||!i&&!c?o({...t,style:{display:`none`}},f):null;else{let n;h===`prepare`?n=`prepare`:as(h)?n=`active`:h===`start`&&(n=`start`);let r=$o(s,`${b}-${n}`);e=o({...t,className:G($o(s,b),{[r]:r&&n,[s]:typeof s==`string`}),style:g},f)}return e},[C.current]);if(cs(o)&&V(w)){let e=H(w);if(e!==f)return v.cloneElement(w,{ref:L(e,f)})}return w});return r.displayName=`CSSMotion`,r}var us=ls(Xo),ds=`keep`,fs=`remove`,ps=`removed`;function ms(e){let t;return t=e&&typeof e==`object`&&`key`in e?e:{key:e},{...t,key:String(t.key)}}function hs(e=[]){return e.map(ms)}function gs(e=[],t=[]){let n=[],r=0,i=t.length,a=hs(e),o=hs(t);a.forEach(e=>{let t=!1;for(let a=r;a<i;a+=1){let i=o[a];if(i.key===e.key){r<a&&(n=n.concat(o.slice(r,a).map(e=>({...e,status:`add`}))),r=a),n.push({...i,status:ds}),r+=1,t=!0;break}}t||n.push({...e,status:fs})}),r<i&&(n=n.concat(o.slice(r).map(e=>({...e,status:`add`}))));let s={};return n.forEach(({key:e})=>{s[e]=(s[e]||0)+1}),Object.keys(s).filter(e=>s[e]>1).forEach(e=>{n=n.filter(({key:t,status:n})=>t!==e||n!==`remove`),n.forEach(t=>{t.key===e&&(t.status=ds)})}),n}function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_s.apply(this,arguments)}var vs=[`eventProps`,`visible`,`children`,`motionName`,`motionAppear`,`motionEnter`,`motionLeave`,`motionLeaveImmediately`,`motionDeadline`,`removeOnLeave`,`leavedClassName`,`onAppearPrepare`,`onAppearStart`,`onAppearActive`,`onAppearEnd`,`onEnterStart`,`onEnterActive`,`onEnterEnd`,`onLeaveStart`,`onLeaveActive`,`onLeaveEnd`];function ys(e,t=us){class n extends v.Component{static defaultProps={component:`div`};state={keyEntities:[]};static getDerivedStateFromProps({keys:e},{keyEntities:t}){return{keyEntities:gs(t,hs(e)).filter(e=>{let n=t.find(({key:t})=>e.key===t);return!(n&&n.status===`removed`&&e.status===`remove`)})}}removeKey=e=>{this.setState(t=>({keyEntities:t.keyEntities.map(t=>t.key===e?{...t,status:ps}:t)}),()=>{let{keyEntities:e}=this.state;e.filter(({status:e})=>e!==`removed`).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){let{keyEntities:e}=this.state,{component:n,children:r,onVisibleChanged:i,onAllRemoved:a,...o}=this.props,s=n||v.Fragment,c={};return vs.forEach(e=>{c[e]=o[e],delete o[e]}),delete o.keys,v.createElement(s,o,e.map(({status:e,...n},a)=>{let o=e===`add`||e===`keep`;return v.createElement(t,_s({},c,{key:n.key,visible:o,eventProps:n,onVisibleChanged:e=>{i?.(e,{key:n.key}),e||this.removeKey(n.key)}}),cs(r)?e=>r({...e,index:a}):(e,t)=>r({...e,index:a},t))}))}}return n}ys(Xo);var bs=us,xs=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
||
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
||
charSet checked classID className colSpan cols content contentEditable contextMenu
|
||
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
||
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
||
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
||
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
||
mediaGroup method min minLength multiple muted name noValidate nonce open
|
||
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
||
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
||
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
||
summary tabIndex target title type useMap value width wmode wrap onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
||
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
||
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
||
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
||
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
||
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
||
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`.split(/[\s\n]+/),Ss=`aria-`,Cs=`data-`;function ws(e,t){return e.indexOf(t)===0}function Ts(e,t=!1){let n;n=t===!1?{aria:!0,data:!0,attr:!0}:t===!0?{aria:!0}:{...t};let r={};return Object.keys(e).forEach(t=>{(n.aria&&(t===`role`||ws(t,Ss))||n.data&&ws(t,Cs)||n.attr&&xs.includes(t))&&(r[t]=e[t])}),r}var Es={items_per_page:`/ page`,jump_to:`Go to`,jump_to_confirm:`confirm`,page:`Page`,prev_page:`Previous Page`,next_page:`Next Page`,prev_5:`Previous 5 Pages`,next_5:`Next 5 Pages`,prev_3:`Previous 3 Pages`,next_3:`Next 3 Pages`,page_size:`Page Size`},Ds={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0};function Os(e){"@babel/helpers - typeof";return Os=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},Os(e)}function ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function As(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ks(Object(n),!0).forEach(function(t){js(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ks(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function js(e,t,n){return t=Ms(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ms(e){var t=Ns(e,`string`);return Os(t)==`symbol`?t:String(t)}function Ns(e,t){if(Os(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Os(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ps=As(As({},Ds),{},{locale:`en_US`,today:`Today`,now:`Now`,backToToday:`Back to today`,ok:`OK`,clear:`Clear`,week:`Week`,month:`Month`,year:`Year`,timeSelect:`select time`,dateSelect:`select date`,weekSelect:`Choose a week`,monthSelect:`Choose a month`,yearSelect:`Choose a year`,decadeSelect:`Choose a decade`,previousMonth:`Previous month (PageUp)`,nextMonth:`Next month (PageDown)`,previousYear:`Last year (Control + left)`,nextYear:`Next year (Control + right)`,previousDecade:`Last decade`,nextDecade:`Next decade`,previousCentury:`Last century`,nextCentury:`Next century`}),Fs={placeholder:`Select time`,rangePlaceholder:[`Start time`,`End time`]},Is={lang:{placeholder:`Select date`,yearPlaceholder:`Select year`,quarterPlaceholder:`Select quarter`,monthPlaceholder:`Select month`,weekPlaceholder:`Select week`,rangePlaceholder:[`Start date`,`End date`],rangeYearPlaceholder:[`Start year`,`End year`],rangeQuarterPlaceholder:[`Start quarter`,`End quarter`],rangeMonthPlaceholder:[`Start month`,`End month`],rangeWeekPlaceholder:[`Start week`,`End week`],...Ps},timePickerLocale:{...Fs}},Ls=Is,Rs="${label} is not a valid ${type}",zs={locale:`en`,Pagination:Es,DatePicker:Is,TimePicker:Fs,Calendar:Ls,global:{placeholder:`Please select`,close:`Close`,sortable:`sortable`},Table:{filterTitle:`Filter menu`,filterConfirm:`OK`,filterReset:`Reset`,filterEmptyText:`No filters`,filterCheckAll:`Select all items`,filterSearchPlaceholder:`Search in filters`,emptyText:`No data`,selectAll:`Select current page`,selectInvert:`Invert current page`,selectNone:`Clear all data`,selectionAll:`Select all data`,sortTitle:`Sort`,expand:`Expand row`,collapse:`Collapse row`,triggerDesc:`Click to sort descending`,triggerAsc:`Click to sort ascending`,cancelSort:`Click to cancel sorting`},Tour:{Next:`Next`,Previous:`Previous`,Finish:`Finish`},Modal:{okText:`OK`,cancelText:`Cancel`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`Cancel`},Transfer:{titles:[``,``],searchPlaceholder:`Search here`,itemUnit:`item`,itemsUnit:`items`,remove:`Remove`,selectCurrent:`Select current page`,removeCurrent:`Remove current page`,selectAll:`Select all data`,deselectAll:`Deselect all data`,removeAll:`Remove all data`,selectInvert:`Invert current page`},Upload:{uploading:`Uploading...`,removeFile:`Remove file`,uploadError:`Upload error`,previewFile:`Preview file`,downloadFile:`Download file`},Empty:{description:`No data`},Icon:{icon:`icon`},Text:{edit:`Edit`,copy:`Copy`,copied:`Copied`,expand:`Expand`,collapse:`Collapse`},Form:{optional:`(optional)`,defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Rs,method:Rs,array:Rs,object:Rs,number:Rs,date:Rs,boolean:Rs,integer:Rs,float:Rs,regexp:Rs,email:Rs,url:Rs,hex:Rs},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:`QR code expired`,refresh:`Refresh`,scanned:`Scanned`},ColorPicker:{presetEmpty:`Empty`,transparent:`Transparent`,singleColor:`Single`,gradientColor:`Gradient`}};({...zs.Modal});var Bs=[],Vs=()=>Bs.reduce((e,t)=>({...e,...t}),zs.Modal);function Hs(e){if(e){let t={...e};return Bs.push(t),Vs(),()=>{Bs=Bs.filter(e=>e!==t),Vs()}}({...zs.Modal})}var Us=(0,v.createContext)(void 0),Ws=(e,t)=>{let n=v.useContext(Us);return[v.useMemo(()=>{let r=t||zs[e],i=n?.[e]??{};return{...typeof r==`function`?r():r,...i||{}}},[e,t,n]),v.useMemo(()=>{let e=n?.locale;return n?.exist&&!e?zs.locale:e},[n])]},Gs=`internalMark`,Ks=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;v.useEffect(()=>Hs(t?.Modal),[t]);let i=v.useMemo(()=>({...t,exist:!0}),[t]);return v.createElement(Us.Provider,{value:i},n)};function qs(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(n=>{e[n]!==void 0&&(t[n]=e[n])})}),t}var Js=e=>e!=null,Ys=e=>typeof e==`number`&&!Number.isNaN(e),Xs=e=>typeof e==`string`,Zs=e=>typeof e==`object`&&!!e,Qs=e=>typeof e==`function`,$s=e=>typeof e!=`object`&&!Qs(e)||e===null,ec=e=>{if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},tc={},nc=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(e===void 0&&t===void 0)return null;let n={closeIcon:typeof t!=`boolean`&&t!==null?t:void 0};return Zs(e)&&(n={...n,...e}),n},rc=(e,t,n)=>e===!1?!1:e?qs(n,t,e):t===!1?!1:t?qs(n,t):n.closable?n:!1,ic=(e,t,n)=>{let{closeIconRender:r}=t,{closeIcon:i,...a}=e,o=i,s=Ts(a,!0);return Js(o)&&(r&&(o=r(o)),o=v.isValidElement(o)?v.cloneElement(o,{"aria-label":n,...o.props,...s}):v.createElement(`span`,{"aria-label":n,...s},o)),[o,s]},ac=(e,t,n=tc,r=`Close`)=>{let i=nc(e?.closable,e?.closeIcon),a=nc(t?.closable,t?.closeIcon),o={closeIcon:v.createElement(ko,null),...n},s=rc(i,a,o),c=typeof s==`boolean`?!1:!!s?.disabled;if(s===!1)return[!1,null,c,{}];let[l,u]=ic(s,o,r);return[!0,l,c,u]},oc=(e,t,n=tc)=>{let[r]=Ws(`global`,zs.global);return v.useMemo(()=>ac(e,t,{closeIcon:v.createElement(ko,null),...n},r.close),[e,t,n,r.close])},sc=()=>v.useReducer(e=>e+1,0),cc=(e,...t)=>{let n=e||{};return t.filter(Boolean).reduce((e,t)=>(Object.keys(t||{}).forEach(r=>{let i=n[r],a=t[r];if(Zs(i))if(Zs(a))e[r]=cc(i,e[r],a);else{let{_default:t}=i;t&&(e[r]=e[r]||{},e[r][t]=G(e[r][t],a))}else e[r]=G(e[r],a)}),e),{})},lc=(e,...t)=>v.useMemo(()=>cc.apply(void 0,[e].concat(t)),[e].concat(t)),uc=(...e)=>e.filter(Boolean).reduce((e,t={})=>(Object.keys(t).forEach(n=>{e[n]={...e[n],...t[n]}}),e),{}),dc=(...e)=>v.useMemo(()=>uc.apply(void 0,e),[].concat(e)),fc=(e,t)=>{let n={...e};return Object.keys(t).forEach(e=>{if(e!==`_default`){let r=t[e],i=n[e]||{};n[e]=r?fc(i,r):i}}),n},pc=(e,t)=>typeof e==`function`?e(t):e,mc=(e,t,n,r)=>{let i=e.map(e=>e?pc(e,n):void 0),a=t.map(e=>e?pc(e,n):void 0),o=lc.apply(void 0,[r].concat(We(i))),s=dc.apply(void 0,We(a));return v.useMemo(()=>r?[fc(o,r),fc(s,r)]:[o,s],[o,s,r])},hc=e=>{let[t,n]=(0,v.useState)(null);return[(0,v.useCallback)((r,i,a)=>{let o=t??r,s=Math.min(o||0,r),c=Math.max(o||0,r),l=i.slice(s,c+1).map(e),u=l.some(e=>!a.has(e)),d=[];return l.forEach(e=>{u?(a.has(e)||d.push(e),a.add(e)):(a.delete(e),d.push(e))}),n(u?c:null),d},[t]),n]},gc=e=>e===`horizontal`||e===`vertical`,_c=(e,t,n)=>(0,v.useMemo)(()=>{let r=gc(e),i;return i=r?e:typeof t==`boolean`?t?`vertical`:`horizontal`:gc(n)?n:`horizontal`,[i,i===`vertical`]},[n,e,t]),vc=(e,t)=>(e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){let r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e),yc=(e,t)=>(0,v.useImperativeHandle)(e,()=>{let e=t(),{nativeElement:n}=e;return typeof Proxy<`u`?new Proxy(n,{get(t,n){return e[n]?e[n]:Reflect.get(t,n)}}):vc(n,e)}),bc=e=>{let t=v.useRef(e),[,n]=sc();return[()=>t.current,e=>{t.current=e,n()}]},xc=v.createContext(void 0),Sc=100;Sc*10+Sc;var Cc={Modal:Sc,Drawer:Sc,Popover:Sc,Popconfirm:Sc,Tooltip:Sc,Tour:Sc,FloatButton:Sc},wc={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Tc=e=>e in Cc,Ec=(e,t)=>{let[,n]=za(),r=v.useContext(xc),i=Tc(e),a;if(t!==void 0)a=[t,t];else{let o=r??0;i?o+=(r?0:n.zIndexPopupBase)+Cc[e]:o+=wc[e],a=[r===void 0?t:o,o]}return a},Dc=e=>Js(e)&&e===e.window,Oc=e=>{if(typeof window>`u`)return 0;let t=0;return Dc(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!Dc(e)&&typeof t!=`number`&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t};function kc(e,t,n,r){let i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function Ac(e,t={}){let{getContainer:n=()=>window,callback:r,duration:i=450}=t,a=n(),o=Oc(a),s=Date.now(),c,l=()=>{let t=Date.now()-s,n=kc(t>i?i:t,o,e,i);Dc(a)?a.scrollTo(window.pageXOffset,n):a instanceof Document||a.constructor.name===`HTMLDocument`?a.documentElement.scrollTop=n:a.scrollTop=n,t<i?c=Xe(l):typeof r==`function`&&r()};return c=Xe(l),()=>{Xe.cancel(c)}}var jc=e=>`${e}-css-var`,Mc=(0,v.createContext)(void 0),Nc=v.createContext(null),Pc=!1;function Fc(e){return typeof e==`boolean`&&(Pc=e),Pc}var Ic=[];function Lc(e,t){let[n]=v.useState(()=>x()?document.createElement(`div`):null),r=v.useRef(!1),i=v.useContext(Nc),[a,o]=v.useState(Ic),s=i||(r.current?void 0:e=>{o(t=>[e,...t])});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function l(){n.parentElement?.removeChild(n),r.current=!1}return C(()=>(e?i?i(c):c():l(),l),[e]),C(()=>{a.length&&(a.forEach(e=>e()),o(Ic))},[a]),[n,s]}var Rc;function zc(e){let t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement(`div`);n.id=t;let r=n.style;r.position=`absolute`,r.left=`0`,r.top=`0`,r.width=`100px`,r.height=`100px`,r.overflow=`scroll`;let i,a;if(e){let n=getComputedStyle(e);r.scrollbarColor=n.scrollbarColor,r.scrollbarWidth=n.scrollbarWidth;let o=getComputedStyle(e,`::-webkit-scrollbar`),s=parseInt(o.width,10),c=parseInt(o.height,10);try{_t(`
|
||
#${t}::-webkit-scrollbar {
|
||
${s?`width: ${o.width};`:``}
|
||
${c?`height: ${o.height};`:``}
|
||
}`,t)}catch(e){console.error(e),i=s,a=c}}document.body.appendChild(n);let o=e&&i&&!Number.isNaN(i)?i:n.offsetWidth-n.clientWidth,s=e&&a&&!Number.isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),ht(t),{width:o,height:s}}function Bc(e){return typeof document>`u`?0:((e||Rc===void 0)&&(Rc=zc()),Rc.width)}function Vc(e){return typeof document>`u`||!e||!(e instanceof Element)?{width:0,height:0}:zc(e)}function Hc(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Uc=`rc-util-locker-${Date.now()}`,Wc=0;function Gc(e){let t=!!e,[n]=v.useState(()=>(Wc+=1,`${Uc}_${Wc}`));C(()=>{if(t){let e=Vc(document.body).width;_t(`
|
||
html body {
|
||
overflow-y: hidden;
|
||
${Hc()?`width: calc(100% - ${e}px);`:``}
|
||
}`,n)}else ht(n);return()=>{ht(n)}},[t,n])}function Kc(){return{...v}.useId}var qc=0;function Jc(e,t){return`${e}-${String(t).replace(/[^a-zA-Z0-9_.:-]/g,`-`)}`}var Yc=Kc(),Xc=Yc?function(e){let t=Yc();return e||t}:function(e){let[t,n]=v.useState(`ssr-id`);return v.useEffect(()=>{let e=qc;qc+=1,n(`rc_unique_${e}`)},[]),e||t},Zc=[],Qc=200,$c=0,el=e=>{if(e.key===`Escape`&&!e.isComposing){if(Date.now()-$c<Qc)return;let t=Zc.length;for(let n=t-1;n>=0;--n)Zc[n].onEsc({top:n===t-1,event:e})}},tl=()=>{$c=Date.now()};function nl(){window.addEventListener(`keydown`,el),window.addEventListener(`compositionend`,tl)}function rl(){Zc.length===0&&(window.removeEventListener(`keydown`,el),window.removeEventListener(`compositionend`,tl))}function il(e,t){let n=Xc(),r=b(t),i=()=>{Zc.find(e=>e.id===n)||Zc.push({id:n,onEsc:r})},a=()=>{Zc=Zc.filter(e=>e.id!==n)};(0,v.useMemo)(()=>{e?i():e||a()},[e]),(0,v.useEffect)(()=>{if(e)return i(),nl(),()=>{a(),rl()}},[e])}var al=l(h()),ol=e=>e===!1?!1:!x()||!e?null:typeof e==`string`?document.querySelector(e):typeof e==`function`?e():e,sl=v.forwardRef((e,t)=>{let{open:n,autoLock:r,getContainer:i,debug:a,autoDestroy:o=!0,children:s,onEsc:c}=e,[l,u]=v.useState(n),d=l||n;v.useEffect(()=>{(o||n)&&u(n)},[n,o]);let[f,p]=v.useState(()=>ol(i));v.useEffect(()=>{let e=ol(i);p(()=>e??null)});let[m,h]=Lc(d&&!f,a),g=f??m;Gc(r&&n&&x()&&(g===m||g===document.body)),il(n,c);let _=null;s&&z(s)&&t&&(_=H(s));let y=R(_,t);if(!d||!x()||f===void 0)return null;let b=g===!1||Fc(),S=s;return t&&(S=v.cloneElement(s,{ref:y})),v.createElement(Nc.Provider,{value:h},b?S:(0,al.createPortal)(S,g))});function cl(e){let{prefixCls:t,align:n,arrow:r,arrowPos:i}=e,{className:a,content:o,style:s}=r||{},{x:c=0,y:l=0}=i,u=v.useRef(null);if(!n||!n.points)return null;let d={position:`absolute`};if(n.autoArrow!==!1){let e=n.points[0],t=n.points[1],r=e[0],i=e[1],a=t[0],o=t[1];r===a||![`t`,`b`].includes(r)?d.top=l:r===`t`?d.top=0:d.bottom=0,i===o||![`l`,`r`].includes(i)?d.left=c:i===`l`?d.left=0:d.right=0}return v.createElement(`div`,{ref:u,className:G(`${t}-arrow`,a),style:{...d,...s}},o)}function ll(){return ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ll.apply(this,arguments)}function ul(e){let{prefixCls:t,open:n,zIndex:r,mask:i,motion:a,mobile:o}=e;return i?v.createElement(bs,ll({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:e})=>v.createElement(`div`,{style:{zIndex:r},className:G(`${t}-mask`,o&&`${t}-mobile-mask`,e)})):null}var dl=v.memo(({children:e})=>e,(e,t)=>t.cache);function fl(e,t,n,r,i,a,o,s){let c=`auto`,l=e?{}:{left:`-1000vw`,top:`-1000vh`,right:c,bottom:c};if(!e&&(t||!n)){let{points:e}=r,t=r.dynamicInset||r._experimental?.dynamicInset,n=t&&e[0][1]===`r`,u=t&&e[0][0]===`b`;n?(l.right=i,l.left=c):(l.left=o,l.right=c),u?(l.bottom=a,l.top=c):(l.top=s,l.bottom=c)}return l}function pl(){return pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pl.apply(this,arguments)}var ml=v.forwardRef((e,t)=>{let{onEsc:n,popup:r,className:i,prefixCls:a,style:o,target:s,onVisibleChanged:c,open:l,keepDom:u,fresh:d,onClick:f,mask:p,arrow:m,arrowPos:h,align:g,motion:_,maskMotion:y,mobile:x,forceRender:S,getPopupContainer:w,autoDestroy:T,portal:E,children:D,zIndex:O,onMouseEnter:k,onMouseLeave:A,onPointerEnter:j,onPointerDownCapture:M,ready:N,offsetX:P,offsetY:F,offsetR:I,offsetB:R,onAlign:z,onPrepare:B,onResize:V,stretch:H,targetWidth:U,targetHeight:ee}=e,te=typeof r==`function`?r():r,W=l||u,ne=!!x,[re,ie,ae]=v.useMemo(()=>x?[x.mask,x.maskMotion,x.motion]:[p,y,_],[x,p,y,_]),oe=w?.length>0,[se,ce]=v.useState(!w||!oe);C(()=>{!se&&oe&&s&&ce(!0)},[se,oe,s]);let le=b((e,t)=>{V?.(e,t),z()}),ue=fl(ne,N,l,g,I,R,P,F);if(!se)return null;let de={};return H&&(H.includes(`height`)&&ee?de.height=ee:H.includes(`minHeight`)&&ee&&(de.minHeight=ee),H.includes(`width`)&&U?de.width=U:H.includes(`minWidth`)&&U&&(de.minWidth=U)),l||(de.pointerEvents=`none`),v.createElement(E,{open:S||W,getContainer:w&&(()=>w(s)),autoDestroy:T,onEsc:n},v.createElement(ul,{prefixCls:a,open:l,zIndex:O,mask:re,motion:ie,mobile:ne}),v.createElement(Le,{onResize:le,disabled:!l},e=>v.createElement(bs,pl({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:`${a}-hidden`},ae,{onAppearPrepare:B,onEnterPrepare:B,visible:l,onVisibleChanged:e=>{_?.onVisibleChanged?.(e),c(e)}}),({className:n,style:r},s)=>{let c=G(a,n,i,{[`${a}-mobile`]:ne});return v.createElement(`div`,{ref:L(e,t,s),className:c,style:{"--arrow-x":`${h.x||0}px`,"--arrow-y":`${h.y||0}px`,...ue,...de,...r,boxSizing:`border-box`,zIndex:O,...o},onMouseEnter:k,onMouseLeave:A,onPointerEnter:j,onClick:f,onPointerDownCapture:M},m&&v.createElement(cl,{prefixCls:a,arrow:m,arrowPos:h,align:g}),v.createElement(dl,{cache:!l&&!d},te))})),D)}),hl=v.createContext(null),gl=v.createContext(null);function _l(e){return e?Array.isArray(e)?e:[e]:[]}function vl(e,t,n){return v.useMemo(()=>{let r=_l(t??e),i=_l(n??e),a=new Set(r),o=new Set(i);return a.has(`hover`)&&!a.has(`click`)&&a.add(`touch`),o.has(`hover`)&&!o.has(`click`)&&o.add(`touch`),[a,o]},[e,t,n])}var yl=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){let{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){let{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function bl(e=[],t=[],n){let r=(e,t)=>e[t]||``;return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function xl(e,t,n,r){let{points:i}=n,a=Object.keys(e);for(let n=0;n<a.length;n+=1){let o=a[n];if(bl(e[o]?.points,i,r))return`${t}-placement-${o}`}return``}function Sl(e){return e.ownerDocument.defaultView}function Cl(e){let t=[],n=e?.parentElement,r=[`hidden`,`scroll`,`clip`,`auto`];for(;n;){let{overflowX:e,overflowY:i,overflow:a}=Sl(n).getComputedStyle(n);[e,i,a].some(e=>r.includes(e))&&t.push(n),n=n.parentElement}return t}function wl(e,t=1){return Number.isNaN(e)?t:e}function Tl(e){return wl(parseFloat(e),0)}function El(e,t){let n={...e};return(t||[]).forEach(e=>{if(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)return;let{overflow:t,overflowClipMargin:r,borderTopWidth:i,borderBottomWidth:a,borderLeftWidth:o,borderRightWidth:s}=Sl(e).getComputedStyle(e),c=e.getBoundingClientRect(),{offsetHeight:l,clientHeight:u,offsetWidth:d,clientWidth:f}=e,p=Tl(i),m=Tl(a),h=Tl(o),g=Tl(s),_=wl(Math.round(c.width/d*1e3)/1e3),v=wl(Math.round(c.height/l*1e3)/1e3),y=(d-f-h-g)*_,b=(l-u-p-m)*v,x=p*v,S=m*v,C=h*_,w=g*_,T=0,E=0;if(t===`clip`){let e=Tl(r);T=e*_,E=e*v}let D=c.x+C-T,O=c.y+x-E,k=D+c.width+2*T-C-w-y,A=O+c.height+2*E-x-S-b;n.left=Math.max(n.left,D),n.top=Math.max(n.top,O),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,A)}),n}function Dl(e,t=0){let n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Ol(e,t){let[n,r]=t||[];return[Dl(e.width,n),Dl(e.height,r)]}function kl(e=``){return[e[0],e[1]]}function Al(e,t){let n=t[0],r=t[1],i,a;return a=n===`t`?e.y:n===`b`?e.y+e.height:e.y+e.height/2,i=r===`l`?e.x:r===`r`?e.x+e.width:e.x+e.width/2,{x:i,y:a}}function jl(e,t){let n={t:`b`,b:`t`,l:`r`,r:`l`},r=[...e];return r[t]=n[e[t]]||`c`,r}function Ml(e){return e.join(``)}function Nl(e,t,n,r,i,a,o,s){let[c,l]=v.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),u=v.useRef(0),d=v.useMemo(()=>!t||s?[]:Cl(t),[t]),f=v.useRef({});e||(f.current={});let p=b(()=>{if(t&&n&&e&&!s){let e=t,s=e.ownerDocument,c=Sl(e),{position:u}=c.getComputedStyle(e),p=e.style.left,m=e.style.top,h=e.style.right,g=e.style.bottom,_=e.style.overflow,v={...i[r],...a},y=s.createElement(`div`);e.parentElement?.appendChild(y),y.style.left=`${e.offsetLeft}px`,y.style.top=`${e.offsetTop}px`,y.style.position=u,y.style.height=`${e.offsetHeight}px`,y.style.width=`${e.offsetWidth}px`,e.style.left=`0`,e.style.top=`0`,e.style.right=`auto`,e.style.bottom=`auto`,e.style.overflow=`hidden`;let b;if(Array.isArray(n))b={x:n[0],y:n[1],width:0,height:0};else{let e=n.getBoundingClientRect();e.x=e.x??e.left,e.y=e.y??e.top,b={x:e.x,y:e.y,width:e.width,height:e.height}}let x=e.getBoundingClientRect(),{height:S,width:C}=c.getComputedStyle(e);x.x=x.x??x.left,x.y=x.y??x.top;let{clientWidth:w,clientHeight:T,scrollWidth:E,scrollHeight:D,scrollTop:O,scrollLeft:k}=s.documentElement,A=x.height,j=x.width,M=b.height,N=b.width,P={left:0,top:0,right:w,bottom:T},F={left:-k,top:-O,right:E-k,bottom:D-O},{htmlRegion:I}=v,L=`visible`,R=`visibleFirst`;I!==`scroll`&&I!==R&&(I=L);let z=I===R,B=El(F,d),V=El(P,d),H=I===L?V:B,U=z?V:H;e.style.left=`auto`,e.style.top=`auto`,e.style.right=`0`,e.style.bottom=`0`;let ee=e.getBoundingClientRect();e.style.left=p,e.style.top=m,e.style.right=h,e.style.bottom=g,e.style.overflow=_,e.parentElement?.removeChild(y);let te=wl(Math.round(j/parseFloat(C)*1e3)/1e3),W=wl(Math.round(A/parseFloat(S)*1e3)/1e3);if(te===0||W===0||xe(n)&&!yl(n))return;let{offset:ne,targetOffset:re}=v,[ie,ae]=Ol(x,ne),[oe,se]=Ol(b,re);b.x-=oe,b.y-=se;let[ce,le]=v.points||[],ue=kl(le),de=kl(ce),fe=Al(b,ue),pe=Al(x,de),me={...v},he=[de,ue],ge=fe.x-pe.x+ie,_e=fe.y-pe.y+ae;function ve(e,t,n=H){let r=x.x+e,i=x.y+t,a=r+j,o=i+A,s=Math.max(r,n.left),c=Math.max(i,n.top),l=Math.min(a,n.right),u=Math.min(o,n.bottom);return Math.max(0,(l-s)*(u-c))}let ye=ve(ge,_e),be=ve(ge,_e,V),Se=Al(b,[`t`,`l`]),Ce=Al(x,[`t`,`l`]),we=Al(b,[`b`,`r`]),Te=Al(x,[`b`,`r`]),{adjustX:Ee,adjustY:De,shiftX:Oe,shiftY:ke}=v.overflow||{},Ae=e=>typeof e==`boolean`?e:e>=0,je,Me,Ne,Pe;function Fe(){je=x.y+_e,Me=je+A,Ne=x.x+ge,Pe=Ne+j}Fe();let Ie=Ae(De),Le=de[0]===ue[0];if(Ie&&de[0]===`t`&&(Me>U.bottom||f.current.bt)){let e=_e;Le?e-=A-M:e=Se.y-Te.y-ae;let t=ve(ge,e),n=ve(ge,e,V);t>ye||t===ye&&(!z||n>=be)?(f.current.bt=!0,_e=e,ae=-ae,he=[jl(he[0],0),jl(he[1],0)]):f.current.bt=!1}if(Ie&&de[0]===`b`&&(je<U.top||f.current.tb)){let e=_e;Le?e+=A-M:e=we.y-Ce.y-ae;let t=ve(ge,e),n=ve(ge,e,V);t>ye||t===ye&&(!z||n>=be)?(f.current.tb=!0,_e=e,ae=-ae,he=[jl(he[0],0),jl(he[1],0)]):f.current.tb=!1}let Re=Ae(Ee),G=de[1]===ue[1];if(Re&&de[1]===`l`&&(Pe>U.right||f.current.rl)){let e=ge;G?e-=j-N:e=Se.x-Te.x-ie;let t=ve(e,_e),n=ve(e,_e,V);t>ye||t===ye&&(!z||n>=be)?(f.current.rl=!0,ge=e,ie=-ie,he=[jl(he[0],1),jl(he[1],1)]):f.current.rl=!1}if(Re&&de[1]===`r`&&(Ne<U.left||f.current.lr)){let e=ge;G?e+=j-N:e=we.x-Ce.x-ie;let t=ve(e,_e),n=ve(e,_e,V);t>ye||t===ye&&(!z||n>=be)?(f.current.lr=!0,ge=e,ie=-ie,he=[jl(he[0],1),jl(he[1],1)]):f.current.lr=!1}me.points=[Ml(he[0]),Ml(he[1])],Fe();let ze=Oe===!0?0:Oe;typeof ze==`number`&&(Ne<V.left&&(ge-=Ne-V.left-ie,b.x+N<V.left+ze&&(ge+=b.x-V.left+N-ze)),Pe>V.right&&(ge-=Pe-V.right-ie,b.x>V.right-ze&&(ge+=b.x-V.right+ze)));let Be=ke===!0?0:ke;typeof Be==`number`&&(je<V.top&&(_e-=je-V.top-ae,b.y+M<V.top+Be&&(_e+=b.y-V.top+M-Be)),Me>V.bottom&&(_e-=Me-V.bottom-ae,b.y>V.bottom-Be&&(_e+=b.y-V.bottom+Be)));let Ve=x.x+ge,He=Ve+j,Ue=x.y+_e,We=Ue+A,Ge=b.x,Ke=Ge+N,qe=b.y,Je=qe+M,Ye=(Math.max(Ve,Ge)+Math.min(He,Ke))/2-Ve,Xe=(Math.max(Ue,qe)+Math.min(We,Je))/2-Ue;o?.(t,me);let Ze=ee.right-x.x-(ge+x.width),Qe=ee.bottom-x.y-(_e+x.height);te===1&&(ge=Math.floor(ge),Ze=Math.floor(Ze)),W===1&&(_e=Math.floor(_e),Qe=Math.floor(Qe)),l({ready:!0,offsetX:ge/te,offsetY:_e/W,offsetR:Ze/te,offsetB:Qe/W,arrowX:Ye/te,arrowY:Xe/W,scaleX:te,scaleY:W,align:me})}}),m=()=>{u.current+=1;let e=u.current;Promise.resolve().then(()=>{u.current===e&&p()})},h=()=>{l(e=>({...e,ready:!1}))};return C(h,[r]),C(()=>{e||h()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,m]}function Pl(){let e=v.useRef(null),t=()=>{e.current&&=(clearTimeout(e.current),null)};return v.useEffect(()=>()=>{t()},[]),(n,r)=>{t(),r===0?n():e.current=setTimeout(()=>{n()},r*1e3)}}function Fl(e,t,n,r,i){C(()=>{if(e&&t&&n){let e=t,a=n,o=Cl(e),s=Cl(a),c=Sl(a),l=new Set([c,...o,...s]);function u(){r(),i()}return l.forEach(e=>{e.addEventListener(`scroll`,u,{passive:!0})}),c.addEventListener(`resize`,u,{passive:!0}),r(),()=>{l.forEach(e=>{e.removeEventListener(`scroll`,u),c.removeEventListener(`resize`,u)})}}},[e,t,n])}function Il(e,t,n,r,i,a,o,s){let c=v.useRef(e);c.current=e;let l=v.useRef(!1);v.useEffect(()=>{if(t&&r&&(!i||a)){let e=()=>{l.current=!1},t=e=>{c.current&&!o(e.composedPath?.()?.[0]||e.target)&&!l.current&&s(!1)},i=Sl(r);i.addEventListener(`pointerdown`,e,!0),i.addEventListener(`mousedown`,t,!0),i.addEventListener(`contextmenu`,t,!0);let a=ao(n);return a&&(a.addEventListener(`mousedown`,t,!0),a.addEventListener(`contextmenu`,t,!0)),()=>{i.removeEventListener(`pointerdown`,e,!0),i.removeEventListener(`mousedown`,t,!0),i.removeEventListener(`contextmenu`,t,!0),a&&(a.removeEventListener(`mousedown`,t,!0),a.removeEventListener(`contextmenu`,t,!0))}}},[t,n,r,i,a]);function u(){l.current=!0}return u}function Ll(){let[e,t]=v.useState(null),[n,r]=v.useState(!1),[i,a]=v.useState(!1),o=v.useRef(null);return[b(e=>{e===!1?(o.current=null,r(!1)):i&&n?o.current=e:(r(!0),t(e),o.current=null,n||a(!0))}),n,e,b(e=>{e?(a(!1),o.current&&=(t(o.current),null)):(a(!1),o.current=null)})]}function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rl.apply(this,arguments)}var zl=e=>{let{prefixCls:t,isMobile:n,ready:r,open:i,align:a,offsetR:o,offsetB:s,offsetX:c,offsetY:l,arrowPos:u,popupSize:d,motion:f,uniqueContainerClassName:p,uniqueContainerStyle:m}=e,h=`${t}-unique-container`,[g,_]=v.useState(!1),y=fl(n,r,i,a,o,s,c,l),b=v.useRef(y);r&&(b.current=y);let x={};return d&&(x.width=d.width,x.height=d.height),v.createElement(bs,Rl({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${h}-hidden`},f,{visible:i,onVisibleChanged:e=>{_(e)}}),({className:e,style:t})=>{let n=G(h,e,p,{[`${h}-visible`]:g});return v.createElement(`div`,{className:n,style:{"--arrow-x":`${u?.x||0}px`,"--arrow-y":`${u?.y||0}px`,...b.current,...x,...t,...m}})})},Bl=({children:e,postTriggerProps:t})=>{let[n,r,i,a]=Ll(),o=v.useMemo(()=>!i||!t?i:t(i),[i,t]),[s,c]=v.useState(null),[l,u]=v.useState(null),d=v.useRef(null),f=b(e=>{d.current=e,xe(e)&&s!==e&&c(e)}),p=v.useRef(null),m=Pl(),h=b((e,t)=>{p.current=t,m(()=>{n(e)},e.delay)}),g=e=>{m(()=>{p.current?.()||n(!1)},e)},_=b(e=>{a(e)}),[y,x,S,C,w,T,E,,,D,O]=Nl(r,s,o?.target,o?.popupPlacement,o?.builtinPlacements||{},o?.popupAlign,void 0,!1),k=v.useMemo(()=>o?G(xl(o.builtinPlacements||{},o.prefixCls||``,D,!1),o.getPopupClassNameFromAlign?.(D)):``,[D,o?.getPopupClassNameFromAlign,o?.builtinPlacements,o?.prefixCls]),A=v.useMemo(()=>({show:h,hide:g}),[]);v.useEffect(()=>{O()},[o?.target]);let j=b(()=>(O(),Promise.resolve())),M=v.useRef({}),N=v.useContext(hl),P=v.useMemo(()=>({registerSubPopup:(e,t)=>{M.current[e]=t,N?.registerSubPopup(e,t)}}),[N]),F=o?.prefixCls;return v.createElement(gl.Provider,{value:A},e,o&&v.createElement(hl.Provider,{value:P},v.createElement(ml,{ref:f,portal:sl,onEsc:o.onEsc,prefixCls:F,popup:o.popup,className:G(o.popupClassName,k,`${F}-unique-controlled`),style:o.popupStyle,target:o.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:_,ready:y,offsetX:x,offsetY:S,offsetR:C,offsetB:w,onAlign:O,onPrepare:j,onResize:e=>u({width:e.offsetWidth,height:e.offsetHeight}),arrowPos:{x:T,y:E},align:D,zIndex:o.zIndex,mask:o.mask,arrow:o.arrow,motion:o.popupMotion,maskMotion:o.maskMotion,getPopupContainer:o.getPopupContainer},v.createElement(zl,{prefixCls:F,isMobile:!1,ready:y,open:r,align:D,offsetR:C,offsetB:w,offsetX:x,offsetY:S,arrowPos:{x:T,y:E},popupSize:l,motion:o.popupMotion,uniqueContainerClassName:G(o.uniqueContainerClassName,k),uniqueContainerStyle:o.uniqueContainerStyle}))))};function Vl(e=sl){return v.forwardRef((t,n)=>{let{prefixCls:r=`rc-trigger-popup`,children:i,action:a=`hover`,showAction:o,hideAction:s,popupVisible:c,defaultPopupVisible:l,onOpenChange:u,afterOpenChange:d,onPopupVisibleChange:f,afterPopupVisibleChange:p,mouseEnterDelay:m,mouseLeaveDelay:h=.1,focusDelay:g,blurDelay:_,mask:y,maskClosable:x=!0,getPopupContainer:S,forceRender:w,autoDestroy:T,popup:D,popupClassName:O,uniqueContainerClassName:k,uniqueContainerStyle:A,popupStyle:j,popupPlacement:M,builtinPlacements:N={},popupAlign:P,zIndex:F,stretch:I,getPopupClassNameFromAlign:L,fresh:z,unique:B,alignPoint:V,onPopupClick:U,onPopupAlign:ee,arrow:te,popupMotion:W,maskMotion:ne,mobile:re,...ie}=t,ae=T||!1,oe=c===void 0,se=!!re,ce=v.useRef({}),le=v.useContext(hl),ue=v.useMemo(()=>({registerSubPopup:(e,t)=>{ce.current[e]=t,le?.registerSubPopup(e,t)}}),[le]),de=v.useContext(gl),fe=Xc(),[pe,me]=v.useState(null),he=v.useRef(null),ge=b(e=>{he.current=e,xe(e)&&pe!==e&&me(e),le?.registerSubPopup(fe,e)}),[_e,ve]=v.useState(null),ye=v.useRef(null),be=b(e=>{let t=Se(e);xe(t)&&_e!==t&&(ve(t),ye.current=t)}),Ce={},we=b(e=>{let t=_e;return t?.contains(e)||ao(t)?.host===e||e===t||pe?.contains(e)||ao(pe)?.host===e||e===pe||Object.values(ce.current).some(t=>t?.contains(e)||e===t)}),Te=te?{...te===!0?{}:te}:null,[Ee,De]=E(l||!1,c),Oe=Ee||!1,ke=v.useMemo(()=>{let e=typeof i==`function`?i({open:Oe}):i;return v.Children.only(e)},[i,Oe]),Ae=ke?.props||{},Me=b(()=>Oe),Ne=b((e=0)=>({popup:D,target:_e,delay:e,prefixCls:r,popupClassName:O,uniqueContainerClassName:k,uniqueContainerStyle:A,popupStyle:j,popupPlacement:M,builtinPlacements:N,popupAlign:P,zIndex:F,mask:y,maskClosable:x,popupMotion:W,maskMotion:ne,arrow:Te,getPopupContainer:S,getPopupClassNameFromAlign:L,id:fe,onEsc:Re}));C(()=>{de&&B&&_e&&!oe&&!le&&(Oe?de.show(Ne(m),Me):de.hide(h))},[Oe,_e]);let Pe=v.useRef(Oe);Pe.current=Oe;let Fe=b(e=>{(0,al.flushSync)(()=>{Oe!==e&&(De(e),u?.(e),f?.(e))})}),Ie=Pl(),Le=(e,t=0)=>{if(c!==void 0){Ie(()=>{Fe(e)},t);return}if(de&&B&&oe&&!le){e?de.show(Ne(t),Me):de.hide(t);return}Ie(()=>{Fe(e)},t)};function Re({top:e}){e&&Le(!1)}let[ze,Be]=v.useState(!1);C(e=>{(!e||Oe)&&Be(!0)},[Oe]);let[Ve,He]=v.useState(null),[Ue,We]=v.useState(null),Ge=e=>{We([e.clientX,e.clientY])},[Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt]=Nl(Oe,pe,V&&Ue!==null?Ue:_e,M,N,P,ee,se),[rt,it]=vl(a,o,s),at=rt.has(`click`),ot=it.has(`click`)||it.has(`contextMenu`),st=b(()=>{ze||nt()});Fl(Oe,_e,pe,st,()=>{Pe.current&&V&&ot&&Le(!1)}),C(()=>{st()},[Ue,M]),C(()=>{Oe&&!N?.[M]&&st()},[JSON.stringify(P)]);let ct=v.useMemo(()=>G(xl(N,r,tt,V),L?.(tt)),[tt,L,N,r,V]);v.useImperativeHandle(n,()=>({nativeElement:ye.current,popupElement:he.current,forceAlign:st}));let[lt,ut]=v.useState(0),[dt,ft]=v.useState(0),pt=()=>{if(I&&_e){let e=_e.getBoundingClientRect();ut(e.width),ft(e.height)}},mt=()=>{pt(),st()},ht=e=>{Be(!1),nt(),d?.(e),p?.(e)},gt=()=>new Promise(e=>{pt(),He(()=>e)});C(()=>{Ve&&(nt(),Ve(),He(null))},[Ve]);function _t(e,t,n,r,i){Ce[e]=(a,...o)=>{(!i||!i())&&(r?.(a),Le(t,n)),Ae[e]?.(a,...o)}}let vt=rt.has(`touch`),yt=it.has(`touch`),bt=v.useRef(!1);(vt||yt)&&(Ce.onTouchStart=(...e)=>{bt.current=!0,Pe.current&&yt?Le(!1):!Pe.current&&vt&&Le(!0),Ae.onTouchStart?.(...e)}),(at||ot)&&(Ce.onClick=(e,...t)=>{Pe.current&&ot?Le(!1):!Pe.current&&at&&(Ge(e),Le(!0)),Ae.onClick?.(e,...t),bt.current=!1});let xt=Il(Oe,ot||yt,_e,pe,y,x,we,Le),St=rt.has(`hover`),Ct=it.has(`hover`),wt,Tt,Et=()=>bt.current;if(St){let e=e=>{Ge(e)};_t(`onMouseEnter`,!0,m,e,Et),_t(`onPointerEnter`,!0,m,e,Et),wt=e=>{(Oe||ze)&&pe?.contains(e.target)&&Le(!0,m)},V&&(Ce.onMouseMove=e=>{Ae.onMouseMove?.(e)})}Ct&&(_t(`onMouseLeave`,!1,h,void 0,Et),_t(`onPointerLeave`,!1,h,void 0,Et),Tt=()=>{Le(!1,h)}),rt.has(`focus`)&&_t(`onFocus`,!0,g),it.has(`focus`)&&_t(`onBlur`,!1,_),rt.has(`contextMenu`)&&(Ce.onContextMenu=(e,...t)=>{Pe.current&&it.has(`contextMenu`)?Le(!1):(Ge(e),Le(!0)),e.preventDefault(),Ae.onContextMenu?.(e,...t)});let Dt=v.useRef(!1);Dt.current||=w||Oe||ze;let Ot={...Ae,...Ce},kt={};[`onContextMenu`,`onClick`,`onMouseDown`,`onTouchStart`,`onMouseEnter`,`onMouseLeave`,`onFocus`,`onBlur`].forEach(e=>{ie[e]&&(kt[e]=(...t)=>{Ot[e]?.(...t),ie[e](...t)})});let At={x:Ze,y:Qe};je(Oe,_e,mt);let jt=R(be,H(ke)),Mt=v.cloneElement(ke,{...Ot,...kt,ref:jt});return v.createElement(v.Fragment,null,Mt,Dt.current&&(!de||!B)&&v.createElement(hl.Provider,{value:ue},v.createElement(ml,{portal:e,ref:ge,prefixCls:r,popup:D,className:G(O,!se&&ct),style:j,target:_e,onMouseEnter:wt,onMouseLeave:Tt,onPointerEnter:wt,zIndex:F,open:Oe,keepDom:ze,fresh:z,onClick:U,onPointerDownCapture:xt,mask:y,motion:W,maskMotion:ne,onVisibleChanged:ht,onPrepare:gt,forceRender:w,autoDestroy:ae,getPopupContainer:S,onEsc:Re,align:tt,arrow:Te,arrowPos:At,ready:Ke,offsetX:qe,offsetY:Je,offsetR:Ye,offsetB:Xe,onAlign:st,stretch:I,targetWidth:lt/$e,targetHeight:dt/et,mobile:re})))})}var Hl=Vl(sl);function Ul(e){return e&&v.isValidElement(e)&&e.type===v.Fragment}var Wl=(e,t,n)=>v.isValidElement(e)?v.cloneElement(e,Qs(n)?n(e.props||{}):n):t;function Gl(e,t){return Wl(e,e,t)}var Kl=({children:e})=>{let{getPrefixCls:t}=v.useContext($e),n=t();return v.isValidElement(e)?v.createElement(bs,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:t,className:n})=>Gl(e,e=>({className:G(e.className,n),style:{...e.style,...t}}))):e},ql=[null,null];function Jl(e){if(ql[0]!==e){let t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),ql[0]=e,ql[1]=t}return ql[1]}var Yl=({children:e})=>v.createElement(Bl,{postTriggerProps:e=>{let{id:t,builtinPlacements:n,popup:r}=e,i=typeof r==`function`?r():r,a=Jl(n);return{...e,getPopupContainer:null,arrow:!1,popup:v.createElement(Kl,{key:t},i),builtinPlacements:a}}},e),Xl=v.createContext(!1),Zl=({children:e,disabled:t})=>{let n=v.useContext(Xl);return v.createElement(Xl.Provider,{value:t??n},e)},Ql=v.createContext(void 0),$l=({children:e,size:t})=>{let n=v.useContext(Ql);return v.createElement(Ql.Provider,{value:t||n},e)};function eu(){return{componentDisabled:(0,v.useContext)(Xl),componentSize:(0,v.useContext)(Ql)}}function tu(e,t,n){be(`ConfigProvider`);let r=e||{},i=r.inherit===!1||!t?{...Aa,hashed:t?.hashed??Aa.hashed,cssVar:t?.cssVar}:t,a=(0,v.useId)();return k(()=>{if(!e)return t;let o={...i.components};Object.keys(e.components||{}).forEach(t=>{o[t]={...o[t],...e.components[t]}});let s=`css-var-${a.replace(/:/g,``)}`,c={prefix:n?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||s};return{...i,...r,token:{...i.token,...r.token},components:o,cssVar:c}},[r,i],(e,t)=>e.some((e,n)=>{let r=t[n];return!vt(e,r,!0)}))}var nu=v.createContext(!0);function ru(e){let t=v.useContext(nu),{children:n}=e,[,r]=za(),{motion:i}=r,a=v.useRef(!1);return a.current||=t!==i,a.current?v.createElement(nu.Provider,{value:i},v.createElement(jo,{motion:i},n)):n}var iu=()=>null,au=({iconPrefixCls:e,csp:t})=>(to(e,t),null),ou=[`getTargetContainer`,`getPopupContainer`,`renderEmpty`,`input`,`pagination`,`form`,`select`,`button`],su=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;`holderRender`in e},cu=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,form:c,locale:l,componentSize:u,direction:d,space:f,splitter:p,virtual:m,dropdownMatchSelectWidth:h,popupMatchSelectWidth:g,popupOverflow:_,legacyLocale:y,parentContext:b,iconPrefixCls:x,theme:S,componentDisabled:C,segmented:w,statistic:T,spin:E,calendar:D,carousel:O,cascader:A,collapse:j,typography:M,checkbox:N,descriptions:P,divider:F,drawer:I,skeleton:L,steps:R,image:z,layout:B,list:V,mentions:H,modal:U,progress:ee,result:te,slider:W,breadcrumb:ne,masonry:re,menu:ie,pagination:oe,input:se,textArea:ce,otp:le,empty:ue,badge:de,radio:fe,rate:pe,ribbon:me,switch:he,transfer:ge,avatar:_e,message:ve,tag:be,table:xe,card:Se,cardMeta:Ce,tabs:we,timeline:Te,timePicker:Ee,upload:De,notification:Oe,tree:ke,colorPicker:Ae,datePicker:je,rangePicker:Me,flex:Ne,wave:Pe,dropdown:Fe,warning:Ie,tour:Le,tooltip:Re,popover:G,popconfirm:ze,qrcode:Be,floatButton:Ve,floatButtonGroup:He,variant:Ue,inputNumber:We,treeSelect:Ge,watermark:Ke}=e,qe=v.useMemo(()=>Zs(l)&&Object.prototype.hasOwnProperty.call(l,`default`)&&l.default?.locale?l.default:l,[l]),Je=v.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let i=r||b.getPrefixCls(``);return t?`${i}-${t}`:i},[b.getPrefixCls,e.prefixCls]),Ye=x||b.iconPrefixCls||`anticon`,Xe=n||b.csp,Ze=tu(S,b.theme,{prefixCls:Je(``)}),Qe={csp:Xe,autoInsertSpaceInButton:r,alert:i,affix:a,anchor:o,app:s,locale:qe||y,direction:d,space:f,splitter:p,virtual:m,popupMatchSelectWidth:g??h,popupOverflow:_,getPrefixCls:Je,iconPrefixCls:Ye,theme:Ze,segmented:w,statistic:T,spin:E,calendar:D,carousel:O,cascader:A,collapse:j,typography:M,checkbox:N,descriptions:P,divider:F,drawer:I,skeleton:L,steps:R,image:z,input:se,textArea:ce,otp:le,layout:B,list:V,mentions:H,modal:U,progress:ee,result:te,slider:W,breadcrumb:ne,masonry:re,menu:ie,pagination:oe,empty:ue,badge:de,radio:fe,rate:pe,ribbon:me,switch:he,transfer:ge,avatar:_e,message:ve,tag:be,table:xe,card:Se,cardMeta:Ce,tabs:we,timeline:Te,timePicker:Ee,upload:De,notification:Oe,tree:ke,colorPicker:Ae,datePicker:je,rangePicker:Me,flex:Ne,wave:Pe,dropdown:Fe,warning:Ie,tour:Le,tooltip:Re,popover:G,popconfirm:ze,qrcode:Be,floatButton:Ve,floatButtonGroup:He,variant:Ue,inputNumber:We,treeSelect:Ge,watermark:Ke},et={...b};Object.keys(Qe).forEach(e=>{Qe[e]!==void 0&&(et[e]=Qe[e])}),ou.forEach(t=>{let n=e[t];n&&(et[t]=n)}),r!==void 0&&(et.button={autoInsertSpace:r,...et.button});let tt=k(()=>et,et,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:nt}=v.useContext(Dt),rt=v.useMemo(()=>({prefixCls:Ye,csp:Xe,layer:nt?`antd`:void 0}),[Ye,Xe,nt]),it=v.createElement(v.Fragment,null,v.createElement(au,{iconPrefixCls:Ye,csp:Xe}),v.createElement(iu,{dropdownMatchSelectWidth:h}),t),at=v.useMemo(()=>ae(zs.Form?.defaultValidateMessages||{},tt.locale?.Form?.defaultValidateMessages||{},tt.form?.validateMessages||{},c?.validateMessages||{}),[tt,c?.validateMessages]);Object.keys(at).length>0&&(it=v.createElement(Mc.Provider,{value:at},it)),qe&&(it=v.createElement(Ks,{locale:qe,_ANT_MARK__:Gs},it)),(Ye||Xe)&&(it=v.createElement(no.Provider,{value:rt},it)),u&&(it=v.createElement($l,{size:u},it)),it=v.createElement(ru,null,it),Re?.unique&&(it=v.createElement(Yl,null,it));let ot=v.useMemo(()=>{let{algorithm:e,token:t,components:n,cssVar:r,...i}=Ze||{},a=e&&(!Array.isArray(e)||e.length>0)?Nt(e):ka,o={};Object.entries(n||{}).forEach(([e,t])=>{let n={...t};`algorithm`in n&&(n.algorithm===!0?n.theme=a:(Array.isArray(n.algorithm)||typeof n.algorithm==`function`)&&(n.theme=Nt(n.algorithm)),delete n.algorithm),o[e]=n});let s={...Ti,...t};return{...i,theme:a,token:s,components:o,override:{override:s,...o},cssVar:r}},[Ze]);return S&&(it=v.createElement(ja.Provider,{value:ot},it)),tt.warning&&(it=v.createElement(ye.Provider,{value:tt.warning},it)),C!==void 0&&(it=v.createElement(Zl,{disabled:C},it)),v.createElement($e.Provider,{value:tt},it)},lu=e=>{let t=v.useContext($e),n=v.useContext(Us);return v.createElement(cu,{parentContext:t,legacyLocale:n,...e})};lu.ConfigContext=$e,lu.SizeContext=Ql,lu.config=su,lu.useConfig=eu,Object.defineProperty(lu,`SizeContext`,{get:()=>Ql});var uu={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){let{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=uu.F1&&t<=uu.F12)return!1;switch(t){case uu.ALT:case uu.CAPS_LOCK:case uu.CONTEXT_MENU:case uu.CTRL:case uu.DOWN:case uu.END:case uu.ESC:case uu.HOME:case uu.INSERT:case uu.LEFT:case uu.MAC_FF_META:case uu.META:case uu.NUMLOCK:case uu.NUM_CENTER:case uu.PAGE_DOWN:case uu.PAGE_UP:case uu.PAUSE:case uu.PRINT_SCREEN:case uu.RIGHT:case uu.SHIFT:case uu.UP:case uu.WIN_KEY:case uu.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=uu.ZERO&&e<=uu.NINE||e>=uu.NUM_ZERO&&e<=uu.NUM_MULTIPLY||e>=uu.A&&e<=uu.Z||window.navigator.userAgent.indexOf(`WebKit`)!==-1&&e===0)return!0;switch(e){case uu.SPACE:case uu.QUESTION_MARK:case uu.NUM_PLUS:case uu.NUM_MINUS:case uu.NUM_PERIOD:case uu.NUM_DIVISION:case uu.SEMICOLON:case uu.DASH:case uu.EQUALS:case uu.COMMA:case uu.PERIOD:case uu.SLASH:case uu.APOSTROPHE:case uu.SINGLE_QUOTE:case uu.OPEN_SQUARE_BRACKET:case uu.BACKSLASH:case uu.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},isEditableTarget:function(e){let t=e.target;if(!(t instanceof HTMLElement))return!1;let n=t.tagName;return!!(n===`INPUT`||n===`TEXTAREA`||n===`SELECT`||t.isContentEditable)}},du={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z`}}]},name:`loading`,theme:`outlined`};function fu(){return fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fu.apply(this,arguments)}var pu=v.forwardRef((e,t)=>v.createElement(Co,fu({},e,{ref:t,icon:du}))),mu=`__rc_react_root__`;function hu(e,t){let n=t[mu]||(0,y.createRoot)(t);n.render(e),t[mu]=n}async function gu(e){return Promise.resolve().then(()=>{e[mu]?.unmount(),delete e[mu]})}var _u=()=>({height:0,opacity:0}),vu=e=>({height:e?.scrollHeight??0,opacity:+!!e}),yu=e=>({height:e?.offsetHeight??0}),bu=e=>Zs(e)&&`propertyName`in e,xu=(e,t)=>t?.deadline===!0||(bu(t)?t.propertyName===`height`:!1),Su=(e=`ant`)=>({motionName:`${e}-motion-collapse`,onAppearStart:_u,onEnterStart:_u,onAppearActive:vu,onEnterActive:vu,onLeaveStart:yu,onLeaveActive:_u,onAppearEnd:xu,onEnterEnd:xu,onLeaveEnd:xu,motionDeadline:500}),Cu=(e,t,n)=>n===void 0?`${e}-${t}`:n,wu=Za(`Wave`,e=>{let{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:a,antCls:o}=e,[,s]=$a(o,`wave`);return{[t]:{position:`absolute`,background:`transparent`,pointerEvents:`none`,boxSizing:`border-box`,color:s(`color`,n),boxShadow:`0 0 0 0 currentcolor`,opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s`,`opacity 2s`].map(e=>`${e} ${a}`).join(`,`),"&-active":{boxShadow:`0 0 0 6px currentcolor`,opacity:0},"&.wave-quick":{transition:[`box-shadow`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`,`)}}}}}),Tu=`ant-wave-target`;function Eu(e){return e&&typeof e==`string`&&e!==`#fff`&&e!==`#ffffff`&&e!==`rgb(255, 255, 255)`&&e!==`rgba(255, 255, 255, 1)`&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!==`transparent`&&e!==`canvastext`}function Du(e,t=null){let n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:a}=n;return t&&Eu(n[t])?n[t]:[r,i,a].find(Eu)??null}function Ou(e){return Number.isNaN(e)?0:e}var ku=e=>{let{className:t,target:n,component:r,colorSource:i}=e,a=v.useRef(null),{getPrefixCls:o}=v.useContext($e),[s]=$a(o(),`wave`),[c,l]=v.useState(null),[u,d]=v.useState([]),[f,p]=v.useState(0),[m,h]=v.useState(0),[g,_]=v.useState(0),[y,b]=v.useState(0),[x,S]=v.useState(!1),C={left:f,top:m,width:g,height:y,borderRadius:u.map(e=>`${e}px`).join(` `)};c&&(C[s(`color`)]=c);function w(){let e=getComputedStyle(n);l(Du(n,i));let t=e.position===`static`,{borderLeftWidth:r,borderTopWidth:a}=e;p(t?n.offsetLeft:Ou(-Number.parseFloat(r))),h(t?n.offsetTop:Ou(-Number.parseFloat(a))),_(n.offsetWidth),b(n.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;d([o,s,u,c].map(e=>Ou(Number.parseFloat(e))))}if(v.useEffect(()=>{if(n){let e=Xe(()=>{w(),S(!0)}),t;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(w),t.observe(n)),()=>{Xe.cancel(e),t?.disconnect()}}},[n]),!x)return null;let T=(r===`Checkbox`||r===`Radio`)&&n?.classList.contains(Tu);return v.createElement(bs,{visible:!0,motionAppear:!0,motionName:`wave-motion`,motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||t.propertyName===`opacity`){let e=a.current?.parentElement;gu(e).then(()=>{e?.remove()})}return!1}},({className:e},n)=>v.createElement(`div`,{ref:L(a,n),className:G(t,e,{"wave-quick":T}),style:C}))},Au=(e,t)=>{let{component:n}=t;if(n===`Checkbox`&&!e.querySelector(`input`)?.checked)return;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`0px`,r.style.top=`0px`,e?.insertBefore(r,e?.firstChild),hu(v.createElement(ku,{...t,target:e}),r)},ju=(e,t,n,r)=>{let{wave:i}=v.useContext($e),[,a,o]=za(),s=b(s=>{let c=e.current;if(i?.disabled||!c)return;let l=c.querySelector(`.${Tu}`)||c,{showEffect:u}=i||{};(u||Au)(l,{className:t,token:a,component:n,event:s,hashId:o,colorSource:r})}),c=v.useRef(null);return v.useEffect(()=>()=>{Xe.cancel(c.current)},[]),e=>{Xe.cancel(c.current),c.current=Xe(()=>{s(e)})}},Mu=e=>{let{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:a}=(0,v.useContext)($e),o=(0,v.useRef)(null),s=a(`wave`),c=ju(o,G(s,wu(s)),r,i);return v.useEffect(()=>{let e=o.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;let t=t=>{!yl(t.target)||!e.getAttribute||e.getAttribute(`disabled`)||e.disabled||e.className.includes(`disabled`)&&!e.className.includes(`disabled:`)||e.getAttribute(`aria-disabled`)===`true`||e.className.includes(`-leave`)||c(t)};return e.addEventListener(`click`,t,!0),()=>{e.removeEventListener(`click`,t,!0)}},[n]),v.isValidElement(t)?Gl(t,{ref:z(t)?L(H(t),o):o}):t??null},Nu=e=>{let t=v.useContext(Ql);return v.useMemo(()=>e?typeof e==`string`?e??t:typeof e==`function`?e(t):t:t,[e,t])},Pu=Xa([`Space`,`Compact`],e=>{let{componentCls:t}=e;return{[t]:{display:`inline-flex`,"&-block":{display:`flex`,width:`100%`},"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`}}}},()=>({}),{resetStyle:!1}),Fu=v.createContext(null),Iu=(e,t)=>{let n=v.useContext(Fu),r=v.useMemo(()=>{if(!n)return``;let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,o=r===`vertical`?`-vertical-`:`-`;return G(`${e}-compact${o}item`,{[`${e}-compact${o}first-item`]:i,[`${e}-compact${o}last-item`]:a,[`${e}-compact${o}item-rtl`]:t===`rtl`})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},Lu=e=>{let{children:t}=e;return v.createElement(Fu.Provider,{value:null},t)},Ru=e=>{let{children:t,...n}=e;return v.createElement(Fu.Provider,{value:v.useMemo(()=>n,[n])},t)},zu=e=>{let{getPrefixCls:t,direction:n}=v.useContext($e),{size:r,direction:i,orientation:a,block:o,prefixCls:s,className:c,rootClassName:l,children:u,vertical:d,...f}=e,[p,m]=_c(a,d,i),h=Nu(e=>r??e),g=t(`space-compact`,s),[_]=Pu(g),y=G(g,_,{[`${g}-rtl`]:n===`rtl`,[`${g}-block`]:o,[`${g}-vertical`]:m},c,l),b=v.useContext(Fu),x=ge(u),S=v.useMemo(()=>x.map((e,t)=>{let n=e?.key||`${g}-item-${t}`;return v.createElement(Ru,{key:n,compactSize:h,compactDirection:p,isFirstItem:t===0&&(!b||b?.isFirstItem),isLastItem:t===x.length-1&&(!b||b?.isLastItem)},e)}),[x,b,p,h,g]);return x.length===0?null:v.createElement(`div`,{className:y,...f},S)},Bu=v.createContext(void 0),Vu=e=>{let{getPrefixCls:t,direction:n}=v.useContext($e),{prefixCls:r,size:i,className:a,...o}=e,s=t(`btn-group`,r),[,,c]=za(),l=v.useMemo(()=>{switch(i){case`large`:return`lg`;case`small`:return`sm`;default:return``}},[i]),u=G(s,{[`${s}-${l}`]:l,[`${s}-rtl`]:n===`rtl`},a,c);return v.createElement(Bu.Provider,{value:i},v.createElement(`div`,{...o,className:u}))},Hu=/^[\u4E00-\u9FA5]{2}$/,Uu=Hu.test.bind(Hu);function Wu(e){return e===`text`||e===`link`}function Gu(e,t,n,r){if(!Js(e)||e===``)return;let i=t?` `:``;return typeof e!=`string`&&typeof e!=`number`&&Xs(e.type)&&Uu(e.props.children)?Gl(e,e=>{let t=G(e.className,r)||void 0,a={...n,...e.style};return{...e,children:e.children.split(``).join(i),className:t,style:a}}):Xs(e)?v.createElement(`span`,{className:r,style:n},Uu(e)?e.split(``).join(i):e):Ul(e)?v.createElement(`span`,{className:r,style:n},e):Gl(e,e=>({...e,className:G(e.className,r)||void 0,style:{...e.style,...n}}))}function Ku(e,t,n,r){let i=!1,a=[];return v.Children.forEach(e,e=>{let t=typeof e,n=t===`string`||t===`number`;if(i&&n){let t=a.length-1;a[t]=`${a[t]}${e}`}else a.push(e);i=n}),v.Children.map(a,e=>Gu(e,t,n,r))}[`default`,`primary`,`danger`].concat(We(bi));var qu=(0,v.forwardRef)((e,t)=>{let{className:n,style:r,children:i,prefixCls:a}=e,o=G(`${a}-icon`,n);return v.createElement(`span`,{ref:t,className:o,style:r},i)}),Ju=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=G(`${n}-loading-icon`,r);return v.createElement(qu,{prefixCls:n,className:o,style:i,ref:t},v.createElement(pu,{className:a}))}),Yu=()=>({width:0,opacity:0,transform:`scale(0)`}),Xu=e=>({width:e.scrollWidth,opacity:1,transform:`scale(1)`}),Zu=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?v.createElement(Ju,{prefixCls:t,className:i,style:a}):v.createElement(bs,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:Yu,onAppearActive:Xu,onEnterStart:Yu,onEnterActive:Xu,onLeaveStart:Xu,onLeaveActive:Yu},({className:e,style:n},r)=>{let o={...a,...n};return v.createElement(Ju,{prefixCls:t,className:G(i,e),style:o,ref:r})})},Qu=e=>{let{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:i}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:`hidden`,"&-active":{transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}},[`${n}-motion-collapse`]:{overflow:`hidden`,transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}}}},$u=e=>({animationDuration:e,animationFillMode:`both`}),ed=(e,t,n,r,i=!1)=>{let a=i?`&`:``;return{[`
|
||
${a}${e}-enter,
|
||
${a}${e}-appear
|
||
`]:{...$u(r),animationPlayState:`paused`},[`${a}${e}-leave`]:{...$u(r),animationPlayState:`paused`},[`
|
||
${a}${e}-enter${e}-enter-active,
|
||
${a}${e}-appear${e}-appear-active
|
||
`]:{animationName:t,animationPlayState:`running`},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:`running`,pointerEvents:`none`}}},td=new Ar(`antFadeIn`,{"0%":{opacity:0},"100%":{opacity:1}}),nd=new Ar(`antFadeOut`,{"0%":{opacity:1},"100%":{opacity:0}}),rd=(e,t=!1)=>{let{antCls:n}=e,r=`${n}-fade`,i=t?`&`:``;return[ed(r,td,nd,e.motionDurationMid,t),{[`
|
||
${i}${r}-enter,
|
||
${i}${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:`linear`},[`${i}${r}-leave`]:{animationTimingFunction:`linear`}}]},id=new Ar(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),ad=new Ar(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),od=new Ar(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),sd=new Ar(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),cd=new Ar(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),ld=new Ar(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),ud={"move-up":{inKeyframes:new Ar(`antMoveUpIn`,{"0%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),outKeyframes:new Ar(`antMoveUpOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0}})},"move-down":{inKeyframes:id,outKeyframes:ad},"move-left":{inKeyframes:od,outKeyframes:sd},"move-right":{inKeyframes:cd,outKeyframes:ld}},dd=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=ud[t];return[ed(r,i,a,e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},fd=new Ar(`antSlideUpIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1}}),pd=new Ar(`antSlideUpOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),md=new Ar(`antSlideDownIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1}}),hd=new Ar(`antSlideDownOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0}}),gd=new Ar(`antSlideLeftIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1}}),_d=new Ar(`antSlideLeftOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),vd=new Ar(`antSlideRightIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1}}),yd=new Ar(`antSlideRightOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0}}),bd={"slide-up":{inKeyframes:fd,outKeyframes:pd},"slide-down":{inKeyframes:md,outKeyframes:hd},"slide-left":{inKeyframes:gd,outKeyframes:_d},"slide-right":{inKeyframes:vd,outKeyframes:yd}},xd=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=bd[t];return[ed(r,i,a,e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{transform:`scale(0)`,transformOrigin:`0% 0%`,opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:`scale(1)`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Sd=()=>({"@media (prefers-reduced-motion: reduce)":{transition:`none`,animation:`none`}}),Cd=new Ar(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),wd=new Ar(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),Td=new Ar(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Ed=new Ar(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),Dd=new Ar(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),Od=new Ar(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),kd=new Ar(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),Ad=new Ar(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),jd=new Ar(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),Md=new Ar(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),Nd=new Ar(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),Pd=new Ar(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),Fd={zoom:{inKeyframes:Cd,outKeyframes:wd},"zoom-big":{inKeyframes:Td,outKeyframes:Ed},"zoom-big-fast":{inKeyframes:Td,outKeyframes:Ed},"zoom-left":{inKeyframes:kd,outKeyframes:Ad},"zoom-right":{inKeyframes:jd,outKeyframes:Md},"zoom-up":{inKeyframes:Dd,outKeyframes:Od},"zoom-down":{inKeyframes:Nd,outKeyframes:Pd}},Id=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Fd[t];return[ed(r,i,a,t===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Ld=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Rd=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:`relative`,display:`inline-flex`,[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:`relative`,zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ld(`${t}-primary`,i),Ld(`${t}-danger`,a)]}},zd=e=>Math.round(Number(e||0)),Bd=e=>{if(e instanceof ji)return e;if(e&&typeof e==`object`&&`h`in e&&`b`in e){let{b:t,...n}=e;return{...n,v:t}}return typeof e==`string`&&/hsb/.test(e)?e.replace(/hsb/,`hsv`):e},Vd=class extends ji{constructor(e){super(Bd(e))}toHsbString(){let e=this.toHsb(),t=zd(e.s*100),n=zd(e.b*100),r=zd(e.h),i=e.a,a=`hsb(${r}, ${t}%, ${n}%)`,o=`hsba(${r}, ${t}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?a:o}toHsb(){let{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}};(e=>e instanceof Vd?e:new Vd(e))(`#1677ff`);var Hd=(e,t)=>e?.replace(/[^0-9a-f]/gi,``).slice(0,t?8:6)||``,Ud=(e,t)=>e?Hd(e,t):``,Wd=function(){function e(t){if(Hr(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new Vd(this.colors[0].color.metaColor)):this.metaColor=new Vd(n?``:t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Wr(e,[{key:`toHsb`,value:function(){return this.metaColor.toHsb()}},{key:`toHsbString`,value:function(){return this.metaColor.toHsbString()}},{key:`toHex`,value:function(){return Ud(this.toHexString(),this.metaColor.a<1)}},{key:`toHexString`,value:function(){return this.metaColor.toHexString()}},{key:`toRgb`,value:function(){return this.metaColor.toRgb()}},{key:`toRgbString`,value:function(){return this.metaColor.toRgbString()}},{key:`isGradient`,value:function(){return!!this.colors&&!this.cleared}},{key:`getColors`,value:function(){return this.colors||[{color:this,percent:0}]}},{key:`toCssString`,value:function(){let{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(`, `)})`:this.metaColor.toRgbString()}},{key:`equals`,value:function(e){return!e||this.isGradient()!==e.isGradient()?!1:this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString()}}])}(),Gd={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z`}}]},name:`right`,theme:`outlined`};function Kd(){return Kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kd.apply(this,arguments)}var qd=v.forwardRef((e,t)=>v.createElement(Co,Kd({},e,{ref:t,icon:Gd})));function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jd.apply(null,arguments)}var Yd=e=>e instanceof Wd?e:new Wd(e),Xd=(e,t)=>{let{r:n,g:r,b:i,a}=e.toRgb(),o=new Vd(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},Zd=e=>{let{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return li(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},Qd=e=>{let t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??xi(t),a=e.contentLineHeightSM??xi(n),o=e.contentLineHeightLG??xi(r),s=Xd(new Wd(e.colorBgSolid),`#fff`)?`#000`:`#fff`,c=bi.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${K(e.controlOutlineWidth)} 0 ${Na(e[`${n}1`],e.colorBgContainer)}`}),{}),l=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...c,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:`transparent`,defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:`inherit`,onlyIconSizeSM:`inherit`,onlyIconSizeLG:`inherit`,groupBorderColor:e.colorPrimaryHover,linkHoverBg:`transparent`,textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:a,contentLineHeightLG:o,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*o)/2-e.lineWidth,0),defaultBgDisabled:l,dashedBgDisabled:u}},$d=e=>{let{componentCls:t,antCls:n,lineWidth:r}=e,[i,a]=$a(n,`btn`);return{[t]:[{[i(`border-width`)]:r,[i(`border-color`)]:`#000`,[i(`border-color-hover`)]:a(`border-color`),[i(`border-color-active`)]:a(`border-color`),[i(`border-color-disabled`)]:a(`border-color`),[i(`border-style`)]:`solid`,[i(`text-color`)]:`#000`,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`),[i(`text-color-disabled`)]:a(`text-color`),[i(`bg-color`)]:`#ddd`,[i(`bg-color-hover`)]:a(`bg-color`),[i(`bg-color-active`)]:a(`bg-color`),[i(`bg-color-disabled`)]:e.colorBgContainerDisabled,[i(`bg-color-container`)]:e.colorBgContainer,[i(`shadow`)]:`none`},{border:[a(`border-width`),a(`border-style`),a(`border-color`)].join(` `),color:a(`text-color`),backgroundColor:a(`bg-color`),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a(`border-width`),a(`border-style`),a(`border-color-hover`)].join(` `),color:a(`text-color-hover`),backgroundColor:a(`bg-color-hover`)},"&:active":{border:[a(`border-width`),a(`border-style`),a(`border-color-active`)].join(` `),color:a(`text-color-active`),backgroundColor:a(`bg-color-active`)}}},{[`&${t}-variant-solid`]:{[i(`solid-bg-color`)]:a(`color-base`),[i(`solid-bg-color-hover`)]:a(`color-hover`),[i(`solid-bg-color-active`)]:a(`color-active`),[i(`border-color`)]:`transparent`,[i(`text-color`)]:e.colorTextLightSolid,[i(`bg-color`)]:a(`solid-bg-color`),[i(`bg-color-hover`)]:a(`solid-bg-color-hover`),[i(`bg-color-active`)]:a(`solid-bg-color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`border-color`)]:a(`color-base`),[i(`border-color-hover`)]:a(`color-hover`),[i(`border-color-active`)]:a(`color-active`),[i(`bg-color`)]:a(`bg-color-container`),[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-dashed`]:{[i(`border-style`)]:`dashed`,[i(`bg-color-disabled`)]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`bg-color`)]:a(`color-light`),[i(`bg-color-hover`)]:a(`color-light-hover`),[i(`bg-color-active`)]:a(`color-light-active`)},[`&${t}-variant-text, &${t}-variant-link`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),[i(`bg-color`)]:`transparent`,[i(`bg-color-hover`)]:`transparent`,[i(`bg-color-active`)]:`transparent`,[`&:disabled, &${e.componentCls}-disabled`]:{background:`transparent`,borderColor:`transparent`}},[`&${t}-variant-text`]:{[i(`bg-color-hover`)]:a(`color-light`),[i(`bg-color-active`)]:a(`color-light-active`)}},{[`&${t}-variant-link`]:{[i(`color-base`)]:e.colorLink,[i(`color-hover`)]:e.colorLinkHover,[i(`color-active`)]:e.colorLinkActive,[i(`bg-color-hover`)]:e.linkHoverBg},[`&${t}-color-primary`]:{[i(`color-base`)]:e.colorPrimary,[i(`color-hover`)]:e.colorPrimaryHover,[i(`color-active`)]:e.colorPrimaryActive,[i(`color-light`)]:e.colorPrimaryBg,[i(`color-light-hover`)]:e.colorPrimaryBgHover,[i(`color-light-active`)]:e.colorPrimaryBorder,[i(`shadow`)]:e.primaryShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.primaryColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-dangerous`]:{[i(`color-base`)]:e.colorError,[i(`color-hover`)]:e.colorErrorHover,[i(`color-active`)]:e.colorErrorActive,[i(`color-light`)]:e.colorErrorBg,[i(`color-light-hover`)]:e.colorErrorBgFilledHover,[i(`color-light-active`)]:e.colorErrorBgActive,[i(`shadow`)]:e.dangerShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.dangerColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-default`]:{[i(`solid-bg-color`)]:e.colorBgSolid,[i(`solid-bg-color-hover`)]:e.colorBgSolidHover,[i(`solid-bg-color-active`)]:e.colorBgSolidActive,[i(`color-base`)]:e.defaultBorderColor,[i(`color-hover`)]:e.defaultHoverBorderColor,[i(`color-active`)]:e.defaultActiveBorderColor,[i(`color-light`)]:e.colorFillTertiary,[i(`color-light-hover`)]:e.colorFillSecondary,[i(`color-light-active`)]:e.colorFill,[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`shadow`)]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i(`bg-color-disabled`)]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i(`text-color`)]:e.solidTextColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-filled, &${t}-variant-text`]:{[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`bg-color-container`)]:e.defaultBg,[i(`bg-color-hover`)]:e.defaultHoverBg,[i(`bg-color-active`)]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i(`text-color`)]:e.textTextColor,[i(`text-color-hover`)]:e.textTextHoverColor,[i(`text-color-active`)]:e.textTextActiveColor,[i(`bg-color-hover`)]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultGhostColor,[i(`border-color`)]:e.defaultGhostBorderColor}}}},bi.map(n=>{let r=e[`${n}6`],a=e[`${n}1`],o=e[`${n}Hover`],s=e[`${n}2`],c=e[`${n}3`],l=e[`${n}Active`],u=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[i(`color-base`)]:r,[i(`color-hover`)]:o,[i(`color-active`)]:l,[i(`color-light`)]:a,[i(`color-light-hover`)]:s,[i(`color-light-active`)]:c,[i(`shadow`)]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:`not-allowed`,borderColor:e.colorBorderDisabled,background:a(`bg-color-disabled`),color:e.colorTextDisabled,boxShadow:`none`}},{[`&${t}-background-ghost`]:{[i(`bg-color`)]:e.ghostBg,[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg,[i(`shadow`)]:`none`,[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg}}}]}},ef=e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,iconGap:s,calc:c}=e;return{[t]:{outline:`none`,position:`relative`,display:`inline-flex`,gap:s,alignItems:`center`,justifyContent:`center`,fontWeight:r,whiteSpace:`nowrap`,textAlign:`center`,backgroundImage:`none`,cursor:`pointer`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:`none`,touchAction:`manipulation`,...Sd(),"&:disabled > *":{pointerEvents:`none`},[`${t}-icon > svg`]:Ha(),"> a":{color:`currentColor`},"&:not(:disabled)":Ga(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:`0.34em`},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:`-0.34em`,letterSpacing:`0.34em`},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:`none`}},[`&${t}-loading`]:{opacity:i,cursor:`default`},[`${t}-loading-icon`]:{transition:[`width`,`opacity`,`margin`].map(e=>`${e} ${a} ${o}`).join(`,`)},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:`row-reverse`,[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},tf=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:`50%`}),nf=(e,t=``)=>{let{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:i,height:r,padding:`${K(c)} ${K(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:tf(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},rf=e=>nf(li(e,{fontSize:e.contentFontSize}),e.componentCls),af=e=>nf(li(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),of=e=>nf(li(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),sf=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:`100%`}}}},cf=Xa(`Button`,e=>{let t=Zd(e);return[ef(t),rf(t),af(t),of(t),sf(t),$d(t),Rd(t)]},Qd,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function lf(e,t,n,r){let{focusElCls:i,focus:a,borderElCls:o}=n,s=o?`> *`:``,c=[`hover`,a?`focus`:null,`active`].filter(Boolean).map(e=>`&:${e} ${s}`).join(`,`);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[c]:{zIndex:3},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${s}`]:{zIndex:0}}}}function uf(e,t,n){let{borderElCls:r}=n,i=r?`> ${r}`:``;return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function df(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,i=r||n,a=`${i}-compact`;return{[a]:{...lf(e,a,t,i),...uf(i,a,t)}}}function ff(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function pf(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function mf(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...ff(e,t,e.componentCls),...pf(e.componentCls,t)}}}var hf=e=>{let{antCls:t,componentCls:n,lineWidth:r,calc:i,colorBgContainer:a}=e,o=`${n}-variant-solid:not([disabled])`,s=i(r).mul(-1).equal(),[c,l]=$a(t,`btn`),u=e=>({[`${n}-compact${e?`-vertical`:``}-item`]:{[c(`compact-connect-border-color`)]:l(`bg-color-hover`),[`&${o}`]:{transition:`none`,[`& + ${o}:before`]:[{position:`absolute`,backgroundColor:l(`compact-connect-border-color`),content:`""`},e?{top:s,insetInline:s,height:r}:{insetBlock:s,insetInlineStart:s,width:r}],"&:hover:before":{display:`none`}}}});return[u(),u(!0),{[`${o}${n}-color-default`]:{[c(`compact-connect-border-color`)]:`color-mix(in srgb, ${l(`bg-color-hover`)} 75%, ${a})`}}]},gf=Qa([`Button`,`compact`],e=>{let t=Zd(e);return[df(t),mf(t),hf(t)]},Qd);function _f(e){if(Zs(e)){let t=e?.delay;return t=Ys(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var vf={default:[`default`,`outlined`],primary:[`primary`,`solid`],dashed:[`default`,`dashed`],link:[`link`,`link`],text:[`default`,`text`]},yf=v.forwardRef((e,t)=>{let{_skipSemantic:n,loading:r=!1,prefixCls:i,color:a,variant:o,type:s,danger:c=!1,shape:l,size:u,disabled:d,className:f,rootClassName:p,children:m,icon:h,iconPosition:g,iconPlacement:_,ghost:y=!1,block:b=!1,htmlType:x=`button`,classNames:S,styles:w,style:T,autoInsertSpace:E,autoFocus:D,...O}=e,k=ge(m),A=s||`default`,{getPrefixCls:j,direction:M,autoInsertSpace:N,className:P,style:F,classNames:I,styles:L,loadingIcon:z,shape:B,color:V,variant:H}=nt(`button`),U=l||B||`default`,[ee,te]=(0,v.useMemo)(()=>{if(a&&o)return[a,o];if(s||c){let e=vf[A]||[];return c?[`danger`,e[1]]:e}return V&&H?[V,H]:[`default`,`outlined`]},[a,o,s,c,V,H,A]),[W,ne]=(0,v.useMemo)(()=>y&&te===`solid`?[ee,`outlined`]:[ee,te],[ee,te,y]),re=W===`danger`,ie=re?`dangerous`:W,ae=E??N??!0,oe=j(`btn`,i),[se,ce]=cf(oe),le=(0,v.useContext)(Xl),ue=d??le,de=(0,v.useContext)(Bu),fe=(0,v.useMemo)(()=>_f(r),[r]),[pe,me]=(0,v.useState)(fe.loading),[_e,ve]=(0,v.useState)(!1),ye=(0,v.useRef)(null),be=R(t,ye),xe=k.length===1&&!h&&!Wu(ne),Se=(0,v.useRef)(!0);v.useEffect(()=>(Se.current=!1,()=>{Se.current=!0}),[]),C(()=>{let e=null;fe.delay>0?e=setTimeout(()=>{e=null,me(!0)},fe.delay):me(fe.loading);function t(){e&&=(clearTimeout(e),null)}return t},[fe.delay,fe.loading]),(0,v.useEffect)(()=>{if(!ye.current||!ae)return;let e=ye.current.textContent||``;xe&&Uu(e)?_e||ve(!0):_e&&ve(!1)}),(0,v.useEffect)(()=>{D&&ye.current&&ye.current.focus()},[]);let Ce=v.useCallback(t=>{if(pe||ue){t.preventDefault();return}e.onClick?.((`href`in e,t))},[e.onClick,pe,ue]),{compactSize:we,compactItemClassnames:Te}=Iu(oe,M),Ee=Nu(e=>u??we??de??e),De=pe?`loading`:h,Oe=_??g??`start`,ke=he(O,[`navigate`]),Ae={...e,type:A,color:W,variant:ne,danger:re,shape:U,size:Ee,disabled:ue,loading:pe,iconPlacement:Oe},[je,Me]=mc([n?void 0:I,S],[n?void 0:L,w],{props:Ae}),Ne=G(oe,se,ce,{[`${oe}-${U}`]:U!==`default`&&U!==`square`&&U,[`${oe}-${A}`]:A,[`${oe}-dangerous`]:c,[`${oe}-color-${ie}`]:ie,[`${oe}-variant-${ne}`]:ne,[`${oe}-lg`]:Ee===`large`,[`${oe}-sm`]:Ee===`small`,[`${oe}-icon-only`]:!m&&m!==0&&!!De,[`${oe}-background-ghost`]:y&&!Wu(ne),[`${oe}-loading`]:pe,[`${oe}-two-chinese-chars`]:_e&&ae&&!pe,[`${oe}-block`]:b,[`${oe}-rtl`]:M===`rtl`,[`${oe}-icon-end`]:Oe===`end`},Te,f,p,P,je.root),Pe={...Me.root,...F,...T},Fe={className:je.icon,style:Me.icon},Ie=e=>v.createElement(qu,{prefixCls:oe,...Fe},e),Le=v.createElement(Zu,{existIcon:!!h,prefixCls:oe,loading:pe,mount:Se.current,...Fe}),Re=Zs(r)&&r.icon||z,ze;ze=h&&!pe?Ie(h):r&&Re?Ie(Re):Le;let Be=Js(m)?Ku(m,xe&&ae,Me.content,je.content):null;if(ke.href!==void 0)return v.createElement(`a`,{...ke,className:G(Ne,{[`${oe}-disabled`]:ue}),href:ue?void 0:ke.href,style:Pe,onClick:Ce,ref:be,tabIndex:ue?-1:0,"aria-disabled":ue},ze,Be);let Ve=v.createElement(`button`,{...O,type:x,className:Ne,style:Pe,onClick:Ce,disabled:ue,ref:be},ze,Be,Te&&v.createElement(gf,{prefixCls:oe}));return Wu(ne)||(Ve=v.createElement(Mu,{component:`Button`,disabled:pe},Ve)),Ve});yf.Group=Vu,yf.__ANT_BUTTON=!0;function bf(e,t=!1){if(yl(e)){let n=e.nodeName.toLowerCase(),r=[`input`,`select`,`textarea`,`button`].includes(n)||e.isContentEditable||n===`a`&&!!e.getAttribute(`href`),i=e.getAttribute(`tabindex`),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function xf(e,t=!1){let n=[...e.querySelectorAll(`*`)].filter(e=>bf(e,t));return bf(e,t)&&n.unshift(e),n}function Sf(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){let t=e.value.length;switch(n){case`start`:e.setSelectionRange(0,0);break;case`end`:e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var Cf=`RC_FORM_INTERNAL_HOOKS`,wf=()=>{pe(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},Tf=v.createContext({getFieldValue:wf,getFieldsValue:wf,getFieldError:wf,getFieldWarning:wf,getFieldsError:wf,isFieldsTouched:wf,isFieldTouched:wf,isFieldValidating:wf,isFieldsValidating:wf,resetFields:wf,setFields:wf,setFieldValue:wf,setFieldsValue:wf,validateFields:wf,submit:wf,getInternalHooks:()=>(wf(),{dispatch:wf,initEntityValue:wf,registerField:wf,useSubscribe:wf,setInitialValues:wf,destroyForm:wf,setCallbacks:wf,registerWatch:wf,getFields:wf,setValidateMessages:wf,setPreserve:wf,getInitialValue:wf})}),Ef=v.createContext(null);function Df(e){return e==null?[]:Array.isArray(e)?e:[e]}function Of(e){return e&&!!e._init}function kf(){return{default:`Validation error on field %s`,required:`%s is required`,enum:`%s must be one of %s`,whitespace:`%s cannot be empty`,date:{format:`%s date %s is invalid for format %s`,parse:`%s date could not be parsed, %s is invalid `,invalid:`%s date %s is invalid`},types:{string:`%s is not a %s`,method:`%s is not a %s (function)`,array:`%s is not an %s`,object:`%s is not an %s`,number:`%s is not a %s`,date:`%s is not a %s`,boolean:`%s is not a %s`,integer:`%s is not an %s`,float:`%s is not a %s`,regexp:`%s is not a valid %s`,email:`%s is not a valid %s`,tel:`%s is not a valid %s`,url:`%s is not a valid %s`,hex:`%s is not a valid %s`},string:{len:`%s must be exactly %s characters`,min:`%s must be at least %s characters`,max:`%s cannot be longer than %s characters`,range:`%s must be between %s and %s characters`},number:{len:`%s must equal %s`,min:`%s cannot be less than %s`,max:`%s cannot be greater than %s`,range:`%s must be between %s and %s`},array:{len:`%s must be exactly %s in length`,min:`%s cannot be less than %s in length`,max:`%s cannot be greater than %s in length`,range:`%s must be between %s and %s in length`},pattern:{mismatch:`%s value %s does not match pattern %s`},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Af=kf();function jf(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function Mf(e,t,n){if(Yr())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Kr(i,n.prototype),i}function Nf(e){var t=typeof Map==`function`?new Map:void 0;return Nf=function(e){if(e===null||!jf(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Mf(e,arguments,Jr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Kr(n,e)},Nf(e)}var Pf=/%[sdj%]/g,Ff=function(){};function If(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function Lf(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(Pf,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function Rf(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`||e===`tel`}function zf(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||Rf(t)&&typeof e==`string`&&!e)}function Bf(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,We(e||[])),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function Vf(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,s<i?t(e[s],a):n([])}a([])}function Hf(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,We(e[n]||[]))}),t}var Uf=function(e){qr(n,e);var t=Zr(n);function n(e,r){var i;return Hr(this,n),i=t.call(this,`Async Validation Error`),zr(Gr(i),`errors`,void 0),zr(Gr(i),`fields`,void 0),i.errors=e,i.fields=r,i}return Wr(n)}(Nf(Error));function Wf(e,t,n,r,i){if(t.first){var a=new Promise(function(t,a){Vf(Hf(e),n,function(e){return r(e),e.length?a(new Uf(e,If(e))):t(i)})});return a.catch(function(e){return e}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],d=new Promise(function(t,a){var d=function(e){if(u.push.apply(u,e),l++,l===c)return r(u),u.length?a(new Uf(u,If(u))):t(i)};s.length||(r(u),t(i)),s.forEach(function(t){var r=e[t];o.indexOf(t)===-1?Bf(r,n,d):Vf(r,n,d)})});return d.catch(function(e){return e}),d}function Gf(e){return!!(e&&e.message!==void 0)}function Kf(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function qf(e,t){return function(n){var r=e.fullFields?Kf(t,e.fullFields):t[n.field||e.fullField];return Gf(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n==`function`?n():n,fieldValue:r,field:n.field||e.fullField}}}function Jf(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Mr(r)===`object`&&Mr(e[n])===`object`?e[n]=Vr(Vr({},e[n]),r):e[n]=r}}return e}var Yf=`enum`,Xf=function(e,t,n,r,i){e[Yf]=Array.isArray(e[Yf])?e[Yf]:[],e[Yf].indexOf(t)===-1&&r.push(Lf(i.messages[Yf],e.fullField,e[Yf].join(`, `)))},Zf=function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Lf(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(Lf(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Qf=function(e,t,n,r,i){var a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(Lf(i.messages[u].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(Lf(i.messages[u].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(Lf(i.messages[u].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(Lf(i.messages[u].range,e.fullField,e.min,e.max))},$f=function(e,t,n,r,i,a){e.required&&(!n.hasOwnProperty(e.field)||zf(t,a||e.type))&&r.push(Lf(i.messages.required,e.fullField))},ep,tp=(function(){if(ep)return ep;var e=`[a-fA-F\\d:]`,t=function(t){return t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|\$))`:``},n=`(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}`,r=`[a-fA-F\\d]{1,4}`,i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join(`|`)})(?:%[0-9a-zA-Z]{1,})?`,a=RegExp(`(?:^${n}\$)|(?:^${i}\$)`),o=RegExp(`^${n}\$`),s=RegExp(`^${i}\$`),c=function(e){return e&&e.exact?a:RegExp(`(?:${t(e)}${n}${t(e)})|(?:${t(e)}${i}${t(e)})`,`g`)};c.v4=function(e){return e&&e.exact?o:RegExp(`${t(e)}${n}${t(e)}`,`g`)},c.v6=function(e){return e&&e.exact?s:RegExp(`${t(e)}${i}${t(e)}`,`g`)};var l=`(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${c.v4().source}|${c.v6().source}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return ep=RegExp(`(?:^${l}\$)`,`i`),ep}),np={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},rp={integer:function(e){return rp.number(e)&&parseInt(e,10)===e},float:function(e){return rp.number(e)&&!rp.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e==`number`},object:function(e){return Mr(e)===`object`&&!rp.array(e)},method:function(e){return typeof e==`function`},email:function(e){return typeof e==`string`&&e.length<=320&&!!e.match(np.email)},tel:function(e){return typeof e==`string`&&e.length<=32&&!!e.match(np.tel)},url:function(e){return typeof e==`string`&&e.length<=2048&&!!e.match(tp())},hex:function(e){return typeof e==`string`&&!!e.match(np.hex)}},ip={required:$f,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||t===``)&&r.push(Lf(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&t===void 0){$f(e,t,n,r,i);return}var a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`tel`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?rp[o](t)||r.push(Lf(i.messages.types[o],e.fullField,e.type)):o&&Mr(t)!==e.type&&r.push(Lf(i.messages.types[o],e.fullField,e.type))},range:Qf,enum:Xf,pattern:Zf},ap=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i)}n(a)},op=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();ip.required(e,t,r,a,i,`array`),t!=null&&(ip.type(e,t,r,a,i),ip.range(e,t,r,a,i))}n(a)},sp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&ip.type(e,t,r,a,i)}n(a)},cp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t,`date`)&&!e.required)return n();if(ip.required(e,t,r,a,i),!zf(t,`date`)){var o=t instanceof Date?t:new Date(t);ip.type(e,o,r,a,i),o&&ip.range(e,o.getTime(),r,a,i)}}n(a)},lp=`enum`,up=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&ip[lp](e,t,r,a,i)}n(a)},dp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&(ip.type(e,t,r,a,i),ip.range(e,t,r,a,i))}n(a)},fp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&(ip.type(e,t,r,a,i),ip.range(e,t,r,a,i))}n(a)},pp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&ip.type(e,t,r,a,i)}n(a)},mp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&(ip.type(e,t,r,a,i),ip.range(e,t,r,a,i))}n(a)},hp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),t!==void 0&&ip.type(e,t,r,a,i)}n(a)},gp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t,`string`)&&!e.required)return n();ip.required(e,t,r,a,i),zf(t,`string`)||ip.pattern(e,t,r,a,i)}n(a)},_p=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t)&&!e.required)return n();ip.required(e,t,r,a,i),zf(t)||ip.type(e,t,r,a,i)}n(a)},vp=function(e,t,n,r,i){var a=[],o=Array.isArray(t)?`array`:Mr(t);ip.required(e,t,r,a,i,o),n(a)},yp=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t,`string`)&&!e.required)return n();ip.required(e,t,r,a,i,`string`),zf(t,`string`)||(ip.type(e,t,r,a,i),ip.range(e,t,r,a,i),ip.pattern(e,t,r,a,i),e.whitespace===!0&&ip.whitespace(e,t,r,a,i))}n(a)},bp=function(e,t,n,r,i){var a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(zf(t,a)&&!e.required)return n();ip.required(e,t,r,o,i,a),zf(t,a)||ip.type(e,t,r,o,i)}n(o)},xp={string:yp,method:pp,number:mp,boolean:sp,regexp:_p,integer:fp,float:dp,array:op,object:hp,enum:up,pattern:gp,date:cp,url:bp,hex:bp,email:bp,tel:bp,required:vp,any:ap},Sp=function(){function e(t){Hr(this,e),zr(this,`rules`,null),zr(this,`_messages`,Af),this.define(t)}return Wr(e,[{key:`define`,value:function(e){var t=this;if(!e)throw Error(`Cannot configure a schema with no rules`);if(Mr(e)!==`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:`messages`,value:function(e){return e&&(this._messages=Jf(kf(),e)),this._messages}},{key:`validate`,value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,o=r,s=i;if(typeof o==`function`&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(e){var t=[],n={};function r(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,We(e))}else t.push(e)}for(var i=0;i<e.length;i++)r(e[i]);t.length?(n=If(t),s(t,n)):s(null,a)}if(o.messages){var l=this.messages();l===Af&&(l=kf()),Jf(l,o.messages),o.messages=l}else o.messages=this.messages();var u={};(o.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],i=a[e];r.forEach(function(r){var o=r;typeof o.transform==`function`&&(a===t&&(a=Vr({},a)),i=a[e]=o.transform(i),i!=null&&(o.type=o.type||(Array.isArray(i)?`array`:Mr(i)))),o=typeof o==`function`?{validator:o}:Vr({},o),o.validator=n.getValidationMethod(o),o.validator&&(o.field=e,o.fullField=o.fullField||e,o.type=n.getType(o),u[e]=u[e]||[],u[e].push({rule:o,value:i,source:a,field:e}))})});var d={};return Wf(u,o,function(t,n){var r=t.rule,i=(r.type===`object`||r.type===`array`)&&(Mr(r.fields)===`object`||Mr(r.defaultField)===`object`);i&&=r.required||!r.required&&t.value,r.field=t.field;function s(e,t){return Vr(Vr({},t),{},{fullField:`${r.fullField}.${e}`,fullFields:r.fullFields?[].concat(We(r.fullFields),[e]):[e]})}function c(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=Array.isArray(c)?c:[c];!o.suppressWarning&&l.length&&e.warning(`async-validator:`,l),l.length&&r.message!==void 0&&r.message!==null&&(l=[].concat(r.message));var u=l.map(qf(r,a));if(o.first&&u.length)return d[r.field]=1,n(u);if(!i)n(u);else{if(r.required&&!t.value)return r.message===void 0?o.error&&(u=[o.error(r,Lf(o.messages.required,r.field))]):u=[].concat(r.message).map(qf(r,a)),n(u);var f={};r.defaultField&&Object.keys(t.value).map(function(e){f[e]=r.defaultField}),f=Vr(Vr({},f),t.rule.fields);var p={};Object.keys(f).forEach(function(e){var t=f[e];p[e]=(Array.isArray(t)?t:[t]).map(s.bind(null,e))});var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,function(e){var t=[];u&&u.length&&t.push.apply(t,We(u)),e&&e.length&&t.push.apply(t,We(e)),n(t.length?t:null)})}}var l;if(r.asyncValidator)l=r.asyncValidator(r,t.value,c,t.source,o);else if(r.validator){try{l=r.validator(r,t.value,c,t.source,o)}catch(e){var u,f;(u=(f=console).error)==null||u.call(f,e),o.suppressValidatorError||setTimeout(function(){throw e},0),c(e.message)}l===!0?c():l===!1?c(typeof r.message==`function`?r.message(r.fullField||r.field):r.message||`${r.fullField||r.field} fails`):l instanceof Array?c(l):l instanceof Error&&c(l.message)}l&&l.then&&l.then(function(){return c()},function(e){return c(e)})},function(e){c(e)},a)}},{key:`getType`,value:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type=`pattern`),typeof e.validator!=`function`&&e.type&&!xp.hasOwnProperty(e.type))throw Error(Lf(`Unknown rule type %s`,e.type));return e.type||`string`}},{key:`getValidationMethod`,value:function(e){if(typeof e.validator==`function`)return e.validator;var t=Object.keys(e),n=t.indexOf(`message`);return n!==-1&&t.splice(n,1),t.length===1&&t[0]===`required`?xp.required:xp[this.getType(e)]||void 0}}]),e}();zr(Sp,`register`,function(e,t){if(typeof t!=`function`)throw Error(`Cannot register a validator by type, validator is not a function`);xp[e]=t}),zr(Sp,`warning`,Ff),zr(Sp,`messages`,Af),zr(Sp,`validators`,xp);var Cp="'${name}' is not a valid ${type}",wp={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Cp,method:Cp,array:Cp,object:Cp,number:Cp,date:Cp,boolean:Cp,integer:Cp,float:Cp,regexp:Cp,email:Cp,tel:Cp,url:Cp,hex:Cp},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Tp=Sp;function Ep(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>e.startsWith(`\\`)?e.slice(1):t[e.slice(2,-1)])}var Dp=`CODE_LOGIC_ERROR`;async function Op(e,t,n,r,i){let a={...n};if(delete a.ruleIndex,Tp.warning=()=>void 0,a.validator){let e=a.validator;a.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(Dp)}}}let o=null;a&&a.type===`array`&&a.defaultField&&(o=a.defaultField,delete a.defaultField);let s=new Tp({[e]:[a]}),c=ae(wp,r.validateMessages);s.messages(c);let l=[];try{await Promise.resolve(s.validate({[e]:t},{...r}))}catch(e){e.errors&&(l=e.errors.map(({message:e},t)=>{let n=e===Dp?c.default:e;return v.isValidElement(n)?v.cloneElement(n,{key:`error_${t}`}):n}))}if(!l.length&&o&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((t,n)=>Op(`${e}.${n}`,t,o,r,i)))).reduce((e,t)=>[...e,...t],[]);let u={...n,name:e,enum:(n.enum||[]).join(`, `),...i};return l.map(e=>typeof e==`string`?Ep(e,u):e)}function kp(e,t,n,r,i,a){let o=e.join(`.`),s=n.map((e,t)=>{let n=e.validator,r={...e,ruleIndex:t};return n&&(r.validator=(e,t,r)=>{let i=!1,a=n(e,t,(...e)=>{Promise.resolve().then(()=>{pe(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r(...e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,pe(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(()=>{r()}).catch(e=>{r(e||` `)})}),r}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:r})=>!!e==!!n?t-r:e?1:-1),c;if(i===!0)c=new Promise(async(e,n)=>{for(let e=0;e<s.length;e+=1){let i=s[e],c=await Op(o,t,i,r,a);if(c.length){n([{errors:c,rule:i}]);return}}e([])});else{let e=s.map(e=>Op(o,t,e,r,a).then(t=>({errors:t,rule:e})));c=(i?jp(e):Ap(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}async function Ap(e){return Promise.all(e).then(e=>[].concat(...e))}async function jp(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})}function Mp(e){return Df(e)}function Np(e,t){let n={};return t.forEach(t=>{let r=U(e,t);n=te(n,t,r)}),n}function Pp(e,t,n=!1){return e&&e.some(e=>Fp(t,e,n))}function Fp(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((t,n)=>e[n]===t)}function Ip(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(n=>{let r=e[n],i=t[n];return typeof r==`function`&&typeof i==`function`?!0:r===i})}function Lp(e,...t){let n=t[0];return n&&n.target&&typeof n.target==`object`&&e in n.target?n.target[e]:n}function Rp(e,t,n){let{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;let i=e[t],a=t-n;return a>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:a<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}var zp=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},Bp=class{namePathList=[];taskId=0;watcherList=new Set;form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!Fp(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;let e=this.taskId;zp(()=>{if(e===this.taskId&&this.watcherList.size){let e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}};async function Vp(){return new Promise(e=>{zp(()=>{Xe(()=>{e()})})})}function Hp(){return Hp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hp.apply(this,arguments)}var Up=[],Wp=[];function Gp(e,t,n,r,i,a){return typeof e==`function`?e(t,n,`source`in a?{source:a.source}:{}):r!==i}var Kp=class extends v.Component{static contextType=Tf;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Up;warnings=Wp;constructor(e){if(super(e),e.fieldContext){let{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(Cf);n(this)}}componentDidMount(){let{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){let{getInternalHooks:e}=t,{registerField:n}=e(Cf);this.cancelRegisterFunc=n(this)}e===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{let{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,Mp(n)),this.cancelRegisterFunc=null};getNamePath=()=>{let{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return e===void 0?[]:[...n,...e]};getRules=()=>{let{rules:e=[],fieldContext:t}=this.props;return e.map(e=>typeof e==`function`?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{let{onMetaChange:t}=this.props;if(t){let n={...this.getMeta(),destroy:e};vt(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(e,t,n)=>{let{shouldUpdate:r,dependencies:i=[],onReset:a}=this.props,{store:o}=n,s=this.getNamePath(),c=this.getValue(e),l=this.getValue(o),u=t&&Pp(t,s);switch(n.type===`valueUpdate`&&n.source===`external`&&!vt(c,l)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Up,this.warnings=Wp,this.triggerMetaEvent()),n.type){case`reset`:if(!t||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Up,this.warnings=Wp,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case`remove`:if(r&&Gp(r,e,o,c,l,n)){this.reRender();return}break;case`setField`:{let{data:i}=n;if(u){`touched`in i&&(this.touched=i.touched),`validating`in i&&!(`originRCField`in i)&&(this.validatePromise=i.validating?Promise.resolve([]):null),`errors`in i&&(this.errors=i.errors||Up),`warnings`in i&&(this.warnings=i.warnings||Wp),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if(`value`in i&&Pp(t,s,!0)){this.reRender();return}if(r&&!s.length&&Gp(r,e,o,c,l,n)){this.reRender();return}break}case`dependenciesUpdate`:if(i.map(Mp).some(e=>Pp(n.relatedFields,e))){this.reRender();return}break;default:if(u||(!i.length||s.length||r)&&Gp(r,e,o,c,l,n)){this.reRender();return}break}r===!0&&this.reRender()};validateRules=e=>{let t=this.getNamePath(),n=this.getValue(),{triggerName:r,validateOnly:i=!1,delayFrame:a}=e||{},o=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:i=!1,messageVariables:s,validateDebounce:c}=this.props;a&&await Vp();let l=this.getRules();if(r&&(l=l.filter(e=>e).filter(e=>{let{validateTrigger:t}=e;return t?Df(t).includes(r):!0})),c&&r&&(await new Promise(e=>{setTimeout(e,c)}),this.validatePromise!==o))return[];let u=kp(t,n,l,e,i,s);return u.catch(e=>e).then((e=Up)=>{if(this.validatePromise===o){this.validatePromise=null;let t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:r=Up})=>{e?n.push(...r):t.push(...r)}),this.errors=t,this.warnings=n,this.triggerMetaEvent(),this.reRender()}}),u});return i?o:(this.validatePromise=o,this.dirty=!0,this.errors=Up,this.warnings=Wp,this.triggerMetaEvent(),this.reRender(),o)};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;let{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(Cf);return t(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=e=>{if(typeof e==`function`){let t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}let t=ge(e);return t.length!==1||!v.isValidElement(t[0])?{child:t,isFunction:!1}:{child:t[0],isFunction:!1}};getValue=e=>{let{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return U(e||t(!0),n)};getControlled=(e={})=>{let{name:t,trigger:n=`onChange`,validateTrigger:r,getValueFromEvent:i,normalize:a,valuePropName:o=`value`,getValueProps:s,fieldContext:c}=this.props,l=r===void 0?c.validateTrigger:r,u=this.getNamePath(),{getInternalHooks:d,getFieldsValue:f}=c,{dispatch:p}=d(Cf),m=this.getValue(),h=s||(e=>({[o]:e})),g=e[n],_=t===void 0?{}:h(m),v={...e,..._};return v[n]=(...e)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let t;t=i?i(...e):Lp(o,...e),a&&(t=a(t,m,f(!0))),t!==m&&p({type:`updateValue`,namePath:u,value:t}),g&&g(...e)},Df(l||[]).forEach(e=>{let t=v[e];v[e]=(...n)=>{t&&t(...n);let{rules:r}=this.props;r&&r.length&&p({type:`validateField`,namePath:u,triggerName:e})}}),v};render(){let{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:r}=this.getOnlyChild(t),i;return r?i=n:v.isValidElement(n)?i=v.cloneElement(n,this.getControlled(n.props)):(pe(!n,"`children` of Field is not validate ReactElement."),i=n),v.createElement(v.Fragment,{key:e},i)}};function qp({name:e,...t}){let n=v.useContext(Tf),r=v.useContext(Ef),i=e===void 0?void 0:Mp(e),a=t.isListField??!!r,o=`keep`;return a||(o=`_${(i||[]).join(`_`)}`),v.createElement(Kp,Hp({key:o,name:i,isListField:a},t,{fieldContext:n}))}function eee({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:a}){let o=v.useContext(Tf),s=v.useContext(Ef),c=v.useRef({keys:[],id:0}).current,l=v.useMemo(()=>[...Mp(o.prefixName)||[],...Mp(e)],[o.prefixName,e]),u=v.useMemo(()=>({...o,prefixName:l}),[o,l]),d=v.useMemo(()=>({getKey:e=>{let t=l.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}),[c,l]);return typeof n==`function`?v.createElement(Ef.Provider,{value:d},v.createElement(Tf.Provider,{value:u},v.createElement(qp,{name:[],shouldUpdate:(e,t,{source:n})=>n===`internal`?!1:e!==t,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:a??!!s},({value:e=[],onChange:t},r)=>{let{getFieldValue:i}=o,a=()=>i(l||[])||[],s={add:(e,n)=>{let r=a();n>=0&&n<=r.length?(c.keys=[...c.keys.slice(0,n),c.id,...c.keys.slice(n)],t([...r.slice(0,n),e,...r.slice(n)])):(c.keys=[...c.keys,c.id],t([...r,e])),c.id+=1},remove:e=>{let n=a(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(c.keys=c.keys.filter((e,t)=>!r.has(t)),t(n.filter((e,t)=>!r.has(t))))},move(e,n){if(e===n)return;let r=a();e<0||e>=r.length||n<0||n>=r.length||(c.keys=Rp(c.keys,e,n),t(Rp(r,e,n)))}},u=e||[];return Array.isArray(u)||(u=[]),n(u.map((e,t)=>{let n=c.keys[t];return n===void 0&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),s,r)}))):(pe(!1,`Form.List only accepts function as children.`),null)}function Jp(e){let t=!1,n=e.length,r=[];return e.length?new Promise((i,a)=>{e.forEach((e,o)=>{e.catch(e=>(t=!0,e)).then(e=>{--n,r[o]=e,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var Yp=`__@field_split__`;function Xp(e){return e.map(e=>`${typeof e}:${e}`).join(Yp)}var Zp=class{kvs=new Map;set(e,t){this.kvs.set(Xp(e),t)}get(e){return this.kvs.get(Xp(e))}getAsPrefix(e){let t=Xp(e),n=t+Yp,r=[],i=this.kvs.get(t);return i!==void 0&&r.push(i),this.kvs.forEach((e,t)=>{t.startsWith(n)&&r.push(e)}),r}update(e,t){let n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(Xp(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>e({key:t.split(Yp).map(e=>{let[,t,n]=e.match(/^([^:]*):(.*)$/);return t===`number`?Number(n):n}),value:n}))}toJSON(){let e={};return this.map(({key:t,value:n})=>(e[t.join(`.`)]=n,null)),e}},tee=class{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new Bp(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===`RC_FORM_INTERNAL_HOOKS`?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(pe(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=ae(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=te(t,n,U(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{let e=new Zp;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{let t=U(this.initialValues,e);return e.length?ae(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{let t=new Zp;return this.getFieldEntities(e).forEach(e=>{let n=e.getNamePath();t.set(n,e)}),t};getFieldEntitiesForNamePathList=(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);let n=this.getFieldsMap(!0);return t?e.flatMap(e=>{let t=Mp(e),r=n.getAsPrefix(t);return r.length?r:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{let t=Mp(e);return n.get(t)||{INVALIDATE_NAME_PATH:Mp(e)}})};getFieldsValue=(e,t)=>{this.warningUnhooked();let n,r;if(e===!0||Array.isArray(e)?(n=e,r=t):e&&typeof e==`object`&&(r=e.filter),n===!0&&!r)return this.store;let i=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),a=[],o=[];i.forEach(e=>{let t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.()){o.push(t);return}if(!r)a.push(t);else{let n=`getMeta`in e?e.getMeta():null;r(n)&&a.push(t)}});let s=Np(this.store,a.map(Mp));return o.forEach(e=>{U(s,e)||(s=te(s,e,[]))}),s};getFieldValue=e=>{this.warningUnhooked();let t=Mp(e);return U(this.store,t)};getFieldsError=e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Mp(e[n]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();let t=Mp(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();let t=Mp(e);return this.getFieldsError([t])[0].warnings};isFieldsTouched=(...e)=>{this.warningUnhooked();let[t,n]=e,r,i=!1;e.length===0?r=null:e.length===1?Array.isArray(t)?(r=t.map(Mp),i=!1):(r=null,i=t):(r=t.map(Mp),i=n);let a=this.getFieldEntities(!0),o=e=>e.isFieldTouched();if(!r)return i?a.every(e=>o(e)||e.isList()):a.some(o);let s=new Zp;r.forEach(e=>{s.set(e,[])}),a.forEach(e=>{let t=e.getNamePath();r.forEach(n=>{n.every((e,n)=>t[n]===e)&&s.update(n,t=>[...t,e])})});let c=e=>e.some(o),l=s.map(({value:e})=>e);return i?l.every(c):l.some(c)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();let t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());let n=e.map(Mp);return t.some(e=>Pp(n,e.getNamePath())&&e.isFieldValidating())};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{let t=new Zp,n=this.getFieldEntities(!0);n.forEach(e=>{let{initialValue:n}=e.props,r=e.getNamePath();if(n!==void 0){let i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}});let r=n=>{n.forEach(n=>{let{initialValue:r}=n.props;if(r!==void 0){let r=n.getNamePath();if(this.getInitialValue(r)!==void 0)pe(!1,`Form already set 'initialValues' with path '${r.join(`.`)}'. Field can not overwrite it.`);else{let i=t.get(r);if(i&&i.size>1)pe(!1,`Multiple Field with path '${r.join(`.`)}' set 'initialValue'. Can not decide which one to pick.`);else if(i){let t=this.getFieldValue(r);!n.isListField()&&(!e.skipExist||t===void 0)&&this.updateStore(te(this.store,r,[...i][0].value))}}}})},i;e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach(e=>{let n=t.get(e);n&&i.push(...[...n].map(e=>e.entity))})):i=n,r(i)};resetFields=e=>{this.warningUnhooked();let t=this.store;if(!e){this.updateStore(ae(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:`reset`}),this.notifyWatch();return}let n=e.map(Mp);n.forEach(e=>{let t=this.getInitialValue(e);this.updateStore(te(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:`reset`}),this.notifyWatch(n)};setFields=e=>{this.warningUnhooked();let t=this.store,n=[];e.forEach(e=>{let{name:r,...i}=e,a=Mp(r);n.push(a),`value`in i&&this.updateStore(te(this.store,a,i.value)),this.notifyObservers(t,[a],{type:`setField`,data:e})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(e=>{let t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,`originRCField`,{value:!0}),n});initEntityValue=e=>{let{initialValue:t}=e.props;if(t!==void 0){let n=e.getNamePath();U(this.store,n)===void 0&&this.updateStore(te(this.store,n,t))}};isMergedPreserve=e=>(e===void 0?this.preserve:e)??!0;registerField=e=>{this.fieldEntities.push(e);let t=e.getNamePath();if(this.notifyWatch([t]),e.props.initialValue!==void 0){let t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:`valueUpdate`,source:`internal`})}return(n,r,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(r)&&(!n||i.length>1)){let e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!Fp(e.getNamePath(),t))){let n=this.store;this.updateStore(te(n,t,e,!0)),this.notifyObservers(n,[t],{type:`remove`}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}};dispatch=e=>{switch(e.type){case`updateValue`:{let{namePath:t,value:n}=e;this.updateValue(t,n);break}case`validateField`:{let{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}default:}};notifyObservers=(e,t,n)=>{if(this.subscribable){let r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,r)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{let n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(e,n,{type:`dependenciesUpdate`,relatedFields:[t,...n]}),n};updateValue=(e,t)=>{let n=Mp(e),r=this.store;this.updateStore(te(this.store,n,t)),this.notifyObservers(r,[n],{type:`valueUpdate`,source:`internal`}),this.notifyWatch([n]);let i=this.triggerDependenciesUpdate(r,n),{onValuesChange:a}=this.callbacks;if(a){let e=Np(this.store,[n]);a(e,te(this.getFieldsValue(),n,U(e,n)))}this.triggerOnFieldsChange([n,...i])};setFieldsValue=e=>{this.warningUnhooked();let t=this.store;if(e){let t=ae(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:`valueUpdate`,source:`external`}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{let t=new Set,n=[],r=new Zp;this.getFieldEntities().forEach(e=>{let{dependencies:t}=e.props;(t||[]).forEach(t=>{let n=Mp(t);r.update(n,(t=new Set)=>(t.add(e),t))})});let i=e=>{(r.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);let r=e.getNamePath();e.isFieldDirty()&&r.length&&(n.push(r),i(r))}})};return i(e),n};triggerOnFieldsChange=(e,t)=>{let{onFieldsChange:n}=this.callbacks;if(n){let r=this.getFields();if(t){let e=new Zp;t.forEach(({name:t,errors:n})=>{e.set(t,n)}),r.forEach(t=>{t.errors=e.get(t.name)||t.errors})}let i=r.filter(({name:t})=>Pp(e,t));i.length&&n(i,r)}};validateFields=(e,t)=>{this.warningUnhooked();let n,r;Array.isArray(e)||typeof e==`string`||typeof t==`string`?(n=e,r=t):r=e;let i=!!n,a=i?n.map(Mp):[],o=[...a],s=[],c=String(Date.now()),l=new Set,{recursive:u,dirty:d}=r||{};this.getFieldEntities(!0).forEach(e=>{let t=e.getNamePath();if(i||((!e.isList()||!a.some(e=>Fp(e,t,!0)))&&o.push(t),a.push(t)),!(!e.props.rules||!e.props.rules.length)&&!(d&&!e.isFieldDirty())&&(l.add(t.join(c)),!i||Pp(a,t,u))){let n=e.validateRules({validateMessages:{...wp,...this.validateMessages},...r});s.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{let n=[],r=[];return e.forEach?.(({rule:{warningOnly:e},errors:t})=>{e?r.push(...t):n.push(...t)}),n.length?Promise.reject({name:t,errors:n,warnings:r}):{name:t,errors:n,warnings:r}}))}});let f=Jp(s);this.lastValidatePromise=f,f.catch(e=>e).then(e=>{let t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:`validateFinish`}),this.triggerOnFieldsChange(t,e)});let p=f.then(()=>this.lastValidatePromise===f?Promise.resolve(this.getFieldsValue(o)):Promise.reject([])).catch(e=>{let t=e.filter(e=>e&&e.errors.length),n=t[0]?.errors?.[0];return Promise.reject({message:n,values:this.getFieldsValue(a),errorFields:t,outOfDate:this.lastValidatePromise!==f})});p.catch(e=>e);let m=a.filter(e=>l.has(e.join(c)));return this.triggerOnFieldsChange(m),p};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{let{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){console.error(e)}}).catch(e=>{let{onFinishFailed:t}=this.callbacks;t&&t(e)})}};function Qp(e){let t=v.useRef(null),[,n]=v.useState({});return t.current||(e?t.current=e:t.current=new tee(()=>{n({})}).getForm()),[t.current]}var $p=v.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),nee=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{let i=v.useContext($p),a=v.useRef({});return v.createElement($p.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:a.current}),i.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(a.current={...a.current,[e]:t}),i.registerForm(e,t)},unregisterForm:e=>{let t={...a.current};delete t[e],a.current=t,i.unregisterForm(e)}}},r)};function em(){return em=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},em.apply(this,arguments)}var ree=({name:e,initialValues:t,fields:n,form:r,preserve:i,children:a,component:o=`form`,validateMessages:s,validateTrigger:c=`onChange`,onValuesChange:l,onFieldsChange:u,onFinish:d,onFinishFailed:f,clearOnDestroy:p,...m},h)=>{let g=v.useRef(null),_=v.useContext($p),[y]=Qp(r),{useSubscribe:b,setInitialValues:x,setCallbacks:S,setValidateMessages:C,setPreserve:w,destroyForm:T}=y.getInternalHooks(Cf);v.useImperativeHandle(h,()=>({...y,nativeElement:g.current})),v.useEffect(()=>(_.registerForm(e,y),()=>{_.unregisterForm(e)}),[_,y,e]),C({..._.validateMessages,...s}),S({onValuesChange:l,onFieldsChange:(t,...n)=>{_.triggerFormChange(e,t),u&&u(t,...n)},onFinish:t=>{_.triggerFormFinish(e,t),d&&d(t)},onFinishFailed:f}),w(i);let E=v.useRef(null);x(t,!E.current),E.current||=!0,v.useEffect(()=>()=>T(p),[]);let D,O=typeof a==`function`;D=O?a(y.getFieldsValue(!0),y):a,b(!O);let k=v.useRef(null);v.useEffect(()=>{Ip(k.current||[],n||[])||y.setFields(n||[]),k.current=n},[n,y]);let A=v.useMemo(()=>({...y,validateTrigger:c}),[y,c]),j=v.createElement(Ef.Provider,{value:null},v.createElement(Tf.Provider,{value:A},D));return o===!1?j:v.createElement(o,em({},m,{ref:g,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),y.submit()},onReset:e=>{e.preventDefault(),y.resetFields(),m.onReset?.(e)}}),j)};function tm(e){try{return JSON.stringify(e)}catch{return Math.random()}}function iee(...e){let[t,n={}]=e,r=Of(n)?{form:n}:n,i=r.form,[a,o]=(0,v.useState)(()=>typeof t==`function`?t({}):void 0),s=(0,v.useMemo)(()=>tm(a),[a]),c=(0,v.useRef)(s);c.current=s;let l=(0,v.useContext)(Tf),u=i||l,d=u&&u._init,{getFieldsValue:f,getInternalHooks:p}=u,{registerWatch:m}=p(Cf),h=b((e,n)=>{let i=r.preserve?n??f(!0):e??f(),s=typeof t==`function`?t(i):U(i,Mp(t));tm(a)!==tm(s)&&o(s)});return(0,v.useEffect)(()=>{d&&h()},[d,typeof t==`function`?t:JSON.stringify(t)]),(0,v.useEffect)(()=>{if(d)return m((e,t)=>{h(e,t)})},[d]),a}var nm=v.forwardRef(ree);nm.FormProvider=nee,nm.Field=qp,nm.List=eee,nm.useForm=Qp,nm.useWatch=iee;var rm=v.createContext({}),aee=({children:e,status:t,override:n})=>{let r=v.useContext(rm),i=v.useMemo(()=>{let e={...r};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return v.createElement(rm.Provider,{value:i},e)},oee=v.createContext(void 0),im=e=>{let{space:t,form:n,children:r}=e;if(!Js(r))return null;let i=r;return n&&(i=v.createElement(aee,{override:!0,status:!0},i)),t&&(i=v.createElement(Lu,null,i)),i},am=e=>{if(x()&&window.document.documentElement){let t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1},see=(e,t)=>{if(!am(e))return!1;let n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function om(e,t){return!Array.isArray(e)&&t!==void 0?see(e,t):am(e)}var sm=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=G({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),s=G({[`${t}-circle`]:a===`circle`,[`${t}-square`]:a===`square`,[`${t}-round`]:a===`round`}),c=v.useMemo(()=>Ys(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return v.createElement(`span`,{className:G(t,o,s,n),style:{...c,...r}})},cee=new Ar(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),cm=e=>({height:e,lineHeight:K(e)}),lm=e=>({width:e,...cm(e)}),lee=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:cee,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),um=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...cm(e)}),uee=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...lm(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...lm(i)},[`${t}${t}-sm`]:{...lm(a)}}},dee=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n,...um(t,s)},[`${r}-lg`]:{...um(i,s)},[`${r}-sm`]:{...um(a,s)}}},dm=e=>{let{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:t,borderRadius:n,...lm(i(r).mul(2).equal())}},fee=e=>({[e.skeletonNodeCls]:{...dm(e)}}),pee=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...dm(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...lm(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:`50%`}},[`${t}${t}-circle`]:{borderRadius:`50%`}}},fm=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},pm=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...cm(e)}),mee=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[n]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...pm(r,s)},...fm(e,r,n),[`${n}-lg`]:{...pm(i,s)},...fm(e,i,`${n}-lg`),[`${n}-sm`]:{...pm(a,s)},...fm(e,a,`${n}-sm`)}},hee=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonNodeCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:_,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[n]:{display:`inline-block`,verticalAlign:`top`,background:f,...lm(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...lm(u)},[`${n}-sm`]:{...lm(d)}},[`${t}-section`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:g,background:f,borderRadius:_,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:`100%`,height:v,listStyle:`none`,background:f,borderRadius:_,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:{display:`inline-block`,width:`auto`,...mee(e),...uee(e),...dee(e),...fee(e),...pee(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[`
|
||
${r},
|
||
${i} > li,
|
||
${n},
|
||
${a},
|
||
${o},
|
||
${s},
|
||
${c}
|
||
`]:{...lee(e)}}}},mm=Xa(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return hee(li(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))},e=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]}),gee=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,style:o,styles:s,shape:c=`circle`,size:l,...u}=e,{getPrefixCls:d}=v.useContext($e),f=d(`skeleton`,t),[p,m]=mm(f),h=Nu(e=>l??e),g=G(f,`${f}-element`,{[`${f}-active`]:a},r?.root,n,i,p,m);return v.createElement(`div`,{className:g,style:s?.root},v.createElement(sm,{prefixCls:`${f}-avatar`,className:r?.content,style:{...s?.content,...o},shape:c,size:h,...u}))},_ee=e=>{let{prefixCls:t,className:n,rootClassName:r,classNames:i,active:a,style:o,styles:s,block:c=!1,size:l,...u}=e,{getPrefixCls:d}=v.useContext($e),f=d(`skeleton`,t),[p,m]=mm(f),h=Nu(e=>l??e),g=G(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:c},i?.root,n,r,p,m);return v.createElement(`div`,{className:g,style:s?.root},v.createElement(sm,{prefixCls:`${f}-button`,className:i?.content,style:{...s?.content,...o},size:h,...u}))},hm=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:a,style:o,styles:s,active:c,children:l}=e,{getPrefixCls:u}=v.useContext($e),d=u(`skeleton`,t),[f,p]=mm(d),m=G(d,`${d}-element`,{[`${d}-active`]:c},f,r?.root,n,i,p);return v.createElement(`div`,{className:m,style:s?.root},v.createElement(`div`,{className:G(r?.content,a||`${d}-node`),style:{...s?.content,...o}},l))},vee=e=>{let{getPrefixCls:t}=v.useContext($e),n=t(`skeleton`,e.prefixCls);return v.createElement(hm,{...e,internalClassName:`${n}-image`},v.createElement(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,className:`${n}-image-svg`},v.createElement(`title`,null,`Image placeholder`),v.createElement(`path`,{d:`M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6`,className:`${n}-image-path`})))},yee=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,block:o,style:s,styles:c,size:l,...u}=e,{getPrefixCls:d}=v.useContext($e),f=d(`skeleton`,t),[p,m]=mm(f),h=Nu(e=>l??e),g=G(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:o},r?.root,n,i,p,m);return v.createElement(`div`,{className:g,style:c?.root},v.createElement(sm,{prefixCls:`${f}-input`,className:r?.content,style:{...c?.content,...s},size:h,...u}))},bee=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},xee=e=>{let{prefixCls:t,className:n,style:r,rows:i=0}=e,a=Array.from({length:i}).map((t,n)=>v.createElement(`li`,{key:n,style:{width:bee(n,e)}}));return v.createElement(`ul`,{className:G(t,n),style:r},a)},See=({prefixCls:e,className:t,width:n,style:r})=>v.createElement(`h3`,{className:G(e,t),style:{width:n,...r}});function gm(e){return Zs(e)?e:{}}function Cee(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function wee(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function Tee(e,t){let n={};return(!e||!t)&&(n.width=`61%`),!e&&t?n.rows=3:n.rows=2,n}var _m=e=>{let{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:a,style:o,styles:s,children:c,avatar:l=!1,title:u=!0,paragraph:d=!0,active:f,round:p}=e,{getPrefixCls:m,direction:h,className:g,style:_,classNames:y,styles:b}=nt(`skeleton`),x=m(`skeleton`,t),[S,C]=mm(x),w={...e,avatar:l,title:u,paragraph:d},[T,E]=mc([y,a],[b,s],{props:w});if(n||!(`loading`in e)){let e=!!l,t=!!u,n=!!d,a;if(e){let e={className:T.avatar,prefixCls:`${x}-avatar`,...Cee(t,n),...gm(l),style:E.avatar};a=v.createElement(`div`,{className:G(T.header,`${x}-header`),style:E.header},v.createElement(sm,{...e}))}let s;if(t||n){let r;if(t){let t={className:T.title,prefixCls:`${x}-title`,...wee(e,n),...gm(u),style:E.title};r=v.createElement(See,{...t})}let i;if(n){let n={className:T.paragraph,prefixCls:`${x}-paragraph`,...Tee(e,t),...gm(d),style:E.paragraph};i=v.createElement(xee,{...n})}s=v.createElement(`div`,{className:G(T.section,`${x}-section`),style:E.section},r,i)}let c=G(x,{[`${x}-with-avatar`]:e,[`${x}-active`]:f,[`${x}-rtl`]:h===`rtl`,[`${x}-round`]:p},T.root,g,r,i,S,C);return v.createElement(`div`,{className:c,style:{...E.root,..._,...o}},a,s)}return c??null};_m.Button=_ee,_m.Avatar=gee,_m.Input=yee,_m.Image=vee,_m.Node=hm;var vm=_m;function Eee(e){return t=>v.createElement(lu,{theme:{token:{motion:!1,zIndexPopupBase:0}}},v.createElement(e,{...t}))}var ym=(e,t,n,r,i)=>Eee(a=>{let{prefixCls:o,style:s}=a,c=v.useRef(null),[l,u]=v.useState(0),[d,f]=v.useState(0),[p,m]=E(!1,a.open),{getPrefixCls:h}=v.useContext($e),g=h(r||`select`,o);v.useEffect(()=>{if(m(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{let n=i?`.${i(g)}`:`.${g}-dropdown`,r=c.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[g]);let _={...a,style:{...s,margin:0},open:p,getPopupContainer:()=>c.current};n&&(_=n(_)),t&&(_={..._,[t]:{overflow:{adjustX:!1,adjustY:!1}}});let y={paddingBottom:l,position:`relative`,minWidth:d};return v.createElement(`div`,{ref:c,style:y},v.createElement(e,{..._}))}),Dee=(e,t,n,r,i=!1,a,o)=>{let s=(0,v.useMemo)(()=>typeof n==`boolean`?{allowClear:n}:n&&typeof n==`object`?n:{allowClear:!1},[n]);return(0,v.useMemo)(()=>{let e=!i&&s.allowClear!==!1&&(t.length||a)&&!(o===`combobox`&&a===``);return{allowClear:e,clearIcon:e?s.clearIcon||r||`×`:null}},[s,r,i,t.length,a,o])},bm=v.createContext(null);function xm(){return v.useContext(bm)}function Oee(e=250){let t=v.useRef(null),n=v.useRef(null);v.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function Sm(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function kee(e,t,n,r){let i=b(i=>{if(r)return;let a=i.target;a.shadowRoot&&i.composed&&(a=i.composedPath()[0]||a),i._ori_target&&(a=i._ori_target),t&&!Sm(e(),a)&&n(!1)});v.useEffect(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[i])}function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cm.apply(this,arguments)}var Aee=e=>{let t=e===!0?0:1;return{bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`}}},jee=v.forwardRef((e,t)=>{let{prefixCls:n,disabled:r,visible:i,children:a,popupElement:o,animation:s,transitionName:c,popupStyle:l,popupClassName:u,direction:d=`ltr`,placement:f,builtinPlacements:p,popupMatchSelectWidth:m,popupRender:h,popupAlign:g,getPopupContainer:_,empty:y,onPopupVisibleChange:b,onPopupMouseEnter:x,onPopupMouseDown:S,onPopupBlur:C,...w}=e,T=`${n}-dropdown`,E=o;h&&(E=h(o));let D=v.useMemo(()=>p||Aee(m),[p,m]),O=s?`${T}-${s}`:c,k=typeof m==`number`,A=v.useMemo(()=>k?null:m===!1?`minWidth`:`width`,[m,k]),j=l;k&&(j={...l,width:m});let M=v.useRef(null);return v.useImperativeHandle(t,()=>({getPopupElement:()=>M.current?.popupElement})),v.createElement(Hl,Cm({},w,{showAction:b?[`click`]:[],hideAction:b?[`click`]:[],popupPlacement:f||(d===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:D,prefixCls:T,popupMotion:{motionName:O},popup:v.createElement(`div`,{onMouseEnter:x,onMouseDown:S,onBlur:C},E),ref:M,stretch:A,popupAlign:g,popupVisible:i,getPopupContainer:_,popupClassName:G(u,{[`${T}-empty`]:y}),popupStyle:j,onPopupVisibleChange:b}),a)});function wm(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n??(r===void 0?`rc-index-key-${t}`:r)}function Tm(e){return e!==void 0&&!Number.isNaN(e)}function Em(e,t){let{label:n,value:r,options:i,groupLabel:a}=e||{},o=n||(t?`children`:`label`);return{label:o,value:r||`value`,options:i||`options`,groupLabel:a||o}}function Mee(e,{fieldNames:t,childrenAsData:n}={}){let r=[],{label:i,value:a,options:o,groupLabel:s}=Em(t,!1);function c(e,t){Array.isArray(e)&&e.forEach(e=>{if(t||!(o in e)){let n=e[a];r.push({key:wm(e,r.length),groupOption:t,data:e,label:e[i],value:n})}else{let t=e[s];t===void 0&&n&&(t=e.label),r.push({key:wm(e,r.length),group:!0,data:e,label:t}),c(e[o],!0)}})}return c(e,!1),r}function Dm(e){let t={...e};return`props`in t||Object.defineProperty(t,`props`,{get(){return pe(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Nee=(e,t,n)=>{if(!t||!t.length)return null;let r=!1,i=(e,[t,...n])=>{if(!t)return[e];let a=e.split(t);return r||=a.length>1,a.reduce((e,t)=>[...e,...i(t,n)],[]).filter(Boolean)},a=i(e,t);return r?n===void 0?a:a.slice(0,n):null};function Pee(e){let{visible:t,values:n}=e;return t?v.createElement(`span`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`${n.slice(0,50).map(({label:e,value:t})=>[`number`,`string`].includes(typeof e)?e:t).join(`, `)}`,n.length>50?`, ...`:null):null}var Fee=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},Om=(e,t=1)=>{if(t<=0){e();return}Fee(()=>{Om(e,t-1)})};function Iee(e,t,n,r){let[i,a]=(0,v.useState)(!1);(0,v.useEffect)(()=>{a(!0)},[]);let[o,s]=E(e,t),[c,l]=(0,v.useState)(!1),u=i?o:!1,d=r(u),f=(0,v.useRef)(0),p=b(e=>{n&&d!==e&&n(e),s(e)});return[u,d,b((e,t={})=>{let{cancelFun:n}=t;f.current+=1;let r=f.current,i=typeof e==`boolean`?e:!d;l(!i);function a(){r===f.current&&!n?.()&&(p(i),l(!1))}i?a():Om(()=>{a()})}),c]}function km(e){let{children:t,...n}=e;return t?v.createElement(`div`,n,t):null}var Am=v.createContext(null);function jm(){return v.useContext(Am)}var Mm=v.forwardRef((e,t)=>{let{onChange:n,onKeyDown:r,onBlur:i,style:a,syncWidth:o,value:s,className:c,autoComplete:l,...u}=e,{prefixCls:d,mode:f,onSearch:p,onSearchSubmit:m,onInputBlur:h,autoFocus:g,tokenWithEnter:_,placeholder:y,components:{input:b=`input`}}=jm(),{id:x,classNames:S,styles:w,open:T,activeDescendantId:E,role:D,disabled:O}=xm()||{},k=G(`${d}-input`,S?.input,c),A=v.useRef(!1),j=v.useRef(null),M=v.useRef(null);v.useImperativeHandle(t,()=>M.current);let N=e=>{let{value:t}=e.target;if(_&&j.current&&/[\r\n]/.test(j.current)){let e=j.current.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);t=t.replace(e,j.current)}j.current=null,p&&p(t,!0,A.current),n?.(e)},P=e=>{let{key:t}=e,{value:n}=e.currentTarget;t===`Enter`&&f===`tags`&&!T&&!A.current&&m&&m(n),r?.(e)},F=e=>{h?.(),i?.(e)},I=()=>{A.current=!0},R=e=>{if(A.current=!1,f!==`combobox`){let{value:t}=e.currentTarget;p?.(t,!0,!1)}},z=e=>{let{clipboardData:t}=e;j.current=t?.getData(`text`)||``},[B,V]=v.useState(void 0);C(()=>{let e=M.current;if(o&&e){e.style.width=`0px`;let t=e.scrollWidth;V(t),e.style.width=``}},[o,s]);let H={id:x,type:f===`combobox`?`text`:`search`,...u,ref:M,style:{...w?.input,...a,"--select-input-width":B},autoFocus:g,autoComplete:l||`off`,className:k,disabled:O,value:s||``,onChange:N,onKeyDown:P,onBlur:F,onPaste:z,onCompositionStart:I,onCompositionEnd:R,role:D||`combobox`,"aria-expanded":T||!1,"aria-haspopup":`listbox`,"aria-owns":T?`${x}_list`:void 0,"aria-autocomplete":`list`,"aria-controls":T?`${x}_list`:void 0,"aria-activedescendant":T?E:void 0};if(v.isValidElement(b)){let t=b.props||{},n={placeholder:e.placeholder||y,...H,...t};return Object.keys(t).forEach(e=>{let r=t[e];typeof r==`function`&&(n[e]=(...t)=>{r(...t),H[e]?.(...t)})}),n.ref=L(b.ref,H.ref),v.cloneElement(b,n)}let U=b;return v.createElement(U,H)});function Nm(e){let{prefixCls:t,placeholder:n,displayValues:r}=jm(),{classNames:i,styles:a}=xm(),{show:o=!0}=e;return r.length?null:v.createElement(`div`,{className:G(`${t}-placeholder`,i?.placeholder),style:{visibility:o?`visible`:`hidden`,...a?.placeholder}},n)}var Pm=v.createContext(null);function Fm(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function Im(e){return e!=null}function Lee(e){return!e&&e!==0}function Lm(e){return[`string`,`number`].includes(typeof e)}function Rm(e){let t;return e&&(Lm(e.title)?t=e.title.toString():Lm(e.label)&&(t=e.label.toString())),t}function zm(){return zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zm.apply(this,arguments)}var Ree=v.forwardRef(({inputProps:e},t)=>{let{prefixCls:n,searchValue:r,activeValue:i,displayValues:a,maxLength:o,mode:s,components:c}=jm(),{triggerOpen:l,title:u,showSearch:d,classNames:f,styles:p}=xm(),m=v.useContext(Pm),[h,g]=v.useState(!1),_=s===`combobox`,y=a[0],b=v.useMemo(()=>_&&i&&!h&&l?i:d?r:``,[_,i,h,l,r,d]),[x,S,C,w]=v.useMemo(()=>{let e,t,n;if(y&&m?.flattenOptions){let r=m.flattenOptions.find(e=>e.value===y.value);r?.data&&(e=r.data.className,t=r.data.style,n=Rm(r.data))}return y&&!n&&(n=Rm(y)),u!==void 0&&(n=u),[e,t,n,!!e||!!t]},[y,m?.flattenOptions,u]);v.useEffect(()=>{_&&g(!1)},[_,i]);let T=y&&y.label!==null&&y.label!==void 0&&String(y.label).trim()!==``,E=_&&c?.input?null:y?w?v.createElement(`div`,{className:G(`${n}-content-value`,x),style:{...b?{visibility:`hidden`}:{},...S},title:C},y.label):y.label:v.createElement(Nm,{show:!b});return v.createElement(`div`,{className:G(`${n}-content`,T&&`${n}-content-has-value`,b&&`${n}-content-has-search-value`,w&&`${n}-content-has-option-style`,f?.content),style:p?.content,title:w?void 0:C},E,v.createElement(Mm,zm({ref:t},e,{value:b,maxLength:s===`combobox`?o:void 0,onChange:t=>{g(!0),e.onChange?.(t)}})))}),Bm=void 0;function zee(e,t){let{prefixCls:n,invalidate:r,item:i,renderItem:a,responsive:o,responsiveDisabled:s,registerSize:c,itemKey:l,className:u,style:d,children:f,display:p,order:m,component:h=`div`,...g}=e,_=o&&!p;function y(e){c(l,e)}v.useEffect(()=>()=>{y(null)},[]);let b=a&&i!==Bm?a(i,{index:m}):f,x;r||(x={opacity:+!_,height:_?0:Bm,overflowY:_?`hidden`:Bm,order:o?m:Bm,pointerEvents:_?`none`:Bm,position:_?`absolute`:Bm});let S={};_&&(S[`aria-hidden`]=!0);let C=v.createElement(h,Jd({className:G(!r&&n,u),style:{...x,...d}},S,g,{ref:t}),b);return o&&(C=v.createElement(Le,{onResize:({offsetWidth:e})=>{y(e)},disabled:s},C)),C}var Vm=v.forwardRef(zee);function Bee(e){if(typeof MessageChannel>`u`)Xe(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function Vee(){let e=v.useRef(null);return t=>{e.current||(e.current=[],Bee(()=>{(0,al.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function Hm(e,t){let[n,r]=v.useState(t);return[n,b(t=>{e(()=>{r(t)})})]}var Um=v.createContext(null),Hee=v.forwardRef((e,t)=>{let n=v.useContext(Um);if(!n){let{component:n=`div`,...r}=e;return v.createElement(n,Jd({},r,{ref:t}))}let{className:r,...i}=n,{className:a,...o}=e;return v.createElement(Um.Provider,{value:null},v.createElement(Vm,Jd({ref:t,className:G(r,a)},i,o)))}),Wm=`responsive`,Gm=`invalidate`;function Uee(e){return`+ ${e.length} ...`}function Wee(e,t){let{prefixCls:n=`rc-overflow`,data:r=[],renderItem:i,renderRawItem:a,itemKey:o,itemWidth:s=10,ssr:c,style:l,className:u,maxCount:d,renderRest:f,renderRawRest:p,prefix:m,suffix:h,component:g=`div`,itemComponent:_,onVisibleChange:y,...b}=e,x=c===`full`,S=Vee(),[w,T]=Hm(S,null),E=w||0,[D,O]=Hm(S,new Map),[k,A]=Hm(S,0),[j,M]=Hm(S,0),[N,P]=Hm(S,0),[F,I]=Hm(S,0),[L,R]=(0,v.useState)(null),[z,B]=(0,v.useState)(null),V=v.useMemo(()=>z===null&&x?2**53-1:z||0,[z,w]),[H,U]=(0,v.useState)(!1),ee=`${n}-item`,te=Math.max(k,j),W=d===Wm,ne=r.length&&W,re=d===Gm,ie=ne||typeof d==`number`&&r.length>d,ae=(0,v.useMemo)(()=>{let e=r;return ne?e=w===null&&x?r:r.slice(0,Math.min(r.length,E/s)):typeof d==`number`&&(e=r.slice(0,d)),e},[r,s,w,d,ne]),oe=(0,v.useMemo)(()=>ne?r.slice(V+1):r.slice(ae.length),[r,ae,ne,V]),se=(0,v.useCallback)((e,t)=>typeof o==`function`?o(e):(o&&e?.[o])??t,[o]),ce=(0,v.useCallback)(i||(e=>e),[i]);function le(e,t,n){z===e&&(t===void 0||t===L)||(B(e),n||(U(e<r.length-1),y?.(e)),t!==void 0&&R(t))}function ue(e,t){T(t.clientWidth)}function de(e,t){O(n=>{let r=new Map(n);return t===null?r.delete(e):r.set(e,t),r})}function fe(e,t){M(t),A(j)}function pe(e,t){P(t)}function me(e,t){I(t)}function he(e){return D.get(se(ae[e],e))}C(()=>{if(E&&typeof te==`number`&&ae){let e=N+F,t=ae.length,n=t-1;if(!t){le(0,null);return}for(let r=0;r<t;r+=1){let t=he(r);if(x&&(t||=0),t===void 0){le(r-1,void 0,!0);break}if(e+=t,n===0&&e<=E||r===n-1&&e+he(n)<=E){le(n,null);break}else if(e+te>E){le(r-1,e-t-F+j);break}}h&&he(0)+F>E&&R(null)}},[E,D,j,N,F,se,ae]);let ge=H&&!!oe.length,_e={};L!==null&&ne&&(_e={position:`absolute`,top:0,insetInlineStart:L});let ve={prefixCls:ee,responsive:ne,component:_,invalidate:re},ye=a?(e,t)=>{let n=se(e,t);return v.createElement(Um.Provider,{key:n,value:{...ve,order:t,item:e,itemKey:n,registerSize:de,display:t<=V}},a(e,t))}:(e,t)=>{let n=se(e,t);return v.createElement(Vm,Jd({},ve,{order:t,key:n,item:e,renderItem:ce,itemKey:n,registerSize:de,display:t<=V}))},be={order:ge?V:2**53-1,className:`${ee}-rest`,registerSize:fe,display:ge},xe=f||Uee,Se=p?v.createElement(Um.Provider,{value:{...ve,...be}},p(oe)):v.createElement(Vm,Jd({},ve,be),typeof xe==`function`?xe(oe):xe),Ce=v.createElement(g,Jd({className:G(!re&&n,u),style:l,ref:t},b),m&&v.createElement(Vm,Jd({},ve,{responsive:W,responsiveDisabled:!ne,order:-1,className:`${ee}-prefix`,registerSize:pe,display:!0}),m),ae.map(ye),ie?Se:null,h&&v.createElement(Vm,Jd({},ve,{responsive:W,responsiveDisabled:!ne,order:V,className:`${ee}-suffix`,registerSize:me,display:!0,style:_e}),h));return W?v.createElement(Le,{onResize:ue,disabled:!ne},Ce):Ce}var Km=v.forwardRef(Wee);Km.Item=Hee,Km.RESPONSIVE=Wm,Km.INVALIDATE=Gm;var qm=Km,Jm=e=>{let{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:a,onMouseDown:o,onClick:s}=e,c=typeof r==`function`?r(i):r;return v.createElement(`span`,{className:t,onMouseDown:e=>{e.preventDefault(),o?.(e)},style:{userSelect:`none`,WebkitUserSelect:`none`,...n},unselectable:`on`,onClick:s,"aria-hidden":!0},c===void 0?v.createElement(`span`,{className:G(t.split(/\s+/).map(e=>`${e}-icon`))},a):c)};function Ym(){return Ym=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ym.apply(this,arguments)}function Gee(e){return e.key??e.value}var Xm=e=>{e.preventDefault(),e.stopPropagation()},Kee=v.forwardRef(function({inputProps:e},t){let{prefixCls:n,displayValues:r,searchValue:i,mode:a,onSelectorRemove:o,removeIcon:s}=jm(),{disabled:c,showSearch:l,triggerOpen:u,rawOpen:d,toggleOpen:f,autoClearSearchValue:p,tagRender:m,maxTagPlaceholder:h,maxTagTextLength:g,maxTagCount:_,classNames:y,styles:b}=xm(),x=`${n}-selection-item`,S=i;!d&&a===`multiple`&&p!==!1&&(S=``);let C=l&&S||``,w=l&&!c,T=s??`×`,E=h??(e=>`+ ${e.length} ...`),D=m,O=e=>{f(e)},k=e=>{o?.(e)},A=(e,t,n,r,i)=>v.createElement(`span`,{title:Rm(e),className:G(x,{[`${x}-disabled`]:n},y?.item),style:b?.item},v.createElement(`span`,{className:G(`${x}-content`,y?.itemContent),style:b?.itemContent},t),r&&v.createElement(Jm,{className:G(`${x}-remove`,y?.itemRemove),style:b?.itemRemove,onMouseDown:Xm,onClick:i,customizeIcon:T},`×`)),j=(e,t,n,r,i,a,o)=>v.createElement(`span`,{onMouseDown:e=>{Xm(e),O(!u)}},D({label:t,value:e,index:o?.index,disabled:n,closable:r,onClose:i,isMaxTag:!!a}));return v.createElement(qm,{prefixCls:`${n}-content`,className:y?.content,style:b?.content,prefix:!r.length&&!C&&v.createElement(Nm,null),data:r,renderItem:(e,t)=>{let{disabled:n,label:r,value:i}=e,a=!c&&!n,o=r;if(typeof g==`number`&&(typeof r==`string`||typeof r==`number`)){let e=String(o);e.length>g&&(o=`${e.slice(0,g)}...`)}let s=t=>{t&&t.stopPropagation(),k(e)};return typeof D==`function`?j(i,o,n,a,s,void 0,t):A(e,o,n,a,s)},renderRest:e=>{if(!r.length)return null;let t=typeof E==`function`?E(e):E;return typeof D==`function`?j(void 0,t,!1,!1,void 0,!0):A({title:t},t,!1)},suffix:v.createElement(Mm,Ym({ref:t,disabled:c,readOnly:!w},e,{value:C||``,syncWidth:!0})),itemKey:Gee,maxCount:_})}),qee=v.forwardRef(function(e,t){let{multiple:n,onInputKeyDown:r,tabIndex:i}=jm(),a=xm(),{showSearch:o}=a,s={...Ts(a,{aria:!0}),onKeyDown:r,readOnly:!o,tabIndex:i};return n?v.createElement(Kee,{ref:t,inputProps:s}):v.createElement(Ree,{ref:t,inputProps:s})});function Zm(e){return e&&![uu.ESC,uu.SHIFT,uu.BACKSPACE,uu.TAB,uu.WIN_KEY,uu.ALT,uu.META,uu.WIN_KEY_RIGHT,uu.CTRL,uu.SEMICOLON,uu.EQUALS,uu.CAPS_LOCK,uu.CONTEXT_MENU,uu.UP,uu.LEFT,uu.RIGHT,uu.F1,uu.F2,uu.F3,uu.F4,uu.F5,uu.F6,uu.F7,uu.F8,uu.F9,uu.F10,uu.F11,uu.F12].includes(e)}function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qm.apply(this,arguments)}var $m=[`value`,`onChange`,`removeIcon`,`placeholder`,`maxTagCount`,`maxTagTextLength`,`maxTagPlaceholder`,`choiceTransitionName`,`onInputKeyDown`,`onPopupScroll`,`tabIndex`,`activeValue`,`onSelectorRemove`,`focused`],eh=v.forwardRef(function(e,t){let{prefixCls:n,className:r,style:i,prefix:a,suffix:o,clearIcon:s,children:c,multiple:l,displayValues:u,placeholder:d,mode:f,searchValue:p,onSearch:m,onSearchSubmit:h,onInputBlur:g,maxLength:_,autoFocus:y,onMouseDown:x,onClearMouseDown:S,onInputKeyDown:C,onSelectorRemove:w,tokenWithEnter:T,components:E,...D}=e,{triggerOpen:O,toggleOpen:k,showSearch:A,disabled:j,loading:M,classNames:N,styles:P}=xm(),F=v.useRef(null),I=v.useRef(null),R=b(e=>{let{which:t}=e,n=I.current instanceof HTMLTextAreaElement;!n&&O&&(t===uu.UP||t===uu.DOWN)&&e.preventDefault(),C&&C(e),!(n&&!O&&~[uu.UP,uu.DOWN,uu.LEFT,uu.RIGHT].indexOf(t))&&!(e.ctrlKey||e.altKey||e.metaKey)&&Zm(t)&&k(!0)});v.useImperativeHandle(t,()=>({focus:e=>{(I.current||F.current).focus?.(e)},blur:()=>{(I.current||F.current).blur?.()},nativeElement:Se(F.current)}));let z=b(e=>{if(!j){let t=Se(I.current);e.nativeEvent._ori_target=t;let n=t===e.target||t?.contains(e.target);t&&!n&&e.preventDefault();let r=O&&!l&&(f===`combobox`||A)||O&&l&&n;e.nativeEvent._select_lazy?O&&k(!1):(I.current?.focus(),r||k())}x?.(e)}),{root:B}=E,V=he(D,$m),H=Ts(V,{aria:!0}),U=Object.keys(H),ee={...e,onInputKeyDown:R};if(B){let e=B.props||{},t={...e,...V};return Object.keys(e).forEach(n=>{let r=e[n],i=V[n];typeof r==`function`&&typeof i==`function`&&(t[n]=(...e)=>{i(...e),r(...e)})}),v.isValidElement(B)?v.cloneElement(B,{...t,ref:L(B.ref,F)}):v.createElement(B,Qm({},t,{ref:F}))}return v.createElement(Am.Provider,{value:ee},v.createElement(`div`,Qm({},he(V,U),{ref:F,className:r,style:i,onMouseDown:z}),v.createElement(km,{className:G(`${n}-prefix`,N?.prefix),style:P?.prefix},a),v.createElement(qee,{ref:I}),v.createElement(km,{className:G(`${n}-suffix`,{[`${n}-suffix-loading`]:M},N?.suffix),style:P?.suffix},o),s&&v.createElement(km,{className:G(`${n}-clear`,N?.clear),style:P?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,S?.(e)}},s),c))});function th(e,t,n){return v.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nh.apply(this,arguments)}var rh=e=>e===`tags`||e===`multiple`,ih=v.forwardRef((e,t)=>{let{id:n,prefixCls:r,className:i,styles:a,classNames:o,showSearch:s,tagRender:c,showScrollBar:l=`optional`,direction:u,omitDomProps:d,displayValues:f,onDisplayValuesChange:p,emptyOptions:m,notFoundContent:h=`Not Found`,onClear:g,maxCount:_,placeholder:y,mode:x,disabled:S,loading:C,getInputElement:w,getRawInputElement:T,open:E,defaultOpen:D,onPopupVisibleChange:O,activeValue:k,onActiveValueChange:A,activeDescendantId:j,searchValue:M,autoClearSearchValue:N,onSearch:P,onSearchSplit:F,tokenSeparators:I,allowClear:L,prefix:R,suffix:z,suffixIcon:B,clearIcon:V,OptionList:H,animation:U,transitionName:ee,popupStyle:te,popupClassName:W,popupMatchSelectWidth:ne,popupRender:re,popupAlign:ie,placement:ae,builtinPlacements:oe,getPopupContainer:se,showAction:ce=[],onFocus:le,onBlur:ue,onKeyUp:de,onKeyDown:fe,onMouseDown:pe,components:me,...he}=e,ge=rh(x),_e=v.useRef(null),ve=v.useRef(null),ye=v.useRef(null),[be,xe]=v.useState(!1);v.useImperativeHandle(t,()=>({focus:_e.current?.focus,blur:_e.current?.blur,scrollTo:e=>ye.current?.scrollTo(e),nativeElement:Se(_e.current)}));let Ce=th(me,w,T),we=v.useMemo(()=>{if(x!==`combobox`)return M;let e=f[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``},[M,x,f]),Te=x===`combobox`&&typeof w==`function`&&w()||null,Ee=!h&&m,[De,Oe,ke,Ae]=Iee(D||!1,E,O,e=>S||Ee?!1:e),je=v.useMemo(()=>(I||[]).some(e=>[`
|
||
`,`\r
|
||
`].includes(e)),[I]),Me=(e,t,n)=>{if(ge&&Tm(_)&&f.length>=_)return;let r=!0,i=e;A?.(null);let a=Nee(e,I,Tm(_)?_-f.length:void 0),o=n?null:a;return x!==`combobox`&&o&&(i=``,F?.(o),ke(!1),r=!1),P&&we!==i&&P(i,{source:t?`typing`:`effect`}),e&&t&&r&&ke(!0),r},Ne=e=>{!e||!e.trim()||P(e,{source:`submit`})};v.useEffect(()=>{!De&&!ge&&x!==`combobox`&&Me(``,!1,!1)},[De]),v.useEffect(()=>{S&&(ke(!1),xe(!1))},[S,Oe]);let[Pe,Fe]=Oee(),Ie=v.useRef(!1),Le=e=>{let t=Pe(),{key:n}=e,r=n===`Enter`,i=n===` `;if(r||i){let t=x===`combobox`;(i&&!(t||s)||r&&!t)&&e.preventDefault(),Oe||ke(!0)}if(Fe(!!we),n===`Backspace`&&!t&&ge&&!we&&f.length){let e=[...f],t=null;for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r.disabled){e.splice(n,1),t=r;break}}t&&p(e,{type:`remove`,values:[t]})}Oe&&(!r||!Ie.current)&&!i&&(r&&(Ie.current=!0),ye.current?.onKeyDown(e)),fe?.(e)},Re=(e,...t)=>{Oe&&ye.current?.onKeyUp(e,...t),e.key===`Enter`&&(Ie.current=!1),de?.(e,...t)},ze=b(e=>{p(f.filter(t=>t!==e),{type:`remove`,values:[e]})}),Be=()=>{Ie.current=!1},Ve=()=>[Se(_e.current),ve.current?.getPopupElement()];kee(Ve,Oe,ke,!!Ce.root);let He=v.useRef(!1),Ue=e=>{xe(!0),S||(ce.includes(`focus`)&&ke(!0),le?.(e))},We=()=>{Oe&&!He.current&&ke(!1,{cancelFun:()=>Sm(Ve(),document.activeElement)})},Ge=e=>{xe(!1),we&&(x===`tags`?P(we,{source:`submit`}):x===`multiple`&&P(``,{source:`blur`})),We(),S||ue?.(e)},Ke=(e,...t)=>{let{target:n}=e;(ve.current?.getPopupElement())?.contains(n)&&ke&&ke(!0),pe?.(e,...t),He.current=!0,Om(()=>{He.current=!1})},[,qe]=v.useState({});function Je(){qe({})}let Ye;Ce.root&&(Ye=e=>{ke(e)});let Xe=v.useMemo(()=>({...e,notFoundContent:h,open:Oe,triggerOpen:Oe,rawOpen:De,id:n,showSearch:s,multiple:ge,toggleOpen:ke,showScrollBar:l,styles:a,classNames:o,lockOptions:Ae}),[e,h,ke,n,s,ge,Oe,De,l,a,o,Ae]),Ze=v.useMemo(()=>{let e=z??B;return typeof e==`function`?e({searchValue:we,open:Oe,focused:be,showSearch:s,loading:C}):e},[z,B,we,Oe,be,s,C]),Qe=()=>{g?.(),_e.current?.focus(),p([],{type:`clear`,values:f}),Me(``,!1,!1)},{allowClear:$e,clearIcon:et}=Dee(r,f,L,V,S,we,x),tt=v.createElement(H,{ref:ye}),nt=G(r,i,{[`${r}-focused`]:be,[`${r}-multiple`]:ge,[`${r}-single`]:!ge,[`${r}-allow-clear`]:$e,[`${r}-show-arrow`]:Ze!=null,[`${r}-disabled`]:S,[`${r}-loading`]:C,[`${r}-open`]:Oe,[`${r}-customize-input`]:Te,[`${r}-show-search`]:s}),rt=v.createElement(eh,nh({},he,{ref:_e,prefixCls:r,className:nt,focused:be,prefix:R,suffix:Ze,clearIcon:et,multiple:ge,mode:x,displayValues:f,placeholder:y,searchValue:we,activeValue:k,onSearch:Me,onSearchSubmit:Ne,onInputBlur:Be,onFocus:Ue,onBlur:Ge,onClearMouseDown:Qe,onKeyDown:Le,onKeyUp:Re,onSelectorRemove:ze,tokenWithEnter:je,onMouseDown:Ke,components:Ce}));return rt=v.createElement(jee,{ref:ve,disabled:S,prefixCls:r,visible:Oe,popupElement:tt,animation:U,transitionName:ee,popupStyle:te,popupClassName:W,direction:u,popupMatchSelectWidth:ne,popupRender:re,popupAlign:ie,placement:ae,builtinPlacements:oe,getPopupContainer:se,empty:m,onPopupVisibleChange:Ye,onPopupMouseEnter:Je,onPopupMouseDown:Ke,onPopupBlur:We},rt),v.createElement(bm.Provider,{value:Xe},v.createElement(Pee,{visible:be&&!Oe,values:f}),rt)}),ah=()=>null;ah.isSelectOptGroup=!0;var oh=()=>null;oh.isSelectOption=!0;var sh=v.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:a,innerProps:o,rtl:s,extra:c},l)=>{let u={},d={display:`flex`,flexDirection:`column`};return t!==void 0&&(u={height:e,position:`relative`,overflow:`hidden`},d={...d,transform:`translateY(${t}px)`,[s?`marginRight`:`marginLeft`]:-n,position:`absolute`,left:0,right:0,top:0}),v.createElement(`div`,{style:u},v.createElement(Le,{onResize:({offsetHeight:e})=>{e&&a&&a()}},v.createElement(`div`,Jd({style:d,className:G({[`${i}-holder-inner`]:i}),ref:l},o),r,c)))});sh.displayName=`Filler`;function Jee({children:e,setRef:t}){let n=v.useCallback(e=>{t(e)},[]);return v.cloneElement(e,{ref:n})}function Yee(e,t,n,r,i,a,o,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{let c=o(e,t+n,{style:{width:r},offsetX:i}),l=s(e);return v.createElement(Jee,{key:l,setRef:t=>a(e,t)},c)})}function Xee(e,t,n){let r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r<i?(a=e,o=t):(a=t,o=e);let s={__EMPTY_ITEM__:!0};function c(e){return e===void 0?s:n(e)}let l=null,u=Math.abs(r-i)!==1;for(let e=0;e<o.length;e+=1){let t=c(a[e]);if(t!==c(o[e])){l=e,u||=t!==c(o[e+1]);break}}return l===null?null:{index:l,multiple:u}}function Zee(e,t,n){let[r,i]=v.useState(e),[a,o]=v.useState(null);return v.useEffect(()=>{let a=Xee(r||[],e||[],t);a?.index!==void 0&&(n?.(a.index),o(e[a.index])),i(e)},[e]),[a]}var ch=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),lh=((e,t,n,r)=>{let i=(0,v.useRef)(!1),a=(0,v.useRef)(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(()=>{i.current=!1},50)}let s=(0,v.useRef)({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,(e,t,n=!1)=>{let r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):(!r||i.current)&&o(),!i.current&&r}});function Qee(e,t,n,r,i,a,o){let s=(0,v.useRef)(0),c=(0,v.useRef)(null),l=(0,v.useRef)(null),u=(0,v.useRef)(!1),d=lh(t,n,r,i);function f(e,t){if(Xe.cancel(c.current),d(!1,t))return;let n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,ch||n.preventDefault(),c.current=Xe(()=>{let e=u.current?10:1;o(s.current*e,!1),s.current=0})}function p(e,t){o(t,!0),ch||e.preventDefault()}let m=(0,v.useRef)(null),h=(0,v.useRef)(null);function g(t){if(!e)return;Xe.cancel(h.current),h.current=Xe(()=>{m.current=null},2);let{deltaX:n,deltaY:r,shiftKey:i}=t,o=n,s=r;(m.current===`sx`||!m.current&&i&&r&&!n)&&(o=r,s=0,m.current=`sx`);let c=Math.abs(o),l=Math.abs(s);m.current===null&&(m.current=a&&c>l?`x`:`y`),m.current===`y`?f(t,s):p(t,o)}function _(t){e&&(u.current=t.detail===l.current)}return[g,_]}function $ee(e,t,n,r){let[i,a]=v.useMemo(()=>[new Map,[]],[e,n.id,r]);return(o,s=o)=>{let c=i.get(o),l=i.get(s);if(c===void 0||l===void 0){let u=e.length;for(let d=a.length;d<u;d+=1){let u=e[d],f=t(u);i.set(f,d);let p=n.get(f)??r;if(a[d]=(a[d-1]||0)+p,f===o&&(c=d),f===s&&(l=d),c!==void 0&&l!==void 0)break}}return{top:a[c-1]||0,bottom:a[l]}}}var ete=class{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}get(e){return this.maps[e]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}};function uh(e){let t=parseFloat(e);return isNaN(t)?0:t}function tte(e,t,n){let[r,i]=v.useState(0),a=(0,v.useRef)(new Map),o=(0,v.useRef)(new ete),s=(0,v.useRef)(0);function c(){s.current+=1}function l(e=!1){c();let t=()=>{let e=!1;a.current.forEach((t,n)=>{if(t&&t.offsetParent){let{offsetHeight:r}=t,{marginTop:i,marginBottom:a}=getComputedStyle(t),s=uh(i),c=uh(a),l=r+s+c;o.current.get(n)!==l&&(o.current.set(n,l),e=!0)}}),e&&i(e=>e+1)};if(e)t();else{s.current+=1;let e=s.current;Promise.resolve().then(()=>{e===s.current&&t()})}}function u(r,i){let o=e(r),s=a.current.get(o);i?(a.current.set(o,i),l()):a.current.delete(o),!s!=!i&&(i?t?.(r):n?.(r))}return(0,v.useEffect)(()=>c,[]),[u,l,o.current,r]}var dh=14/15;function nte(e,t,n){let r=(0,v.useRef)(!1),i=(0,v.useRef)(0),a=(0,v.useRef)(0),o=(0,v.useRef)(null),s=(0,v.useRef)(null),c,l=e=>{if(r.current){let t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=i.current-t,c=a.current-r,l=Math.abs(o)>Math.abs(c);l?i.current=t:a.current=r;let u=n(l,l?o:c,!1,e);u&&e.preventDefault(),clearInterval(s.current),u&&(s.current=setInterval(()=>{l?o*=dh:c*=dh;let e=Math.floor(l?o:c);(!n(l,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=()=>{r.current=!1,c()},d=e=>{c(),e.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener(`touchmove`,l,{passive:!1}),o.current.addEventListener(`touchend`,u,{passive:!0}))};c=()=>{o.current&&(o.current.removeEventListener(`touchmove`,l),o.current.removeEventListener(`touchend`,u))},C(()=>(e&&t.current.addEventListener(`touchstart`,d,{passive:!0}),()=>{t.current?.removeEventListener(`touchstart`,d),c(),clearInterval(s.current)}),[e])}function fh(e){return Math.floor(e**.5)}function ph(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function rte(e,t,n){v.useEffect(()=>{let r=t.current;if(e&&r){let e=!1,t,i,a=()=>{Xe.cancel(t)},o=()=>{a(),t=Xe(()=>{n(i),o()})},s=()=>{e=!1,a()},c=t=>{if(t.target.draggable||t.button!==0)return;let n=t;n._virtualHandled||(n._virtualHandled=!0,e=!0)},l=t=>{if(e){let e=ph(t,!1),{top:n,bottom:s}=r.getBoundingClientRect();e<=n?(i=-fh(n-e),o()):e>=s?(i=fh(e-s),o()):a()}};return r.addEventListener(`mousedown`,c),r.ownerDocument.addEventListener(`mouseup`,s),r.ownerDocument.addEventListener(`mousemove`,l),r.ownerDocument.addEventListener(`dragend`,s),()=>{r.removeEventListener(`mousedown`,c),r.ownerDocument.removeEventListener(`mouseup`,s),r.ownerDocument.removeEventListener(`mousemove`,l),r.ownerDocument.removeEventListener(`dragend`,s),a()}}},[e])}var ite=10;function ate(e,t,n,r,i,a,o,s){let c=v.useRef(),[l,u]=v.useState(null);return C(()=>{if(l&&l.times<ite){if(!e.current){u(e=>({...e}));return}a();let{targetAlign:s,originAlign:c,index:d,offset:f}=l,p=e.current.clientHeight,m=!1,h=s,g=null;if(p){let a=s||c,u=0,_=0,v=0,y=Math.min(t.length-1,d);for(let e=0;e<=y;e+=1){let a=i(t[e]);_=u;let o=n.get(a);v=_+(o===void 0?r:o),u=v}let b=a===`top`?f:p-f;for(let e=y;e>=0;--e){let r=i(t[e]),a=n.get(r);if(a===void 0){m=!0;break}if(b-=a,b<=0)break}switch(a){case`top`:g=_-f;break;case`bottom`:g=v-p+f;break;default:{let{scrollTop:t}=e.current,n=t+p;_<t?h=`top`:v>n&&(h=`bottom`)}}g!==null&&o(g),g!==l.lastTop&&(m=!0)}m&&u({...l,times:l.times+1,targetAlign:h,lastTop:g})}},[l,e.current]),e=>{if(e==null){s();return}if(Xe.cancel(c.current),typeof e==`number`)o(e);else if(e&&typeof e==`object`){let n,{align:r}=e;`index`in e?{index:n}=e:n=t.findIndex(t=>i(t)===e.key);let{offset:a=0}=e;u({times:0,index:n,offset:a,originAlign:r})}}}var mh=v.forwardRef((e,t)=>{let{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:a,onStartMove:o,onStopMove:s,onScroll:c,horizontal:l,spinSize:u,containerSize:d,style:f,thumbStyle:p,showScrollBar:m}=e,[h,g]=v.useState(!1),[_,y]=v.useState(null),[b,x]=v.useState(null),S=!r,C=v.useRef(),w=v.useRef(),[T,E]=v.useState(m),D=v.useRef(),O=()=>{m===!0||m===!1||(clearTimeout(D.current),E(!0),D.current=setTimeout(()=>{E(!1)},3e3))},k=a-d||0,A=d-u||0,j=v.useMemo(()=>i===0||k===0?0:i/k*A,[i,k,A]),M=e=>{e.stopPropagation(),e.preventDefault()},N=v.useRef({top:j,dragging:h,pageY:_,startTop:b});N.current={top:j,dragging:h,pageY:_,startTop:b};let P=e=>{g(!0),y(ph(e,l)),x(N.current.top),o(),e.stopPropagation(),e.preventDefault()};v.useEffect(()=>{let e=e=>{e.preventDefault()},t=C.current,n=w.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,P,{passive:!1}),()=>{t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,P)}},[]);let F=v.useRef();F.current=k;let I=v.useRef();I.current=A,v.useEffect(()=>{if(h){let e,t=t=>{let{dragging:n,pageY:r,startTop:i}=N.current;Xe.cancel(e);let a=C.current.getBoundingClientRect(),o=d/(l?a.width:a.height);if(n){let n=(ph(t,l)-r)*o,a=i;!S&&l?a-=n:a+=n;let s=F.current,u=I.current,d=u?a/u:0,f=Math.ceil(d*s);f=Math.max(f,0),f=Math.min(f,s),e=Xe(()=>{c(f,l)})}},n=()=>{g(!1),s()};return window.addEventListener(`mousemove`,t,{passive:!0}),window.addEventListener(`touchmove`,t,{passive:!0}),window.addEventListener(`mouseup`,n,{passive:!0}),window.addEventListener(`touchend`,n,{passive:!0}),()=>{window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),Xe.cancel(e)}}},[h]),v.useEffect(()=>(O(),()=>{clearTimeout(D.current)}),[i]),v.useImperativeHandle(t,()=>({delayHidden:O}));let L=`${n}-scrollbar`,R={position:`absolute`,visibility:T?null:`hidden`},z={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return l?(Object.assign(R,{height:8,left:0,right:0,bottom:0}),Object.assign(z,{height:`100%`,width:u,[S?`left`:`right`]:j})):(Object.assign(R,{width:8,top:0,bottom:0,[S?`right`:`left`]:0}),Object.assign(z,{width:`100%`,height:u,top:j})),v.createElement(`div`,{ref:C,className:G(L,{[`${L}-horizontal`]:l,[`${L}-vertical`]:!l,[`${L}-visible`]:T}),style:{...R,...f},onMouseDown:M,onMouseMove:O},v.createElement(`div`,{ref:w,className:G(`${L}-thumb`,{[`${L}-thumb-moving`]:h}),style:{...z,...p},onMouseDown:P}))}),ote=20;function hh(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,ote),Math.floor(n)}var ste=[],cte={overflowY:`auto`,overflowAnchor:`none`};function lte(e,t){let{prefixCls:n=`rc-virtual-list`,className:r,height:i,itemHeight:a,fullHeight:o=!0,style:s,data:c,children:l,itemKey:u,virtual:d,direction:f,scrollWidth:p,component:m=`div`,onScroll:h,onVirtualScroll:g,onVisibleChange:_,innerProps:y,extraRender:x,styles:S,showScrollBar:w=`optional`,...T}=e,E=v.useCallback(e=>typeof u==`function`?u(e):e?.[u],[u]),[D,O,k,A]=tte(E,null,null),j=!!(d!==!1&&i&&a),M=v.useMemo(()=>Object.values(k.maps).reduce((e,t)=>e+t,0),[k.id,k.maps]),N=j&&c&&(Math.max(a*c.length,M)>i||!!p),P=f===`rtl`,F=G(n,{[`${n}-rtl`]:P},r),I=c||ste,L=(0,v.useRef)(),R=(0,v.useRef)(),z=(0,v.useRef)(),[B,V]=(0,v.useState)(0),[H,U]=(0,v.useState)(0),[ee,te]=(0,v.useState)(!1),W=()=>{te(!0)},ne=()=>{te(!1)},re={getKey:E};function ie(e){V(t=>{let n;n=typeof e==`function`?e(t):e;let r=xe(n);return L.current.scrollTop=r,r})}let ae=(0,v.useRef)({start:0,end:I.length}),oe=(0,v.useRef)(),[se]=Zee(I,E);oe.current=se;let{scrollHeight:ce,start:le,end:ue,offset:de}=v.useMemo(()=>{if(!j)return{scrollHeight:void 0,start:0,end:I.length-1,offset:void 0};if(!N)return{scrollHeight:R.current?.offsetHeight||0,start:0,end:I.length-1,offset:void 0};let e=0,t,n,r,o=I.length;for(let s=0;s<o;s+=1){let o=I[s],c=E(o),l=k.get(c),u=e+(l===void 0?a:l);u>=B&&t===void 0&&(t=s,n=e),u>B+i&&r===void 0&&(r=s),e=u}return t===void 0&&(t=0,n=0,r=Math.ceil(i/a)),r===void 0&&(r=I.length-1),r=Math.min(r+1,I.length-1),{scrollHeight:e,start:t,end:r,offset:n}},[N,j,B,I,A,i]);ae.current.start=le,ae.current.end=ue,v.useLayoutEffect(()=>{let e=k.getRecord();if(e.size===1){let t=Array.from(e.keys())[0],n=e.get(t),r=I[le];if(r&&n===void 0&&E(r)===t){let e=k.get(t)-a;ie(t=>t+e)}}k.resetRecord()},[ce]);let[fe,pe]=v.useState({width:0,height:i}),me=e=>{pe({width:e.offsetWidth,height:e.offsetHeight})},he=(0,v.useRef)(),ge=(0,v.useRef)(),_e=v.useMemo(()=>hh(fe.width,p),[fe.width,p]),ve=v.useMemo(()=>hh(fe.height,ce),[fe.height,ce]),ye=ce-i,be=(0,v.useRef)(ye);be.current=ye;function xe(e){let t=e;return Number.isNaN(be.current)||(t=Math.min(t,be.current)),t=Math.max(t,0),t}let Se=B<=0,Ce=B>=ye,we=H<=0,Te=H>=p,Ee=lh(Se,Ce,we,Te),De=()=>({x:P?-H:H,y:B}),Oe=(0,v.useRef)(De()),ke=b(e=>{if(g){let t={...De(),...e};(Oe.current.x!==t.x||Oe.current.y!==t.y)&&(g(t),Oe.current=t)}});function Ae(e,t){let n=e;t?((0,al.flushSync)(()=>{U(n)}),ke()):ie(n)}function je(e){let{scrollTop:t}=e.currentTarget;t!==B&&ie(t),h?.(e),ke()}let Me=e=>{let t=e,n=p?p-fe.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},Ne=b((e,t)=>{t?((0,al.flushSync)(()=>{U(t=>Me(t+(P?-e:e)))}),ke()):ie(t=>t+e)}),[Pe,Fe]=Qee(j,Se,Ce,we,Te,!!p,Ne);nte(j,L,(e,t,n,r)=>{let i=r;return Ee(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),Pe({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),rte(N,L,e=>{ie(t=>t+e)}),C(()=>{function e(e){let t=Se&&e.detail<0,n=Ce&&e.detail>0;j&&!t&&!n&&e.preventDefault()}let t=L.current;return t.addEventListener(`wheel`,Pe,{passive:!1}),t.addEventListener(`DOMMouseScroll`,Fe,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),()=>{t.removeEventListener(`wheel`,Pe),t.removeEventListener(`DOMMouseScroll`,Fe),t.removeEventListener(`MozMousePixelScroll`,e)}},[j,Se,Ce]),C(()=>{if(p){let e=Me(H);U(e),ke({x:e})}},[fe.width,p]);let Ie=()=>{he.current?.delayHidden(),ge.current?.delayHidden()},Re=ate(L,I,k,a,E,()=>O(!0),ie,Ie);v.useImperativeHandle(t,()=>({nativeElement:z.current,getScrollInfo:De,scrollTo:e=>{function t(e){return e&&typeof e==`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&U(Me(e.left)),Re(e.top)):Re(e)}})),C(()=>{_&&_(I.slice(le,ue+1),I)},[le,ue,I]);let ze=$ee(I,E,k,a),Be=x?.({start:le,end:ue,virtual:N,offsetX:H,offsetY:de,rtl:P,getSize:ze}),Ve=Yee(I,le,ue,p,H,D,l,re),He=null;i&&(He={[o?`height`:`maxHeight`]:i,...cte},j&&(He.overflowY=`hidden`,p&&(He.overflowX=`hidden`),ee&&(He.pointerEvents=`none`)));let Ue={};return P&&(Ue.dir=`rtl`),v.createElement(`div`,Jd({ref:z,style:{...s,position:`relative`},className:F},Ue,T),v.createElement(Le,{onResize:me},v.createElement(m,{className:`${n}-holder`,style:He,ref:L,onScroll:je,onMouseEnter:Ie},v.createElement(sh,{prefixCls:n,height:ce,offsetX:H,offsetY:de,scrollWidth:p,onInnerResize:O,ref:R,innerProps:y,rtl:P,extra:Be},Ve))),N&&ce>i&&v.createElement(mh,{ref:he,prefixCls:n,scrollOffset:B,scrollRange:ce,rtl:P,onScroll:Ae,onStartMove:W,onStopMove:ne,spinSize:ve,containerSize:fe.height,style:S?.verticalScrollBar,thumbStyle:S?.verticalScrollBarThumb,showScrollBar:w}),N&&p>fe.width&&v.createElement(mh,{ref:ge,prefixCls:n,scrollOffset:H,scrollRange:p,rtl:P,onScroll:Ae,onStartMove:W,onStopMove:ne,spinSize:_e,containerSize:fe.width,horizontal:!0,style:S?.horizontalScrollBar,thumbStyle:S?.horizontalScrollBarThumb,showScrollBar:w}))}var gh=v.forwardRef(lte);gh.displayName=`List`;var _h=gh;function ute(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vh.apply(this,arguments)}function yh(e){return typeof e==`string`||typeof e==`number`}var dte=v.forwardRef((e,t)=>{let{prefixCls:n,id:r,open:i,multiple:a,mode:o,searchValue:s,toggleOpen:c,notFoundContent:l,onPopupScroll:u,showScrollBar:d,lockOptions:f}=xm(),{maxCount:p,flattenOptions:m,onActiveValue:h,defaultActiveFirstOption:g,onSelect:_,menuItemSelectedIcon:y,rawValues:b,fieldNames:x,virtual:S,direction:C,listHeight:w,listItemHeight:T,optionRender:E,classNames:D,styles:O}=v.useContext(Pm),A=`${n}-item`,j=k(()=>m,[i,f],(e,t)=>t[0]&&!t[1]),M=v.useRef(null),N=v.useMemo(()=>a&&Tm(p)&&b?.size>=p,[a,p,b?.size]),P=e=>{e.preventDefault()},F=e=>{M.current?.scrollTo(typeof e==`number`?{index:e}:e)},I=v.useCallback(e=>o===`combobox`?!1:b.has(e),[o,[...b].toString(),b.size]),L=(e,t=1)=>{let n=j.length;for(let r=0;r<n;r+=1){let i=(e+r*t+n)%n,{group:a,data:o}=j[i]||{};if(!a&&!o?.disabled&&(I(o.value)||!N))return i}return-1},[R,z]=v.useState(()=>L(0)),B=(e,t=!1)=>{z(e);let n={source:t?`keyboard`:`mouse`},r=j[e];if(!r){h(null,-1,n);return}h(r.value,e,n)};(0,v.useEffect)(()=>{B(g===!1?-1:L(0))},[j.length,s]);let V=v.useCallback(e=>o===`combobox`?String(e).toLowerCase()===s.toLowerCase():b.has(e),[o,s,[...b].toString(),b.size]);(0,v.useEffect)(()=>{let e;if(!a&&i&&b.size===1){let t=Array.from(b)[0],n=j.findIndex(({data:e})=>s?String(e.value).startsWith(s):e.value===t);n!==-1&&(B(n),e=setTimeout(()=>{F(n)}))}return i&&M.current?.scrollTo(void 0),()=>clearTimeout(e)},[i,s]);let H=e=>{e!==void 0&&_(e,{selected:!b.has(e)}),a||c(!1)};if(v.useImperativeHandle(t,()=>({onKeyDown:e=>{let{which:t,ctrlKey:n}=e;switch(t){case uu.N:case uu.P:case uu.UP:case uu.DOWN:{let e=0;if(t===uu.UP?e=-1:t===uu.DOWN?e=1:ute()&&n&&(t===uu.N?e=1:t===uu.P&&(e=-1)),e!==0){let t=L(R+e,e);F(t),B(t,!0)}break}case uu.TAB:case uu.ENTER:{let t=j[R];if(!t||t.data.disabled)return H(void 0);!N||b.has(t.value)?H(t.value):H(void 0),i&&e.preventDefault();break}case uu.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{F(e)}})),j.length===0)return v.createElement(`div`,{role:`listbox`,id:`${r}_list`,className:`${A}-empty`,onMouseDown:P},l);let U=Object.keys(x).map(e=>x[e]),ee=e=>e.label;function te(e,t){let{group:n}=e;return{role:n?`presentation`:`option`,id:`${r}_list_${t}`}}let W=e=>{let t=j[e];if(!t)return null;let n=t.data||{},{value:r,disabled:i}=n,{group:a}=t,o=Ts(n,!0),s=ee(t);return t?v.createElement(`div`,vh({"aria-label":typeof s==`string`&&!a?s:null},o,{key:e},te(t,e),{"aria-selected":V(r),"aria-disabled":i}),r):null},ne={role:`listbox`,id:`${r}_list`};return v.createElement(v.Fragment,null,S&&v.createElement(`div`,vh({},ne,{style:{height:0,width:0,overflow:`hidden`}}),W(R-1),W(R),W(R+1)),v.createElement(_h,{itemKey:`key`,ref:M,data:j,height:w,itemHeight:T,fullHeight:!1,onMouseDown:P,onScroll:u,virtual:S,direction:C,innerProps:S?null:ne,showScrollBar:d,className:D?.popup?.list,style:O?.popup?.list},(e,t)=>{let{group:n,groupOption:r,data:i,label:a,value:o}=e,{key:s}=i;if(n){let e=i.title??(yh(a)?a.toString():void 0);return v.createElement(`div`,{className:G(A,`${A}-group`,i.className),title:e},a===void 0?s:a)}let{disabled:c,title:l,children:u,style:d,className:f,...p}=i,m=he(p,U),h=I(o),g=c||!h&&N,_=`${A}-option`,b=G(A,_,f,D?.popup?.listItem,{[`${_}-grouped`]:r,[`${_}-active`]:R===t&&!g,[`${_}-disabled`]:g,[`${_}-selected`]:h}),x=ee(e),C=!y||typeof y==`function`||h,w=typeof x==`number`?x:x||o,T=yh(w)?w.toString():void 0;return l!==void 0&&(T=l),v.createElement(`div`,vh({},Ts(m),S?{}:te(e,t),{"aria-selected":S?void 0:V(o),"aria-disabled":g,className:b,title:T,onMouseMove:()=>{R===t||g||B(t)},onClick:()=>{g||H(o)},style:{...O?.popup?.listItem,...d}}),v.createElement(`div`,{className:`${_}-content`},typeof E==`function`?E(e,{index:t}):w),v.isValidElement(y)||h,C&&v.createElement(Jm,{className:`${A}-option-state`,customizeIcon:y,customizeIconProps:{value:o,disabled:g,isSelected:h}},h?`✓`:null))}))}),fte=((e,t)=>{let n=v.useRef({values:new Map,options:new Map});return[v.useMemo(()=>{let{values:r,options:i}=n.current,a=e.map(e=>e.label===void 0?{...e,label:r.get(e.value)?.label}:e),o=new Map,s=new Map;return a.forEach(e=>{o.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=o,n.current.options=s,a},[e,t]),v.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]});function bh(e,t){return Fm(e).join(``).toUpperCase().includes(t)}var pte=((e,t,n,r,i)=>v.useMemo(()=>{if(!n||r===!1)return e;let{options:a,label:o,value:s}=t,c=[],l=typeof r==`function`,u=n.toUpperCase(),d=l?r:(e,t)=>i&&i.length?i.some(e=>bh(t[e],u)):t[a]?bh(t[o===`children`?`label`:o],u):bh(t[s],u),f=l?e=>Dm(e):e=>e;return e.forEach(e=>{if(e[a]){if(d(n,f(e)))c.push(e);else{let t=e[a].filter(e=>d(n,f(e)));t.length&&c.push({...e,[a]:t})}return}d(n,f(e))&&c.push(e)}),c},[e,r,i,n,t]));function mte(e){let{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r===void 0?t:r,children:n,...i}}function xh(e,t=!1){return ge(e).map((e,n)=>{if(!v.isValidElement(e)||!e.type)return null;let{type:{isSelectOptGroup:r},key:i,props:{children:a,...o}}=e;return t||!r?mte(e):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...o,options:xh(a)}}).filter(e=>e)}var hte=(e,t,n,r,i)=>v.useMemo(()=>{let a=e;e||(a=xh(t));let o=new Map,s=new Map,c=(e,t,n)=>{n&&typeof n==`string`&&e.set(t[n],t)},l=(e,t=!1)=>{for(let a=0;a<e.length;a+=1){let u=e[a];!u[n.options]||t?(o.set(u[n.value],u),c(s,u,n.label),r.forEach(e=>{c(s,u,e)}),c(s,u,i)):l(u[n.options],!0)}};return l(a),{options:a,valueOptions:o,labelOptions:s}},[e,t,n,r,i]);function Sh(e){let t=v.useRef();return t.current=e,v.useCallback((...e)=>t.current(...e),[])}function gte(e,t,n){let{filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c}=t;return v.useMemo(()=>{let t=typeof e==`object`,l={filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[t||n===`combobox`||n===`tags`||n===`multiple`&&e===void 0?!0:e,l]},[n,e,r,i,a,o,s,c])}function Ch(){return Ch=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ch.apply(this,arguments)}var _te=[`inputValue`];function vte(e){return!e||typeof e!=`object`}var wh=v.forwardRef((e,t)=>{let{id:n,mode:r,prefixCls:i=`rc-select`,backfill:a,fieldNames:o,showSearch:s,searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p,onSelect:m,onDeselect:h,onActive:g,popupMatchSelectWidth:_=!0,optionLabelProp:y,options:b,optionRender:x,children:S,defaultActiveFirstOption:C,menuItemSelectedIcon:w,virtual:T,direction:D,listHeight:O=200,listItemHeight:k=20,labelRender:A,value:j,defaultValue:M,labelInValue:N,onChange:P,maxCount:F,classNames:I,styles:L,...R}=e,[z,B]=gte(s,{searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p},r),{filterOption:V,searchValue:H,optionFilterProp:U,filterSort:ee,onSearch:te,autoClearSearchValue:W=!0}=B,ne=v.useMemo(()=>U?Array.isArray(U)?U:[U]:[],[U]),re=Xc(n),ie=rh(r),ae=!!(!b&&S),oe=v.useMemo(()=>V===void 0&&r===`combobox`?!1:V,[V,r]),se=v.useMemo(()=>Em(o,ae),[JSON.stringify(o),ae]),[ce,le]=E(``,H),ue=ce||``,de=hte(b,S,se,ne,y),{valueOptions:fe,labelOptions:pe,options:me}=de,he=v.useCallback(e=>Fm(e).map(e=>{let t,n,r,i;vte(e)?t=e:(n=e.label,t=e.value);let a=fe.get(t);return a&&(n===void 0&&(n=a?.[y||se.label]),r=a?.disabled,i=a?.title),{label:n,value:t,key:t,disabled:r,title:i}}),[se,y,fe]),[ge,_e]=E(M,j),[ve,ye]=fte(v.useMemo(()=>{let e=he(ie&&ge===null?[]:ge);return r===`combobox`&&Lee(e[0]?.value)?[]:e},[ge,he,r,ie]),fe),be=v.useMemo(()=>{if(!r&&ve.length===1){let e=ve[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return ve.map(e=>({...e,label:(typeof A==`function`?A(e):e.label)??e.value}))},[r,ve,A]),xe=v.useMemo(()=>new Set(ve.map(e=>e.value)),[ve]);v.useEffect(()=>{if(r===`combobox`){let e=ve[0]?.value;le(Im(e)?String(e):``)}},[ve]);let Se=Sh((e,t)=>{let n=t??e;return{[se.value]:e,[se.label]:n}}),Ce=pte(v.useMemo(()=>{if(r!==`tags`)return me;let e=[...me],t=e=>fe.has(e);return[...ve].sort((e,t)=>e.value<t.value?-1:1).forEach(n=>{let r=n.value;t(r)||e.push(Se(r,n.label))}),e},[Se,me,fe,ve,r]),se,ue,oe,ne),we=v.useMemo(()=>{let e=e=>ne.length?ne.some(t=>e?.[t]===ue):e?.value===ue;return r!==`tags`||!ue||Ce.some(t=>e(t))||Ce.some(e=>e[se.value]===ue)?Ce:[Se(ue),...Ce]},[Se,ne,r,Ce,ue,se]),Te=e=>[...e].sort((e,t)=>ee(e,t,{searchValue:ue})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?Te(e.options):e.options}:e),Ee=v.useMemo(()=>ee?Te(we):we,[we,ee,ue]),De=v.useMemo(()=>Mee(Ee,{fieldNames:se,childrenAsData:ae}),[Ee,se,ae]),Oe=e=>{let t=he(e);if(_e(t),P&&(t.length!==ve.length||t.some((e,t)=>ve[t]?.value!==e?.value))){let e=N?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>Dm(ye(e.value)));P(ie?e:e[0],ie?n:n[0])}},[ke,Ae]=v.useState(null),[je,Me]=v.useState(0),Ne=C===void 0?r!==`combobox`:C,Pe=v.useRef(),Fe=v.useCallback((e,t,{source:n=`keyboard`}={})=>{Me(t),a&&r===`combobox`&&e!==null&&n===`keyboard`&&Ae(String(e));let i=Promise.resolve().then(()=>{Pe.current===i&&g?.(e)});Pe.current=i},[a,r,g]),Ie=(e,t,n)=>{let r=()=>{let t=ye(e);return[N?{label:t?.[se.label],value:e}:e,Dm(t)]};if(t&&m){let[e,t]=r();m(e,t)}else if(!t&&h&&n!==`clear`){let[e,t]=r();h(e,t)}},Le=Sh((e,t)=>{let n,i=ie?t.selected:!0;n=i?ie?[...ve,e]:[e]:ve.filter(t=>t.value!==e),Oe(n),Ie(e,i),r===`combobox`?Ae(``):(!rh||W)&&(le(``),Ae(``))}),Re=(e,t)=>{Oe(e);let{type:n,values:r}=t;(n===`remove`||n===`clear`)&&r.forEach(e=>{Ie(e.value,!1,n)})},G=(e,t)=>{if(le(e),Ae(null),t.source===`submit`){let t=(e||``).trim();t&&(Oe(Array.from(new Set([...xe,t]))),Ie(t,!0),le(``));return}t.source!==`blur`&&(r===`combobox`&&Oe(e),te?.(e))},ze=e=>{let t=e;r!==`tags`&&(t=e.map(e=>pe.get(e)?.value).filter(e=>e!==void 0));let n=Array.from(new Set([...xe,...t]));Oe(n),n.forEach(e=>{Ie(e,!0)})},Be=v.useMemo(()=>{let e=T!==!1&&_!==!1;return{...de,flattenOptions:De,onActiveValue:Fe,defaultActiveFirstOption:Ne,onSelect:Le,menuItemSelectedIcon:w,rawValues:xe,fieldNames:se,virtual:e,direction:D,listHeight:O,listItemHeight:k,childrenAsData:ae,maxCount:F,optionRender:x,classNames:I,styles:L}},[F,de,De,Fe,Ne,Le,w,xe,se,T,_,D,O,k,ae,x,I,L]);return v.createElement(Pm.Provider,{value:Be},v.createElement(ih,Ch({},R,{id:re,prefixCls:i,ref:t,omitDomProps:_te,mode:r,classNames:I,styles:L,displayValues:be,onDisplayValuesChange:Re,maxCount:F,direction:D,showSearch:z,searchValue:ue,onSearch:G,autoClearSearchValue:W,onSearchSplit:ze,popupMatchSelectWidth:_,OptionList:dte,emptyOptions:!De.length,activeValue:ke,activeDescendantId:`${re}_list_${je}`})))});wh.Option=oh,wh.OptGroup=ah;var yte=wh,Th=(e,t,n)=>G({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n}),Eh=(e,t)=>t||e,bte=()=>{let[,e]=za(),[t]=Ws(`Empty`),n=new ji(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return v.createElement(`svg`,{style:n,width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},v.createElement(`title`,null,t?.description||`Empty`),v.createElement(`g`,{fill:`none`,fillRule:`evenodd`},v.createElement(`g`,{transform:`translate(24 31.7)`},v.createElement(`ellipse`,{fillOpacity:`.8`,fill:`#F5F5F7`,cx:`67.8`,cy:`106.9`,rx:`67.8`,ry:`12.7`}),v.createElement(`path`,{fill:`#aeb8c2`,d:`M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z`}),v.createElement(`path`,{fill:`#f5f5f7`,d:`M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4`}),v.createElement(`path`,{fill:`#dce0e6`,d:`M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8`})),v.createElement(`path`,{fill:`#dce0e6`,d:`m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8`}),v.createElement(`g`,{fill:`#fff`,transform:`translate(149.7 15.4)`},v.createElement(`circle`,{cx:`20.7`,cy:`3.2`,r:`2.8`}),v.createElement(`path`,{d:`M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z`}))))},xte=()=>{let[,e]=za(),[t]=Ws(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,v.useMemo)(()=>({borderColor:new ji(n).onBackground(a).toHexString(),shadowColor:new ji(r).onBackground(a).toHexString(),contentColor:new ji(i).onBackground(a).toHexString()}),[n,r,i,a]);return v.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},v.createElement(`title`,null,t?.description||`Empty`),v.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},v.createElement(`ellipse`,{fill:s,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),v.createElement(`g`,{fillRule:`nonzero`,stroke:o},v.createElement(`path`,{d:`M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z`}),v.createElement(`path`,{d:`M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3`,fill:c}))))},Ste=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:`center`,[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:`100%`},svg:{maxWidth:`100%`,height:`100%`,margin:`auto`}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Cte=Xa(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return Ste(li(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),Dh=v.createElement(bte,null),Oh=v.createElement(xte,null),kh=e=>{let{className:t,rootClassName:n,prefixCls:r,image:i,description:a,children:o,imageStyle:s,style:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f,direction:p,className:m,style:h,classNames:g,styles:_,image:y}=nt(`empty`),b=f(`empty`,r),[x,S]=Cte(b),[C,w]=mc([g,l],[_,u],{props:e}),[T]=Ws(`Empty`),E=a===void 0?T?.description:a,D=typeof E==`string`?E:`empty`,O=i??y??Dh,k=null;return k=typeof O==`string`?v.createElement(`img`,{draggable:!1,alt:D,src:O}):O,v.createElement(`div`,{className:G(x,S,b,m,{[`${b}-normal`]:O===Oh,[`${b}-rtl`]:p===`rtl`},t,n,C.root),style:{...w.root,...h,...c},...d},v.createElement(`div`,{className:G(`${b}-image`,C.image),style:{...s,...w.image}},k),E&&v.createElement(`div`,{className:G(`${b}-description`,C.description),style:w.description},E),o&&v.createElement(`div`,{className:G(`${b}-footer`,C.footer),style:w.footer},o))};kh.PRESENTED_IMAGE_DEFAULT=Dh,kh.PRESENTED_IMAGE_SIMPLE=Oh;var Ah=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,v.useContext)($e),r=n(`empty`);switch(t){case`Table`:case`List`:return v.createElement(kh,{image:kh.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return v.createElement(kh,{image:kh.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return v.createElement(kh,null)}},jh=(e,t,n)=>{let{variant:r,[e]:i}=v.useContext($e),a=v.useContext(oee),o=i?.variant,s;s=t===void 0?n===!1?`borderless`:a??o??r??`outlined`:t;let c=Qe.includes(s);return[s,c]},wte=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e===`scroll`?`scroll`:`visible`,dynamicInset:!0};return{bottomLeft:{...t,points:[`tl`,`bl`],offset:[0,4]},bottomRight:{...t,points:[`tr`,`br`],offset:[0,4]},topLeft:{...t,points:[`bl`,`tl`],offset:[0,-4]},topRight:{...t,points:[`br`,`tr`],offset:[0,-4]}}};function Tte(e,t){return e||wte(t)}var Mh=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},Ete=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...Va(e),position:`absolute`,top:-9999,zIndex:e.zIndexPopup,boxSizing:`border-box`,padding:e.paddingXXS,overflow:`hidden`,fontSize:e.fontSize,fontVariant:`initial`,backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,[`
|
||
${i}${s}bottomLeft,
|
||
${a}${s}bottomLeft
|
||
`]:{animationName:fd},[`
|
||
${i}${s}topLeft,
|
||
${a}${s}topLeft,
|
||
${i}${s}topRight,
|
||
${a}${s}topRight
|
||
`]:{animationName:md},[`${o}${s}bottomLeft`]:{animationName:pd},[`
|
||
${o}${s}topLeft,
|
||
${o}${s}topRight
|
||
`]:{animationName:hd},"&-hidden":{display:`none`},[r]:{...Mh(e),cursor:`pointer`,transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:`default`},"&-option":{display:`flex`,"&-content":{flex:`auto`,...Ba},"&-state":{flex:`none`,display:`flex`,alignItems:`center`},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...Mh(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}}},xd(e,`slide-up`),xd(e,`slide-down`),dd(e,`move-up`),dd(e,`move-down`)]},Dte=e=>{let{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:`inherit`,lineHeight:`inherit`,[`${t}-placeholder`]:{display:`none`},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:`none`}}}}},Nh=4,Ote=e=>{let{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:o,lineWidth:s,colorIcon:c,colorIconHover:l,inputPaddingHorizontalBase:u,antCls:d}=e,[f,p]=$a(d,`select`);return{"&-multiple":{[f(`multi-item-background`)]:e.multipleItemBg,[f(`multi-item-border-color`)]:`transparent`,[f(`multi-item-border-radius`)]:e.borderRadiusSM,[f(`multi-item-height`)]:e.multipleItemHeight,[f(`multi-padding-base`)]:`calc((${p(`height`)} - ${p(`multi-item-height`)}) / 2)`,[f(`multi-padding-vertical`)]:`calc(${p(`multi-padding-base`)} - ${o} - ${s})`,[f(`multi-item-padding-horizontal`)]:`calc(${u} - ${p(`multi-padding-vertical`)} - ${s} * 2)`,paddingBlock:p(`multi-padding-vertical`),paddingInlineStart:`calc(${p(`multi-padding-base`)} - ${s})`,[`${t}-prefix`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:`absolute`,lineHeight:p(`line-height`),insetInlineStart:p(`multi-item-padding-horizontal`),width:`calc(100% - ${p(`multi-item-padding-horizontal`)})`,top:`50%`,transform:`translateY(-50%)`},[`${t}-content`]:{flexWrap:`wrap`,alignItems:`center`,lineHeight:1,"&-item-prefix":{height:p(`font-size`)},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${Nh}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
|
||
${t}-content-item-suffix:first-child`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-selection-item`]:{lineHeight:`calc(${p(`multi-item-height`)} - ${s} * 2)`,border:`${s} solid ${p(`multi-item-border-color`)}`,display:`flex`,marginBlock:o,marginInlineEnd:n(o).mul(2).equal(),background:p(`multi-item-background`),borderRadius:p(`multi-item-border-radius`),paddingInlineStart:i,paddingInlineEnd:a,transition:[`height`,`line-height`,`padding`].map(t=>`${t} ${e.motionDurationSlow}`).join(`,`),"&-content":{...Ba,marginInlineEnd:a},"&-remove":{...Ha(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}},[`${t}-input`]:{lineHeight:n(o).mul(2).add(p(`multi-item-height`)).equal(),width:`calc(var(--select-input-width, 0) * 1px)`,minWidth:Nh,maxWidth:`100%`,transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f(`multi-item-height`)]:e.multipleItemHeightSM,[f(`multi-item-border-radius`)]:e.borderRadiusXS},[`&${t}-lg`]:{[f(`multi-item-height`)]:e.multipleItemHeightLG,[f(`multi-item-border-radius`)]:e.borderRadius},[`&${t}-filled`]:{[f(`multi-item-border-color`)]:e.colorSplit,[f(`multi-item-background`)]:e.colorBgContainer,[`&${t}-disabled`]:{[f(`multi-item-border-color`)]:`transparent`}}}}},Ph=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=$a(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`color`)]:t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${K(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},Fh=(e,t,n,r={},i={},a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[Ph(e,n),{[`&${o}-status-error`]:Ph(e,{...n,color:r.color||e.colorError,...r}),[`&${o}-status-warning`]:Ph(e,{...n,color:i.color||e.colorWarning,...i})},a]}},kte=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,iconCls:i,antCls:a,calc:o}=e,[s,c]=$a(a,`select`);return{[t]:[{[s(`border-radius`)]:e.borderRadius,[s(`border-color`)]:`#000`,[s(`border-size`)]:e.lineWidth,[s(`background-color`)]:e.colorBgContainer,[s(`font-size`)]:e.fontSize,[s(`line-height`)]:e.lineHeight,[s(`font-height`)]:n,[s(`color`)]:e.colorText,[s(`height`)]:r,[s(`padding-horizontal`)]:o(e.paddingSM).sub(e.lineWidth).equal(),[s(`padding-vertical`)]:`calc((${c(`height`)} - ${c(`font-height`)}) / 2 - ${c(`border-size`)})`,...Va(e,!0),display:`inline-flex`,flexWrap:`nowrap`,position:`relative`,transition:`all ${e.motionDurationSlow}`,alignItems:`flex-start`,outline:0,cursor:`pointer`,borderRadius:c(`border-radius`),borderWidth:c(`border-size`),borderStyle:e.lineType,borderColor:c(`border-color`),background:c(`background-color`),fontSize:c(`font-size`),lineHeight:c(`line-height`),color:c(`color`),paddingInline:c(`padding-horizontal`),paddingBlock:c(`padding-vertical`),[`${t}-prefix`]:{flex:`none`,lineHeight:1},[`${t}-placeholder`]:{...Ba,color:e.colorTextPlaceholder,pointerEvents:`none`,zIndex:1},[`${t}-content`]:{flex:`auto`,minWidth:0,position:`relative`,display:`flex`,marginInlineEnd:o(e.paddingXXS).mul(1.5).equal(),"&:before":{content:`"\\a0"`,width:0,overflow:`hidden`},"&-value":{visibility:`inherit`},"input[readonly]":{cursor:`inherit`,caretColor:`transparent`}},[`${t}-suffix`]:{flex:`none`,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:`center`,[i]:{verticalAlign:`top`}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:`not-allowed`,input:{cursor:`not-allowed`}},"&-sm":{[s(`height`)]:e.controlHeightSM,[s(`padding-horizontal`)]:o(e.paddingXS).sub(e.lineWidth).equal(),[s(`border-radius`)]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:c(`padding-horizontal`)}},"&-lg":{[s(`height`)]:e.controlHeightLG,[s(`font-size`)]:e.fontSizeLG,[s(`line-height`)]:e.lineHeightLG,[s(`font-height`)]:e.fontHeightLG,[s(`border-radius`)]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:`none`,background:`transparent`,appearance:`none`,border:0,margin:0,padding:0,color:c(`color`),"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:`absolute`,inset:0,lineHeight:`calc(${c(`font-height`)} + ${c(`padding-vertical`)} * 2)`},[`${t}-content`]:{...Ba,alignSelf:`center`,"&-has-value":{display:`block`,"&:before":{display:`none`}},"&-has-search-value":{color:`transparent`},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder,"&-has-search-value":{color:`transparent`}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:`text`}},Ote(e),Fh(e,`outlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),Fh(e,`filled`,{border:`transparent`,borderHover:`transparent`,borderActive:e.activeBorderColor,borderOutline:`transparent`,borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),Fh(e,`borderless`,{border:`transparent`,borderHover:`transparent`,borderActive:`transparent`,borderOutline:`transparent`,background:`transparent`}),Fh(e,`underlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:`transparent`},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:`transparent`,borderInlineColor:`transparent`}),Dte(e)]}},Ate=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},Ih=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:{...Va(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...Ba,[`> ${t}-typography`]:{display:`inline`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:i,zIndex:1,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,cursor:`pointer`,opacity:0,transition:[`color`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Lh=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},Ih(e),Ete(e),{[`${t}-rtl`]:{direction:`rtl`}},df(e,{focusElCls:`${t}-focused`})]},Rh=Xa(`Select`,(e,{rootPrefixCls:t})=>{let n=li(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Lh(n),kte(n)]},Ate,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),zh={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z`}}]},name:`check`,theme:`outlined`};function Bh(){return Bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bh.apply(this,arguments)}var Vh=v.forwardRef((e,t)=>v.createElement(Co,Bh({},e,{ref:t,icon:zh}))),Hh={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z`}}]},name:`down`,theme:`outlined`};function Uh(){return Uh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uh.apply(this,arguments)}var Wh=v.forwardRef((e,t)=>v.createElement(Co,Uh({},e,{ref:t,icon:Hh}))),Gh={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z`}}]},name:`search`,theme:`outlined`};function Kh(){return Kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kh.apply(this,arguments)}var qh=v.forwardRef((e,t)=>v.createElement(Co,Kh({},e,{ref:t,icon:Gh})));function Jh({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,loadingIcon:a,multiple:o,hasFeedback:s,showSuffixIcon:c,feedbackIcon:l,showArrow:u,componentName:d}){let f=t??v.createElement(Eo,null),p=t=>e===null&&!s&&!u?null:v.createElement(v.Fragment,null,c!==!1&&t,s&&l),m=null;m=e===void 0?i?p(a??v.createElement(pu,{spin:!0})):({open:e,showSearch:t})=>p(e&&t?v.createElement(qh,null):v.createElement(Wh,null)):p(e);let h=null;h=n===void 0?o?v.createElement(Vh,null):null:n;let g=null;return g=r===void 0?v.createElement(ko,null):r,{clearIcon:f,suffixIcon:m,itemIcon:h,removeIcon:g}}function Yh(e){return v.useMemo(()=>{if(e)return(...t)=>v.createElement(im,{space:!0},e.apply(void 0,t))},[e])}function Xh(e,t){return t===void 0?e!==null:t}var Zh=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,Qh=v.forwardRef((e,t)=>{let{prefixCls:n,bordered:r,className:i,rootClassName:a,getPopupContainer:o,popupClassName:s,dropdownClassName:c,listHeight:l=256,placement:u,listItemHeight:d,size:f,disabled:p,notFoundContent:m,status:h,builtinPlacements:g,dropdownMatchSelectWidth:_,popupMatchSelectWidth:y,direction:b,style:x,allowClear:S,variant:C,popupStyle:w,dropdownStyle:T,transitionName:E,tagRender:D,maxCount:O,prefix:k,dropdownRender:A,popupRender:j,onDropdownVisibleChange:M,onOpenChange:N,styles:P,classNames:F,...I}=e,{getPopupContainer:L,getPrefixCls:R,renderEmpty:z,direction:B,virtual:V,popupMatchSelectWidth:H,popupOverflow:U}=v.useContext($e),{showSearch:ee,style:te,styles:W,className:ne,classNames:re}=nt(`select`),[,ie]=za(),ae=d??ie?.controlHeight,oe=R(`select`,n),se=R(),ce=b??B,{compactSize:le,compactItemClassnames:ue}=Iu(oe,ce),[de,fe]=jh(`select`,C,r),pe=jc(oe),[me,ge]=Rh(oe,pe),_e=v.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===Zh?`combobox`:t},[e.mode]),ve=_e===`multiple`||_e===`tags`,ye=Xh(e.suffixIcon,e.showArrow),be=y??_??H,xe=Yh(j||A),Se=N||M,{status:Ce,hasFeedback:we,isFormItemInput:Te,feedbackIcon:Ee}=v.useContext(rm),De=Eh(Ce,h),Oe;Oe=m===void 0?_e===`combobox`?null:z?.(`Select`)||v.createElement(Ah,{componentName:`Select`}):m;let{suffixIcon:ke,itemIcon:Ae,removeIcon:je,clearIcon:Me}=Jh({...I,multiple:ve,hasFeedback:we,feedbackIcon:Ee,showSuffixIcon:ye,prefixCls:oe,componentName:`Select`}),Ne=S===!0?{clearIcon:Me}:S,Pe=he(I,[`suffixIcon`,`itemIcon`]),Fe=Nu(e=>f??le??e),Ie=v.useContext(Xl),Le=p??Ie,Re={...e,variant:de,status:De,disabled:Le,size:Fe},[ze,Be]=mc([re,F],[W,P],{props:Re},{popup:{_default:`root`}}),Ve=G(ze.popup?.root,s,c,{[`${oe}-dropdown-${ce}`]:ce===`rtl`},a,ge,pe,me),He={...Be.popup?.root,...w??T},Ue=G({[`${oe}-lg`]:Fe===`large`,[`${oe}-sm`]:Fe===`small`,[`${oe}-rtl`]:ce===`rtl`,[`${oe}-${de}`]:fe,[`${oe}-in-form-item`]:Te},Th(oe,De,we),ue,ne,i,ze.root,a,ge,pe,me),We=v.useMemo(()=>u===void 0?ce===`rtl`?`bottomRight`:`bottomLeft`:u,[u,ce]),[Ge]=Ec(`SelectLike`,Be.popup?.root?.zIndex??He?.zIndex);return v.createElement(yte,{ref:t,virtual:V,classNames:ze,styles:Be,showSearch:ee,...Pe,style:{...Be.root,...te,...x},popupMatchSelectWidth:be,transitionName:Cu(se,`slide-up`,E),builtinPlacements:Tte(g,U),listHeight:l,listItemHeight:ae,mode:_e,prefixCls:oe,placement:We,direction:ce,prefix:k,suffixIcon:ke,menuItemSelectedIcon:Ae,removeIcon:je,allowClear:Ne,notFoundContent:Oe,className:Ue,getPopupContainer:o||L,popupClassName:Ve,disabled:Le,popupStyle:{...Be.popup?.root,...He,zIndex:Ge},maxCount:ve?O:void 0,tagRender:ve?D:void 0,popupRender:xe,onPopupVisibleChange:Se})}),jte=ym(Qh,`popupAlign`);Qh.SECRET_COMBOBOX_MODE_DO_NOT_USE=Zh,Qh.Option=oh,Qh.OptGroup=ah,Qh._InternalPanelDoNotUseOrYouWillBeFired=jte;var $h=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`];[].concat($h).reverse();var Mte=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Nte=e=>{let t=e,n=[].concat($h).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r<n.length-1){let e=`screen${i}Max`;if(!(t[o]<=t[e]))throw Error(`${o}<=${e} fails : !(${t[o]}<=${t[e]})`);let a=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e},Pte=()=>{let[,e]=za(),t=Mte(Nte(e));return v.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>{e(r)}),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch({...r,[e]:t})},i=window.matchMedia(t);typeof i?.addEventListener==`function`&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];typeof t?.mql?.removeEventListener==`function`&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])};function eg(e=!0,t={}){let n=(0,v.useRef)(t),[,r]=sc(),i=Pte();return C(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}var tg=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return v.createElement(`div`,{id:r,className:G(`${n}-container`,i?.container,o),style:{...a?.container,...s},role:`tooltip`},typeof t==`function`?t():t)},ng={shiftX:64,adjustY:1},rg={adjustX:1,shiftY:!0},ig=[0,0],Fte={left:{points:[`cr`,`cl`],overflow:rg,offset:[-4,0],targetOffset:ig},right:{points:[`cl`,`cr`],overflow:rg,offset:[4,0],targetOffset:ig},top:{points:[`bc`,`tc`],overflow:ng,offset:[0,-4],targetOffset:ig},bottom:{points:[`tc`,`bc`],overflow:ng,offset:[0,4],targetOffset:ig},topLeft:{points:[`bl`,`tl`],overflow:ng,offset:[0,-4],targetOffset:ig},leftTop:{points:[`tr`,`tl`],overflow:rg,offset:[-4,0],targetOffset:ig},topRight:{points:[`br`,`tr`],overflow:ng,offset:[0,-4],targetOffset:ig},rightTop:{points:[`tl`,`tr`],overflow:rg,offset:[4,0],targetOffset:ig},bottomRight:{points:[`tr`,`br`],overflow:ng,offset:[0,4],targetOffset:ig},rightBottom:{points:[`bl`,`br`],overflow:rg,offset:[4,0],targetOffset:ig},bottomLeft:{points:[`tl`,`bl`],overflow:ng,offset:[0,4],targetOffset:ig},leftBottom:{points:[`br`,`bl`],overflow:rg,offset:[-4,0],targetOffset:ig}};function ag(){return ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ag.apply(this,arguments)}var Ite=v.forwardRef((e,t)=>{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:m,arrowContent:h,overlay:g,id:_,showArrow:y=!0,classNames:b,styles:x,...S}=e,C=Xc(_),w=(0,v.useRef)(null);(0,v.useImperativeHandle)(t,()=>w.current);let T={...S};`visible`in e&&(T.popupVisible=e.visible);let E=v.useMemo(()=>{if(!y)return!1;let e=y===!0?{}:y;return{...e,className:G(e.className,b?.arrow),style:{...e.style,...x?.arrow},content:e.content??h}},[y,b?.arrow,x?.arrow,h]);return v.createElement(Hl,ag({popupClassName:b?.root,prefixCls:a,popup:v.createElement(tg,{key:`content`,prefixCls:a,id:C,classNames:b,styles:x},g),action:n,builtinPlacements:Fte,popupPlacement:u,ref:w,popupAlign:d,getPopupContainer:m,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:x?.root,mouseEnterDelay:r,arrow:E,uniqueContainerClassName:b?.uniqueContainer,uniqueContainerStyle:x?.uniqueContainer},T),({open:e})=>{let t=v.Children.only(o),n={"aria-describedby":g&&e?C:void 0};return v.cloneElement(t,n)})});function og(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var Lte=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e;return{pointerEvents:`none`,width:r,height:r,overflow:`hidden`,"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:`""`},"&::after":{content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${K(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,boxShadow:n,zIndex:0,background:`transparent`}}};function sg(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function cg(e,t){return e?t:{}}var lg=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=$a(s,`tooltip`),{arrowDistance:l=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...Lte(e,t,i),"&:before":{background:t}}],...cg(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:l,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${K(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...cg(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:l,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${K(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...cg(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:l},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}}),...cg(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:l},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}})}}};function Rte(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=Zs(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o={...a,...i};return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var ug={left:{points:[`cr`,`cl`]},right:{points:[`cl`,`cr`]},top:{points:[`bc`,`tc`]},bottom:{points:[`tc`,`bc`]},topLeft:{points:[`bl`,`tl`]},leftTop:{points:[`tr`,`tl`]},topRight:{points:[`br`,`tr`]},rightTop:{points:[`tl`,`tr`]},bottomRight:{points:[`tr`,`br`]},rightBottom:{points:[`bl`,`br`]},bottomLeft:{points:[`tl`,`bl`]},leftBottom:{points:[`br`,`bl`]}},zte={topLeft:{points:[`bl`,`tc`]},leftTop:{points:[`tr`,`cl`]},topRight:{points:[`br`,`tc`]},rightTop:{points:[`tl`,`cr`]},bottomRight:{points:[`tr`,`bc`]},rightBottom:{points:[`bl`,`cr`]},bottomLeft:{points:[`tl`,`bc`]},leftBottom:{points:[`br`,`cl`]}},Bte=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function dg(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=sg({contentRadius:a,limitVerticalRadius:!0});return Object.keys(ug).forEach(e=>{let a={...r&&zte[e]||ug[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,Bte.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s;break}a.overflow=Rte(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var fg=v.createContext(!1),Vte=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return v.useMemo(()=>{let r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},pg=`50%`,Hte=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=$a(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${K(e.calc(u).div(2).equal())} ${K(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,pg),`var(--arrow-y, ${pg})`].join(` `)};return[{[n]:{...Va(e),position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,...y,"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,rd(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`,boxShadow:`none`}},[[`&-placement-topLeft`,`&-placement-topRight`,`&-placement-bottomLeft`,`&-placement-bottomRight`].join(`,`)]:{minWidth:_},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`},...eo(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},lg(e,g(`arrow-background-color`)),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:`absolute`,zIndex:t(s).sub(1).equal(),"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},Ute=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...sg({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...og(li(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),mg=(e,t,n=!0)=>Xa(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[Hte(li(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),Id(e,`zoom-big-fast`)]},Ute,{resetStyle:!1,injectStyle:n})(e,t),Wte=bi.map(e=>`${e}-inverse`),Gte=[`success`,`processing`,`error`,`default`,`warning`];function hg(e,t=!0){return t?[].concat(We(Wte),We(bi)).includes(e):bi.includes(e)}function Kte(e){return Gte.includes(e)}var gg=(e,t,n)=>{let r=hg(n),[i]=$a(e,`tooltip`),a=G({[`${t}-${n}`]:n&&r}),o={},s={},c=Yd(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}},qte=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=v.useContext($e),u=l(`tooltip`,t),d=l(),f=jc(u),[p,m]=mg(u,f),h=gg(d,u,a),g=h.arrowStyle,_=v.useMemo(()=>({container:{...o,...h.overlayStyle}}),[o,h.overlayStyle]),y={...e,placement:r},[b,x]=mc([s],[_,c],{props:y}),S=G(f,p,m,u,`${u}-pure`,`${u}-placement-${r}`,n,h.className);return v.createElement(`div`,{className:S,style:g},v.createElement(`div`,{className:`${u}-arrow`}),v.createElement(tg,{...e,className:p,prefixCls:u,classNames:b,styles:x},i))},_g=v.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:m,autoAdjustOverflow:h=!0,motion:g,getPopupContainer:_,placement:y=`top`,mouseEnterDelay:b=.1,mouseLeaveDelay:x=.1,rootClassName:S,styles:C,classNames:w,onOpenChange:T,overlayInnerStyle:D,overlayStyle:O,overlayClassName:k,...A}=e,[,j]=za(),M=e[`data-popover-inject`],{getPopupContainer:N,getPrefixCls:P,direction:F,...I}=nt(`tooltip`),{className:L,style:R,classNames:z,styles:B,arrow:V,trigger:H}=M?{}:I,U=Vte(c,V),ee=U.show,te=p||H||`hover`,W=_||N,ne=u??!!l,re=v.useContext(fg);be(`Tooltip`);let ie=v.useRef(null),ae=()=>{ie.current?.forceAlign()};v.useImperativeHandle(t,()=>({forceAlign:ae,nativeElement:ie.current?.nativeElement,popupElement:ie.current?.popupElement}));let[oe,se]=E(e.defaultOpen??!1,e.open),ce=!d&&!f&&d!==0,le=e=>{se(ce?!1:e),!ce&&T&&T(e)},ue=v.useMemo(()=>m||dg({arrowPointAtCenter:U?.pointAtCenter??!1,autoAdjustOverflow:h,arrowWidth:ee?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS,visibleFirst:!0}),[U,m,j,ee,h]),de=v.useMemo(()=>d===0?d:f||d||``,[f,d]),fe=v.createElement(im,{space:!0,form:!0},typeof de==`function`?de():de),pe={...e,trigger:te,builtinPlacements:ue,getPopupContainer:W,destroyOnHidden:ne},[me,he]=mc([z,w],[B,C],{props:pe}),ge=P(`tooltip`,n),_e=P(),ve=oe;(!(`open`in e)&&ce||re)&&(ve=!1);let ye=v.isValidElement(o)&&!Ul(o)?o:v.createElement(`span`,null,o),xe=ye.props,Se=!xe.className||typeof xe.className==`string`?G(xe.className,r||`${ge}-open`):xe.className,Ce=jc(ge),[we,Te]=mg(ge,Ce,!M),Ee=gg(_e,ge,a),De=Ee.arrowStyle,Oe=G(Ce,we,Te),ke=G(k,{[`${ge}-rtl`]:F===`rtl`},Ee.className,S,Oe,L,me.root),[Ae,je]=Ec(`Tooltip`,A.zIndex),Me={...he.container,...D,...Ee.overlayStyle},Ne=v.createElement(Ite,{unique:!0,...A,zIndex:Ae,showArrow:ee,placement:y,mouseEnterDelay:b,mouseLeaveDelay:x,prefixCls:ge,classNames:{root:ke,container:me.container,arrow:me.arrow,uniqueContainer:G(Oe,me.container)},styles:{root:{...De,...he.root,...R,...O},container:Me,uniqueContainer:Me,arrow:he.arrow},ref:ie,overlay:fe,visible:ve,onVisibleChange:le,afterVisibleChange:s,arrowContent:v.createElement(`span`,{className:`${ge}-arrow-content`}),motion:{motionName:Cu(_e,`zoom-big-fast`,typeof g?.motionName==`string`?g?.motionName:void 0),motionDeadline:1e3},trigger:te,builtinPlacements:ue,getTooltipContainer:W,destroyOnHidden:ne},ve?Gl(ye,{className:Se}):ye);return v.createElement(xc.Provider,{value:je},Ne)});_g._InternalPanelDoNotUseOrYouWillBeFired=qte,_g.UniqueProvider=Yl;var Jte={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z`}}]},name:`left`,theme:`outlined`};function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vg.apply(this,arguments)}var yg=v.forwardRef((e,t)=>v.createElement(Co,vg({},e,{ref:t,icon:Jte}))),{ESC:Yte,TAB:Xte}=uu;function Zte({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){let a=v.useRef(!1),o=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>i.current?.focus?(i.current.focus(),a.current=!0,!0):!1,c=e=>{switch(e.keyCode){case Yte:o();break;case Xte:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};v.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&Xe(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var Qte=(0,v.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:i}=e,a=(0,v.useMemo)(()=>{let e;return e=typeof n==`function`?n():n,e},[n]),o=L(t,H(a));return v.createElement(v.Fragment,null,r&&v.createElement(`div`,{className:`${i}-arrow`}),v.cloneElement(a,{ref:z(a)?o:void 0}))}),bg={adjustX:1,adjustY:1},xg=[0,0],$te={topLeft:{points:[`bl`,`tl`],overflow:bg,offset:[0,-4],targetOffset:xg},top:{points:[`bc`,`tc`],overflow:bg,offset:[0,-4],targetOffset:xg},topRight:{points:[`br`,`tr`],overflow:bg,offset:[0,-4],targetOffset:xg},bottomLeft:{points:[`tl`,`bl`],overflow:bg,offset:[0,4],targetOffset:xg},bottom:{points:[`tc`,`bc`],overflow:bg,offset:[0,4],targetOffset:xg},bottomRight:{points:[`tr`,`br`],overflow:bg,offset:[0,4],targetOffset:xg}};function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sg.apply(this,arguments)}var Cg=v.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:r=`rc-dropdown`,transitionName:i,animation:a,align:o,placement:s=`bottomLeft`,placements:c=$te,getPopupContainer:l,showAction:u,hideAction:d,overlayClassName:f,overlayStyle:p,visible:m,trigger:h=[`hover`],autoFocus:g,overlay:_,children:y,onVisibleChange:b,...x}=e,[S,C]=v.useState(),w=`visible`in e?m:S,T=a?`${r}-${a}`:i,E=v.useRef(null),D=v.useRef(null),O=v.useRef(null);v.useImperativeHandle(t,()=>E.current);let k=e=>{C(e),b?.(e)};Zte({visible:w,triggerRef:O,onVisibleChange:k,autoFocus:g,overlayRef:D});let A=t=>{let{onOverlayClick:n}=e;C(!1),n&&n(t)},j=()=>v.createElement(Qte,{ref:D,overlay:_,prefixCls:r,arrow:n}),M=()=>typeof _==`function`?j:j(),N=()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return`minOverlayWidthMatchTrigger`in e?t:!n},P=v.cloneElement(y,{className:G(y.props?.className,w&&(()=>{let{openClassName:t}=e;return t===void 0?`${r}-open`:t})()),ref:z(y)?L(O,H(y)):void 0}),F=d;return!F&&h.indexOf(`contextMenu`)!==-1&&(F=[`click`]),v.createElement(Hl,Sg({builtinPlacements:c},x,{prefixCls:r,ref:E,popupClassName:G(f,{[`${r}-show-arrow`]:n}),popupStyle:p,action:h,showAction:u,hideAction:F,popupPlacement:s,popupAlign:o,popupMotion:{motionName:T},popupVisible:w,stretch:N()?`minWidth`:``,popup:M(),onOpenChange:k,onPopupClick:A,getPopupContainer:l}),P)}),wg=v.createContext(null);function Tg(e,t){return`${e}-${t}`}function Eg(e){return Tg(v.useContext(wg),e)}var Dg=v.createContext(null);function ene(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function Og({children:e,locked:t,...n}){let r=v.useContext(Dg),i=k(()=>ene(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!vt(e[1],n[1],!0)));return v.createElement(Dg.Provider,{value:i},e)}var tne=[],kg=v.createContext(null);function Ag(){return v.useContext(kg)}var jg=v.createContext(tne);function Mg(e){let t=v.useContext(jg);return v.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var Ng=v.createContext(null),Pg=v.createContext({}),{LEFT:Fg,RIGHT:Ig,UP:Lg,DOWN:Rg,ENTER:zg,ESC:Bg,HOME:Vg,END:Hg}=uu,Ug=[Lg,Rg,Fg,Ig];function nne(e,t,n,r){let i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===zg)return{inlineTrigger:!0};let c={[Lg]:i,[Rg]:a},l={[Fg]:n?a:i,[Ig]:n?i:a,[Rg]:o,[zg]:o},u={[Lg]:i,[Rg]:a,[zg]:o,[Bg]:s,[Fg]:n?o:s,[Ig]:n?s:o};switch({inline:c,horizontal:l,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}[`${e}${t?``:`Sub`}`]?.[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case o:return{offset:1,sibling:!1};default:return null}}function rne(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function ine(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function Wg(e,t){return xf(e,!0).filter(e=>t.has(e))}function Gg(e,t,n,r=1){if(!e)return null;let i=Wg(e,t),a=i.length,o=i.findIndex(e=>n===e);return r<0?o===-1?o=a-1:--o:r>0&&(o+=1),o=(o+a)%a,i[o]}var Kg=(e,t)=>{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${Tg(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function ane(e,t,n,r,i,a,o,s,c,l){let u=v.useRef(),d=v.useRef();d.current=t;let f=()=>{Xe.cancel(u.current)};return v.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([...Ug,zg,Bg,Vg,Hg].includes(m)){let l=a(),h=Kg(l,r),{elements:g,key2element:_,element2key:v}=h,y=ine(_.get(t),g),b=v.get(y),x=nne(e,o(b,!0).length===1,n,m);if(!x&&m!==Vg&&m!==Hg)return;(Ug.includes(m)||[Vg,Hg].includes(m))&&p.preventDefault();let S=e=>{if(e){let t=e,n=e.querySelector(`a`);n?.getAttribute(`href`)&&(t=n);let r=v.get(e);s(r),f(),u.current=Xe(()=>{d.current===r&&t.focus()})}};if([Vg,Hg].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:rne(y);let n,r=Wg(t,g);n=m===Vg?r[0]:m===Hg?r[r.length-1]:Gg(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=Xe(()=>{h=Kg(l,r);let e=y.getAttribute(`aria-controls`);S(Gg(document.getElementById(e),h.elements))},5);else if(x.offset<0){let e=o(b,!0),t=e[e.length-2],n=_.get(t);c(t,!1),S(n)}}l?.(p)}}function one(e){Promise.resolve().then(e)}var qg=`__RC_UTIL_PATH_SPLIT__`,Jg=e=>e.join(qg),sne=e=>e.split(qg),Yg=`rc-menu-more`;function cne(){let[,e]=v.useState({}),t=(0,v.useRef)(new Map),n=(0,v.useRef)(new Map),[r,i]=v.useState([]),a=(0,v.useRef)(0),o=(0,v.useRef)(!1),s=()=>{o.current||e({})},c=(0,v.useCallback)((e,r)=>{let i=Jg(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;one(()=>{o===a.current&&s()})},[]),l=(0,v.useCallback)((e,r)=>{let i=Jg(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,v.useCallback)(e=>{i(e)},[]),d=(0,v.useCallback)((e,n)=>{let i=sne(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(Yg),i},[r]),f=(0,v.useCallback)((e,t)=>e.filter(e=>e!==void 0).some(e=>d(e,!0).includes(t)),[d]),p=()=>{let e=[...t.current.keys()];return r.length&&e.push(Yg),e},m=(0,v.useCallback)(e=>{let r=`${t.current.get(e)}${qg}`,i=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return v.useEffect(()=>()=>{o.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:p,getSubPathKeys:m}}function Xg(e){let t=v.useRef(e);t.current=e;let n=v.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function Zg(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=v.useContext(Dg),s={active:i===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),o(e)}),s}function Qg(e){let{mode:t,rtl:n,inlineIndent:r}=v.useContext(Dg);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function $g({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e==`function`?r=v.createElement(e,{...t}):typeof e!=`boolean`&&(r=e),r||n||null)}function e_({item:e,...t}){return Object.defineProperty(t,`item`,{get:()=>(pe(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function t_(){return t_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t_.apply(this,arguments)}var lne=class extends v.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,i=he(r,[`eventKey`,`popupClassName`,`popupOffset`,`onTitleClick`]);return pe(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),v.createElement(qm.Item,t_({},t,{title:typeof e==`string`?e:void 0},i,{ref:n}))}},une=v.forwardRef((e,t)=>{let{style:n,className:r,eventKey:i,warnKey:a,disabled:o,itemIcon:s,children:c,role:l,onMouseEnter:u,onMouseLeave:d,onClick:f,onKeyDown:p,onFocus:m,...h}=e,g=Eg(i),{prefixCls:_,onItemClick:y,disabled:b,overflowDisabled:x,itemIcon:S,selectedKeys:C,onActive:w}=v.useContext(Dg),{_internalRenderMenuItem:T}=v.useContext(Pg),E=`${_}-item`,D=v.useRef(),O=v.useRef(),k=b||o,A=R(t,O),j=Mg(i),M=e=>({key:i,keyPath:[...j].reverse(),item:D.current,domEvent:e}),N=s||S,{active:P,...F}=Zg(i,k,u,d),I=C.includes(i),L=Qg(j.length),z=e=>{if(k)return;let t=M(e);f?.(e_(t)),y(t)},B=e=>{if(p?.(e),e.which===uu.ENTER){let t=M(e);f?.(e_(t)),y(t)}},V=e=>{w(i),m?.(e)},H={};e.role===`option`&&(H[`aria-selected`]=I);let U=v.createElement(lne,t_({ref:D,elementRef:A,role:l===null?`none`:l||`menuitem`,tabIndex:o?null:-1,"data-menu-id":x&&g?null:g},he(h,[`extra`]),F,H,{component:`li`,"aria-disabled":o,style:{...L,...n},className:G(E,{[`${E}-active`]:P,[`${E}-selected`]:I,[`${E}-disabled`]:k},r),onClick:z,onKeyDown:B,onFocus:V}),c,v.createElement($g,{props:{...e,isSelected:I},icon:N}));return T&&(U=T(U,e,{selected:I})),U});function dne(e,t){let{eventKey:n}=e,r=Ag(),i=Mg(n);return v.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:v.createElement(une,t_({},e,{ref:t}))}var n_=v.forwardRef(dne);function r_(){return r_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r_.apply(this,arguments)}var i_=v.forwardRef(({className:e,children:t,...n},r)=>{let{prefixCls:i,mode:a,rtl:o}=v.useContext(Dg);return v.createElement(`ul`,r_({className:G(i,o&&`${i}-rtl`,`${i}-sub`,`${i}-${a===`inline`?`inline`:`vertical`}`,e),role:`menu`},n,{"data-menu-list":!0,ref:r}),t)});function a_(e,t){return ge(e).map((e,n)=>{if(v.isValidElement(e)){let{key:r}=e,i=e.props?.eventKey??r;i??=`tmp_key-${[...t,n].join(`-`)}`;let a={key:i,eventKey:i};return v.cloneElement(e,a)}return e})}var o_={adjustX:1,adjustY:1},fne={topLeft:{points:[`bl`,`tl`],overflow:o_},topRight:{points:[`br`,`tr`],overflow:o_},bottomLeft:{points:[`tl`,`bl`],overflow:o_},bottomRight:{points:[`tr`,`br`],overflow:o_},leftTop:{points:[`tr`,`tl`],overflow:o_},leftBottom:{points:[`br`,`bl`],overflow:o_},rightTop:{points:[`tl`,`tr`],overflow:o_},rightBottom:{points:[`bl`,`br`],overflow:o_}},pne={topLeft:{points:[`bl`,`tl`],overflow:o_},topRight:{points:[`br`,`tr`],overflow:o_},bottomLeft:{points:[`tl`,`bl`],overflow:o_},bottomRight:{points:[`tr`,`br`],overflow:o_},rightTop:{points:[`tr`,`tl`],overflow:o_},rightBottom:{points:[`br`,`bl`],overflow:o_},leftTop:{points:[`tl`,`tr`],overflow:o_},leftBottom:{points:[`bl`,`br`],overflow:o_}};function s_(e,t,n){if(t)return t;if(n)return n[e]||n.other}var mne={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function hne({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:a,popupOffset:o,disabled:s,mode:c,onVisibleChange:l}){let{getPopupContainer:u,rtl:d,subMenuOpenDelay:f,subMenuCloseDelay:p,builtinPlacements:m,triggerSubMenuAction:h,forceSubMenuRender:g,rootClassName:_,motion:y,defaultMotions:b}=v.useContext(Dg),[x,S]=v.useState(!1),C=d?{...pne,...m}:{...fne,...m},w=mne[c],T=s_(c,y,b),E=v.useRef(T);c!==`inline`&&(E.current=T);let D={...E.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},O=v.useRef();return v.useEffect(()=>(O.current=Xe(()=>{S(t)}),()=>{Xe.cancel(O.current)}),[t]),v.createElement(Hl,{prefixCls:e,popupClassName:G(`${e}-popup`,{[`${e}-rtl`]:d},a,_),stretch:c===`horizontal`?`minWidth`:null,getPopupContainer:u,builtinPlacements:C,popupPlacement:w,popupVisible:x,popup:r,popupStyle:i,popupAlign:o&&{offset:o},action:s?[]:[h],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:l,forceRender:g,popupMotion:D,fresh:!0},n)}function c_(){return c_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c_.apply(this,arguments)}function gne({id:e,open:t,keyPath:n,children:r}){let i=`inline`,{prefixCls:a,forceSubMenuRender:o,motion:s,defaultMotions:c,mode:l}=v.useContext(Dg),u=v.useRef(!1);u.current=l===i;let[d,f]=v.useState(!u.current),p=u.current?t:!1;v.useEffect(()=>{u.current&&f(!1)},[l]);let m={...s_(i,s,c)};n.length>1&&(m.motionAppear=!1);let h=m.onVisibleChanged;return m.onVisibleChanged=e=>(!u.current&&!e&&f(!0),h?.(e)),d?null:v.createElement(Og,{mode:i,locked:!u.current},v.createElement(bs,c_({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>v.createElement(i_,{id:e,className:t,style:n},r)))}function l_(){return l_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l_.apply(this,arguments)}var _ne=v.forwardRef((e,t)=>{let{style:n,className:r,styles:i,classNames:a,title:o,eventKey:s,warnKey:c,disabled:l,internalPopupClose:u,children:d,itemIcon:f,expandIcon:p,popupClassName:m,popupOffset:h,popupStyle:g,onClick:_,onMouseEnter:y,onMouseLeave:b,onTitleClick:x,onTitleMouseEnter:S,onTitleMouseLeave:C,popupRender:w,...T}=e,E=Eg(s),{prefixCls:D,mode:O,openKeys:k,disabled:A,overflowDisabled:j,activeKey:M,selectedKeys:N,itemIcon:P,expandIcon:F,onItemClick:I,onOpenChange:L,onActive:R,popupRender:z}=v.useContext(Dg),{_internalRenderSubMenuItem:B}=v.useContext(Pg),{isSubPathKey:V}=v.useContext(Ng),H=Mg(),U=`${D}-submenu`,ee=A||l,te=v.useRef(),W=v.useRef(),ne=f??P,re=p??F,ie=k.includes(s),ae=!j&&ie,oe=V(N,s),{active:se,...ce}=Zg(s,ee,S,C),[le,ue]=v.useState(!1),de=e=>{ee||ue(e)},fe=e=>{de(!0),y?.({key:s,domEvent:e})},pe=e=>{de(!1),b?.({key:s,domEvent:e})},me=v.useMemo(()=>se||(O===`inline`?!1:le||V([M],s)),[O,se,M,le,s,V]),he=Qg(H.length),ge=e=>{ee||(x?.({key:s,domEvent:e}),O===`inline`&&L(s,!ie))},_e=Xg(e=>{_?.(e_(e)),I(e)}),ve=e=>{O!==`inline`&&L(s,e)},ye=()=>{R(s)},be=E&&`${E}-popup`,xe=v.useMemo(()=>v.createElement($g,{icon:O===`horizontal`?void 0:re,props:{...e,isOpen:ae,isSubMenu:!0}},v.createElement(`i`,{className:`${U}-arrow`})),[O,re,e,ae,U]),Se=v.createElement(`div`,l_({role:`menuitem`,style:he,className:`${U}-title`,tabIndex:ee?null:-1,ref:te,title:typeof o==`string`?o:null,"data-menu-id":j&&E?null:E,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":be,"aria-disabled":ee,onClick:ge,onFocus:ye},ce),o,xe),Ce=v.useRef(O);O!==`inline`&&H.length>1?Ce.current=`vertical`:Ce.current=O;let we=Ce.current,Te=v.useMemo(()=>{let t=v.createElement(Og,{classNames:a,styles:i,mode:we===`horizontal`?`vertical`:we},v.createElement(i_,{id:be,ref:W},d)),n=w||z;return n?n(t,{item:e,keys:H}):t},[w,z,H,be,d,e,we]);if(!j){let e=Ce.current;Se=v.createElement(hne,{mode:e,prefixCls:U,visible:!u&&ae&&O!==`inline`,popupClassName:m,popupOffset:h,popupStyle:g,popup:Te,disabled:ee,onVisibleChange:ve},Se)}let Ee=v.createElement(qm.Item,l_({ref:t,role:`none`},T,{component:`li`,style:n,className:G(U,`${U}-${O}`,r,{[`${U}-open`]:ae,[`${U}-active`]:me,[`${U}-selected`]:oe,[`${U}-disabled`]:ee}),onMouseEnter:fe,onMouseLeave:pe}),Se,!j&&v.createElement(gne,{id:be,open:ae,keyPath:H},d));return B&&(Ee=B(Ee,e,{selected:oe,active:me,open:ae,disabled:ee})),v.createElement(Og,{classNames:a,styles:i,onItemClick:_e,mode:O===`horizontal`?`vertical`:O,itemIcon:ne,expandIcon:re},Ee)}),u_=v.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=Mg(n),a=a_(r,i),o=Ag();v.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:v.createElement(_ne,l_({ref:t},e),a),v.createElement(jg.Provider,{value:i},s)});function d_({className:e,style:t}){let{prefixCls:n}=v.useContext(Dg);return Ag()?null:v.createElement(`li`,{role:`separator`,className:G(`${n}-item-divider`,e),style:t})}function f_(){return f_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f_.apply(this,arguments)}var vne=v.forwardRef((e,t)=>{let{className:n,title:r,eventKey:i,children:a,...o}=e,{prefixCls:s,classNames:c,styles:l}=v.useContext(Dg),u=`${s}-item-group`;return v.createElement(`li`,f_({ref:t,role:`presentation`},o,{onClick:e=>e.stopPropagation(),className:G(u,n)}),v.createElement(`div`,{role:`presentation`,className:G(`${u}-title`,c?.listTitle),style:l?.listTitle,title:typeof r==`string`?r:void 0},r),v.createElement(`ul`,{role:`group`,className:G(`${u}-list`,c?.list),style:l?.list},a))}),p_=v.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=a_(r,Mg(n));return Ag()?i:v.createElement(vne,f_({ref:t},he(e,[`warnKey`])),i)});function m_(){return m_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m_.apply(this,arguments)}function h_(e,t,n){let{item:r,group:i,submenu:a,divider:o}=t;return(e||[]).map((e,s)=>{if(e&&typeof e==`object`){let{label:c,children:l,key:u,type:d,extra:f,...p}=e,m=u??`tmp-${s}`;return l||d===`group`?d===`group`?v.createElement(i,m_({key:m},p,{title:c}),h_(l,t,n)):v.createElement(a,m_({key:m},p,{title:c}),h_(l,t,n)):d===`divider`?v.createElement(o,m_({key:m},p)):v.createElement(r,m_({key:m},p,{extra:f}),c,(!!f||f===0)&&v.createElement(`span`,{className:`${n}-item-extra`},f))}return null}).filter(e=>e)}function g_(e,t,n,r,i){let a=e,o={divider:d_,item:n_,group:p_,submenu:u_,...r};return t&&(a=h_(t,o,i)),a_(a,n)}function __(){return __=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},__.apply(this,arguments)}var v_=[],y_=v.forwardRef((e,t)=>{let{prefixCls:n=`rc-menu`,rootClassName:r,style:i,className:a,styles:o,classNames:s,tabIndex:c=0,items:l,children:u,direction:d,id:f,mode:p=`vertical`,inlineCollapsed:m,disabled:h,disabledOverflow:g,subMenuOpenDelay:_=.1,subMenuCloseDelay:y=.1,forceSubMenuRender:b,defaultOpenKeys:x,openKeys:S,activeKey:C,defaultActiveFirst:w,selectable:T=!0,multiple:D=!1,defaultSelectedKeys:O,selectedKeys:k,onSelect:A,onDeselect:j,inlineIndent:M=24,motion:N,defaultMotions:P,triggerSubMenuAction:F=`hover`,builtinPlacements:I,itemIcon:L,expandIcon:R,overflowedIndicator:z=`...`,overflowedIndicatorPopupClassName:B,getPopupContainer:V,onClick:H,onOpenChange:U,onKeyDown:ee,openAnimation:te,openTransitionName:W,_internalRenderMenuItem:ne,_internalRenderSubMenuItem:re,_internalComponents:ie,popupRender:ae,...oe}=e,[se,ce]=v.useMemo(()=>[g_(u,l,v_,ie,n),g_(u,l,v_,{},n)],[u,l,ie]),[le,ue]=v.useState(!1),de=v.useRef(),fe=Xc(f?`rc-menu-uuid-${f}`:`rc-menu-uuid`),pe=d===`rtl`,[me,he]=E(x,S),ge=me||v_,_e=(e,t=!1)=>{function n(){he(e),U?.(e)}t?(0,al.flushSync)(n):n()},[ve,ye]=v.useState(ge),be=v.useRef(!1),[xe,Se]=v.useMemo(()=>(p===`inline`||p===`vertical`)&&m?[`vertical`,m]:[p,!1],[p,m]),Ce=xe===`inline`,[we,Te]=v.useState(xe),[Ee,De]=v.useState(Se);v.useEffect(()=>{Te(xe),De(Se),be.current&&(Ce?he(ve):_e(v_))},[xe,Se]);let[Oe,ke]=v.useState(0),Ae=Oe>=se.length-1||we!==`horizontal`||g;v.useEffect(()=>{Ce&&ye(ge)},[ge]),v.useEffect(()=>(be.current=!0,()=>{be.current=!1}),[]);let{registerPath:je,unregisterPath:Me,refreshOverflowKeys:Ne,isSubPathKey:Pe,getKeyPath:Fe,getKeys:Ie,getSubPathKeys:Le}=cne(),Re=v.useMemo(()=>({registerPath:je,unregisterPath:Me}),[je,Me]),ze=v.useMemo(()=>({isSubPathKey:Pe}),[Pe]);v.useEffect(()=>{Ne(Ae?v_:se.slice(Oe+1).map(e=>e.key))},[Oe,Ae]);let[Be,Ve]=E(C||w&&se[0]?.key,C),He=Xg(e=>{Ve(e)}),Ue=Xg(()=>{Ve(void 0)});(0,v.useImperativeHandle)(t,()=>({list:de.current,focus:e=>{let t=Ie(),{elements:n,key2element:r,element2key:i}=Kg(t,fe),a=Wg(de.current,n),o;o=Be&&t.includes(Be)?Be:a[0]?i.get(a[0]):se.find(e=>!e.props.disabled)?.key;let s=r.get(o);o&&s&&s?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=Kg(Ie(),fe);return t.get(e)||null}}));let[We,Ge]=E(O||[],k),Ke=v.useMemo(()=>Array.isArray(We)?We:We==null?v_:[We],[We]),qe=e=>{if(T){let{key:t}=e,n=Ke.includes(t),r;r=D?n?Ke.filter(e=>e!==t):[...Ke,t]:[t],Ge(r);let i={...e,selectedKeys:r};n?j?.(i):A?.(i)}!D&&ge.length&&we!==`inline`&&_e(v_)},Je=Xg(e=>{H?.(e_(e)),qe(e)}),Ye=Xg((e,t)=>{let n=ge.filter(t=>t!==e);if(t)n.push(e);else if(we!==`inline`){let t=Le(e);n=n.filter(e=>!t.has(e))}vt(ge,n,!0)||_e(n,!0)}),Xe=ane(we,Be,pe,fe,de,Ie,Fe,Ve,(e,t)=>{Ye(e,t??!ge.includes(e))},ee);v.useEffect(()=>{ue(!0)},[]);let Ze=v.useMemo(()=>({_internalRenderMenuItem:ne,_internalRenderSubMenuItem:re}),[ne,re]),Qe=we!==`horizontal`||g?se:se.map((e,t)=>v.createElement(Og,{key:e.key,overflowDisabled:t>Oe,classNames:s,styles:o},e)),$e=v.createElement(qm,__({id:f,ref:de,prefixCls:`${n}-overflow`,component:`ul`,itemComponent:n_,className:G(n,`${n}-root`,`${n}-${we}`,a,{[`${n}-inline-collapsed`]:Ee,[`${n}-rtl`]:pe},r),dir:d,style:i,role:`menu`,tabIndex:c,data:Qe,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?se.slice(-t):null;return v.createElement(u_,{eventKey:Yg,title:z,disabled:Ae,internalPopupClose:t===0,popupClassName:B},n)},maxCount:we!==`horizontal`||g?qm.INVALIDATE:qm.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{ke(e)},onKeyDown:Xe},oe));return v.createElement(Pg.Provider,{value:Ze},v.createElement(wg.Provider,{value:fe},v.createElement(Og,{prefixCls:n,rootClassName:r,classNames:s,styles:o,mode:we,openKeys:ge,rtl:pe,disabled:h,motion:le?N:null,defaultMotions:le?P:null,activeKey:Be,onActive:He,onInactive:Ue,selectedKeys:Ke,inlineIndent:M,subMenuOpenDelay:_,subMenuCloseDelay:y,forceSubMenuRender:b,builtinPlacements:I,triggerSubMenuAction:F,getPopupContainer:V,itemIcon:L,expandIcon:R,onItemClick:Je,onOpenChange:Ye,popupRender:ae},v.createElement(Ng.Provider,{value:ze},$e),v.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},v.createElement(kg.Provider,{value:Re},ce)))))});y_.Item=n_,y_.SubMenu=u_,y_.ItemGroup=p_,y_.Divider=d_;var yne={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`bars`,theme:`outlined`};function b_(){return b_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b_.apply(this,arguments)}var bne=v.forwardRef((e,t)=>v.createElement(Co,b_({},e,{ref:t,icon:yne}))),x_=v.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),xne=e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:c,fontSize:l,bodyBg:u,headerBg:d}=e;return{[n]:{display:`flex`,flex:`auto`,flexDirection:`column`,minHeight:0,background:u,"&, *":{boxSizing:`border-box`},[`&${n}-has-sider`]:{flexDirection:`row`,[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:`0 0 auto`},"&-rtl":{direction:`rtl`}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:K(a),background:d,[`${t}-menu`]:{lineHeight:`inherit`}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:`auto`,color:r,minHeight:0}}},S_=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:c}=e,l=r*1.25;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`,bodyBg:t,headerBg:`#001529`,headerHeight:n*2,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${a}px ${l}px`,footerBg:t,siderBg:`#001529`,triggerHeight:r+o*2,triggerBg:`#002140`,triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},C_=[[`colorBgBody`,`bodyBg`],[`colorBgHeader`,`headerBg`],[`colorBgTrigger`,`triggerBg`]],w_=Xa(`Layout`,xne,S_,{deprecatedTokens:C_}),Sne=Xa([`Layout`,`Sider`],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:`relative`,minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:`100%`,marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:`auto`}},[`&-zero-width ${t}-children`]:{overflow:`hidden`},[`${t}-trigger`]:{position:`fixed`,bottom:0,zIndex:1,height:o,color:s,lineHeight:K(o),textAlign:`center`,background:c,cursor:`pointer`,transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:`absolute`,top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:n,borderRadius:`0 ${K(f)} ${K(f)} 0`,cursor:`pointer`,transition:`background-color ${i} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${i}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${K(f)} 0 0 ${K(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:h},[`${t}-zero-width-trigger`]:{color:m,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},S_,{deprecatedTokens:C_}),T_={xs:`479.98px`,sm:`575.98px`,md:`767.98px`,lg:`991.98px`,xl:`1199.98px`,xxl:`1599.98px`,xxxl:`1839.98px`},Cne=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),E_=v.createContext({}),wne=(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})(),D_=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s=`dark`,style:c={},collapsible:l=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:h,onBreakpoint:g,..._}=e,{siderHook:y}=(0,v.useContext)(x_),[b,x]=(0,v.useState)(`collapsed`in e?e.collapsed:o),[S,C]=(0,v.useState)(!1);(0,v.useEffect)(()=>{`collapsed`in e&&x(e.collapsed)},[e.collapsed]);let w=(t,n)=>{`collapsed`in e||x(t),h?.(t,n)},{getPrefixCls:T,direction:E}=(0,v.useContext)($e),D=T(`layout-sider`,n),[O,k]=Sne(D),A=(0,v.useRef)(null);A.current=e=>{C(e.matches),g?.(e.matches),b!==e.matches&&w(e.matches,`responsive`)},(0,v.useEffect)(()=>{function e(e){return A.current?.(e)}let t;return window?.matchMedia!==void 0&&m&&m in T_&&(t=window.matchMedia(`screen and (max-width: ${T_[m]})`),typeof t?.addEventListener==`function`&&t.addEventListener(`change`,e),e(t)),()=>{typeof t?.removeEventListener==`function`&&t.removeEventListener(`change`,e)}},[m]),(0,v.useEffect)(()=>{let e=wne(`ant-sider-`);return y.addSider(e),()=>y.removeSider(e)},[]);let j=()=>{w(!b,`clickTrigger`)},M=he(_,[`collapsed`]),N=b?f:d,P=Cne(N)?`${N}px`:String(N),F=Number.parseFloat(String(f||0))===0?v.createElement(`span`,{onClick:j,className:G(`${D}-zero-width-trigger`,`${D}-zero-width-trigger-${u?`right`:`left`}`),style:p},i||v.createElement(bne,null)):null,I=E===`rtl`==!u,L={expanded:I?v.createElement(qd,null):v.createElement(yg,null),collapsed:I?v.createElement(yg,null):v.createElement(qd,null)}[b?`collapsed`:`expanded`],R=i===null?null:F||v.createElement(`div`,{className:`${D}-trigger`,onClick:j,style:{width:P}},i||L),z={...c,flex:`0 0 ${P}`,maxWidth:P,minWidth:P,width:P},B=G(D,`${D}-${s}`,{[`${D}-collapsed`]:!!b,[`${D}-has-trigger`]:l&&i!==null&&!F,[`${D}-below`]:!!S,[`${D}-zero-width`]:Number.parseFloat(P)===0},r,O,k),V=v.useMemo(()=>({siderCollapsed:b}),[b]);return v.createElement(E_.Provider,{value:V},v.createElement(`aside`,{className:B,...M,style:z,ref:t},v.createElement(`div`,{className:`${D}-children`},a),l||S&&F?R:null))}),Tne={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`ellipsis`,theme:`outlined`};function O_(){return O_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O_.apply(this,arguments)}var k_=v.forwardRef((e,t)=>v.createElement(Co,O_({},e,{ref:t,icon:Tne}))),A_=(0,v.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),j_=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=v.useContext($e),o=G({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return v.createElement(d_,{className:o,...i})},M_=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,styles:p,classNames:m}=v.useContext(A_),h=e=>{let t=n?.[0],i=v.createElement(`span`,{className:G(`${s}-title-content`,c?m?.itemContent:m?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!o||o===0}),style:c?p?.itemContent:p?.subMenu?.itemContent},n);return(!r||v.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?v.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},{siderCollapsed:g}=v.useContext(E_),_=i;i===void 0?_=c?n:``:i===!1&&(_=``);let y=d===!1?void 0:d,b=y&&y.title!==void 0?y.title:_,x={...y??null,title:b};!g&&!f&&(x.title=null,x.open=!1);let S=ge(n).length,C=v.createElement(n_,{...he(e,[`title`,`icon`,`danger`]),className:G(c?m?.item:m?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?S+1:S)===1},t),style:{...c?p?.item:p?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0},Gl(r,e=>({className:G(`${s}-item-icon`,c?m?.itemIcon:m?.subMenu?.itemIcon,e.className),style:{...c?p?.itemIcon:p?.subMenu?.itemIcon,...e.style}})),h(f));if(!u&&d!==!1){let e=y&&y.placement?y.placement:l===`rtl`?`left`:`right`,t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:G(t,e?.root)}),r=y&&typeof y.classNames==`function`?e=>n(y.classNames(e)):n(y?.classNames);C=v.createElement(_g,{...x,placement:e,classNames:r},C)}return C},N_=v.createContext(null),P_=v.forwardRef((e,t)=>{let{children:n,...r}=e,i=v.useContext(N_),a=v.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=V(n),s=R(t,o?H(n):null);return v.createElement(N_.Provider,{value:a},v.createElement(im,{space:!0},o?v.cloneElement(n,{ref:s}):n))}),Ene=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${K(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
|
||
> ${t}-item-active,
|
||
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},Dne=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:`rtl`},[`${e}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${e}-rtl${e}-vertical,
|
||
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${K(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${K(t)})`}}}}),F_=e=>Wa(e),I_=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:{...F_(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...F_(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:{...t===`dark`?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${K(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${K(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${K(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${m}`).join(`,`)}}}}}},L_=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:K(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
|
||
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:K(n)},[`${t}-item-group-list ${t}-submenu-title,
|
||
${t}-submenu-title`]:{paddingInlineEnd:u}}},One=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:c,itemMarginInline:l,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:h,collapsedIconSize:g}=e,_={height:r,lineHeight:K(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...L_(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...L_(e),boxShadow:m}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${K(e.calc(o).mul(2.5).equal())})`,padding:`0`,overflow:`hidden`,borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:`hidden`,overflowY:`auto`}}},{[`${t}-inline`]:{width:`100%`,[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,transition:[`border-color ${f}`,`background-color ${f}`,`padding ${d} ${s}`].join(`,`),[`> ${t}-title-content`]:{flex:`auto`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},"> *":{flex:`none`}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:`none`,[`& > ${t}-submenu > ${t}-submenu-title`]:_,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:_}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:`center`}}},[`> ${t}-item,
|
||
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
||
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
||
> ${t}-submenu > ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,insetInlineStart:0,paddingInline:`calc(50% - ${K(e.calc(g).div(2).equal())} - ${K(l)})`,textOverflow:`clip`,[`
|
||
${t}-submenu-arrow,
|
||
${t}-submenu-expand-icon
|
||
`]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:K(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...Ba,paddingInline:p}}}]},R_=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:{...Ha()},[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:`none !important`,cursor:`not-allowed`,"&::after":{borderColor:`transparent !important`},a:{color:`inherit !important`,cursor:`not-allowed`,pointerEvents:`none`},[`> ${t}-submenu-title`]:{color:`inherit !important`,cursor:`not-allowed`}}}},z_=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:[`transform`,`opacity`].map(e=>`${e} ${n}`).join(`,`)},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${K(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${K(o)})`}}}}},kne=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v}=e;return[{"":{[n]:{...Ua(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...Va(e),...Ua(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:`none`},"&-overflow":{display:`flex`,[`${n}-item`]:{flex:`none`}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${K(s)} ${K(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${a}`].map(e=>`${e} ${o}`).join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> ${t}-typography-ellipsis-single-line`]:{display:`inline`,verticalAlign:`unset`},[`${n}-item-extra`]:{marginInlineStart:`auto`,paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${n}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}},...R_(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${K(e.calc(r).mul(2).equal())} ${K(c)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:d,borderRadius:f,boxShadow:`none`,transformOrigin:`0 0`,[`&${n}-submenu`]:{background:`transparent`},"&::before":{position:`absolute`,inset:0,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`},[`> ${n}`]:{borderRadius:f,...R_(e),...z_(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:`100% 0`},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:`100% 100%`},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:`0 100%`},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:`0 0`},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...z_(e),[`&-inline-collapsed ${n}-submenu-arrow,
|
||
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${K(h)})`},"&::after":{transform:`rotate(45deg) translateX(${K(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${K(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${K(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${K(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},B_=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new ji(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new ji(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},V_=(e,t=e,n=!0)=>Xa(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=li(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=li(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[kne(x),Ene(x),One(x),I_(x,`light`),I_(S,`dark`),Dne(x),Qu(x),xd(x,`slide-up`),xd(x,`slide-down`),Id(x,`zoom-big`)]},B_,{deprecatedTokens:[[`colorGroupTitle`,`groupTitleColor`],[`radiusItem`,`itemBorderRadius`],[`radiusSubMenuItem`,`subMenuItemBorderRadius`],[`colorItemText`,`itemColor`],[`colorItemTextHover`,`itemHoverColor`],[`colorItemTextHoverHorizontal`,`horizontalItemHoverColor`],[`colorItemTextSelected`,`itemSelectedColor`],[`colorItemTextSelectedHorizontal`,`horizontalItemSelectedColor`],[`colorItemTextDisabled`,`itemDisabledColor`],[`colorDangerItemText`,`dangerItemColor`],[`colorDangerItemTextHover`,`dangerItemHoverColor`],[`colorDangerItemTextSelected`,`dangerItemSelectedColor`],[`colorDangerItemBgActive`,`dangerItemActiveBg`],[`colorDangerItemBgSelected`,`dangerItemSelectedBg`],[`colorItemBg`,`itemBg`],[`colorItemBgHover`,`itemHoverBg`],[`colorSubItemBg`,`subMenuItemBg`],[`colorItemBgActive`,`itemActiveBg`],[`colorItemBgSelectedHorizontal`,`horizontalItemSelectedBg`],[`colorActiveBarWidth`,`activeBarWidth`],[`colorActiveBarHeight`,`activeBarHeight`],[`colorActiveBarBorderSize`,`activeBarBorderWidth`],[`colorItemBgSelected`,`itemSelectedBg`]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),H_=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=v.useContext(A_),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=Mg(),f;if(!n)f=s&&!d.length&&r&&typeof r==`string`?v.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):v.createElement(`span`,{className:`${o}-title-content`},r);else{let e=v.isValidElement(r)&&r.type===`span`;f=v.createElement(v.Fragment,null,Gl(n,e=>({className:G(e.className,`${o}-item-icon`,l?.itemIcon),style:{...e.style,...u?.itemIcon}})),e?r:v.createElement(`span`,{className:`${o}-title-content`},r))}let p=v.useMemo(()=>({...a,firstLevel:!1}),[a]),[m]=Ec(`Menu`);return v.createElement(A_.Provider,{value:p},v.createElement(u_,{...he(e,[`icon`]),title:f,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:G(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:m,...e.popupStyle,...u?.popup?.root}}))};function U_(e){return e===null||e===!1}var Ane={item:M_,submenu:H_,divider:j_},jne=(0,v.forwardRef)((e,t)=>{let n=v.useContext(N_),r=n||{},{prefixCls:i,className:a,style:o,theme:s=`light`,expandIcon:c,_internalDisableMenuItemTitleTooltip:l,tooltip:u,inlineCollapsed:d,siderCollapsed:f,rootClassName:p,mode:m,selectable:h,onClick:g,overflowedIndicatorPopupClassName:_,classNames:y,styles:x,...S}=e,{menu:C}=v.useContext($e),{getPrefixCls:w,getPopupContainer:T,direction:E,className:D,style:O,classNames:k,styles:A}=nt(`menu`),j=w(),M=he(S,[`collapsedWidth`]);r.validator?.({mode:m});let N=b((...e)=>{g?.(...e),r.onClick?.()}),P=r.mode||m,F=h??r.selectable,I=d??f,L={...e,mode:P,inlineCollapsed:I,selectable:F,theme:s},[R,z]=mc([k,y],[A,x],{props:L},{popup:{_default:`root`},subMenu:{_default:`item`}}),B={horizontal:{motionName:`${j}-slide-up`},inline:Su(j),other:{motionName:`${j}-zoom-big`}},V=w(`menu`,i||r.prefixCls),H=jc(V),[U,ee]=V_(V,H,!n),te=G(`${V}-${s}`,D,a),W=v.useMemo(()=>{if(typeof c==`function`||U_(c))return c||null;if(typeof r.expandIcon==`function`||U_(r.expandIcon))return r.expandIcon||null;if(typeof C?.expandIcon==`function`||U_(C?.expandIcon))return C?.expandIcon||null;let e=c??r?.expandIcon??C?.expandIcon;return Gl(e,{className:G(`${V}-submenu-expand-icon`,v.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,C?.expandIcon,V]),ne=v.useMemo(()=>({prefixCls:V,inlineCollapsed:I||!1,direction:E,firstLevel:!0,theme:s,mode:P,disableMenuItemTitleTooltip:l,tooltip:u,classNames:R,styles:z}),[V,I,E,l,s,P,R,z,u]);return v.createElement(N_.Provider,{value:null},v.createElement(A_.Provider,{value:ne},v.createElement(y_,{getPopupContainer:T,overflowedIndicator:v.createElement(k_,null),overflowedIndicatorPopupClassName:G(V,`${V}-${s}`,_),classNames:{list:R.list,listTitle:R.itemTitle},styles:{list:z.list,listTitle:z.itemTitle},mode:P,selectable:F,onClick:N,...M,inlineCollapsed:I,style:{...z.root,...O,...o},className:te,prefixCls:V,direction:E,defaultMotions:B,expandIcon:W,ref:t,rootClassName:G(p,U,r.rootClassName,ee,H,R.root),_internalComponents:Ane})))}),W_=(0,v.forwardRef)((e,t)=>{let n=(0,v.useRef)(null),r=v.useContext(E_);return(0,v.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),v.createElement(jne,{ref:n,...e,...r})});W_.Item=M_,W_.SubMenu=H_,W_.Divider=j_,W_.ItemGroup=p_;var Mne=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},Nne=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`100vh`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft,
|
||
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft,
|
||
&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom,
|
||
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom,
|
||
&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight,
|
||
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:fd},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft,
|
||
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft,
|
||
&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top,
|
||
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top,
|
||
&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight,
|
||
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:md},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft,
|
||
&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom,
|
||
&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:pd},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft,
|
||
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top,
|
||
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:hd}}},lg(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:`relative`,margin:0},[`${n}-submenu-popup`]:{position:`absolute`,zIndex:r,background:`transparent`,boxShadow:`none`,transformOrigin:`0 0`,"ul, li":{listStyle:`none`,margin:0}},[`${t}, ${t}-menu-submenu`]:{...Va(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...Ga(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${K(l)} ${K(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},"> a":{color:`inherit`,transition:`all ${c}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:`flex`,margin:0,padding:`${K(l)} ${K(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Ga(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${K(e.marginXXS)} 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorIcon,fontSize:p,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${K(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[xd(e,`slide-up`),xd(e,`slide-down`),dd(e,`move-up`),dd(e,`move-down`),Id(e,`zoom-big`)]]},Pne=Xa(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=li(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Nne(a),Mne(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...sg({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...og(e)}),{resetStyle:!1}),G_=e=>{let{menu:t,arrow:n,prefixCls:r,children:i,trigger:a,disabled:o,dropdownRender:s,popupRender:c,getPopupContainer:l,overlayClassName:u,rootClassName:d,overlayStyle:f,open:p,onOpenChange:m,mouseEnterDelay:h=.15,mouseLeaveDelay:g=.1,autoAdjustOverflow:_=!0,placement:y=``,transitionName:x,classNames:S,styles:C,destroyPopupOnHide:w,destroyOnHidden:T}=e,{getPrefixCls:D,direction:O,getPopupContainer:k,className:A,style:j,classNames:M,styles:N}=nt(`dropdown`),P={...e,mouseEnterDelay:h,mouseLeaveDelay:g,autoAdjustOverflow:_},[F,I]=mc([M,S],[N,C],{props:P}),L={...j,...f,...I.root},R=c||s;be(`Dropdown`);let z=v.useMemo(()=>{let e=D();return x===void 0?y.includes(`top`)?`${e}-slide-down`:`${e}-slide-up`:x},[D,y,x]),B=v.useMemo(()=>y?y.includes(`Center`)?y.slice(0,y.indexOf(`Center`)):y:O===`rtl`?`bottomRight`:`bottomLeft`,[y,O]),V=D(`dropdown`,r),H=jc(V),[U,ee]=Pne(V,H),[,te]=za(),W=v.Children.only($s(i)?v.createElement(`span`,null,i):i),ne=Gl(W,{className:G(`${V}-trigger`,{[`${V}-rtl`]:O===`rtl`},W.props.className),disabled:W.props.disabled??o}),re=o?[]:a,ie=!!re?.includes(`contextMenu`),[ae,oe]=E(!1,p),se=b(e=>{m?.(e,{source:`trigger`}),oe(e)}),ce=G(u,d,U,ee,H,A,F.root,{[`${V}-rtl`]:O===`rtl`}),le=dg({arrowPointAtCenter:Zs(n)&&n.pointAtCenter,autoAdjustOverflow:_,offset:te.marginXXS,arrowWidth:n?te.sizePopupArrow:0,borderRadius:te.borderRadius}),ue=b(()=>{t?.selectable&&t?.multiple||(m?.(!1,{source:`menu`}),oe(!1))}),de=()=>{let e=he(F,[`root`]),n=he(I,[`root`]),r;return t?.items&&(r=v.createElement(W_,{...t,classNames:{...e,subMenu:{...e}},styles:{...n,subMenu:{...n}}})),R&&(r=R(r)),r=v.Children.only(typeof r==`string`?v.createElement(`span`,null,r):r),v.createElement(P_,{prefixCls:`${V}-menu`,rootClassName:G(ee,H),expandIcon:v.createElement(`span`,{className:`${V}-menu-submenu-arrow`},O===`rtl`?v.createElement(yg,{className:`${V}-menu-submenu-arrow-icon`}):v.createElement(qd,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:ue,validator:({mode:e})=>{}},r)},[fe,pe]=Ec(`Dropdown`,L.zIndex),me=v.createElement(Cg,{alignPoint:ie,...he(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:h,mouseLeaveDelay:g,visible:ae,builtinPlacements:le,arrow:!!n,overlayClassName:ce,prefixCls:V,getPopupContainer:l||k,transitionName:z,trigger:re,overlay:de,placement:B,onVisibleChange:se,overlayStyle:{...L,zIndex:fe},autoDestroy:T??w},ne);return fe&&(me=v.createElement(xc.Provider,{value:pe},me)),me},Fne=ym(G_,`align`,void 0,`dropdown`,e=>e);G_._InternalPanelDoNotUseOrYouWillBeFired=e=>v.createElement(Fne,{...e},v.createElement(`span`,null));var K_=yf;function Ine(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Lne(e){return Ine(e).join(`_`)}var q_=v.createContext(void 0),Rne=q_.Provider,J_=v.createContext(void 0),zne=J_.Provider;function Y_(){return Y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y_.apply(this,arguments)}var X_=(0,v.forwardRef)((e,t)=>{let{prefixCls:n=`rc-checkbox`,className:r,style:i,checked:a,disabled:o,defaultChecked:s=!1,type:c=`checkbox`,title:l,onChange:u,...d}=e,f=(0,v.useRef)(null),p=(0,v.useRef)(null),[m,h]=E(s,a);(0,v.useImperativeHandle)(t,()=>({focus:e=>{f.current?.focus(e)},blur:()=>{f.current?.blur()},input:f.current,nativeElement:p.current}));let g=G(n,r,{[`${n}-checked`]:m,[`${n}-disabled`]:o});return v.createElement(`span`,{className:g,title:l,style:i,ref:p},v.createElement(`input`,Y_({},d,{className:`${n}-input`,ref:f,onChange:t=>{o||(`checked`in e||h(t.target.checked),u?.({target:{...e,type:c,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:o,checked:!!m,type:c})))});function Z_(e){let t=v.useRef(null),n=()=>{Xe.cancel(t.current),t.current=null};return[()=>{n(),t.current=Xe(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),e?.(r)}]}var Bne=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:{...Va(e),display:`inline-block`,fontSize:0,[`&${r}-rtl`]:{direction:`rtl`},[`&${r}-block`]:{display:`flex`},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:`none`},"&-vertical":{display:`flex`,flexDirection:`column`,rowGap:e.marginXS,[`${t}-wrapper`]:{marginInlineEnd:0}}}}},Vne=e=>{let{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,colorPrimaryHover:i,radioSize:a,motionDurationSlow:o,motionDurationMid:s,motionEaseInOutCirc:c,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:p,paddingXS:m,dotColorDisabled:h,dotSize:g,lineType:_,radioColor:v,radioBgColor:y}=e;return{[`${t}-wrapper`]:{...Va(e),display:`inline-flex`,alignItems:`baseline`,marginInlineStart:0,marginInlineEnd:n,cursor:`pointer`,"&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:`rtl`},"&-disabled":{cursor:`not-allowed`,color:e.colorTextDisabled},"&::after":{display:`inline-block`,width:0,overflow:`hidden`,content:`"\\a0"`},"&-block":{flex:1,justifyContent:`center`},[t]:{...Va(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:`calc(${a} * 1px)`,height:`calc(${a} * 1px)`,backgroundColor:l,border:`${K(d)} ${_} ${u}`,borderRadius:`50%`,transition:`all ${s}`,flex:`none`,"&:after":{content:`""`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%) scale(0)`,width:`calc(${g} * 1px)`,height:`calc(${g} * 1px)`,backgroundColor:v,borderRadius:`50%`,transformOrigin:`50% 50%`,opacity:0,transition:`all ${o} ${c}`},[`${t}-input`]:{position:`absolute`,inset:0,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:Wa(e)},[`&:hover:not(${t}-wrapper-disabled) ${t}`]:{borderColor:r},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:i,borderColor:`transparent`},[`${t}-checked`]:{backgroundColor:y,borderColor:r,"&::after":{transform:`translate(-50%, -50%)`,opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:f,borderColor:u,"&::after":{backgroundColor:h}},[`${t}-disabled + span`]:{color:p,cursor:`not-allowed`},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}}}},Hne=e=>{let{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationMid:s,buttonPaddingInline:c,fontSize:l,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:p,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:_,buttonCheckedBg:v,buttonSolidCheckedColor:y,colorTextDisabled:b,colorBgContainerDisabled:x,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:C,colorPrimary:w,colorPrimaryHover:T,colorPrimaryActive:E,buttonSolidCheckedBg:D,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:k,calc:A}=e;return{[`${r}-button-wrapper`]:{position:`relative`,display:`inline-block`,height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:l,lineHeight:K(A(n).sub(A(i).mul(2)).equal()),background:u,border:`${K(i)} ${a} ${o}`,borderBlockStartWidth:A(i).add(.02).equal(),borderInlineEndWidth:i,cursor:`pointer`,transition:[`color`,`background-color`,`box-shadow`].map(e=>`${e} ${s}`).join(`,`),a:{color:t},[`> ${r}-button`]:{position:`absolute`,insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:`100%`,height:`100%`},"&:not(:last-child)":{marginInlineEnd:A(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${K(i)} ${a} ${o}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:K(A(f).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},[`${r}-group-small &`]:{height:p,paddingInline:A(m).sub(i).equal(),paddingBlock:0,lineHeight:K(A(p).sub(A(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:`relative`,color:w},"&:has(:focus-visible)":Wa(e),[`${r}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:`none`},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:v,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:T,borderColor:T,"&::before":{backgroundColor:T}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:D,borderColor:D,"&:hover":{color:y,background:O,borderColor:O},"&:active":{color:y,background:k,borderColor:k}},"&-disabled":{color:b,backgroundColor:x,borderColor:o,cursor:`not-allowed`,"&:first-child, &:hover":{color:b,backgroundColor:x,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:S,borderColor:o,boxShadow:`none`},"&-block":{flex:1,textAlign:`center`}}}},Q_=Xa(`Radio`,e=>{let{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${K(n)} ${t}`,i=li(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Bne(i),Vne(i),Hne(i)]},e=>{let{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:a,colorText:o,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:l,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:p,colorWhite:m}=e,h=a;return{radioSize:h,dotSize:t?h-8:h-(4+i)*2,dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:l,buttonCheckedColorDisabled:c,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},{unitless:{radioSize:!0,dotSize:!0}}),$_=v.forwardRef((e,t)=>{let n=v.useContext(q_),r=v.useContext(J_),{getPrefixCls:i,direction:a,className:o,style:s,classNames:c,styles:l}=nt(`radio`),u=L(t,v.useRef(null)),{isFormItemInput:d}=v.useContext(rm),f=t=>{e.onChange?.(t),n?.onChange?.(t)},{prefixCls:p,className:m,rootClassName:h,children:g,style:_,title:y,classNames:b,styles:x,...S}=e,C=i(`radio`,p),w=(n?.optionType||r)===`button`,T=w?`${C}-button`:C,E=jc(C),[D,O]=Q_(C,E),k={...S},A=v.useContext(Xl),j=k.checked;n&&(k.name=n.name,k.onChange=f,j=e.value===n.value,k.disabled=k.disabled??n.disabled),k.disabled=k.disabled??A;let M={...e,...k,checked:j},[N,P]=mc([c,b],[l,x],{props:M}),F=G(`${T}-wrapper`,{[`${T}-wrapper-checked`]:j,[`${T}-wrapper-disabled`]:k.disabled,[`${T}-wrapper-rtl`]:a===`rtl`,[`${T}-wrapper-in-form-item`]:d,[`${T}-wrapper-block`]:!!n?.block},o,m,h,N.root,D,O,E),[I,R]=Z_(k.onClick);return v.createElement(Mu,{component:`Radio`,disabled:k.disabled},v.createElement(`label`,{className:F,style:{...P.root,...s,..._},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:I},v.createElement(X_,{...k,checked:j,className:G(N.icon,{[Tu]:!w}),style:P.icon,type:`radio`,prefixCls:T,ref:u,onClick:R}),g===void 0?null:v.createElement(`span`,{className:G(`${T}-label`,N.label),style:P.label},g)))}),Une=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=v.useContext($e),{name:i}=v.useContext(rm),a=Xc(Lne(i)),{prefixCls:o,className:s,rootClassName:c,options:l,buttonStyle:u=`outline`,disabled:d,children:f,size:p,style:m,id:h,optionType:g,name:_=a,defaultValue:y,value:b,block:x=!1,onChange:S,onMouseEnter:C,onMouseLeave:w,onFocus:T,onBlur:D,orientation:O,vertical:k,role:A=`radiogroup`}=e,[j,M]=E(y,b),N=v.useCallback(t=>{let n=j,r=t.target.value;`value`in e||M(r),r!==n&&S?.(t)},[j,M,S]),P=n(`radio`,o),F=`${P}-group`,I=jc(P),[L,R]=Q_(P,I),z=f;l&&l.length>0&&(z=l.map(e=>typeof e==`string`||Ys(e)?v.createElement($_,{key:e.toString(),prefixCls:P,disabled:d,value:e,checked:j===e},e):v.createElement($_,{key:`radio-group-value-options-${e.value}`,prefixCls:P,disabled:e.disabled||d,value:e.value,checked:j===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));let B=Nu(p),[,V]=_c(O,k),H=G(F,`${F}-${u}`,{[`${F}-large`]:B===`large`,[`${F}-small`]:B===`small`,[`${F}-rtl`]:r===`rtl`,[`${F}-block`]:x},s,c,L,R,I),U=v.useMemo(()=>({onChange:N,value:j,disabled:d,name:_,optionType:g,block:x}),[N,j,d,_,g,x]);return v.createElement(`div`,{...Ts(e,{aria:!0,data:!0}),role:A,className:G(H,{[`${P}-group-vertical`]:V}),style:m,onMouseEnter:C,onMouseLeave:w,onFocus:T,onBlur:D,id:h,ref:t},v.createElement(Rne,{value:U},z))}),Wne=v.memo(Une),Gne=v.forwardRef((e,t)=>{let{getPrefixCls:n}=v.useContext($e),{prefixCls:r,...i}=e,a=n(`radio`,r);return v.createElement(zne,{value:`button`},v.createElement($_,{prefixCls:a,...i,type:`radio`,ref:t}))}),ev=$_;ev.Button=Gne,ev.Group=Wne,ev.__ANT_RADIO=!0;function tv(e){return li(e,{inputAffixPadding:e.paddingXXS})}var nv=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}},rv=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),iv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"input[disabled], textarea[disabled]":{cursor:`not-allowed`},"&:hover:not([disabled])":{...rv(li(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),av=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),ov=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...av(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Kne=(e,t)=>({"&-outlined":{...av(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...iv(e)},...ov(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...ov(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),sv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),qne=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...sv(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...sv(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...iv(e)}}}}),Jne=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":{background:`transparent`,border:`none`,paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:`none`},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},cv=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:`transparent`,"input&, & input, textarea&, & textarea":{color:t?.inputColor??`unset`},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),lv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...cv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Yne=(e,t)=>({"&-filled":{...cv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...iv(e)},...lv(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...lv(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),uv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Xne=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...uv(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...uv(e,{status:`warning`,addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),dv=(e,t)=>({background:e.colorBgContainer,borderWidth:`${K(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),fv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...dv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Zne=(e,t)=>({"&-underlined":{...dv(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`,"&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:`not-allowed`},...fv(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...fv(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),Qne=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),pv=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${K(t)} ${K(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},mv=e=>({padding:`${K(e.paddingBlockSM)} ${K(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),hv=(e,t={})=>({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${K(e.paddingBlock)} ${K(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...Qne(e.colorTextPlaceholder),"&-lg":{...pv(e),...t.largeStyle},"&-sm":{...mv(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),$ne=e=>{let{componentCls:t,antCls:n}=e;return{position:`relative`,display:`table`,width:`100%`,borderCollapse:`separate`,borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...pv(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...mv(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:`table-cell`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:`table-cell`,width:1,whiteSpace:`nowrap`,verticalAlign:`middle`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:`block !important`},"&-addon":{position:`relative`,padding:`0 ${K(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${K(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${K(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${K(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${K(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:`transparent`,[`${n}-cascader-input`]:{textAlign:`start`,border:0,boxShadow:`none`}}}},[t]:{width:`100%`,marginBottom:0,textAlign:`inherit`,"&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:`block`,...Ua(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:`inline-flex`,float:`none`,verticalAlign:`top`,borderRadius:0},[`
|
||
& > ${t}-affix-wrapper,
|
||
& > ${t}-number-affix-wrapper,
|
||
& > ${n}-picker-range
|
||
`]:{display:`inline-flex`},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:`none`},[`& > ${n}-select,
|
||
& > ${n}-select-auto-complete ${t},
|
||
& > ${n}-cascader-picker ${t},
|
||
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
||
& > ${n}-select:first-child,
|
||
& > ${n}-select-auto-complete:first-child ${t},
|
||
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
||
& > ${n}-select:last-child,
|
||
& > ${n}-cascader-picker:last-child ${t},
|
||
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:`top`},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},ere=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Va(e),...hv(e),...Kne(e),...Yne(e),...Jne(e),...Zne(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}}}},tre=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...Wa(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${K(e.inputAffixPadding)}`}}}},nre=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,c=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[c]:{...hv(e),display:`inline-flex`,"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:`inherit`,border:`none`,borderRadius:0,outline:`none`,background:`transparent`,color:`inherit`,"&::-ms-reveal":{display:`none`},"&:focus":{boxShadow:`none !important`}},"&::before":{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`},[t]:{"&-prefix, &-suffix":{display:`flex`,flex:`none`,alignItems:`center`,"> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:`ltr`},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}},...tre(e),[`${s}${t}-password-icon`]:{color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}},[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},rre=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Va(e),...$ne(e),"&-rtl":{direction:`rtl`},"&-wrapper":{display:`inline-block`,width:`100%`,textAlign:`start`,verticalAlign:`top`,"&-rtl":{direction:`rtl`},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...qne(e),...Xne(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},ire=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},gv=Xa([`Input`,`Shared`],e=>{let t=li(e,tv(e));return[ere(t),nre(t)]},nv,{resetFont:!1}),are=Xa([`Input`,`Component`],e=>{let t=li(e,tv(e));return[rre(t),ire(t),df(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},nv,{resetFont:!1}),ore={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z`}},{tag:`path`,attrs:{d:`M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z`}}]},name:`plus`,theme:`outlined`};function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_v.apply(this,arguments)}var sre=v.forwardRef((e,t)=>v.createElement(Co,_v({},e,{ref:t,icon:ore}))),cre=l(o(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||={};let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))()),vv,lre=()=>(vv===void 0&&(vv=(0,cre.default)()),vv),yv=(0,v.createContext)(null),ure=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,v.useState)(),l=(0,v.useRef)(),u=v.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){Xe.cancel(l.current)}return(0,v.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=Xe(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},bv={width:0,height:0,left:0,top:0};function dre(e,t,n){return(0,v.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||bv,i=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],o=t.get(a);o||=t.get(e[r-1]?.key)||bv;let s=n.get(a)||{...o};s.right=i-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join(`_`),t,n])}function xv(e,t){let n=v.useRef(e),[,r]=v.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var fre=.1,Sv=.01,Cv=20,wv=.995**Cv;function pre(e,t){let[n,r]=(0,v.useState)(),[i,a]=(0,v.useState)(0),[o,s]=(0,v.useState)(0),[c,l]=(0,v.useState)(),u=(0,v.useRef)();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n))<fre)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<Sv&&Math.abs(i)<Sv){window.clearInterval(u.current);return}r*=wv,i*=wv,t(r*Cv,i*Cv)},Cv)}}let m=(0,v.useRef)();function h(e){let{deltaX:n,deltaY:r}=e,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=m.current===`x`?n:r:a>o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,v.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},v.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function Tv(e){let[t,n]=(0,v.useState)(0),r=(0,v.useRef)(0),i=(0,v.useRef)();return i.current=e,w(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function mre(e){let t=(0,v.useRef)([]),[,n]=(0,v.useState)({}),r=(0,v.useRef)(typeof e==`function`?e():e),i=Tv(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var Ev={width:0,height:0,left:0,top:0,right:0};function hre(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,v.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;i<n;i+=1){let n=e.get(o[i].key)||Ev;if(Math.floor(n[u]+n[l])>Math.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||Ev)[u]<d){i=t+1;break}return i>r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function Dv(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var gre=`TABS_DQ`;function Ov(e){return String(e).replace(/"/g,gre)}function kv(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Av=v.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:v.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),jv=v.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!v.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?v.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null});function Mv(){return Mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mv.apply(this,arguments)}var Nv=v.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:i,locale:a,mobile:o,more:s={},style:c,className:l,editable:u,tabBarGutter:d,rtl:f,removeAriaLabel:p,onTabClick:m,getPopupContainer:h,popupClassName:g,popupStyle:_}=e,[y,b]=(0,v.useState)(!1),[x,S]=(0,v.useState)(null),{icon:C=`More`}=s,w=`${r}-more-popup`,T=`${n}-dropdown`,E=x===null?null:`${w}-${x}`,D=a?.dropdownAriaLabel;function O(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit(`remove`,{key:t,event:e})}let k=v.createElement(y_,{onClick:({key:e,domEvent:t})=>{m(e,t),b(!1)},prefixCls:`${T}-menu`,id:w,tabIndex:-1,role:`listbox`,"aria-activedescendant":E,selectedKeys:[x],"aria-label":D===void 0?`expanded dropdown`:D},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=kv(t,i,u,n);return v.createElement(n_,{key:a,id:`${w}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},v.createElement(`span`,null,o),s&&v.createElement(`button`,{type:`button`,"aria-label":p||`remove`,tabIndex:0,className:`${T}-menu-item-remove`,onClick:e=>{e.stopPropagation(),O(e,a)}},i||u.removeIcon||`×`))}));function A(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===x)||0,r=t.length;for(let i=0;i<r;i+=1){n=(n+e+r)%r;let i=t[n];if(!i.disabled){S(i.key);return}}}function j(e){let{which:t}=e;if(!y){[uu.DOWN,uu.SPACE,uu.ENTER].includes(t)&&(b(!0),e.preventDefault());return}switch(t){case uu.UP:A(-1),e.preventDefault();break;case uu.DOWN:A(1),e.preventDefault();break;case uu.ESC:b(!1);break;case uu.SPACE:case uu.ENTER:x!==null&&m(x,e);break}}(0,v.useEffect)(()=>{let e=document.getElementById(E);e?.scrollIntoView&&e.scrollIntoView(!1)},[E,x]),(0,v.useEffect)(()=>{y||S(null)},[y]);let M={marginInlineStart:d};i.length||(M.visibility=`hidden`,M.order=1);let N=G(g,{[`${T}-rtl`]:f}),P=o?null:v.createElement(Cg,Mv({prefixCls:T,overlay:k,visible:i.length?y:!1,onVisibleChange:b,overlayClassName:N,overlayStyle:_,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),v.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:M,"aria-haspopup":`listbox`,"aria-controls":w,id:`${r}-more`,"aria-expanded":y,onKeyDown:j},C));return v.createElement(`div`,{className:G(`${n}-nav-operations`,l),style:c,ref:t},P,v.createElement(Av,{prefixCls:n,locale:a,editable:u}))}),Pv=v.memo(Nv,(e,t)=>t.tabMoving),Fv=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:p,onClick:m,onFocus:h,onBlur:g,onKeyDown:_,onMouseDown:y,onMouseUp:b,style:x,className:S,tabCount:C,currentPosition:w}=e,T=`${t}-tab`,E=kv(u,c,p,s);function D(e){s||m(e)}function O(e){e.preventDefault(),e.stopPropagation(),p.onEdit(`remove`,{key:a,event:e})}let k=v.useMemo(()=>l&&typeof o==`string`?v.createElement(`span`,null,o):o,[o,l]),A=v.useRef(null);v.useEffect(()=>{i&&A.current&&A.current.focus()},[i]);let j=v.createElement(`div`,{key:a,"data-node-key":Ov(a),className:G(T,S,{[`${T}-with-remove`]:E,[`${T}-active`]:r,[`${T}-disabled`]:s,[`${T}-focus`]:i}),style:x,onClick:D},v.createElement(`div`,{ref:A,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${T}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),D(e)},onKeyDown:_,onMouseDown:y,onMouseUp:b,onFocus:h,onBlur:g},i&&v.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`Tab ${w} of ${C}`),l&&v.createElement(`span`,{className:`${T}-icon`},l),o&&k),E&&v.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:`${T}-remove`,onClick:e=>{e.stopPropagation(),O(e)}},c||p.removeIcon||`×`));return d?d(j):j};function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iv.apply(this,arguments)}var Lv=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},Rv=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},zv=(e,t)=>e[+!t],Bv=v.forwardRef((e,t)=>{let{className:n,style:r,id:i,animated:a,activeKey:o,rtl:s,extra:c,editable:l,locale:u,tabPosition:d,tabBarGutter:f,children:p,onTabClick:m,onTabScroll:h,indicator:g,classNames:_,styles:y}=e,{prefixCls:x,tabs:S}=v.useContext(yv),C=(0,v.useRef)(null),w=(0,v.useRef)(null),T=(0,v.useRef)(null),E=(0,v.useRef)(null),D=(0,v.useRef)(null),O=(0,v.useRef)(null),k=(0,v.useRef)(null),A=d===`top`||d===`bottom`,[j,M]=xv(0,(e,t)=>{A&&h&&h({direction:e>t?`left`:`right`})}),[N,P]=xv(0,(e,t)=>{!A&&h&&h({direction:e>t?`top`:`bottom`})}),[F,I]=(0,v.useState)([0,0]),[L,z]=(0,v.useState)([0,0]),[B,V]=(0,v.useState)([0,0]),[H,U]=(0,v.useState)([0,0]),[ee,te]=mre(new Map),W=dre(S,ee,L[0]),ne=zv(F,A),re=zv(L,A),ie=zv(B,A),ae=zv(H,A),oe=Math.floor(ne)<Math.floor(re+ie),se=oe?ne-ae:ne-ie,ce=`${x}-nav-operations-hidden`,le=0,ue=0;A&&s?(le=0,ue=Math.max(0,re-se)):(le=Math.min(0,se-re),ue=0);function de(e){return e<le?le:e>ue?ue:e}let fe=(0,v.useRef)(null),[pe,me]=(0,v.useState)();function he(){me(Date.now())}function ge(){fe.current&&clearTimeout(fe.current)}pre(E,(e,t)=>{function n(e,t){e(e=>de(e+t))}return oe?(A?n(M,e):n(P,t),ge(),he(),!0):!1}),(0,v.useEffect)(()=>(ge(),pe&&(fe.current=setTimeout(()=>{me(0)},100)),ge),[pe]);let[_e,ve]=hre(W,se,A?j:N,re,ie,ae,{...e,tabs:S}),ye=b((e=o)=>{let t=W.get(e)||{width:0,height:0,left:0,right:0,top:0};if(A){let e=j;s?t.right<j?e=t.right:t.right+t.width>j+se&&(e=t.right+t.width-se):t.left<-j?e=-t.left:t.left+t.width>-j+se&&(e=-(t.left+t.width-se)),P(0),M(de(e))}else{let e=N;t.top<-N?e=-t.top:t.top+t.height>-N+se&&(e=-(t.top+t.height-se)),M(0),P(de(e))}}),[be,xe]=(0,v.useState)(),[Se,Ce]=(0,v.useState)(!1),we=S.filter(e=>!e.disabled).map(e=>e.key),Te=e=>{let t=we.indexOf(be||o),n=we.length,r=we[(t+e+n)%n];xe(r)},Ee=(e,t)=>{let n=we.indexOf(e),r=S.find(t=>t.key===e);kv(r?.closable,r?.closeIcon,l,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),l.onEdit(`remove`,{key:e,event:t}),n===we.length-1?Te(-1):Te(1))},De=(e,t)=>{Ce(!0),t.button===1&&Ee(e,t)},Oe=e=>{let{code:t}=e,n=s&&A,r=we[0],i=we[we.length-1];switch(t){case`ArrowLeft`:A&&Te(n?1:-1);break;case`ArrowRight`:A&&Te(n?-1:1);break;case`ArrowUp`:e.preventDefault(),A||Te(-1);break;case`ArrowDown`:e.preventDefault(),A||Te(1);break;case`Home`:e.preventDefault(),xe(r);break;case`End`:e.preventDefault(),xe(i);break;case`Enter`:case`Space`:e.preventDefault(),m(be??o,e);break;case`Backspace`:case`Delete`:Ee(be,e);break}},ke={};A?ke.marginInlineStart=f:ke.marginTop=f;let Ae=S.map((e,t)=>{let{key:n}=e;return v.createElement(Fv,{id:i,prefixCls:x,key:n,tab:e,className:_?.item,style:t===0?y?.item:{...ke,...y?.item},closable:e.closable,editable:l,active:n===o,focus:n===be,renderWrapper:p,removeAriaLabel:u?.removeAriaLabel,tabCount:we.length,currentPosition:t+1,onClick:e=>{m(n,e)},onKeyDown:Oe,onFocus:()=>{Se||xe(n),ye(n),he(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:()=>{xe(void 0)},onMouseDown:e=>De(n,e),onMouseUp:()=>{Ce(!1)}})}),je=()=>te(()=>{let e=new Map,t=D.current?.getBoundingClientRect();return S.forEach(({key:n})=>{let r=D.current?.querySelector(`[data-node-key="${Ov(n)}"]`);if(r){let[i,a,o,s]=Lv(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,v.useEffect)(()=>{je()},[S.map(e=>e.key).join(`_`)]);let Me=Tv(()=>{let e=Rv(C),t=Rv(w),n=Rv(T);I([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=Rv(k);V(r),U(Rv(O));let i=Rv(D);z([i[0]-r[0],i[1]-r[1]]),je()}),Ne=S.slice(0,_e),Pe=S.slice(ve+1),Fe=[...Ne,...Pe],Ie=W.get(o),{style:Re}=ure({activeTabOffset:Ie,horizontal:A,indicator:g,rtl:s});(0,v.useEffect)(()=>{ye()},[o,le,ue,Dv(Ie),Dv(W),A]),(0,v.useEffect)(()=>{Me()},[s]);let ze=!!Fe.length,Be=`${x}-nav-wrap`,Ve,He,Ue,We;return A?s?(He=j>0,Ve=j!==ue):(Ve=j<0,He=j!==le):(Ue=N<0,We=N!==le),v.createElement(Le,{onResize:Me},v.createElement(`div`,{ref:R(t,C),role:`tablist`,"aria-orientation":A?`horizontal`:`vertical`,className:G(`${x}-nav`,n,_?.header),style:{...y?.header,...r},onKeyDown:()=>{he()}},v.createElement(jv,{ref:w,position:`left`,extra:c,prefixCls:x}),v.createElement(Le,{onResize:Me},v.createElement(`div`,{className:G(Be,{[`${Be}-ping-left`]:Ve,[`${Be}-ping-right`]:He,[`${Be}-ping-top`]:Ue,[`${Be}-ping-bottom`]:We}),ref:E},v.createElement(Le,{onResize:Me},v.createElement(`div`,{ref:D,className:`${x}-nav-list`,style:{transform:`translate(${j}px, ${N}px)`,transition:pe?`none`:void 0}},Ae,v.createElement(Av,{ref:k,prefixCls:x,locale:u,editable:l,style:{...Ae.length===0?void 0:ke,visibility:ze?`hidden`:null}}),v.createElement(`div`,{className:G(`${x}-ink-bar`,_?.indicator,{[`${x}-ink-bar-animated`]:a.inkBar}),style:{...Re,...y?.indicator}}))))),v.createElement(Pv,Iv({},e,{removeAriaLabel:u?.removeAriaLabel,ref:O,prefixCls:x,tabs:Fe,className:!ze&&ce,popupStyle:y?.popup,tabMoving:!!pe})),v.createElement(jv,{ref:T,position:`right`,extra:c,prefixCls:x})))}),Vv=({renderTabBar:e,...t})=>e?e(t,Bv):v.createElement(Bv,t),Hv=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=v.Children.count(c)>0;return v.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:G(n,o&&`${n}-active`,r),ref:t},c)});function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uv.apply(this,arguments)}var _re=e=>{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,contentStyle:o,contentClassName:s}=e,{prefixCls:c,tabs:l}=v.useContext(yv),u=r.tabPane,d=`${c}-tabpane`;return v.createElement(`div`,{className:G(`${c}-content-holder`)},v.createElement(`div`,{className:G(`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:u})},l.map(e=>{let{key:i,forceRender:c,style:l,className:f,destroyOnHidden:p,...m}=e,h=i===n;return v.createElement(bs,Uv({key:i,visible:h,forceRender:c,removeOnLeave:!!(a??p),leavedClassName:`${d}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>v.createElement(Hv,Uv({},m,{prefixCls:d,id:t,tabKey:i,animated:u,active:h,style:{...o,...l,...e},className:G(s,f,n),ref:r})))})))};function vre(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wv.apply(this,arguments)}var Gv=0,yre=v.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:p,tabBarExtraContent:m,locale:h,more:g,destroyOnHidden:_,renderTabBar:y,onChange:b,onTabClick:x,onTabScroll:S,getPopupContainer:C,popupClassName:w,indicator:T,classNames:D,styles:O,...k}=e,A=v.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),j=o===`rtl`,M=vre(u),[N,P]=(0,v.useState)(!1);(0,v.useEffect)(()=>{P(lre())},[]);let[F,I]=E(c??A[0]?.key,s),[L,R]=(0,v.useState)(()=>A.findIndex(e=>e.key===F));(0,v.useEffect)(()=>{let e=A.findIndex(e=>e.key===F);e===-1&&(e=Math.max(0,Math.min(L,A.length-1)),I(A[e]?.key)),R(e)},[A.map(e=>e.key).join(`_`),F,L]);let[z,B]=E(null,n);(0,v.useEffect)(()=>{n||(B(`rc-tabs-${Gv}`),Gv+=1)},[]);function V(e,t){x?.(e,t);let n=e!==F;I(e),n&&b?.(e)}let H={id:z,activeKey:F,animated:M,tabPosition:d,rtl:j,mobile:N},U={...H,editable:l,locale:h,more:g,tabBarGutter:f,onTabClick:V,onTabScroll:S,extra:m,style:p,getPopupContainer:C,popupClassName:G(w,D?.popup),indicator:T,styles:O,classNames:D},ee=v.useMemo(()=>({tabs:A,prefixCls:r}),[A,r]);return v.createElement(yv.Provider,{value:ee},v.createElement(`div`,Wv({ref:t,id:n,className:G(r,`${r}-${d}`,{[`${r}-mobile`]:N,[`${r}-editable`]:l,[`${r}-rtl`]:j},i)},k),v.createElement(Vv,Wv({},U,{renderTabBar:y})),v.createElement(_re,Wv({destroyOnHidden:_},H,{contentStyle:O?.content,contentClassName:D?.content,animated:M}))))}),bre={motionAppear:!1,motionEnter:!0,motionLeave:!0};function xre(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...Zs(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...bre,motionName:Cu(e,`switch`)}),n}function Sre(e){return e.filter(e=>e)}function Cre(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):Sre(ge(t).map(e=>{if(v.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var wre=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:`none`,"&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:`absolute`,transition:`none`,inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[xd(e,`slide-up`),xd(e,`slide-down`)]]},Tre=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${K(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Wa(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:`none`},[`${t}-ink-bar`]:{visibility:`hidden`}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:K(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:K(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${K(e.borderRadiusLG)} 0 0 ${K(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ere=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...Va(e),position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:`block`,"&-hidden":{display:`none`},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${K(r)} 0`,overflowX:`hidden`,overflowY:`auto`,textAlign:{_skip_check_:!0,value:`left`},listStyleType:`none`,backgroundColor:e.colorBgContainer,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,"&-item":{...Ba,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${K(e.paddingXXS)} ${K(e.paddingSM)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:`nowrap`},"&-remove":{flex:`none`,marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:0,cursor:`pointer`,"&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:`transparent`,cursor:`not-allowed`}}}}}}},Dre=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,motionDurationSlow:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${K(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:[`width`,`left`,`right`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
||
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:`column`,"&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:[`height`,`top`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:K(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ore=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${K(e.borderRadius)} ${K(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${K(e.borderRadius)} ${K(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${K(e.borderRadius)} ${K(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${K(e.borderRadius)} 0 0 ${K(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},kre=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...Ga(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:Wa(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},Are=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},jre=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...Va(e),display:`flex`,[`> ${t}-nav, > div > ${t}-nav`]:{position:`relative`,display:`flex`,flex:`none`,alignItems:`center`,[`${t}-nav-wrap`]:{position:`relative`,display:`flex`,flex:`auto`,alignSelf:`stretch`,overflow:`hidden`,whiteSpace:`nowrap`,transform:`translate(0)`,"&::before, &::after":{position:`absolute`,zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:`''`,pointerEvents:`none`}},[`${t}-nav-list`]:{position:`relative`,display:`flex`,transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:`flex`,alignSelf:`stretch`},[`${t}-nav-operations-hidden`]:{position:`absolute`,visibility:`hidden`,pointerEvents:`none`},[`${t}-nav-more`]:{position:`relative`,padding:n,background:`transparent`,border:0,color:e.colorText,"&::after":{position:`absolute`,right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:`translateY(100%)`,content:`''`}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:`transparent`,border:`${K(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`,outline:`none`,cursor:`pointer`,color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o},...Ga(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...kre(e),[`${t}-content`]:{position:`relative`,width:`100%`},[`${t}-content-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-tabpane`]:{...Ga(e),"&-hidden":{display:`none`}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:`auto`}}}}}},Mre=Xa(`Tabs`,e=>{let t=li(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${K(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${K(e.horizontalItemGutter)}`});return[Ore(t),Are(t),Dre(t),Ere(t),Tre(t),jre(t),wre(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:``,horizontalItemMarginRTL:``,horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),Nre=()=>null,Kv=v.forwardRef((e,t)=>{let{type:n,className:r,rootClassName:i,size:a,onEdit:o,hideAdd:s,centered:c,addIcon:l,removeIcon:u,moreIcon:d,more:f,popupClassName:p,children:m,items:h,animated:g,style:_,indicatorSize:y,indicator:b,classNames:x,styles:S,destroyInactiveTabPane:C,destroyOnHidden:w,tabPlacement:T,tabPosition:E,...D}=e,{prefixCls:O}=D,{getPrefixCls:k,direction:A,getPopupContainer:j,className:M,style:N,classNames:P,styles:F}=nt(`tabs`),{tabs:I}=v.useContext($e),L=k(`tabs`,O),R=jc(L),[z,B]=Mre(L,R),V=v.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:V.current}));let H;n===`editable-card`&&(H={onEdit:(e,{key:t,event:n})=>{o?.(e===`add`?n:t,e)},removeIcon:u??I?.removeIcon??v.createElement(ko,null),addIcon:(l??I?.addIcon)||v.createElement(sre,null),showAdd:s!==!0});let U=k(),ee=Nu(a),te=Cre(h,m),W=xre(L,g),ne={align:b?.align??I?.indicator?.align,size:b?.size??y??I?.indicator?.size??I?.indicatorSize},re=v.useMemo(()=>{let e=T??E??void 0,t=A===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[T,E,A]),ie={...e,size:ee,tabPlacement:re,items:te},[ae,oe]=mc([P,x],[F,S],{props:ie},{popup:{_default:`root`}});return v.createElement(yre,{ref:V,direction:A,getPopupContainer:j,...D,items:te,className:G({[`${L}-large`]:ee===`large`,[`${L}-small`]:ee===`small`,[`${L}-card`]:[`card`,`editable-card`].includes(n),[`${L}-editable-card`]:n===`editable-card`,[`${L}-centered`]:c},M,r,i,ae.root,z,B,R),classNames:{...ae,popup:G(p,z,B,R,ae.popup?.root)},styles:oe,style:{...oe.root,...N,..._},editable:H,more:{icon:I?.more?.icon??I?.moreIcon??d??v.createElement(k_,null),transitionName:`${U}-slide-up`,...f},prefixCls:L,animated:W,indicator:ne,destroyOnHidden:w??C,tabPosition:re})});Kv.TabPane=Nre;var qv=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{let{getPrefixCls:i}=v.useContext($e),a=i(`card`,e),o=G(`${a}-grid`,t,{[`${a}-grid-hoverable`]:n});return v.createElement(`div`,{...r,className:o})},Pre=e=>{let{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return{display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${K(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`,...Ua(),"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":{display:`inline-block`,flex:1,...Ba,[`
|
||
> ${n}-typography,
|
||
> ${n}-typography-edit-content
|
||
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},Fre=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
|
||
${K(i)} 0 0 0 ${n},
|
||
0 ${K(i)} 0 0 ${n},
|
||
${K(i)} ${K(i)} 0 0 ${n},
|
||
${K(i)} 0 0 0 ${n} inset,
|
||
0 ${K(i)} 0 0 ${n} inset;
|
||
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},Ire=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${K(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`,...Ua(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:K(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:K(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${K(e.lineWidth)} ${e.lineType} ${a}`}}}},Lre=e=>({margin:`${K(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...Ua(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...Ba},"&-description":{color:e.colorTextDescription}}),Rre=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${K(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${K(e.padding)} ${K(i)}`}}},zre=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},Bre=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...Va(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:Pre(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:Fre(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Ire(e),[`${t}-meta`]:Lre(e)},[`${t}-bordered`]:{border:`${K(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${K(e.borderRadiusLG)} ${K(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Rre(e),[`${t}-loading`]:zre(e),[`${t}-rtl`]:{direction:`rtl`}}},Vre=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${K(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},Hre=Xa(`Card`,e=>{let t=li(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Bre(t),Vre(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),Ure=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return v.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return v.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},v.createElement(`span`,null,e))}))},Wre=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:m,cover:h,actions:g,tabList:_,children:y,activeTabKey:b,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:T,styles:E,...D}=e,{getPrefixCls:O,direction:k,className:A,style:j,classNames:M,styles:N}=nt(`card`),[P]=jh(`card`,f,d),F=Nu(p),I={...e,size:F,variant:P},[L,R]=mc([M,T],[N,E],{props:I}),z=t=>{e.onTabChange?.(t)},B=v.useMemo(()=>ge(y),[y]),V=v.useMemo(()=>B.some(e=>v.isValidElement(e)&&e.type===qv),[B]),H=O(`card`,n),[U,ee]=Hre(H),te=v.createElement(vm,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),W=b!==void 0,ne={...w,[W?`activeKey`:`defaultActiveKey`]:W?b:x,tabBarExtraContent:S},re,ie=F===`small`?F:`large`,ae=_?v.createElement(Kv,{size:ie,...ne,className:`${H}-head-tabs`,onChange:z,items:_.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||ae){let e=G(`${H}-head`,L.header),t=G(`${H}-head-title`,L.title),n=G(`${H}-extra`,L.extra),r={...s,...R.header};re=v.createElement(`div`,{className:e,style:r},v.createElement(`div`,{className:`${H}-head-wrapper`},l&&v.createElement(`div`,{className:t,style:R.title},l),o&&v.createElement(`div`,{className:n,style:R.extra},o)),ae)}let oe=G(`${H}-cover`,L.cover),se=h?v.createElement(`div`,{className:oe,style:R.cover},h):null,ce=G(`${H}-body`,L.body),le={...c,...R.body},ue=u||B.length?v.createElement(`div`,{className:ce,style:le},u?te:y):null,de=G(`${H}-actions`,L.actions),fe=g?.length?v.createElement(Ure,{actionClasses:de,actionStyle:R.actions,actions:g}):null,pe=he(D,[`onTabChange`]),me=G(H,A,{[`${H}-loading`]:u,[`${H}-bordered`]:P!==`borderless`,[`${H}-hoverable`]:C,[`${H}-contain-grid`]:V,[`${H}-contain-tabs`]:_?.length,[`${H}-small`]:F===`small`,[`${H}-type-${m}`]:!!m,[`${H}-rtl`]:k===`rtl`},r,i,U,ee,L.root),_e={...R.root,...j,...a};return v.createElement(`div`,{ref:t,...pe,className:me,style:_e},re,se,ue,fe)}),Gre=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=nt(`cardMeta`),h=`${u(`card`,t)}-meta`,[g,_]=mc([p,s],[m,c],{props:e}),y=G(h,n,d,g.root),b={...f,..._.root,...o},x=G(`${h}-avatar`,g.avatar),S=G(`${h}-title`,g.title),C=G(`${h}-description`,g.description),w=G(`${h}-section`,g.section),T=r?v.createElement(`div`,{className:x,style:_.avatar},r):null,E=i?v.createElement(`div`,{className:S,style:_.title},i):null,D=a?v.createElement(`div`,{className:C,style:_.description},a):null,O=E||D?v.createElement(`div`,{className:w,style:_.section},E,D):null;return v.createElement(`div`,{...l,className:y,style:b},T,O)},Jv=Wre;Jv.Grid=qv,Jv.Meta=Gre;function Kre(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function qre(e,t,n){var r=(n||{}).atBegin;return Kre(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}function Yv(e,t){return e[t]}function Xv(e,t){return`${e}-${t}`}function Jre(e){return e&&e.type&&e.type.isTreeNode}function Zv(e,t){return e??t}function Qv(e){let{title:t,_title:n,key:r,children:i}=e||{},a=t||`title`;return{title:a,_title:n||[a],key:r||`key`,children:i||`children`}}function $v(e){function t(e){return ge(e).map(e=>{if(!Jre(e))return pe(!e,`Tree/TreeNode can only accept TreeNode as children.`),null;let{key:n}=e,{children:r,...i}=e.props,a={key:n,...i},o=t(r);return o.length&&(a.children=o),a}).filter(e=>e)}return t(e)}function ey(e,t,n){let{_title:r,key:i,children:a}=Qv(n),o=new Set(t===!0?[]:t),s=[];function c(e,n=null){return e.map((l,u)=>{let d=Xv(n?n.pos:`0`,u),f=Zv(l[i],d),p;for(let e=0;e<r.length;e+=1){let t=r[e];if(l[t]!==void 0){p=l[t];break}}let m=Object.assign(he(l,[...r,i,a]),{title:p,key:f,parent:n,pos:d,children:null,data:l,isStart:[...n?n.isStart:[],u===0],isEnd:[...n?n.isEnd:[],u===e.length-1]});return s.push(m),t===!0||o.has(f)?m.children=c(l[a]||[],m):m.children=[],m})}return c(e),s}function Yre(e,t,n){let r={};r=typeof n==`object`?n:{externalGetKey:n},r||={};let{childrenPropName:i,externalGetKey:a,fieldNames:o}=r,{key:s,children:c}=Qv(o),l=i||c,u;a?typeof a==`string`?u=e=>e[a]:typeof a==`function`&&(u=e=>a(e)):u=(e,t)=>Zv(e[s],t);function d(n,r,i,a){let o=n?n[l]:e,s=n?Xv(i.pos,r):`0`,c=n?[...a,n]:[];n&&t({node:n,index:r,pos:s,key:u(n,s),parentPos:i.node?i.pos:null,level:i.level+1,nodes:c}),o&&o.forEach((e,t)=>{d(e,t,{node:n,pos:s,level:i?i.level+1:-1},c)})}d(null)}function ty(e,{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:a,fieldNames:o}={},s){let c=i||s,l={},u={},d={posEntities:l,keyEntities:u};return t&&(d=t(d)||d),Yre(e,e=>{let{node:t,index:r,pos:i,key:a,parentPos:o,level:s,nodes:c}=e,f={node:t,nodes:c,index:r,key:a,pos:i,level:s},p=Zv(a,i);l[i]=f,u[p]=f,f.parent=l[o],f.parent&&(f.parent.children=f.parent.children||[],f.parent.children.push(f)),n&&n(f,d)},{externalGetKey:c,childrenPropName:a,fieldNames:o}),r&&r(d),d}function ny(e,t,n,r){return e===!1?!1:e||!t&&!n||t&&r&&!n}function ry(e,{expandedKeys:t,selectedKeys:n,loadedKeys:r,loadingKeys:i,checkedKeys:a,halfCheckedKeys:o,dragOverNodeKey:s,dropPosition:c,keyEntities:l}){let u=Yv(l,e);return{eventKey:e,expanded:t.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:r.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:o.indexOf(e)!==-1,pos:String(u?u.pos:``),dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function iy(e){let{data:t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,eventKey:p}=e,m={...t,expanded:n,selected:r,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:c,dragOverGapTop:l,dragOverGapBottom:u,pos:d,active:f,key:p};return`props`in m||Object.defineProperty(m,`props`,{get(){return pe(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function ay(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function Xre(e){let{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function Zre(e,t,n,r){let i=new Set(e),a=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:a=[]}=e;i.has(t)&&!r(n)&&a.filter(e=>!r(e.node)).forEach(e=>{i.add(e.key)})});let o=new Set;for(let e=n;e>=0;--e)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||o.has(e.parent.key))return;if(r(e.parent.node)){o.add(t.key);return}let s=!0,c=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{let t=i.has(e);s&&!t&&(s=!1),!c&&(t||a.has(e))&&(c=!0)}),s&&i.add(t.key),c&&a.add(t.key),o.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(ay(a,i))}}function Qre(e,t,n,r,i){let a=new Set(e),o=new Set(t);for(let e=0;e<=r;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:r=[]}=e;!a.has(t)&&!o.has(t)&&!i(n)&&r.filter(e=>!i(e.node)).forEach(e=>{a.delete(e.key)})});o=new Set;let s=new Set;for(let e=r;e>=0;--e)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node)){s.add(t.key);return}let r=!0,c=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(({key:e})=>{let t=a.has(e);r&&!t&&(r=!1),!c&&(t||o.has(e))&&(c=!0)}),r||a.delete(t.key),c&&o.add(t.key),s.add(t.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(ay(o,a))}}function oy(e,t,n,r){let i=[],a;a=r||Xre;let o=new Set(e.filter(e=>{let t=!!Yv(n,e);return t||i.push(e),t})),s=new Map,c=0;Object.keys(n).forEach(e=>{let t=n[e],{level:r}=t,i=s.get(r);i||(i=new Set,s.set(r,i)),i.add(t),c=Math.max(c,r)}),pe(!i.length,`Tree missing follow keys: ${i.slice(0,100).map(e=>`'${e}'`).join(`, `)}`);let l;return l=t===!0?Zre(o,s,c,a):Qre(o,t.halfCheckedKeys,s,c,a),l}var $re=e=>{let{checkboxCls:t,checkboxSize:n,lineWidth:r}=e,i=`${t}-wrapper`;return[{[`${t}-group`]:{...Va(e),display:`inline-flex`,flexWrap:`wrap`,columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...Va(e),display:`inline-flex`,alignItems:`baseline`,cursor:`pointer`,"&:after":{display:`inline-block`,width:0,overflow:`hidden`,content:`'\\a0'`},[`& + ${i}`]:{marginInlineStart:0},[`&${i}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...Va(e),position:`relative`,whiteSpace:`nowrap`,lineHeight:1,cursor:`pointer`,alignSelf:`center`,boxSizing:`border-box`,display:`block`,width:n,height:n,direction:`ltr`,backgroundColor:e.colorBgContainer,border:`${K(r)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:`separate`,transition:`all ${e.motionDurationSlow}`,flex:`none`,...Sd(),"&:after":{boxSizing:`border-box`,position:`absolute`,top:`calc(${n} / 2 - ${r})`,insetInlineStart:`calc(${n} / 4 - ${r})`,display:`table`,width:e.calc(n).div(14).mul(5).equal(),height:e.calc(n).div(14).mul(8).equal(),border:`${K(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:`rotate(45deg) scale(0) translate(-50%,-50%)`,opacity:0,content:`""`,transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`,...Sd()},[`${t}-input`]:{position:`absolute`,inset:`calc(-1 * (${r}))`,zIndex:1,cursor:`pointer`,opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:Wa(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
|
||
${i}:not(${i}-disabled),
|
||
${t}:not(${t}-disabled)
|
||
`]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}},{[`${t}-checked`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:`rotate(45deg) scale(1) translate(-50%,-50%)`,transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`,...Sd()},[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:`transparent`}}},{[t]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:`50%`,insetInlineStart:`50%`,width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:`translate(-50%, -50%) scale(1)`,opacity:1,content:`""`},"&:hover":{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}},{[`${i}-disabled`]:{cursor:`not-allowed`},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:`not-allowed`,pointerEvents:`none`},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate::after`]:{background:e.colorTextDisabled}}}]};function sy(e,t){return $re(li(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize}))}var cy=Xa(`Checkbox`,(e,{prefixCls:t})=>[sy(t,e)]),ly=v.createContext(null),uy=v.forwardRef((e,t)=>{let{prefixCls:n,children:r,indeterminate:i=!1,onMouseEnter:a,onMouseLeave:o,skipGroup:s=!1,disabled:c,rootClassName:l,className:u,style:d,classNames:f,styles:p,name:m,value:h,checked:g,defaultChecked:_,onChange:y,...x}=e,{getPrefixCls:S,direction:C,className:w,style:T,classNames:D,styles:O}=nt(`checkbox`),k=v.useContext(ly),{isFormItemInput:A}=v.useContext(rm),j=v.useContext(Xl),M=(k?.disabled||c)??j,[N,P]=E(_,g),F=N,I=b(e=>{P(e.target.checked),y?.(e),!s&&k?.toggleOption&&k.toggleOption({label:r,value:h})});k&&!s&&(F=k.value.includes(h));let L=v.useRef(null),z=R(t,L);v.useEffect(()=>{if(!(s||!k))return k.registerValue(h),()=>{k.cancelValue(h)}},[h,s]),v.useEffect(()=>{L.current?.input&&(L.current.input.indeterminate=i)},[i]);let B=S(`checkbox`,n),V=jc(B),[H,U]=cy(B,V),ee={...x},te={...e,indeterminate:i,disabled:M,checked:F},[W,ne]=mc([D,f],[O,p],{props:te}),re=G(`${B}-wrapper`,{[`${B}-rtl`]:C===`rtl`,[`${B}-wrapper-checked`]:F,[`${B}-wrapper-disabled`]:M,[`${B}-wrapper-in-form-item`]:A},w,u,W.root,l,U,V,H),ie=G(W.icon,{[`${B}-indeterminate`]:i},Tu,H),[ae,oe]=Z_(ee.onClick);return v.createElement(Mu,{component:`Checkbox`,disabled:M},v.createElement(`label`,{className:re,style:{...ne.root,...T,...d},onMouseEnter:a,onMouseLeave:o,onClick:ae},v.createElement(X_,{...ee,name:!s&&k?k.name:m,checked:F,onClick:oe,onChange:I,prefixCls:B,className:ie,style:ne.icon,disabled:M,ref:z,value:h}),Js(r)&&v.createElement(`span`,{className:G(`${B}-label`,W.label),style:ne.label},r)))}),eie=v.forwardRef((e,t)=>{let{defaultValue:n,children:r,options:i=[],prefixCls:a,className:o,rootClassName:s,style:c,onChange:l,role:u=`group`,...d}=e,{getPrefixCls:f,direction:p}=v.useContext($e),[m,h]=v.useState(d.value||n||[]),[g,_]=v.useState([]);v.useEffect(()=>{`value`in d&&h(d.value||[])},[d.value]);let y=v.useMemo(()=>i.map(e=>typeof e==`string`||Ys(e)?{label:e,value:e}:e),[i]),b=e=>{_(t=>t.filter(t=>t!==e))},x=e=>{_(t=>[].concat(We(t),[e]))},S=e=>{let t=m.indexOf(e.value),n=We(m);t===-1?n.push(e.value):n.splice(t,1),`value`in d||h(n),l?.(n.filter(e=>g.includes(e)).sort((e,t)=>y.findIndex(t=>t.value===e)-y.findIndex(e=>e.value===t)))},C=f(`checkbox`,a),w=`${C}-group`,T=jc(C),[E,D]=cy(C,T),O=he(d,[`value`,`disabled`]),k=i.length?y.map(e=>v.createElement(uy,{prefixCls:C,key:e.value.toString(),disabled:`disabled`in e?e.disabled:d.disabled,value:e.value,checked:m.includes(e.value),onChange:e.onChange,className:G(`${w}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,A=v.useMemo(()=>({toggleOption:S,value:m,disabled:d.disabled,name:d.name,registerValue:x,cancelValue:b}),[S,m,d.disabled,d.name,x,b]),j=G(w,{[`${w}-rtl`]:p===`rtl`},o,s,D,T,E);return v.createElement(`div`,{className:j,style:c,role:u,...O,ref:t},v.createElement(ly.Provider,{value:A},k))}),dy=uy;dy.Group=eie,dy.__ANT_CHECKBOX=!0;var fy=(e,t)=>{if(!e)return null;let n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},py=e=>e===void 0?void 0:`${e}px`;function tie(e){let{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:a,onMotionStart:o,onMotionEnd:s,direction:c,vertical:l=!1}=e,u=v.useRef(null),[d,f]=v.useState(r),p=e=>{let r=i(e),a=n.current?.querySelectorAll(`.${t}-item`)[r];return a?.offsetParent&&a},[m,h]=v.useState(null),[g,_]=v.useState(null);C(()=>{if(d!==r){let e=p(d),t=p(r),n=fy(e,l),i=fy(t,l);f(r),h(n),_(i),e&&t?o():s()}},[r]);let y=v.useMemo(()=>py(l?m?.top??0:c===`rtl`?-m?.right:m?.left),[l,c,m]),b=v.useMemo(()=>py(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]);return!m||!g?null:v.createElement(bs,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>l?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>l?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`},onVisibleChanged:()=>{h(null),_(null),s()}},({className:e,style:n},r)=>{let i={...n,"--thumb-start-left":y,"--thumb-start-width":py(m?.width),"--thumb-active-left":b,"--thumb-active-width":py(g?.width),"--thumb-start-top":y,"--thumb-start-height":py(m?.height),"--thumb-active-top":b,"--thumb-active-height":py(g?.height)},a={ref:L(u,r),style:i,className:G(`${t}-thumb`,e)};return v.createElement(`div`,a)})}function nie(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function rie(e){return e.map(e=>{if(typeof e==`object`&&e){let t=nie(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var iie=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:a,disabled:o,checked:s,label:c,title:l,value:u,name:d,onChange:f,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g,onMouseDown:_,itemRender:y=e=>e})=>{let b=e=>{o||f(e,u)};return y(v.createElement(`label`,{className:G(t,{[`${e}-item-disabled`]:o}),style:n,onMouseDown:_},v.createElement(`input`,{name:d,className:`${e}-item-input`,type:`radio`,disabled:o,checked:s,onChange:b,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g}),v.createElement(`div`,{className:G(`${e}-item-label`,i?.label),title:l,style:r?.label},c)),{item:a})},aie=v.forwardRef((e,t)=>{let{prefixCls:n=`rc-segmented`,direction:r,vertical:i,options:a=[],disabled:o,defaultValue:s,value:c,name:l,onChange:u,className:d=``,style:f,styles:p,classNames:m,motionName:h=`thumb-motion`,itemRender:g,..._}=e,y=v.useRef(null),b=v.useMemo(()=>L(y,t),[y,t]),x=v.useMemo(()=>rie(a),[a]),[S,C]=E(s??x[0]?.value,c),[w,T]=v.useState(!1),D=(e,t)=>{C(t),u?.(t)},O=he(_,[`children`]),[k,A]=v.useState(!1),[j,M]=v.useState(!1),N=()=>{M(!0)},P=()=>{M(!1)},F=()=>{A(!1)},I=e=>{e.key===`Tab`&&A(!0)},R=e=>{let t=x.findIndex(e=>e.value===S),n=x.length,r=x[(t+e+n)%n];r&&(C(r.value),u?.(r.value))},z=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:R(-1);break;case`ArrowRight`:case`ArrowDown`:R(1);break}},B=e=>{let{value:t,disabled:r}=e;return v.createElement(iie,Jd({},e,{name:l,data:e,itemRender:g,key:t,prefixCls:n,className:G(e.className,`${n}-item`,m?.item,{[`${n}-item-selected`]:t===S&&!w,[`${n}-item-focused`]:j&&k&&t===S}),style:p?.item,classNames:m,styles:p,checked:t===S,onChange:D,onFocus:N,onBlur:P,onKeyDown:z,onKeyUp:I,onMouseDown:F,disabled:!!o||!!r}))};return v.createElement(`div`,Jd({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:f},O,{className:G(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},d),ref:b}),v.createElement(`div`,{className:`${n}-group`},v.createElement(tie,{vertical:i,prefixCls:n,value:S,containerRef:y,motionName:`${n}-${h}`,direction:r,getValueIndex:e=>x.findIndex(t=>t.value===e),onMotionStart:()=>{T(!0)},onMotionEnd:()=>{T(!1)}}),x.map(B)))});function my(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var hy=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),oie={overflow:`hidden`,...Ba},sie=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Va(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...Ga(e),[`${t}-group`]:{position:`relative`,display:`flex`,alignItems:`stretch`,justifyItems:`flex-start`,flexDirection:`row`,width:`100%`},[`&${t}-rtl`]:{direction:`rtl`},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:`column`},[`${t}-thumb`]:{width:`100%`,height:0,padding:`0 ${K(e.paddingXXS)}`}},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...hy(e),color:e.itemSelectedColor},"&-focused":Wa(e),"&::after":{content:`""`,position:`absolute`,zIndex:-1,width:`100%`,height:`100%`,top:0,insetInlineStart:0,borderRadius:`inherit`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`background-color`].map(e=>`${e} ${i}`).join(`, `)},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:a,lineHeight:K(a),padding:`0 ${K(e.segmentedPaddingHorizontal)}`,...oie},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:`none`}},[`${t}-thumb`]:{...hy(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${K(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:`transparent`}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:o,lineHeight:K(o),padding:`0 ${K(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:K(s),padding:`0 ${K(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...my(`&-disabled ${t}-item`,e),...my(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${n} ${r}`).join(`, `)},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},cie=Xa(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return sie(li(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function lie(e){return Zs(e)&&!!e?.icon}var uie=v.forwardRef((e,t)=>{let n=Xc(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:c,style:l,vertical:u,orientation:d,shape:f=`default`,name:p=n,styles:m,classNames:h,...g}=e,{getPrefixCls:_,direction:y,className:b,style:x,classNames:S,styles:C}=nt(`segmented`),w={...e,options:s,size:c,shape:f},[T,E]=mc([S,h],[C,m],{props:w}),D=_(`segmented`,r),[O,k]=cie(D),A=Nu(c),j=v.useMemo(()=>s.map(e=>{if(lie(e)){let{icon:t,label:n,...r}=e;return{...r,label:v.createElement(v.Fragment,null,v.createElement(`span`,{className:G(`${D}-item-icon`,T.icon),style:E.icon},t),n&&v.createElement(`span`,null,n))}}return e}),[s,D,T.icon,E.icon]),[,M]=_c(d,u),N=G(i,a,b,T.root,{[`${D}-block`]:o,[`${D}-sm`]:A===`small`,[`${D}-lg`]:A===`large`,[`${D}-vertical`]:M,[`${D}-shape-${f}`]:f===`round`},O,k),P={...E.root,...x,...l},F=(e,{item:t})=>{if(!t.tooltip)return e;let n=Zs(t.tooltip)?t.tooltip:{title:t.tooltip};return v.createElement(_g,{...n},e)};return v.createElement(aie,{...g,name:p,className:N,style:P,classNames:T,styles:E,itemRender:F,options:j,ref:t,prefixCls:D,direction:y,vertical:M})}),die={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z`}}]},name:`minus`,theme:`outlined`};function gy(){return gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gy.apply(this,arguments)}var fie=v.forwardRef((e,t)=>v.createElement(Co,gy({},e,{ref:t,icon:die}))),pie=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=$a(f,`space`);return{[t]:[{display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-variant-borderless":{border:`none`,background:`transparent`},"&-variant-underlined":{border:`none`,background:`transparent`}},{"&-status-error":{[p(`addon-border-color-outlined`)]:e.colorError,[p(`addon-background-filled`)]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p(`addon-border-color-outlined`)]:e.colorWarning,[p(`addon-background-filled`)]:e.colorWarningBg,color:e.colorWarning}}]}},mie=Xa([`Space`,`Addon`],e=>[pie(e),df(e,{focus:!1})]),hie=v.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=v.useContext($e),f=u(`space-addon`,a),[p,m]=mie(f),{compactItemClassnames:h,compactSize:g}=Iu(f,d),_=Th(f,c),y=G(f,p,h,m,`${f}-variant-${o}`,_,{[`${f}-${g}`]:g,[`${f}-disabled`]:s},n);return v.createElement(`div`,{ref:t,className:y,style:i,...l},r)});function gie(e){return!!(e.addonBefore||e.addonAfter)}function _ie(e){return!!(e.prefix||e.suffix||e.allowClear)}function _y(e,t,n){let r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart==`number`&&typeof t.selectionEnd==`number`&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},i}function vy(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=_y(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=_y(t,e,r),n(i);return}n(i)}function yy(){return yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yy.apply(this,arguments)}var by=v.forwardRef((e,t)=>{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:m,allowClear:h,value:g,handleReset:_,hidden:y,classes:b,classNames:x,dataAttrs:S,styles:C,components:w,onClear:T}=e,E=r??n,D=w?.affixWrapper||`span`,O=w?.groupWrapper||`span`,k=w?.wrapper||`span`,A=w?.groupAddon||`span`,j=(0,v.useRef)(null),M=e=>{j.current?.contains(e.target)&&m?.()},N=_ie(e),P=(0,v.cloneElement)(E,{value:g,className:G(E.props?.className,!N&&x?.variant)||null}),F=(0,v.useRef)(null);if(v.useImperativeHandle(t,()=>({nativeElement:F.current||j.current})),N){let e=null;if(h){let t=!d&&!f&&g,n=`${i}-clear-icon`,r=typeof h==`object`&&h?.clearIcon?h.clearIcon:`✖`;e=v.createElement(`button`,{type:`button`,tabIndex:-1,onClick:e=>{_?.(e),T?.()},onMouseDown:e=>e.preventDefault(),className:G(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o})},r)}let t=`${i}-affix-wrapper`,n=G(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&h&&g},b?.affixWrapper,x?.affixWrapper,x?.variant),r=(o||h)&&v.createElement(`span`,{className:G(`${i}-suffix`,x?.suffix),style:C?.suffix},e,o);P=v.createElement(D,yy({className:n,style:C?.affixWrapper,onClick:M},S?.affixWrapper,{ref:j}),a&&v.createElement(`span`,{className:G(`${i}-prefix`,x?.prefix),style:C?.prefix},a),P,r)}if(gie(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=G(`${i}-wrapper`,e,b?.wrapper,x?.wrapper),a=G(n,{[`${n}-disabled`]:d},b?.group,x?.groupWrapper);P=v.createElement(O,{className:a,ref:F},v.createElement(k,{className:r},s&&v.createElement(A,{className:t},s),P,c&&v.createElement(A,{className:t},c)))}return v.cloneElement(P,{className:G(P.props?.className,l)||null,style:{...P.props?.style,...u},hidden:y})});function xy(e,t){return v.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function Sy(){return Sy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sy.apply(this,arguments)}var vie=(0,v.forwardRef)((e,t)=>{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:m,showCount:h,count:g,type:_=`text`,classes:y,classNames:b,styles:x,onCompositionStart:S,onCompositionEnd:C,...w}=e,[T,D]=(0,v.useState)(!1),O=(0,v.useRef)(!1),k=(0,v.useRef)(!1),A=(0,v.useRef)(null),j=(0,v.useRef)(null),M=e=>{A.current&&Sf(A.current,e)},[N,P]=E(e.defaultValue,e.value),F=N==null?``:String(N),[I,L]=(0,v.useState)(null),R=xy(g,h),z=R.max||p,B=R.strategy(F),V=!!z&&B>z;(0,v.useImperativeHandle)(t,()=>({focus:M,blur:()=>{A.current?.blur()},setSelectionRange:(e,t,n)=>{A.current?.setSelectionRange(e,t,n)},select:()=>{A.current?.select()},input:A.current,nativeElement:j.current?.nativeElement||A.current})),(0,v.useEffect)(()=>{k.current&&=!1,D(e=>e&&u?!1:e)},[u]);let H=(e,t,n)=>{let i=t;if(!O.current&&R.exceedFormatter&&R.max&&R.strategy(t)>R.max)i=R.exceedFormatter(t,{max:R.max}),t!==i&&L([A.current?.selectionStart||0,A.current?.selectionEnd||0]);else if(n.source===`compositionEnd`)return;P(i),A.current&&vy(A.current,e,r,i)};(0,v.useEffect)(()=>{I&&A.current?.setSelectionRange(...I)},[I]);let U=e=>{H(e,e.target.value,{source:`change`})},ee=e=>{O.current=!1,H(e,e.currentTarget.value,{source:`compositionEnd`}),C?.(e)},te=e=>{o&&e.key===`Enter`&&!k.current&&!e.nativeEvent.isComposing&&(k.current=!0,o(e)),s?.(e)},W=e=>{e.key===`Enter`&&(k.current=!1),c?.(e)},ne=e=>{D(!0),i?.(e)},re=e=>{k.current&&=!1,D(!1),a?.(e)},ie=e=>{P(``),M(),A.current&&vy(A.current,e,r)},ae=V&&`${l}-out-of-range`;return v.createElement(by,Sy({},w,{prefixCls:l,className:G(f,ae),handleReset:ie,value:F,focused:T,triggerFocus:M,suffix:(()=>{let e=Number(z)>0;if(m||R.show){let t=R.showFormatter?R.showFormatter({value:F,count:B,maxLength:z}):`${B}${e?` / ${z}`:``}`;return v.createElement(v.Fragment,null,R.show&&v.createElement(`span`,{className:G(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!m},b?.count),style:{...x?.count}},t),m)}return null})(),disabled:u,classes:y,classNames:b,styles:x,ref:j}),(()=>{let t=he(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return v.createElement(`input`,Sy({autoComplete:n},t,{onChange:U,onFocus:ne,onBlur:re,onKeyDown:te,onKeyUp:W,className:G(l,{[`${l}-disabled`]:u},b?.input),style:x?.input,ref:A,size:d,type:_,onCompositionStart:e=>{O.current=!0,S?.(e)},onCompositionEnd:ee}))})())}),Cy=e=>{let t;return Zs(e)&&e?.clearIcon?t=e:e&&(t={clearIcon:v.createElement(Eo,null)}),t};function yie(e,t){let n=(0,v.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,v.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function bie(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var xie=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:m,styles:h,rootClassName:g,onChange:_,classNames:y,variant:b,...x}=e,{getPrefixCls:S,direction:C,allowClear:w,autoComplete:T,className:E,style:D,classNames:O,styles:k}=nt(`input`),A=S(`input`,n),j=(0,v.useRef)(null),M=jc(A),[N,P]=gv(A,g);are(A,M);let{compactSize:F,compactItemClassnames:I}=Iu(A,C),R=Nu(e=>a??F??e),z=v.useContext(Xl),B=o??z,V={...e,size:R,disabled:B},[H,U]=mc([O,y],[k,h],{props:V}),{status:ee,hasFeedback:te,feedbackIcon:W}=(0,v.useContext)(rm),ne=Eh(ee,i);(0,v.useRef)(bie(e)||!!te);let re=yie(j,!0),ie=e=>{re(),s?.(e)},ae=e=>{re(),c?.(e)},oe=e=>{re(),_?.(e)},se=(te||l)&&v.createElement(v.Fragment,null,l,te&&W),ce=Cy(u??w),[le,ue]=jh(`input`,b,r);return v.createElement(vie,{ref:L(t,j),prefixCls:A,autoComplete:T,...x,disabled:B,onBlur:ie,onFocus:ae,style:{...U.root,...D,...m},styles:U,suffix:se,allowClear:ce,className:G(p,g,P,M,I,E,H.root),onChange:oe,addonBefore:f&&v.createElement(im,{form:!0,space:!0},f),addonAfter:d&&v.createElement(im,{form:!0,space:!0},d),classNames:{...H,input:G({[`${A}-sm`]:R===`small`,[`${A}-lg`]:R===`large`,[`${A}-rtl`]:C===`rtl`},H.input,N),variant:G({[`${A}-${le}`]:ue},Th(A,ne)),affixWrapper:G({[`${A}-affix-wrapper-sm`]:R===`small`,[`${A}-affix-wrapper-lg`]:R===`large`,[`${A}-affix-wrapper-rtl`]:C===`rtl`},N),wrapper:G({[`${A}-group-rtl`]:C===`rtl`},N),groupWrapper:G({[`${A}-group-wrapper-sm`]:R===`small`,[`${A}-group-wrapper-lg`]:R===`large`,[`${A}-group-wrapper-rtl`]:C===`rtl`,[`${A}-group-wrapper-${le}`]:ue},Th(`${A}-group-wrapper`,ne,te),N)}})});function wy(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function Ty(e){return e?Ys(e):!1}var Ey=v.createContext({latestIndex:0}),Sie=Ey.Provider,Cie=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=v.useContext(Ey);return Js(i)?v.createElement(v.Fragment,null,v.createElement(`div`,{className:t,style:o},i),r<l&&a&&v.createElement(`span`,{className:G(`${n}-item-separator`,s?.separator),style:c?.separator},a)):null},wie=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},Tie=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},Eie=Xa(`Space`,e=>{let t=li(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[wie(t),Tie(t)]},()=>({}),{resetStyle:!1}),Dy=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=nt(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:m,orientation:h,prefixCls:g,split:_,separator:y,style:b,vertical:x,wrap:S=!1,classNames:C,styles:w,...T}=e,[E,D]=Array.isArray(l)?l:[l,l],O=wy(D),k=wy(E),A=Ty(D),j=Ty(E),M=ge(p,{keepEmpty:!0}),[N,P]=_c(h,x,m),F=u===void 0&&!P?`center`:u,I=y??_,L=n(`space`,g),[R,z]=Eie(L),B={...e,size:l,orientation:N,align:F},[V,H]=mc([s,C],[c,w],{props:B}),U=G(L,a,R,`${L}-${N}`,{[`${L}-rtl`]:r===`rtl`,[`${L}-align-${F}`]:F,[`${L}-gap-row-${D}`]:O,[`${L}-gap-col-${E}`]:k},d,f,z,V.root),ee=G(`${L}-item`,V.item),te=M.map((e,t)=>{let n=e?.key||`${ee}-${t}`;return v.createElement(Cie,{prefix:L,classNames:V,styles:H,className:ee,key:n,index:t,separator:I,style:H.item},e)}),W=v.useMemo(()=>({latestIndex:M.reduce((e,t,n)=>Js(t)?n:e,0)}),[M]);if(M.length===0)return null;let ne={};return S&&(ne.flexWrap=`wrap`),!k&&j&&(ne.columnGap=E),!O&&A&&(ne.rowGap=D),v.createElement(`div`,{ref:t,className:U,style:{...ne,...H.root,...o,...b},...T},v.createElement(Sie,{value:W},te))});Dy.Compact=zu,Dy.Addon=hie;var Oy=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=v.useContext($e),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,trigger:g,align:_,open:y,onOpenChange:b,placement:x,getPopupContainer:S,href:C,icon:w=v.createElement(k_,null),title:T,buttonsRender:E=e=>e,mouseEnterDelay:D,mouseLeaveDelay:O,overlayClassName:k,overlayStyle:A,destroyOnHidden:j,destroyPopupOnHide:M,dropdownRender:N,popupRender:P,...F}=e,I=n(`dropdown`,i),L=`${I}-button`,R={menu:p,arrow:m,autoFocus:h,align:_,disabled:s,trigger:s?[]:g,onOpenChange:b,getPopupContainer:S||t,mouseEnterDelay:D,mouseLeaveDelay:O,classNames:{root:k},styles:{root:A},destroyOnHidden:j,popupRender:P||N},{compactSize:z,compactItemClassnames:B}=Iu(I,r),V=G(L,B,f);`destroyPopupOnHide`in e&&(R.destroyPopupOnHide=M),`open`in e&&(R.open=y),`placement`in e?R.placement=x:R.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[H,U]=E([v.createElement(K_,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:C,title:T},d),v.createElement(K_,{type:a,danger:o,icon:w})]);return v.createElement(Dy.Compact,{className:V,size:z,block:!0,...F},H,v.createElement(G_,{...R},U))};Oy.__ANT_BUTTON=!0;var ky=G_;ky.Button=Oy;var Die=`
|
||
min-height:0 !important;
|
||
max-height:none !important;
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
overflow:hidden !important;
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
pointer-events: none !important;
|
||
`,Oie=[`letter-spacing`,`line-height`,`padding-top`,`padding-bottom`,`font-family`,`font-weight`,`font-size`,`font-variant`,`text-rendering`,`text-transform`,`width`,`text-indent`,`padding-left`,`padding-right`,`border-width`,`box-sizing`,`word-break`,`white-space`],Ay={},jy;function kie(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&Ay[n])return Ay[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:Oie.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(Ay[n]=s),s}function Aie(e,t=!1,n=null,r=null){jy||(jy=document.createElement(`textarea`),jy.setAttribute(`tab-index`,`-1`),jy.setAttribute(`aria-hidden`,`true`),jy.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(jy)),e.getAttribute(`wrap`)?jy.setAttribute(`wrap`,e.getAttribute(`wrap`)):jy.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=kie(e,t);jy.setAttribute(`style`,`${s};${Die}`),jy.value=e.value||e.placeholder||``;let c,l,u,d=jy.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){jy.value=` `;let e=jy.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?``:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function My(){return My=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},My.apply(this,arguments)}var Ny=0,Py=1,Fy=2,Iy=v.forwardRef((e,t)=>{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,m]=E(r,i),h=p??``,g=e=>{m(e.target.value),u?.(e)},_=v.useRef();v.useImperativeHandle(t,()=>({textArea:_.current}));let[y,b]=v.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),x=!!a,[S,w]=v.useState(Fy),[T,D]=v.useState(),O=()=>{w(Ny)};C(()=>{x&&O()},[i,y,b,x]),C(()=>{if(S===Ny)w(Py);else if(S===Py){let e=Aie(_.current,!1,y,b);w(Fy),D(e)}},[S]);let k=v.useRef(),A=()=>{Xe.cancel(k.current)},j=e=>{S===Fy&&(o?.(e),a&&(A(),k.current=Xe(()=>{O()})))};v.useEffect(()=>A,[]);let M=x?T:null,N={...c,...M};return(S===Ny||S===Py)&&(N.overflowY=`hidden`,N.overflowX=`hidden`),v.createElement(Le,{onResize:j,disabled:!(a||o)},v.createElement(`textarea`,My({},f,{ref:_,style:N,className:G(n,s,{[`${n}-disabled`]:l}),disabled:l,value:h,onChange:g})))});function Ly(){return Ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ly.apply(this,arguments)}var Ry=v.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:a,maxLength:o,onCompositionStart:s,onCompositionEnd:c,suffix:l,prefixCls:u=`rc-textarea`,showCount:d,count:f,className:p,style:m,disabled:h,hidden:g,classNames:_,styles:y,onResize:b,onClear:x,onPressEnter:S,readOnly:C,autoSize:w,onKeyDown:T,...D},O)=>{let[k,A]=E(e,t),j=k==null?``:String(k),[M,N]=v.useState(!1),P=v.useRef(!1),[F,I]=v.useState(null),L=(0,v.useRef)(null),R=(0,v.useRef)(null),z=()=>R.current?.textArea,B=()=>{z().focus()};(0,v.useImperativeHandle)(O,()=>({resizableTextArea:R.current,focus:B,blur:()=>{z().blur()},nativeElement:L.current?.nativeElement||z()})),(0,v.useEffect)(()=>{N(e=>!h&&e)},[h]);let[V,H]=v.useState(null);v.useEffect(()=>{V&&z().setSelectionRange(...V)},[V]);let U=xy(f,d),ee=U.max??o,te=Number(ee)>0,W=U.strategy(j),ne=!!ee&&W>ee,re=(e,t)=>{let n=t;!P.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max&&(n=U.exceedFormatter(t,{max:U.max}),t!==n&&H([z().selectionStart||0,z().selectionEnd||0])),A(n),vy(e.currentTarget,e,i,n)},ie=e=>{P.current=!0,s?.(e)},ae=e=>{P.current=!1,re(e,e.currentTarget.value),c?.(e)},oe=e=>{re(e,e.target.value)},se=e=>{e.key===`Enter`&&S&&!e.nativeEvent.isComposing&&S(e),T?.(e)},ce=e=>{N(!0),n?.(e)},le=e=>{N(!1),r?.(e)},ue=e=>{A(``),B(),vy(z(),e,i)},de=l,fe;U.show&&(fe=U.showFormatter?U.showFormatter({value:j,count:W,maxLength:ee}):`${W}${te?` / ${ee}`:``}`,de=v.createElement(v.Fragment,null,de,v.createElement(`span`,{className:G(`${u}-data-count`,_?.count),style:y?.count},fe)));let pe=e=>{b?.(e),z()?.style.height&&I(!0)},me=!w&&!d&&!a;return v.createElement(by,{ref:L,value:j,allowClear:a,handleReset:ue,suffix:de,prefixCls:u,classNames:{..._,affixWrapper:G(_?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:h,focused:M,className:G(p,ne&&`${u}-out-of-range`),style:{...m,...F&&!me?{height:`auto`}:{}},dataAttrs:{affixWrapper:{"data-count":typeof fe==`string`?fe:void 0}},hidden:g,readOnly:C,onClear:x},v.createElement(Iy,Ly({},D,{autoSize:w,maxLength:o,onKeyDown:se,onChange:oe,onFocus:ce,onBlur:le,onCompositionStart:ie,onCompositionEnd:ae,className:G(_?.textarea),style:{resize:m?.resize,...y?.textarea},disabled:h,prefixCls:u,onResize:pe,ref:R,readOnly:C})))}),zy=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[`
|
||
&-allow-clear > ${t},
|
||
&-affix-wrapper${r}-has-feedback ${t}
|
||
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},By=Xa([`Input`,`TextArea`],e=>zy(li(e,tv(e))),nv,{resetFont:!1}),Vy=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:m,onMouseDown:h,onResize:g,..._}=e,{getPrefixCls:y,direction:b,allowClear:x,autoComplete:S,className:C,style:w,classNames:T,styles:E}=nt(`textArea`),D=v.useContext(Xl),O=a??D,{status:k,hasFeedback:A,feedbackIcon:j}=v.useContext(rm),M=Eh(k,o),[N,P]=mc([T,c],[E,f],{props:e}),F=v.useRef(null);v.useImperativeHandle(t,()=>({resizableTextArea:F.current?.resizableTextArea,focus:e=>{Sf(F.current?.resizableTextArea?.textArea,e)},blur:()=>F.current?.blur(),nativeElement:F.current?.nativeElement||null}));let I=y(`input`,n),L=jc(I),[R,z]=gv(I,l);By(I,L);let{compactSize:B,compactItemClassnames:V}=Iu(I,b),H=Nu(e=>i??B??e),[U,ee]=jh(`textArea`,p,r),te=Cy(s??x),[W,ne]=v.useState(!1),[re,ie]=v.useState(!1),ae=e=>{ne(!0),h?.(e);let t=()=>{ne(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},oe=e=>{if(g?.(e),W&&typeof getComputedStyle==`function`){let e=F.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&ie(!0)}};return v.createElement(Ry,{autoComplete:S,..._,style:{...P.root,...w,...d},styles:P,disabled:O,allowClear:te,className:G(z,L,u,l,V,C,N.root,{[`${I}-textarea-affix-wrapper-resize-dirty`]:re}),classNames:{...N,textarea:G({[`${I}-sm`]:H===`small`,[`${I}-lg`]:H===`large`},R,N.textarea,W&&`${I}-mouse-active`),variant:G({[`${I}-${U}`]:ee},Th(I,M)),affixWrapper:G(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:b===`rtl`,[`${I}-affix-wrapper-sm`]:H===`small`,[`${I}-affix-wrapper-lg`]:H===`large`,[`${I}-textarea-show-count`]:m||e.count?.show},R)},prefixCls:I,suffix:A&&v.createElement(`span`,{className:`${I}-textarea-suffix`},j),showCount:m,ref:F,onResize:oe,onMouseDown:ae})});function Hy(e,t,n){return typeof n==`boolean`?n:e.length?!0:ge(t).some(e=>e.type===D_)}var Uy=({suffixCls:e,tagName:t,displayName:n})=>n=>v.forwardRef((r,i)=>v.createElement(n,{ref:i,suffixCls:e,tagName:t,...r})),Wy=v.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a,...o}=e,{getPrefixCls:s}=v.useContext($e),c=s(`layout`,n),[l]=w_(c),u=r?`${c}-${r}`:c;return v.createElement(a,{className:G(n||u,i,l),ref:t,...o})}),Gy=v.forwardRef((e,t)=>{let{direction:n}=v.useContext($e),[r,i]=v.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d,...f}=e,p=he(f,[`suffixCls`]),{getPrefixCls:m,className:h,style:g}=nt(`layout`),_=m(`layout`,a),y=Hy(r,c,l),[b,x]=w_(_),S=G(_,{[`${_}-has-sider`]:y,[`${_}-rtl`]:n===`rtl`},h,o,s,b,x),C=v.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(We(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return v.createElement(x_.Provider,{value:C},v.createElement(u,{ref:t,className:S,style:{...g,...d},...p},c))}),Ky=Uy({tagName:`div`,displayName:`Layout`})(Gy),qy=Uy({suffixCls:`header`,tagName:`header`,displayName:`Header`})(Wy),Jy=Uy({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(Wy),Yy=Uy({suffixCls:`content`,tagName:`main`,displayName:`Content`})(Wy),Xy=Ky;Xy.Header=qy,Xy.Footer=Jy,Xy.Content=Yy,Xy.Sider=D_,Xy._InternalSiderContext=E_;var Zy={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`};function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qy.apply(this,arguments)}var $y=v.forwardRef((e,t)=>v.createElement(Co,Qy({},e,{ref:t,icon:Zy}))),eb={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`};function tb(){return tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tb.apply(this,arguments)}var nb=v.forwardRef((e,t)=>v.createElement(Co,tb({},e,{ref:t,icon:eb}))),rb={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},ib=[10,20,50,100],ab=e=>{let{pageSizeOptions:t=ib,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=v.useState(``),m=v.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},y=e=>{f!==``&&(e.keyCode===uu.ENTER||e.type===`click`)&&(p(``),o?.(m))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:h(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?v.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):v.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=v.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,v.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:y,onBlur:_,"aria-label":n.page}),n.page,w)),v.createElement(`li`,{className:x},S,C)},ob=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=G(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,v.createElement(`a`,{rel:`nofollow`},n));return m?v.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function sb(){return sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sb.apply(this,arguments)}var cb=(e,t,n)=>n;function lb(){}function ub(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function db(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var fb=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=lb,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:y=lb,locale:b=rb,style:x,totalBoundaryShowSizeChanger:S=50,disabled:C,simple:w,showTotal:T,showSizeChanger:D=c>S,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=cb,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=v.useRef(null),[I,L]=E(u,l),[R,z]=E(s,o),B=Math.max(1,Math.min(R,db(void 0,I,c))),[V,H]=v.useState(B);(0,v.useEffect)(()=>{H(B)},[B]),`current`in e;let U=Math.max(1,B-(g?3:5)),ee=Math.min(db(void 0,I,c),B+(g?3:5));function te(n,r){let i=n||v.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=v.createElement(n,e)),i}function W(e){let t=e.target.value,n=db(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function ne(e){return ub(e)&&e!==B&&ub(c)&&c>0}let re=c>I?h:!1;function ie(e){(e.keyCode===uu.UP||e.keyCode===uu.DOWN)&&e.preventDefault()}function ae(e){let t=W(e);switch(t!==V&&H(t),e.keyCode){case uu.ENTER:ce(t);break;case uu.UP:ce(t-1);break;case uu.DOWN:ce(t+1);break;default:break}}function oe(e){ce(W(e))}function se(e){let t=db(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),y?.(B,e),z(n),d?.(n,e)}function ce(e){if(ne(e)&&!C){let t=db(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==V&&H(n),z(n),d?.(n,I),n}return B}let le=B>1,ue=B<db(void 0,I,c);function de(){le&&ce(B-1)}function fe(){ue&&ce(B+1)}function pe(){ce(U)}function me(){ce(ee)}function he(e,t,...n){(e.key===`Enter`||e.charCode===uu.ENTER||e.keyCode===uu.ENTER)&&t(...n)}function ge(e){he(e,de)}function _e(e){he(e,fe)}function ve(e){he(e,pe)}function ye(e){he(e,me)}function be(e){let t=A(e,`prev`,te(N,`prev page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!le}):t}function xe(e){let t=A(e,`next`,te(P,`next page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!ue}):t}function Se(e){(e.type===`click`||e.keyCode===uu.ENTER)&&ce(V)}let Ce=null,we=Ts(e,{aria:!0,data:!0}),Te=T&&v.createElement(`li`,{className:`${t}-total-text`},T(c,[c===0?0:(B-1)*I+1,B*I>c?c:B*I])),Ee=null,De=db(void 0,I,c);if(f&&c<=I)return null;let Oe=[],ke={rootPrefixCls:t,onClick:ce,onKeyPress:he,showTitle:_,itemRender:A,page:-1,className:i?.item,style:a?.item},Ae=B-1>0?B-1:0,je=B+1<De?B+1:De,Me=h&&h.goButton,Ne=typeof w==`object`?w.readOnly:!w,Pe=Me,Fe=null;w&&(Me&&(Pe=typeof Me==`boolean`?v.createElement(`button`,{type:`button`,onClick:Se,onKeyUp:Se},b.jump_to_confirm):v.createElement(`span`,{onClick:Se,onKeyUp:Se},Me),Pe=v.createElement(`li`,{title:_?`${b.jump_to}${B}/${De}`:null,className:`${t}-simple-pager`},Pe)),Fe=v.createElement(`li`,{title:_?`${B}/${De}`:null,className:G(`${t}-simple-pager`,i?.item),style:a?.item},Ne?V:v.createElement(`input`,{type:`text`,"aria-label":b.jump_to,value:V,disabled:C,onKeyDown:ie,onKeyUp:ae,onChange:ae,onBlur:oe,size:3}),v.createElement(`span`,{className:`${t}-slash`},`/`),De));let Ie=g?1:2;if(De<=3+Ie*2){De||Oe.push(v.createElement(ob,sb({},ke,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=De;e+=1)Oe.push(v.createElement(ob,sb({},ke,{key:e,page:e,active:B===e})))}else{let e=g?b.prev_3:b.prev_5,n=g?b.next_3:b.next_5,r=A(U,`jump-prev`,te(j,`prev page`)),i=A(ee,`jump-next`,te(M,`next page`));m&&(Ce=r?v.createElement(`li`,{title:_?e:null,key:`prev`,onClick:pe,tabIndex:0,onKeyDown:ve,className:G(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!j})},r):null,Ee=i?v.createElement(`li`,{title:_?n:null,key:`next`,onClick:me,tabIndex:0,onKeyDown:ye,className:G(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!M})},i):null);let a=Math.max(1,B-Ie),o=Math.min(B+Ie,De);B-1<=Ie&&(o=1+Ie*2),De-B<=Ie&&(a=De-Ie*2);for(let e=a;e<=o;e+=1)Oe.push(v.createElement(ob,sb({},ke,{key:e,page:e,active:B===e})));if(B-1>=Ie*2&&B!==3&&(Oe[0]=v.cloneElement(Oe[0],{className:G(`${t}-item-after-jump-prev`,Oe[0].props.className)}),Oe.unshift(Ce)),De-B>=Ie*2&&B!==De-2){let e=Oe[Oe.length-1];Oe[Oe.length-1]=v.cloneElement(e,{className:G(`${t}-item-before-jump-next`,e.props.className)}),Oe.push(Ee)}a!==1&&Oe.unshift(v.createElement(ob,sb({},ke,{key:1,page:1}))),o!==De&&Oe.push(v.createElement(ob,sb({},ke,{key:De,page:De})))}let Le=be(Ae);if(Le){let e=!le||!De;Le=v.createElement(`li`,{title:_?b.prev_page:null,onClick:de,tabIndex:e?null:0,onKeyDown:ge,className:G(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Le)}let Re=xe(je);if(Re){let e,n;w?(e=!ue,n=le?0:null):(e=!ue||!De,n=e?null:0),Re=v.createElement(`li`,{title:_?b.next_page:null,onClick:fe,tabIndex:n,onKeyDown:_e,className:G(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Re)}let ze=G(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:w,[`${t}-disabled`]:C});return v.createElement(`ul`,sb({className:ze,style:x,ref:F},we),Te,Le,w?Fe:Oe,Re,v.createElement(ab,{locale:b,rootPrefixCls:t,disabled:C,selectPrefixCls:n,changeSize:se,pageSize:I,pageSizeOptions:k,quickGo:re?ce:null,goButton:Pe,showSizeChanger:D,sizeChangerRender:O}))},pb=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},mb=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...mv(e),width:e.paginationMiniQuickJumperInputWidth}}}}},hb=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...pv(e)}}}}},gb=e=>{let{componentCls:t,antCls:n}=e,[,r]=$a(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${K(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${K(e.inputOutlineOffset)} 0 ${K(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},_b=e=>{let{componentCls:t,antCls:n}=e,[,r]=$a(n,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:`block`,margin:`auto`,color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:`center`,textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
||
${t}-prev,
|
||
${t}-jump-prev,
|
||
${t}-jump-next
|
||
`]:{marginInlineEnd:r(`item-spacing-actual`)},[`
|
||
${t}-prev,
|
||
${t}-next,
|
||
${t}-jump-prev,
|
||
${t}-jump-next
|
||
`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${K(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,"&-size-changer":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:r(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:r(`item-size-actual`),verticalAlign:`baseline`,input:{...hv(e),...av(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...iv(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},vb=e=>{let{componentCls:t,antCls:n}=e,[,r]=$a(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:K(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${K(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${K(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},yb=e=>{let{componentCls:t,antCls:n}=e,[r,i]=$a(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:K(e.itemSize),[r(`item-spacing-actual`)]:K(e.marginXS),"&-small":{[r(`item-size-actual`)]:K(e.itemSizeSM),[r(`item-spacing-actual`)]:K(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:K(e.itemSizeLG),[r(`item-spacing-actual`)]:K(e.marginSM)},...Va(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:K(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...vb(e),..._b(e),...gb(e),...mb(e),...hb(e),...pb(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:`none`}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:`none`}}},[`&${e.componentCls}-rtl`]:{direction:`rtl`}}},bb=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Ga(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Wa(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Wa(e)}}}},xb=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...nv(e)}),Sb=e=>li(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},tv(e)),Cb=Xa(`Pagination`,e=>{let t=Sb(e);return[yb(t),bb(t)]},xb),wb=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Tb=Qa([`Pagination`,`bordered`],e=>wb(Sb(e)),xb);function Eb(e){return(0,v.useMemo)(()=>typeof e==`boolean`?[e,{}]:Zs(e)?[!0,e]:[void 0,void 0],[e])}var Db=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:m,...h}=e,{xs:g}=eg(l),[,_]=za(),{getPrefixCls:y,direction:b,showSizeChanger:x,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=nt(`pagination`),D=y(`pagination`,n),[O,k]=Cb(D),A=Nu(s),j=A===`small`||!!(g&&!A&&l),M={...e,size:A},[N,P]=mc([w,m],[T,p],{props:M}),[F]=Ws(`Pagination`,Es),I={...F,...c},[L,R]=Eb(u),[z,B]=Eb(x),V=L??z,H=R??B,U=d||Qh,ee=v.useMemo(()=>f?f.map(Number):void 0,[f]),te=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=H||{},l=o.find(e=>String(e.value)===String(n))?.value;return v.createElement(U,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...H,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:A,className:G(a,s)})},W=v.useMemo(()=>{let e=v.createElement(`span`,{className:`${D}-item-ellipsis`},`•••`);return{prevIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(qd,null):v.createElement(yg,null)),nextIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(yg,null):v.createElement(qd,null)),jumpPrevIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(nb,{className:`${D}-item-link-icon`}):v.createElement($y,{className:`${D}-item-link-icon`}),e)),jumpNextIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement($y,{className:`${D}-item-link-icon`}):v.createElement(nb,{className:`${D}-item-link-icon`}),e))}},[b,D]),ne=y(`select`,r),re=G({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-mini`]:j,[`${D}-rtl`]:b===`rtl`,[`${D}-bordered`]:_.wireframe},S,i,a,N.root,O,k),ie={...P.root,...C,...o};return v.createElement(v.Fragment,null,_.wireframe&&v.createElement(Tb,{prefixCls:D}),v.createElement(fb,{...W,...h,styles:P,classNames:N,style:ie,prefixCls:D,selectPrefixCls:ne,className:re,locale:I,pageSizeOptions:ee,showSizeChanger:V,totalBoundaryShowSizeChanger:h.totalBoundaryShowSizeChanger??E,sizeChangerRender:te}))},Ob=100,kb=Ob/5,Ab=Ob/2-kb/2,jb=Ab*2*Math.PI,Mb=50,Nb=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return v.createElement(`circle`,{className:G(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Ab,cx:Mb,cy:Mb,strokeWidth:kb,style:n})},jie=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=v.useState(!1);C(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${jb/4}`,strokeDasharray:`${jb*s/100} ${jb*(100-s)/100}`};return v.createElement(`span`,{className:G(r,`${n}-progress`,{[i]:s<=0})},v.createElement(`svg`,{viewBox:`0 0 ${Ob} ${Ob}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},v.createElement(Nb,{dotClassName:n,hasCircleCls:!0}),v.createElement(Nb,{dotClassName:n,style:c})))};function Mie(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return v.createElement(v.Fragment,null,v.createElement(`span`,{className:G(o,r,n>0&&s),style:i},v.createElement(`span`,{className:G(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>v.createElement(`i`,{className:`${t}-dot-item`,key:e})))),v.createElement(jie,{prefixCls:t,percent:n}))}function Nie(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&v.isValidElement(n)?Gl(n,e=>({className:G(e.className,o,i),style:{...e.style,...a},percent:r})):v.createElement(Mie,{prefixCls:t,percent:r,className:i,style:a})}var Pie=new Ar(`antSpinMove`,{to:{opacity:1}}),Fie=new Ar(`antRotate`,{to:{transform:`rotate(405deg)`}}),Iie=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...Va(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:`relative`,transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:`100%`,height:`100%`,background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`""`,pointerEvents:`none`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},Lie=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=$a(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:Fie,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:Pie,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`alternate`,"&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:`0s`},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:`0.4s`},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:`0.8s`},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:`1.2s`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},Rie=e=>{let{componentCls:t}=e,[n]=$a(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},zie=Xa(`Spin`,e=>{let t=li(e,{spinDotDefault:e.colorTextDescription});return[Iie(t),Lie(t),Rie(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),Bie=200,Pb=[[30,.05],[70,.03],[96,.01]];function Vie(e,t){let[n,r]=v.useState(0),i=v.useRef(null),a=t===`auto`;return v.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n<Pb.length;n+=1){let[r,i]=Pb[n];if(e<=r)return e+t*i}return e})},Bie)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var Fb;function Hie(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var Ib=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:m,classNames:h,styles:g,..._}=e,{getPrefixCls:y,direction:b,indicator:x,className:S,style:C,classNames:w,styles:T}=nt(`spin`),E=y(`spin`,t),[D,O]=zie(E),[k,A]=v.useState(()=>n&&!Hie(n,r)),j=Vie(k,m);v.useEffect(()=>{if(n){let e=qre(r,()=>{A(!0)});return e(),()=>{e?.cancel?.()}}A(!1)},[r,n]);let M=Nu(e=>o??e),N=c??s,P={...e,size:M,spinning:k,tip:N,description:N,fullscreen:f,children:d,percent:j},[F,I]=mc([w,h],[T,g],{props:P}),L=p??x??Fb,R=d!==void 0,z=R||f,B=v.createElement(v.Fragment,null,v.createElement(Nie,{className:G(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&v.createElement(`div`,{className:G(`${E}-description`,F.tip,F.description),style:{...I.tip,...I.description}},N));return v.createElement(`div`,{className:G(E,{[`${E}-sm`]:M===`small`,[`${E}-lg`]:M===`large`,[`${E}-spinning`]:k,[`${E}-rtl`]:b===`rtl`,[`${E}-fullscreen`]:f},a,F.root,f&&F.mask,z?l:[`${E}-section`,F.section],S,i,D,O),style:{...I.root,...z?{}:I.section,...f?I.mask:{},...C,...u},"aria-live":`polite`,"aria-busy":k,..._},k&&(z?v.createElement(`div`,{className:G(`${E}-section`,F.section),style:I.section},B):B),R&&v.createElement(`div`,{className:G(`${E}-container`,F.container),style:I.container},d))};Ib.setDefaultIndicator=e=>{Fb=e};var Lb=(e,t={})=>!Js(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],Uie=e=>{let{value:t,formatter:n,precision:r,decimalSeparator:i,groupSeparator:a=``,prefixCls:o}=e,s;if(typeof n==`function`)s=n(t);else{let e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(!n||e===`-`)s=e;else{let e=n[1],t=n[2]||`0`,c=n[4]||``;t=t.replace(/\B(?=(\d{3})+(?!\d))/g,a),Ys(r)&&(c=c.padEnd(r,`0`).slice(0,r>0?r:0)),c&&=`${i}${c}`,s=[v.createElement(`span`,{key:`int`,className:`${o}-content-value-int`},e,t),c&&v.createElement(`span`,{key:`decimal`,className:`${o}-content-value-decimal`},c)]}}return v.createElement(`span`,{className:`${o}-content-value`},s)},Wie=e=>{let{componentCls:t,marginXXS:n,padding:r,colorTextDescription:i,titleFontSize:a,colorTextHeading:o,contentFontSize:s,fontFamily:c}=e;return{[t]:{...Va(e),[`${t}-header`]:{paddingBottom:n,[`${t}-title`]:{color:i,fontSize:a}},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:o,fontSize:s,fontFamily:c,[`${t}-content-value`]:{display:`inline-block`,direction:`ltr`},[`${t}-content-prefix, ${t}-content-suffix`]:{display:`inline-block`},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}}}},Gie=Xa(`Statistic`,e=>Wie(li(e,{})),e=>{let{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}),Rb=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,valueStyle:o,value:s=0,title:c,valueRender:l,prefix:u,suffix:d,loading:f=!1,formatter:p,precision:m,decimalSeparator:h=`.`,groupSeparator:g=`,`,onMouseEnter:_,onMouseLeave:y,styles:b,classNames:x,...S}=e,{getPrefixCls:C,direction:w,className:T,style:E,classNames:D,styles:O}=nt(`statistic`),k=C(`statistic`,n),[A,j]=Gie(k),M={...e,decimalSeparator:h,groupSeparator:g,loading:f,value:s},[N,P]=mc([D,x],[O,b],{props:M}),F=v.createElement(Uie,{decimalSeparator:h,groupSeparator:g,prefixCls:k,formatter:p,precision:m,value:s}),I=G(k,{[`${k}-rtl`]:w===`rtl`},T,r,i,N.root,A,j),L=G(`${k}-header`,N.header),R=G(`${k}-title`,N.title),z=G(`${k}-content`,N.content),B=G(`${k}-content-prefix`,N.prefix),V=G(`${k}-content-suffix`,N.suffix),H=v.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:H.current}));let U=Ts(S,{aria:!0,data:!0});return v.createElement(`div`,{...U,className:I,style:{...P.root,...E,...a},ref:H,onMouseEnter:_,onMouseLeave:y},c&&v.createElement(`div`,{className:L,style:P.header},v.createElement(`div`,{className:R,style:P.title},c)),v.createElement(vm,{paragraph:!1,loading:f,className:`${k}-skeleton`,active:!0},v.createElement(`div`,{className:z,style:{...o,...P.content}},u&&v.createElement(`span`,{className:B,style:P.prefix},u),typeof l==`function`?l(F):F,d&&v.createElement(`span`,{className:V,style:P.suffix},d))))}),Kie=[[`Y`,1e3*60*60*24*365],[`M`,1e3*60*60*24*30],[`D`,1e3*60*60*24],[`H`,1e3*60*60],[`m`,1e3*60],[`s`,1e3],[`S`,1]];function qie(e,t){let n=e,r=/\[[^\]]*]/g,i=(t.match(r)||[]).map(e=>e.slice(1,-1)),a=t.replace(r,`[]`),o=Kie.reduce((e,[t,r])=>{if(e.includes(t)){let i=Math.floor(n/r);return n-=i*r,e.replace(RegExp(`${t}+`,`g`),e=>{let t=e.length;return i.toString().padStart(t,`0`)})}return e},a),s=0;return o.replace(r,()=>{let e=i[s];return s+=1,e})}function Jie(e,t,n){let{format:r=``}=t,i=new Date(e).getTime(),a=Date.now();return qie(Math.max(n?i-a:a-i,0),r)}var Yie=1e3/60;function Xie(e){return new Date(e).getTime()}var zb=e=>{let{value:t,format:n=`HH:mm:ss`,onChange:r,onFinish:i,type:a,...o}=e,s=a===`countdown`,[c,l]=v.useState(null),u=b(()=>{let e=Date.now(),n=Xie(t);l({});let a=s?n-e:e-n;return r?.(a),s&&n<e?(i?.(),!1):!0});v.useEffect(()=>{let e,t=()=>{u()||window.clearInterval(e)},n=()=>{e=window.setInterval(t,Yie)},r=()=>{window.clearInterval(e)};return n(),()=>{r()}},[t,s]),v.useEffect(()=>{l({})},[]);let d=(e,t)=>c?Jie(e,{...t,format:n},s):`-`,f=e=>Gl(e,{title:void 0});return v.createElement(Rb,{...o,value:t,valueRender:f,formatter:d})},Zie=v.memo(e=>v.createElement(zb,{...e,type:`countdown`}));Rb.Timer=zb,Rb.Countdown=Zie;var Qie=Rb,Bb={},Vb=`rc-table-internal-hook`;function Hb(e){let t=v.createContext(void 0);return{Context:t,Provider:({value:e,children:n})=>{let r=v.useRef(e);r.current=e;let[i]=v.useState(()=>({getValue:()=>r.current,listeners:new Set}));return C(()=>{(0,al.unstable_batchedUpdates)(()=>{i.listeners.forEach(t=>{t(e)})})},[e]),v.createElement(t.Provider,{value:i},n)},defaultValue:e}}function Ub(e,t){let n=b(typeof t==`function`?t:e=>{if(t===void 0)return e;if(!Array.isArray(t))return e[t];let n={};return t.forEach(t=>{n[t]=e[t]}),n}),r=v.useContext(e?.Context),{listeners:i,getValue:a}=r||{},o=v.useRef();o.current=n(r?a():e?.defaultValue);let[,s]=v.useState({});return C(()=>{if(!r)return;function e(e){let t=n(e);vt(o.current,t,!0)||s({})}return i.add(e),()=>{i.delete(e)}},[r]),o.current}function Wb(){return Wb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wb.apply(this,arguments)}function Gb(){let e=v.createContext(null);function t(){return v.useContext(e)}function n(n,r){let i=z(n),a=(a,o)=>{let s=i?{ref:o}:{},c=v.useRef(0),l=v.useRef(a);return t()===null?((!r||r(l.current,a))&&(c.current+=1),l.current=a,v.createElement(e.Provider,{value:c.current},v.createElement(n,Wb({},a,s)))):v.createElement(n,Wb({},a,s))};return i?v.forwardRef(a):a}function r(e,n){let r=z(e),i=(n,i)=>{let a=r?{ref:i}:{};return t(),v.createElement(e,Wb({},n,a))};return v.memo(r?v.forwardRef(i):i,n)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var{makeImmutable:$ie,responseImmutable:eae,useImmutableMark:tae}=Gb(),{makeImmutable:Kb,responseImmutable:qb,useImmutableMark:nae}=Gb(),Jb=Hb(),Yb=v.createContext({renderWithProps:!1}),rae=`RC_TABLE_KEY`;function iae(e){return e==null?[]:Array.isArray(e)?e:[e]}function Xb(e){let t=[],n={};return e.forEach(e=>{let{key:r,dataIndex:i}=e||{},a=r||iae(i).join(`-`)||rae;for(;n[a];)a=`${a}_next`;n[a]=!0,t.push(a)}),t}function Zb(e){return e!=null}function aae(e){return typeof e==`number`&&!Number.isNaN(e)}function oae(e){return e&&typeof e==`object`&&!Array.isArray(e)&&!v.isValidElement(e)}function sae(e,t,n,r,i,a){let o=v.useContext(Yb);return k(()=>{if(Zb(r))return[r];let a=U(e,t==null||t===``?[]:Array.isArray(t)?t:[t]),s=a,c;if(i){let t=i(a,e,n);oae(t)?(s=t.children,c=t.props,o.renderWithProps=!0):s=t}return[s,c]},[nae(),e,r,t,i,n],(e,t)=>{if(a){let[,n]=e,[,r]=t;return a(r,n)}return o.renderWithProps?!0:!vt(e,t,!0)})}function cae(e,t,n,r){let i=e+t-1;return e<=r&&i>=n}function lae(e,t){return Ub(Jb,n=>[cae(e,t||1,n.hoverStartRow,n.hoverEndRow),n.onHover])}function Qb(){return Qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qb.apply(this,arguments)}var uae=({ellipsis:e,rowType:t,children:n})=>{let r,i=e===!0?{showTitle:!0}:e;return i&&(i.showTitle||t===`header`)&&(typeof n==`string`||typeof n==`number`?r=n.toString():v.isValidElement(n)&&typeof n.props?.children==`string`&&(r=n.props?.children)),r},$b=v.memo(e=>{let{component:t,children:n,ellipsis:r,scope:i,prefixCls:a,className:o,style:s,align:c,record:l,render:u,dataIndex:d,renderIndex:f,shouldCellUpdate:p,index:m,rowType:h,colSpan:g,rowSpan:_,fixStart:y,fixEnd:x,fixedStartShadow:S,fixedEndShadow:C,offsetFixedStartShadow:w,offsetFixedEndShadow:T,zIndex:E,zIndexReverse:D,appendNode:O,additionalProps:k={},isSticky:A}=e,j=`${a}-cell`,{allColumnsFixedLeft:M,rowHoverable:N}=Ub(Jb,[`allColumnsFixedLeft`,`rowHoverable`]),[P,F]=sae(l,d,f,n,u,p),I={},L=typeof y==`number`&&!M,R=typeof x==`number`&&!M,[z,B]=Ub(Jb,({scrollInfo:e})=>{if(!L&&!R)return[!1,!1];let[t,n]=e;return[(L&&S&&t)-w>=1,(R&&C&&n-t)-T>1]});L&&(I.insetInlineStart=y,I[`--z-offset`]=E,I[`--z-offset-reverse`]=D),R&&(I.insetInlineEnd=x,I[`--z-offset`]=E,I[`--z-offset-reverse`]=D);let V=F?.colSpan??k.colSpan??g??1,H=F?.rowSpan??k.rowSpan??_??1,[U,ee]=lae(m,H),te=b(e=>{l&&ee(m,m+H-1),k?.onMouseEnter?.(e)}),W=b(e=>{l&&ee(-1,-1),k?.onMouseLeave?.(e)});if(V===0||H===0)return null;let ne=k.title??uae({rowType:h,ellipsis:r,children:P}),re=G(j,o,{[`${j}-fix`]:L||R,[`${j}-fix-start`]:L,[`${j}-fix-end`]:R,[`${j}-fix-start-shadow`]:S,[`${j}-fix-start-shadow-show`]:S&&z,[`${j}-fix-end-shadow`]:C,[`${j}-fix-end-shadow-show`]:C&&B,[`${j}-ellipsis`]:r,[`${j}-with-append`]:O,[`${j}-fix-sticky`]:(L||R)&&A,[`${j}-row-hover`]:!F&&U},k.className,F?.className),ie={};c&&(ie.textAlign=c);let ae={...F?.style,...I,...ie,...k.style,...s},oe=P;return typeof oe==`object`&&!Array.isArray(oe)&&!v.isValidElement(oe)&&(oe=null),r&&(S||C)&&(oe=v.createElement(`span`,{className:`${j}-content`},oe)),v.createElement(t,Qb({},F,k,{className:re,style:ae,title:ne,scope:i,onMouseEnter:N?te:void 0,onMouseLeave:N?W:void 0,colSpan:V===1?null:V,rowSpan:H===1?null:H}),O,oe)});function ex(e){return e.fixed===`start`}function tx(e){return e.fixed===`end`}function nx(e,t,n,r){let i=n[e]||{},a=n[t]||{},o=null,s=null;ex(i)&&ex(a)?o=r.start[e]:tx(a)&&tx(i)&&(s=r.end[t]);let c=!1,l=!1,u=0,d=0;o!==null&&(c=!n[t+1]||!ex(n[t+1]),u=n.length*2-e,d=n.length+e),s!==null&&(l=!n[e-1]||!tx(n[e-1]),u=t,d=n.length-t);let f=0,p=0;if(c)for(let t=0;t<e;t+=1)ex(n[t])||(f+=r.widths[t]||0);if(l)for(let e=n.length-1;e>t;--e)tx(n[e])||(p+=r.widths[e]||0);return{fixStart:o,fixEnd:s,fixedStartShadow:c,fixedEndShadow:l,offsetFixedStartShadow:f,offsetFixedEndShadow:p,isSticky:r.isSticky,zIndex:u,zIndexReverse:d}}var rx=v.createContext({});function ix(){return ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ix.apply(this,arguments)}var dae=e=>{let{className:t,index:n,children:r,colSpan:i=1,rowSpan:a,align:o}=e,{prefixCls:s}=Ub(Jb,[`prefixCls`]),{scrollColumnIndex:c,stickyOffsets:l,flattenColumns:u}=v.useContext(rx),d=n+i-1+1===c?i+1:i,f=v.useMemo(()=>nx(n,n+d-1,u,l),[n,d,u,l]);return v.createElement($b,ix({className:t,index:n,component:`td`,prefixCls:s,record:null,dataIndex:null,align:o,colSpan:d,rowSpan:a,render:()=>r},f))},fae=e=>{let{children:t,...n}=e;return v.createElement(`tr`,n,t)},ax=e=>{let{children:t}=e;return t};ax.Row=fae,ax.Cell=dae;var ox=qb(e=>{let{children:t,stickyOffsets:n,flattenColumns:r}=e,i=Ub(Jb,`prefixCls`),a=r.length-1,o=r[a],s=v.useMemo(()=>({stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o?.scrollbar?a:null}),[o,r,a,n]);return v.createElement(rx.Provider,{value:s},v.createElement(`tfoot`,{className:`${i}-summary`},t))}),sx=ax;function pae(e){return null}function mae(e){return null}function cx(e,t,n,r,i,a,o){let s=a(t,o);e.push({record:t,indent:n,index:o,rowKey:s});let c=i?.has(s);if(t&&Array.isArray(t[r])&&c)for(let o=0;o<t[r].length;o+=1)cx(e,t[r][o],n+1,r,i,a,o)}function lx(e,t,n,r){return v.useMemo(()=>{if(n?.size){let i=[];for(let a=0;a<e?.length;a+=1){let o=e[a];cx(i,o,0,t,n,r,a)}return i}return e?.map((e,t)=>({record:e,indent:0,index:t,rowKey:r(e,t)}))},[e,t,n,r])}function ux(e,t,n,r){let i=Ub(Jb,[`prefixCls`,`fixedInfoList`,`flattenColumns`,`expandableType`,`expandRowByClick`,`onTriggerExpand`,`rowClassName`,`expandedRowClassName`,`indentSize`,`expandIcon`,`expandedRowRender`,`expandIconColumnIndex`,`expandedKeys`,`childrenColumnName`,`rowExpandable`,`onRow`]),{flattenColumns:a,expandableType:o,expandedKeys:s,childrenColumnName:c,onTriggerExpand:l,rowExpandable:u,onRow:d,expandRowByClick:f,rowClassName:p}=i,m=o===`nest`,h=o===`row`&&(!u||u(e)),g=h||m,_=s&&s.has(t),v=c&&e&&e[c],y=b(l),x=d?.(e,n),S=x?.onClick,C=(t,...n)=>{f&&g&&l(e,t),S?.(t,...n)},w;typeof p==`string`?w=p:typeof p==`function`&&(w=p(e,n,r));let T=Xb(a);return{...i,columnsKey:T,nestExpandable:m,expanded:_,hasNestChildren:v,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:{...x,className:G(w,x?.className),onClick:C}}}var dx=e=>{let{prefixCls:t,children:n,component:r,cellComponent:i,className:a,expanded:o,colSpan:s,isEmpty:c,stickyOffset:l=0}=e,{scrollbarSize:u,fixHeader:d,fixColumn:f,componentWidth:p,horizonScroll:m}=Ub(Jb,[`scrollbarSize`,`fixHeader`,`fixColumn`,`componentWidth`,`horizonScroll`]),h=n;return(c?m&&p:f)&&(h=v.createElement(`div`,{style:{width:p-l-(d&&!c?u:0),position:`sticky`,left:l,overflow:`hidden`},className:`${t}-expanded-row-fixed`},h)),v.createElement(r,{className:a,style:{display:o?null:`none`}},v.createElement($b,{component:i,prefixCls:t,colSpan:s},h))};function hae({prefixCls:e,record:t,onExpand:n,expanded:r,expandable:i}){let a=`${e}-row-expand-icon`;if(!i)return v.createElement(`span`,{className:G(a,`${e}-row-spaced`)});let o=e=>{n(t,e),e.stopPropagation()};return v.createElement(`span`,{className:G(a,{[`${e}-row-expanded`]:r,[`${e}-row-collapsed`]:!r}),onClick:o})}function gae(e,t,n){let r=[];function i(e){(e||[]).forEach((e,a)=>{r.push(t(e,a)),i(e[n])})}return i(e),r}function fx(e,t,n,r){return typeof e==`string`?e:typeof e==`function`?e(t,n,r):``}function px(){return px=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},px.apply(this,arguments)}function mx(e,t,n,r,i,a=[],o=0){let{record:s,prefixCls:c,columnsKey:l,fixedInfoList:u,expandIconColumnIndex:d,nestExpandable:f,indentSize:p,expandIcon:m,expanded:h,hasNestChildren:g,onTriggerExpand:_,expandable:y,expandedKeys:b}=e,x=l[n],S=u[n],C;n===(d||0)&&f&&(C=v.createElement(v.Fragment,null,v.createElement(`span`,{style:{paddingLeft:`${p*r}px`},className:`${c}-row-indent indent-level-${r}`}),m({prefixCls:c,expanded:h,expandable:g,record:s,onExpand:_})));let w=t.onCell?.(s,i)||{};if(o){let{rowSpan:e=1}=w;if(y&&e&&n<o){let t=e;for(let n=i;n<i+e;n+=1){let e=a[n];b.has(e)&&(t+=1)}w.rowSpan=t}}return{key:x,fixedInfo:S,appendCellNode:C,additionalCellProps:w}}var _ae=qb(e=>{let{className:t,style:n,classNames:r,styles:i,record:a,index:o,renderIndex:s,rowKey:c,rowKeys:l,indent:u=0,rowComponent:d,cellComponent:f,scopeCellComponent:p,expandedRowInfo:m}=e,h=ux(a,c,o,u),{prefixCls:g,flattenColumns:_,expandedRowClassName:y,expandedRowRender:b,rowProps:x,expanded:S,rowSupportExpand:C}=h,w=v.useRef(!1);w.current||=S;let T=fx(y,a,o,u),E=v.createElement(d,px({},x,{"data-row-key":c,className:G(t,`${g}-row`,`${g}-row-level-${u}`,x?.className,r.row,{[T]:u>=1}),style:{...n,...x?.style,...i.row}}),_.map((e,t)=>{let{render:n,dataIndex:c,className:d}=e,{key:_,fixedInfo:y,appendCellNode:b,additionalCellProps:x}=mx(h,e,t,u,o,l,m?.offset);return v.createElement($b,px({className:G(d,r.cell),style:i.cell,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:f,prefixCls:g,key:_,record:a,index:o,renderIndex:s,dataIndex:c,render:n,shouldCellUpdate:e.shouldCellUpdate},y,{appendNode:b,additionalProps:x}))})),D;if(C&&(w.current||S)){let e=b(a,o,u+1,S);D=v.createElement(dx,{expanded:S,className:G(`${g}-expanded-row`,`${g}-expanded-row-level-${u+1}`,T),prefixCls:g,component:d,cellComponent:f,colSpan:m?m.colSpan:_.length,isEmpty:!1,stickyOffset:m?.sticky},e)}return v.createElement(v.Fragment,null,E,D)}),vae=e=>{let{columnKey:t,onColumnResize:n,title:r}=e,i=v.useRef(null);return C(()=>{i.current&&n(t,i.current.offsetWidth)},[]),v.createElement(Le,{data:t},v.createElement(`td`,{ref:i,style:{paddingTop:0,paddingBottom:0,borderTop:0,borderBottom:0,height:0}},v.createElement(`div`,{style:{height:0,overflow:`hidden`,fontWeight:`bold`}},r||`\xA0`)))},yae=({prefixCls:e,columnsKey:t,onColumnResize:n,columns:r})=>{let i=v.useRef(null),{measureRowRender:a}=Ub(Jb,[`measureRowRender`]),o=v.createElement(`tr`,{"aria-hidden":`true`,className:`${e}-measure-row`,style:{height:0},ref:i},v.createElement(Le.Collection,{onBatchResize:e=>{yl(i.current)&&e.forEach(({data:e,size:t})=>{n(e,t.offsetWidth)})}},t.map(e=>{let t=r.find(t=>t.key===e)?.title,i=v.isValidElement(t)?v.cloneElement(t,{ref:null}):t;return v.createElement(vae,{key:e,columnKey:e,onColumnResize:n,title:i})})));return typeof a==`function`?a(o):o},bae=qb(e=>{let{data:t,measureColumnWidth:n}=e,{prefixCls:r,getComponent:i,onColumnResize:a,flattenColumns:o,getRowKey:s,expandedKeys:c,childrenColumnName:l,emptyNode:u,classNames:d,styles:f,expandedRowOffset:p=0,colWidths:m}=Ub(Jb,[`prefixCls`,`getComponent`,`onColumnResize`,`flattenColumns`,`getRowKey`,`expandedKeys`,`childrenColumnName`,`emptyNode`,`classNames`,`styles`,`expandedRowOffset`,`fixedInfoList`,`colWidths`]),{body:h={}}=d||{},{body:g={}}=f||{},_=lx(t,l,c,s),y=v.useMemo(()=>_.map(e=>e.rowKey),[_]),b=v.useRef({renderWithProps:!1}),x=v.useMemo(()=>{let e=o.length-p,t=0;for(let e=0;e<p;e+=1)t+=m[e]||0;return{offset:p,colSpan:e,sticky:t}},[o.length,p,m]),S=i([`body`,`wrapper`],`tbody`),C=i([`body`,`row`],`tr`),w=i([`body`,`cell`],`td`),T=i([`body`,`cell`],`th`),E;E=t.length?_.map((e,t)=>{let{record:n,indent:r,index:i,rowKey:a}=e;return v.createElement(_ae,{classNames:h,styles:g,key:a,rowKey:a,rowKeys:y,record:n,index:t,renderIndex:i,rowComponent:C,cellComponent:w,scopeCellComponent:T,indent:r,expandedRowInfo:x})}):v.createElement(dx,{expanded:!0,className:`${r}-placeholder`,prefixCls:r,component:C,cellComponent:w,colSpan:o.length,isEmpty:!0},u);let D=Xb(o);return v.createElement(Yb.Provider,{value:b.current},v.createElement(S,{style:g.wrapper,className:G(`${r}-tbody`,h.wrapper)},n&&v.createElement(yae,{prefixCls:r,columnsKey:D,onColumnResize:a,columns:o}),E))}),hx=`RC_TABLE_INTERNAL_COL_DEFINE`;function xae(e){let{expandable:t,...n}=e,r;return r=`expandable`in e?{...n,...t}:n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}function gx(){return gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gx.apply(this,arguments)}var _x=e=>{let{colWidths:t,columns:n,columCount:r}=e,{tableLayout:i}=Ub(Jb,[`tableLayout`]),a=[],o=r||n.length,s=!1;for(let e=o-1;e>=0;--e){let r=t[e],o=n&&n[e],c,l;if(o&&(c=o[hx],i===`auto`&&(l=o.minWidth)),r||l||c||s){let{columnType:t,...n}=c||{};a.unshift(v.createElement(`col`,gx({key:e,style:{width:r,minWidth:l}},n))),s=!0}}return a.length>0?v.createElement(`colgroup`,null,a):null};function Sae(e,t){return(0,v.useMemo)(()=>{let n=[];for(let r=0;r<t;r+=1){let t=e[r];if(t!==void 0)n[r]=t;else return null}return n},[e.join(`_`),t])}var Cae=v.forwardRef((e,t)=>{let{className:n,style:r,noData:i,columns:a,flattenColumns:o,colWidths:s,colGroup:c,columCount:l,stickyOffsets:u,direction:d,fixHeader:f,stickyTopOffset:p,stickyBottomOffset:m,stickyClassName:h,scrollX:g,tableLayout:_=`fixed`,onScroll:y,maxContentScroll:b,children:x,...S}=e,{prefixCls:C,scrollbarSize:w,isSticky:T,getComponent:E}=Ub(Jb,[`prefixCls`,`scrollbarSize`,`isSticky`,`getComponent`]),D=E([`header`,`table`],`table`),O=T&&!f?0:w,k=v.useRef(null),A=v.useCallback(e=>{I(t,e),I(k,e)},[]);v.useEffect(()=>{function e(e){let{currentTarget:t,deltaX:n}=e;if(n){let{scrollLeft:r,scrollWidth:i,clientWidth:a}=t,o=i-a,s=r+n;d===`rtl`?(s=Math.max(-o,s),s=Math.min(0,s)):(s=Math.min(o,s),s=Math.max(0,s)),y({currentTarget:t,scrollLeft:s}),e.preventDefault()}}let t=k.current;return t?.addEventListener(`wheel`,e,{passive:!1}),()=>{t?.removeEventListener(`wheel`,e)}},[]);let j=o[o.length-1],M={fixed:j?j.fixed:null,scrollbar:!0,onHeaderCell:()=>({className:`${C}-cell-scrollbar`})},N=(0,v.useMemo)(()=>O?[...a,M]:a,[O,a]),P=(0,v.useMemo)(()=>O?[...o,M]:o,[O,o]),F=(0,v.useMemo)(()=>{let{start:e,end:t}=u;return{...u,start:e,end:[...t.map(e=>e+O),0],isSticky:T}},[O,u,T]),L=Sae(s,l),R=(0,v.useMemo)(()=>{let e=!L||!L.length||L.every(e=>!e);return i||e},[i,L]);return v.createElement(`div`,{style:{overflow:`hidden`,...T?{top:p,bottom:m}:{},...r},ref:A,className:G(n,{[h]:!!h})},v.createElement(D,{style:{tableLayout:_,minWidth:`100%`,width:g}},R?c:v.createElement(_x,{colWidths:[...L,O],columCount:l+1,columns:P}),x({...S,stickyOffsets:F,columns:N,flattenColumns:P})))}),vx=v.memo(Cae);function yx(){return yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yx.apply(this,arguments)}var wae=e=>{let{cells:t,stickyOffsets:n,flattenColumns:r,rowComponent:i,cellComponent:a,onHeaderRow:o,index:s,classNames:c,styles:l}=e,{prefixCls:u}=Ub(Jb,[`prefixCls`]),d;o&&(d=o(t.map(e=>e.column),s));let f=Xb(t.map(e=>e.column));return v.createElement(i,yx({},d,{className:c.row,style:l.row}),t.map((e,t)=>{let{column:i,colStart:o,colEnd:s,colSpan:c}=e,l=nx(o,s,r,n),d=i?.onHeaderCell?.(i)||{};return v.createElement($b,yx({},e,{scope:i.title?c>1?`colgroup`:`col`:null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:u,key:f[t]},l,{additionalProps:d,rowType:`header`}))}))};function Tae(e,t,n){let r=[];function i(e,a,o=0){r[o]=r[o]||[];let s=a;return e.filter(Boolean).map(e=>{let a={key:e.key,className:G(e.className,t.cell)||``,style:n.cell,children:e.title,column:e,colStart:s},c=1,l=e.children;return l&&l.length>0&&(c=i(l,s,o+1).reduce((e,t)=>e+t,0),a.hasSubColumns=!0),`colSpan`in e&&({colSpan:c}=e),`rowSpan`in e&&(a.rowSpan=e.rowSpan),a.colSpan=c,a.colEnd=a.colStart+c-1,r[o].push(a),s+=c,c})}i(e,0);let a=r.length;for(let e=0;e<a;e+=1)r[e].forEach(t=>{!(`rowSpan`in t)&&!t.hasSubColumns&&(t.rowSpan=a-e)});return r}var bx=qb(e=>{let{stickyOffsets:t,columns:n,flattenColumns:r,onHeaderRow:i}=e,{prefixCls:a,getComponent:o,classNames:s,styles:c}=Ub(Jb,[`prefixCls`,`getComponent`,`classNames`,`styles`]),{header:l={}}=s||{},{header:u={}}=c||{},d=v.useMemo(()=>Tae(n,l,u),[n,l,u]),f=o([`header`,`wrapper`],`thead`),p=o([`header`,`row`],`tr`),m=o([`header`,`cell`],`th`);return v.createElement(f,{className:G(`${a}-thead`,l.wrapper),style:u.wrapper},d.map((e,n)=>v.createElement(wae,{classNames:l,styles:u,key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:p,cellComponent:m,onHeaderRow:i,index:n})))});function xx(e,t=``){return typeof t==`number`?t:t.endsWith(`%`)?e*parseFloat(t)/100:null}function Eae(e,t,n){return v.useMemo(()=>{if(t&&t>0){let r=0,i=0;e.forEach(e=>{let n=xx(t,e.width);n?r+=n:i+=1});let a=Math.max(t,n),o=Math.max(a-r,i),s=i,c=o/i,l=0,u=e.map(e=>{let n={...e},r=xx(t,n.width);if(r)n.width=r;else{let e=Math.floor(c);n.width=s===1?o:e,o-=e,--s}return l+=n.width,n});if(l<a){let e=a/l;o=a,u.forEach((t,n)=>{let r=Math.floor(t.width*e);t.width=n===u.length-1?o:r,o-=r})}return[u,Math.max(l,a)]}return[e,t]},[e,t,n])}function Sx(e){return ge(e).filter(e=>v.isValidElement(e)).map(e=>{let{key:t,props:n}=e,{children:r,...i}=n,a={key:t,...i};return r&&(a.children=Sx(r)),a})}function Cx(e){return e.filter(e=>e&&typeof e==`object`&&!e.hidden).map(e=>{let t=e.children;return t&&t.length>0?{...e,children:Cx(t)}:e})}function Tx(e,t=`key`){return e.filter(e=>e&&typeof e==`object`).reduce((e,n,r)=>{let{fixed:i}=n,a=i===!0||i===`left`?`start`:i===`right`?`end`:i,o=`${t}-${r}`,s=n.children;return s&&s.length>0?[...e,...Tx(s,o).map(e=>({...e,fixed:e.fixed??a}))]:[...e,{key:o,...n,fixed:a}]},[])}function Dae({prefixCls:e,columns:t,children:n,expandable:r,expandedKeys:i,columnTitle:a,getRowKey:o,onTriggerExpand:s,expandIcon:c,rowExpandable:l,expandIconColumnIndex:u,expandedRowOffset:d=0,direction:f,expandRowByClick:p,columnWidth:m,fixed:h,scrollWidth:g,clientWidth:_},y){let b=v.useMemo(()=>Cx((t||Sx(n)||[]).slice()),[t,n]),x=v.useMemo(()=>{if(r){let t=b.slice();if(!t.includes(Bb)){let e=u||0,n=e===0&&(h===`right`||h===`end`)?b.length:e;n>=0&&t.splice(n,0,Bb)}let n=t.indexOf(Bb);t=t.filter((e,t)=>e!==Bb||t===n);let r=b[n],f;f=h||(r?r.fixed:null);let g={[hx]:{className:`${e}-expand-icon-col`,columnType:`EXPAND_COLUMN`},title:a,fixed:f,className:`${e}-row-expand-icon-cell`,width:m,render:(t,n,r)=>{let a=o(n,r),u=c({prefixCls:e,expanded:i.has(a),expandable:l?l(n):!0,record:n,onExpand:s});return p?v.createElement(`span`,{onClick:e=>e.stopPropagation()},u):u}};return t.map((e,t)=>{let n=e===Bb?g:e;return t<d?{...n,fixed:n.fixed||`start`}:n})}return b.filter(e=>e!==Bb)},[r,b,o,i,c,f,d]),S=v.useMemo(()=>{let e=x;return y&&(e=y(e)),e.length||(e=[{render:()=>null}]),e},[y,x,f]),[C,w]=Eae(v.useMemo(()=>Tx(S),[S,f,g]),g,_);return[S,C,w]}function Oae(e,t,n){let r=xae(e),{expandIcon:i,expandedRowKeys:a,defaultExpandedRowKeys:o,defaultExpandAllRows:s,expandedRowRender:c,onExpand:l,onExpandedRowsChange:u,childrenColumnName:d}=r,f=i||hae,p=d||`children`,m=v.useMemo(()=>c?`row`:e.expandable&&e.internalHooks===`rc-table-internal-hook`&&e.expandable.__PARENT_RENDER_ICON__||t.some(e=>e&&typeof e==`object`&&e[p])?`nest`:!1,[!!c,t]),[h,g]=v.useState(()=>o||(s?gae(t,n,p):[])),_=v.useMemo(()=>new Set(a||h||[]),[a,h]);return[r,m,_,f,p,v.useCallback(e=>{let r=n(e,t.indexOf(e)),i,a=_.has(r);a?(_.delete(r),i=[..._]):i=[..._,r],g(i),l&&l(!a,e),u&&u(i)},[n,_,t,l,u])]}function kae(e,t){let n=v.useMemo(()=>e.map((n,r)=>nx(r,r,e,t)),[e,t]);return k(()=>n,[n],(e,t)=>!vt(e,t))}function Aae(e){let t=(0,v.useRef)(e),[,n]=(0,v.useState)({}),r=(0,v.useRef)(null),i=(0,v.useRef)([]);function a(e){i.current.push(e);let a=Promise.resolve();r.current=a,a.then(()=>{if(r.current===a){let e=i.current,a=t.current;i.current=[],e.forEach(e=>{t.current=e(t.current)}),r.current=null,a!==t.current&&n({})}})}return(0,v.useEffect)(()=>()=>{r.current=null},[]),[t.current,a]}function jae(e){let t=(0,v.useRef)(e||null),n=(0,v.useRef)(null);function r(){clearTimeout(n.current)}function i(e){t.current=e,r(),n.current=setTimeout(()=>{t.current=null,n.current=void 0},100)}function a(){return t.current}return(0,v.useEffect)(()=>r,[]),[i,a]}function Mae(){let[e,t]=v.useState(-1),[n,r]=v.useState(-1);return[e,n,v.useCallback((e,n)=>{t(e),r(n)},[])]}var Ex=x()?window:null;function Nae(e,t){let{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:a=()=>Ex}=typeof e==`object`?e:{},o=a()||Ex,s=!!e;return v.useMemo(()=>({isSticky:s,stickyClassName:s?`${t}-sticky-holder`:``,offsetHeader:n,offsetSummary:r,offsetScroll:i,container:o}),[s,i,n,r,t,o])}function Pae(e,t){return(0,v.useMemo)(()=>{let n=t.length,r=(n,r,i)=>{let a=[],o=0;for(let s=n;s!==r;s+=i)a.push(o),t[s].fixed&&(o+=e[s]||0);return a};return{start:r(0,n,1),end:r(n-1,-1,-1).reverse(),widths:e}},[e,t])}var Dx=e=>{let{children:t,className:n,style:r}=e;return v.createElement(`div`,{className:n,style:r},t)};function Ox(e){let t=Se(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var kx=`mouseup`,Ax=`mousemove`,jx=`scroll`,Mx=`resize`,Fae=v.forwardRef((e,t)=>{let{scrollBodyRef:n,onScroll:r,offsetScroll:i,container:a,direction:o}=e,s=Ub(Jb,`prefixCls`),c=n.current?.scrollWidth||0,l=n.current?.clientWidth||0,u=c&&l/c*l,d=v.useRef(null),[f,p]=Aae({scrollLeft:0,isHiddenScrollBar:!0}),m=v.useRef({delta:0,x:0}),[h,g]=v.useState(!1),_=v.useRef(null);v.useEffect(()=>()=>{Xe.cancel(_.current)},[]);let y=()=>{g(!1)},b=e=>{e.persist(),m.current.delta=e.pageX-f.scrollLeft,m.current.x=0,g(!0),e.preventDefault()},x=e=>{let{buttons:t}=e||window?.event;if(!h||t===0){h&&g(!1);return}let n=m.current.x+e.pageX-m.current.x-m.current.delta,i=o===`rtl`;n=Math.max(i?u-l:0,Math.min(i?0:l-u,n)),(!i||Math.abs(n)+Math.abs(u)<l)&&(r({scrollLeft:n/l*(c+2)}),m.current.x=e.pageX)},S=()=>{Xe.cancel(_.current),_.current=Xe(()=>{if(!n.current)return;let e=Ox(n.current).top,t=e+n.current.offsetHeight,r=a===window?document.documentElement.scrollTop+window.innerHeight:Ox(a).top+a.clientHeight;t-Bc()<=r||e>=r-i?p(e=>({...e,isHiddenScrollBar:!0})):p(e=>({...e,isHiddenScrollBar:!1}))})},C=e=>{p(t=>({...t,scrollLeft:e/c*l||0}))};return v.useImperativeHandle(t,()=>({setScrollLeft:C,checkScrollBarVisible:S})),v.useEffect(()=>(document.body.addEventListener(kx,y,!1),document.body.addEventListener(Ax,x,!1),S(),()=>{document.body.removeEventListener(kx,y),document.body.removeEventListener(Ax,x)}),[u,h]),v.useEffect(()=>{if(n.current){let e=[],t=Se(n.current);for(;t;)e.push(t),t=t.parentElement;return e.forEach(e=>{e.addEventListener(jx,S,!1)}),window.addEventListener(Mx,S,!1),window.addEventListener(jx,S,!1),a.addEventListener(jx,S,!1),()=>{e.forEach(e=>{e.removeEventListener(jx,S)}),window.removeEventListener(Mx,S),window.removeEventListener(jx,S),a.removeEventListener(jx,S)}}},[a]),v.useEffect(()=>{f.isHiddenScrollBar||p(e=>{let t=n.current;return t?{...e,scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}:e})},[f.isHiddenScrollBar]),c<=l||!u||f.isHiddenScrollBar?null:v.createElement(`div`,{style:{height:Bc(),width:l,bottom:i},className:`${s}-sticky-scroll`},v.createElement(`div`,{onMouseDown:b,ref:d,className:G(`${s}-sticky-scroll-bar`,{[`${s}-sticky-scroll-bar-active`]:h}),style:{width:`${u}px`,transform:`translate3d(${f.scrollLeft}px, 0, 0)`}}))});function Nx(){return Nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nx.apply(this,arguments)}var Px=`rc-table`,Iae=[],Lae={};function Rae(){return`No Data`}var zae=v.forwardRef((e,t)=>{let n={rowKey:`key`,prefixCls:Px,emptyText:Rae,...e},{prefixCls:r,className:i,rowClassName:a,style:o,classNames:s,styles:c,data:l,rowKey:u,scroll:d,tableLayout:f,direction:p,title:m,footer:h,summary:g,caption:_,id:y,showHeader:x,components:S,emptyText:w,onRow:T,onHeaderRow:E,measureRowRender:D,onScroll:O,internalHooks:k,transformColumns:A,internalRefs:j,tailor:M,getContainerWidth:N,sticky:P,rowHoverable:F=!0}=n,I=l||Iae,L=!!I.length,R=k===Vb,z=v.useCallback((e,t)=>U(S,e)||t,[S]),B=v.useMemo(()=>typeof u==`function`?u:e=>e&&e[u],[u]),V=z([`body`]),[H,ee,te]=Mae(),[W,ne,re,ie,ae,oe]=Oae(n,I,B),se=d?.x,[ce,le]=v.useState(0),[ue,de,fe]=Dae({...n,...W,expandable:!!W.expandedRowRender,columnTitle:W.columnTitle,expandedKeys:re,getRowKey:B,onTriggerExpand:oe,expandIcon:ie,expandIconColumnIndex:W.expandIconColumnIndex,direction:p,scrollWidth:R&&M&&typeof se==`number`?se:null,clientWidth:ce},R?A:null),pe=fe??se,me=v.useMemo(()=>({columns:ue,flattenColumns:de}),[ue,de]),he=v.useRef(null),ge=v.useRef(null),_e=v.useRef(null),ve=v.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:he.current,scrollTo:e=>{if(_e.current instanceof HTMLElement){let{index:t,top:n,key:r,offset:i}=e;if(aae(n))_e.current?.scrollTo({top:n});else{let e=r??B(I[t]),n=_e.current.querySelector(`[data-row-key="${e}"]`);if(n)if(!i)n.scrollIntoView();else{let e=n.offsetTop;_e.current.scrollTo({top:e+i})}}}else _e.current?.scrollTo&&_e.current.scrollTo(e)}}));let ye=v.useRef(null),[be,xe]=v.useState(!1),[Ce,we]=v.useState(!1),[Te,Ee]=v.useState(new Map),De=Xb(de).map(e=>Te.get(e)),Oe=v.useMemo(()=>De,[De.join(`_`)]),ke=Pae(Oe,de),Ae=d&&Zb(d.y),je=d&&Zb(pe)||!!W.fixed,Me=je&&de.some(({fixed:e})=>e),Ne=v.useRef(null),{isSticky:Pe,offsetHeader:Fe,offsetSummary:Ie,offsetScroll:Re,stickyClassName:ze,container:Be}=Nae(P,r),Ve=v.useMemo(()=>g?.(I),[g,I]),He=(Ae||Pe)&&v.isValidElement(Ve)&&Ve.type===ax&&Ve.props.fixed,Ue,We,Ge;Ae&&(We={overflowY:L?`scroll`:`auto`,maxHeight:d.y}),je&&(Ue={overflowX:`auto`},Ae||(We={overflowY:`hidden`}),Ge={width:pe===!0?`auto`:pe,minWidth:`100%`});let Ke=v.useCallback((e,t)=>{Ee(n=>{if(n.get(e)!==t){let r=new Map(n);return r.set(e,t),r}return n})},[]),[qe,Je]=jae(null);function Ye(e,t){t&&(typeof t==`function`?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(()=>{t.scrollLeft=e},0)))}let[Xe,Ze]=v.useState([0,0]),Qe=b(({currentTarget:e,scrollLeft:t})=>{let n=typeof t==`number`?t:e.scrollLeft,r=e||Lae;(!Je()||Je()===r)&&(qe(r),Ye(n,ge.current),Ye(n,_e.current),Ye(n,ye.current),Ye(n,Ne.current?.setScrollLeft));let i=e||ge.current;if(i){let e=R&&M&&typeof pe==`number`?pe:i.scrollWidth,t=i.clientWidth,r=Math.abs(n);if(Ze(n=>{let i=[r,e-t];return vt(n,i)?n:i}),e===t){xe(!1),we(!1);return}xe(r>0),we(r<e-t-1)}}),$e=b(e=>{Qe(e),O?.(e)}),et=()=>{je&&_e.current?Qe({currentTarget:Se(_e.current),scrollLeft:_e.current?.scrollLeft}):(xe(!1),we(!1))},tt=e=>{Ne.current?.checkScrollBarVisible();let t=e??he.current?.offsetWidth??0;R&&N&&he.current&&(t=N(he.current,t)||t),t!==ce&&(et(),le(t))};C(()=>{je&&tt()},[je]);let nt=v.useRef(!1);v.useEffect(()=>{nt.current&&et()},[je,l,ue.length]),v.useEffect(()=>{nt.current=!0},[]);let[rt,it]=v.useState(0);C(()=>{(!M||!R)&&(_e.current instanceof Element?it(Vc(_e.current).width):it(Vc(ve.current).width))},[]),v.useEffect(()=>{R&&j&&(j.body.current=_e.current)});let at=v.useCallback(e=>v.createElement(v.Fragment,null,v.createElement(bx,e),He===`top`&&v.createElement(ox,e,Ve)),[He,Ve]),ot=v.useCallback(e=>v.createElement(ox,e,Ve),[Ve]),st=z([`table`],`table`),ct=v.useMemo(()=>f||(Me?pe===`max-content`?`auto`:`fixed`:Ae||Pe||de.some(({ellipsis:e})=>e)?`fixed`:`auto`),[Ae,Me,de,f,Pe]),lt,ut={colWidths:Oe,columCount:de.length,stickyOffsets:ke,onHeaderRow:E,fixHeader:Ae,scroll:d},dt=v.useMemo(()=>L?null:typeof w==`function`?w():w,[L,w]),ft=v.createElement(bae,{data:I,measureColumnWidth:Ae||je||Pe}),pt=v.createElement(_x,{colWidths:de.map(({width:e})=>e),columns:de}),mt=_==null?void 0:v.createElement(`caption`,{className:`${r}-caption`},_),ht=Ts(n,{data:!0}),gt=Ts(n,{aria:!0});if(Ae||Pe){let e;typeof V==`function`?(e=V(I,{scrollbarSize:rt,ref:_e,onScroll:Qe}),ut.colWidths=de.map(({width:e},t)=>{let n=t===de.length-1?e-rt:e;return typeof n==`number`&&!Number.isNaN(n)?n:0})):e=v.createElement(`div`,{style:{...Ue,...We},onScroll:$e,ref:_e,className:`${r}-body`},v.createElement(st,Nx({style:{...Ge,tableLayout:ct}},gt),mt,pt,ft,!He&&Ve&&v.createElement(ox,{stickyOffsets:ke,flattenColumns:de},Ve)));let t={noData:!I.length,maxContentScroll:je&&pe===`max-content`,...ut,...me,direction:p,stickyClassName:ze,scrollX:pe,tableLayout:ct,onScroll:Qe};lt=v.createElement(v.Fragment,null,x!==!1&&v.createElement(vx,Nx({},t,{stickyTopOffset:Fe,className:`${r}-header`,ref:ge,colGroup:pt}),at),e,He&&He!==`top`&&v.createElement(vx,Nx({},t,{stickyBottomOffset:Ie,className:`${r}-summary`,ref:ye,colGroup:pt}),ot),Pe&&_e.current&&_e.current instanceof Element&&v.createElement(Fae,{ref:Ne,offsetScroll:Re,scrollBodyRef:_e,onScroll:Qe,container:Be,direction:p}))}else lt=v.createElement(`div`,{style:{...Ue,...We,...c?.content},className:G(`${r}-content`,s?.content),onScroll:Qe,ref:_e},v.createElement(st,Nx({style:{...Ge,tableLayout:ct}},gt),mt,pt,x!==!1&&v.createElement(bx,Nx({},ut,me)),ft,Ve&&v.createElement(ox,{stickyOffsets:ke,flattenColumns:de},Ve)));let _t={...o};Pe&&(_t[`--columns-count`]=de.length);let yt=v.createElement(`div`,Nx({className:G(r,i,{[`${r}-rtl`]:p===`rtl`,[`${r}-fix-start-shadow`]:je,[`${r}-fix-end-shadow`]:je,[`${r}-fix-start-shadow-show`]:je&&be,[`${r}-fix-end-shadow-show`]:je&&Ce,[`${r}-layout-fixed`]:f===`fixed`,[`${r}-fixed-header`]:Ae,[`${r}-fixed-column`]:Me,[`${r}-scroll-horizontal`]:je,[`${r}-has-fix-start`]:de[0]?.fixed,[`${r}-has-fix-end`]:de[de.length-1]?.fixed===`end`}),style:_t,id:y,ref:he},ht),m&&v.createElement(Dx,{className:G(`${r}-title`,s?.title),style:c?.title},m(I)),v.createElement(`div`,{ref:ve,className:G(`${r}-container`,s?.section),style:c?.section},lt),h&&v.createElement(Dx,{className:G(`${r}-footer`,s?.footer),style:c?.footer},h(I)));je&&(yt=v.createElement(Le,{onResize:({offsetWidth:e})=>tt(e)},yt));let bt=kae(de,ke),xt=v.useMemo(()=>({scrollX:pe,scrollInfo:Xe,classNames:s,styles:c,prefixCls:r,getComponent:z,scrollbarSize:rt,direction:p,fixedInfoList:bt,isSticky:Pe,componentWidth:ce,fixHeader:Ae,fixColumn:Me,horizonScroll:je,tableLayout:ct,rowClassName:a,expandedRowClassName:W.expandedRowClassName,expandIcon:ie,expandableType:ne,expandRowByClick:W.expandRowByClick,expandedRowRender:W.expandedRowRender,expandedRowOffset:W.expandedRowOffset,onTriggerExpand:oe,expandIconColumnIndex:W.expandIconColumnIndex,indentSize:W.indentSize,allColumnsFixedLeft:de.every(e=>e.fixed===`start`),emptyNode:dt,columns:ue,flattenColumns:de,onColumnResize:Ke,colWidths:Oe,hoverStartRow:H,hoverEndRow:ee,onHover:te,rowExpandable:W.rowExpandable,onRow:T,getRowKey:B,expandedKeys:re,childrenColumnName:ae,rowHoverable:F,measureRowRender:D}),[pe,Xe,s,c,r,z,rt,p,bt,Pe,ce,Ae,Me,je,ct,a,W.expandedRowClassName,ie,ne,W.expandRowByClick,W.expandedRowRender,W.expandedRowOffset,oe,W.expandIconColumnIndex,W.indentSize,dt,ue,de,Ke,Oe,H,ee,te,W.rowExpandable,T,B,re,ae,F,D]);return v.createElement(Jb.Provider,{value:xt},yt)}),Fx=e=>Kb(zae,e),Ix=Fx();Ix.EXPAND_COLUMN=Bb,Ix.INTERNAL_HOOKS=Vb,Ix.Column=pae,Ix.ColumnGroup=mae,Ix.Summary=sx;var Lx=Hb(null),Rx=Hb(null);function zx(){return zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zx.apply(this,arguments)}function Bae(e,t,n){return n[e+(t||1)]-(n[e]||0)}var Vae=e=>{let{rowInfo:t,column:n,colIndex:r,indent:i,index:a,component:o,renderIndex:s,record:c,style:l,className:u,inverse:d,getHeight:f}=e,{render:p,dataIndex:m,className:h,width:g}=n,{columnsOffset:_}=Ub(Rx,[`columnsOffset`]),{key:y,fixedInfo:b,appendCellNode:x,additionalCellProps:S}=mx(t,n,r,i,a),{style:C,colSpan:w=1,rowSpan:T=1}=S,E=Bae(r-1,w,_),D=w>1?g-E:0,O={...C,...l,flex:`0 0 ${E}px`,width:`${E}px`,marginRight:D,pointerEvents:`auto`},k=v.useMemo(()=>d?T<=1:w===0||T===0||T>1,[T,w,d]);k?O.visibility=`hidden`:d&&(O.height=f?.(T));let A=k?()=>null:p,j={};return(T===0||w===0)&&(j.rowSpan=1,j.colSpan=1),v.createElement($b,zx({className:G(h,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:y,record:c,index:a,renderIndex:s,dataIndex:m,render:A,shouldCellUpdate:n.shouldCellUpdate},b,{appendNode:x,additionalProps:{...S,style:O,...j}}))};function Bx(){return Bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bx.apply(this,arguments)}var Vx=qb(v.forwardRef((e,t)=>{let{data:n,index:r,className:i,rowKey:a,style:o,extra:s,getHeight:c,...l}=e,{record:u,indent:d,index:f}=n,{scrollX:p,flattenColumns:m,prefixCls:h,fixColumn:g,componentWidth:_}=Ub(Jb,[`prefixCls`,`flattenColumns`,`fixColumn`,`componentWidth`,`scrollX`]),{getComponent:y}=Ub(Lx,[`getComponent`]),b=ux(u,a,r,d),x=y([`body`,`row`],`div`),S=y([`body`,`cell`],`div`),{rowSupportExpand:C,expanded:w,rowProps:T,expandedRowRender:E,expandedRowClassName:D}=b,O;if(C&&w){let e=E(u,r,d+1,w),t=fx(D,u,r,d),n={};g&&(n={style:{"--virtual-width":`${_}px`}});let i=`${h}-expanded-row-cell`;O=v.createElement(x,{className:G(`${h}-expanded-row`,`${h}-expanded-row-level-${d+1}`,t)},v.createElement($b,{component:S,prefixCls:h,className:G(i,{[`${i}-fixed`]:g}),additionalProps:n},e))}let k={...o,width:p};s&&(k.position=`absolute`,k.pointerEvents=`none`);let A=v.createElement(x,Bx({},T,l,{"data-row-key":a,ref:C?null:t,className:G(i,`${h}-row`,T?.className,{[`${h}-row-extra`]:s}),style:{...k,...T?.style}}),m.map((e,t)=>v.createElement(Vae,{key:t,component:S,rowInfo:b,column:e,colIndex:t,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:c})));return C?v.createElement(`div`,{ref:t},A,O):A})),Hae=qb(v.forwardRef((e,t)=>{let{data:n,onScroll:r}=e,{flattenColumns:i,onColumnResize:a,getRowKey:o,expandedKeys:s,prefixCls:c,childrenColumnName:l,scrollX:u,direction:d}=Ub(Jb,[`flattenColumns`,`onColumnResize`,`getRowKey`,`prefixCls`,`expandedKeys`,`childrenColumnName`,`scrollX`,`direction`]),{sticky:f,scrollY:p,listItemHeight:m,getComponent:h,onScroll:g}=Ub(Lx),_=v.useRef(null),y=lx(n,l,s,o),b=v.useMemo(()=>{let e=0;return i.map(({width:t,minWidth:n,key:r})=>{let i=Math.max(t||0,n||0);return e+=i,[r,i,e]})},[i]),x=v.useMemo(()=>b.map(e=>e[2]),[b]);v.useEffect(()=>{b.forEach(([e,t])=>{a(e,t)})},[b]),v.useImperativeHandle(t,()=>{let e={scrollTo:e=>{let{offset:t,...n}=e;t?_.current?.scrollTo({...n,offset:t,align:`top`}):_.current?.scrollTo(e)},nativeElement:_.current?.nativeElement};return Object.defineProperty(e,`scrollLeft`,{get:()=>_.current?.getScrollInfo().x||0,set:e=>{_.current?.scrollTo({left:e})}}),Object.defineProperty(e,`scrollTop`,{get:()=>_.current?.getScrollInfo().y||0,set:e=>{_.current?.scrollTo({top:e})}}),e});let S=(e,t)=>{let n=y[t]?.record,{onCell:r}=e;return r?r(n,t)?.rowSpan??1:1},C=e=>{let{start:t,end:n,getSize:r,offsetY:a}=e;if(n<0)return null;let s=i.filter(e=>S(e,t)===0),c=t;for(let e=t;e>=0;--e)if(s=s.filter(t=>S(t,e)===0),!s.length){c=e;break}let l=i.filter(e=>S(e,n)!==1),u=n;for(let e=n;e<y.length;e+=1)if(l=l.filter(t=>S(t,e)!==1),!l.length){u=Math.max(e-1,n);break}let d=[];for(let e=c;e<=u;e+=1)y[e]&&i.some(t=>S(t,e)>1)&&d.push(e);return d.map(e=>{let t=y[e],n=o(t.record,e),i=t=>{let i=e+t-1,a=y[i];if(!a||!a.record){let e=Math.min(i,y.length-1),t=y[e],a=r(n,o(t.record,e));return a.bottom-a.top}let s=r(n,o(a.record,i));return s.bottom-s.top},s=r(n);return v.createElement(Vx,{key:e,data:t,rowKey:n,index:e,style:{top:-a+s.top},extra:!0,getHeight:i})})},w=v.useMemo(()=>({columnsOffset:x}),[x]),T=`${c}-tbody`,E=h([`body`,`wrapper`]),D={};return f&&(D.position=`sticky`,D.bottom=0,typeof f==`object`&&f.offsetScroll&&(D.bottom=f.offsetScroll)),v.createElement(Rx.Provider,{value:w},v.createElement(_h,{fullHeight:!1,ref:_,prefixCls:`${T}-virtual`,styles:{horizontalScrollBar:D},className:T,height:p,itemHeight:m||24,data:y,itemKey:e=>o(e.record),component:E,scrollWidth:u,direction:d,onVirtualScroll:({x:e})=>{r({currentTarget:_.current?.nativeElement,scrollLeft:e})},onScroll:g,extraRender:C},(e,t,n)=>{let r=o(e.record,t);return v.createElement(Vx,{data:e,rowKey:r,index:t,style:n.style})}))}));function Hx(){return Hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hx.apply(this,arguments)}var Uae=(e,t)=>{let{ref:n,onScroll:r}=t;return v.createElement(Hae,{ref:n,data:e,onScroll:r})},Wae=v.forwardRef((e,t)=>{let{data:n,columns:r,scroll:i,sticky:a,prefixCls:o=Px,className:s,listItemHeight:c,components:l,onScroll:u}=e,{x:d,y:f}=i||{};typeof d!=`number`&&(d=1),typeof f!=`number`&&(f=500);let p=b((e,t)=>U(l,e)||t),m=b(u),h=v.useMemo(()=>({sticky:a,scrollY:f,listItemHeight:c,getComponent:p,onScroll:m}),[a,f,c,p,m]);return v.createElement(Lx.Provider,{value:h},v.createElement(Ix,Hx({},e,{className:G(s,`${o}-virtual`),scroll:{...i,x:d},components:{...l,body:n?.length?Uae:void 0},columns:r,internalHooks:Vb,tailor:!0,ref:t})))}),Ux=e=>Kb(Wae,e);Ux();var Gae=e=>null,Kae=e=>null,Wx=v.createContext(null),qae=v.createContext({}),Jae=v.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let i=`${e}-indent-unit`,a=[];for(let e=0;e<t;e+=1)a.push(v.createElement(`span`,{key:e,className:G(i,{[`${i}-start`]:n[e],[`${i}-end`]:r[e]})}));return v.createElement(`span`,{"aria-hidden":`true`,className:`${e}-indent`},a)});function Gx(){return Gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gx.apply(this,arguments)}var Kx=`open`,qx=`close`,Yae=`---`,Jx=e=>{let{eventKey:t,className:n,style:r,dragOver:i,dragOverGapTop:a,dragOverGapBottom:o,isLeaf:s,isStart:c,isEnd:l,expanded:u,selected:d,checked:f,halfChecked:p,loading:m,domRef:h,active:g,data:_,onMouseMove:y,selectable:b,treeId:x,...S}=e,C=Jc(x,t),w=v.useContext(Wx),{classNames:T,styles:E}=w||{},D=v.useContext(qae),O=v.useRef(null),[k,A]=v.useState(!1),j=!!(w.disabled||e.disabled||D.nodeDisabled?.(_)),M=v.useMemo(()=>!w.checkable||e.checkable===!1?!1:w.checkable,[w.checkable,e.checkable]),N=t=>{j||w.onNodeSelect(t,iy(e))},P=t=>{j||!M||e.disableCheckbox||w.onNodeCheck(t,iy(e),!f)},F=v.useMemo(()=>typeof b==`boolean`?b:w.selectable,[b,w.selectable]),I=t=>{w.onNodeClick(t,iy(e)),F?N(t):P(t)},L=t=>{w.onNodeDoubleClick(t,iy(e))},R=t=>{w.onNodeMouseEnter(t,iy(e))},z=t=>{w.onNodeMouseLeave(t,iy(e))},B=t=>{w.onNodeContextMenu(t,iy(e))},V=v.useMemo(()=>!!(w.draggable&&(!w.draggable.nodeDraggable||w.draggable.nodeDraggable(_))),[w.draggable,_]),H=t=>{t.stopPropagation(),A(!0),w.onNodeDragStart(t,e);try{t.dataTransfer.setData(`text/plain`,``)}catch{}},U=t=>{t.preventDefault(),t.stopPropagation(),w.onNodeDragEnter(t,e)},ee=t=>{t.preventDefault(),t.stopPropagation(),w.onNodeDragOver(t,e)},te=t=>{t.stopPropagation(),w.onNodeDragLeave(t,e)},W=t=>{t.stopPropagation(),A(!1),w.onNodeDragEnd(t,e)},ne=t=>{t.preventDefault(),t.stopPropagation(),A(!1),w.onNodeDrop(t,e)},re=t=>{m||w.onNodeExpand(t,iy(e))},ie=v.useMemo(()=>{let{children:e}=Yv(w.keyEntities,t)||{};return!!(e||[]).length},[w.keyEntities,t]),ae=v.useMemo(()=>ny(s,w.loadData,ie,e.loaded),[s,w.loadData,ie,e.loaded]);v.useEffect(()=>{m||typeof w.loadData==`function`&&u&&!ae&&!e.loaded&&w.onNodeLoad(iy(e))},[m,w.loadData,w.onNodeLoad,u,ae,e]);let oe=v.useMemo(()=>w.draggable?.icon?v.createElement(`span`,{className:`${w.prefixCls}-draggable-icon`},w.draggable.icon):null,[w.draggable]),se=t=>{let n=e.switcherIcon||w.switcherIcon;return typeof n==`function`?n({...e,isLeaf:t}):n},ce=()=>{if(ae){let e=se(!0);return e===!1?null:v.createElement(`span`,{className:G(`${w.prefixCls}-switcher`,`${w.prefixCls}-switcher-noop`)},e)}let e=se(!1);return e===!1?null:v.createElement(`span`,{onClick:re,className:G(`${w.prefixCls}-switcher`,`${w.prefixCls}-switcher_${u?Kx:qx}`)},e)},le=v.useMemo(()=>{if(!M)return null;let t=typeof M==`boolean`?null:M;return v.createElement(`span`,{className:G(`${w.prefixCls}-checkbox`,{[`${w.prefixCls}-checkbox-checked`]:f,[`${w.prefixCls}-checkbox-indeterminate`]:!f&&p,[`${w.prefixCls}-checkbox-disabled`]:j||e.disableCheckbox}),onClick:P,role:`checkbox`,"aria-checked":p?`mixed`:f,"aria-disabled":j||e.disableCheckbox,"aria-labelledby":C},t)},[M,f,p,j,e.disableCheckbox,C]),ue=v.useMemo(()=>ae?null:u?Kx:qx,[ae,u]),de=v.useMemo(()=>v.createElement(`span`,{className:G(T?.itemIcon,`${w.prefixCls}-iconEle`,`${w.prefixCls}-icon__${ue||`docu`}`,{[`${w.prefixCls}-icon_loading`]:m}),style:E?.itemIcon}),[w.prefixCls,ue,m]),fe=v.useMemo(()=>{let n=!!w.draggable;return!e.disabled&&n&&w.dragOverNodeKey===t?w.dropIndicatorRender({dropPosition:w.dropPosition,dropLevelOffset:w.dropLevelOffset,indent:w.indent,prefixCls:w.prefixCls,direction:w.direction}):null},[w.dropPosition,w.dropLevelOffset,w.indent,w.prefixCls,w.direction,w.draggable,w.dragOverNodeKey,w.dropIndicatorRender]),pe=v.useMemo(()=>{let{title:t=Yae}=e,n=`${w.prefixCls}-node-content-wrapper`,r;if(w.showIcon){let t=e.icon||w.icon;r=t?v.createElement(`span`,{className:G(T?.itemIcon,`${w.prefixCls}-iconEle`,`${w.prefixCls}-icon__customize`),style:E?.itemIcon},typeof t==`function`?t(e):t):de}else w.loadData&&m&&(r=de);let i;return i=typeof t==`function`?t(_):w.titleRender?w.titleRender(_):t,v.createElement(`span`,{ref:O,title:typeof t==`string`?t:``,className:G(n,`${n}-${ue||`normal`}`,{[`${w.prefixCls}-node-selected`]:!j&&(d||k)}),onMouseEnter:R,onMouseLeave:z,onContextMenu:B,onClick:I,onDoubleClick:L},r,v.createElement(`span`,{className:G(`${w.prefixCls}-title`,T?.itemTitle),style:E?.itemTitle},i),fe)},[w.prefixCls,w.showIcon,e,w.icon,de,w.titleRender,_,ue,R,z,B,I,L]),me=Ts(S,{aria:!0,data:!0}),{level:he}=Yv(w.keyEntities,t)||{},ge=l[l.length-1],_e=!j&&V,ve=w.draggingNodeKey===t;return v.createElement(`div`,Gx({ref:h,role:`treeitem`,id:C,"aria-expanded":ae?void 0:u,"aria-selected":F&&!j?d:void 0,"aria-checked":M&&!j?p?`mixed`:f:void 0,"aria-disabled":j,className:G(n,`${w.prefixCls}-treenode`,T?.item,{[`${w.prefixCls}-treenode-disabled`]:j,[`${w.prefixCls}-treenode-switcher-${u?`open`:`close`}`]:!s,[`${w.prefixCls}-treenode-checkbox-checked`]:f,[`${w.prefixCls}-treenode-checkbox-indeterminate`]:p,[`${w.prefixCls}-treenode-selected`]:d,[`${w.prefixCls}-treenode-loading`]:m,[`${w.prefixCls}-treenode-active`]:g,[`${w.prefixCls}-treenode-leaf-last`]:ge,[`${w.prefixCls}-treenode-draggable`]:V,dragging:ve,"drop-target":w.dropTargetKey===t,"drop-container":w.dropContainerKey===t,"drag-over":!j&&i,"drag-over-gap-top":!j&&a,"drag-over-gap-bottom":!j&&o,"filter-node":w.filterTreeNode?.(iy(e)),[`${w.prefixCls}-treenode-leaf`]:ae}),style:{...r,...E?.item},draggable:_e,onDragStart:_e?H:void 0,onDragEnter:V?U:void 0,onDragOver:V?ee:void 0,onDragLeave:V?te:void 0,onDrop:V?ne:void 0,onDragEnd:V?W:void 0,onMouseMove:y},me),v.createElement(Jae,{prefixCls:w.prefixCls,level:he,isStart:c,isEnd:l}),oe,ce(),le,pe)};Jx.isTreeNode=1;function Yx(e,t){if(!e)return[];let n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Xx(e,t){let n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Zx(e){return e.split(`-`)}function Xae(e,t){let n=[],r=Yv(t,e);function i(e=[]){e.forEach(({key:e,children:t})=>{n.push(e),i(t)})}return i(r.children),n}function Zae(e){if(e.parent){let t=Zx(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Qae(e){let t=Zx(e.pos);return Number(t[t.length-1])===0}function Qx(e,t,n,r,i,a,o,s,c,l){let{clientX:u,clientY:d}=e,{top:f,height:p}=e.target.getBoundingClientRect(),m=((l===`rtl`?-1:1)*((i?.x||0)-u)-12)/r,h=c.filter(e=>s[e]?.children?.length),g=Yv(s,n.eventKey);if(d<f+p/2){let e=o.findIndex(e=>e.key===g.key),t=o[e<=0?0:e-1].key;g=Yv(s,t)}let _=g.key,v=g,y=g.key,b=0,x=0;if(!h.includes(_))for(let e=0;e<m&&Zae(g);e+=1)g=g.parent,x+=1;let S=t.data,C=g.node,w=!0;return Qae(g)&&g.level===0&&d<f+p/2&&a({dragNode:S,dropNode:C,dropPosition:-1})&&g.key===n.eventKey?b=-1:(v.children||[]).length&&h.includes(y)?a({dragNode:S,dropNode:C,dropPosition:0})?b=0:w=!1:x===0?m>-1.5?a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:0})?b=0:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1:a({dragNode:S,dropNode:C,dropPosition:1})?b=1:w=!1,{dropPosition:b,dropLevelOffset:x,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:y,dropContainerKey:b===0?null:g.parent?.key||null,dropAllowed:w}}function $x(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function eS(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e==`object`)t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return pe(!1,"`checkedKeys` is not an array or an object"),null;return t}function tS(e,t){let n=new Set;function r(e){if(n.has(e))return;let i=Yv(t,e);if(!i)return;n.add(e);let{parent:a,node:o}=i;o.disabled||a&&r(a.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}var nS={},rS=`SELECT_ALL`,iS=`SELECT_INVERT`,aS=`SELECT_NONE`,oS=[],sS=(e,t,n=[])=>((t||[]).forEach(t=>{n.push(t),Zs(t)&&e in t&&sS(e,t[e],n)}),n),$ae=(e,t)=>{let{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:a,getTitleCheckboxProps:o,onChange:s,onSelect:c,onSelectAll:l,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:p,type:m,selections:h,fixed:g,renderCell:_,hideSelectAll:y,checkStrictly:b=!0}=t||{},{prefixCls:x,data:S,pageData:C,getRecordByKey:w,getRowKey:T,expandType:D,childrenColumnName:O,locale:k,getPopupContainer:A}=e,j=be(`Table`),[M,N]=hc(e=>e),[P,F]=E(i||oS,r),I=P??oS,L=v.useRef(new Map),R=(0,v.useCallback)(e=>{if(n){let t=new Map;e.forEach(e=>{let n=w(e);!n&&L.current.has(e)&&(n=L.current.get(e)),t.set(e,n)}),L.current=t}},[w,n]);v.useEffect(()=>{R(I)},[I,R]);let z=(0,v.useMemo)(()=>sS(O,C),[O,C]),{keyEntities:B}=(0,v.useMemo)(()=>{if(b)return{keyEntities:null};let e=S;if(n){let t=new Set(z.map(T)),n=Array.from(L.current).reduce((e,[n,r])=>t.has(n)?e:e.concat(r),[]);e=[].concat(We(e),We(n))}return ty(e,{externalGetKey:T,childrenPropName:O})},[S,T,b,O,n,z]),V=(0,v.useMemo)(()=>{let e=new Map;return z.forEach((t,n)=>{let r=T(t,n),i=(a?a(t):null)||{};e.set(r,i)}),e},[z,T,a]),H=(0,v.useCallback)(e=>{let t=T(e),n;return n=V.has(t)?V.get(T(e)):a?a(e):void 0,!!n?.disabled},[V,T]),[U,ee]=(0,v.useMemo)(()=>{if(b)return[I,[]];let{checkedKeys:e,halfCheckedKeys:t}=oy(I,!0,B,H);return[e||[],t]},[I,b,B,H]),te=(0,v.useMemo)(()=>{let e=m===`radio`?U.slice(0,1):U;return new Set(e)},[U,m]),W=(0,v.useMemo)(()=>m===`radio`?new Set:new Set(ee),[ee,m]);v.useEffect(()=>{t||F(oS)},[!!t]);let ne=(0,v.useCallback)((e,t)=>{let r,i;R(e),n?(r=e,i=e.map(e=>L.current.get(e))):(r=[],i=[],e.forEach(e=>{let t=w(e);t!==void 0&&(r.push(e),i.push(t))})),F(r),s?.(r,i,{type:t})},[F,w,s,n]),re=(0,v.useCallback)((e,t,n,r)=>{if(c){let i=n.map(w);c(w(e),t,i,r)}ne(n,`single`)},[c,w,ne]),ie=(0,v.useMemo)(()=>!h||y?null:(h===!0?[rS,iS,aS]:h).map(e=>e===`SELECT_ALL`?{key:`all`,text:k.selectionAll,onSelect(){ne(S.map((e,t)=>T(e,t)).filter(e=>!V.get(e)?.disabled||te.has(e)),`all`)}}:e===`SELECT_INVERT`?{key:`invert`,text:k.selectInvert,onSelect(){let e=new Set(te);C.forEach((t,n)=>{let r=T(t,n);V.get(r)?.disabled||(e.has(r)?e.delete(r):e.add(r))});let t=Array.from(e);u&&(j.deprecated(!1,`onSelectInvert`,`onChange`),u(t)),ne(t,`invert`)}}:e===`SELECT_NONE`?{key:`none`,text:k.selectNone,onSelect(){d?.(),ne(Array.from(te).filter(e=>V.get(e)?.disabled),`none`)}}:e).map(e=>({...e,onSelect:(...t)=>{e.onSelect?.(...t),N(null)}})),[h,y,k.selectionAll,k.selectInvert,k.selectNone,V,te,S,C,T,u,ne]);return[(0,v.useCallback)(e=>{if(!t)return e.filter(e=>e!==nS);let n=We(e),r=new Set(te),i=z.map(T).filter(e=>!V.get(e).disabled),a=i.every(e=>r.has(e)),s=i.some(e=>r.has(e)),c=()=>{let e=[];a?i.forEach(t=>{r.delete(t),e.push(t)}):i.forEach(t=>{r.has(t)||(r.add(t),e.push(t))});let t=Array.from(r);l?.(!a,t.map(w),e.map(w)),ne(t,`all`),N(null)},u,d;if(m!==`radio`){let e;if(ie){let t={getPopupContainer:A,items:ie.map((e,t)=>{let{key:n,text:r,onSelect:a}=e;return{key:n??t,onClick:()=>{a?.(i)},label:r}})};e=v.createElement(`div`,{className:`${x}-selection-extra`},v.createElement(ky,{menu:t,getPopupContainer:A},v.createElement(`span`,null,v.createElement(Wh,null))))}let t=z.map((e,t)=>{let n=T(e,t),i=V.get(n)||{};return{checked:r.has(n),...i}}).filter(({disabled:e})=>e),n=!!t.length&&t.length===z.length,l=n&&t.every(({checked:e})=>e),f=n&&t.some(({checked:e})=>e),p=o?.()||{},{onChange:m,disabled:h}=p;d=v.createElement(dy,{"aria-label":e?`Custom selection`:`Select all`,...p,checked:n?l:!!z.length&&a,indeterminate:n?!l&&f:!a&&s,onChange:e=>{c(),m?.(e)},disabled:h??(z.length===0||n),skipGroup:!0}),u=!y&&v.createElement(`div`,{className:`${x}-selection`},d,e)}let S;S=m===`radio`?(e,t,n)=>{let i=T(t,n),a=r.has(i),o=V.get(i);return{node:v.createElement(ev,{...o,checked:a,onClick:e=>{e.stopPropagation(),o?.onClick?.(e)},onChange:e=>{r.has(i)||re(i,!0,[i],e.nativeEvent),o?.onChange?.(e)}}),checked:a}}:(e,t,n)=>{let a=T(t,n),o=r.has(a),s=W.has(a),c=V.get(a),l;return l=D===`nest`?s:c?.indeterminate??s,{node:v.createElement(dy,{...c,indeterminate:l,checked:o,skipGroup:!0,onClick:e=>{e.stopPropagation(),c?.onClick?.(e)},onChange:e=>{let{nativeEvent:t}=e,{shiftKey:n}=t,s=i.indexOf(a),l=U.some(e=>i.includes(e));if(n&&b&&l){let e=M(s,i,r),t=Array.from(r);f?.(!o,t.map(w),e.map(w)),ne(t,`multiple`)}else{let e=U;if(b){let n=o?Yx(e,a):Xx(e,a);re(a,!o,n,t)}else{let{checkedKeys:n,halfCheckedKeys:r}=oy([].concat(We(e),[a]),!0,B,H),i=n;if(o){let e=new Set(n);e.delete(a),i=oy(Array.from(e),{checked:!1,halfCheckedKeys:r},B,H).checkedKeys}re(a,!o,i,t)}}N(o?null:s),c?.onChange?.(e)}}),checked:o}};let C=(e,t,n)=>{let{node:r,checked:i}=S(e,t,n);return _?_(i,t,n,r):r};if(!n.includes(nS))if(n.findIndex(e=>e.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`)===0){let[e,...t]=n;n=[e,nS].concat(We(t))}else n=[nS].concat(We(n));let E=n.indexOf(nS);n=n.filter((e,t)=>e!==nS||t===E);let O=n[E-1],k=n[E+1],j=g;j===void 0&&(k?.fixed===void 0?O?.fixed!==void 0&&(j=O.fixed):j=k.fixed),j&&O&&O.RC_TABLE_INTERNAL_COL_DEFINE?.columnType===`EXPAND_COLUMN`&&O.fixed===void 0&&(O.fixed=j);let P=G(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:h&&m===`checkbox`}),F={fixed:j,width:p,className:`${x}-selection-column`,title:t?.columnTitle?typeof t.columnTitle==`function`?t.columnTitle(d):t.columnTitle:u,render:C,onCell:t.onCell,align:t.align,[hx]:{className:P}};return n.map(e=>e===nS?F:e)},[T,z,t,U,te,W,p,ie,D,V,f,re,H]),te]};function eoe(e){return t=>{let{prefixCls:n,onExpand:r,record:i,expanded:a,expandable:o}=t,s=`${n}-row-expand-icon`;return v.createElement(`button`,{type:`button`,onClick:e=>{r(i,e),e.stopPropagation()},className:G(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&a,[`${s}-collapsed`]:o&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function toe(e){return(t,n)=>{let r=t.querySelector(`.${e}-container`),i=n;if(r){let e=getComputedStyle(r),t=Number.parseInt(e.borderLeftWidth,10),a=Number.parseInt(e.borderRightWidth,10);i=n-t-a}return i}}var cS=(e,t)=>`key`in e&&Js(e.key)?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex:t;function lS(e,t){return t?`${t}-${e}`:`${e}`}var uS=(e,t)=>typeof e==`function`?e(t):e,noe=(e,t)=>{let n=uS(e,t);return Object.prototype.toString.call(n)===`[object Object]`?``:n},roe={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z`}}]},name:`filter`,theme:`filled`};function dS(){return dS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dS.apply(this,arguments)}var ioe=v.forwardRef((e,t)=>v.createElement(Co,dS({},e,{ref:t,icon:roe}))),aoe=e=>{let{dropPosition:t,dropLevelOffset:n,indent:r}=e,i={pointerEvents:`none`,position:`absolute`,right:0,backgroundColor:`red`,height:2};switch(t){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r;break}return v.createElement(`div`,{style:i})};function ooe(e,t){let[n,r]=v.useState(!1);C(()=>{if(n)return e(),()=>{t()}},[n]),C(()=>(r(!0),()=>{r(!1)}),[])}function fS(){return fS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fS.apply(this,arguments)}var soe=v.forwardRef((e,t)=>{let{className:n,style:r,motion:i,motionNodes:a,motionType:o,onMotionStart:s,onMotionEnd:c,active:l,treeNodeRequiredProps:u,...d}=e,[f,p]=v.useState(!0),{prefixCls:m}=v.useContext(Wx),h=a&&o!==`hide`;C(()=>{a&&h!==f&&p(h)},[a]);let g=()=>{a&&s()},_=v.useRef(!1),y=()=>{a&&!_.current&&(_.current=!0,c())};return ooe(g,y),a?v.createElement(bs,fS({ref:t,visible:f},i,{motionAppear:o===`show`,onVisibleChanged:e=>{h===e&&y()}}),({className:e,style:t},n)=>v.createElement(`div`,{ref:n,className:G(`${m}-treenode-motion`,e),style:t},a.map(e=>{let{data:{...t},title:n,key:r,isStart:i,isEnd:a}=e;delete t.children;let o=ry(r,u);return v.createElement(Jx,fS({},t,o,{title:n,active:l,data:e.data,key:r,isStart:i,isEnd:a}))}))):v.createElement(Jx,fS({domRef:t,className:n,style:r},d,{active:l}))});function coe(e=[],t=[]){let n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function i(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let r=t.filter(e=>!n.has(e));return r.length===1?r[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function pS(e,t,n){let r=e[e.findIndex(e=>e.key===n)+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}function mS(){return mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mS.apply(this,arguments)}var hS=`RC_TREE_MOTION_${Math.random()}`,gS={key:hS},_S={key:hS,level:0,index:0,pos:`0`,node:gS,nodes:[gS]},vS={parent:null,children:[],pos:_S.pos,data:gS,title:null,key:hS,isStart:[],isEnd:[]};function yS(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function bS(e){let{key:t,pos:n}=e;return Zv(t,n)}var loe=v.forwardRef((e,t)=>{let{prefixCls:n,data:r,selectable:i,checkable:a,expandedKeys:o,selectedKeys:s,checkedKeys:c,loadedKeys:l,loadingKeys:u,halfCheckedKeys:d,keyEntities:f,disabled:p,dragging:m,dragOverNodeKey:h,dropPosition:g,motion:_,height:y,itemHeight:b,virtual:x,scrollWidth:S,focusable:w,activeItem:T,tabIndex:E,onKeyDown:D,onFocus:O,onBlur:k,onMouseDown:A,onMouseUp:j,onActiveChange:M,onListChangeStart:N,onListChangeEnd:P,...F}=e,I=Xc(),L=v.useRef(null),R=v.useRef(null);v.useImperativeHandle(t,()=>({scrollTo:e=>{L.current.scrollTo(e)},getIndentWidth:()=>R.current.offsetWidth}));let[z,B]=v.useState(o),[V,H]=v.useState(r),[U,ee]=v.useState(r),[te,W]=v.useState([]),[ne,re]=v.useState(null),ie=v.useRef(r);ie.current=r;function ae(){let e=ie.current;H(e),ee(e),W([]),re(null),P()}C(()=>{B(o);let e=coe(z,o);if(e.key!==null)if(e.add){let t=V.findIndex(({key:t})=>t===e.key),n=yS(pS(V,r,e.key),x,y,b),i=V.slice();i.splice(t+1,0,vS),ee(i),W(n),re(`show`)}else{let t=r.findIndex(({key:t})=>t===e.key),n=yS(pS(r,V,e.key),x,y,b),i=r.slice();i.splice(t+1,0,vS),ee(i),W(n),re(`hide`)}else V!==r&&(H(r),ee(r))},[o,r]),v.useEffect(()=>{m||ae()},[m]);let oe=_?U:r,se={expandedKeys:o,selectedKeys:s,loadedKeys:l,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:h,dropPosition:g,keyEntities:f};return v.createElement(v.Fragment,null,v.createElement(`div`,{className:`${n}-treenode`,"aria-hidden":!0,style:{position:`absolute`,pointerEvents:`none`,visibility:`hidden`,height:0,overflow:`hidden`,border:0,padding:0}},v.createElement(`div`,{className:`${n}-indent`},v.createElement(`div`,{ref:R,className:`${n}-indent-unit`}))),v.createElement(_h,mS({},F,{data:oe,itemKey:bS,height:y,fullHeight:!1,virtual:x,itemHeight:b,scrollWidth:S,prefixCls:`${n}-list`,ref:L,role:`tree`,tabIndex:w!==!1&&!p?E:void 0,"aria-activedescendant":T?Jc(I,T.key):void 0,onKeyDown:D,onFocus:O,onBlur:k,onMouseDown:A,onMouseUp:j,onVisibleChange:e=>{e.every(e=>bS(e)!==hS)&&ae()}}),e=>{let{pos:t,data:{...n},title:r,key:i,isStart:a,isEnd:o}=e,s=Zv(i,t);delete n.key,delete n.children;let c=ry(s,se);return v.createElement(soe,mS({},n,c,{title:r,active:!!T&&i===T.key,pos:t,data:e.data,isStart:a,isEnd:o,motion:_,motionNodes:i===hS?te:null,motionType:ne,onMotionStart:N,onMotionEnd:ae,treeNodeRequiredProps:se,treeId:I,onMouseMove:()=>{M(null)}}))}))});function xS(){return xS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xS.apply(this,arguments)}var uoe=10,doe=class extends v.Component{static defaultProps={prefixCls:`rc-tree`,showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:aoe,allowDrop:()=>!0,expandAction:!1};static TreeNode=Jx;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:Qv()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=v.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated()}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;e!==void 0&&e!==this.state.activeKey&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener(`dragend`,this.onWindowDragEnd),this.destroyed=!0}static getDerivedStateFromProps(e,t){let{prevProps:n}=t,r={prevProps:e};function i(t){return!n&&e.hasOwnProperty(t)||n&&n[t]!==e[t]}let a,{fieldNames:o}=t;if(i(`fieldNames`)&&(o=Qv(e.fieldNames),r.fieldNames=o),i(`treeData`)?{treeData:a}=e:i(`children`)&&(pe(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=$v(e.children)),a){r.treeData=a;let e=ty(a,{fieldNames:o});r.keyEntities={[hS]:_S,...e.keyEntities}}let s=r.keyEntities||t.keyEntities;if(i(`expandedKeys`)||n&&i(`autoExpandParent`))r.expandedKeys=e.autoExpandParent||!n&&e.defaultExpandParent?tS(e.expandedKeys,s):e.expandedKeys;else if(!n&&e.defaultExpandAll){let e={...s};delete e[hS];let t=[];Object.keys(e).forEach(n=>{let r=e[n];r.children&&r.children.length&&t.push(r.key)}),r.expandedKeys=t}else !n&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?tS(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,(a||r.expandedKeys)&&(r.flattenNodes=ey(a||t.treeData,r.expandedKeys||t.expandedKeys,o)),e.selectable&&(i(`selectedKeys`)?r.selectedKeys=$x(e.selectedKeys,e):!n&&e.defaultSelectedKeys&&(r.selectedKeys=$x(e.defaultSelectedKeys,e))),e.checkable){let o;if(i(`checkedKeys`)?o=eS(e.checkedKeys)||{}:!n&&e.defaultCheckedKeys?o=eS(e.defaultCheckedKeys)||{}:a&&(o=eS(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=o;if(!e.checkStrictly){let e=oy(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}r.checkedKeys=t,r.halfCheckedKeys=n}}return i(`loadedKeys`)&&(r.loadedKeys=e.loadedKeys),r}onNodeDragStart=(e,t)=>{let{expandedKeys:n,keyEntities:r}=this.state,{onDragStart:i}=this.props,{eventKey:a}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let o=Yx(n,a);this.setState({draggingNodeKey:a,dragChildrenKeys:Xae(a,r),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(o),window.addEventListener(`dragend`,this.onWindowDragEnd),i?.({event:e,node:iy(t)})};onNodeDragEnter=(e,t)=>{let{expandedKeys:n,keyEntities:r,dragChildrenKeys:i,flattenNodes:a,indent:o}=this.state,{onDragEnter:s,onExpand:c,allowDrop:l,direction:u}=this.props,{pos:d,eventKey:f}=t;if(this.currentMouseOverDroppableNodeKey!==f&&(this.currentMouseOverDroppableNodeKey=f),!this.dragNodeProps){this.resetDragState();return}let{dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v,dragOverNodeKey:y}=Qx(e,this.dragNodeProps,t,o,this.dragStartMousePosition,l,a,r,n,u);if(i.includes(h)||!v){this.resetDragState();return}if(this.delayedDragEnterLogic||={},Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[d]=window.setTimeout(()=>{if(this.state.draggingNodeKey===null)return;let i=[...n],a=Yv(r,t.eventKey);a&&(a.children||[]).length&&(i=Xx(n,t.eventKey)),this.props.hasOwnProperty(`expandedKeys`)||this.setExpandedKeys(i),c?.(i,{node:iy(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===h&&m===0){this.resetDragState();return}this.setState({dragOverNodeKey:y,dropPosition:p,dropLevelOffset:m,dropTargetKey:h,dropContainerKey:g,dropTargetPos:_,dropAllowed:v}),s?.({event:e,node:iy(t),expandedKeys:n})};onNodeDragOver=(e,t)=>{let{dragChildrenKeys:n,flattenNodes:r,keyEntities:i,expandedKeys:a,indent:o}=this.state,{onDragOver:s,allowDrop:c,direction:l}=this.props;if(!this.dragNodeProps)return;let{dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}=Qx(e,this.dragNodeProps,t,o,this.dragStartMousePosition,c,r,i,a,l);n.includes(f)||!h||(this.dragNodeProps.eventKey===f&&d===0?this.state.dropPosition===null&&this.state.dropLevelOffset===null&&this.state.dropTargetKey===null&&this.state.dropContainerKey===null&&this.state.dropTargetPos===null&&this.state.dropAllowed===!1&&this.state.dragOverNodeKey===null||this.resetDragState():u===this.state.dropPosition&&d===this.state.dropLevelOffset&&f===this.state.dropTargetKey&&p===this.state.dropContainerKey&&m===this.state.dropTargetPos&&h===this.state.dropAllowed&&g===this.state.dragOverNodeKey||this.setState({dropPosition:u,dropLevelOffset:d,dropTargetKey:f,dropContainerKey:p,dropTargetPos:m,dropAllowed:h,dragOverNodeKey:g}),s?.({event:e,node:iy(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey===t.eventKey&&!e.currentTarget.contains(e.relatedTarget)&&(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n?.({event:e,node:iy(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:iy(t)}),this.dragNodeProps=null,window.removeEventListener(`dragend`,this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{let{dragChildrenKeys:r,dropPosition:i,dropTargetKey:a,dropTargetPos:o,dropAllowed:s}=this.state;if(!s)return;let{onDrop:c}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),a===null)return;let l={...ry(a,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===a,data:Yv(this.state.keyEntities,a).node};pe(!r.includes(a),`Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.`);let u=Zx(o),d={event:e,node:iy(l),dragNode:this.dragNodeProps?iy(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(r),dropToGap:i!==0,dropPosition:i+Number(u[u.length-1])};n||c?.(d),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{let{draggingNodeKey:e}=this.state;e!==null&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{let{expandedKeys:n,flattenNodes:r}=this.state,{expanded:i,key:a,isLeaf:o}=t;if(o||e.shiftKey||e.metaKey||e.ctrlKey)return;let s=r.filter(e=>e.key===a)[0],c=iy({...ry(a,this.getTreeNodeRequiredProps()),data:s.data});this.setExpandedKeys(i?Yx(n,a):Xx(n,a)),this.onNodeExpand(e,c)};onNodeClick=(e,t)=>{let{onClick:n,expandAction:r}=this.props;r===`click`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{let{onDoubleClick:n,expandAction:r}=this.props;r===`doubleClick`&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:r,fieldNames:i}=this.state,{onSelect:a,multiple:o}=this.props,{selected:s}=t,c=t[i.key],l=!s;n=l?o?Xx(n,c):[c]:Yx(n,c);let u=n.map(e=>{let t=Yv(r,e);return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),a?.(n,{event:`select`,selected:l,node:t,selectedNodes:u,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{let{keyEntities:r,checkedKeys:i,halfCheckedKeys:a}=this.state,{checkStrictly:o,onCheck:s}=this.props,{key:c}=t,l,u={event:`check`,node:t,checked:n,nativeEvent:e.nativeEvent};if(o){let e=n?Xx(i,c):Yx(i,c);l={checked:e,halfChecked:Yx(a,c)},u.checkedNodes=e.map(e=>Yv(r,e)).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=oy([...i,c],!0,r);if(!n){let n=new Set(e);n.delete(c),{checkedKeys:e,halfCheckedKeys:t}=oy(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}l=e,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=t,e.forEach(e=>{let t=Yv(r,e);if(!t)return;let{node:n,pos:i}=t;u.checkedNodes.push(n),u.checkedNodesPositions.push({node:n,pos:i})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(l,u)};onNodeLoad=e=>{let{key:t}=e,{keyEntities:n}=this.state;if(Yv(n,t)?.children?.length)return;let r=new Promise((n,r)=>{this.setState(({loadedKeys:i=[],loadingKeys:a=[]})=>{let{loadData:o,onLoad:s}=this.props;return!o||i.includes(t)||a.includes(t)?null:(o(e).then(()=>{let{loadedKeys:r}=this.state,i=Xx(r,t);s?.(i,{event:`load`,node:e}),this.setUncontrolledState({loadedKeys:i}),this.setState(e=>({loadingKeys:Yx(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:Yx(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=uoe){let{loadedKeys:e}=this.state;pe(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:Xx(e,t)}),n()}r(e)}),{loadingKeys:Xx(a,t)})})});return r.catch(()=>{}),r};onNodeMouseEnter=(e,t)=>{let{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{let{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)};onMouseUp=e=>{this.focusedByMouse=!1;let{onMouseUp:t}=this.props;t?.(e)};onFocus=(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:r,selectedKeys:i,flattenNodes:a}=this.state;if(!this.focusedByMouse&&!n&&r===null){let e=i.find(e=>a.some(t=>t.key===e));e===void 0?this.onActiveChange(a?.[0]?.key||null):this.onActiveChange(e)}t?.(...e)};onBlur=(...e)=>{this.focusedByMouse=!1;let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:r,checkedKeys:i,halfCheckedKeys:a,dragOverNodeKey:o,dropPosition:s,keyEntities:c}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:r||[],checkedKeys:i||[],halfCheckedKeys:a||[],dragOverNodeKey:o,dropPosition:s,keyEntities:c}};setExpandedKeys=e=>{let{treeData:t,fieldNames:n}=this.state,r=ey(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:r},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:r,fieldNames:i}=this.state,{onExpand:a,loadData:o}=this.props,{expanded:s}=t,c=t[i.key];if(r)return;let l=n.includes(c),u=!s;if(pe(s&&l||!s&&!l,`Expand state not sync with index check`),n=u?Xx(n,c):Yx(n,c),this.setExpandedKeys(n),a?.(n,{node:t,expanded:u,nativeEvent:e.nativeEvent}),u&&o){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=ey(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=Yx(e,c);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:r=0}=this.props;t!==e&&(this.setState({activeKey:e}),e!==null&&this.scrollTo({key:e,offset:r}),n?.(e))};getActiveItem=()=>{let{activeKey:e,flattenNodes:t}=this.state;return e===null?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:n}=this.state,r=t.findIndex(({key:e})=>e===n);r===-1&&e<0&&(r=t.length),r=(r+e+t.length)%t.length;let i=t[r];if(i){let{key:e}=i;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{let{activeKey:t,expandedKeys:n,checkedKeys:r,flattenNodes:i,keyEntities:a}=this.state,{onKeyDown:o,checkable:s,selectable:c,disabled:l,loadData:u}=this.props;if(l)return;switch(e.key){case`ArrowUp`:this.offsetActiveKey(-1),e.preventDefault();break;case`ArrowDown`:this.offsetActiveKey(1),e.preventDefault();break;case`Home`:this.onActiveChange(i?.[0]?.key),e.preventDefault();break;case`End`:this.onActiveChange(i?.[i.length-1]?.key),e.preventDefault();break}let d=this.getActiveItem();if(d&&d.data){let i=iy({...ry(t,this.getTreeNodeRequiredProps()),data:d.data,active:!0}),o=!!Yv(a,t)?.children?.length,l=!ny(d.data.isLeaf,u,o,i.loaded),f=s&&!i.disabled&&i.checkable!==!1&&!i.disableCheckbox,p=!s&&c&&!i.disabled&&i.selectable!==!1;switch(e.key){case`ArrowLeft`:l&&n.includes(t)?this.onNodeExpand({},i):d.parent&&this.onActiveChange(d.parent.key),e.preventDefault();break;case`ArrowRight`:l&&!n.includes(t)?this.onNodeExpand({},i):d.children&&d.children.length&&this.onActiveChange(d.children[0].key),e.preventDefault();break;case`Enter`:l?(e.preventDefault(),this.onNodeExpand({},i)):f?r.includes(t)||(e.preventDefault(),this.onNodeCheck({},i,!0)):p&&!i.selected&&(e.preventDefault(),this.onNodeSelect({},i));break;case` `:f?(e.preventDefault(),this.onNodeCheck({},i,!r.includes(t))):p&&(e.preventDefault(),this.onNodeSelect({},i));break}}o?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let r=!1,i=!0,a={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){i=!1;return}r=!0,a[t]=e[t]}),r&&(!t||i)&&this.setState({...a,...n})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){let{flattenNodes:e,keyEntities:t,draggingNodeKey:n,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c}=this.state,{prefixCls:l,className:u,style:d,styles:f,classNames:p,showLine:m,focusable:h,tabIndex:g=0,selectable:_,showIcon:y,icon:b,switcherIcon:x,draggable:S,checkable:C,checkStrictly:w,disabled:T,motion:E,loadData:D,filterTreeNode:O,height:k,itemHeight:A,scrollWidth:j,virtual:M,titleRender:N,dropIndicatorRender:P,onContextMenu:F,onScroll:I,direction:L,rootClassName:R,rootStyle:z}=this.props,B=Ts(this.props,{aria:!0,data:!0}),V;S&&(V=typeof S==`object`?S:typeof S==`function`?{nodeDraggable:S}:{});let H={styles:f,classNames:p,prefixCls:l,selectable:_,showIcon:y,icon:b,switcherIcon:x,draggable:V,draggingNodeKey:n,checkable:C,checkStrictly:w,disabled:T,keyEntities:t,dropLevelOffset:r,dropContainerKey:i,dropTargetKey:a,dropPosition:o,dragOverNodeKey:s,indent:c,direction:L,dropIndicatorRender:P,loadData:D,filterTreeNode:O,titleRender:N,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return v.createElement(Wx.Provider,{value:H},v.createElement(`div`,{className:G(l,u,R,{[`${l}-show-line`]:m}),style:z},v.createElement(loe,xS({ref:this.listRef,prefixCls:l,style:d,data:e,disabled:T,selectable:_,checkable:!!C,motion:E,dragging:n!==null,height:k,itemHeight:A,virtual:M,focusable:h,tabIndex:g,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:F,onScroll:I,scrollWidth:j},this.getTreeNodeRequiredProps(),B))))}},foe={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z`}}]},name:`file`,theme:`outlined`};function SS(){return SS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SS.apply(this,arguments)}var CS=v.forwardRef((e,t)=>v.createElement(Co,SS({},e,{ref:t,icon:foe}))),poe={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z`}}]},name:`folder-open`,theme:`outlined`};function wS(){return wS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wS.apply(this,arguments)}var moe=v.forwardRef((e,t)=>v.createElement(Co,wS({},e,{ref:t,icon:poe}))),hoe={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z`}}]},name:`folder`,theme:`outlined`};function TS(){return TS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TS.apply(this,arguments)}var goe=v.forwardRef((e,t)=>v.createElement(Co,TS({},e,{ref:t,icon:hoe}))),_oe={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z`}}]},name:`holder`,theme:`outlined`};function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ES.apply(this,arguments)}var voe=v.forwardRef((e,t)=>v.createElement(Co,ES({},e,{ref:t,icon:_oe}))),yoe=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:`static`,[`&:has(${e}-drop-indicator)`]:{position:`relative`},[`> *:not(${e}-drop-indicator)`]:{position:`relative`},"&:hover":{background:`transparent`},"&:before":{position:`absolute`,inset:0,transition:`background-color ${i}`,content:`""`,borderRadius:a},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:`transparent`,"&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),boe=new Ar(`ant-tree-node-fx-do-not-use`,{"0%":{opacity:0},"100%":{opacity:1}}),xoe=(e,t)=>({[`.${e}-switcher-icon`]:{display:`inline-block`,fontSize:10,verticalAlign:`baseline`,svg:{transition:`transform ${t.motionDurationSlow}`}}}),Soe=(e,t)=>({[`.${e}-drop-indicator`]:{position:`absolute`,zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:`none`,"&:after":{position:`absolute`,top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:`transparent`,border:`${K(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:`50%`,content:`""`}}}),Coe=(e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:a,indentSize:o,switcherSize:s,motionDurationMid:c,nodeSelectedBg:l,nodeHoverBg:u,colorTextQuaternary:d,controlItemBgActiveDisabled:f}=t;return{[n]:{...Va(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:`rtl`},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:`rotate(90deg)`},[`${n}-list`]:{"&:focus-visible":{outline:`none`,[`${r}-active ${n}-node-content-wrapper`]:{...Wa(t)}}},[`${n}-list-holder-inner`]:{alignItems:`flex-start`},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:`stretch`,[`${n}-node-content-wrapper`]:{flex:`auto`},[`${r}.dragging:after`]:{position:`absolute`,inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:boe,animationDuration:t.motionDurationSlow,animationPlayState:`running`,animationFillMode:`forwards`,content:`""`,pointerEvents:`none`,borderRadius:t.borderRadius}}},[r]:{display:`flex`,alignItems:`flex-start`,marginBottom:i,lineHeight:K(a),position:`relative`,"&:before":{content:`""`,position:`absolute`,zIndex:1,insetInlineStart:0,width:`100%`,top:`100%`,height:i},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:f},[`${n}-checkbox-disabled`]:{pointerEvents:`unset`},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:`grab`,[`${n}-draggable-icon`]:{flexShrink:0,width:s,textAlign:`center`,visibility:`visible`,color:d},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:`hidden`}}},[`${n}-indent`]:{alignSelf:`stretch`,whiteSpace:`nowrap`,userSelect:`none`,"&-unit":{display:`inline-block`,width:o}},[`${n}-draggable-icon`]:{visibility:`hidden`},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(s).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:`flex-start`,marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...xoe(e,t),position:`relative`,flex:`none`,alignSelf:`stretch`,width:s,textAlign:`center`,cursor:`pointer`,userSelect:`none`,transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:`unset`},"&:before":{pointerEvents:`none`,content:`""`,width:s,height:a,position:`absolute`,left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:`rotate(-90deg)`},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:`relative`,zIndex:1,display:`inline-block`,width:`100%`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&:after":{position:`absolute`,width:t.calc(t.calc(s).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:`""`}}},[`${n}-node-content-wrapper`]:{position:`relative`,minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:`transparent`,borderRadius:t.borderRadius,cursor:`pointer`,transition:[`all ${c}`,`border 0s`,`line-height 0s`,`box-shadow 0s`].join(`, `),...Soe(e,t),"&:hover":{backgroundColor:u},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:`inline-block`,width:s,height:a,textAlign:`center`,verticalAlign:`top`,"&:empty":{display:`none`}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:`transparent`},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:`relative`,height:`100%`,"&:before":{position:`absolute`,top:0,insetInlineEnd:t.calc(s).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:`""`},"&-end:before":{display:`none`}},[`${n}-switcher`]:{background:`transparent`,"&-line-icon":{verticalAlign:`-0.15em`}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:`auto !important`,bottom:`auto !important`,height:`${K(t.calc(a).div(2).equal())} !important`}}}},woe=(e,t,n=!0)=>{let r=`.${e}`,i=li(t,{treeCls:r,treeNodeCls:`${r}-treenode`,treeNodePadding:t.calc(t.paddingXS).div(2).equal()});return[Coe(e,i),n&&yoe(i)].filter(Boolean)},Toe=e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,i=t;return{titleHeight:i,switcherSize:i,indentSize:i,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Eoe=Xa(`Tree`,(e,{prefixCls:t})=>[{[e.componentCls]:sy(`${t}-checkbox`,e)},woe(t,e),Qu(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...Toe(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}}),Doe=e=>{let{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a=`ltr`}=e,o=a===`ltr`?`left`:`right`,s=a===`ltr`?`right`:`left`,c={[o]:-n*i+4,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[o]=i+4;break}return v.createElement(`div`,{style:c,className:`${r}-drop-indicator`})},Ooe={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z`}}]},name:`caret-down`,theme:`filled`};function DS(){return DS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DS.apply(this,arguments)}var koe=v.forwardRef((e,t)=>v.createElement(Co,DS({},e,{ref:t,icon:Ooe}))),Aoe={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`minus-square`,theme:`outlined`};function OS(){return OS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OS.apply(this,arguments)}var joe=v.forwardRef((e,t)=>v.createElement(Co,OS({},e,{ref:t,icon:Aoe}))),Moe={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z`}},{tag:`path`,attrs:{d:`M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z`}}]},name:`plus-square`,theme:`outlined`};function kS(){return kS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kS.apply(this,arguments)}var Noe=v.forwardRef((e,t)=>v.createElement(Co,kS({},e,{ref:t,icon:Moe}))),Poe=e=>{let{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:a}=e,{isLeaf:o,expanded:s,loading:c}=r;if(c)return v.isValidElement(a)?a:v.createElement(pu,{className:`${t}-switcher-loading-icon`});let l;if(Zs(i)&&(l=i.showLeafIcon),o){if(!i)return null;if(typeof l!=`boolean`&&l){let e=typeof l==`function`?l(r):l,n=`${t}-switcher-line-custom-icon`;return v.isValidElement(e)?Gl(e,{className:G(e.props?.className,n)}):e}return l?v.createElement(CS,{className:`${t}-switcher-line-icon`}):v.createElement(`span`,{className:`${t}-switcher-leaf-line`})}let u=`${t}-switcher-icon`,d=typeof n==`function`?n(r):n;return v.isValidElement(d)?Gl(d,{className:G(d.props?.className,i?`${t}-switcher-line-icon`:u)}):d===void 0?i?s?v.createElement(joe,{className:`${t}-switcher-line-icon`}):v.createElement(Noe,{className:`${t}-switcher-line-icon`}):v.createElement(koe,{className:u}):d},AS=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,className:i,style:a,classNames:o,styles:s}=nt(`tree`),{virtual:c}=v.useContext($e),{prefixCls:l,className:u,showIcon:d=!1,showLine:f,switcherIcon:p,switcherLoadingIcon:m,blockNode:h=!1,children:g,checkable:_=!1,selectable:y=!0,draggable:b,disabled:x,motion:S,style:C,rootClassName:w,classNames:T,styles:E,icon:D}=e,O=v.useContext(Xl),k=x??O,A=n(`tree`,l),j=n(),M=S??{...Su(j),motionAppear:!1},N={...e,showIcon:d,blockNode:h,checkable:_,selectable:y,disabled:k,motion:M},[P,F]=mc([o,T],[s,E],{props:N}),I={...N,showLine:!!f,icon:D,dropIndicatorRender:Doe},[L,R]=Eoe(A),[,z]=za(),B=z.paddingXS/2+(z.Tree?.titleHeight||z.controlHeightSM),V=v.useMemo(()=>{if(!b)return!1;let e={};switch(typeof b){case`function`:e.nodeDraggable=b;break;case`object`:e={...b};break;default:break}return e.icon!==!1&&(e.icon=e.icon||v.createElement(voe,null)),e},[b]),H=e=>v.createElement(Poe,{prefixCls:A,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:e,showLine:f});return v.createElement(doe,{itemHeight:B,ref:t,virtual:c,...I,prefixCls:A,className:G({[`${A}-icon-hide`]:!d,[`${A}-block-node`]:h,[`${A}-unselectable`]:!y,[`${A}-rtl`]:r===`rtl`,[`${A}-disabled`]:k},i,u,L,R),style:{...a,...C},rootClassName:G(P.root,w),rootStyle:F.root,classNames:P,styles:F,direction:r,checkable:_&&v.createElement(`span`,{className:`${A}-checkbox-inner`}),selectable:y,switcherIcon:H,draggable:V},g)}),jS=0,MS=1,NS=2;function PS(e,t,n){let{key:r,children:i}=n;function a(e){let a=e[r],o=e[i];t(a,e)!==!1&&PS(o||[],t,n)}e.forEach(a)}function Foe({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:i}){let a=[],o=jS;if(n&&n===r)return[n];if(!n||!r)return[];function s(e){return e===n||e===r}return PS(e,e=>{if(o===NS)return!1;if(s(e)){if(a.push(e),o===jS)o=MS;else if(o===MS)return o=NS,!1}else o===MS&&a.push(e);return t.includes(e)},Qv(i)),a}function FS(e,t,n){let r=We(t),i=[];return PS(e,(e,t)=>{let n=r.indexOf(e);return n!==-1&&(i.push(t),r.splice(n,1)),!!r.length},Qv(n)),i}function Ioe(e){let{isLeaf:t,expanded:n}=e;return t?v.createElement(CS,null):n?v.createElement(moe,null):v.createElement(goe,null)}function IS({treeData:e,children:t}){return e||$v(t)}var Loe=v.forwardRef((e,t)=>{let{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i,...a}=e,o=v.useRef(null),s=v.useRef(null),c=()=>{let{keyEntities:e}=ty(IS(a),{fieldNames:a.fieldNames}),t,o=a.expandedKeys||i||[];return t=n?Object.keys(e):r?tS(o,e):o,t},[l,u]=v.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[d,f]=v.useState(()=>c());v.useEffect(()=>{`selectedKeys`in a&&u(a.selectedKeys)},[a.selectedKeys]),v.useEffect(()=>{`expandedKeys`in a&&f(a.expandedKeys)},[a.expandedKeys]);let p=(e,t)=>(`expandedKeys`in a||f(e),a.onExpand?.(e,t)),m=(e,t)=>{let{multiple:n,fieldNames:r}=a,{node:i,nativeEvent:c}=t,{key:l=``}=i,f=IS(a),p={...t,selected:!0},m=c?.ctrlKey||c?.metaKey,h=c?.shiftKey,g;n&&m?(g=e,o.current=l,s.current=g,p.selectedNodes=FS(f,g,r)):n&&h?(g=Array.from(new Set([].concat(We(s.current||[]),We(Foe({treeData:f,expandedKeys:d,startKey:l,endKey:o.current,fieldNames:r}))))),p.selectedNodes=FS(f,g,r)):(g=[l],o.current=l,s.current=g,p.selectedNodes=FS(f,g,r)),a.onSelect?.(g,p),`selectedKeys`in a||u(g)},{getPrefixCls:h,direction:g}=v.useContext($e),{prefixCls:_,className:y,showIcon:b=!0,expandAction:x=`click`,...S}=a,C=h(`tree`,_),w=G(`${C}-directory`,{[`${C}-directory-rtl`]:g===`rtl`},y);return v.createElement(AS,{icon:Ioe,ref:t,blockNode:!0,...S,showIcon:b,expandAction:x,prefixCls:C,className:w,expandedKeys:d,selectedKeys:l,onSelect:m,onExpand:p})}),LS=AS;LS.DirectoryTree=Loe,LS.TreeNode=Jx;var RS=e=>{let{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?v.createElement(`div`,{className:`${r}-filter-dropdown-search`},v.createElement(xie,{prefix:v.createElement(qh,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Roe=e=>{let{keyCode:t}=e;t===uu.ENTER&&e.stopPropagation()},zoe=v.forwardRef((e,t)=>v.createElement(`div`,{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:Roe,ref:t},e.children));function zS(e){let t=[];return(e||[]).forEach(({value:e,children:n})=>{t.push(e),n&&(t=[].concat(We(t),We(zS(n))))}),t}function Boe(e){return e.some(({children:e})=>e)}var BS=(e,t)=>typeof t==`string`||Ys(t)?t.toString().toLowerCase().includes(e):!1,VS=e=>{let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s}=e;return t.map((e,t)=>{let c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:VS({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,normalizedSearchValue:o,filterSearch:s})};let l=i?dy:ev,u={key:e.value===void 0?t:c,label:v.createElement(v.Fragment,null,v.createElement(l,{checked:r.includes(c)}),v.createElement(`span`,null,e.text))};return o?typeof s==`function`?s(o,e)?u:null:BS(o,e.text)?u:null:u})};function HS(e){return e||[]}var Voe=e=>{let{tablePrefixCls:t,prefixCls:n,column:r,dropdownPrefixCls:i,columnKey:a,filterOnClose:o,filterMultiple:s,filterMode:c=`menu`,filterSearch:l=!1,filterState:u,triggerFilter:d,locale:f,children:p,getPopupContainer:m,rootClassName:h}=e,{filterResetToDefaultFilteredValue:g,defaultFilteredValue:_,filterDropdownProps:y={},filterDropdownOpen:b,onFilterDropdownOpenChange:x}=r,[S,C]=v.useState(!1),w=v.useContext(fg),T=!!(u&&(u.filteredKeys?.length||u.forceFiltered)),E=e=>{C(e),y.onOpenChange?.(e),x?.(e)},D=y.open??b??S,O=u?.filteredKeys,[k,A]=bc(HS(O)),j=({selectedKeys:e})=>{A(e)},M=(e,{node:t,checked:n})=>{j(s?{selectedKeys:e}:{selectedKeys:n&&t.key?[t.key]:[]})};v.useEffect(()=>{S&&j({selectedKeys:HS(O)})},[O]);let[N,P]=v.useState([]),F=e=>{P(e)},[I,L]=v.useState(``),R=v.useMemo(()=>I.trim().toLowerCase(),[I]),z=e=>{let{value:t}=e.target;L(t)};v.useEffect(()=>{S||L(``)},[S]);let B=e=>{let t=e?.length?e:null;if(t===null&&(!u||!u.filteredKeys)||vt(t,u?.filteredKeys,!0))return null;d({column:r,key:a,filteredKeys:t})},V=()=>{E(!1),B(k())},H=({confirm:e,closeDropdown:t}={confirm:!1,closeDropdown:!1})=>{e&&B([]),t&&E(!1),L(``),A(g?(_||[]).map(String):[])},U=({closeDropdown:e}={closeDropdown:!0})=>{e&&E(!1),B(k())},ee=(e,t)=>{t.source===`trigger`&&(e&&O!==void 0&&A(HS(O)),E(e),!e&&!r.filterDropdown&&o&&V())},te=G({[`${i}-menu-without-submenu`]:!Boe(r.filters||[])}),W=e=>{e.target.checked?A(zS(r?.filters).map(String)):A([])},ne=({filters:e})=>(e||[]).map((e,t)=>{let n=String(e.value),r={title:e.text,key:e.value===void 0?String(t):n};return e.children&&(r.children=ne({filters:e.children})),r}),re=e=>({...e,text:e.title,value:e.key,children:e.children?.map(re)||[]}),ie,{direction:ae,renderEmpty:oe}=v.useContext($e);if(typeof r.filterDropdown==`function`)ie=r.filterDropdown({prefixCls:`${i}-custom`,setSelectedKeys:e=>j({selectedKeys:e}),selectedKeys:k(),confirm:U,clearFilters:H,filters:r.filters,visible:D,close:()=>{E(!1)}});else if(r.filterDropdown)ie=r.filterDropdown;else{let e=k()||[];ie=v.createElement(v.Fragment,null,(()=>{let a=oe?.(`Table.filter`)??v.createElement(kh,{image:kh.PRESENTED_IMAGE_SIMPLE,description:f.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:`16px 0`}});if((r.filters||[]).length===0)return a;if(c===`tree`)return v.createElement(v.Fragment,null,v.createElement(RS,{filterSearch:l,value:I,onChange:z,tablePrefixCls:t,locale:f}),v.createElement(`div`,{className:`${t}-filter-dropdown-tree`},s?v.createElement(dy,{checked:e.length===zS(r.filters).length,indeterminate:e.length>0&&e.length<zS(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:W},f?.filterCheckall??f?.filterCheckAll):null,v.createElement(LS,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:`${i}-menu`,onCheck:M,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:ne({filters:r.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:R?e=>typeof l==`function`?l(I,re(e)):BS(R,e.title):void 0})));let o=VS({filters:r.filters||[],filterSearch:l,prefixCls:n,filteredKeys:k(),filterMultiple:s,searchValue:I,normalizedSearchValue:R}),u=o.every(e=>e===null);return v.createElement(v.Fragment,null,v.createElement(RS,{filterSearch:l,value:I,onChange:z,tablePrefixCls:t,locale:f}),u?a:v.createElement(W_,{selectable:!0,multiple:s,prefixCls:`${i}-menu`,className:te,onSelect:j,onDeselect:j,selectedKeys:e,getPopupContainer:m,openKeys:N,onOpenChange:F,items:o}))})(),v.createElement(`div`,{className:`${n}-dropdown-btns`},v.createElement(yf,{type:`link`,size:`small`,disabled:g?vt((_||[]).map(String),e,!0):e.length===0,onClick:()=>H()},f.filterReset),v.createElement(yf,{type:`primary`,size:`small`,onClick:V},f.filterConfirm)))}r.filterDropdown&&(ie=v.createElement(P_,{selectable:void 0},ie)),ie=v.createElement(zoe,{className:`${n}-dropdown`},ie);let se=(()=>{let e;return e=typeof r.filterIcon==`function`?r.filterIcon(T):r.filterIcon?r.filterIcon:v.createElement(ioe,null),v.createElement(`span`,{role:`button`,tabIndex:-1,className:G(`${n}-trigger`,{active:T}),onClick:e=>{e.stopPropagation()}},e)})();if(w)return v.createElement(`div`,{className:`${n}-column`},v.createElement(`span`,{className:`${t}-column-title`},p),se);let ce=qs({trigger:[`click`],placement:ae===`rtl`?`bottomLeft`:`bottomRight`,children:se,getPopupContainer:m},{...y,rootClassName:G(h,y.rootClassName),open:D,onOpenChange:ee,popupRender:()=>typeof y?.dropdownRender==`function`?y.dropdownRender(ie):ie});return v.createElement(`div`,{className:`${n}-column`},v.createElement(`span`,{className:`${t}-column-title`},p),v.createElement(ky,{...ce}))},US=(e,t,n)=>{let r=[];return(e||[]).forEach((e,i)=>{let a=lS(i,n),o=e.filterDropdown!==void 0;if(e.filters||o||`onFilter`in e)if(`filteredValue`in e){let t=e.filteredValue;o||(t=t?.map(String)??t),r.push({column:e,key:cS(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:cS(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});`children`in e&&(r=[].concat(We(r),We(US(e.children,t,a))))}),r};function WS(e,t,n,r,i,a,o,s,c){return n.map((n,l)=>{let u=lS(l,s),{filterOnClose:d=!0,filterMultiple:f=!0,filterMode:p,filterSearch:m}=n,h=n;if(h.filters||h.filterDropdown){let s=cS(h,u),l=r.find(({key:e})=>s===e);h={...h,title:r=>v.createElement(Voe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:s,filterState:l,filterOnClose:d,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:a,locale:i,getPopupContainer:o,rootClassName:c},uS(n.title,r))}}return`children`in h&&(h={...h,children:WS(e,t,h.children,r,i,a,o,u,c)}),h})}var GS=e=>{let t={};return e.forEach(({key:e,filteredKeys:n,column:r})=>{let i=e,{filters:a,filterDropdown:o}=r;o?t[i]=n||null:Array.isArray(n)?t[i]=zS(a).filter(e=>n.includes(String(e))):t[i]=null}),t},KS=(e,t,n)=>t.reduce((e,r)=>{let{column:{onFilter:i,filters:a},filteredKeys:o}=r;if(i&&o&&o.length){let r=zS(a),s=new Map;r.forEach(e=>{let t=String(e);s.has(t)||s.set(t,e)});let c=o.map(e=>{let t=String(e);return s.get(t)??e});return(e=>e.reduce((e,r)=>{let a={...r};return a[n]&&(a[n]=KS(a[n],t,n)),c.some(e=>i(e,a))&&e.push(a),e},[]))(e)}return e},e),qS=e=>e.flatMap(e=>`children`in e?[e].concat(We(qS(e.children||[]))):[e]),JS=e=>{let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:o,rootClassName:s}=e;be(`Table`);let c=v.useMemo(()=>qS(r||[]),[r]),[l,u]=v.useState(()=>US(c,!0)),d=v.useMemo(()=>{let e=US(c,!1);if(e.length===0)return e;let t=!0;if(e.forEach(({filteredKeys:e})=>{e!==void 0&&(t=!1)}),t){let e=(c||[]).map((e,t)=>cS(e,lS(t)));return l.filter(({key:t})=>e.includes(t)).map(t=>{let n=c[e.indexOf(t.key)];return{...t,column:{...t.column,...n},forceFiltered:n.filtered}})}return e},[c,l]),f=v.useMemo(()=>GS(d),[d]),p=e=>{let t=d.filter(({key:t})=>t!==e.key);t.push(e),u(t),i(GS(t),t)};return[e=>WS(t,n,e,d,o,p,a,void 0,s),d,f]},YS=(e,t,n)=>{let r=v.useRef({});function i(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let i=new Map;function a(e){e.forEach((e,r)=>{let o=n(e,r);i.set(o,e),Zs(e)&&t in e&&a(e[t]||[])})}a(e),r.current={data:e,childrenColumnName:t,kvMap:i,getRowKey:n}}return r.current.kvMap?.get(i)}return[i]};function XS(e,t){let n={current:e.current,pageSize:e.pageSize},r=Zs(t)?t:{};return Object.keys(r).forEach(t=>{let r=e[t];typeof r!=`function`&&(n[t]=r)}),n}function ZS(e,t,n){let{total:r=0,...i}=Zs(n)?n:{},[a,o]=(0,v.useState)(()=>({current:`defaultCurrent`in i?i.defaultCurrent:1,pageSize:`defaultPageSize`in i?i.defaultPageSize:10})),s=qs(a,i,{total:r>0?r:e}),c=Math.ceil((r||e)/s.pageSize);s.current>c&&(s.current=c||1);let l=(e,t)=>{o({current:e??1,pageSize:t||s.pageSize})},u=(e,r)=>{n&&n.onChange?.(e,r),l(e,r),t(e,r||s?.pageSize)};return n===!1?[{},()=>{}]:[{...s,onChange:u},l]}var QS={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z`}}]},name:`caret-down`,theme:`outlined`};function $S(){return $S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$S.apply(this,arguments)}var eC=v.forwardRef((e,t)=>v.createElement(Co,$S({},e,{ref:t,icon:QS}))),tC={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z`}}]},name:`caret-up`,theme:`outlined`};function nC(){return nC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nC.apply(this,arguments)}var rC=v.forwardRef((e,t)=>v.createElement(Co,nC({},e,{ref:t,icon:tC}))),iC=`ascend`,aC=`descend`,oC=e=>e.sorter&&typeof e.sorter==`object`&&Ys(e.sorter.multiple)?e.sorter.multiple:!1,sC=e=>typeof e==`function`?e:Zs(e)&&e.compare?e.compare:!1,cC=(e,t)=>t?e[e.indexOf(t)+1]:e[0],lC=(e,t,n)=>{let r=[],i=(e,t)=>{r.push({column:e,key:cS(e,t),multiplePriority:oC(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,a)=>{let o=lS(a,n);e.children?(`sortOrder`in e&&i(e,o),r=[].concat(We(r),We(lC(e.children,t,o)))):e.sorter&&(`sortOrder`in e?i(e,o):t&&e.defaultSortOrder&&r.push({column:e,key:cS(e,o),multiplePriority:oC(e),sortOrder:e.defaultSortOrder}))}),r},uC=(e,t,n,r,i,a,o,s,c)=>(t||[]).map((t,l)=>{let u=lS(l,s),d=t;if(d.sorter){let s=d.sortDirections||i,l=d.showSorterTooltip===void 0?o:d.showSorterTooltip,f=cS(d,u),p=n.find(({key:e})=>e===f),m=p?p.sortOrder:null,h=cC(s,m),g;if(t.sortIcon)g=t.sortIcon({sortOrder:m});else{let t=s.includes(iC)&&v.createElement(rC,{className:G(`${e}-column-sorter-up`,{active:m===iC})}),n=s.includes(aC)&&v.createElement(eC,{className:G(`${e}-column-sorter-down`,{active:m===aC})});g=v.createElement(`span`,{className:G(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(t&&n)})},v.createElement(`span`,{className:`${e}-column-sorter-inner`,"aria-hidden":`true`},t,n))}let{cancelSort:_,triggerAsc:y,triggerDesc:b}=a||{},x=_;h===aC?x=b:h===iC&&(x=y);let S=Zs(l)?{title:x,...l}:{title:x};d={...d,className:G(d.className,{[`${e}-column-sort`]:m}),title:n=>{let r=`${e}-column-sorters`,i=v.createElement(`span`,{className:`${e}-column-title`},uS(t.title,n)),a=v.createElement(`div`,{className:r},i,g);return l?typeof l!=`boolean`&&l?.target===`sorter-icon`?v.createElement(`div`,{className:G(r,`${r}-tooltip-target-sorter`)},i,v.createElement(_g,{...S},g)):v.createElement(_g,{...S},a):a},onHeaderCell:n=>{let i=t.onHeaderCell?.(n)||{},a=i.onClick,o=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:h,multiplePriority:oC(t)}),a?.(e)},i.onKeyDown=e=>{e.keyCode===uu.ENTER&&(r({column:t,key:f,sortOrder:h,multiplePriority:oC(t)}),o?.(e))};let s=noe(t.title,{}),l=s?.toString();return m&&(i[`aria-sort`]=m===`ascend`?`ascending`:`descending`),i[`aria-description`]=c?.sortable,i[`aria-label`]=l||``,i.className=G(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(s??``).toString()),i}}}return`children`in d&&(d={...d,children:uC(e,d.children,n,r,i,a,o,u,c)}),d}),dC=e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},fC=e=>{let t=e.filter(({sortOrder:e})=>e).map(dC);return t.length===0&&e.length?{...dC(e[e.length-1]),column:void 0,order:void 0,field:void 0,columnKey:void 0}:t.length<=1?t[0]||{}:t},pC=(e,t,n)=>{let r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),i=e.slice(),a=r.filter(({column:{sorter:e},sortOrder:t})=>sC(e)&&t);return a.length?i.sort((e,t)=>{for(let n=0;n<a.length;n+=1){let{column:{sorter:r},sortOrder:i}=a[n],o=sC(r);if(o&&i){let n=o(e,t,i);if(n!==0)return i===iC?n:-n}}return 0}).map(e=>{let r=e[n];return r?{...e,[n]:pC(r,t,n)}:e}):i},mC=e=>{let{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:o,globalLocale:s}=e,[c,l]=v.useState(()=>lC(n,!0)),u=(e,t)=>{let n=[];return e.forEach((e,r)=>{let i=lS(r,t);if(n.push(cS(e,i)),Array.isArray(e.children)){let t=u(e.children,i);n.push.apply(n,We(t))}}),n},d=v.useMemo(()=>{let e=!0,t=lC(n,!1);if(!t.length){let e=u(n);return c.filter(({key:t})=>e.includes(t))}let r=[];function i(t){e?r.push(t):r.push({...t,sortOrder:null})}let a=null;return t.forEach(t=>{a===null?(i(t),t.sortOrder&&(t.multiplePriority===!1?e=!1:a=!0)):(a&&t.multiplePriority!==!1||(e=!1),i(t))}),r},[n,c]),f=v.useMemo(()=>{let e=d.map(({column:e,sortOrder:t})=>({column:e,order:t}));return{sortColumns:e,sortColumn:e[0]?.column,sortOrder:e[0]?.order}},[d]),p=e=>{let t;t=e.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?[e]:[].concat(We(d.filter(({key:t})=>t!==e.key)),[e]),l(t),o(fC(t),t)};return[e=>uC(t,e,d,p,r,i,a,void 0,s),d,f,()=>fC(d)]},hC=(e,t)=>e.map(e=>{let n={...e};return n.title=uS(e.title,t),`children`in n&&(n.children=hC(n.children,t)),n}),gC=e=>[v.useCallback(t=>hC(t,e),[e])],_C=Fx((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),vC=Ux((e,t)=>{let{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),yC=e=>{let{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:c}=e,l=`${K(n)} ${r} ${i}`,u=(e,r,i)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > th, > table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${K(c(r).mul(-1).equal())}
|
||
${K(c(c(i).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:l,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:l,borderTop:l,[`> ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary`]:{"> table":{"> thead > tr > th, > thead > tr > td, > tbody > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td":{borderInlineEnd:l},"> thead":{"> tr:not(:last-child) > th":{borderBottom:l},"> tr > th::before":{backgroundColor:`transparent !important`}},"> thead > tr, > tbody > tr, > tfoot > tr":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:l}},"> tbody > tr > th, > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`${K(c(o).mul(-1).equal())} ${K(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:l,content:`""`}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
||
> tr${t}-expanded-row,
|
||
> tr${t}-placeholder
|
||
`]:{"> th, > td":{borderInlineEnd:0}}}}},...u(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...u(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:l,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${K(n)} 0 ${K(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:l}}}},bC=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...Ba,wordBreak:`keep-all`,[`
|
||
&${t}-cell-fix-start-shadow,
|
||
&${t}-cell-fix-end-shadow
|
||
`]:{overflow:`visible`,[`${t}-cell-content`]:{...Ba,display:`block`}},[`${t}-column-title`]:{...Ba,wordBreak:`keep-all`}}}}},xC=e=>{let{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:`center`,color:e.colorTextDisabled,"&:hover > th, &:hover > td":{background:e.colorBgContainer}}}}},SC=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:a,lineType:o,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:l,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:_,expandIconScale:v,calc:y}=e,b=`${K(i)} ${o} ${s}`,x=y(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:l},[`${t}-row-expand-icon-cell`]:{textAlign:`center`,[`${t}-row-expand-icon`]:{display:`inline-flex`,float:`none`,verticalAlign:`sub`}},[`${t}-row-indent`]:{height:1,float:`left`},[`${t}-row-expand-icon`]:{...Ya(e),position:`relative`,float:`left`,width:g,height:g,color:`inherit`,lineHeight:K(g),background:c,border:b,borderRadius:u,transform:`scale(${v})`,"&:focus, &:hover, &:active":{borderColor:`currentcolor`},"&::before, &::after":{position:`absolute`,background:`currentcolor`,transition:`transform ${r} ease-out`,content:`""`},"&::before":{top:_,insetInlineEnd:x,insetInlineStart:x,height:i},"&::after":{top:x,bottom:x,insetInlineStart:_,width:i,transform:`rotate(90deg)`},"&-collapsed::before":{transform:`rotate(-180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`},"&-spaced":{"&::before, &::after":{display:`none`,content:`none`},background:`transparent`,border:0,visibility:`hidden`}},[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:`flex`,table:{flex:`auto`,width:`100%`}}},[`${t}-expanded-row-fixed`]:{position:`relative`,margin:`${K(y(d).mul(-1).equal())} ${K(y(f).mul(-1).equal())}`,padding:`${K(d)} ${K(f)}`}}}},CC=e=>{let{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:c,lineWidth:l,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:h,motionDurationSlow:g,colorIcon:_,colorPrimary:v,tableHeaderFilterActiveBg:y,colorTextDisabled:b,tableFilterDropdownBg:x,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:w,boxShadowSecondary:T,filterDropdownMenuBg:E,calc:D}=e,O=`${n}-dropdown`,k=`${t}-filter-dropdown`,A=`${n}-tree`,j=`${K(l)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:`flex`,justifyContent:`space-between`},[`${t}-filter-trigger`]:{position:`relative`,display:`flex`,alignItems:`center`,marginBlock:D(o).mul(-1).equal(),marginInline:`${K(o)} ${K(D(m).div(2).mul(-1).equal())}`,padding:`0 ${K(o)}`,color:f,fontSize:p,borderRadius:h,cursor:`pointer`,transition:`all ${g}`,"&:hover":{color:_,background:y},"&.active":{color:v}}}},{[`${n}-dropdown`]:{[k]:{...Va(e),minWidth:i,backgroundColor:x,borderRadius:h,boxShadow:T,overflow:`hidden`,[`${O}-menu`]:{maxHeight:S,overflowX:`hidden`,border:0,boxShadow:`none`,borderRadius:`unset`,backgroundColor:E,"&:empty::after":{display:`block`,padding:`${K(s)} 0`,color:b,fontSize:p,textAlign:`center`,content:`"Not Found"`}},[`${k}-tree`]:{paddingBlock:`${K(s)} 0`,paddingInline:s,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:C},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${k}-search`]:{padding:s,borderBottom:j,"&-input":{input:{minWidth:a},[r]:{color:b}}},[`${k}-checkall`]:{width:`100%`,marginBottom:o,marginInlineStart:o},[`${k}-btns`]:{display:`flex`,justifyContent:`space-between`,padding:`${K(D(s).sub(l).equal())} ${K(s)}`,overflow:`hidden`,borderTop:j}}}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:`calc(100vh - 130px)`,overflowX:`hidden`,overflowY:`auto`}}}]};function wC({colorSplit:e}){return[{boxShadow:`inset 10px 0 8px -8px ${e}`},{boxShadow:`inset -10px 0 8px -8px ${e}`}]}var TC=e=>{let{componentCls:t,lineWidth:n,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,calc:o}=e,s=`${t}-cell`,c=`${s}-fix`,l={position:`absolute`,top:0,bottom:o(n).mul(-1).equal(),width:30,transition:`box-shadow ${r}`,content:`""`,pointerEvents:`none`},[u,d]=wC(e);return{[`${t}-wrapper`]:{[`${s}${c}`]:{position:`sticky`},[c]:{zIndex:`calc(var(--z-offset-reverse) + ${i})`,background:a,"&:after":l,"&-start:after":{insetInlineStart:`100%`},"&-end:after":{insetInlineEnd:`100%`},"&-start-shadow-show:after":u,"&-end-shadow-show:after":d},[`${t}-container`]:{position:`relative`,"&:before, &:after":{...l,zIndex:`calc(var(--columns-count) * 2 + ${i} + 1)`},"&:before":{insetInlineStart:0},"&:after":{insetInlineEnd:0}},[`${t}-has-fix-start ${t}-container:before`]:{display:`none`},[`${t}-has-fix-end ${t}-container:after`]:{display:`none`},[`${t}-fix-start-shadow-show ${t}-container:before`]:u,[`${t}-fix-end-shadow-show ${t}-container:after`]:d}}},EC=e=>{let{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${K(r)} 0`},[`${t}-pagination`]:{display:`flex`,flexWrap:`wrap`,rowGap:e.paddingXS,"> *":{flex:`none`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`}}}}},DC=e=>{let{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${K(n)} ${K(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"&::before":{borderStartStartRadius:n},"&::after":{borderStartEndRadius:n},[`> ${t}-content`]:{borderStartStartRadius:n,borderStartEndRadius:n},"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${K(n)} ${K(n)}`}}}}},OC=e=>{let{componentCls:t}=e,[n,r]=wC(e);return{[`${t}-wrapper-rtl`]:{direction:`rtl`,table:{direction:`rtl`},[`${t}-row-expand-icon`]:{float:`right`,"&::after":{transform:`rotate(-90deg)`},"&-collapsed::before":{transform:`rotate(180deg)`},"&-collapsed::after":{transform:`rotate(0deg)`}},[`${t}-cell-fix`]:{"&-start-shadow-show:after":r,"&-end-shadow-show:after":n},[`${t}-container`]:{[`${t}-row-indent`]:{float:`right`}},[`${t}-fix-start-shadow-show ${t}-container:before`]:r,[`${t}-fix-end-shadow-show ${t}-container:after`]:n}}},kC=e=>{let{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:a,paddingXS:o,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:l,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:l,[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(l).add(m(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(l).add(i).add(m(a).div(4)).add(m(o).mul(2)).equal()}},[`
|
||
table tr th${t}-selection-column,
|
||
table tr td${t}-selection-column,
|
||
${t}-selection-column
|
||
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:`center`,[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:m(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:`transparent !important`},[`${t}-selection`]:{position:`relative`,display:`inline-flex`,flexDirection:`column`},[`${t}-selection-extra`]:{position:`absolute`,top:0,zIndex:1,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,marginInlineStart:`100%`,paddingInlineStart:K(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:`baseline`,"&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},AC=e=>{let{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(e,i,a,o)=>({[`${t}${t}-${e}`]:{fontSize:o,[`
|
||
${t}-title,
|
||
${t}-footer,
|
||
${t}-cell,
|
||
${t}-thead > tr > th,
|
||
${t}-tbody > tr > th,
|
||
${t}-tbody > tr > td,
|
||
tfoot > tr > th,
|
||
tfoot > tr > td
|
||
`]:{padding:`${K(i)} ${K(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:K(r(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${K(r(i).mul(-1).equal())} ${K(r(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:K(r(i).mul(-1).equal()),marginInline:`${K(r(n).sub(a).equal())} ${K(r(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:K(r(a).div(4).equal())}}});return{[`${t}-wrapper`]:{...i(`medium`,e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...i(`small`,e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},jC=e=>{let{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:i,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:`transparent !important`}},"&:focus-visible":{color:e.colorPrimary},[`
|
||
&${t}-cell-fix-left:hover,
|
||
&${t}-cell-fix-right:hover
|
||
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:`transparent !important`}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:`relative`,zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:`flex`,flex:`auto`,alignItems:`center`,justifyContent:`space-between`,"&::after":{position:`absolute`,inset:0,width:`100%`,height:`100%`,content:`""`}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:`none`}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:`inline-flex`,flexDirection:`column`,alignItems:`center`},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:`-0.3em`}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},MC=e=>{let{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:l,tableBorderColor:u,zIndexTableFixed:d}=e,f=`${K(c)} ${l} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:`sticky`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,background:e.colorBgContainer},"&-scroll":{position:`sticky`,bottom:0,height:`${K(a)} !important`,zIndex:`calc(var(--columns-count) * 2 + ${d} + 1)`,display:`flex`,alignItems:`center`,background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:`center bottom`},"&-bar":{height:a,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:`absolute`,bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},NC=e=>{let{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,a=`${K(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:`relative`,zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${K(i(n).mul(-1).equal())} 0 ${r}`}}}},PC=e=>{let{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:a,calc:o}=e,s=`${K(r)} ${i} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
||
& > ${t}-row,
|
||
& > div:not(${t}-row) > ${t}-row
|
||
`]:{display:`flex`,boxSizing:`border-box`,width:`100%`}},[`${t}-cell`]:{borderBottom:s,transition:`background-color ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:`sticky`,insetInlineStart:0,overflow:`hidden`,width:`calc(var(--virtual-width) - ${K(r)})`,borderInlineEnd:`none`}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:`""`,insetInline:0,bottom:0,borderBottom:s,position:`absolute`},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:`""`,position:`absolute`,insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},FC=e=>{let{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:a,lineWidth:o,lineType:s,tableBorderColor:c,tableFontSize:l,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:_,calc:v}=e,y=`${K(o)} ${s} ${c}`;return{[`${t}-wrapper`]:{clear:`both`,maxWidth:`100%`,"--rc-virtual-list-scrollbar-bg":e.tableScrollBg,...Ua(),[t]:{...Va(e),fontSize:l,background:u,borderRadius:`${K(d)} ${K(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:`100%`,textAlign:`start`,borderRadius:`${K(d)} ${K(d)} 0 0`,borderCollapse:`separate`,borderSpacing:0},[`
|
||
${t}-cell,
|
||
${t}-thead > tr > th,
|
||
${t}-tbody > tr > th,
|
||
${t}-tbody > tr > td,
|
||
tfoot > tr > th,
|
||
tfoot > tr > td
|
||
`]:{position:`relative`,padding:`${K(r)} ${K(i)}`,overflowWrap:`break-word`},[`${t}-title`]:{padding:`${K(r)} ${K(i)}`},[`${t}-thead`]:{"> tr > th, > tr > td":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:`center`},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,width:1,height:`1.6em`,backgroundColor:h,transform:`translateY(-50%)`,transition:`background-color ${p}`,content:`""`}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{borderBottom:y,transition:[`background-color`,`border-color`].map(e=>`${e} ${p}`).join(`, `),[`
|
||
> ${t}-wrapper:only-child,
|
||
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
||
`]:{[t]:{marginBlock:K(v(r).mul(-1).equal()),marginInline:`${K(v(a).sub(i).equal())}
|
||
${K(v(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:`relative`,color:f,fontWeight:n,textAlign:`start`,background:m,borderBottom:y,transition:`background-color ${p} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:`0 !important`,borderBlock:`0 !important`,[`${t}-measure-cell-content`]:{height:0,overflow:`hidden`,pointerEvents:`none`}}}},[`${t}-footer`]:{padding:`${K(r)} ${K(i)}`,color:g,background:_}}}},IC=e=>{let{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:o,controlItemBgActiveHover:s,padding:c,paddingSM:l,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:p,colorTextPlaceholder:m,fontSize:h,fontSizeSM:g,lineHeight:_,lineWidth:v,colorIcon:y,colorIconHover:b,opacityLoading:x,controlInteractiveSize:S}=e,C=new ji(i).onBackground(n).toHexString(),w=new ji(a).onBackground(n).toHexString(),T=new ji(t).onBackground(n).toHexString(),E=new ji(y),D=new ji(b),O=S/2-v,k=O*2+v*3;return{headerBg:T,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:w,bodySortBg:T,rowHoverBg:T,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:l,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:T,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*_-v*3)/2-Math.ceil((g*1.4-v*3)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*x).toRgbString(),expandIconHalfInner:O,expandIconSize:k,expandIconScale:S/k}},LC=2,RC=Xa(`Table`,e=>{let{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:a,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:l,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:_,cellPaddingBlockSM:v,cellPaddingInlineSM:y,borderColor:b,footerBg:x,footerColor:S,headerBorderRadius:C,cellFontSize:w,cellFontSizeMD:T,cellFontSizeSM:E,headerSplitColor:D,fixedHeaderSortActiveBg:O,headerFilterHoverBg:k,filterDropdownBg:A,expandIconBg:j,selectionColumnWidth:M,stickyScrollBarBg:N,calc:P}=e,F=li(e,{tableFontSize:w,tableBg:r,tableRadius:C,tablePaddingVertical:m,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:_,tablePaddingVerticalSmall:v,tablePaddingHorizontalSmall:y,tableBorderColor:b,tableHeaderTextColor:o,tableHeaderBg:a,tableFooterTextColor:S,tableFooterBg:x,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:l,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:A,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:LC,tableFontSizeMiddle:T,tableFontSizeSmall:E,tableSelectionColumnWidth:M,tableExpandIconBg:j,tableExpandColumnWidth:P(i).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:N,tableScrollThumbBgHover:t,tableScrollBg:n});return[FC(F),EC(F),NC(F),jC(F),CC(F),yC(F),DC(F),SC(F),NC(F),xC(F),kC(F),TC(F),MC(F),bC(F),AC(F),OC(F),PC(F)]},IC,{resetFont:!1,unitless:{expandIconScale:!0}}),zC=[],BC=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,classNames:o,styles:s,size:c,bordered:l,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:p,rowKey:m,rowClassName:h,columns:g,children:_,childrenColumnName:y,onChange:b,getPopupContainer:x,loading:S,expandIcon:C,expandable:w,expandedRowRender:T,expandIconColumnIndex:E,indentSize:D,scroll:O,sortDirections:k,locale:A,showSorterTooltip:j={target:`full-header`},virtual:M}=e;be(`Table`);let N=v.useMemo(()=>g||Sx(_),[g,_]),P=eg(v.useMemo(()=>N.some(e=>e.responsive),[N])),F=v.useMemo(()=>{let e=new Set(Object.keys(P).filter(e=>P[e]));return N.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[N,P]),I=he(e,[`className`,`style`,`columns`]),{locale:L=zs,table:R}=v.useContext($e),{getPrefixCls:z,direction:B,renderEmpty:V,getPopupContainer:H,className:U,style:ee,classNames:te,styles:W}=nt(`table`),ne=Nu(e=>c===`middle`?`medium`:c??e),re={...e,size:ne,bordered:l},[ie,ae]=mc([te,o],[W,s],{props:re},{pagination:{_default:`root`},header:{_default:`wrapper`},body:{_default:`wrapper`}}),oe={...L.Table,...A},[se]=Ws(`global`,zs.global),ce=d||zC,le=z(`table`,n),ue=z(`dropdown`,u),[,de]=za(),fe=v.useMemo(()=>Zs(p)?{columnWidth:de.Table?.selectionColumnWidth,...p}:p,[p,de.Table?.selectionColumnWidth]),pe=jc(le),[me,ge]=RC(le,pe),_e={childrenColumnName:y,expandIconColumnIndex:E,...w,expandIcon:w?.expandIcon??R?.expandable?.expandIcon},{childrenColumnName:ve=`children`}=_e,ye=v.useMemo(()=>ce.some(e=>e?.[ve])?`nest`:T||w?.expandedRowRender?`row`:null,[ve,ce]),xe={body:v.useRef(null)},Se=toe(le),Ce=v.useRef(null),we=v.useRef(null);yc(t,()=>({...we.current,nativeElement:Ce.current}));let Te=m||R?.rowKey||`key`,Ee=O??R?.scroll,De=v.useMemo(()=>typeof Te==`function`?Te:e=>e?.[Te],[Te]),[Oe]=YS(ce,ve,De),ke={},Ae=(e,t,n=!1)=>{let r={...ke,...e};n&&(ke.resetPagination?.(),r.pagination?.current&&(r.pagination.current=1),f&&f.onChange?.(1,r.pagination?.pageSize)),O&&O.scrollToFirstRowOnChange!==!1&&xe.body.current&&Ac(0,{getContainer:()=>xe.body.current}),b?.(r.pagination,r.filters,r.sorter,{currentDataSource:KS(pC(ce,r.sorterStates,ve),r.filterStates,ve),action:t})},[je,Me,Ne,Pe]=mC({prefixCls:le,mergedColumns:F,onSorterChange:(e,t)=>{Ae({sorter:e,sorterStates:t},`sort`,!1)},sortDirections:k||[`ascend`,`descend`],tableLocale:oe,showSorterTooltip:j,globalLocale:se}),Fe=v.useMemo(()=>pC(ce,Me,ve),[ve,ce,Me]);ke.sorter=Pe(),ke.sorterStates=Me;let[Ie,Le,Re]=JS({prefixCls:le,locale:oe,dropdownPrefixCls:ue,mergedColumns:F,onFilterChange:(e,t)=>{Ae({filters:e,filterStates:t},`filter`,!0)},getPopupContainer:x||H,rootClassName:G(i,pe)}),ze=KS(Fe,Le,ve);ke.filters=Re,ke.filterStates=Le;let[Be]=gC(v.useMemo(()=>{let e={};return Object.keys(Re).forEach(t=>{Re[t]!==null&&(e[t]=Re[t])}),{...Ne,filters:e}},[Ne,Re])),[Ve,He]=ZS(ze.length,(e,t)=>{Ae({pagination:{...ke.pagination,current:e,pageSize:t}},`paginate`)},f);ke.pagination=f===!1?{}:XS(Ve,f),ke.resetPagination=He;let Ue=v.useMemo(()=>{if(f===!1||!Ve.pageSize)return ze;let{current:e=1,total:t,pageSize:n=10}=Ve;return ze.length<t?ze.length>n?ze.slice((e-1)*n,e*n):ze:ze.slice((e-1)*n,e*n)},[!!f,ze,Ve?.current,Ve?.pageSize,Ve?.total]),[We,Ge]=$ae({prefixCls:le,data:ze,pageData:Ue,getRowKey:De,getRecordByKey:Oe,expandType:ye,childrenColumnName:ve,locale:oe,getPopupContainer:x||H},fe),Ke=(e,t,n)=>{let r=typeof h==`function`?h(e,t,n):h;return G({[`${le}-row-selected`]:Ge.has(De(e,t))},r)};_e.__PARENT_RENDER_ICON__=_e.expandIcon,_e.expandIcon=_e.expandIcon||C||eoe(oe),ye===`nest`&&_e.expandIconColumnIndex===void 0?_e.expandIconColumnIndex=+!!fe:_e.expandIconColumnIndex>0&&fe&&--_e.expandIconColumnIndex,typeof _e.indentSize!=`number`&&(_e.indentSize=Ys(D)?D:15);let qe=v.useCallback(e=>Be(We(Ie(je(e)))),[je,Ie,We]),Je,Ye;if(f!==!1&&Ve?.total){let e;e=Ve.size?Ve.size:ne===`small`||ne===`medium`?`small`:void 0;let t=(t=`end`)=>v.createElement(Db,{...Ve,classNames:ie.pagination,styles:ae.pagination,className:G(`${le}-pagination ${le}-pagination-${t}`,Ve.className),size:e}),{placement:n,position:r}=Ve,i=n??r,a=e=>{let t=e.toLowerCase();return t.includes(`center`)?`center`:t.includes(`left`)||t.includes(`start`)?`start`:`end`};if(Array.isArray(i)){let[e,n]=[`top`,`bottom`].map(e=>i.find(t=>t.includes(e))),r=i.every(e=>`${e}`==`none`);!e&&!n&&!r&&(Ye=t()),e&&(Je=t(a(e))),n&&(Ye=t(a(n)))}else Ye=t()}let Xe=v.useMemo(()=>{if(typeof S==`boolean`)return{spinning:S};if(Zs(S))return{spinning:!0,...S}},[S]),Ze=G(ge,pe,`${le}-wrapper`,U,{[`${le}-wrapper-rtl`]:B===`rtl`},r,i,ie.root,me),Qe={...ae.root,...ee,...a},et=v.useMemo(()=>Xe?.spinning&&ce===zC?null:A?.emptyText===void 0?V?.(`Table`)||v.createElement(Ah,{componentName:`Table`}):A.emptyText,[Xe?.spinning,ce,A?.emptyText,V]),tt=M?vC:_C,rt={},it=v.useMemo(()=>{let{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:i,paddingSM:a}=de,o=Math.floor(e*t);switch(ne){case`medium`:return a*2+o+n;case`small`:return i*2+o+n;default:return r*2+o+n}},[de,ne]);return M&&(rt.listItemHeight=it),v.createElement(`div`,{ref:Ce,className:Ze,style:Qe},v.createElement(Ib,{spinning:!1,...Xe},Je,v.createElement(tt,{...rt,...I,scroll:Ee,classNames:ie,styles:ae,ref:we,columns:F,direction:B,expandable:_e,prefixCls:le,className:G({[`${le}-medium`]:ne===`medium`,[`${le}-small`]:ne===`small`,[`${le}-bordered`]:l,[`${le}-empty`]:ce.length===0},ge,pe,me),data:Ue,rowKey:De,rowClassName:Ke,emptyText:et,internalHooks:Vb,internalRefs:xe,transformColumns:qe,getContainerWidth:Se,measureRowRender:e=>v.createElement(fg.Provider,{value:!0},v.createElement(lu,{getPopupContainer:e=>e},e))}),Ye))}),VC=v.forwardRef((e,t)=>{let n=v.useRef(0);return n.current+=1,v.createElement(BC,{...e,ref:t,_renderTimes:n.current})});VC.SELECTION_COLUMN=nS,VC.EXPAND_COLUMN=Bb,VC.SELECTION_ALL=rS,VC.SELECTION_INVERT=iS,VC.SELECTION_NONE=aS,VC.Column=Gae,VC.ColumnGroup=Kae,VC.Summary=sx;var HC=VC,UC=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...Va(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${K(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},WC=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return li(e,{tagFontSize:i,tagLineHeight:K(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},GC=e=>{let t=Xd(new Wd(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new ji(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},KC=Xa(`Tag`,e=>UC(WC(e)),GC),qC=v.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,disabled:u,...d}=e,{getPrefixCls:f,tag:p}=v.useContext($e),m=v.useContext(Xl),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[y,b]=KC(_),x=G(_,`${_}-checkable`,{[`${_}-checkable-checked`]:a,[`${_}-checkable-disabled`]:h},p?.className,i,y,b);return v.createElement(`span`,{...d,ref:t,style:{...r,...p?.style},className:x,onClick:g},s,v.createElement(`span`,null,o))}),JC=v.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m,...h}=e,{getPrefixCls:g,direction:_,className:y,style:b,classNames:x,styles:S}=nt(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[T,D]=KC(C,jc(C)),[O,k]=mc([x,s],[S,c],{props:e}),A=(0,v.useMemo)(()=>Array.isArray(u)?u.map(e=>Zs(e)?e:{value:e,label:e}):[],[u]),[j,M]=E(f,d),N=(e,t)=>{let n=null;if(m){let r=j||[];n=e?[].concat(We(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;M(n),p?.(n)},P=v.useRef(null);(0,v.useImperativeHandle)(t,()=>({nativeElement:P.current}));let F=Ts(h,{aria:!0,data:!0});return v.createElement(`div`,{...F,className:G(w,y,i,{[`${w}-disabled`]:l,[`${w}-rtl`]:_===`rtl`},T,D,a,O.root),style:{...b,...k.root,...o},id:n,ref:P},A.map(e=>v.createElement(qC,{key:e.value,className:G(`${w}-item`,O.item),style:k.item,checked:m?(j||[]).includes(e.value):j===e.value,onChange:t=>N(t,e),disabled:l},e.label)))});function YC(e,t){let{color:n,variant:r,bordered:i}=e;return v.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n,s=hg(n),c=Kte(n),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new ji(o).toHsl();e.l=.95,l.backgroundColor=new ji(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var XC=e=>eo(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),ZC=Qa([`Tag`,`preset`],e=>XC(WC(e)),GC);function QC(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var $C=(e,t,n)=>{let r=QC(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},ew=Qa([`Tag`,`status`],e=>{let t=WC(e);return[$C(t,`success`,`Success`),$C(t,`processing`,`Info`),$C(t,`error`,`Error`),$C(t,`warning`,`Warning`)]},GC),tw=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:m,styles:h,classNames:g,..._}=e,{getPrefixCls:y,direction:b,className:x,variant:S,style:C,classNames:w,styles:T}=nt(`tag`),[E,D,O,k,A]=YC(e,S),j=O||k,M=v.useContext(Xl),N=f??M,{tag:P}=v.useContext($e),[F,I]=v.useState(!0),L=he(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=mc([w,g],[T,h],{props:R}),V=v.useMemo(()=>{let e={...B.root,...C,...a};return N||(e={...A,...e}),e},[B.root,C,a,A,N]),H=y(`tag`,n),[U,ee]=KC(H),te=G(H,x,z.root,`${H}-${E}`,{[`${H}-${D}`]:j,[`${H}-hidden`]:!F,[`${H}-rtl`]:b===`rtl`,[`${H}-disabled`]:N},r,i,U,ee),W=e=>{N||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&I(!1))},[,ne]=oc(ec(e),ec(P),{closable:!1,closeIconRender:e=>Wl(e,v.createElement(`span`,{className:`${H}-close-icon`,onClick:W},e),e=>({onClick:t=>{e?.onClick?.(t),W(t)},className:G(e?.className,`${H}-close-icon`)}))}),re=typeof _.onClick==`function`||o&&o.type===`a`,ie=Gl(s,{className:G(v.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),ae=ie?v.createElement(v.Fragment,null,ie,o&&v.createElement(`span`,{className:z.content,style:B.content},o)):o,oe=p?`a`:`span`,se=v.createElement(oe,{...L,ref:t,className:te,style:V,href:N?void 0:p,target:m,onClick:N?void 0:L.onClick,...p&&N?{"aria-disabled":!0}:{}},ae,ne,O&&v.createElement(ZC,{key:`preset`,prefixCls:H}),k&&v.createElement(ew,{key:`status`,prefixCls:H}));return re?v.createElement(Mu,{component:`Tag`},se):se});tw.CheckableTag=qC,tw.CheckableTagGroup=JC;var nw={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z`}}]},name:`edit`,theme:`outlined`};function rw(){return rw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rw.apply(this,arguments)}var iw=v.forwardRef((e,t)=>v.createElement(Co,rw({},e,{ref:t,icon:nw}))),aw={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z`}}]},name:`enter`,theme:`outlined`};function ow(){return ow=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ow.apply(this,arguments)}var sw=v.forwardRef((e,t)=>v.createElement(Co,ow({},e,{ref:t,icon:aw}))),cw=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},lw=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
|
||
h${t}&,
|
||
div&-h${t},
|
||
div&-h${t} > textarea,
|
||
h${t}
|
||
`]=cw(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},uw=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...Ya(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},dw=e=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.06)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Ji[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:`0 1em`,padding:0,li:{marginInline:`20px 0`,marginBlock:0,paddingInline:`4px 0`,paddingBlock:0}},ul:{listStyleType:`circle`,ul:{listStyleType:`disc`}},ol:{listStyleType:`decimal`},"pre, blockquote":{margin:`1em 0`},pre:{padding:`0.4em 0.6em`,whiteSpace:`pre-wrap`,wordWrap:`break-word`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85}}),fw=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},pw=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),mw=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"a&, span&":{verticalAlign:`bottom`},"> code":{paddingBlock:0,maxWidth:`calc(100% - 1.2em)`,display:`inline-block`,overflow:`hidden`,textOverflow:`ellipsis`,verticalAlign:`bottom`,boxSizing:`content-box`}},"&-ellipsis-multiple-line":{display:`-webkit-box`,overflow:`hidden`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`}}),hw=Xa(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...lw(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...dw(e),...uw(e),[`${t}-actions`]:{display:`inline`},[`
|
||
${t}-expand,
|
||
${t}-collapse,
|
||
${t}-edit,
|
||
${t}-copy
|
||
`]:{...Ya(e),marginInlineStart:e.marginXXS},...fw(e),...pw(e),...mw(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),gw=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:c,onSave:l,onCancel:u,onEnd:d,component:f,enterIcon:p=v.createElement(sw,null)}=e,m=v.useRef(null),h=v.useRef(!1),g=v.useRef(null),[_,y]=v.useState(c);v.useEffect(()=>{y(c)},[c]),v.useEffect(()=>{if(m.current?.resizableTextArea){let{textArea:e}=m.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let b=({target:e})=>{y(e.value.replace(/[\n\r]/g,``))},x=()=>{h.current=!0},S=()=>{h.current=!1},C=({keyCode:e})=>{h.current||(g.current=e)},w=()=>{l(_.trim())},T=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{g.current!==e||h.current||t||n||r||i||(e===uu.ENTER?(w(),d?.()):e===uu.ESC&&u())},E=()=>{w()},[D,O]=hw(t),k=G(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${f}`]:!!f},r,D,O);return v.createElement(`div`,{className:k,style:i},v.createElement(Vy,{ref:m,maxLength:o,value:_,onChange:b,onKeyDown:C,onKeyUp:T,onCompositionStart:x,onCompositionEnd:S,onBlur:E,"aria-label":n,rows:1,autoSize:s}),p===null?null:Gl(p,{className:`${t}-edit-content-confirm`}))},_w=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},vw=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function yw(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await vw(e,n)||_w(e,n))}var Hoe=({copyConfig:e,children:t})=>{let[n,r]=v.useState(!1),[i,a]=v.useState(!1),o=v.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),v.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:b(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await yw((typeof e.text==`function`?await e.text():e.text)||Lb(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}};function bw(e,t){return v.useMemo(()=>{let n=!!e;return[n,{...t,...n&&typeof e==`object`?e:null}]},[e])}var Uoe=e=>{let t=(0,v.useRef)(void 0);return(0,v.useEffect)(()=>{t.current=e}),t.current},Woe=(e,t,n)=>(0,v.useMemo)(()=>e===!0?{title:t??n}:(0,v.isValidElement)(e)?{title:e}:Zs(e)?{title:t??n,...e}:{title:e},[e,t,n]),xw=v.forwardRef((e,t)=>{let{prefixCls:n,component:r=`article`,className:i,rootClassName:a,children:o,direction:s,style:c,...l}=e,{getPrefixCls:u,direction:d,className:f,style:p}=nt(`typography`),m=s??d,h=u(`typography`,n),[g,_]=hw(h),y=G(h,f,{[`${h}-rtl`]:m===`rtl`},i,a,g,_),b={...p,...c};return v.createElement(r,{className:y,style:b,ref:t,...l},o)}),Goe={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z`}}]},name:`copy`,theme:`outlined`};function Sw(){return Sw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sw.apply(this,arguments)}var Koe=v.forwardRef((e,t)=>v.createElement(Co,Sw({},e,{ref:t,icon:Goe}))),Cw=e=>e===!1?[!1,!1]:Lb(e);function ww(e,t,n){return e===!0||e===void 0?t:e||n&&t}function qoe(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var Tw=e=>[`string`,`number`].includes(typeof e),Joe=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l}=e,u=Cw(a),d=Cw(o),{copied:f,copy:p}=r??{},m=n?f:p,h=ww(u[+!!n],m),g=typeof h==`string`?h:m;return v.createElement(_g,{title:h},v.createElement(`button`,{type:`button`,className:G(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":g,tabIndex:s},n?ww(d[1],v.createElement(Vh,null),!0):ww(d[0],l?v.createElement(pu,null):v.createElement(Koe,null),!0)))},Ew=v.forwardRef(({style:e,children:t},n)=>{let r=v.useRef(null);return v.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),v.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),Yoe=e=>e.reduce((e,t)=>e+(Tw(t)?String(t).length:1),0);function Dw(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=Tw(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var Ow=0,kw=1,Aw=2,jw=3,Mw=4,Nw={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function Xoe(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:c}=e,l=v.useMemo(()=>ge(r),[r]),u=v.useMemo(()=>Yoe(l),[r]),d=v.useMemo(()=>i(l,!1),[r]),[f,p]=v.useState(null),m=v.useRef(null),h=v.useRef(null),g=v.useRef(null),_=v.useRef(null),y=v.useRef(null),[b,x]=v.useState(!1),[S,w]=v.useState(Ow),[T,E]=v.useState(0),[D,O]=v.useState(null);C(()=>{w(t&&n&&u?kw:Ow)},[n,r,a,t,l]),C(()=>{if(S===kw)w(Aw),O(h.current&&getComputedStyle(h.current).whiteSpace);else if(S===Aw){let e=!!g.current?.isExceed();w(e?jw:Mw),p(e?[0,u]:null),x(e);let t=g.current?.getHeight()||0,n=a===1?0:_.current?.getHeight()||0,r=y.current?.getHeight()||0;E(Math.max(t,n+r)+1),c(e)}},[S]);let k=f?Math.ceil((f[0]+f[1])/2):0;C(()=>{let[e,t]=f||[0,0];if(e!==t){let n=(m.current?.getHeight()||0)>T,r=k;t-e===1&&(r=n?e:t),p(n?[e,r]:[r,t])}},[f,k]);let A=v.useMemo(()=>{if(!t)return i(l,!1);if(S!==jw||!f||f[0]!==f[1]){let e=i(l,!1);return[Mw,Ow].includes(S)?e:v.createElement(`span`,{style:{...Nw,WebkitLineClamp:a}},e)}return i(o?l:Dw(l,f[0]),b)},[o,S,f,l].concat(We(s))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return v.createElement(v.Fragment,null,A,S===Aw&&v.createElement(v.Fragment,null,v.createElement(Ew,{style:{...j,...Nw,WebkitLineClamp:a},ref:g},d),v.createElement(Ew,{style:{...j,...Nw,WebkitLineClamp:a-1},ref:_},d),v.createElement(Ew,{style:{...j,...Nw,WebkitLineClamp:1},ref:y},i([],!0))),S===jw&&f&&f[0]!==f[1]&&v.createElement(Ew,{style:{...j,top:400},ref:m},i(Dw(l,k),!0)),S===kw&&v.createElement(`span`,{style:{whiteSpace:`inherit`},ref:h}))}var Zoe=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return v.createElement(_g,{open:a,...i},r)};function Qoe({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=v.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var $oe=`...`,Pw=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],Fw=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,type:a,disabled:o,children:s,ellipsis:c,editable:l,copyable:u,component:d,title:f,onMouseEnter:p,onMouseLeave:m,...h}=e,{getPrefixCls:g,direction:_}=v.useContext($e),[y]=Ws(`Text`),b=v.useRef(null),x=v.useRef(null),S=g(`typography`,n),w=he(h,Pw),[T,D]=bw(l),[O,k]=E(!1,D.editing),{triggerType:A=[`icon`]}=D,j=e=>{e&&D.onStart?.(),k(e)},M=Uoe(O);C(()=>{!O&&M&&x.current?.focus()},[O]);let N=e=>{e?.preventDefault(),j(!0)},P=e=>{D.onChange?.(e),j(!1)},F=()=>{D.onCancel?.(),j(!1)},[I,R]=bw(u),{copied:z,copyLoading:B,onClick:V}=Hoe({copyConfig:R,children:s}),[H,U]=v.useState(!1),[ee,te]=v.useState(!1),[W,ne]=v.useState(!1),[re,ie]=v.useState(!1),[ae,oe]=v.useState(!0),[se,ce]=bw(c,{expandable:!1,symbol:e=>e?y?.collapse:y?.expand}),[le,ue]=E(ce.defaultExpanded||!1,ce.expanded),de=se&&(!le||ce.expandable===`collapsible`),{rows:fe=1}=ce,pe=v.useMemo(()=>de&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||T||I),[de,ce,T,I]);C(()=>{se&&!pe&&(U(om(`webkitLineClamp`)),te(om(`textOverflow`)))},[pe,se]);let[me,_e]=v.useState(de),ve=v.useMemo(()=>pe?!1:fe===1?ee:H,[pe,ee,H]);C(()=>{_e(ve&&de)},[ve,de]);let ye=Woe(ce.tooltip,D.text,s),be=me&&!!ye.title,xe=de&&(me?be&&re:W),Se=de&&fe===1&&me,Ce=de&&fe>1&&me,we=(e,t)=>{ue(t.expanded),ce.onExpand?.(e,t)},[Te,Ee]=v.useState(0),[De,Oe]=v.useState(!1),[ke,Ae]=v.useState(!1),je=({offsetWidth:e})=>{Ee(e)},Me=e=>{ne(e),W!==e&&ce.onEllipsis?.(e)};v.useEffect(()=>{let e=b.current;if(se&&be&&e){let t=qoe(e);re!==t&&ie(t)}},[se,be,s,Ce,ae,Te]),v.useEffect(()=>{let e=b.current;if(typeof IntersectionObserver>`u`||!e||!be||!de)return;let t=new IntersectionObserver(()=>{oe(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[be,de]);let Ne=v.useMemo(()=>{if(!(!se||me))return[D.text,s,f,ye.title].find(Tw)},[se,me,f,ye.title,xe]);if(O)return v.createElement(gw,{value:D.text??(typeof s==`string`?s:``),onSave:P,onCancel:F,onEnd:D.onEnd,prefixCls:S,className:r,style:i,direction:_,component:d,maxLength:D.maxLength,autoSize:D.autoSize,enterIcon:D.enterIcon});let Pe=()=>{let{expandable:e,symbol:t}=ce;return e?v.createElement(`button`,{type:`button`,key:`expand`,className:`${S}-${le?`collapse`:`expand`}`,onClick:e=>we(e,{expanded:!le}),"aria-label":le?y.collapse:y?.expand},typeof t==`function`?t(le):t):null},Fe=()=>{if(!T)return;let{icon:e,tooltip:t,tabIndex:n}=D,r=ge(t)[0]||y?.edit,i=typeof r==`string`?r:``;return A.includes(`icon`)?v.createElement(_g,{key:`edit`,title:t===!1?``:r},v.createElement(`button`,{type:`button`,ref:x,className:`${S}-edit`,onClick:N,"aria-label":i,tabIndex:n},e||v.createElement(iw,{role:`button`}))):null},Ie=()=>I?v.createElement(Joe,{key:`copy`,...R,prefixCls:S,copied:z,locale:y,onCopy:V,loading:B,iconOnly:!Js(s)}):null,Re=e=>{let t=e&&Pe(),n=Fe(),r=Ie();return!t&&!n&&!r?null:v.createElement(`span`,{key:`operations`,className:`${S}-actions`,onMouseEnter:()=>Oe(!0),onMouseLeave:()=>Oe(!1)},t,n,r)},ze=e=>[e&&!le&&v.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},$oe),ce.suffix,Re(e)];return v.createElement(Le,{onResize:je,disabled:!de},c=>v.createElement(Zoe,{tooltipProps:ye,enableEllipsis:de,isEllipsis:xe,open:ke&&!De},v.createElement(xw,{onMouseEnter:e=>{Ae(!0),p?.(e)},onMouseLeave:e=>{Ae(!1),m?.(e)},className:G({[`${S}-${a}`]:a,[`${S}-disabled`]:o,[`${S}-ellipsis`]:se,[`${S}-ellipsis-single-line`]:Se,[`${S}-ellipsis-multiple-line`]:Ce,[`${S}-link`]:d===`a`},r),prefixCls:n,style:{...i,WebkitLineClamp:Ce?fe:void 0},component:d,ref:L(c,b,t),direction:_,onClick:A.includes(`text`)?N:void 0,"aria-label":Ne?.toString(),title:f,...w},v.createElement(Xoe,{enableMeasure:de&&!me,text:s,rows:fe,width:Te,onEllipsis:Me,expanded:le,miscDeps:[z,le,B,T,I,y].concat(We(Pw.map(t=>e[t])))},(t,n)=>Qoe(e,v.createElement(v.Fragment,null,t.length>0&&n&&!le&&Ne?v.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,ze(n)))))))}),ese=v.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return v.createElement(Fw,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),tse=v.forwardRef((e,t)=>{let{children:n,...r}=e;return v.createElement(Fw,{ref:t,...r,component:`div`},n)}),nse=v.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=v.useMemo(()=>Zs(n)?he(n,[`expandable`,`rows`]):n,[n]);return v.createElement(Fw,{ref:t,...i,ellipsis:a,component:`span`},r)}),rse=[1,2,3,4,5],ise=v.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=rse.includes(n)?`h${n}`:`h1`;return v.createElement(Fw,{ref:t,...i,component:a},r)}),Iw=xw;Iw.Text=nse,Iw.Link=ese,Iw.Title=ise,Iw.Paragraph=tse;var ase=`modulepreload`,ose=function(e){return`/`+e},Lw={},sse=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=ose(t,n),t in Lw)return;Lw[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:ase,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Rw=`popstate`;function zw(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function cse(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Uw(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:Ww(t)}return use(t,n,null,e)}function Bw(e,t){if(e===!1||e==null)throw Error(t)}function Vw(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function lse(){return Math.random().toString(36).substring(2,10)}function Hw(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Uw(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Gw(t):t,state:n,key:t&&t.key||r||lse(),mask:i}}function Ww({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function Gw(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function use(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=zw(e)?e:Uw(h.location,e,t);n&&n(r,e),l=u()+1;let d=Hw(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=zw(e)?e:Uw(h.location,e,t);n&&n(r,e),l=u();let i=Hw(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return dse(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Rw,d),c=e,()=>{i.removeEventListener(Rw,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function dse(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),Bw(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:Ww(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function Kw(e,t,n=`/`){return fse(e,t,n,!1)}function fse(e,t,n,r,i){let a=Zw((typeof t==`string`?Gw(t):t).pathname||`/`,n);if(a==null)return null;let o=i??mse(e),s=null,c=Ese(a);for(let e=0;s==null&&e<o.length;++e)s=wse(o[e],c,r);return s}function pse(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function mse(e){let t=qw(e);return hse(t),t}function qw(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;Bw(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=rT([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(Bw(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),qw(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:Sse(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Jw(e.path))a(e,t,!0,n)}),t}function Jw(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Jw(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function hse(e){e.sort((e,t)=>e.score===t.score?Cse(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var gse=/^:[\w-]+$/,_se=3,vse=2,yse=1,bse=10,xse=-2,Yw=e=>e===`*`;function Sse(e,t){let n=e.split(`/`),r=n.length;return n.some(Yw)&&(r+=xse),t&&(r+=vse),n.filter(e=>!Yw(e)).reduce((e,t)=>e+(gse.test(t)?_se:t===``?yse:bse),r)}function Cse(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function wse(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=Xw({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=Xw({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:rT([a,u.pathname]),pathnameBase:Ase(rT([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=rT([a,u.pathnameBase]))}return o}function Xw(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Tse(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Tse(e,t=!1,n=!0){Vw(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Ese(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return Vw(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Zw(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var Dse=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ose(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Gw(e):e,a;return n?(n=nT(n),a=n.startsWith(`/`)?Qw(n.substring(1),`/`):Qw(n,t)):a=t,{pathname:a,search:jse(r),hash:Mse(i)}}function Qw(e,t){let n=iT(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function $w(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function kse(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function eT(e){let t=kse(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function tT(e,t,n,r=!1){let i;typeof e==`string`?i=Gw(e):(i={...e},Bw(!i.pathname||!i.pathname.includes(`?`),$w(`?`,`pathname`,`search`,i)),Bw(!i.pathname||!i.pathname.includes(`#`),$w(`#`,`pathname`,`hash`,i)),Bw(!i.search||!i.search.includes(`#`),$w(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Ose(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var nT=e=>e.replace(/\/\/+/g,`/`),rT=e=>nT(e.join(`/`)),iT=e=>e.replace(/\/+$/,``),Ase=e=>iT(e).replace(/^\/*/,`/`),jse=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Mse=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Nse=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Pse(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Fse(e){return rT(e.map(e=>e.route.path).filter(Boolean))||`/`}var aT=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function oT(e,t){let n=e;if(typeof n!=`string`||!Dse.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(aT)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=Zw(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{Vw(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var sT=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(sT);var Ise=[`GET`,...sT];new Set(Ise);var cT=v.createContext(null);cT.displayName=`DataRouter`;var lT=v.createContext(null);lT.displayName=`DataRouterState`;var uT=v.createContext(!1);function Lse(){return v.useContext(uT)}var dT=v.createContext({isTransitioning:!1});dT.displayName=`ViewTransition`;var Rse=v.createContext(new Map);Rse.displayName=`Fetchers`;var zse=v.createContext(null);zse.displayName=`Await`;var fT=v.createContext(null);fT.displayName=`Navigation`;var pT=v.createContext(null);pT.displayName=`Location`;var mT=v.createContext({outlet:null,matches:[],isDataRoute:!1});mT.displayName=`Route`;var hT=v.createContext(null);hT.displayName=`RouteError`;var gT=`REACT_ROUTER_ERROR`,Bse=`REDIRECT`,Vse=`ROUTE_ERROR_RESPONSE`;function Hse(e){if(e.startsWith(`${gT}:${Bse}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Use(e){if(e.startsWith(`${gT}:${Vse}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Nse(t.status,t.statusText,t.data)}catch{}}function Wse(e,{relative:t}={}){Bw(_T(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=v.useContext(fT),{hash:i,pathname:a,search:o}=ST(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:rT([n,a])),r.createHref({pathname:s,search:o,hash:i})}function _T(){return v.useContext(pT)!=null}function vT(){return Bw(_T(),`useLocation() may be used only in the context of a <Router> component.`),v.useContext(pT).location}var yT=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function bT(e){v.useContext(fT).static||v.useLayoutEffect(e)}function xT(){let{isDataRoute:e}=v.useContext(mT);return e?rce():Gse()}function Gse(){Bw(_T(),`useNavigate() may be used only in the context of a <Router> component.`);let e=v.useContext(cT),{basename:t,navigator:n}=v.useContext(fT),{matches:r}=v.useContext(mT),{pathname:i}=vT(),a=JSON.stringify(eT(r)),o=v.useRef(!1);return bT(()=>{o.current=!0}),v.useCallback((r,s={})=>{if(Vw(o.current,yT),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=tT(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:rT([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}v.createContext(null);function ST(e,{relative:t}={}){let{matches:n}=v.useContext(mT),{pathname:r}=vT(),i=JSON.stringify(eT(n));return v.useMemo(()=>tT(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Kse(e,t){return CT(e,t)}function CT(e,t,n){Bw(_T(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=v.useContext(fT),{matches:i}=v.useContext(mT),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;jT(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
||
|
||
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=vT(),d;if(t){let e=typeof t==`string`?Gw(t):t;Bw(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Kw(e,{pathname:p});Vw(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Vw(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Zse(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:rT([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:rT([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?v.createElement(pT.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function qse(){let e=nce(),t=Pse(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=v.createElement(v.Fragment,null,v.createElement(`p`,null,`💿 Hey developer 👋`),v.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,v.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,v.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),v.createElement(v.Fragment,null,v.createElement(`h2`,null,`Unexpected Application Error!`),v.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?v.createElement(`pre`,{style:i},n):null,o)}var Jse=v.createElement(qse,null),wT=class extends v.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,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Use(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:v.createElement(mT.Provider,{value:this.props.routeContext},v.createElement(hT.Provider,{value:e,children:this.props.component}));return this.context?v.createElement(Yse,{error:e},t):t}};wT.contextType=uT;var TT=new WeakMap;function Yse({children:e,error:t}){let{basename:n}=v.useContext(fT);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Hse(t.digest);if(e){let r=TT.get(t);if(r)throw r;let i=oT(e.location,n);if(aT&&!TT.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw TT.set(t,n),n}return v.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Xse({routeContext:e,match:t,children:n}){let r=v.useContext(cT);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(mT.Provider,{value:e},n)}function Zse(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);Bw(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Fse(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Jse,o&&(s<0&&c===0?(jT(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?v.createElement(n.route.Component,null):n.route.element?n.route.element:e,v.createElement(Xse,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?v.createElement(wT,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function ET(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qse(e){let t=v.useContext(cT);return Bw(t,ET(e)),t}function DT(e){let t=v.useContext(lT);return Bw(t,ET(e)),t}function $se(e){let t=v.useContext(mT);return Bw(t,ET(e)),t}function OT(e){let t=$se(e),n=t.matches[t.matches.length-1];return Bw(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ece(){return OT(`useRouteId`)}function tce(){return DT(`useNavigation`).navigation}function kT(){let{matches:e,loaderData:t}=DT(`useMatches`);return v.useMemo(()=>e.map(e=>pse(e,t)),[e,t])}function nce(){let e=v.useContext(hT),t=DT(`useRouteError`),n=OT(`useRouteError`);return e===void 0?t.errors?.[n]:e}function rce(){let{router:e}=Qse(`useNavigate`),t=OT(`useNavigate`),n=v.useRef(!1);return bT(()=>{n.current=!0}),v.useCallback(async(r,i={})=>{Vw(n.current,yT),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var AT={};function jT(e,t,n){!t&&!AT[e]&&(AT[e]=!0,Vw(!1,n))}v.memo(ice);function ice({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return CT(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function MT(e){Bw(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function NT({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){Bw(!_T(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=v.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Gw(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=v.useMemo(()=>{let e=Zw(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return Vw(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:v.createElement(fT.Provider,{value:c},v.createElement(pT.Provider,{children:t,value:h}))}function ace({children:e,location:t}){return Kse(PT(e),t)}v.Component;function PT(e,t=[]){let n=[];return v.Children.forEach(e,(e,r)=>{if(!v.isValidElement(e))return;let i=[...t,r];if(e.type===v.Fragment){n.push.apply(n,PT(e.props.children,i));return}Bw(e.type===MT,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Bw(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=PT(e.props.children,i)),n.push(a)}),n}var FT=`get`,IT=`application/x-www-form-urlencoded`;function LT(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function oce(e){return LT(e)&&e.tagName.toLowerCase()===`button`}function sce(e){return LT(e)&&e.tagName.toLowerCase()===`form`}function cce(e){return LT(e)&&e.tagName.toLowerCase()===`input`}function lce(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uce(e,t){return e.button===0&&(!t||t===`_self`)&&!lce(e)}var RT=null;function dce(){if(RT===null)try{new FormData(document.createElement(`form`),0),RT=!1}catch{RT=!0}return RT}var fce=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function zT(e){return e!=null&&!fce.has(e)?(Vw(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${IT}"`),null):e}function pce(e,t){let n,r,i,a,o;if(sce(e)){let o=e.getAttribute(`action`);r=o?Zw(o,t):null,n=e.getAttribute(`method`)||FT,i=zT(e.getAttribute(`enctype`))||IT,a=new FormData(e)}else if(oce(e)||cce(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Zw(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||FT,i=zT(e.getAttribute(`formenctype`))||zT(o.getAttribute(`enctype`))||IT,a=new FormData(o,e),!dce()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(LT(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=FT,r=null,i=IT,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var mce={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},hce=/[&><\u2028\u2029]/g;function BT(e){return e.replace(hce,e=>mce[e])}function VT(e,t){if(e===!1||e==null)throw Error(t)}function HT(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&Zw(i.pathname,t)===`/`?i.pathname=`${iT(t)}/_root.${r}`:i.pathname=`${iT(i.pathname)}.${r}`,i}async function gce(e,t){if(e.id in t)return t[e.id];try{let n=await sse(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function _ce(e){return e!=null&&typeof e.page==`string`}function vce(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function yce(e,t,n){return Cce((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await gce(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(vce).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function UT(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function bce(e,t,{includeHydrateFallback:n}={}){return xce(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function xce(e){return[...new Set(e)]}function Sce(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Cce(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!_ce(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Sce(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function WT(){let e=v.useContext(cT);return VT(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function wce(){let e=v.useContext(lT);return VT(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var GT=v.createContext(void 0);GT.displayName=`FrameworkContext`;function KT(){let e=v.useContext(GT);return VT(e,`You must render this element inside a <HydratedRouter> element`),e}function Tce(e,t){let n=v.useContext(GT),[r,i]=v.useState(!1),[a,o]=v.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=v.useRef(null);v.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),v.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:qT(s,p),onBlur:qT(c,m),onMouseEnter:qT(l,p),onMouseLeave:qT(u,m),onTouchStart:qT(d,p)}]:[a,f,{}]:[!1,f,{}]}function qT(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ece({page:e,...t}){let n=Lse(),{router:r}=WT(),i=v.useMemo(()=>Kw(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?v.createElement(Oce,{page:e,matches:i,...t}):v.createElement(kce,{page:e,matches:i,...t}):null}function Dce(e){let{manifest:t,routeModules:n}=KT(),[r,i]=v.useState([]);return v.useEffect(()=>{let r=!1;return yce(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Oce({page:e,matches:t,...n}){let r=vT(),{future:i}=KT(),{basename:a}=WT(),o=v.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=HT(e,a,i.unstable_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return v.createElement(v.Fragment,null,o.map(e=>v.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function kce({page:e,matches:t,...n}){let r=vT(),{future:i,manifest:a,routeModules:o}=KT(),{basename:s}=WT(),{loaderData:c,matches:l}=wce(),u=v.useMemo(()=>UT(e,t,l,a,r,`data`),[e,t,l,a,r]),d=v.useMemo(()=>UT(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=v.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=HT(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=v.useMemo(()=>bce(d,a),[d,a]),m=Dce(d);return v.createElement(v.Fragment,null,f.map(e=>v.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>v.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>v.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Ace(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}v.Component;var jce=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{jce&&(window.__reactRouterVersion=`7.15.0`)}catch{}function Mce({basename:e,children:t,useTransitions:n,window:r}){let i=v.useRef();i.current??=cse({window:r,v5Compat:!0});let a=i.current,[o,s]=v.useState({action:a.action,location:a.location}),c=v.useCallback(e=>{n===!1?s(e):v.startTransition(()=>s(e))},[n]);return v.useLayoutEffect(()=>a.listen(c),[a,c]),v.createElement(NT,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function Nce({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=v.useState({action:n.action,location:n.location}),o=v.useCallback(e=>{r===!1?a(e):v.startTransition(()=>a(e))},[r]);return v.useLayoutEffect(()=>n.listen(o),[n,o]),v.createElement(NT,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}Nce.displayName=`unstable_HistoryRouter`;var JT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,YT=v.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=v.useContext(fT),y=typeof l==`string`&&JT.test(l),b=oT(l,h);l=b.to;let x=Wse(l,{relative:r}),S=vT(),C=null;if(o){let e=tT(o,[],S.mask?S.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:rT([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=Tce(n,p),D=Rce(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(b.isExternal||i),A=v.createElement(`a`,{...p,...E,href:(k?C:void 0)||b.absoluteURL||x,onClick:k?O:e,ref:Ace(m,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?v.createElement(v.Fragment,null,A,v.createElement(Ece,{page:x})):A});YT.displayName=`Link`;var Pce=v.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=ST(a,{relative:c.relative}),d=vT(),f=v.useContext(lT),{navigator:p,basename:m}=v.useContext(fT),h=f!=null&&Gce(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&m&&(y=Zw(y,m)||y);let b=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,x=_===g||!r&&_.startsWith(g)&&_.charAt(b)===`/`,S=y!=null&&(y===g||!r&&y.startsWith(g)&&y.charAt(g.length)===`/`),C={isActive:x,isPending:S,isTransitioning:h},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return v.createElement(YT,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Pce.displayName=`NavLink`;var Fce=v.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=FT,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=v.useContext(fT),g=Vce(),_=Hce(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&JT.test(s);return v.createElement(`form`,{ref:m,method:y,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?v.startTransition(()=>p()):p()},...p,"data-discover":!b&&e===`render`?`true`:void 0})});Fce.displayName=`Form`;function Ice({getKey:e,storageKey:t,...n}){let r=v.useContext(GT),{basename:i}=v.useContext(fT),a=vT(),o=kT();Uce({getKey:e,storageKey:t});let s=v.useMemo(()=>{if(!r||!e)return null;let t=eE(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return v.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${BT(JSON.stringify(t||QT))}, ${BT(JSON.stringify(s))})`}})}Ice.displayName=`ScrollRestoration`;function XT(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ZT(e){let t=v.useContext(cT);return Bw(t,XT(e)),t}function Lce(e){let t=v.useContext(lT);return Bw(t,XT(e)),t}function Rce(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=xT(),d=vT(),f=ST(e,{relative:o});return v.useCallback(p=>{if(uce(p,t)){p.preventDefault();let t=n===void 0?Ww(d)===Ww(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?v.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var zce=0,Bce=()=>`__${String(++zce)}__`;function Vce(){let{router:e}=ZT(`useSubmit`),{basename:t}=v.useContext(fT),n=ece(),r=e.fetch,i=e.navigate;return v.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=pce(e,t);a.navigate===!1?await r(a.fetcherKey||Bce(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Hce(e,{relative:t}={}){let{basename:n}=v.useContext(fT),r=v.useContext(mT);Bw(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...ST(e||`.`,{relative:t})},o=vT();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:rT([n,a.pathname])),Ww(a)}var QT=`react-router-scroll-positions`,$T={};function eE(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Zw(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Uce({getKey:e,storageKey:t}={}){let{router:n}=ZT(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=Lce(`useScrollRestoration`),{basename:a}=v.useContext(fT),o=vT(),s=kT(),c=tce();v.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Wce(v.useCallback(()=>{if(c.state===`idle`){let t=eE(o,s,a,e);$T[t]=window.scrollY}try{sessionStorage.setItem(t||QT,JSON.stringify($T))}catch(e){Vw(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(v.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||QT);e&&($T=JSON.parse(e))}catch{}},[t]),v.useLayoutEffect(()=>{let t=n?.enableScrollRestoration($T,()=>window.scrollY,e?(t,n)=>eE(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),v.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{Vw(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Wce(e,t){let{capture:n}=t||{};v.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Gce(e,{relative:t}={}){let n=v.useContext(dT);Bw(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ZT(`useViewTransitionState`),i=ST(e,{relative:t});if(!n.isTransitioning)return!1;let a=Zw(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Zw(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Xw(i.pathname,o)!=null||Xw(i.pathname,a)!=null}var tE=o(((e,t)=>{function n(e){return e&&e.__esModule?e:{default:e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})),Kce=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`}})),qce=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.commonLocale=void 0,e.commonLocale={yearFormat:`YYYY`,dayFormat:`D`,cellMeridiemFormat:`A`,monthBeforeYear:!0}})),Jce=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=qce();function n(e){"@babel/helpers - typeof";return n=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},n(e)}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return t=o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=s(e,`string`);return n(t)==`symbol`?t:String(t)}function s(e,t){if(n(e)!=`object`||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||`default`);if(n(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}e.default=i(i({},t.commonLocale),{},{locale:`zh_CN`,today:`今天`,now:`此刻`,backToToday:`返回今天`,ok:`确定`,timeSelect:`选择时间`,dateSelect:`选择日期`,weekSelect:`选择周`,clear:`清除`,week:`周`,month:`月`,year:`年`,previousMonth:`上个月 (翻页上键)`,nextMonth:`下个月 (翻页下键)`,monthSelect:`选择月份`,yearSelect:`选择年份`,decadeSelect:`选择年代`,previousYear:`上一年 (Control键加左方向键)`,nextYear:`下一年 (Control键加右方向键)`,previousDecade:`上一年代`,nextDecade:`下一年代`,previousCentury:`上一世纪`,nextCentury:`下一世纪`,yearFormat:`YYYY年`,cellDateFormat:`D`,monthBeforeYear:!1})})),nE=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default={placeholder:`请选择时间`,rangePlaceholder:[`开始时间`,`结束时间`]}})),rE=o((e=>{var t=tE().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(Jce()),r=t(nE()),i={lang:{placeholder:`请选择日期`,yearPlaceholder:`请选择年份`,quarterPlaceholder:`请选择季度`,monthPlaceholder:`请选择月份`,weekPlaceholder:`请选择周`,rangePlaceholder:[`开始日期`,`结束日期`],rangeYearPlaceholder:[`开始年份`,`结束年份`],rangeMonthPlaceholder:[`开始月份`,`结束月份`],rangeQuarterPlaceholder:[`开始季度`,`结束季度`],rangeWeekPlaceholder:[`开始周`,`结束周`],...n.default},timePickerLocale:{...r.default}};i.lang.ok=`确定`,e.default=i})),Yce=o((e=>{var t=tE().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0,e.default=t(rE()).default})),Xce=o((e=>{var t=tE().default;Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var n=t(Kce()),r=t(Yce()),i=t(rE()),a=t(nE()),o="${label}不是一个有效的${type}";e.default={locale:`zh-cn`,Pagination:n.default,DatePicker:i.default,TimePicker:a.default,Calendar:r.default,global:{placeholder:`请选择`,close:`关闭`,sortable:`可排序`},Table:{filterTitle:`筛选`,filterConfirm:`确定`,filterReset:`重置`,filterEmptyText:`无筛选项`,filterCheckAll:`全选`,filterSearchPlaceholder:`在筛选项中搜索`,emptyText:`暂无数据`,selectAll:`全选当页`,selectInvert:`反选当页`,selectNone:`清空所有`,selectionAll:`全选所有`,sortTitle:`排序`,expand:`展开行`,collapse:`关闭行`,triggerDesc:`点击降序`,triggerAsc:`点击升序`,cancelSort:`取消排序`},Modal:{okText:`确定`,cancelText:`取消`,justOkText:`知道了`},Tour:{Next:`下一步`,Previous:`上一步`,Finish:`结束导览`},Popconfirm:{cancelText:`取消`,okText:`确定`},Transfer:{titles:[``,``],searchPlaceholder:`请输入搜索内容`,itemUnit:`项`,itemsUnit:`项`,remove:`删除`,selectCurrent:`全选当页`,removeCurrent:`删除当页`,selectAll:`全选所有`,deselectAll:`取消全选`,removeAll:`删除全部`,selectInvert:`反选当页`},Upload:{uploading:`文件上传中`,removeFile:`删除文件`,uploadError:`上传错误`,previewFile:`预览文件`,downloadFile:`下载文件`},Empty:{description:`暂无数据`},Icon:{icon:`图标`},Text:{edit:`编辑`,copy:`复制`,copied:`复制成功`,expand:`展开`,collapse:`收起`},Form:{optional:`(可选)`,defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},QRCode:{expired:`二维码过期`,refresh:`点击刷新`,scanned:`已扫描`},ColorPicker:{presetEmpty:`暂无`,transparent:`无色`,singleColor:`单色`,gradientColor:`渐变色`}}})),Zce=o(((e,t)=>{t.exports=Xce()})),Qce={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z`}}]},name:`dashboard`,theme:`outlined`};function iE(){return iE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iE.apply(this,arguments)}var $ce=v.forwardRef((e,t)=>v.createElement(Co,iE({},e,{ref:t,icon:Qce}))),ele={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z`}}]},name:`dollar`,theme:`outlined`};function aE(){return aE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aE.apply(this,arguments)}var tle=v.forwardRef((e,t)=>v.createElement(Co,aE({},e,{ref:t,icon:ele}))),nle={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M925.9 804l-24-199.2c-.8-6.6-8.9-9.4-13.6-4.7L829 659.5 557.7 388.3c-6.3-6.2-16.4-6.2-22.6 0L433.3 490 156.6 213.3a8.03 8.03 0 00-11.3 0l-45 45.2a8.03 8.03 0 000 11.3L422 591.7c6.2 6.3 16.4 6.3 22.6 0L546.4 490l226.1 226-59.3 59.3a8.01 8.01 0 004.7 13.6l199.2 24c5.1.7 9.5-3.7 8.8-8.9z`}}]},name:`fall`,theme:`outlined`};function oE(){return oE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oE.apply(this,arguments)}var rle=v.forwardRef((e,t)=>v.createElement(Co,oE({},e,{ref:t,icon:nle}))),ile={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z`}}]},name:`line-chart`,theme:`outlined`};function sE(){return sE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sE.apply(this,arguments)}var cE=v.forwardRef((e,t)=>v.createElement(Co,sE({},e,{ref:t,icon:ile}))),ale={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 000 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0013.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z`}}]},name:`rise`,theme:`outlined`};function lE(){return lE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lE.apply(this,arguments)}var ole=v.forwardRef((e,t)=>v.createElement(Co,lE({},e,{ref:t,icon:ale}))),sle={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M904 747H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM165.7 621.8l39.7 39.5c3.1 3.1 8.2 3.1 11.3 0l234.7-233.9 97.6 97.3a32.11 32.11 0 0045.2 0l264.2-263.2c3.1-3.1 3.1-8.2 0-11.3l-39.7-39.6a8.03 8.03 0 00-11.3 0l-235.7 235-97.7-97.3a32.11 32.11 0 00-45.2 0L165.7 610.5a7.94 7.94 0 000 11.3z`}}]},name:`stock`,theme:`outlined`};function uE(){return uE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uE.apply(this,arguments)}var cle=v.forwardRef((e,t)=>v.createElement(Co,uE({},e,{ref:t,icon:sle}))),lle={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z`}}]},name:`thunderbolt`,theme:`outlined`};function dE(){return dE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dE.apply(this,arguments)}var ule=v.forwardRef((e,t)=>v.createElement(Co,dE({},e,{ref:t,icon:lle})));function fE(e,t){return function(){return e.apply(t,arguments)}}var{toString:dle}=Object.prototype,{getPrototypeOf:pE}=Object,{iterator:mE,toStringTag:hE}=Symbol,gE=(e=>t=>{let n=dle.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_E=e=>(e=e.toLowerCase(),t=>gE(t)===e),vE=e=>t=>typeof t===e,{isArray:yE}=Array,bE=vE(`undefined`);function xE(e){return e!==null&&!bE(e)&&e.constructor!==null&&!bE(e.constructor)&&CE(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var SE=_E(`ArrayBuffer`);function fle(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&SE(e.buffer),t}var ple=vE(`string`),CE=vE(`function`),wE=vE(`number`),TE=e=>typeof e==`object`&&!!e,mle=e=>e===!0||e===!1,EE=e=>{if(gE(e)!==`object`)return!1;let t=pE(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(hE in e)&&!(mE in e)},hle=e=>{if(!TE(e)||xE(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},gle=_E(`Date`),_le=_E(`File`),vle=e=>!!(e&&e.uri!==void 0),yle=e=>e&&e.getParts!==void 0,ble=_E(`Blob`),xle=_E(`FileList`),Sle=e=>TE(e)&&CE(e.pipe);function Cle(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var DE=Cle(),OE=DE.FormData===void 0?void 0:DE.FormData,wle=e=>{if(!e)return!1;if(OE&&e instanceof OE)return!0;let t=pE(e);if(!t||t===Object.prototype||!CE(e.append))return!1;let n=gE(e);return n===`formdata`||n===`object`&&CE(e.toString)&&e.toString()===`[object FormData]`},Tle=_E(`URLSearchParams`),[Ele,Dle,Ole,kle]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(_E),Ale=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function kE(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),yE(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(xE(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function AE(e,t){if(xE(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var jE=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,ME=e=>!bE(e)&&e!==jE;function NE(...e){let{caseless:t,skipUndefined:n}=ME(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&AE(r,i)||i,o=PE(r,a)?r[a]:void 0;EE(o)&&EE(e)?r[a]=NE(o,e):EE(e)?r[a]=NE({},e):yE(e)?r[a]=e.slice():(!n||!bE(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++)e[t]&&kE(e[t],i);return r}var jle=(e,t,n,{allOwnKeys:r}={})=>(kE(t,(t,r)=>{n&&CE(t)?Object.defineProperty(e,r,{__proto__:null,value:fE(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Mle=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nle=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Ple=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&pE(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Fle=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Ile=e=>{if(!e)return null;if(yE(e))return e;let t=e.length;if(!wE(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},Lle=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&pE(Uint8Array)),Rle=(e,t)=>{let n=(e&&e[mE]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},zle=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ble=_E(`HTMLFormElement`),Vle=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),PE=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Hle=_E(`RegExp`),FE=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};kE(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Ule=e=>{FE(e,(t,n)=>{if(CE(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(CE(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Wle=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return yE(e)?r(e):r(String(e).split(t)),n},Gle=()=>{},Kle=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function qle(e){return!!(e&&CE(e.append)&&e[hE]===`FormData`&&e[mE])}var Jle=e=>{let t=Array(10),n=(e,r)=>{if(TE(e)){if(t.indexOf(e)>=0)return;if(xE(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=yE(e)?[]:{};return kE(e,(e,t)=>{let a=n(e,r+1);!bE(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},Yle=_E(`AsyncFunction`),Xle=e=>e&&(TE(e)||CE(e))&&CE(e.then)&&CE(e.catch),IE=((e,t)=>e?setImmediate:t?((e,t)=>(jE.addEventListener(`message`,({source:n,data:r})=>{n===jE&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),jE.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,CE(jE.postMessage)),q={isArray:yE,isArrayBuffer:SE,isBuffer:xE,isFormData:wle,isArrayBufferView:fle,isString:ple,isNumber:wE,isBoolean:mle,isObject:TE,isPlainObject:EE,isEmptyObject:hle,isReadableStream:Ele,isRequest:Dle,isResponse:Ole,isHeaders:kle,isUndefined:bE,isDate:gle,isFile:_le,isReactNativeBlob:vle,isReactNative:yle,isBlob:ble,isRegExp:Hle,isFunction:CE,isStream:Sle,isURLSearchParams:Tle,isTypedArray:Lle,isFileList:xle,forEach:kE,merge:NE,extend:jle,trim:Ale,stripBOM:Mle,inherits:Nle,toFlatObject:Ple,kindOf:gE,kindOfTest:_E,endsWith:Fle,toArray:Ile,forEachEntry:Rle,matchAll:zle,isHTMLForm:Ble,hasOwnProperty:PE,hasOwnProp:PE,reduceDescriptors:FE,freezeMethods:Ule,toObjectSet:Wle,toCamelCase:Vle,noop:Gle,toFiniteNumber:Kle,findKey:AE,global:jE,isContextDefined:ME,isSpecCompliantForm:qle,toJSONObject:Jle,isAsyncFn:Yle,isThenable:Xle,setImmediate:IE,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(jE):typeof process<`u`&&process.nextTick||IE,isIterable:e=>e!=null&&CE(e[mE])},Zle=q.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Qle=e=>{let t={},n,r,i;return e&&e.split(`
|
||
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Zle[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},LE=Symbol(`internals`),$le=/[^\x09\x20-\x7E\x80-\xFF]/g;function eue(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function RE(e){return e&&String(e).trim().toLowerCase()}function tue(e){return eue(e.replace($le,``))}function zE(e){return e===!1||e==null?e:q.isArray(e)?e.map(zE):tue(String(e))}function nue(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var rue=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function BE(e,t,n,r,i){if(q.isFunction(r))return r.call(this,t,n);if(i&&(t=n),q.isString(t)){if(q.isString(r))return t.indexOf(r)!==-1;if(q.isRegExp(r))return r.test(t)}}function iue(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function aue(e,t){let n=q.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var VE=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=RE(t);if(!i)throw Error(`header name must be a non-empty string`);let a=q.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=zE(e))}let a=(e,t)=>q.forEach(e,(e,n)=>i(e,n,t));if(q.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(q.isString(e)&&(e=e.trim())&&!rue(e))a(Qle(e),t);else if(q.isObject(e)&&q.isIterable(e)){let n={},r,i;for(let t of e){if(!q.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?q.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=RE(e),e){let n=q.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return nue(e);if(q.isFunction(t))return t.call(this,e,n);if(q.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=RE(e),e){let n=q.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||BE(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=RE(e),e){let i=q.findKey(n,e);i&&(!t||BE(n,n[i],i,t))&&(delete n[i],r=!0)}}return q.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||BE(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return q.forEach(this,(r,i)=>{let a=q.findKey(n,i);if(a){t[a]=zE(r),delete t[i];return}let o=e?iue(i):String(i).trim();o!==i&&delete t[i],t[o]=zE(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return q.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&q.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
||
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[LE]=this[LE]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=RE(e);t[r]||(aue(n,e),t[r]=!0)}return q.isArray(e)?e.forEach(r):r(e),this}};VE.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),q.reduceDescriptors(VE.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),q.freezeMethods(VE);var oue=`[REDACTED ****]`;function sue(e){if(q.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(q.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function cue(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||q.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof VE&&(e=e.toJSON()),r.push(e);let t;if(q.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);q.isUndefined(r)||(t[n]=r)});else{if(!q.isPlainObject(e)&&sue(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?oue:i(a);q.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var HE=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&q.hasOwnProp(e,`redact`)?e.redact:void 0,n=q.isArray(t)&&t.length>0?cue(e,t):q.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};HE.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,HE.ERR_BAD_OPTION=`ERR_BAD_OPTION`,HE.ECONNABORTED=`ECONNABORTED`,HE.ETIMEDOUT=`ETIMEDOUT`,HE.ECONNREFUSED=`ECONNREFUSED`,HE.ERR_NETWORK=`ERR_NETWORK`,HE.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,HE.ERR_DEPRECATED=`ERR_DEPRECATED`,HE.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,HE.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,HE.ERR_CANCELED=`ERR_CANCELED`,HE.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,HE.ERR_INVALID_URL=`ERR_INVALID_URL`,HE.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function UE(e){return q.isPlainObject(e)||q.isArray(e)}function WE(e){return q.endsWith(e,`[]`)?e.slice(0,-2):e}function GE(e,t,n){return e?e.concat(t).map(function(e,t){return e=WE(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function lue(e){return q.isArray(e)&&!e.some(UE)}var uue=q.toFlatObject(q,{},null,function(e){return/^is[A-Z]/.test(e)});function KE(e,t,n){if(!q.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!q.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||d,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&q.isSpecCompliantForm(t);if(!q.isFunction(i))throw TypeError(`visitor must be a function`);function u(e){if(e===null)return``;if(q.isDate(e))return e.toISOString();if(q.isBoolean(e))return e.toString();if(!l&&q.isBlob(e))throw new HE(`Blob is not supported. Use a Buffer instead.`);return q.isArrayBuffer(e)||q.isTypedArray(e)?l&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function d(e,n,i){let s=e;if(q.isReactNative(t)&&q.isReactNativeBlob(e))return t.append(GE(i,n,a),u(e)),!1;if(e&&!i&&typeof e==`object`){if(q.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(q.isArray(e)&&lue(e)||(q.isFileList(e)||q.endsWith(n,`[]`))&&(s=q.toArray(e)))return n=WE(n),s.forEach(function(e,r){!(q.isUndefined(e)||e===null)&&t.append(o===!0?GE([n],r,a):o===null?n:n+`[]`,u(e))}),!1}return UE(e)?!0:(t.append(GE(i,n,a),u(e)),!1)}let f=[],p=Object.assign(uue,{defaultVisitor:d,convertValue:u,isVisitable:UE});function m(e,n,r=0){if(!q.isUndefined(e)){if(r>c)throw new HE(`Object is too deeply nested (`+r+` levels). Max depth: `+c,HE.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));f.push(e),q.forEach(e,function(e,a){(!(q.isUndefined(e)||e===null)&&i.call(t,e,q.isString(a)?a.trim():a,n,p))===!0&&m(e,n?n.concat(a):[a],r+1)}),f.pop()}}if(!q.isObject(e))throw TypeError(`data must be an object`);return m(e),t}function qE(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function JE(e,t){this._pairs=[],e&&KE(e,this,t)}var YE=JE.prototype;YE.append=function(e,t){this._pairs.push([e,t])},YE.toString=function(e){let t=e?function(t){return e.call(this,t,qE)}:qE;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function due(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function XE(e,t,n){if(!t)return e;let r=n&&n.encode||due,i=q.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):q.isURLSearchParams(t)?t.toString():new JE(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var ZE=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){q.forEach(this.handlers,function(t){t!==null&&e(t)})}},QE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},fue={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:JE,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},pue=s({hasBrowserEnv:()=>$E,hasStandardBrowserEnv:()=>mue,hasStandardBrowserWebWorkerEnv:()=>hue,navigator:()=>eD,origin:()=>gue}),$E=typeof window<`u`&&typeof document<`u`,eD=typeof navigator==`object`&&navigator||void 0,mue=$E&&(!eD||[`ReactNative`,`NativeScript`,`NS`].indexOf(eD.product)<0),hue=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,gue=$E&&window.location.href||`http://localhost`,tD={...pue,...fue};function _ue(e,t){return KE(e,new tD.classes.URLSearchParams,{visitor:function(e,t,n,r){return tD.isNode&&q.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function vue(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function yue(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function nD(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&q.isArray(r)?r.length:a,s?(q.hasOwnProp(r,a)?r[a]=q.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!r[a]||!q.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&q.isArray(r[a])&&(r[a]=yue(r[a])),!o)}if(q.isFormData(e)&&q.isFunction(e.entries)){let n={};return q.forEachEntry(e,(e,r)=>{t(vue(e),r,n,0)}),n}return null}var rD=(e,t)=>e!=null&&q.hasOwnProp(e,t)?e[t]:void 0;function bue(e,t,n){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var iD={transitional:QE,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=q.isObject(e);if(i&&q.isHTMLForm(e)&&(e=new FormData(e)),q.isFormData(e))return r?JSON.stringify(nD(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e)||q.isReadableStream(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=rD(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return _ue(e,t).toString();if((a=q.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=rD(this,`env`),r=n&&n.FormData;return KE(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),bue(e)):e}],transformResponse:[function(e){let t=rD(this,`transitional`)||iD.transitional,n=t&&t.forcedJSONParsing,r=rD(this,`responseType`),i=r===`json`;if(q.isResponse(e)||q.isReadableStream(e))return e;if(e&&q.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,rD(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?HE.from(e,HE.ERR_BAD_RESPONSE,this,null,rD(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:tD.classes.FormData,Blob:tD.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};q.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{iD.headers[e]={}});function aD(e,t){let n=this||iD,r=t||n,i=VE.from(r.headers),a=r.data;return q.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function oD(e){return!!(e&&e.__CANCEL__)}var sD=class extends HE{constructor(e,t,n){super(e??`canceled`,HE.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function cD(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new HE(`Request failed with status code `+n.status,n.status>=400&&n.status<500?HE.ERR_BAD_REQUEST:HE.ERR_BAD_RESPONSE,n.config,n.request,n))}function xue(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Sue(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Cue(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var lD=(e,t,n=3)=>{let r=0,i=Sue(50,250);return Cue(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=o==null?a:Math.min(a,o),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},uD=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},dD=e=>(...t)=>q.asap(()=>e(...t)),wue=tD.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,tD.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(tD.origin),tD.navigator&&/(msie|trident)/i.test(tD.navigator.userAgent)):()=>!0,Tue=tD.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];q.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),q.isString(r)&&s.push(`path=${r}`),q.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),q.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)return decodeURIComponent(r.slice(i+1))}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function Eue(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Due(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function fD(e,t,n){let r=!Eue(t);return e&&(r||n===!1)?Due(e,t):t}var pD=e=>e instanceof VE?{...e}:e;function mD(e,t){t||={};let n=Object.create(null);Object.defineProperty(n,`hasOwnProperty`,{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return q.isPlainObject(e)&&q.isPlainObject(t)?q.merge.call({caseless:r},e,t):q.isPlainObject(t)?q.merge({},t):q.isArray(t)?t.slice():t}function i(e,t,n,i){if(!q.isUndefined(t))return r(e,t,n,i);if(!q.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!q.isUndefined(t))return r(void 0,t)}function o(e,t){if(!q.isUndefined(t))return r(void 0,t);if(!q.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(q.hasOwnProp(t,a))return r(n,i);if(q.hasOwnProp(e,a))return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(pD(e),pD(t),n,!0)};return q.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=q.hasOwnProp(c,r)?c[r]:i,o=a(q.hasOwnProp(e,r)?e[r]:void 0,q.hasOwnProp(t,r)?t[r]:void 0,r);q.isUndefined(o)&&a!==s||(n[r]=o)}),n}var Oue=[`content-type`,`content-length`];function kue(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t).forEach(([t,n])=>{Oue.includes(t.toLowerCase())&&e.set(t,n)})}var Aue=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),hD=e=>{let t=mD({},e),n=e=>q.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=VE.from(s),t.url=XE(fD(l,d,u),e.params,e.paramsSerializer),c&&s.set(`Authorization`,`Basic `+btoa((c.username||``)+`:`+(c.password?Aue(c.password):``))),q.isFormData(r)&&(tD.hasStandardBrowserEnv||tD.hasStandardBrowserWebWorkerEnv?s.setContentType(void 0):q.isFunction(r.getHeaders)&&kue(s,r.getHeaders(),n(`formDataHeaderPolicy`))),tD.hasStandardBrowserEnv&&(q.isFunction(i)&&(i=i(t)),i===!0||i==null&&wue(t.url))){let e=a&&o&&Tue.read(o);e&&s.set(a,e)}return t},jue=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=hD(e),i=r.data,a=VE.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=VE.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());cD(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new HE(`Request aborted`,HE.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new HE(t&&t.message?t.message:`Network Error`,HE.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||QE;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new HE(t,i.clarifyTimeoutError?HE.ETIMEDOUT:HE.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&q.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),q.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=lD(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=lD(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new sD(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=xue(r.url);if(_&&!tD.protocols.includes(_)){n(new HE(`Unsupported protocol `+_+`:`,HE.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Mue=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof HE?t:new sD(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new HE(`timeout of ${t}ms exceeded`,HE.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>q.asap(o),s}},Nue=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Pue=async function*(e,t){for await(let n of Fue(e))yield*Nue(n,t)},Fue=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},gD=(e,t,n,r)=>{let i=Pue(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})};function Iue(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n<t;n++)if(r.charCodeAt(n)===37&&n+2<t){let t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}if(typeof Buffer<`u`&&typeof Buffer.byteLength==`function`)return Buffer.byteLength(r,`utf8`);let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}var _D=`1.16.0`,vD=64*1024,{isFunction:yD}=q,bD=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Lue=e=>{let t=q.global??globalThis,{ReadableStream:n,TextEncoder:r}=t;e=q.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?yD(i):typeof fetch==`function`,c=yD(a),l=yD(o);if(!s)return!1;let u=s&&yD(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&bD(()=>{let e=!1,t=new a(tD.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&bD(()=>q.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new HE(`Response type '${e}' is not supported`,HE.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(q.isBlob(e))return e.size;if(q.isSpecCompliantForm(e))return(await new a(tD.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(q.isArrayBufferView(e)||q.isArrayBuffer(e))return e.byteLength;if(q.isURLSearchParams(e)&&(e+=``),q.isString(e))return(await d(e)).byteLength},g=async(e,t)=>q.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:u,timeout:d,onDownloadProgress:h,onUploadProgress:_,responseType:v,headers:y,withCredentials:b=`same-origin`,fetchOptions:x,maxContentLength:S,maxBodyLength:C}=hD(e),w=q.isNumber(S)&&S>-1,T=q.isNumber(C)&&C>-1,E=i||fetch;v=v?(v+``).toLowerCase():`text`;let D=Mue([l,u&&u.toAbortSignal()],d),O=null,k=D&&D.unsubscribe&&(()=>{D.unsubscribe()}),A;try{if(w&&typeof t==`string`&&t.startsWith(`data:`)&&Iue(t)>S)throw new HE(`maxContentLength size of `+S+` exceeded`,HE.ERR_BAD_RESPONSE,e,O);if(T&&n!==`get`&&n!==`head`){let t=await g(y,s);if(typeof t==`number`&&isFinite(t)&&t>C)throw new HE(`Request body larger than maxBodyLength limit`,HE.ERR_BAD_REQUEST,e,O)}if(_&&f&&n!==`get`&&n!==`head`&&(A=await g(y,s))!==0){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(q.isFormData(s)&&(n=e.headers.get(`content-type`))&&y.setContentType(n),e.body){let[t,n]=uD(A,lD(dD(_)));s=gD(e.body,vD,t,n)}}q.isString(b)||(b=b?`include`:`omit`);let i=c&&`credentials`in a.prototype;if(q.isFormData(s)){let e=y.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&y.delete(`content-type`)}y.set(`User-Agent`,`axios/`+_D,!1);let l={...x,signal:D,method:n.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:`half`,credentials:i?b:void 0};O=c&&new a(t,l);let u=await(c?E(O,x):E(t,l));if(w){let t=q.toFiniteNumber(u.headers.get(`content-length`));if(t!=null&&t>S)throw new HE(`maxContentLength size of `+S+` exceeded`,HE.ERR_BAD_RESPONSE,e,O)}let d=p&&(v===`stream`||v===`response`);if(p&&u.body&&(h||w||d&&k)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=u[e]});let n=q.toFiniteNumber(u.headers.get(`content-length`)),[r,i]=h&&uD(n,lD(dD(h),!0))||[],a=0;u=new o(gD(u.body,vD,t=>{if(w&&(a=t,a>S))throw new HE(`maxContentLength size of `+S+` exceeded`,HE.ERR_BAD_RESPONSE,e,O);r&&r(t)},()=>{i&&i(),k&&k()}),t)}v||=`text`;let j=await m[q.findKey(m,v)||`text`](u,e);if(w&&!p&&!d){let t;if(j!=null&&(typeof j.byteLength==`number`?t=j.byteLength:typeof j.size==`number`?t=j.size:typeof j==`string`&&(t=typeof r==`function`?new r().encode(j).byteLength:j.length)),typeof t==`number`&&t>S)throw new HE(`maxContentLength size of `+S+` exceeded`,HE.ERR_BAD_RESPONSE,e,O)}return!d&&k&&k(),await new Promise((t,n)=>{cD(t,n,{data:j,headers:VE.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:O})})}catch(t){if(k&&k(),D&&D.aborted&&D.reason instanceof HE){let n=D.reason;throw n.config=e,O&&(n.request=O),t!==n&&(n.cause=t),n}throw t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new HE(`Network Error`,HE.ERR_NETWORK,e,O,t&&t.response),{cause:t.cause||t}):HE.from(t,t&&t.code,e,O,t&&t.response)}}},Rue=new Map,xD=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Rue;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Lue(t)),l=c;return c};xD();var SD={http:null,xhr:jue,fetch:{get:xD}};q.forEach(SD,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{__proto__:null,value:t})}catch{}Object.defineProperty(e,`adapterName`,{__proto__:null,value:t})}});var CD=e=>`- ${e}`,zue=e=>q.isFunction(e)||e===null||e===!1;function Bue(e,t){e=q.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!zue(r)&&(i=SD[(n=String(r)).toLowerCase()],i===void 0))throw new HE(`Unknown adapter '${n}'`);if(i&&(q.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new HE(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
||
`+e.map(CD).join(`
|
||
`):` `+CD(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var wD={getAdapter:Bue,adapters:SD};function TD(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sD(null,e)}function ED(e){return TD(e),e.headers=VE.from(e.headers),e.data=aD.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),wD.getAdapter(e.adapter||iD.adapter,e)(e).then(function(t){TD(e),e.response=t;try{t.data=aD.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=VE.from(t.headers),t},function(t){if(!oD(t)&&(TD(e),t&&t.response)){e.response=t.response;try{t.response.data=aD.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=VE.from(t.response.headers)}return Promise.reject(t)})}var DD={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{DD[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var OD={};DD.transitional=function(e,t,n){function r(e,t){return`[Axios v`+_D+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new HE(r(i,` has been removed`+(t?` in `+t:``)),HE.ERR_DEPRECATED);return t&&!OD[i]&&(OD[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},DD.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Vue(e,t,n){if(typeof e!=`object`)throw new HE(`options must be an object`,HE.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new HE(`option `+a+` must be `+n,HE.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new HE(`Unknown option `+a,HE.ERR_BAD_OPTION)}}var kD={assertOptions:Vue,validators:DD},AD=kD.validators,jD=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ZE,response:new ZE}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(`
|
||
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
|
||
`),r=t===-1?-1:n.indexOf(`
|
||
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
|
||
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=mD(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&kD.assertOptions(n,{silentJSONParsing:AD.transitional(AD.boolean),forcedJSONParsing:AD.transitional(AD.boolean),clarifyTimeoutError:AD.transitional(AD.boolean),legacyInterceptorReqResOrdering:AD.transitional(AD.boolean)},!1),r!=null&&(q.isFunction(r)?t.paramsSerializer={serialize:r}:kD.assertOptions(r,{encode:AD.function,serialize:AD.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),kD.assertOptions(t,{baseUrl:AD.spelling(`baseURL`),withXsrfToken:AD.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&q.merge(i.common,i[t.method]);i&&q.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=VE.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||QE;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[ED.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=ED.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=mD(this.defaults,e),XE(fD(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};q.forEach([`delete`,`get`,`head`,`options`],function(e){jD.prototype[e]=function(t,n){return this.request(mD(n||{},{method:e,url:t,data:(n||{}).data}))}}),q.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(mD(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}jD.prototype[e]=t(),e!==`query`&&(jD.prototype[e+`Form`]=t(!0))});var Hue=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new sD(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Uue(e){return function(t){return e.apply(null,t)}}function Wue(e){return q.isObject(e)&&e.isAxiosError===!0}var MD={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(MD).forEach(([e,t])=>{MD[t]=e});function ND(e){let t=new jD(e),n=fE(jD.prototype.request,t);return q.extend(n,jD.prototype,t,{allOwnKeys:!0}),q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return ND(mD(e,t))},n}var PD=ND(iD);PD.Axios=jD,PD.CanceledError=sD,PD.CancelToken=Hue,PD.isCancel=oD,PD.VERSION=_D,PD.toFormData=KE,PD.AxiosError=HE,PD.Cancel=PD.CanceledError,PD.all=function(e){return Promise.all(e)},PD.spread=Uue,PD.isAxiosError=Wue,PD.mergeConfig=mD,PD.AxiosHeaders=VE,PD.formToJSON=e=>nD(q.isHTMLForm(e)?new FormData(e):e),PD.getAdapter=wD.getAdapter,PD.HttpStatusCode=MD,PD.default=PD;var Gue=l(Zce(),1),FD=PD.create({baseURL:`/api`});async function Kue(){return(await FD.get(`/dashboard/summary`)).data.data}async function que(e=30){return(await FD.get(`/dashboard/daily`,{params:{days:e}})).data.data}async function Jue(){return(await FD.get(`/dashboard/consecutive`)).data.data}var Yue=o((e=>{var t=Symbol.for(`react.transitional.element`);function n(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.jsx=n,e.jsxs=n})),ID=o(((e,t)=>{t.exports=Yue()}))();function Xue({data:e}){return(0,ID.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(3, 1fr)`,gap:16},children:[{title:`总股票数`,value:e.total_stocks,icon:(0,ID.jsx)(cle,{}),color:`#e6f4ff`},{title:`上涨`,value:e.up_count,icon:(0,ID.jsx)(ole,{}),valueStyle:{color:`#cf1322`},color:`#fff1f0`},{title:`下跌`,value:e.down_count,icon:(0,ID.jsx)(rle,{}),valueStyle:{color:`#3f8600`},color:`#f6ffed`},{title:`平盘`,value:e.flat_count,icon:(0,ID.jsx)(fie,{}),color:`#fafafa`},{title:`总成交额(亿)`,value:+(e.total_turnover/1e8).toFixed(2),icon:(0,ID.jsx)(tle,{}),color:`#e6f4ff`},{title:`平均涨跌幅(%)`,value:e.avg_pct_change,precision:2,icon:(0,ID.jsx)(cE,{}),valueStyle:{color:e.avg_pct_change>=0?`#cf1322`:`#3f8600`},color:e.avg_pct_change>=0?`#fff1f0`:`#f6ffed`}].map(e=>(0,ID.jsx)(Jv,{style:{background:e.color},children:(0,ID.jsx)(Qie,{title:e.title,value:e.value,precision:`precision`in e?e.precision:void 0,prefix:e.icon,valueStyle:e.valueStyle})},e.title))})}var{Title:Zue}=Iw,LD=[{title:`代码`,dataIndex:`code`,key:`code`,width:80},{title:`名称`,dataIndex:`name`,key:`name`,width:100},{title:`最新价`,dataIndex:`close`,key:`close`,width:80,render:e=>e?.toFixed(2)},{title:`涨跌幅`,dataIndex:`pct_change`,key:`pct_change`,width:90,render:e=>(0,ID.jsxs)(tw,{color:e>=0?`red`:`green`,style:Math.abs(e)>=19.5?{fontWeight:`bold`}:void 0,children:[e>=0?`+`:``,e?.toFixed(2),`%`]})}];function Que(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(!0);return(0,v.useEffect)(()=>{Kue().then(t).finally(()=>r(!1))},[]),n?(0,ID.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,padding:100},children:(0,ID.jsx)(Ib,{size:`large`})}):e?(0,ID.jsxs)(`div`,{style:{maxWidth:1200,margin:`0 auto`},children:[(0,ID.jsx)(Zue,{level:2,style:{textAlign:`center`,marginBottom:32},children:`A股市场概览`}),(0,ID.jsx)(Xue,{data:e}),(0,ID.jsxs)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:16,marginTop:24},children:[(0,ID.jsx)(Jv,{title:`涨停 (${e.limit_up_list.length}只)`,size:`small`,children:(0,ID.jsx)(HC,{columns:LD,dataSource:e.limit_up_list,rowKey:`code`,pagination:{pageSize:50,size:`small`,showSizeChanger:!1},size:`small`,scroll:{y:400}})}),(0,ID.jsx)(Jv,{title:`跌停 (${e.limit_down_list.length}只)`,size:`small`,children:(0,ID.jsx)(HC,{columns:LD,dataSource:e.limit_down_list,rowKey:`code`,pagination:{pageSize:50,size:`small`,showSizeChanger:!1},size:`small`,scroll:{y:400}})})]}),(0,ID.jsx)(Jv,{title:`百日新高 (${e.high_100_list.length}只)`,size:`small`,style:{marginTop:16},children:(0,ID.jsx)(HC,{columns:LD,dataSource:e.high_100_list,rowKey:`code`,pagination:{pageSize:50,size:`small`,showSizeChanger:!1},size:`small`,scroll:{y:400}})})]}):(0,ID.jsx)(`div`,{children:`加载失败`})}var RD=function(e,t){return RD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},RD(e,t)};function J(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);RD(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var $ue=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),zD=new(function(){function e(){this.browser=new $ue,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(zD.wxa=!0,zD.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?zD.worker=!0:!zD.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(zD.node=!0,zD.svgSupported=!0):ede(navigator.userAgent,zD);function ede(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var tde=`12px sans-serif`,nde=20,rde=100,ide=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function ade(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-nde)/rde}return t}var ode=ade(ide),BD={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=BD.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=ode[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},VD=iO([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),HD=iO([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),UD=Object.prototype.toString,WD=Array.prototype,sde=WD.forEach,cde=WD.filter,GD=WD.slice,lde=WD.map,KD=function(){}.constructor,qD=KD?KD.prototype:null,JD=`__proto__`,ude=2311;function YD(){return ude++}function XD(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function ZD(e){if(typeof e!=`object`||!e)return e;var t=e,n=UD.call(e);if(n===`[object Array]`){if(!kO(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=ZD(e[r])}}else if(HD[n]){if(!kO(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!VD[n]&&!kO(e)&&!_O(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==JD&&(t[o]=ZD(e[o]));return t}function QD(e,t,n){if(!mO(t)||!mO(e))return n?ZD(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==JD){var i=e[r],a=t[r];mO(a)&&mO(i)&&!Q(a)&&!Q(i)&&!_O(a)&&!_O(i)&&!hO(a)&&!hO(i)&&!kO(a)&&!kO(i)?QD(i,a,n):(n||!(r in e))&&(e[r]=ZD(t[r]))}return e}function $D(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=QD(n,e[r],t);return n}function Y(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==JD&&(e[n]=t[n]);return e}function eO(e,t,n){for(var r=sO(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}BD.createCanvas;function tO(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function dde(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function nO(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else eO(e,t,n)}function rO(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function X(e,t,n){if(e&&t)if(e.forEach&&e.forEach===sde)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function Z(e,t,n){if(!e)return[];if(!t)return CO(e);if(e.map&&e.map===lde)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function iO(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function aO(e,t,n){if(!e)return[];if(!t)return CO(e);if(e.filter&&e.filter===cde)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function oO(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function sO(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function fde(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(GD.call(arguments)))}}var cO=qD&&uO(qD.bind)?qD.call.bind(qD.bind):fde;function lO(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(GD.call(arguments)))}}function Q(e){return Array.isArray?Array.isArray(e):UD.call(e)===`[object Array]`}function uO(e){return typeof e==`function`}function dO(e){return typeof e==`string`}function fO(e){return UD.call(e)===`[object String]`}function pO(e){return typeof e==`number`}function mO(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function hO(e){return!!VD[UD.call(e)]}function gO(e){return!!HD[UD.call(e)]}function _O(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function vO(e){return e.colorStops!=null}function pde(e){return e.image!=null}function mde(e){return UD.call(e)===`[object RegExp]`}function yO(e){return e!==e}function bO(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function xO(e,t){return e??t}function SO(e,t,n){return e??t??n}function CO(e){var t=[...arguments].slice(1);return GD.apply(e,t)}function wO(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function TO(e,t){if(!e)throw Error(t)}function EO(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var DO=`__ec_primitive__`;function OO(e){e[DO]=!0}function kO(e){return e[DO]}var hde=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return sO(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),AO=typeof Map==`function`;function gde(){return AO?new Map:new hde}var _de=function(){function e(t){var n=Q(t);this.data=gde();var r=this;t instanceof e?t.each(i):t&&X(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return AO?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function jO(e){return new _de(e)}function MO(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function NO(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Y(n,t),n}function PO(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function FO(e,t){return e.hasOwnProperty(t)}function IO(){}var LO=180/Math.PI,RO=function(e,t){return RO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},RO(e,t)};function zO(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);RO(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function BO(e,t){return e??=0,t??=0,[e,t]}function VO(e,t){return e[0]=t[0],e[1]=t[1],e}function HO(e){return[e[0],e[1]]}function UO(e,t,n){return e[0]=t,e[1]=n,e}function WO(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function GO(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function KO(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function qO(e){return Math.sqrt(vde(e))}function vde(e){return e[0]*e[0]+e[1]*e[1]}function JO(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function YO(e,t){var n=qO(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function XO(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var ZO=XO;function yde(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var QO=yde;function $O(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function ek(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function tk(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function nk(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var rk=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),bde=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new rk(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new rk(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new rk(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new rk(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new rk(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new rk(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),ik=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),xde=Math.log(2);function ak(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/xde);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*ak(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function ok(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=ak(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*ak(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var sk=`___zrEVENTSAVED`,ck=[];function Sde(e,t,n,r,i){return lk(ck,t,r,i,!0)&&lk(e,n,ck[0],ck[1])}function Cde(e,t){e&&n(e),t&&n(t);function n(e){var t=e[sk];t&&(t.clearMarkers&&t.clearMarkers(),delete e[sk])}}function lk(e,t,n,r,i){if(t.getBoundingClientRect&&zD.domSupported&&!fk(t)){var a=t[sk]||(t[sk]={}),o=dk(uk(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function uk(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){X(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function dk(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?ok(s,o):ok(o,s))}function fk(e){return e.nodeName.toUpperCase()===`CANVAS`}var pk=/([&<>"'])/g,mk={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function hk(e){return e==null?``:(e+``).replace(pk,function(e,t){return mk[t]})}var gk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_k=[],wde=zD.browser.firefox&&+zD.browser.version.split(`.`)[0]<39;function vk(e,t,n,r){return n||={},r?yk(e,t,n):wde&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?yk(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function yk(e,t,n){if(zD.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(fk(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(lk(_k,e,r,i)){n.zrX=_k[0],n.zrY=_k[1];return}}n.zrX=n.zrY=0}function bk(e){return e||window.event}function xk(e,t,n){if(t=bk(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&vk(e,i,t,n)}else{vk(e,t,t,n);var a=Tde(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&gk.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Tde(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function Sk(e,t,n,r){e.addEventListener(t,n,r)}function Ede(e,t,n,r){e.removeEventListener(t,n,r)}var Ck=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function wk(e){return e.which===2||e.which===3}var Dde=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=vk(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in Ek)if(Ek.hasOwnProperty(t)){var n=Ek[t](this._track,e);if(n)return n}},e}();function Tk(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Ode(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Ek={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Tk(r)/Tk(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ode(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function Dk(){return[1,0,0,1,0,0]}function Ok(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function kk(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Ak(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function jk(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Mk(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function Nk(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Pk(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function kde(e){var t=Dk();return kk(t,e),t}var Fk=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Ik=Math.min,Lk=Math.max,Rk=Math.abs,zk=[`x`,`y`],Ade=[`width`,`height`],Bk=new Fk,Vk=new Fk,Hk=new Fk,Uk=new Fk,Wk=Xk(),Gk=Wk.minTv,Kk=Wk.maxTv,qk=[0,0],Jk=function(){function e(t,n,r,i){e.set(this,t,n,r,i)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=Ik(e.x,this.x),n=Ik(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lk(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lk(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=Dk();return jk(i,i,[-t.x,-t.y]),Nk(i,i,[n,r]),jk(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Fk.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=e.set(jde,t.x,t.y,t.width,t.height)),n instanceof e||(n=e.set(Mde,n.x,n.y,n.width,n.height));var s=!!r;Wk.reset(i,s);var c=Wk.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(qk[0]=1/0,qk[1]=0,Yk(l,u,p,m,0,s,a,o),Yk(d,f,h,g,1,s,a,o),s&&Fk.copy(r,_?Wk.useDir?Wk.dirMinTv:Gk:Kk)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Bk.x=Hk.x=n.x,Bk.y=Uk.y=n.y,Vk.x=Uk.x=n.x+n.width,Vk.y=Hk.y=n.y+n.height,Bk.transform(r),Uk.transform(r),Vk.transform(r),Hk.transform(r),t.x=Ik(Bk.x,Vk.x,Hk.x,Uk.x),t.y=Ik(Bk.y,Vk.y,Hk.y,Uk.y);var c=Lk(Bk.x,Vk.x,Hk.x,Uk.x),l=Lk(Bk.y,Vk.y,Hk.y,Uk.y);t.width=c-t.x,t.height=l-t.y},e}(),jde=new Jk(0,0,0,0),Mde=new Jk(0,0,0,0);function Yk(e,t,n,r,i,a,o,s){var c=Rk(t-n),l=Rk(r-e),u=Ik(c,l),d=zk[i],f=zk[1-i],p=Ade[i];t<n||r<e?c<l?(a&&(Kk[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(Kk[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=Lk(e,n),o[p]=Ik(t,r)-o[d]),a&&(u<qk[0]||Wk.useDir)&&(qk[0]=Ik(u,qk[0]),(c<l||!Wk.bidirectional)&&(Gk[d]=c,Gk[f]=0,Wk.useDir&&Wk.calcDirMTV()),(c>=l||!Wk.bidirectional)&&(Gk[d]=-l,Gk[f]=0,Wk.useDir&&Wk.calcDirMTV())))}function Xk(){var e=0,t=new Fk,n=new Fk,r={minTv:new Fk,maxTv:new Fk,useDir:!1,dirMinTv:new Fk,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=Lk(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return Rk(e)<1e-10}return r}var Zk=`silent`;function Nde(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Pde}}function Pde(){Ck(this.event)}var Fde=function(e){zO(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ik),Qk=function(){function e(e,t){this.x=e,this.y=t}return e}(),Ide=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],$k=new Jk(0,0,0,0),eA=function(e){zO(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new Qk(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new Fde,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new bde(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(X(Ide,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=nA(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new Qk(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new Qk(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=Nde(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Qk(e,t);if(tA(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Jk(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&($k.copy(u.getBoundingRect()),u.transform&&$k.applyTransform(u.transform),$k.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(tA(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new Dde;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new Qk;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(ik);X([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){eA.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=nA(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||ZO(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Lde(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return i?Zk:!0}return!1}function tA(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Lde(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Zk)){t.target=o;break}}}function nA(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var rA=32,iA=7;function Rde(e){for(var t=0;e>=rA;)t|=e&1,e>>=1;return e+t}function aA(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;zde(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function zde(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function oA(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function sA(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function cA(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Bde(e,t){var n=iA,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=cA(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=sA(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=cA(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=sA(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=iA||m>=iA);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-cA(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-sA(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=iA||g>=iA);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function lA(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<rA){a=aA(e,n,r,t),oA(e,n,r,n+a,t);return}var o=Bde(e,t),s=Rde(i);do{if(a=aA(e,n,r,t),a<s){var c=i;c>s&&(c=s),oA(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var uA=!1;function dA(){uA||(uA=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function fA(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Vde=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=fA}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,lA(n,fA)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(dA(),p.z=0),isNaN(p.z2)&&(dA(),p.z2=0),isNaN(p.zlevel)&&(dA(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=tO(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),pA=zD.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},mA={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-mA.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?mA.bounceIn(e*2)*.5:mA.bounceOut(e*2-1)*.5+.5}},hA=Math.pow,gA=Math.sqrt,_A=1e-8,vA=1e-4,yA=gA(3),bA=1/3,xA=BO(),SA=BO(),CA=BO();function wA(e){return e>-_A&&e<_A}function TA(e){return e>_A||e<-_A}function EA(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function DA(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function OA(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(wA(u)&&wA(d))if(wA(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(wA(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=gA(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-hA(-y,bA):hA(y,bA),b=b<0?-hA(-b,bA):hA(b,bA);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*gA(u*u*u)),S=Math.acos(x)/3,C=gA(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+yA*Math.sin(S)))/(3*o),T=(-s+C*(w-yA*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function kA(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(wA(o)){if(TA(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(wA(u))i[0]=-a/(2*o);else if(u>0){var d=gA(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function AA(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function jA(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;xA[0]=c,xA[1]=l;for(var v=0;v<1;v+=.05)SA[0]=EA(e,n,i,o,v),SA[1]=EA(t,r,a,s,v),g=QO(xA,SA),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<vA);y++)m=d-f,h=d+f,SA[0]=EA(e,n,i,o,m),SA[1]=EA(t,r,a,s,m),g=QO(SA,xA),m>=0&&g<p?(d=m,p=g):(CA[0]=EA(e,n,i,o,h),CA[1]=EA(t,r,a,s,h),_=QO(CA,xA),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=EA(e,n,i,o,d),u[1]=EA(t,r,a,s,d)),gA(p)}function Hde(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=EA(e,n,i,o,m),g=EA(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function MA(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function NA(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Ude(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(wA(a)){if(TA(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(wA(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=gA(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function PA(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function FA(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function IA(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;xA[0]=o,xA[1]=s;for(var f=0;f<1;f+=.05){SA[0]=MA(e,n,i,f),SA[1]=MA(t,r,a,f);var p=QO(xA,SA);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<vA);m++){var h=l-u,g=l+u;SA[0]=MA(e,n,i,h),SA[1]=MA(t,r,a,h);var p=QO(SA,xA);if(h>=0&&p<d)l=h,d=p;else{CA[0]=MA(e,n,i,g),CA[1]=MA(t,r,a,g);var _=QO(CA,xA);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=MA(e,n,i,l),c[1]=MA(t,r,a,l)),gA(d)}function Wde(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=MA(e,n,i,f),m=MA(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var LA=/cubic-bezier\(([0-9,\.e ]+)\)/;function RA(e){var t=e&&LA.exec(e);if(t){var n=t[1].split(`,`),r=+EO(n[0]),i=+EO(n[1]),a=+EO(n[2]),o=+EO(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:OA(0,r,a,1,e,s)&&EA(0,i,o,1,s[0])}}}var zA=function(){function e(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||IO,this.ondestroy=e.ondestroy||IO,this.onrestart=e.onrestart||IO,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=uO(e)?e:mA[e]||RA(e)},e}(),BA=function(){function e(e){this.value=e}return e}(),VA=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new BA(e);return this.insertEntry(t),t},e.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++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),HA=function(){function e(e){this._list=new VA,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new BA(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),UA={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 WA(e){return e=Math.round(e),e<0?0:e>255?255:e}function GA(e){return e=Math.round(e),e<0?0:e>360?360:e}function KA(e){return e<0?0:e>1?1:e}function qA(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?WA(parseFloat(t)/100*255):WA(parseInt(t,10))}function JA(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?KA(parseFloat(t)/100):KA(parseFloat(t))}function YA(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function XA(e,t,n){return e+(t-e)*n}function ZA(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function QA(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var $A=new HA(20),ej=null;function tj(e,t){ej&&QA(ej,t),ej=$A.put(e,ej||t.slice())}function nj(e,t){if(e){t||=[];var n=$A.get(e);if(n)return QA(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in UA)return QA(t,UA[r]),tj(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){ZA(t,0,0,0,1);return}return ZA(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),tj(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){ZA(t,0,0,0,1);return}return ZA(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),tj(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?ZA(t,+l[0],+l[1],+l[2],1):ZA(t,0,0,0,1);u=JA(l.pop());case`rgb`:if(l.length>=3)return ZA(t,qA(l[0]),qA(l[1]),qA(l[2]),l.length===3?u:JA(l[3])),tj(e,t),t;ZA(t,0,0,0,1);return;case`hsla`:if(l.length!==4){ZA(t,0,0,0,1);return}return l[3]=JA(l[3]),rj(l,t),tj(e,t),t;case`hsl`:if(l.length!==3){ZA(t,0,0,0,1);return}return rj(l,t),tj(e,t),t;default:return}}ZA(t,0,0,0,1)}}function rj(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=JA(e[1]),i=JA(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],ZA(t,WA(YA(o,a,n+1/3)*255),WA(YA(o,a,n)*255),WA(YA(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Gde(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function ij(e,t){var n=nj(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return cj(n,n.length===4?`rgba`:`rgb`)}}function aj(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=WA(XA(o[0],s[0],c)),n[1]=WA(XA(o[1],s[1],c)),n[2]=WA(XA(o[2],s[2],c)),n[3]=KA(XA(o[3],s[3],c)),n}}function Kde(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=nj(t[i]),s=nj(t[a]),c=r-i,l=cj([WA(XA(o[0],s[0],c)),WA(XA(o[1],s[1],c)),WA(XA(o[2],s[2],c)),KA(XA(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function oj(e,t,n,r){var i=nj(e);if(e)return i=Gde(i),t!=null&&(i[0]=GA(uO(t)?t(i[0]):t)),n!=null&&(i[1]=JA(uO(n)?n(i[1]):n)),r!=null&&(i[2]=JA(uO(r)?r(i[2]):r)),cj(rj(i),`rgba`)}function sj(e,t){var n=nj(e);if(n&&t!=null)return n[3]=KA(t),cj(n,`rgba`)}function cj(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function lj(e,t){var n=nj(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var uj=new HA(100);function dj(e){if(dO(e)){var t=uj.get(e);return t||(t=ij(e,-.1),uj.put(e,t)),t}else if(vO(e)){var n=Y({},e);return n.colorStops=Z(e.colorStops,function(e){return{offset:e.offset,color:ij(e.color,-.1)}}),n}return e}var fj=Math.round;function pj(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=nj(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var mj=1e-4;function hj(e){return e<mj&&e>-mj}function gj(e){return fj(e*1e3)/1e3}function _j(e){return fj(e*1e4)/1e4}function qde(e){return`matrix(`+gj(e[0])+`,`+gj(e[1])+`,`+gj(e[2])+`,`+gj(e[3])+`,`+_j(e[4])+`,`+_j(e[5])+`)`}var Jde={left:`start`,right:`end`,center:`middle`,middle:`middle`};function Yde(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function Xde(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Zde(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function vj(e){return e&&!!e.image}function Qde(e){return e&&!!e.svgElement}function yj(e){return vj(e)||Qde(e)}function bj(e){return e.type===`linear`}function xj(e){return e.type===`radial`}function Sj(e){return e&&(e.type===`linear`||e.type===`radial`)}function Cj(e){return`url(#`+e+`)`}function wj(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Tj(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*LO,i=xO(e.scaleX,1),a=xO(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+fj(o*LO)+`deg, `+fj(s*LO)+`deg)`),c.join(` `)}var $de=(function(){return zD.hasGlobalWindow&&uO(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<`u`?function(e){return Buffer.from(e).toString(`base64`)}:function(e){return null}})(),Ej=Array.prototype.slice;function Dj(e,t,n){return(t-e)*n+e}function Oj(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Dj(t[a],n[a],r);return e}function efe(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Dj(t[o][s],n[o][s],r)}return e}function kj(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Aj(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function tfe(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function nfe(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Ej.call(i[s]));for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function jj(e){if(rO(e)){var t=e.length;if(rO(e[0])){for(var n=[],r=0;r<t;r++)n.push(Ej.call(e[r]));return n}return Ej.call(e)}return e}function Mj(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function rfe(e){return rO(e&&e[0])?2:1}var Nj=0,Pj=1,Fj=2,Ij=3,Lj=4,Rj=5,zj=6;function Bj(e){return e===Lj||e===Rj}function Vj(e){return e===Pj||e===Fj}var Hj=[0,0,0,0],ife=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=zj,s=t;if(rO(t)){var c=rfe(t);o=c,(c===1&&!pO(t[0])||c===2&&!pO(t[0][0]))&&(a=!0)}else if(pO(t)&&!yO(t))o=Nj;else if(dO(t))if(!isNaN(+t))o=Nj;else{var l=nj(t);l&&(s=l,o=Ij)}else if(vO(t)){var u=Y({},s);u.colorStops=Z(t.colorStops,function(e){return{offset:e.offset,color:nj(e.color)}}),bj(t)?o=Lj:xj(t)&&(o=Rj),s=u}i===0?this.valType=o:(o!==this.valType||o===zj)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=uO(n)?n:mA[n]||RA(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Vj(r),c=Bj(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?nfe(d,f,r):c&&tfe(d.colorStops,f.colorStops))}if(!o&&r!==Rj&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===Nj?n[l].additiveValue=n[l].value-p:r===Ij?n[l].additiveValue=kj([],n[l].value,p,-1):Vj(r)&&(n[l].additiveValue=r===Pj?kj([],n[l].value,p,-1):Aj([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===Ij,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Hj:e[s];if((Vj(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Vj(i))i===Pj?Oj(g,f[r],p[r],h):efe(g,f[r],p[r],h);else if(Bj(i)){var _=f[r],v=p[r],y=i===Lj;e[s]={type:y?`linear`:`radial`,x:Dj(_.x,v.x,h),y:Dj(_.y,v.y,h),colorStops:Z(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Dj(e.offset,n.offset,h),color:Mj(Oj([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Dj(_.x2,v.x2,h),e[s].y2=Dj(_.y2,v.y2,h)):e[s].r=Dj(_.r,v.r,h)}else if(c)Oj(g,f[r],p[r],h),n||(e[s]=Mj(g));else{var b=Dj(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Nj?e[n]=e[n]+r:t===Ij?(nj(e[n],Hj),kj(Hj,Hj,r,1),e[n]=Mj(Hj)):t===Pj?kj(e[n],e[n],r,1):t===Fj&&Aj(e[n],e[n],r,1)},e}(),Uj=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){XD(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,sO(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new ife(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===Ij&&c&&(c=Mj(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,jj(c),r),this._trackKeys.push(o)}s.addKeyframe(e,jj(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new zA({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return Z(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=jj(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=sO(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function Wj(){return new Date().getTime()}var afe=function(e){zO(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Wj()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(pA(t),!e._paused&&e.update())}pA(t)},t.prototype.start=function(){this._running||(this._time=Wj(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=Wj(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=Wj()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new Uj(e,t.loop);return this.addAnimator(n),n},t}(ik),ofe=300,Gj=zD.domSupported,Kj=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:Z(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),qj={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Jj=!1;function Yj(e){var t=e.pointerType;return t===`pen`||t===`touch`}function sfe(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Xj(e){e&&(e.zrByTouch=!0)}function cfe(e,t){return xk(e.dom,new lfe(e,t),!0)}function Zj(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var lfe=function(){function e(e,t){this.stopPropagation=IO,this.stopImmediatePropagation=IO,this.preventDefault=IO,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Qj={mousedown:function(e){e=xk(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=xk(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=xk(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=xk(this.dom,e);var t=e.toElement||e.relatedTarget;Zj(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Jj=!0,e=xk(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Jj||(e=xk(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=xk(this.dom,e),Xj(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Qj.mousemove.call(this,e),Qj.mousedown.call(this,e)},touchmove:function(e){e=xk(this.dom,e),Xj(e),this.handler.processGesture(e,`change`),Qj.mousemove.call(this,e)},touchend:function(e){e=xk(this.dom,e),Xj(e),this.handler.processGesture(e,`end`),Qj.mouseup.call(this,e),new Date-+this.__lastTouchMoment<ofe&&Qj.click.call(this,e)},pointerdown:function(e){Qj.mousedown.call(this,e)},pointermove:function(e){Yj(e)||Qj.mousemove.call(this,e)},pointerup:function(e){Qj.mouseup.call(this,e)},pointerout:function(e){Yj(e)||Qj.mouseout.call(this,e)}};X([`click`,`dblclick`,`contextmenu`],function(e){Qj[e]=function(t){t=xk(this.dom,t),this.trigger(e,t)}});var $j={pointermove:function(e){Yj(e)||$j.mousemove.call(this,e)},pointerup:function(e){$j.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function ufe(e,t){var n=t.domHandlers;zD.pointerEventsSupported?X(Kj.pointer,function(r){eM(t,r,function(t){n[r].call(e,t)})}):(zD.touchEventsSupported&&X(Kj.touch,function(r){eM(t,r,function(i){n[r].call(e,i),sfe(t)})}),X(Kj.mouse,function(r){eM(t,r,function(i){i=bk(i),t.touching||n[r].call(e,i)})}))}function dfe(e,t){zD.pointerEventsSupported?X(qj.pointer,n):zD.touchEventsSupported||X(qj.mouse,n);function n(n){function r(r){r=bk(r),Zj(e,r.target)||(r=cfe(e,r),t.domHandlers[n].call(e,r))}eM(t,n,r,{capture:!0})}}function eM(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Sk(e.domTarget,t,n,r)}function tM(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Ede(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var nM=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),ffe=function(e){zO(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new nM(t,Qj),Gj&&(r._globalHandlerScope=new nM(document,$j)),ufe(r,r._localHandlerScope),r}return t.prototype.dispose=function(){tM(this._localHandlerScope),Gj&&tM(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Gj&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?dfe(this,t):tM(t)}},t}(ik),rM=1;zD.hasGlobalWindow&&(rM=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var iM=rM,aM=.4,oM=`#333`,sM=`#ccc`,pfe=`#eee`,cM=Ok,lM=5e-5;function uM(e){return e>lM||e<-lM}var dM=[],fM=[],pM=Dk(),mM=Math.abs,hM=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return uM(this.rotation)||uM(this.x)||uM(this.y)||uM(this.scaleX-1)||uM(this.scaleY-1)||uM(this.skewX)||uM(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(cM(n),this.invTransform=null);return}n||=Dk(),t?this.getLocalTransform(n):cM(n),e&&(t?Ak(n,e,n):kk(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(dM);var n=dM[0]<0?-1:1,r=dM[1]<0?-1:1,i=((dM[0]-n)*t+n)/dM[0]||0,a=((dM[1]-r)*t+r)/dM[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||Dk(),Pk(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Dk(),Ak(fM,e.invTransform,t),t=fM);var n=this.originX,r=this.originY;(n||r)&&(pM[4]=n,pM[5]=r,Ak(fM,t,pM),fM[4]-=n,fM[5]-=r,t=fM),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&ek(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&ek(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&mM(e[0]-1)>1e-10&&mM(e[3]-1)>1e-10?Math.sqrt(mM(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){_M(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Mk(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),gM=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function _M(e,t){for(var n=0;n<gM.length;n++){var r=gM[n];e[r]=t[r]}}function vM(e){yM||=new HA(100),e||=`12px sans-serif`;var t=yM.get(e);return t||(t={font:e,strWidthCache:new HA(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:BD.measureText(`国`,e).width,asciiCharWidth:BD.measureText(`a`,e).width},yM.put(e,t)),t}var yM;function mfe(e){if(!(bM>=xM)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=BD.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?bM=xM:i>2&&bM++,t}}var bM=0,xM=5;function SM(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=mfe(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function CM(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=BD.measureText(t,e.font).width,n.put(t,r)),r}function wM(e,t,n,r){var i=CM(vM(t),e),a=OM(t);return new Jk(EM(0,i,n),DM(0,a,r),i,a)}function TM(e,t,n,r){var i=((e||``)+``).split(`
|
||
`);if(i.length===1)return wM(i[0],t,n,r);for(var a=new Jk(0,0,0,0),o=0;o<i.length;o++){var s=wM(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function EM(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function DM(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function OM(e){return vM(e).stWideCharWidth}function kM(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function AM(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=kM(r[0],n.width),l+=kM(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var jM=`__zr_normal__`,MM=gM.concat([`ignore`]),hfe=iO(gM,function(e,t){return e[t]=!0,e},{ignore:!1}),NM={},gfe=new Jk(0,0,0,0),PM=[],FM=function(){function e(e){this.id=YD(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=gfe,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(NM,n,d):AM(NM,n,d),i.x=NM.x,i.y=NM.y,a=NM.align,o=NM.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=kM(f[0],d.width),m=kM(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new Jk(0,0,0,0);i.getLocalTransform(PM),Pk(PM,PM),Jk.copy(_,d),_.applyTransform(PM)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?sM:oM},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&nj(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,cj(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},Y(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(mO(e))for(var n=sO(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,MM)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(jM,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===jM;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(tO(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){XD(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=!!(s&&s.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var l=this._textContent,u=this._textGuide;return l&&l.useState(e,t,n,c),u&&u.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(`,`),f,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,h=this._textGuide;m&&m.useStates(e,t,d),h&&h.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=tO(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=tO(r,e),a=tO(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];Y(t,i),i.textConfig&&(n||={},Y(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=Y({},r?this.textConfig:n.textConfig),Y(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<MM.length;l++){var u=MM[l],d=i&&hfe[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)},e.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new hM,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},Y(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new Uj(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=tO(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){IM(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){IM(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=IM(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();nO(FM,ik),nO(FM,hM);function IM(e,t,n,r,i){n||={};var a=[];RM(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function LM(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function _fe(e){return rO(e[0])}function vfe(e,t,n){if(rO(t[n]))if(rO(e[n])||(e[n]=[]),gO(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),LM(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(_fe(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?LM(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else LM(a,i,o);a.length=i.length}else e[n]=t[n]}function yfe(e,t){return e===t||rO(e)&&rO(t)&&bfe(e,t)}function bfe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function RM(e,t,n,r,i,a,o,s){for(var c=sO(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!mO(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(mO(v)&&!rO(v)&&!vO(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}RM(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=tO(m,x);m.splice(S,1)}}if(i.force||(h=aO(h,function(e){return!yfe(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=jj(n[_]),vfe(n,r,_)}}var x=new Uj(n,!1,!1,d?aO(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}var zM=function(e){zO(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=tO(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=tO(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new Jk(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(Jk.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(FM);zM.prototype.type=`group`;var BM={},VM={};function xfe(e){delete VM[e]}function Sfe(e){if(!e)return!1;if(typeof e==`string`)return lj(e,1)<aM;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=lj(t[i].color,1);return n/=r,n<aM}return!1}var Cfe=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new Vde,a=n.renderer||`canvas`;BM[a]||(a=sO(BM)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var o=new BM[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!zD.node&&!zD.worker&&!s?new ffe(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?zD.touchEventsSupported:!!l,d=44,f;u&&(f=xO(n.pointerSize,d)),this.handler=new eA(i,o,c,o.root,f),this.animation=new afe({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Sfe(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=Wj();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=Wj();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()===`canvas`&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof zM&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,xfe(this.id))},e}();function HM(e,t){var n=new Cfe(YD(),e,t);return VM[n.id]=n,n}function wfe(e,t){BM[e]=t}var UM;function Tfe(e){if(typeof UM==`function`)return UM(e)}function Efe(e){UM=e}var WM=1e-4,GM=20;function Dfe(e){return e.replace(/^\s+|\s+$/g,``)}var KM=Math.min,qM=Math.max,JM=Math.abs;function YM(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var XM=Ofe;function Ofe(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return ZM(e,t,n)}function ZM(e,t,n){return dO(e)?Dfe(e).match(/%$/)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function QM(e,t,n){return t??=10,t=Math.min(Math.max(0,t),GM),e=(+e).toFixed(t),n?e:+e}function $M(e){return e.sort(function(e,t){return e-t}),e}function eN(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return kfe(e)}function kfe(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`),o=a<0?0:i-1-a;return Math.max(0,o-r)}function tN(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(JM(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Afe(e,t){var n=iO(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=10**t,i=Z(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=Z(i,function(e){return Math.floor(e)}),s=iO(o,function(e,t){return e+t},0),c=Z(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return Z(o,function(e){return e/r})}function jfe(e,t){var n=Math.max(eN(e),eN(t)),r=e+t;return n>GM?r:QM(r,n)}function nN(e){var t=Math.PI*2;return(e%t+t)%t}function rN(e){return e>-WM&&e<WM}var Mfe=/^(?:(\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 iN(e){if(e instanceof Date)return e;if(dO(e)){var t=Mfe.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function Nfe(e){return 10**aN(e)}function aN(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/10**t>=10&&t++,t}function oN(e,t){var n=aN(e),r=10**n,i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function sN(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function cN(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function lN(e){var t=parseFloat(e);return t==e&&(t!==0||!dO(e)||e.indexOf(`x`)<=0)?t:NaN}function uN(e){return!isNaN(lN(e))}function dN(){return Math.round(Math.random()*9)}function fN(e,t){return t===0?e:fN(t,e%t)}function pN(e,t){return e==null?t:t==null?e:e*t/fN(e,t)}var Pfe=`[ECharts] `,mN={},Ffe=typeof console<`u`&&console.warn&&console.log;function Ife(e,t,n){if(Ffe){if(n){if(mN[t])return;mN[t]=!0}console[e](Pfe+t)}}function hN(e,t){Ife(`error`,e,t)}function gN(e){throw Error(e)}function _N(e,t,n){return(t-e)*n+e}var vN=`series\0`,yN=`\0_ec_\0`;function bN(e){return e instanceof Array?e:e==null?[]:[e]}function xN(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var SN=`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`.split(`.`);function CN(e){return mO(e)&&!Q(e)&&!(e instanceof Date)?e.value:e}function Lfe(e){return mO(e)&&!(e instanceof Array)}function wN(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=jO();X(t,function(e,n){if(!mO(e)){t[n]=null;return}});var s=Rfe(e,o,n);return(r||i)&&zfe(s,e,o,t),r&&Bfe(s,t),r||i?Vfe(s,t,i):a&&Hfe(s,t),Ufe(s),s}function Rfe(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||kN(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function zfe(e,t,n,r){X(r,function(i,a){if(!(!i||i.id==null)){var o=EN(i.id),s=n.get(o);if(s!=null){var c=e[s];TO(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function Bfe(e,t){X(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!kN(n)&&!kN(a)&&TN(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function Vfe(e,t,n){X(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||kN(r.existing)||r.existing&&t.id!=null&&!TN(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function Hfe(e,t){X(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Ufe(e){var t=jO();X(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),X(e,function(e){var n=e.newOption;TO(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),X(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(mO(i)){if(a.name=i.name==null?r?r.name:vN+n:EN(i.name),r)a.id=EN(r.id);else if(i.id!=null)a.id=EN(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+ o++;while(t.get(a.id))}t.set(a.id,e)}})}function TN(e,t,n){var r=DN(t[e],null),i=DN(n[e],null);return r!=null&&i!=null&&r===i}function EN(e){return DN(e,``)}function DN(e,t){return e==null?t:dO(e)?e:pO(e)||fO(e)?e+``:t}function ON(e){var t=e.name;return!!(t&&t.indexOf(vN))}function kN(e){return e&&e.id!=null&&EN(e.id).indexOf(yN)===0}function Wfe(e){return yN+e}function Gfe(e,t,n){X(e,function(e){var r=e.newOption;mO(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Kfe(t,r,e.existing,n))})}function Kfe(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function qfe(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=DN(e[r].seriesId,null);if(a==null)return;for(var o=bN(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null)if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function AN(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Q(t.dataIndex)?Z(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Q(t.name)?Z(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function jN(){var e=`__ec_inner_`+ Jfe++;return function(t){return t[e]||(t[e]={})}}var Jfe=dN();function MN(e,t,n){var r=NN(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=FN(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function NN(e,t){var n;if(dO(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=jO(),a={},o=!1;return X(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&tO(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var PN={useDefault:!0,enableAll:!1,enableNone:!1},Yfe={useDefault:!1,enableAll:!0,enableNone:!0};function FN(e,t,n,r){r||=PN;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function IN(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Xfe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Zfe(e){return e===`auto`?zD.domSupported?`html`:`richText`:e||`html`}function LN(e,t){var n=jO(),r=[];return X(e,function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)}),{keys:r,buckets:n}}function RN(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(pO(r)){var o=_N(n||0,r,i);return QM(o,a?Math.max(eN(n||0),eN(r)):t)}else if(dO(r))return i<1?n:r;else{for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=_N(p,m,i);s[d]=QM(o,a?Math.max(eN(p),eN(m)):t)}}return s}}var zN=function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0):!1},e}();function BN(e){e.option=e.parentModel=e.ecModel=null}var Qfe=`.`,VN=`___EC__COMPONENT__CONTAINER___`,HN=`___EC__EXTENDED_CLASS___`;function UN(e){var t={main:``,sub:``};if(e){var n=e.split(Qfe);t.main=n[0]||``,t.sub=n[1]||``}return t}function $fe(e){TO(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function epe(e){return!!(e&&e[HN])}function WN(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return tpe(t)?n=function(e){J(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},dde(n,this)),Y(n.prototype,e),n[HN]=!0,n.extend=this.extend,n.superCall=ipe,n.superApply=ape,n.superClass=t,n}}function tpe(e){return uO(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function GN(e,t){e.extend=t.extend}var npe=Math.round(Math.random()*10);function rpe(e){var t=[`__\0is_clz`,npe++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function ipe(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function ape(e,t,n){return this.superClass.prototype[t].apply(e,n)}function KN(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){$fe(r),e.prototype.type=r;var i=UN(r);if(!i.sub)t[i.main]=e;else if(i.sub!==VN){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[VN]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=UN(e),r=[],i=t[n.main];return i&&i[VN]?X(i,function(e,t){t!==VN&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[UN(e).main]},e.getAllClassMainTypes=function(){var e=[];return X(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[UN(e).main];return n&&n[VN]};function n(e){var n=t[e.main];return(!n||!n[VN])&&(n=t[e.main]={},n[VN]=!0),n}}function qN(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&tO(r,s)>=0||i&&tO(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var ope=qN([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),spe=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return ope(this,e,t)},e}(),JN=new HA(50);function cpe(e){if(typeof e==`string`){var t=JN.get(e);return t&&t.image}else return e}function YN(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=JN.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!ZN(t)&&a.pending.push(o)):(t=BD.loadImage(e,XN,XN),t.__zrImageSrc=e,JN.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function XN(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function ZN(e){return e&&e.width&&e.height}var QN=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function lpe(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
||
`);a=$N(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)eP(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
||
`),e.isTruncated=s}function $N(e,t,n,r){r||={};var i=Y({},r);n=xO(n,`...`),i.maxIterations=xO(r.maxIterations,2);var a=i.minChar=xO(r.minChar,0),o=i.fontMeasureInfo=vM(t),s=o.asciiCharWidth;i.placeholder=xO(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=CM(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function eP(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=CM(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?upe(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=CM(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function upe(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=SM(n,e.charCodeAt(i));return i}function dpe(e,t,n,r){var i=sP(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=OM(l),f=xO(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?rP(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
|
||
`):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=$N(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)eP(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=vM(l),S=0;S<_.length;S++)w=Math.max(CM(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var fpe=function(){function e(){}return e}(),tP=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),ppe=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function mpe(e,t,n,r,i){var a=new ppe,o=sP(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=QN.lastIndex=0,h;(h=QN.exec(o))!=null;){var g=h.index;g>m&&nP(a,o.substring(m,g),t,p),nP(a,h[2],t,p,h[1]),m=QN.lastIndex}m<o.length&&nP(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,M=j?j[1]+j[3]:0,N=k.font=A.font||t.font;k.contentHeight=OM(N);var P=xO(A.height,k.contentHeight);if(k.innerHeight=P,j&&(P+=j[0]+j[2]),k.height=P,k.lineHeight=SO(A.lineHeight,t.lineHeight,P),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var F=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<F;break outer}var I=A.width,L=I==null||I===`auto`;if(typeof I==`string`&&I.charAt(I.length-1)===`%`)k.percentWidth=I,_.push(k),k.contentWidth=CM(vM(N),k.text);else{if(L){var R=A.backgroundColor,z=R&&R.image;z&&(z=cpe(z),ZN(z)&&(k.width=Math.max(k.width,z.width*P/z.height)))}var B=b&&u!=null?u-D:null;B!=null&&B<k.width?!L||B<M?(k.text=``,k.width=k.contentWidth=0):(lpe(S,k.text,B-M,N,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=CM(vM(N),k.text)):k.contentWidth=CM(vM(N),k.text)}k.width+=M,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=xO(u,y),a.outerHeight=a.height=xO(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],V=k.percentWidth;k.width=parseInt(V,10)/100*a.width}return a}function nP(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=kM(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
|
||
`),l=!0),r.accumWidth=m}else{var h=rP(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
|
||
`);for(var g=vM(c),_=0;_<u.length;_++){var v=u[_],y=new fpe;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:CM(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new tP)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new tP([y]))}}function hpe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var gpe=iO(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function _pe(e){return hpe(e)?!!gpe[e]:!0}function rP(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=vM(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
|
||
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=SM(d,p.charCodeAt(0)),h=r?!1:!_pe(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function iP(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;Jk.set(aP,EM(n,o,i),DM(r,s,a),o,s),Jk.intersect(t,aP,null,oP);var c=oP.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=EM(c.x,c.width,i,!0),e.baseY=DM(c.y,c.height,a,!0)}}var aP=new Jk(0,0,0,0),oP={outIntersectRect:{},clamp:!0};function sP(e){return e==null?e=``:e+=``}function vpe(e){var t=sP(e.text),n=e.font;return cP(e,CM(vM(n),t),OM(n),null)}function cP(e,t,n,r){var i=new Jk(EM(e.x||0,t,e.textAlign),DM(e.y||0,n,e.textBaseline),t,n),a=r??(lP(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function lP(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var uP=`__zr_style_`+Math.round(Math.random()*10),dP={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},fP={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};dP[uP]=!0;var pP=[`z`,`z2`,`invisible`],ype=[`invisible`],mP=function(e){zO(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=sO(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&_P(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new Jk(0,0,0,0),t?Jk.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Jk(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:Y(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return NO(dP,e)},t.prototype.useStyle=function(e){e[uP]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[uP]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,pP)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.style?a?i?c=n.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(c,n.style)):s&&(c=r.style),c)if(a){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=sO(l),d=0;d<u.length;d++){var f=u[d];f in c&&(c[f]=c[f],this.style[f]=l[f])}for(var p=sO(c),d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(t,{style:c},o,this.getAnimationStyleProps())}else this.useStyle(c);for(var m=this.__inHover?ype:pP,d=0;d<m.length;d++){var f=m[d];n&&n[f]!=null?this[f]=n[f]:s&&r[f]!=null&&(this[f]=r[f])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return Y(e,t),e},t.prototype.getAnimationStyleProps=function(){return fP},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(FM),hP=new Jk(0,0,0,0),gP=new Jk(0,0,0,0);function _P(e,t,n){return hP.copy(e.getBoundingRect()),e.transform&&hP.applyTransform(e.transform),gP.width=t,gP.height=n,!hP.intersect(gP)}var vP=Math.min,yP=Math.max,bP=Math.sin,xP=Math.cos,SP=Math.PI*2,CP=BO(),wP=BO(),TP=BO();function EP(e,t,n){if(e.length!==0){for(var r=e[0],i=r[0],a=r[0],o=r[1],s=r[1],c=1;c<e.length;c++)r=e[c],i=vP(i,r[0]),a=yP(a,r[0]),o=vP(o,r[1]),s=yP(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function DP(e,t,n,r,i,a){i[0]=vP(e,n),i[1]=vP(t,r),a[0]=yP(e,n),a[1]=yP(t,r)}var OP=[],kP=[];function AP(e,t,n,r,i,a,o,s,c,l){var u=kA,d=EA,f=u(e,n,i,o,OP);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,OP[p]);c[0]=vP(m,c[0]),l[0]=yP(m,l[0])}f=u(t,r,a,s,kP);for(var p=0;p<f;p++){var h=d(t,r,a,s,kP[p]);c[1]=vP(h,c[1]),l[1]=yP(h,l[1])}c[0]=vP(e,c[0]),l[0]=yP(e,l[0]),c[0]=vP(o,c[0]),l[0]=yP(o,l[0]),c[1]=vP(t,c[1]),l[1]=yP(t,l[1]),c[1]=vP(s,c[1]),l[1]=yP(s,l[1])}function jP(e,t,n,r,i,a,o,s){var c=PA,l=MA,u=yP(vP(c(e,n,i),1),0),d=yP(vP(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=vP(e,i,f),o[1]=vP(t,a,p),s[0]=yP(e,i,f),s[1]=yP(t,a,p)}function MP(e,t,n,r,i,a,o,s,c){var l=tk,u=nk,d=Math.abs(i-a);if(d%SP<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(CP[0]=xP(i)*n+e,CP[1]=bP(i)*r+t,wP[0]=xP(a)*n+e,wP[1]=bP(a)*r+t,l(s,CP,wP),u(c,CP,wP),i%=SP,i<0&&(i+=SP),a%=SP,a<0&&(a+=SP),i>a&&!o?a+=SP:i<a&&o&&(i+=SP),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(TP[0]=xP(p)*n+e,TP[1]=bP(p)*r+t,l(s,TP,s),u(c,TP,c))}var NP={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},PP=[],FP=[],IP=[],LP=[],RP=[],zP=[],BP=Math.min,VP=Math.max,HP=Math.cos,UP=Math.sin,WP=Math.abs,GP=Math.PI,KP=GP*2,qP=typeof Float32Array<`u`,JP=[];function YP(e){return Math.round(e/GP*1e8)/1e8%2*GP}function XP(e,t){var n=YP(e[0]);n<0&&(n+=KP);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=KP?i=n+KP:t&&n-i>=KP?i=n-KP:!t&&n>i?i=n+(KP-YP(n-i)):t&&n<i&&(i=n-(KP-YP(i-n))),e[0]=n,e[1]=i}var ZP=function(){function e(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 e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=WP(n/iM/e)||0,this._uy=WP(n/iM/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(NP.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=WP(e-this._xi),r=WP(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(NP.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(NP.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(NP.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),JP[0]=r,JP[1]=i,XP(JP,a),r=JP[0],i=JP[1];var o=i-r;return this.addData(NP.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=HP(i)*n+e,this._yi=UP(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(NP.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(NP.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&qP&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(qP&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,qP&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){IP[0]=IP[1]=RP[0]=RP[1]=Number.MAX_VALUE,LP[0]=LP[1]=zP[0]=zP[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case NP.M:t=r=e[a++],n=i=e[a++],RP[0]=r,RP[1]=i,zP[0]=r,zP[1]=i;break;case NP.L:DP(t,n,e[a],e[a+1],RP,zP),t=e[a++],n=e[a++];break;case NP.C:AP(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],RP,zP),t=e[a++],n=e[a++];break;case NP.Q:jP(t,n,e[a++],e[a++],e[a],e[a+1],RP,zP),t=e[a++],n=e[a++];break;case NP.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=HP(f)*u+c,i=UP(f)*d+l),MP(c,l,u,d,f,p,m,RP,zP),t=HP(p)*u+c,n=UP(p)*d+l;break;case NP.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];DP(r,i,r+h,i+g,RP,zP);break;case NP.Z:t=r,n=i;break}tk(IP,IP,RP),nk(LP,LP,zP)}return a===0&&(IP[0]=IP[1]=LP[0]=LP[1]=0),new Jk(IP[0],IP[1],LP[0]-IP[0],LP[1]-IP[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case NP.M:i=o=e[d++],a=s=e[d++];break;case NP.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(WP(_)>n||WP(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case NP.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=Hde(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case NP.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Wde(i,a,y,b,h,g,10),i=h,a=g;break;case NP.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=HP(D)*T+C,s=UP(D)*E+w),m=VP(T,E)*BP(KP,Math.abs(O)),i=HP(k)*T+C,a=UP(k)*E+w;break;case NP.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case NP.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==NP.L&&v>0&&(e.lineTo(y,b),v=0),S){case NP.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case NP.L:u=n[x++],d=n[x++];var w=WP(u-c),T=WP(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case NP.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],N=n[x++],P=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;AA(c,k,j,N,D,PP),AA(l,A,M,P,D,FP),e.bezierCurveTo(PP[1],FP[1],PP[2],FP[2],PP[3],FP[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,N,P),c=N,l=P;break;case NP.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;FA(c,k,j,D,PP),FA(l,A,M,D,FP),e.quadraticCurveTo(PP[1],FP[1],PP[2],FP[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case NP.A:var F=n[x++],I=n[x++],L=n[x++],R=n[x++],z=n[x++],B=n[x++],V=n[x++],H=!n[x++],U=L>R?L:R,ee=WP(L-R)>.001,te=z+B,W=!1;if(f){var E=p[g++];h+E>_&&(te=z+B*(_-h)/E,W=!0),h+=E}if(ee&&e.ellipse?e.ellipse(F,I,L,R,V,z,te,H):e.arc(F,I,U,z,te,H),W)break lo;C&&(o=HP(z)*L+F,s=UP(z)*R+I),c=HP(te)*L+F,l=UP(te)*R+I;break;case NP.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var ne=n[x++],re=n[x++];if(f){var E=p[g++];if(h+E>_){var ie=_-h;e.moveTo(u,d),e.lineTo(u+BP(ie,ne),d),ie-=ne,ie>0&&e.lineTo(u+ne,d+BP(ie,re)),ie-=re,ie>0&&e.lineTo(u+VP(ne-ie,0),d+re),ie-=ne,ie>0&&e.lineTo(u,d+VP(re-ie,0));break lo}h+=E}e.rect(u,d,ne,re);break;case NP.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=NP,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function QP(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function $P(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:jA(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function eF(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:IA(e,t,n,r,i,a,s,c,null)<=l/2}var tF=Math.PI*2;function nF(e){return e%=tF,e<0&&(e+=tF),e}var rF=Math.PI*2;function iF(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%rF<1e-4)return!0;if(a){var d=r;r=nF(i),i=nF(d)}else r=nF(r),i=nF(i);r>i&&(i+=rF);var f=Math.atan2(c,s);return f<0&&(f+=rF),f>=r&&f<=i||f+rF>=r&&f+rF<=i}function aF(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var oF=ZP.CMD,sF=Math.PI*2,cF=1e-4;function lF(e,t){return Math.abs(e-t)<cF}var uF=[-1,-1,-1],dF=[-1,-1];function fF(){var e=dF[0];dF[0]=dF[1],dF[1]=e}function pF(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=OA(t,r,a,s,l,uF);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=uF[h],_=g===0||g===1?.5:1;EA(e,n,i,o,g)<c||(f<0&&(f=kA(t,r,a,s,dF),dF[1]<dF[0]&&f>1&&fF(),p=EA(t,r,a,s,dF[0]),f>1&&(m=EA(t,r,a,s,dF[1]))),f===2?g<dF[0]?d+=p<t?_:-_:g<dF[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<dF[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function mF(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=Ude(t,r,a,s,uF);if(c===0)return 0;var l=PA(t,r,a);if(l>=0&&l<=1){for(var u=0,d=MA(t,r,a,l),f=0;f<c;f++){var p=uF[f]===0||uF[f]===1?.5:1,m=MA(e,n,i,uF[f]);m<o||(uF[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=uF[0]===0||uF[0]===1?.5:1,m=MA(e,n,i,uF[0]);return m<o?0:a<t?p:-p}}function hF(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);uF[0]=-c,uF[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=sF-1e-4){r=0,i=sF;var u=a?1:-1;return o>=uF[0]+e&&o<=uF[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=sF,i+=sF);for(var f=0,p=0;p<2;p++){var m=uF[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=sF+h),(h>=r&&h<=i||h+sF>=r&&h+sF<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function gF(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===oF.M&&m>1&&(n||(s+=aF(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case oF.M:u=a[m++],d=a[m++],c=u,l=d;break;case oF.L:if(n){if(QP(c,l,a[m],a[m+1],t,r,i))return!0}else s+=aF(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case oF.C:if(n){if($P(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=pF(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case oF.Q:if(n){if(eF(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=mF(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case oF.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=aF(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(iF(_,v,b,x,x+S,C,t,w,i))return!0}else s+=hF(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case oF.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(QP(u,d,f,d,t,r,i)||QP(f,d,f,p,t,r,i)||QP(f,p,u,p,t,r,i)||QP(u,p,u,d,t,r,i))return!0}else s+=aF(f,d,f,p,r,i),s+=aF(u,p,u,d,r,i);break;case oF.Z:if(n){if(QP(c,l,u,d,t,r,i))return!0}else s+=aF(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!lF(l,d)&&(s+=aF(c,l,u,d,r,i)||0),s!==0}function _F(e,t,n){return gF(e,0,!1,t,n)}function vF(e,t,n,r){return gF(e,t,!0,n,r)}var yF=eO({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},dP),bF={style:eO({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fP.style)},xF=gM.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),SF=function(e){zO(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<xF.length;++s)i[xF[s]]=this[xF[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=sO(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?Y(this.style,o):this.useStyle(o):a===`shape`?Y(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(dO(e)){var t=lj(e,0);return t>.5?oM:t>.2?pfe:sM}else if(e)return sM}return oM},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(dO(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==lj(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ZP(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),vF(a,o/s,e,t)))return!0}if(this.hasFill())return _F(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:Y(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return NO(yF,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Y({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=Y({},r.shape),Y(c,n.shape)):(c=Y({},i?this.shape:r.shape),Y(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=Y({},this.shape);for(var l={},u=sO(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return bF},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){zO(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return ZD(e.style)},n.prototype.getDefaultShape=function(){return ZD(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(mP),CF=eO({strokeFirst:!0,font:tde,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},yF),wF=function(e){zO(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return lP(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return NO(CF,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=vpe(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(mP);wF.prototype.type=`tspan`;var TF=eO({x:0,y:0},dP),EF={style:eO({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fP.style)};function DF(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var OF=function(e){zO(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return NO(TF,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=DF(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return EF},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new Jk(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(mP);OF.prototype.type=`image`;function kF(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var AF=Math.round;function jF(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(AF(r*2)===AF(i*2)&&(e.x1=e.x2=NF(r,s,!0)),AF(a*2)===AF(o*2)&&(e.y1=e.y2=NF(a,s,!0)),e):e}}function MF(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=NF(r,s,!0),e.y=NF(i,s,!0),e.width=Math.max(NF(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(NF(i+o,s,!1)-e.y,o===0?0:1),e):e}}function NF(e,t,n){if(!t)return e;var r=AF(e*2);return(r+AF(t))%2==0?r/2:(r+(n?1:-1))/2}var bpe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),xpe={},PF=function(e){zO(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new bpe},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=MF(xpe,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?kF(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(SF);PF.prototype.type=`rect`;var FF={fill:`#000`},IF=2,LF={},Spe={style:eO({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},fP.style)},RF=function(e){zO(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=FF,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Tpe(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Jk(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||FF},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return Y(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=sO(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},Y(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Spe},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;iP(LF,r.overflowRect,i,a,o,s),i=LF.baseX,a=LF.baseY;var c=dpe(qF(e),e,LF.outerWidth,LF.outerHeight),l=JF(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=DM(a,c.contentHeight,s);if(l||n){var _=EM(i,f,o),v=DM(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=KF(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=GF(`fill`in e?e.fill:(x=!0,r.fill)),C=WF(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=IF,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(wF),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,VF(D,e),g+=m,E.setBoundingRect(cP(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;iP(LF,t.overflowRect,i,a,n,r),i=LF.baseX,a=LF.baseY;var o=mpe(qF(e),e,LF.outerWidth,LF.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=EM(i,c,n),f=DM(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;JF(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&JF(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=KF(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(wF),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=GF(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=WF(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=IF,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=SO(s.opacity,t.opacity,1),VF(p,s),y&&(p.lineWidth=SO(s.lineWidth,t.lineWidth,g),p.lineDash=xO(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(cP(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(PF),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=xO(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(OF),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=xO(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=SO(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return HF(e)&&(t=[e.fontStyle,e.fontWeight,BF(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&EO(t)||e.textFont||e.font},t}(mP),Cpe={left:!0,right:1,center:1},wpe={top:1,bottom:1,middle:1},zF=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function BF(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function VF(e,t){for(var n=0;n<zF.length;n++){var r=zF[n],i=t[r];i!=null&&(e[r]=i)}}function HF(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Tpe(e){return UF(e),X(e.rich,UF),e}function UF(e){if(e){e.font=RF.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Cpe[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||wpe[n]?n:`top`,e.padding&&=wO(e.padding)}}function WF(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function GF(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function KF(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function qF(e){var t=e.text;return t!=null&&(t+=``),t}function JF(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var YF=jN(),XF=function(e,t,n,r){if(r){var i=YF(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=YF(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},ZF=1,QF={},$F=jN(),eI=jN(),tI=[`emphasis`,`blur`,`select`],nI=[`normal`,`emphasis`,`blur`,`select`],rI=`highlight`,iI=`downplay`,aI=`select`,oI=`unselect`,sI=`toggleSelect`,cI=`selectchanged`;function lI(e){return e!=null&&e!==`none`}function uI(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function dI(e){uI(e,`emphasis`,2)}function fI(e){e.hoverState===2&&uI(e,`normal`,0)}function pI(e){uI(e,`blur`,1)}function mI(e){e.hoverState===1&&uI(e,`normal`,0)}function Epe(e){e.selected=!0}function Dpe(e){e.selected=!1}function hI(e,t,n){t(e,n)}function gI(e,t,n){hI(e,t,n),e.isGroup&&e.traverse(function(e){hI(e,t,n)})}function _I(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Ope(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function kpe(e,t,n,r){var i=n&&tO(n,`select`)>=0,a=!1;if(e instanceof SF){var o=$F(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(lI(s)||lI(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=Y({},r),l=Y({},l),l.fill=s):!lI(l.fill)&&lI(s)?(a=!0,r=Y({},r),l=Y({},l),l.fill=dj(s)):!lI(l.stroke)&&lI(c)&&(a||(r=Y({},r),l=Y({},l)),l.stroke=dj(c)),r.style=l}}if(r&&r.z2==null){a||(r=Y({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Ape(e,t,n){if(n&&n.z2==null){n=Y({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function jpe(e,t,n){var r=tO(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Ope(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=Y({},n),o=Y({opacity:r?i:a.opacity*.1},o),n.style=o),n}function vI(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return kpe(this,e,t,n);if(e===`blur`)return jpe(this,e,n);if(e===`select`)return Ape(this,e,n)}return n}function yI(e){e.stateProxy=vI;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=vI),n&&(n.stateProxy=vI)}function bI(e,t){!OI(e,t)&&!e.__highByOuter&&gI(e,dI)}function xI(e,t){!OI(e,t)&&!e.__highByOuter&&gI(e,fI)}function SI(e,t){e.__highByOuter|=1<<(t||0),gI(e,dI)}function CI(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&gI(e,fI)}function wI(e){gI(e,pI)}function TI(e){gI(e,mI)}function EI(e){gI(e,Epe)}function DI(e){gI(e,Dpe)}function OI(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function kI(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=eI(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){mI(e)}),o&&n.push(i)),a.isBlured=!1}),X(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function AI(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&TI(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||pI(e)}),rO(t))a(e.getData(),t);else if(mO(t))for(var u=sO(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),eI(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function jI(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){eI(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){pI(e)})}}}function Mpe(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=AN(i,t);a=(Q(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=YF(o);AI(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&AI(r,u,d,n)}}}function MI(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(YF(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Npe(e,t,n){var r=YF(e),i=MI(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&jI(r.componentMainType,r.componentIndex,n),X(a,function(e){return bI(e,t)})):(AI(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&jI(r.componentMainType,r.componentIndex,n),bI(e,t))}function Ppe(e,t,n){kI(n);var r=YF(e),i=MI(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?X(i,function(e){return xI(e,t)}):xI(e,t)}function Fpe(e,t,n){if(VI(t)){var r=t.dataType,i=AN(e.getData(r),t);Q(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function NI(e){X(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?EI(t):DI(t)})})}function Ipe(e){var t=[];return e.eachSeries(function(e){X(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function PI(e,t,n){zI(e,!0),gI(e,yI),II(e,t,n)}function Lpe(e){zI(e,!1)}function FI(e,t,n,r){r?Lpe(e):PI(e,t,n)}function II(e,t,n){var r=YF(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var LI=[`emphasis`,`blur`,`select`],Rpe={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function RI(e,t,n,r){n||=`itemStyle`;for(var i=0;i<LI.length;i++){var a=LI[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[Rpe[n]]()}}function zI(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function BI(e){return!!(e&&e.__highDownDispatcher)}function zpe(e,t,n){var r=YF(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function Bpe(e){var t=QF[e];return t==null&&ZF<=32&&(t=QF[e]=ZF++),t}function VI(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function HI(e){var t=e.type;return t===`highlight`||t===`downplay`}function Vpe(e){var t=$F(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var UI=ZP.CMD,Hpe=[[],[],[]],WI=Math.sqrt,Upe=Math.atan2;function GI(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=UI.M,d=UI.C,f=UI.L,p=UI.R,m=UI.A,h=UI.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=WI(t[0]*t[0]+t[1]*t[1]),y=WI(t[2]*t[2]+t[3]*t[3]),b=Upe(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],ek(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],ek(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Hpe[c];x[0]=n[o++],x[1]=n[o++],ek(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var KI=Math.sqrt,qI=Math.sin,JI=Math.cos,YI=Math.PI;function XI(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ZI(e,t){return(e[0]*t[0]+e[1]*t[1])/(XI(e)*XI(t))}function QI(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(ZI(e,t))}function $I(e,t,n,r,i,a,o,s,c,l,u){var d=YI/180*c,f=JI(d)*(e-n)/2+qI(d)*(t-r)/2,p=-1*qI(d)*(e-n)/2+JI(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=KI(m),s*=KI(m));var h=(i===a?-1:1)*KI((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+JI(d)*g-qI(d)*_,y=(t+r)/2+qI(d)*g+JI(d)*_,b=QI([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=QI(x,S);if(ZI(x,S)<=-1&&(C=YI),ZI(x,S)>=1&&(C=0),C<0){var w=Math.round(C/YI*1e6)/1e6;C=YI*2+w%2*YI}u.addData(l,v,y,o,s,b,C,d,a)}var Wpe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Gpe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Kpe(e){var t=new ZP;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=ZP.CMD,c=e.match(Wpe);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Gpe)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,$I(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,$I(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var eL=function(e){zO(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(SF);function tL(e){return e.setData!=null}function nL(e,t){var n=Kpe(e),r=Y({},t);return r.buildPath=function(e){var t=tL(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){GI(n,e),this.dirtyShape()},r}function rL(e,t){return new eL(nL(e,t))}function qpe(e,t){var n=nL(e,t);return function(e){zO(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(eL)}function Jpe(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new SF(t);return o.createPathProxy(),o.buildPath=function(e){if(tL(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}function iL(e,t){t||={};var n=new SF;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?GI(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var Ype=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),aL=function(e){zO(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Ype},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(SF);aL.prototype.type=`circle`;var Xpe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),oL=function(e){zO(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Xpe},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(SF);oL.prototype.type=`ellipse`;var sL=Math.PI,cL=sL*2,lL=Math.sin,uL=Math.cos,Zpe=Math.acos,dL=Math.atan2,fL=Math.abs,pL=Math.sqrt,mL=Math.max,hL=Math.min,gL=1e-4;function Qpe(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<gL))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function _L(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/pL(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*pL(mL(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function $pe(e){var t;if(Q(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function eme(e,t){var n,r=mL(t.r,0),i=mL(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=fL(c-s),p=f>cL&&f%cL;if(p>gL&&(f=p),!(r>gL))e.moveTo(l,u);else if(f>cL-gL)e.moveTo(l+r*uL(s),u+r*lL(s)),e.arc(l,u,r,s,c,!d),i>gL&&(e.moveTo(l+i*uL(c),u+i*lL(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*uL(s),j=r*lL(s),M=i*uL(c),N=i*lL(c),P=f>gL;if(P){var F=t.cornerRadius;F&&(n=$pe(F),m=n[0],h=n[1],g=n[2],_=n[3]);var I=fL(r-i)/2;if(v=hL(I,g),y=hL(I,_),b=hL(I,m),x=hL(I,h),w=S=mL(v,y),T=C=mL(b,x),(S>gL||C>gL)&&(E=r*uL(c),D=r*lL(c),O=i*uL(s),k=i*lL(s),f<sL)){var L=Qpe(A,j,O,k,E,D,M,N);if(L){var R=A-L[0],z=j-L[1],B=E-L[0],V=D-L[1],H=1/lL(Zpe((R*B+z*V)/(pL(R*R+z*z)*pL(B*B+V*V)))/2),U=pL(L[0]*L[0]+L[1]*L[1]);w=hL(S,(r-U)/(H+1)),T=hL(C,(i-U)/(H-1))}}}if(!P)e.moveTo(l+A,u+j);else if(w>gL){var ee=hL(g,w),te=hL(_,w),W=_L(O,k,A,j,r,ee,d),ne=_L(E,D,M,N,r,te,d);e.moveTo(l+W.cx+W.x0,u+W.cy+W.y0),w<S&&ee===te?e.arc(l+W.cx,u+W.cy,w,dL(W.y0,W.x0),dL(ne.y0,ne.x0),!d):(ee>0&&e.arc(l+W.cx,u+W.cy,ee,dL(W.y0,W.x0),dL(W.y1,W.x1),!d),e.arc(l,u,r,dL(W.cy+W.y1,W.cx+W.x1),dL(ne.cy+ne.y1,ne.cx+ne.x1),!d),te>0&&e.arc(l+ne.cx,u+ne.cy,te,dL(ne.y1,ne.x1),dL(ne.y0,ne.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>gL)||!P)e.lineTo(l+M,u+N);else if(T>gL){var ee=hL(m,T),te=hL(h,T),W=_L(M,N,E,D,i,-te,d),ne=_L(A,j,O,k,i,-ee,d);e.lineTo(l+W.cx+W.x0,u+W.cy+W.y0),T<C&&ee===te?e.arc(l+W.cx,u+W.cy,T,dL(W.y0,W.x0),dL(ne.y0,ne.x0),!d):(te>0&&e.arc(l+W.cx,u+W.cy,te,dL(W.y0,W.x0),dL(W.y1,W.x1),!d),e.arc(l,u,i,dL(W.cy+W.y1,W.cx+W.x1),dL(ne.cy+ne.y1,ne.cx+ne.x1),d),ee>0&&e.arc(l+ne.cx,u+ne.cy,ee,dL(ne.y1,ne.x1),dL(ne.y0,ne.x0),!d))}else e.lineTo(l+M,u+N),e.arc(l,u,i,c,s,d)}e.closePath()}}}var tme=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),vL=function(e){zO(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new tme},t.prototype.buildPath=function(e,t){eme(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(SF);vL.prototype.type=`sector`;var nme=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),yL=function(e){zO(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new nme},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(SF);yL.prototype.type=`ring`;function rme(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)tk(u,u,e[f]),nk(d,d,e[f]);tk(u,u,r[0]),nk(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(HO(e[f]));continue}else c=e[f-1],l=e[f+1];KO(a,l,c),JO(a,a,t);var h=XO(m,c),g=XO(m,l),_=h+g;_!==0&&(h/=_,g/=_),JO(o,a,-h),JO(s,a,g);var v=WO([],m,o),y=WO([],m,s);r&&(nk(v,v,u),tk(v,v,d),nk(y,y,u),tk(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function bL(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=rme(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var ime=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),xL=function(e){zO(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ime},t.prototype.buildPath=function(e,t){bL(e,t,!0)},t}(SF);xL.prototype.type=`polygon`;var ame=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),SL=function(e){zO(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new ame},t.prototype.buildPath=function(e,t){bL(e,t,!1)},t}(SF);SL.prototype.type=`polyline`;var ome={},sme=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),CL=function(e){zO(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new sme},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=jF(ome,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(SF);CL.prototype.type=`line`;var wL=[],cme=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function TL(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?DA:EA)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?DA:EA)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?NA:MA)(e.x1,e.cpx1,e.x2,t),(n?NA:MA)(e.y1,e.cpy1,e.y2,t)]}var EL=function(e){zO(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new cme},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(FA(n,o,i,u,wL),o=wL[1],i=wL[2],FA(r,s,a,u,wL),s=wL[1],a=wL[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(AA(n,o,c,i,u,wL),o=wL[1],c=wL[2],i=wL[3],AA(r,s,l,a,u,wL),s=wL[1],l=wL[2],a=wL[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return TL(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=TL(this.shape,e,!0);return YO(t,t)},t}(SF);EL.prototype.type=`bezier-curve`;var lme=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),DL=function(e){zO(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new lme},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(SF);DL.prototype.type=`arc`;var OL=function(e){zO(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),SF.prototype.getBoundingRect.call(this)},t}(SF),kL=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),AL=function(e){zO(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(kL),jL=function(e){zO(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(kL),ML=Math.min,ume=Math.max,NL=Math.abs,PL=[0,0],FL=[0,0],IL=Xk(),LL=IL.minTv,RL=IL.maxTv,zL=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Fk;for(var n=0;n<2;n++)this._axes[n]=new Fk;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);Fk.sub(r[0],n[1],n[0]),Fk.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&Fk.set(t,0,0),IL.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!IL.negativeSize&&Fk.copy(t,r?IL.useDir?IL.dirMinTv:LL:RL),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,PL),e._getProjMinMaxOnAxis(a,t._corners,FL),IL.negativeSize||PL[1]<FL[0]||PL[0]>FL[1]){if(i=!1,IL.negativeSize||n)return i;var s=NL(FL[0]-PL[1]),c=NL(PL[0]-FL[1]);ML(s,c)>RL.len()&&(s<c?Fk.scale(RL,o,-s*r):Fk.scale(RL,o,c*r))}else if(!n){var s=NL(FL[0]-PL[1]),c=NL(PL[0]-FL[1]);(IL.useDir||ML(s,c)<LL.len())&&((s<c||!IL.bidirectional)&&(Fk.scale(LL,o,s*r),IL.useDir&&IL.calcDirMTV()),(s>=c||!IL.bidirectional)&&(Fk.scale(LL,o,-c*r),IL.useDir&&IL.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=ML(l,o),s=ume(l,s)}n[0]=o+IL.touchThreshold,n[1]=s-IL.touchThreshold,IL.negativeSize=n[1]<n[0]},e}(),dme=[],fme=function(e){zO(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Jk(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(dme)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(mP),BL=jN();function VL(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=xO(r.duration,200),u=xO(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),uO(d)&&(d=d(n,i)),uO(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function HL(e,t,n,r,i,a,o){var s=!1,c;uO(i)?(o=a,a=i,i=null):mO(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=VL(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function UL(e,t,n,r,i,a){HL(`update`,e,t,n,r,i,a)}function WL(e,t,n,r,i,a){HL(`enter`,e,t,n,r,i,a)}function GL(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function KL(e,t,n,r,i,a){GL(e)||HL(`leave`,e,t,n,r,i,a)}function qL(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),KL(e,{style:{opacity:0}},t,n,r)}function JL(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||qL(e,t,n,r)}):qL(e,t,n,r)}function YL(e){BL(e).oldStyle=e.style}function pme(e){return BL(e).oldStyle}var XL=s({Arc:()=>DL,BezierCurve:()=>EL,BoundingRect:()=>Jk,Circle:()=>aL,CompoundPath:()=>OL,Ellipse:()=>oL,Group:()=>zM,Image:()=>OF,IncrementalDisplayable:()=>fme,Line:()=>CL,LinearGradient:()=>AL,OrientedBoundingRect:()=>zL,Path:()=>SF,Point:()=>Fk,Polygon:()=>xL,Polyline:()=>SL,RadialGradient:()=>jL,Rect:()=>PF,Ring:()=>yL,Sector:()=>vL,Text:()=>RF,WH:()=>$L,XY:()=>QL,applyTransform:()=>uR,calcZ2Range:()=>AR,clipPointsByRect:()=>mR,clipRectByRect:()=>yme,createIcon:()=>hR,ensureCopyRect:()=>DR,ensureCopyTransform:()=>OR,expandOrShrinkRect:()=>yR,extendPath:()=>gme,extendShape:()=>mme,getShapeClass:()=>tR,getTransform:()=>lR,groupTransition:()=>pR,initProps:()=>WL,isBoundingRectAxisAligned:()=>TR,isElementRemoved:()=>GL,lineLineIntersect:()=>_R,linePolygonIntersect:()=>gR,makeImage:()=>rR,makePath:()=>nR,mergePath:()=>aR,registerShape:()=>eR,removeElement:()=>KL,removeElementWithFadeOut:()=>JL,resizePath:()=>oR,retrieveZInfo:()=>kR,setTooltipConfig:()=>SR,subPixelOptimize:()=>cR,subPixelOptimizeLine:()=>sR,subPixelOptimizeRect:()=>_me,transformDirection:()=>dR,traverseElements:()=>wR,traverseUpdateZ:()=>jR,updateProps:()=>UL}),ZL={},QL=[`x`,`y`],$L=[`width`,`height`];function mme(e){return SF.extend(e)}var hme=qpe;function gme(e,t){return hme(e,t)}function eR(e,t){ZL[e]=t}function tR(e){if(ZL.hasOwnProperty(e))return ZL[e]}function nR(e,t,n,r){var i=rL(e,t);return n&&(r===`center`&&(n=iR(n,i.getBoundingRect())),oR(i,n)),i}function rR(e,t,n){var r=new OF({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(iR(t,i))}}});return r}function iR(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var aR=Jpe;function oR(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function sR(e,t){return jF(e,e,{lineWidth:t}),e}function _me(e,t){return MF(e,e,t),e}var cR=NF;function lR(e,t){for(var n=Ok([]);e&&e!==t;)Ak(n,e.getLocalTransform(),n),e=e.parent;return n}function uR(e,t,n){return t&&!rO(t)&&(t=hM.getLocalTransform(t)),n&&(t=Pk([],t)),ek([],e,t)}function dR(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:JM(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:JM(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=uR(a,t,n),JM(a[0])>JM(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function fR(e){return!e.isGroup}function vme(e){return e.shape!=null}function pR(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){fR(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return vme(e)&&(t.shape=ZD(e.shape)),t}var a=r(e);t.traverse(function(e){if(fR(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),UL(e,r,n,YF(e).dataIndex)}}})}function mR(e,t){return Z(e,function(e){var n=e[0];n=qM(n,t.x),n=KM(n,t.x+t.width);var r=e[1];return r=qM(r,t.y),r=KM(r,t.y+t.height),[n,r]})}function yme(e,t){var n=qM(e.x,t.x),r=KM(e.x+e.width,t.x+t.width),i=qM(e.y,t.y),a=KM(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function hR(e,t,n){var r=Y({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),eO(i,n),new OF(r)):nR(e.replace(`path://`,``),r,n,`center`)}function gR(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(_R(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function _R(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=vR(u,d,c,l);if(bme(f))return!1;var p=e-i,m=t-a,h=vR(p,m,c,l)/f;if(h<0||h>1)return!1;var g=vR(p,m,u,d)/f;return!(g<0||g>1)}function vR(e,t,n,r){return e*r-n*t}function bme(e){return e<=1e-6&&e>=-1e-6}function yR(e,t,n,r,i){return t==null?e:(pO(t)?bR[0]=bR[1]=bR[2]=bR[3]=t:(bR[0]=t[0],bR[1]=t[1],bR[2]=t[2],bR[3]=t[3]),r&&(bR[0]=qM(0,bR[0]),bR[1]=qM(0,bR[1]),bR[2]=qM(0,bR[2]),bR[3]=qM(0,bR[3])),n&&(bR[0]=-bR[0],bR[1]=-bR[1],bR[2]=-bR[2],bR[3]=-bR[3]),xR(e,bR,`x`,`width`,3,1,i&&i[0]||0),xR(e,bR,`y`,`height`,0,2,i&&i[1]||0),e)}var bR=[0,0,0,0];function xR(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=qM(0,KM(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:JM(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function SR(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=dO(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&X(sO(c),function(e){FO(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=YF(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:eO({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function CR(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function wR(e,t){if(e)if(Q(e))for(var n=0;n<e.length;n++)CR(e[n],t);else CR(e,t)}function TR(e){return!e||JM(e[1])<ER&&JM(e[2])<ER||JM(e[0])<ER&&JM(e[3])<ER}var ER=1e-5;function DR(e,t){return e?Jk.copy(e,t):t.clone()}function OR(e,t){return t?kk(e||Dk(),t):void 0}function kR(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function AR(e){var t=-1/0,n=1/0;CR(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function jR(e,t,n){MR(e,t,n,-1/0)}function MR(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=qM(MR(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=qM(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}eR(`circle`,aL),eR(`ellipse`,oL),eR(`sector`,vL),eR(`ring`,yL),eR(`polygon`,xL),eR(`polyline`,SL),eR(`rect`,PF),eR(`line`,CL),eR(`bezierCurve`,EL),eR(`arc`,DL);var NR={};function PR(e,t){for(var n=0;n<tI.length;n++){var r=tI[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function FR(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=uO(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<tI.length;l++){var u=tI[l],d=t[u];c[u]=xO(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function IR(e,t,n,r){n||=NR;for(var i=e instanceof RF,a=!1,o=0;o<nI.length;o++){var s=t[nI[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new RF,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=FR(n,t),u=t.normal,d=!!u.getShallow(`show`),f=RR(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(zR(u,n,!1));for(var o=0;o<tI.length;o++){var p=tI[o],s=t[p];if(s){var m=c.ensureState(p),h=!!xO(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=RR(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=zR(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(GR(c).setLabelText=function(e){var r=FR(n,t,e);PR(c,r)})}else c&&(c.ignore=!0);e.dirty()}function LR(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<tI.length;r++){var i=tI[r];n[i]=e.getModel([i,t])}return n}function RR(e,t,n,r,i){var a={};return xme(a,e,n,r,i),t&&Y(a,t),a}function zR(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=xO(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function xme(e,t,n,r,i){n||=NR;var a=t.ecModel,o=a&&a.option.textStyle,s=Sme(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=xO(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);UR(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=pO(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=JR.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=wO(_),h.__marginType=JR.textMargin)}UR(e,t,o,null,null,n,r,i,!0,!1)}function Sme(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||NR).rich;if(n){t||={};for(var r=sO(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var BR=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],VR=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],HR=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function UR(e,t,n,r,i,a,o,s,c,l){n=!o&&n||NR;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=xO(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=xO(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=xO(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=xO(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<BR.length;_++){var v=BR[_],y=i!==!1&&r?SO(t.getShallow(v),r.getShallow(v),n[v]):xO(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<VR.length;_++){var v=VR[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<HR.length;_++){var v=HR[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function WR(e,t){var n=t&&t.getModel(`textStyle`);return EO([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var GR=jN();function KR(e,t,n,r){if(e){var i=GR(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function qR(e,t,n,r,i){var a=GR(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=xO(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=RN(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,PR(e,FR({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?WL:UL)(e,{percent:1},r,t,null,l)}var JR={minMargin:1,textMargin:2},Cme=[`textStyle`,`color`],YR=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],XR=new RF,wme=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Cme):null)},e.prototype.getFont=function(){return WR({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<YR.length;n++)t[YR[n]]=this.getShallow(YR[n]);return XR.useStyle(t),XR.update(),XR.getBoundingRect()},e}(),ZR=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Tme=qN(ZR),Eme=function(){function e(){}return e.prototype.getLineStyle=function(e){return Tme(this,e)},e}(),QR=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Dme=qN(QR),Ome=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Dme(this,e,t)},e}(),$R=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){QD(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(ZD(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!zD.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();WN($R),rpe($R),nO($R,Eme),nO($R,Ome),nO($R,spe),nO($R,wme);var kme=Math.round(Math.random()*10);function ez(e){return[e||``,kme++].join(`_`)}function Ame(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=UN(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=UN(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function jme(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(X(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),X(u.successor,d?p:f)}X(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return X(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),X(c,function(e){tO(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);tO(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return X(e,function(e){tO(t,e)>=0&&n.push(e)}),n}}function tz(e,t){return QD(QD({},e,!0),t,!0)}var Mme={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:`. `}}}},Nme={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:``}}}},nz=`ZH`,rz=`EN`,iz=rz,az={},oz={},sz=zD.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||iz).toUpperCase().indexOf(nz)>-1?nz:iz}():iz;function cz(e,t){e=e.toUpperCase(),oz[e]=new $R(t),az[e]=t}function Pme(e){if(dO(e)){var t=az[e.toUpperCase()]||{};return e===nz||e===rz?ZD(t):QD(ZD(t),ZD(az[iz]),!1)}else return QD(ZD(e),ZD(az[iz]),!1)}function lz(e){return oz[e]}function Fme(){return oz[iz]}cz(rz,Mme),cz(nz,Nme);var uz=null;function Ime(e){uz||=e}function dz(){return uz}var fz=1e3,pz=fz*60,mz=pz*60,hz=mz*24,gz=hz*365,Lme={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},_z={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},Rme=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,vz=`{yyyy}-{MM}-{dd}`,yz={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:vz,hour:vz+` `+_z.hour,minute:vz+` `+_z.minute,second:vz+` `+_z.second,millisecond:Rme},bz=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],zme=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function Bme(e){return!dO(e)&&!uO(e)?Vme(e):e}function Vme(e){e||={};var t={},n=!0;return X(bz,function(t){n&&=e[t]==null}),X(bz,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=bz[s],l=mO(a)&&!Q(a)?a[c]:a,u=void 0;Q(l)?(u=l.slice(),o=u[0]||``):dO(l)?(o=l,u=[o]):(o==null?o=_z[r]:Lme[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function xz(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Sz(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Hme(e){return e===Sz(e)}function Ume(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function Cz(e,t,n,r){var i=iN(e),a=i[Ez(n)](),o=i[Dz(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Oz(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[kz(n)](),d=(u-1)%12+1,f=i[Az(n)](),p=i[jz(n)](),m=i[Mz(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof $R?r:lz(r||sz)||Fme()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,xz(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,xz(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,xz(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,xz(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,xz(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,xz(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,xz(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,xz(m,3)).replace(/{S}/g,m+``)}function Wme(e,t,n,r,i){var a=null;if(dO(n))a=n;else if(uO(n)){var o={time:e.time,level:e.time.level},s=dz();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=wz(e.value,i);a=n[u][u][0]}}return Cz(new Date(e.value),a,i,r)}function wz(e,t){var n=iN(e),r=n[Dz(t)]()+1,i=n[Oz(t)](),a=n[kz(t)](),o=n[Az(t)](),s=n[jz(t)](),c=n[Mz(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Tz(e,t,n){switch(t){case`year`:e[Nz(n)](0);case`month`:e[Pz(n)](1);case`day`:e[Fz(n)](0);case`hour`:e[Iz(n)](0);case`minute`:e[Lz(n)](0);case`second`:e[Rz(n)](0)}return e}function Ez(e){return e?`getUTCFullYear`:`getFullYear`}function Dz(e){return e?`getUTCMonth`:`getMonth`}function Oz(e){return e?`getUTCDate`:`getDate`}function kz(e){return e?`getUTCHours`:`getHours`}function Az(e){return e?`getUTCMinutes`:`getMinutes`}function jz(e){return e?`getUTCSeconds`:`getSeconds`}function Mz(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Gme(e){return e?`setUTCFullYear`:`setFullYear`}function Nz(e){return e?`setUTCMonth`:`setMonth`}function Pz(e){return e?`setUTCDate`:`setDate`}function Fz(e){return e?`setUTCHours`:`setHours`}function Iz(e){return e?`setUTCMinutes`:`setMinutes`}function Lz(e){return e?`setUTCSeconds`:`setSeconds`}function Rz(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function zz(e){if(!uN(e))return dO(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Bz(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Vz=wO;function Hz(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&EO(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?iN(e):e;if(!isNaN(+c))return Cz(c,r,n);if(s)return`-`}if(t===`ordinal`)return fO(e)?i(e):pO(e)&&a(e)?e+``:`-`;var l=lN(e);return a(l)?zz(l):fO(e)?i(e):typeof e==`boolean`?e+``:`-`}var Uz=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Wz=function(e,t){return`{`+e+(t??``)+`}`};function Gz(e,t,n){Q(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Uz[a];e=e.replace(Wz(o),Wz(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(Wz(Uz[c],s),n?hk(l):l)}return e}function Kme(e,t,n){return X(t,function(t,r){e=e.replace(`{`+r+`}`,n?hk(t):t)}),e}function qme(e,t){var n=dO(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+hk(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+hk(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Kz(e,t){return t||=`transparent`,dO(e)?e:mO(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function qz(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Jz={},Yz={},Xz=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Jz,!0),this._normalMasterList=n(Yz,!1);function n(n,r){var i=[];return X(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){X(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Jz[e]=t;return}Yz[e]=t},e.get=function(e){return Yz[e]||Jz[e]},e}();function Jme(e){return!!Jz[e]}var Zz={coord:1,coord2:2};function Yme(e){Qz.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Qz=jO();function Xme(e){var t=e.getShallow(`coord`,!0),n=Zz.coord;if(t==null){var r=Qz.get(e.type);r&&r.getCoord2&&(n=Zz.coord2,t=r.getCoord2(e))}return{coord:t,from:n}}var $z={none:0,dataCoordSys:1,boxCoordSys:2};function eB(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=$z.none;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=$z.dataCoordSys,a||(i=$z.none)):r===`box`&&(i=$z.boxCoordSys,!a&&!Jme(n)&&(i=$z.none))}return{coordSysType:n,kind:i}}function tB(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=eB(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==$z.dataCoordSys&&(o=$z.dataCoordSys,s=n),o===$z.none||s!==n)return!1;var c=r(n,t);return c?(o===$z.dataCoordSys?t.coordinateSystem=c:t.boxCoordinateSystem=c,!0):!1}var nB=function(e,t){var n=t.getReferringComponents(e,PN).models[0];return n&&n.coordinateSystem},rB=X,iB=[`left`,`right`,`top`,`bottom`,`width`,`height`],aB=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function oB(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var sB=oB;lO(oB,`vertical`),lO(oB,`horizontal`);function cB(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function Zme(e,t){var n=pB(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===fB.point)a=n.refPoint,i=uB(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=Q(o)?o:[o,o];i=uB(r,n.refContainer),a=n.boxCoordFrom===Zz.coord2?n.refPoint:[XM(s[0],i.width)+i.x,XM(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function lB(e,t){var n=Zme(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);Q(a)||(a=[0,a]);var o=XM(r.width,t.getWidth()),s=XM(r.height,t.getHeight()),c=Math.min(o,s),l=XM(a[0],c/2),u=XM(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function uB(e,t,n){n=Vz(n||0);var r=t.width,i=t.height,a=XM(e.left,r),o=XM(e.top,i),s=XM(e.right,r),c=XM(e.bottom,i),l=XM(e.width,r),u=XM(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new Jk((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function dB(e,t,n){var r=e.getShallow(`preserveAspect`,!0);if(!r)return t;var i=t.width/t.height;if(Math.abs(Math.atan(n)-Math.atan(i))<1e-9)return t;var a=e.getShallow(`preserveAspectAlign`,!0),o=e.getShallow(`preserveAspectVerticalAlign`,!0),s={width:t.width,height:t.height},c=r===`cover`;return i>n&&!c||i<n&&c?(s.width=t.height*n,a===`left`?s.left=0:a===`right`?s.right=0:s.left=`center`):(s.height=t.width/n,o===`top`?s.top=0:o===`bottom`?s.bottom=0:s.top=`middle`),uB(s,t)}var fB={rect:1,point:2};function pB(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=Xme(e),l=c.coord,u=c.from;if(o.dataToLayout){a=fB.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=fB.point,s=u,i=o.dataToPoint(l))}return a??=fB.rect,a===fB.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function mB(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new Jk(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=uB(eO({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Qme(e,t){return e[aB[t][0]]!=null||e[aB[t][1]]!=null&&e[aB[t][2]]!=null}function hB(e){var t=e.layoutMode||e.constructor.layoutMode;return mO(t)?t:t?{type:t}:null}function gB(e,t,n){var r=n&&n.ignoreSize;!Q(r)&&(r=[r,r]);var i=o(aB[0],0),a=o(aB[1],1);c(aB[0],e,i),c(aB[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(rB(n,function(t){c[t]=e[t]}),rB(n,function(e){FO(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!FO(a,f)&&FO(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){rB(e,function(e){t[e]=n[e]})}}function _B(e){return vB({},e)}function vB(e,t){return t&&e&&rB(iB,function(n){FO(t,n)&&(e[n]=t[n])}),e}var $me=jN(),yB=function(e){J(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=ez(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=hB(this),r=n?_B(e):{};QD(e,t.getTheme().get(this.mainType)),QD(e,this.getDefaultOption()),n&&gB(e,r,n)},t.prototype.mergeOption=function(e,t){QD(this.option,e,!0);var n=hB(this);n&&gB(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!epe(e))return e.defaultOption;var t=$me(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=QD(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return FN(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return cB(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}($R);GN(yB,$R),KN(yB),Ame(yB),jme(yB,ehe);function ehe(e){var t=[];return X(yB.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Z(t,function(e){return UN(e).main}),e!==`dataset`&&tO(t,`dataset`)<=0&&t.unshift(`dataset`),t}var $={color:{},darkColor:{},size:{}},bB=$.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var xB in Y(bB,{primary:bB.neutral80,secondary:bB.neutral70,tertiary:bB.neutral60,quaternary:bB.neutral50,disabled:bB.neutral20,border:bB.neutral30,borderTint:bB.neutral20,borderShade:bB.neutral40,background:bB.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:bB.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:bB.neutral70,axisLineTint:bB.neutral40,axisTick:bB.neutral70,axisTickMinor:bB.neutral60,axisLabel:bB.neutral70,axisSplitLine:bB.neutral15,axisMinorSplitLine:bB.neutral05}),bB)if(bB.hasOwnProperty(xB)){var SB=bB[xB];xB===`theme`?$.darkColor.theme=bB.theme.slice():xB===`highlight`?$.darkColor.highlight=`rgba(255,231,130,0.4)`:xB.indexOf(`accent`)===0?$.darkColor[xB]=oj(SB,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):$.darkColor[xB]=oj(SB,null,function(e){return e*.9},function(e){return 1-e**1.5})}$.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var CB=``;typeof navigator<`u`&&(CB=navigator.platform||``);var wB=`rgba(0, 0, 0, 0.2)`,TB=$.color.theme[0],the=oj(TB,null,null,.9),nhe={darkMode:`auto`,colorBy:`series`,color:$.color.theme,gradientColor:[the,TB],aria:{decal:{decals:[{color:wB,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wB,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wB,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wB,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wB,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wB,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:CB.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},EB=jO([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),DB=`original`,OB=`arrayRows`,kB=`objectRows`,AB=`keyedColumns`,jB=`typedArray`,rhe=`unknown`,MB=`column`,NB={Must:1,Might:2,Not:3},PB=jN();function ihe(e){PB(e).datasetMap=jO()}function FB(e,t,n){var r={},i=LB(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=PB(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),X(e,function(t,n){var i=mO(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});X(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function IB(e,t,n){var r={};if(!LB(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&X(a,function(e,t){(mO(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=zB(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===NB.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===NB.Not)&&(e.n=c),f(e)&&s[e.n]!==NB.Not)return e;d||(u===NB.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function LB(e){if(!e.get(`data`,!0))return FN(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},PN).models[0]}function ahe(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:FN(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},PN).models}function RB(e,t){return zB(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function zB(e,t,n,r,i,a){var o,s=5;if(gO(e))return NB.Not;var c,l;if(r){var u=r[a];mO(u)?(c=u.name,l=u.type):dO(u)&&(c=u)}if(l!=null)return l===`ordinal`?NB.Must:NB.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return NB.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return NB.Not;var f=_[c];if(!f||gO(f))return NB.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=CN(g);if(!Q(y))return NB.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=dO(e);if(e!=null&&Number.isFinite(Number(e))&&e!==``)return t?NB.Might:NB.Not;if(t&&e!==`-`)return NB.Must}return NB.Not}var BB=jO();function ohe(e,t){TO(BB.get(e)==null&&t),BB.set(e,t)}function she(e,t,n){var r=BB.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var VB=jN(),che=jN(),HB=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=bN(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return WB(this,VB,r,i,e,t,n)},e.prototype.clearColorPalette=function(){uhe(this,VB)},e}();function UB(e,t,n,r){return WB(e,che,bN(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function lhe(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function WB(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:lhe(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function uhe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var GB,KB,qB,JB=`\0_ec_inner`,dhe=1,YB=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new $R(r),this._locale=new $R(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=QB(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,QB(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?qB(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&X(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=jO(),s=t&&t.replaceMergeMainTypeMap;ihe(this),X(e,function(e,t){e!=null&&(yB.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?ZD(e):QD(n[t],e,!0))}),s&&s.each(function(e,t){yB.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),yB.topologicalTravel(a,yB.getAllClassMainTypes(),c,this);function c(t){var a=she(this,t,bN(e[t])),o=r.get(t),c=wN(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Gfe(c,t,yB),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;X(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=yB.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Y({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),Y(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&GB(this)}this._seriesIndices||GB(this)},t.prototype.getOption=function(){var e=ZD(this.option);return X(e,function(t,n){if(yB.hasClass(n)){for(var r=bN(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!kN(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[JB],e},t.prototype.setTheme=function(e){this._theme=new $R(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?aO(a,function(e){return!!e}):XB(`name`,i,a):XB(`id`,r,a):(o=[],X(bN(n),function(e){a[e]&&o.push(a[e])})),ZB(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(ZB(r?this.queryComponents(r):aO(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?aO(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(uO(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=dO(e)?r.get(e):mO(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=DN(e,null);return aO(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return aO(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return aO(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){KB(this),X(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){X(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){KB(this),X(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return X(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return KB(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){KB(this);var n=[];X(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=jO(n)},t.prototype.restoreData=function(e){GB(this);var t=this._componentsMap,n=[];t.each(function(e,t){yB.hasClass(t)&&n.push(t)}),yB.topologicalTravel(n,yB.getAllClassMainTypes(),function(n){X(t.get(n),function(t){t&&(n!==`series`||!fhe(t,e))&&t.restoreData()})})},t.internalField=function(){GB=function(e){var t=e._seriesIndices=[];X(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=jO(t)},KB=function(e){},qB=function(e,t){e.option={},e.option[JB]=dhe,e._componentsMap=jO({series:[]}),e._componentsCount=jO();var n=t.aria;mO(n)&&n.enabled==null&&(n.enabled=!0),phe(t,e._theme.option),QD(t,nhe,!1),e._mergeOption(t,null)}}(),t}($R);function fhe(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function phe(e,t){var n=e.color&&!e.colorLayer;X(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||yB.hasClass(r)||(typeof t==`object`?e[r]=e[r]?QD(e[r],t,!1):ZD(t):e[r]??(e[r]=t))})}function XB(e,t,n){if(Q(t)){var r=jO();return X(t,function(e){e!=null&&DN(e,null)!=null&&r.set(e,!0)}),aO(n,function(t){return t&&r.get(t[e])})}else{var i=DN(t,null);return aO(n,function(t){return t&&i!=null&&t[e]===i})}}function ZB(e,t){return t.hasOwnProperty(`subType`)?aO(e,function(e){return e&&e.subType===t.subType}):e}function QB(e){var t=jO();return e&&X(bN(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}nO(YB,HB);var mhe=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],$B=function(){function e(e){X(mhe,function(t){this[t]=cO(e[t],e)},this)}return e}(),hhe=/^(min|max)?(.+)$/,ghe=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(X(bN(e.series),function(e){e&&e.data&&gO(e.data)&&OO(e.data)}),X(bN(e.dataset),function(e){e&&e.source&&gO(e.source)&&OO(e.source)})),e=ZD(e);var r=this._optionBackup,i=_he(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],ZD(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=ZD(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)vhe(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!bhe(a,this._currentMediaIndices)&&(o=Z(a,function(e){return ZD(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function _he(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||=s):((d||u)&&(e.options=e.media=null),a=e),u&&Q(l)&&X(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),X(c,function(e){return f(e)}),X(r,function(e){return f(e.option)});function f(e){X(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function vhe(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return X(e,function(e,t){var n=t.match(hhe);if(!(!n||!n[1]||!n[2])){var a=n[1];yhe(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function yhe(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function bhe(e,t){return e.join(`,`)===t.join(`,`)}var eV=X,tV=mO,nV=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function rV(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=nV.length;n<r;n++){var i=nV[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?QD(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?QD(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function iV(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,eO(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function aV(e){iV(e,`itemStyle`),iV(e,`lineStyle`),iV(e,`areaStyle`),iV(e,`label`),iV(e,`labelLine`),iV(e,`upperLabel`),iV(e,`edgeLabel`)}function oV(e,t){var n=tV(e)&&e[t],r=tV(n)&&n.textStyle;if(r)for(var i=0,a=SN.length;i<a;i++){var o=SN[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function sV(e){e&&(aV(e),oV(e,`label`),e.emphasis&&oV(e.emphasis,`label`))}function xhe(e){if(tV(e)){rV(e),aV(e),oV(e,`label`),oV(e,`upperLabel`),oV(e,`edgeLabel`),e.emphasis&&(oV(e.emphasis,`label`),oV(e.emphasis,`upperLabel`),oV(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(rV(t),sV(t));var n=e.markLine;n&&(rV(n),sV(n));var r=e.markArea;r&&sV(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!gO(a))for(var o=0;o<a.length;o++)sV(a[o]);X(e.categories,function(e){aV(e)})}if(i&&!gO(i))for(var o=0;o<i.length;o++)sV(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)sV(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)Q(c[o])?(sV(c[o][0]),sV(c[o][1])):sV(c[o]);e.type===`gauge`?(oV(e,`axisLabel`),oV(e,`title`),oV(e,`detail`)):e.type===`treemap`?(iV(e.breadcrumb,`itemStyle`),X(e.levels,function(e){aV(e)})):e.type===`tree`&&aV(e.leaves)}}function cV(e){return Q(e)?e:e?[e]:[]}function lV(e){return(Q(e)?e[0]:e)||{}}function She(e,t){eV(cV(e.series),function(e){tV(e)&&xhe(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),eV(n,function(t){eV(cV(e[t]),function(e){e&&(oV(e,`axisLabel`),oV(e.axisPointer,`label`))})}),eV(cV(e.parallel),function(e){var t=e&&e.parallelAxisDefault;oV(t,`axisLabel`),oV(t&&t.axisPointer,`label`)}),eV(cV(e.calendar),function(e){iV(e,`itemStyle`),oV(e,`dayLabel`),oV(e,`monthLabel`),oV(e,`yearLabel`)}),eV(cV(e.radar),function(e){oV(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),eV(cV(e.geo),function(e){tV(e)&&(sV(e),eV(cV(e.regions),function(e){sV(e)}))}),eV(cV(e.timeline),function(e){sV(e),iV(e,`label`),iV(e,`itemStyle`),iV(e,`controlStyle`,!0);var t=e.data;Q(t)&&X(t,function(e){mO(e)&&(iV(e,`label`),iV(e,`itemStyle`))})}),eV(cV(e.toolbox),function(e){iV(e,`iconStyle`),eV(e.feature,function(e){iV(e,`iconStyle`)})}),oV(lV(e.axisPointer),`label`),oV(lV(e.tooltip).axisPointer,`label`)}function Che(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function whe(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function uV(e){e&&X(The,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var The=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],Ehe=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],dV=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function fV(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<dV.length;n++){var r=dV[n][1],i=dV[n][0];t[r]!=null&&(t[i]=t[r])}}function pV(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function mV(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Dhe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function hV(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&hV(e[n].children,t)}function gV(e,t){She(e,t),e.series=bN(e.series),X(e.series,function(e){if(mO(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),pV(e.label);var n=e.data;if(n&&!gO(n))for(var r=0;r<n.length;r++)pV(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=Che(e,`pointer.color`);i!=null&&whe(e,`itemStyle.color`,i)}else if(t===`bar`){fV(e),fV(e.backgroundStyle),fV(e.emphasis);var n=e.data;if(n&&!gO(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(fV(n[r]),fV(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),mV(e),hV(e.data,mV)}else t===`graph`||t===`sankey`?Dhe(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&eO(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),uV(e)}}),e.dataRange&&(e.visualMap=e.dataRange),X(Ehe,function(t){var n=e[t];n&&(Q(n)||(n=[n]),X(n,function(e){uV(e)}))})}function Ohe(e){var t=jO();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),X(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),khe(e))})}function khe(e){X(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=jfe(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var _V=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&RB(this,n)===NB.Must&&(r.type=`ordinal`)}}return e}();function vV(e){return e instanceof _V}function yV(e,t,n){n||=xV(e);var r=t.seriesLayoutBy,i=jhe(e,n,r,t.sourceHeader,t.dimensions);return new _V({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:ZD(t)})}function bV(e){return new _V({data:e,sourceFormat:gO(e)?jB:DB})}function Ahe(e){return new _V({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ZD(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function xV(e){var t=rhe;if(gO(e))t=jB;else if(Q(e)){e.length===0&&(t=OB);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(Q(i)||gO(i)){t=OB;break}else if(mO(i)){t=kB;break}}}}else if(mO(e)){for(var a in e)if(FO(e,a)&&rO(e[a])){t=AB;break}}return t}function jhe(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:SV(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?CV(function(e){e!=null&&e!==`-`&&(dO(e)?o??=1:o=0)},n,s,10):o=pO(r)?r:+!!r,!i&&o===1&&(i=[],CV(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=Mhe(e);else if(t===`keyedColumns`)i||(i=[],X(e,function(e,t){i.push(t)}));else if(t===`original`){var c=CN(e[0]);a=Q(c)&&c.length||1}return{startIndex:o,dimensionsDefine:SV(i),dimensionsDetectedCount:a}}function Mhe(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return sO(n)}function SV(e){if(e){var t=jO();return Z(e,function(e,n){e=mO(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+ i.count++:t.set(r.name,{count:1}),r})}}function CV(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function wV(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var TV,EV,DV,OV,kV,AV,jV=function(){function e(e,t){var n=vV(e)?e:bV(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),AV(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;AV=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=kV[zV(o,s)];Y(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=cO(PV(o,s),null,i,c,l),e.count=cO(IV(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};kV=(e={},e[OB+`_`+MB]={pure:!0,appendData:i},e[OB+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[kB]={pure:!0,appendData:i},e[AB]={pure:!0,appendData:function(e){var t=this._data;X(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[DB]={appendData:i},e[jB]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),MV=function(e){Q(e)||hN(`series.data or dataset.source must be an array.`)};TV={},TV[OB+`_`+MB]=MV,TV[OB+`_row`]=MV,TV[kB]=MV,TV[AB]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??hN(`dimension name must not be null/undefined.`)},TV[DB]=MV;var NV=function(e,t,n,r){return e[r]},Nhe=(EV={},EV[OB+`_`+MB]=function(e,t,n,r){return e[r+t]},EV[OB+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},EV[kB]=NV,EV[AB]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},EV[DB]=NV,EV);function PV(e,t){return Nhe[zV(e,t)]}var FV=function(e,t,n){return e.length},Phe=(DV={},DV[OB+`_`+MB]=function(e,t,n){return Math.max(0,e.length-t)},DV[OB+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},DV[kB]=FV,DV[AB]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},DV[DB]=FV,DV);function IV(e,t){return Phe[zV(e,t)]}var LV=function(e,t,n){return e[t]},Fhe=(OV={},OV[OB]=LV,OV[kB]=function(e,t,n){return e[n]},OV[AB]=LV,OV[DB]=function(e,t,n){var r=CN(e);return r instanceof Array?r[t]:r},OV[jB]=LV,OV);function RV(e){return Fhe[e]}function zV(e,t){return e===`arrayRows`?e+`_`+t:e}function BV(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return RV(a)(r,o,s)}else{var c=r;return a===`original`&&(c=CN(r)),c}}}}var Ihe=/\{@(.+?)\}/g,VV=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&Q(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),uO(i))return s.status=t,s.dimensionIndex=r,i(s);if(dO(i))return Gz(i,s).replace(Ihe,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=BV(o,e,i);if(a&&Q(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return BV(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function HV(e){var t,n;return mO(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function UV(e){return new Lhe(e)}var Lhe=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(Q(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){WV.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:WV.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),Q(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),WV=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function GV(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!pO(e)&&e!=null&&e!==`-`&&(e=+iN(e)),e==null||e===``?NaN:Number(e))}var Rhe=jO({number:function(e){return parseFloat(e)},time:function(e){return+iN(e)},trim:function(e){return dO(e)?EO(e):e}});function KV(e){return Rhe.get(e)}var qV={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},zhe=function(){function e(e,t){pO(t)||gN(``),this._opFn=qV[e],this._rvalFloat=lN(t)}return e.prototype.evaluate=function(e){return pO(e)?this._opFn(e,this._rvalFloat):this._opFn(lN(e),this._rvalFloat)},e}(),JV=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=pO(e)?e:lN(e),r=pO(t)?t:lN(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=dO(e),s=dO(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),Bhe=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=lN(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=lN(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Vhe(e,t){return e===`eq`||e===`ne`?new Bhe(e===`eq`,t):FO(qV,e)?new zhe(e,t):null}var Hhe=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return GV(e,t)},e}();function Uhe(e,t){var n=new Hhe,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&gN(``);var o=[],s={},c=e.dimensionsDefine;if(c)X(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(FO(s,n)&&gN(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=PV(i,MB);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=cO(Whe,null,e)),n.cloneRawData=cO(Ghe,null,e),n.count=cO(IV(i,MB),null,r,a,o);var d=RV(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=cO(Khe,null,o,s),n.cloneAllDimensionInfo=cO(qhe,null,o),n}function Whe(e){var t=e.sourceFormat;return XV(t)||gN(``),e.data}function Ghe(e){var t=e.sourceFormat,n=e.data;if(XV(t)||gN(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}else if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(Y({},n[i]));return r}}function Khe(e,t,n){if(n!=null){if(pO(n)||!isNaN(n)&&!FO(t,n))return e[n];if(FO(t,n))return t[n]}}function qhe(e){return ZD(e)}var YV=jO();function Jhe(e){e=ZD(e);var t=e.type,n=``;t||gN(n);var r=t.split(`:`);r.length!==2&&gN(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,YV.set(t,e)}function Yhe(e,t,n){var r=bN(e),i=r.length;i||gN(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=Xhe(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function Xhe(e,t,n,r){var i=``;t.length||gN(i),mO(e)||gN(i);var a=e.type,o=YV.get(a);o||gN(i);var s=Z(t,function(e){return Uhe(e,o)});return Z(bN(o.transform({upstream:s[0],upstreamList:s,config:ZD(e.config)})),function(e,n){var r=``;mO(e)||gN(r),e.data||gN(r),XV(xV(e.data))||gN(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:MB,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:MB,sourceHeader:0,dimensions:e.dimensions};return yV(e.data,i,null)})}function XV(e){return e===`arrayRows`||e===`objectRows`}var ZV=`undefined`,Zhe=typeof Uint32Array===ZV?Array:Uint32Array,Qhe=typeof Uint16Array===ZV?Array:Uint16Array,QV=typeof Int32Array===ZV?Array:Int32Array,$V=typeof Float64Array===ZV?Array:Float64Array,eH={float:$V,int:QV,ordinal:Array,number:Array,time:$V},tH;function nH(e){return e>65535?Zhe:Qhe}function rH(){return[1/0,-1/0]}function $he(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function iH(e,t,n,r,i){var a=eH[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var aH=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=jO()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=tH[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],wV(r),this._dimensions=Z(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new eH[t||`float`](this._rawCount),this._rawExtent[i]=rH(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=rH());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];iH(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=tH.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=Z(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=rH()),iH(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return r===0?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=nH(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(nH(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=sO(e),i=r.length;if(!i)return this;var a=t.count(),o=new(nH(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=rH();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(nH(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(nH(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=rH(),d=new(nH(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=rH();if(!t)return n;var r=this.count(),i=!this._indices,a;if(i)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=n;for(var o=a[0],s=a[1],c=0;c<r;c++){var l=t[this.getRawIndex(c)];l<o&&(o=l),l>s&&(s=l)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&iO(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?$he(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ZD(this._extent),e._rawExtent=ZD(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return GV(e[r],this._dimensions[r])}tH={arrayRows:e,objectRows:function(e,t,n,r){return GV(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return GV(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),oH=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(cH(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=gO(o)?jB:DB,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=xO(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=xO(u.sourceHeader,d.sourceHeader),m=xO(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[yV(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[yV(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&lH(``);var i,a=[],o=[];return X(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&lH(``),a.push(t),o.push(e._getVersionSign())}),n?i=Yhe(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[Ahe(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];cH(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new aH,o.initData(new jV(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(cH(e)){var t=LB(e);return t?[t.getSourceManager()]:[]}else return Z(ahe(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(cH(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function sH(e){e.option.transform&&OO(e.option.transform)}function cH(e){return e.mainType===`series`}function lH(e){throw Error(e)}var ege=`line-height:1`;function uH(e){var t=e.lineHeight;return t==null?ege:`line-height:`+hk(t+``)+`px`}function dH(e,t){var n=e.color||$.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||$.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+hk(r+``)+`px;color:`+hk(n)+`;font-weight:`+hk(i+``),valueStyle:`font-size:`+hk(o+``)+`px;color:`+hk(a)+`;font-weight:`+hk(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var tge=[0,10,20,30],nge=[``,`
|
||
`,`
|
||
|
||
`,`
|
||
|
||
|
||
`];function fH(e,t){return t.type=e,t}function pH(e){return e.type===`section`}function mH(e){return pH(e)?rge:ige}function hH(e){if(pH(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return X(e.blocks,function(e){var n=hH(e);n>=t&&(t=n+ +(r&&(!n||pH(e)&&!e.noHeader)))}),t}return 0}function rge(e,t,n,r){var i=t.noHeader,a=age(hH(t)),o=[],s=t.blocks||[];TO(!s||Q(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(FO(l,c)){var u=new JV(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}X(s,function(n,i){var s=t.valueFormatter,c=mH(n)(s?Y(Y({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):_H(r,o.join(``),i?n:a.html);if(i)return d;var f=Hz(t.header,`ordinal`,e.useUTC),p=dH(r,e.renderMode).nameStyle,m=uH(r);return e.renderMode===`richText`?vH(e,f,p)+a.richText+d:_H(r,`<div style="`+p+`;`+m+`;">`+hk(f)+`</div>`+d,n)}function ige(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=Q(e)?e:[e],Z(e,function(e,t){return Hz(e,Q(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||$.color.secondary,i),f=a?``:Hz(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.dataIndex),h=!s||!a,g=!s&&a,_=dH(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:vH(e,f,v))+(o?``:cge(e,m,h,g,y)):_H(r,(s?``:d)+(a?``:oge(f,!s,v))+(o?``:sge(m,h,g,y)),n)}}function gH(e,t,n,r,i,a){if(e)return mH(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function age(e){return{html:tge[e],richText:nge[e]}}function _H(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=uH(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function oge(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+hk(e)+`</span>`}function sge(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=Q(e)?e:[e],`<span style="`+i+`;`+r+`">`+Z(e,function(e){return hk(e)}).join(` `)+`</span>`}function vH(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function cge(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(Q(t)?t.join(` `):t,a)}function yH(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Kz(n)}function bH(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var xH=function(){function e(){this.richTextStyles={},this._nextStyleNameId=dN()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+ this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=qme({color:t,type:e,renderMode:n,markerId:r});return dO(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Q(t)?X(t,function(e){return Y(n,e)}):Y(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function SH(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=Q(s),l=yH(t,n),u,d,f,p;if(o>1||c&&!o){var m=lge(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=BV(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=ON(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return fH(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[fH(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!EO(y),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function lge(e,t,n,r,i){var a=t.getData(),o=iO(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?X(r,function(e){u(BV(a,n,e),e)}):X(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(fH(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var CH=jN();function wH(e,t){return e.getName(t)||e.getId(t)}var TH=`__universalTransitionEnabled`,EH=function(e){J(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=UV({count:dge,reset:fge}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(CH(this).sourceManager=new oH(this)).prepareSource();var r=this.getInitialData(e,n);OH(r,this),this.dataTask.context.data=r,CH(this).dataBeforeProcessed=r,DH(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=hB(this),r=n?_B(e):{},i=this.subType;yB.hasClass(i)&&(i+=`Series`),QD(e,t.getTheme().get(this.subType)),QD(e,this.getDefaultOption()),xN(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&gB(e,r,n)},t.prototype.mergeOption=function(e,t){e=QD(this.option,e,!0),this.fillDataTextStyle(e.data);var n=hB(this);n&&gB(this.option,e,n);var r=CH(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);OH(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,CH(this).dataBeforeProcessed=i,DH(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!gO(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&xN(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=kH(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return CH(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=kH(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}CH(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return jO(e)},t.prototype.getSourceManager=function(){return CH(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return CH(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;var c=[],l=1/0,u=-1,d=0;return i.each(t,function(e,t){var n=s-o.dataToCoord(e),i=Math.abs(n);i<=r&&((i<l||i===l&&n>=0&&u<0)&&(l=i,u=n,d=0),n===u&&(c[d++]=t))}),c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return SH({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(zD.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=HB.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=wH(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=sO(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[wH(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){mO(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=wH(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=wH(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return yB.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(yB);nO(EH,VV),nO(EH,HB),GN(EH,yB);function DH(e){var t=e.name;ON(e)||(e.name=uge(e)||t)}function uge(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return X(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function dge(e){return e.model.getRawData().count()}function fge(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),pge}function pge(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function OH(e,t){X(MO(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,lO(mge,t))})}function mge(e,t){var n=kH(e);return n&&n.setOutputEnd((t||this).count()),t}function kH(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var AH=function(){function e(){this.group=new zM,this.uid=ez(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();WN(AH),KN(AH);function jH(){var e=jN();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var MH=jN(),hge=jH(),NH=function(){function e(){this.group=new zM,this.uid=ez(`viewChart`),this.renderTask=UV({plan:gge,reset:_ge}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&FH(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&FH(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){wR(this.group,e)},e.markUpdateMethod=function(e,t){MH(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function PH(e,t,n){e&&BI(e)&&(t===`emphasis`?SI:CI)(e,n)}function FH(e,t,n){var r=AN(e,t),i=t&&t.highlightKey!=null?Bpe(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){PH(e,n,i)}):X(bN(r),function(t){PH(e.getItemGraphicEl(t),n,i)})}WN(NH,[`dispose`]),KN(NH);function gge(e){return hge(e.model)}function _ge(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&MH(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),vge[c]}var vge={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},IH=`\0__throttleOriginMethod`,LH=`\0__throttleRate`,RH=`\0__throttleType`;function zH(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function BH(e,t,n,r){var i=e[t];if(i){var a=i[IH]||i,o=i[RH];if(i[LH]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=zH(a,n,r===`debounce`),i[IH]=a,i[RH]=r,i[LH]=n}return i}}function VH(e,t){var n=e[t];n&&n[IH]&&(n.clear&&n.clear(),e[t]=n[IH])}var HH=jN(),UH={itemStyle:qN(QR,!0),lineStyle:qN(ZR,!0)},yge={lineStyle:`stroke`,itemStyle:`fill`};function WH(e,t){return e.visualStyleMapper||UH[t]||(console.warn(`Unknown style type '`+t+`'.`),UH.itemStyle)}function GH(e,t){return e.visualDrawType||yge[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var bge={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=WH(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=GH(e,r),c=a[s],l=uO(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||uO(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||uO(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=Y({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},KH=new $R,xge={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=WH(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){KH.option=n[r];var o=i(KH);Y(e.ensureUniqueItemVisual(t,`style`),o),KH.option.decal&&(e.setItemVisual(t,`decal`,KH.option.decal),KH.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Sge={performRawSeries:!0,overallReset:function(e){var t=jO();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+`-`+n,i=t.get(r);i||(i={},t.set(r,i)),HH(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=HH(t).scope,o=GH(t,t.visualStyleAccessPath||`itemStyle`);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var s=r[e];if(i.getItemVisual(s,`colorFromPalette`)){var c=i.ensureUniqueItemVisual(s,`style`),l=n.getName(e)||e+``,u=n.count();c[o]=t.getColorFromPalette(l,a,u)}})}})}},qH=Math.PI;function Cge(e,t){t||={},eO(t,{text:`loading`,textColor:$.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:$.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new zM,r=new PF({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new RF({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new PF({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new DL({shape:{startAngle:-qH/2,endAngle:-qH/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:qH*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:qH*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var JH=function(){function e(e,t,n,r){this._stageTaskMap=jO(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get(`large`)&&r>=e.get(`largeThreshold`);e.pipelineContext=n.context={progressiveRender:i,modDataCount:e.get(`progressiveChunkMode`)===`mod`?r:null,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=jO();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;X(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});TO(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;X(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=jO(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||UV({plan:Oge,reset:kge,count:jge}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||UV({reset:wge});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=jO(),c=e.seriesType,l=e.getTargetSeries,u=!0,d=!1;TO(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):(u=!1,X(n.getSeries(),f));function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,UV({reset:Tge,onDirty:Dge})));n.context={model:e,overallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return uO(e)&&(e={overallReset:e,seriesType:Mge(e)}),e.uid=ez(`stageHandler`),t&&(e.visualType=t),e},e}();function wge(e){e.overallReset(e.ecModel,e.api,e.payload)}function Tge(e){return e.overallProgress&&Ege}function Ege(){this.agent.dirty(),this.getDownstream().dirty()}function Dge(){this.agent&&this.agent.dirty()}function Oge(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function kge(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=bN(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Z(t,function(e,t){return YH(t)}):Age}var Age=YH(0);function YH(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function jge(e){return e.data.count()}function Mge(e){QH=null;try{e(XH,ZH)}catch{}return QH}var XH={},ZH={},QH;$H(XH,YB),$H(ZH,$B),XH.eachSeriesByType=XH.eachRawSeriesByType=function(e){QH=e},XH.eachComponent=function(e){e.mainType===`series`&&e.subType&&(QH=e.subType)};function $H(e,t){for(var n in t.prototype)e[n]=IO}var eU=$.darkColor,Nge=eU.background,tU=function(){return{axisLine:{lineStyle:{color:eU.axisLine}},splitLine:{lineStyle:{color:eU.axisSplitLine}},splitArea:{areaStyle:{color:[eU.backgroundTint,eU.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:eU.axisMinorSplitLine}},axisLabel:{color:eU.axisLabel},axisName:{}}},nU={label:{color:eU.secondary},itemStyle:{borderColor:eU.borderTint},dividerLineStyle:{color:eU.border}},rU={darkMode:!0,color:eU.theme,backgroundColor:Nge,axisPointer:{lineStyle:{color:eU.border},crossStyle:{color:eU.borderShade},label:{color:eU.tertiary}},legend:{textStyle:{color:eU.secondary},pageTextStyle:{color:eU.tertiary}},textStyle:{color:eU.secondary},title:{textStyle:{color:eU.primary},subtextStyle:{color:eU.quaternary}},toolbox:{iconStyle:{borderColor:eU.accent50}},tooltip:{backgroundColor:eU.neutral20,defaultBorderColor:eU.border,textStyle:{color:eU.tertiary}},dataZoom:{borderColor:eU.accent10,textStyle:{color:eU.tertiary},brushStyle:{color:eU.backgroundTint},handleStyle:{color:eU.neutral00,borderColor:eU.accent20},moveHandleStyle:{color:eU.accent40},emphasis:{handleStyle:{borderColor:eU.accent50}},dataBackground:{lineStyle:{color:eU.accent30},areaStyle:{color:eU.accent20}},selectedDataBackground:{lineStyle:{color:eU.accent50},areaStyle:{color:eU.accent30}}},visualMap:{textStyle:{color:eU.secondary},handleStyle:{borderColor:eU.neutral30}},timeline:{lineStyle:{color:eU.accent10},label:{color:eU.tertiary},controlStyle:{color:eU.accent30,borderColor:eU.accent30}},calendar:{itemStyle:{color:eU.neutral00,borderColor:eU.neutral20},dayLabel:{color:eU.tertiary},monthLabel:{color:eU.secondary},yearLabel:{color:eU.secondary}},matrix:{x:nU,y:nU,backgroundColor:{borderColor:eU.axisLine},body:{itemStyle:{borderColor:eU.borderTint}}},timeAxis:tU(),logAxis:tU(),valueAxis:tU(),categoryAxis:tU(),line:{symbol:`circle`},graph:{color:eU.theme},gauge:{title:{color:eU.secondary},axisLine:{lineStyle:{color:[[1,eU.neutral05]]}},axisLabel:{color:eU.axisLabel},detail:{color:eU.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:eU.background}},radar:function(){var e=tU();return e.axisName={color:eU.axisLabel},e.axisLine.lineStyle.color=eU.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:eU.neutral20,textStyle:{color:eU.secondary}},emphasis:{itemStyle:{color:eU.neutral30}}}},sunburst:{itemStyle:{borderColor:eU.background}},map:{itemStyle:{borderColor:eU.border,areaColor:eU.neutral10},label:{color:eU.tertiary},emphasis:{label:{color:eU.primary},itemStyle:{areaColor:eU.highlight}},select:{label:{color:eU.primary},itemStyle:{areaColor:eU.highlight}}},geo:{itemStyle:{borderColor:eU.border,areaColor:eU.neutral10},emphasis:{label:{color:eU.primary},itemStyle:{areaColor:eU.highlight}},select:{label:{color:eU.primary},itemStyle:{color:eU.highlight}}}};rU.categoryAxis.splitLine.show=!1;var Pge=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(dO(e)){var i=UN(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};X(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),iU=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],aU=iU.concat([`symbolKeepAspect`]),Fge={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<iU.length;o++){var s=iU[o],c=e.get(s);uO(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Y({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=sO(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},Ige={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<aU.length;r++){var i=aU[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function oU(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:}}function sU(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:}}function cU(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r);break;default:}}function lU(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}X([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=Y({},t),i.dispatchAction(Y(t,{type:e[1],seriesIndex:n(r,t)}))})})}function uU(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=AN(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:Q(l)?c.getName(l[0]):c.getName(l),selected:dO(r)?r:Y({},r)})}})}function Lge(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(uU(`map`,`selectchanged`,t,r,e),uU(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(uU(`map`,`selected`,t,r,e),uU(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(uU(`map`,`unselected`,t,r,e),uU(`pie`,`unselected`,t,r,e))})}function dU(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Rge=Math.round(Math.random()*9),zge=typeof Object.defineProperty==`function`,Bge=function(){function e(){this._id=`__ec_inner_`+ Rge++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return zge?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}(),Vge=SF.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),Hge={line:CL,rect:PF,roundRect:PF,square:PF,circle:aL,diamond:SF.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:SF.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:SF.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:Vge},Uge={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},fU={};X(Hge,function(e,t){fU[t]=new e});var Wge=SF.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=AM(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=fU[r];i||=(r=`rect`,fU[r]),Uge[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Gge(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||$.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function pU(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?rR(e.slice(8),new Jk(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?nR(e.slice(7),{},new Jk(t,n,r,i),o?`center`:`cover`):new Wge({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=Gge,a&&c.setColor(a),c}function mU(e){return Q(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function hU(e,t){if(e!=null)return Q(e)||(e=[e,e]),[XM(e[0],t[0])||0,XM(xO(e[1],e[0]),t[1])||0]}function gU(e){return isFinite(e)}function _U(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=gU(r)?r:0,i=gU(i)?i:1,a=gU(a)?a:0,o=gU(o)?o:0,e.createLinearGradient(r,a,i,o)}function vU(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=gU(o)?o:.5,s=gU(s)?s:.5,c=c>=0&&gU(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function yU(e,t,n){for(var r=t.type===`radial`?vU(e,t,n):_U(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function bU(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function xU(e){return parseInt(e,10)}function SU(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||xU(s[r])||xU(e.style[r]))-(xU(s[a])||0)-(xU(s[o])||0)|0}function CU(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:pO(e)?[e]:Q(e)?e:null}function wU(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&CU(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=Z(n,function(e){return e/i}),r/=i)}return[n,r]}var TU=new ZP(!0);function EU(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function DU(e){return typeof e==`string`&&e!==`none`}function OU(e){var t=e.fill;return t!=null&&t!==`none`}function kU(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function AU(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function jU(e,t,n){var r=YN(t.image,t.__image,n);if(ZN(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*LO),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function MU(e,t,n,r){var i,a=EU(n),o=OU(n),s=n.strokePercent,c=s<1,l=!t.path;(!t.silent||c)&&l&&t.createPathProxy();var u=t.path||TU,d=t.__dirty;if(!r){var f=n.fill,p=n.stroke,m=o&&!!f.colorStops,h=a&&!!p.colorStops,g=o&&!!f.image,_=a&&!!p.image,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;(m||h)&&(S=t.getBoundingRect()),m&&(v=d?yU(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=v),h&&(y=d?yU(e,p,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),g&&(b=d||!t.__canvasFillPattern?jU(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),_&&(x=d||!t.__canvasStrokePattern?jU(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),m?e.fillStyle=v:g&&(b?e.fillStyle=b:o=!1),h?e.strokeStyle=y:_&&(x?e.strokeStyle=x:a=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var w,T;e.setLineDash&&n.lineDash&&(i=wU(t),w=i[0],T=i[1]);var E=!0;(l||d&4)&&(u.setDPR(e.dpr),c?u.setContext(null):(u.setContext(e),E=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),E&&u.rebuildPath(e,c?s:1),w&&(e.setLineDash(w),e.lineDashOffset=T),r||(n.strokeFirst?(a&&AU(e,n),o&&kU(e,n)):(o&&kU(e,n),a&&AU(e,n))),w&&e.setLineDash([])}function NU(e,t,n){var r=t.__image=YN(n.image,t.__image,t,t.onload);if(!(!r||!ZN(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function PU(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=wU(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(EU(n)&&e.strokeText(i,n.x,n.y),OU(n)&&e.fillText(i,n.x,n.y)):(OU(n)&&e.fillText(i,n.x,n.y),EU(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var FU=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],IU=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function LU(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){JU(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?dP.opacity:o}(r||t.blend!==n.blend)&&(a||=(JU(e,i),!0),e.globalCompositeOperation=t.blend||dP.blend);for(var s=0;s<FU.length;s++){var c=FU[s];(r||t[c]!==n[c])&&(a||=(JU(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(JU(e,i),!0),e.shadowColor=t.shadowColor||dP.shadowColor),a}function RU(e,t,n,r,i){var a=YU(t,i.inHover),o=r?null:n&&YU(n,i.inHover)||{};if(a===o)return!1;var s=LU(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(JU(e,i),!0),DU(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(JU(e,i),!0),DU(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(JU(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(JU(e,i),!0),e.lineWidth=c)}for(var l=0;l<IU.length;l++){var u=IU[l],d=u[0];(r||a[d]!==o[d])&&(s||=(JU(e,i),!0),e[d]=a[d]||u[1])}return s}function zU(e,t,n,r,i){return LU(e,YU(t,i.inHover),n&&YU(n,i.inHover),r,i)}function BU(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function VU(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),BU(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function HU(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var UU=1,WU=2,GU=3,KU=4;function qU(e){var t=OU(e),n=EU(e);return!(e.lineDash||!(t^+n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function JU(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill=``,t.batchStroke=``}function YU(e,t){return t&&e.__hoverStyle||e.style}function XU(e,t){ZU(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ZU(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var a=t.__clipPaths,o=n.prevElClipPaths,s=!1,c=!1;if((!o||bU(a,o))&&(o&&o.length&&(JU(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(JU(e,n),e.save(),VU(a,e,n),s=!0),n.prevElClipPaths=a),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof SF&&t.autoBatch&&qU(t.style);s||HU(i,l.transform)?(JU(e,n),BU(e,t)):u||JU(e,n);var d=YU(t,n.inHover);t instanceof SF?(n.lastDrawType!==UU&&(c=!0,n.lastDrawType=UU),RU(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),MU(e,t,d,u),u&&(n.batchFill=d.fill||``,n.batchStroke=d.stroke||``)):t instanceof wF?(n.lastDrawType!==GU&&(c=!0,n.lastDrawType=GU),RU(e,t,l,c,n),PU(e,t,d)):t instanceof OF?(n.lastDrawType!==WU&&(c=!0,n.lastDrawType=WU),zU(e,t,l,c,n),NU(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==KU&&(c=!0,n.lastDrawType=KU),QU(e,t,n)),u&&r&&JU(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function QU(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),ZU(e,c,a,o===s-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),ZU(e,c,a,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var $U=new Bge,eW=new HA(100),tW=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function nW(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&$U.delete(e);var a=$U.get(e);if(a)return a;var o=eO(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,$U.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<tW.length;++s){var c=o[tW[s]];if(c!=null&&!Q(c)&&!dO(c)&&!pO(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=eW.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=iW(o.dashArrayX),f=aW(o.dashArrayY),p=rW(o.symbol),m=oW(d),h=sW(f),g=!i&&BD.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&eW.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=pN(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=pN(r,p[t].length);e*=r;var i=h*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=pU(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else XU(y,u)}}}}function rW(e){if(!e||e.length===0)return[[`rect`]];if(dO(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!dO(e[n])){t=!1;break}if(t)return rW([e]);for(var r=[],n=0;n<e.length;++n)dO(e[n])?r.push([e[n]]):r.push(e[n]);return r}function iW(e){if(!e||e.length===0)return[[0,0]];if(pO(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!pO(e[r])){n=!1;break}if(n)return iW([e]);for(var i=[],r=0;r<e.length;++r)if(pO(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=Z(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function aW(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(pO(e)){var t=Math.ceil(e);return[t,t]}var n=Z(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function oW(e){return Z(e,function(e){return sW(e)})}function sW(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}function cW(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=nW(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=nW(i,t)}}})}var lW=new ik,uW={};function dW(e,t){uW[e]=t}function fW(e){return uW[e]}var pW={};function mW(e,t){pW[e]=t}function hW(e){return pW[e]}var gW=1,_W=800,vW=900,yW=1e3,bW=2e3,xW=5e3,SW=1e3,CW=1100,wW=2e3,TW=3e3,EW=4e3,DW=4500,OW=4600,kW=5e3,AW=6e3,jW=7e3,MW={PROCESSOR:{FILTER:yW,SERIES_FILTER:_W,STATISTIC:xW},VISUAL:{LAYOUT:SW,PROGRESSIVE_LAYOUT:CW,GLOBAL:wW,CHART:TW,POST_CHART_LAYOUT:OW,COMPONENT:EW,BRUSH:kW,CHART_ITEM:DW,ARIA:AW,DECAL:jW}},NW=`__flagInMainProcess`,PW=`__mainProcessVersion`,FW=`__pendingUpdate`,IW=`__needsUpdateStatus`,LW=/^[a-zA-Z0-9_]+$/,RW=`__connectUpdateStatus`,zW=0,BW=1,VW=2;function HW(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return WW(this,e,t)}}function UW(e){return function(){var t=[...arguments];return WW(this,e,t)}}function WW(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ik.prototype[t].apply(e,n)}var GW=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ik),KW=GW.prototype;KW.on=UW(`on`),KW.off=UW(`off`);var qW,JW,YW,XW,ZW,QW,$W,eG,tG,nG,rG,iG,aG,oG,sG,cG,lG,uG,dG,fG=function(e){J(t,e);function t(t,n,r){var i=e.call(this,new Pge)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[PW]=1,r.ssr&&Efe(function(e){var t=YF(e),n=t.dataIndex;if(n!=null){var r=jO();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=HM(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:xO(r.useDirtyRect,s),useCoarsePointer:xO(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=zH(cO(c.flush,c),17),i._updateTheme(n),i._locale=Pme(r.locale||sz),i._coordSysMgr=new Xz;var l=i._api=sG(i);function u(e,t){return e.__prio-t.__prio}return lA(bG,u),lA(vG,u),i._scheduler=new JH(i,l,vG,bG),i._messageCenter=new GW,i._initEvents(),i.resize=cO(i.resize,i),c.animation.on(`frame`,i._onframe,i),nG(c,i),rG(c,i),OO(i),i}return t.prototype._onframe=function(){if(!this._disposed){uG(this);var e=this._scheduler;if(this[FW]){var t=this[FW].silent;this[NW]=!0,dG(this);try{qW(this),XW.update.call(this,null,this[FW].updateParams)}catch(e){throw this[NW]=!1,this[FW]=null,e}this._zr.flush(),this[NW]=!1,this[FW]=null,eG.call(this,t),tG.call(this,t)}else if(e.unfinished){var n=gW,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),QW(this,r),e.performVisualTasks(r),oG(this,this._model,i,`remain`,{}),n-=+new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[NW]){if(this._disposed){this.id;return}var r,i,a;if(mO(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[NW]=!0,dG(this),!this._model||t){var o=new ghe(this._api),s=this._theme,c=this._model=new YB;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},yG);var l={seriesTransition:a,optionChanged:!0};if(n)this[FW]={silent:r,updateParams:l},this[NW]=!1,this.getZr().wakeUp();else{try{qW(this),XW.update.call(this,null,l)}catch(e){throw this[FW]=null,this[NW]=!1,e}this._ssr||this._zr.flush(),this[FW]=null,this[NW]=!1,eG.call(this,r),tG.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[NW]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[FW]&&(r??=this[FW].silent,i=this[FW].updateParams,this[FW]=null),this[NW]=!0,dG(this);try{this._updateTheme(e),n.setTheme(this._theme),qW(this),XW.update.call(this,{type:`setTheme`},i)}catch(e){throw this[NW]=!1,e}this[NW]=!1,eG.call(this,r),tG.call(this,r)}}},t.prototype._updateTheme=function(e){dO(e)&&(e=xG[e]),e&&(e=ZD(e),e&&gV(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||zD.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return X(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;X(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return X(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(wG[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();X(CG,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(ZD(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=BD.createCanvas(),h=HM(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return X(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}else return e.connectedBackgroundColor&&h.add(new PF({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),X(u,function(e){var t=new OF({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return ZW(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return ZW(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return ZW(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return X(MN(n,e),function(e,n){n.indexOf(`Models`)>=0&&X(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=MN(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?sU(i,t):oU(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;X(mG,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&dU(i,function(e){var t=YF(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=Y({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;X(_G,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),Lge(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&IN(this.getDom(),EG,``);var e=this,t=e._api,n=e._model;X(e._componentsViews,function(e){e.dispose(n,t)}),X(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete CG[e.id]},t.prototype.resize=function(e){if(!this[NW]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[FW]&&(r??=this[FW].silent,n=!0,this[FW]=null),this[NW]=!0,dG(this);try{n&&qW(this),XW.update.call(this,{type:`resize`,animation:Y({duration:0},e&&e.animation)})}catch(e){throw this[NW]=!1,e}this[NW]=!1,eG.call(this,r),tG.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(mO(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),SG[e]){var n=SG[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=Y({},e);return t.type=gG[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(mO(t)||(t={silent:!!t}),hG[e.type]&&this._model){if(this[NW]){this._pendingActions.push(e);return}var n=t.silent;$W.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&zD.browser.weChat&&this._throttledZrFlush(),eG.call(this,n),tG.call(this,n)}},t.prototype.updateLabelLayout=function(){lW.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){qW=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),JW(e,!0),JW(e,!1),t.plan()},JW=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=UN(e.type);u=new(t?AH.getClass(d.main,d.sub):NH.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},YW=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){X([].concat(e._componentsViews,e._chartsViews),u);return}var o={};o[r+`Id`]=n[r+`Id`],o[r+`Index`]=n[r+`Index`],o[r+`Name`]=n[r+`Name`];var s={mainType:r,query:o};i&&(s.subType=i);var c=n.excludeSeriesId,l;c!=null&&(l=jO(),X(bN(c),function(e){var t=DN(e,null);t!=null&&l.set(t,!0)})),a&&a.eachComponent(s,function(t){if(!(l&&l.get(t.id)!=null))if(HI(n))if(t instanceof EH)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Mpe(t,n,e._api);else{var r=MI(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&jI(t.mainType,t.componentIndex,e._api),a&&X(a,function(e){n.type===`highlight`?SI(e):CI(e)})}else VI(n)&&t instanceof EH&&(Fpe(t,n,e._api),NI(t),lG(e))},e),a&&a.eachComponent(s,function(t){l&&l.get(t.id)!=null||u(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function u(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},XW={prepareAndUpdate:function(e){qW(this),XW.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,e),QW(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),iG(this,r,i,e,n),lW.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var a=[];r.eachComponent(function(t,o){if(t!==`series`){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,r,i,e);c&&c.update&&a.push(s)}else a.push(s)}});var o=jO();r.eachSeries(function(t){var a=n._chartsMap[t.__viewId];if(a.updateTransform){var s=a.updateTransform(t,r,i,e);s&&s.update&&o.set(t.uid,1)}else o.set(t.uid,1)}),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:o}),oG(this,r,i,e,{},o),lW.trigger(`afterupdate`,r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),NH.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),iG(this,n,this._api,e,{}),lW.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),NH.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),lW.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){XW.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=MN(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}ZW=e,QW=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},$W=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=hG[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&UN(s[0]);this[NW]=!0,dG(this);var u=[e],d=!1;e.batch&&(d=!0,u=Z(e.batch,function(t){return t=eO(Y({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=VI(e),_=HI(e);if(_&&kI(this._api),X(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=Y({},t),p.type=h,f.push(p),_){var a=NN(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;YW(n,c,t,u),lG(n)}else g?(YW(n,c,t,`series`),lG(n)):l&&YW(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[FW]?(qW(this),XW.update.call(this,e),this[FW]=null):XW[c].call(this,e)}catch(e){throw this[NW]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[NW]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;TO(mO(y)),v=eO({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},eG=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();$W.call(this,n,e)}},tG=function(e){!e&&this.trigger(`updated`)},nG=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[FW]&&!t._scheduler.unfinished&&!t._pendingActions.length&&t.trigger(`finished`)})},rG=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=dU(n,BI);r&&(Npe(r,e,t._api),lG(t))}).on(`mouseout`,function(e){var n=e.target,r=dU(n,BI);r&&(Ppe(r,e,t._api),lG(t))}).on(`click`,function(e){var n=e.target,r=dU(n,function(e){return YF(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=YF(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;lA(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),X(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}iG=function(e,t,r,i,a){n(t),aG(e,t,r,i,a),X(e._chartsViews,function(e){e.__alive=!1}),oG(e,t,r,i,a),X(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},aG=function(e,t,n,r,i,a){X(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},oG=function(e,t,n,r,l,u){var d=e._scheduler;l=Y(l||{},{updatedSeries:t.getSeries()}),lW.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),NI(t)}),d.unfinished=f||d.unfinished,lW.trigger(`series:layoutlabels`,t,n,l),lW.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),lW.trigger(`series:afterupdate`,t,n,l)},lG=function(e){e[IW]=!0,e.getZr().wakeUp()},dG=function(e){e[PW]=(e[PW]+1)%1e3},uG=function(e){e[IW]&&(e.getZr().storage.traverse(function(e){GL(e)||r(e)}),e[IW]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i===`emphasis`||i===`blur`||i===`select`||t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr.storage,r=0;n.traverse(function(e){e.isGroup||r++}),r>t.get(`hoverLayerThreshold`)&&!zD.node&&!zD.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=kR(e);t.eachRendered(function(e){return jR(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!GL(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(GL(e))return;if(e instanceof SF&&Vpe(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}sG=function(e){return new(function(t){J(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){SI(t,n),lG(e)},n.prototype.leaveEmphasis=function(t,n){CI(t,n),lG(e)},n.prototype.enterBlur=function(t){wI(t),lG(e)},n.prototype.leaveBlur=function(t){TI(t),lG(e)},n.prototype.enterSelect=function(t){EI(t),lG(e)},n.prototype.leaveSelect=function(t){DI(t),lG(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getMainProcessVersion=function(){return e[PW]},n}($B))(e)},cG=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[RW]=t}}X(gG,function(n,r){e._messageCenter.on(r,function(n){if(wG[e.group]&&e[RW]!==zW){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];X(CG,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,zW),X(i,function(e){e[RW]!==BW&&e.dispatchAction(r)}),t(i,VW)}})})}}(),t}(ik),pG=fG.prototype;pG.on=HW(`on`),pG.off=HW(`off`),pG.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var mG=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],hG={},gG={},_G={},vG=[],yG=[],bG=[],xG={},SG={},CG={},wG={},TG=new Date-0;new Date-0;var EG=`_echarts_instance_`;function DG(e,t,n){var r=!(n&&n.ssr);if(r){var i=OG(e);if(i)return i}var a=new fG(e,t,n);return a.id=`ec_`+ TG++,CG[a.id]=a,r&&IN(e,EG,a.id),cG(a),lW.trigger(`afterinit`,a),a}function OG(e){return CG[Xfe(e,EG)]}function kG(e,t){xG[e]=t}function AG(e){tO(yG,e)<0&&yG.push(e)}function jG(e,t){BG(vG,e,t,bW)}function MG(e){PG(`afterinit`,e)}function NG(e){PG(`afterupdate`,e)}function PG(e,t){lW.on(e,t)}function FG(e,t,n){var r,i,a,o,s;uO(t)&&(n=t,t=``),mO(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;hG[r]||(TO(LW.test(r)&&LW.test(i)),a&&TO(i!==r),hG[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},_G[i]=1,a&&s&&(_G[l]=1),gG[l]=r)}function IG(e,t){Xz.register(e,t)}function LG(e,t){BG(bG,e,t,SW,`layout`)}function RG(e,t){BG(bG,e,t,TW,`visual`)}var zG=[];function BG(e,t,n,r,i){if((uO(t)||mO(t))&&(n=t,t=r),!(tO(zG,n)>=0)){zG.push(n);var a=JH.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function VG(e,t){SG[e]=t}function HG(e,t,n){var r=fW(`registerMap`);r&&r(e,t,n)}var UG=Jhe;RG(wW,bge),RG(DW,xge),RG(DW,Sge),RG(wW,Fge),RG(DW,Ige),RG(jW,cW),AG(gV),jG(vW,Ohe),VG(`default`,Cge),FG({type:rI,event:rI,update:rI},IO),FG({type:iI,event:iI,update:iI},IO),FG({type:aI,event:cI,update:aI,action:IO,refineEvent:WG,publishNonRefinedEvent:!0}),FG({type:oI,event:cI,update:oI,action:IO,refineEvent:WG,publishNonRefinedEvent:!0}),FG({type:sI,event:cI,update:sI,action:IO,refineEvent:WG,publishNonRefinedEvent:!0});function WG(e,t,n,r){return{eventContent:{selected:Ipe(n),isFromClick:t.isFromClick||!1}}}kG(`default`,{}),kG(`dark`,rU);var GG=[],KG={registerPreprocessor:AG,registerProcessor:jG,registerPostInit:MG,registerPostUpdate:NG,registerUpdateLifecycle:PG,registerAction:FG,registerCoordinateSystem:IG,registerLayout:LG,registerVisual:RG,registerTransform:UG,registerLoading:VG,registerMap:HG,registerImpl:dW,PRIORITY:MW,ComponentModel:yB,ComponentView:AH,SeriesModel:EH,ChartView:NH,registerComponentModel:function(e){yB.registerClass(e)},registerComponentView:function(e){AH.registerClass(e)},registerSeriesModel:function(e){EH.registerClass(e)},registerChartView:function(e){NH.registerClass(e)},registerCustomSeries:function(e,t){mW(e,t)},registerSubTypeDefaulter:function(e,t){yB.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){wfe(e,t)}};function qG(e){if(Q(e)){X(e,function(e){qG(e)});return}tO(GG,e)>=0||(GG.push(e),uO(e)&&(e={install:e}),e.install(KG))}function JG(e){return e==null?0:e.length||1}function YG(e){return e}var XG=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||YG,this._newKeyGetter=r||YG,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=JG(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=JG(c),d=JG(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=JG(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=JG(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),ZG=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function QG(e,t){var n={},r=n.encode={},i=jO(),a=[],o=[],s={};X(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;$G(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),tK(n.type)&&(a[0]=t),$G(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}EB.each(function(e,t){var i=$G(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=Z(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new ZG(s,t),n}function $G(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function eK(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function tK(e){return!(e===`ordinal`||e===`time`)}var nK=function(){function e(e){this.otherDims={},e!=null&&Y(this,e)}return e}(),rK=jN(),iK={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},aK=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=cK(this.source))},e.prototype.getSourceDimensionIndex=function(e){return xO(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=wV(this.source),n=!lK(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=iK[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function oK(e){return e instanceof aK}function sK(e){for(var t=jO(),n=0;n<(e||[]).length;n++){var r=e[n],i=mO(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function cK(e){var t=rK(e);return t.dimNameMap||=sK(e.dimensionsDefine)}function lK(e){return e>30}var uK=mO,dK=Z,fK=typeof Int32Array>`u`?Array:Int32Array,pK=`e\0\0`,mK=-1,hK=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],gK=[`_approximateExtent`],_K,vK,yK,bK,xK,SK,CK,wK=function(){function e(e,t){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,r=!1;oK(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=dO(u)?new nK({name:u}):u instanceof nK?u:new nK(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]);var m=l;pO(d.storeDimIndex)&&(m=d.storeDimIndex),p.itemName===0&&(this._nameDimIdx=m),p.itemId===0&&(this._idDimIdx=m),r&&(d.storeDimIndex=l)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var h=this._dimIdxToName=jO();X(a,function(e){h.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(pO(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof aH&&(i=e),!i){var a=this.dimensions,o=vV(e)||rO(e)?new jV(e,a.length):e;i=new aH;var s=dK(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=QG(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&CK(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&Lfe(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=DN(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=DN(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)CK(this,o);_K(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){uK(e)?Y(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=yK(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return vK(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return Q(e)?r.getValues(dK(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?mK:r},e.prototype.each=function(e,t,n){uO(e)&&(n=t,t=e,e=[]);var r=n||this,i=dK(bK(e),this._getStoreDimIndex,this);this._store.each(i,r?cO(t,r):t)},e.prototype.filterSelf=function(e,t,n){uO(e)&&(n=t,t=e,e=[]);var r=n||this,i=dK(bK(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?cO(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=sO(e),i=[];return X(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){uO(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=dK(bK(e),this._getStoreDimIndex,this),o=SK(this);return o._store=this._store.map(a,i?cO(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=dK(bK(e),this._getStoreDimIndex,this);this._store.modify(a,i?cO(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=SK(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=SK(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=SK(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new $R(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new XG(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return vK(e,t)},function(e){return vK(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},uK(e)?Y(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),Q(i)?i=i.slice():uK(i)&&(i=Y({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,uK(t)?Y(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){uK(e)?Y(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?Y(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){XF(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){X(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:dK(this.dimensions,this._getDimInfo,this),this.hostModel),xK(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];uO(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(CO(arguments)))})},e.internalField=function(){_K=function(e){var t=e._invertedIndicesMap;X(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new fK(a.categories.length);for(var s=0;s<n.length;s++)n[s]=mK;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},yK=function(e,t,n){return DN(e._getCategory(t,n),null)},vK=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=yK(e,e._idDimIdx,t)),n??=pK+t,n},bK=function(e){return Q(e)||(e=e==null?[]:[e]),e},SK=function(t){var n=new e(t._schema?t._schema:dK(t.dimensions,t._getDimInfo,t),t.hostModel);return xK(n,t),n},xK=function(e,t){X(hK.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,X(gK,function(n){e[n]=ZD(t[n])}),e._calculationInfo=Y({},t._calculationInfo)},CK=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=yK(e,i,t)),s==null&&a!=null&&(r[t]=s=yK(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function TK(e,t){vV(e)||(e=bV(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=jO(),a=[],o=DK(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&lK(o),c=r===e.dimensionsDefine,l=c?cK(e):sK(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=jO(u),f=new QV(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=mO(n)?n:{name:n},o=new nK,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=bN(e).slice();if(n.length===1&&!dO(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);X(n,function(e,n){var i=dO(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;X(n,function(e){var t,n,r,i;if(dO(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=Y({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=bN(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}X(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(eO(o,i),t,a),o.name==null&&n){var s=n[a];!mO(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&eO(o.otherDims,r)})}});function g(e,t,n){EB.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)X(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=OK(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(RB(e,S)===NB.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return EK(a),new aK({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function EK(e){for(var t=jO(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function DK(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return X(t,function(e){var t;mO(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function OK(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var kK=function(){function e(e){this.coordSysDims=[],this.axisMap=jO(),this.categoryAxisMap=jO(),this.coordSysName=e}return e}();function AK(e){var t=e.get(`coordinateSystem`),n=new kK(t),r=jK[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var jK={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,PN).models[0],a=e.getReferringComponents(`yAxis`,PN).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),MK(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),MK(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,PN).models[0];t.coordSysDims=[`single`],n.set(`single`,i),MK(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,PN).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),MK(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),MK(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();X(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),MK(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,PN).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function MK(e){return e.get(`type`)===`category`}function NK(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;PK(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f;if(X(a,function(e,t){dO(e)&&(a[t]=e={name:e}),c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&e.type!==`ordinal`&&e.type!==`time`&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,m=u.type,h=0;X(a,function(e){e.coordDim===p&&h++});var g={name:d,coordDim:p,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:f,coordDim:f,coordDimIndex:h+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),o.appendCalculationDimension(g),o.appendCalculationDimension(_)):(a.push(g),a.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function PK(e){return!oK(e.schema)}function FK(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function IK(e,t){return FK(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function LK(e,t){var n=e.get(`coordinateSystem`),r=Xz.get(n),i;return t&&t.coordSysDims&&(i=Z(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=eK(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function RK(e,t,n){var r,i;return n&&X(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function zK(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=bV(e)):(i=r.getSource(),a=i.sourceFormat===DB);var o=AK(t),s=LK(t,o),c=n.useEncodeDefaulter,l=uO(c)?c:c?lO(FB,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=TK(i,u),f=RK(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=NK(t,{schema:d,store:p}),h=new wK(d,t);h.setCalculationInfo(m);var g=f!=null&&BK(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function BK(e){if(e.sourceFormat===`original`)return!Q(CN(VK(e.data||[])))}function VK(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function HK(e){return e.type===`interval`||e.type===`log`}function UK(e,t,n,r,i){var a={},o=a.interval=oN(t/n,!0);r!=null&&o<r&&(o=a.interval=r),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=GK(o);return qK(a.niceTickExtent=[QM(Math.ceil(e[0]/o)*o,s),QM(Math.floor(e[1]/o)*o,s)],e),a}function WK(e){var t=10**aN(e),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,QM(n*t)}function GK(e){return eN(e)+2}function KK(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function qK(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),KK(e,0,t),KK(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function JK(e,t){return e>=t[0]&&e<=t[1]}var YK=function(){function e(){this.normalize=XK,this.scale=ZK}return e.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=cO(e.normalize,e),this.scale=cO(e.scale,e)):(this.normalize=XK,this.scale=ZK)},e}();function XK(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function ZK(e,t){return e*(t[1]-t[0])+t[0]}function QK(e,t,n){var r=Math.log(e);return[Math.log(n?t[0]:Math.max(0,t[0]))/r,Math.log(n?t[1]:Math.max(0,t[1]))/r]}var $K=function(){function e(e){this._calculator=new YK,this._setting=e||{},this._extent=[1/0,-1/0];var t=dz();t&&(this._brkCtx=t.createScaleBreakContext(),this._brkCtx.update(this._extent))}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]<t[0]?e[0]:t[0],e[1]>t[1]?e[1]:t[1])},e.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},e.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(e){var t=dz();t&&this._innerSetBreak(t.parseAxisBreakOption(e,cO(this.parse,this)))},e.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();KN($K);var eq=0,tq=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++eq,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Z(r,nq);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!dO(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=jO(this.categories)},e}();function nq(e){return mO(e)&&e.value!=null?e.value:e+``}var rq=function(e){J(t,e);function t(t){var n=e.call(this,t)||this;n.type=`ordinal`;var r=n.getSetting(`ordinalMeta`);return r||=new tq({}),Q(r)&&(r=new tq({categories:Z(r,function(e){return mO(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting(`extent`)||[0,r.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:dO(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return JK(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n.push(c),r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type=`ordinal`,t}($K);$K.registerClass(rq);var iq=QM,aq=function(e){J(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`interval`,t._interval=0,t._intervalPrecision=2,t}return t.prototype.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.contain=function(e){return JK(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=GK(e)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=dz(),o=[];if(!t)return o;if(e.breakTicks===`only_break`&&a)return a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var s=1e4;n[0]<r[0]&&(e.expandToNicedExtent?o.push({value:iq(r[0]-t,i)}):o.push({value:n[0]}));for(var c=function(e,n){return Math.round((n-e)/t)},l=r[0];l<=r[1];){if(o.push({value:l}),l=iq(l+t,i),this._brkCtx){var u=this._brkCtx.calcNiceTickMultiple(l,c);u>=0&&(l=iq(l+u*t,i))}if(o.length>0&&l===o[o.length-1].value)break;if(o.length>s)return[]}var d=o.length?o[o.length-1].value:r[1];return n[1]>d&&(e.expandToNicedExtent?o.push({value:iq(d+t,i)}):o.push({value:n[1]})),a&&a.pruneTicksByBreak(e.pruneByBreak,o,this._brkCtx.breaks,function(e){return e.value},this._interval,this._extent),e.breakTicks!==`none`&&a&&a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks({expandToNicedExtent:!0}),n=[],r=this.getExtent(),i=1;i<t.length;i++){var a=t[i],o=t[i-1];if(!(o.break||a.break)){for(var s=0,c=[],l=(a.value-o.value)/e,u=GK(l);s<e-1;){var d=iq(o.value+(s+1)*l,u);d>r[0]&&d<r[1]&&c.push(d),s++}var f=dz();f&&f.pruneTicksByBreak(`auto`,c,this._getNonTransBreaks(),function(e){return e},this._interval,r),n.push(c)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=eN(e.value)||0:n===`auto`&&(n=this._intervalPrecision),zz(iq(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e||=5;var r=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(isFinite(i)){i<0&&(i=-i,r.reverse(),this._innerSetExtent(r[0],r[1]),r=this._extent.slice());var a=UK(r,i,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent.slice();if(t[0]===t[1])if(t[0]!==0){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this._innerSetExtent(t[0],t[1]),t=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval,a=this._intervalPrecision;e.fixMin||(t[0]=iq(Math.floor(t[0]/i)*i,a)),e.fixMax||(t[1]=iq(Math.ceil(t[1]/i)*i,a)),this._innerSetExtent(t[0],t[1])},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type=`interval`,t}($K);$K.registerClass(aq);var oq=typeof Float32Array<`u`,sq=oq?Float32Array:Array;function cq(e){return Q(e)?oq?new Float32Array(e):e:new sq(e)}var lq=`__ec_stack_`;function uq(e){return e.get(`stack`)||lq+e.seriesIndex}function dq(e){return e.dim+e.index}function Kge(e){var t=[],n=e.axis,r=`axis0`;if(n.type===`category`){for(var i=n.getBandWidth(),a=0;a<e.count;a++)t.push(eO({bandWidth:i,axisKey:r,stackId:lq+a},e));for(var o=mq(t),s=[],a=0;a<e.count;a++){var c=o[r][lq+a];c.offsetCenter=c.offset+c.width/2,s.push(c)}return s}}function fq(e,t){var n=[];return t.eachSeriesByType(e,function(e){_q(e)&&n.push(e)}),n}function qge(e){var t={};X(e,function(e){var n=e.coordinateSystem.getBaseAxis();if(!(n.type!==`time`&&n.type!==`value`))for(var r=e.getData(),i=n.dim+`_`+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),o=r.getStore(),s=0,c=o.count();s<c;++s){var l=o.get(a,s);t[i]?t[i].push(l):t[i]=[l]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(e,t){return e-t});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}n[r]=a}}return n}function pq(e){var t=qge(e),n=[];return X(e,function(e){var r=e.coordinateSystem.getBaseAxis(),i=r.getExtent(),a;if(r.type===`category`)a=r.getBandWidth();else if(r.type===`value`||r.type===`time`){var o=t[r.dim+`_`+r.index],s=Math.abs(i[1]-i[0]),c=r.scale.getExtent(),l=Math.abs(c[1]-c[0]);a=o?s/l*o:s}else{var u=e.getData();a=Math.abs(i[1]-i[0])/u.count()}var d=XM(e.get(`barWidth`),a),f=XM(e.get(`barMaxWidth`),a),p=XM(e.get(`barMinWidth`)||(vq(e)?.5:1),a),m=e.get(`barGap`),h=e.get(`barCategoryGap`),g=e.get(`defaultBarGap`);n.push({bandWidth:a,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:m,barCategoryGap:h,defaultBarGap:g,axisKey:dq(r),stackId:uq(e)})}),mq(n)}function mq(e){var t={};X(e,function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:e.defaultBarGap||0,stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var c=e.barWidth;c&&!o[s].width&&(o[s].width=c,c=Math.min(a.remainedWidth,c),a.remainedWidth-=c);var l=e.barMaxWidth;l&&(o[s].maxWidth=l);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;d!=null&&(a.gap=d);var f=e.barCategoryGap;f!=null&&(a.categoryGap=f)});var n={};return X(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(a==null){var o=sO(r).length;a=Math.max(35-o*4,15)+`%`}var s=XM(a,i),c=XM(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,d=(l-s)/(u+(u-1)*c);d=Math.max(d,0),X(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){var r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,l-=r+c*r,u--}else{var r=d;t&&t<r&&(r=Math.min(t,l)),n&&n>r&&(r=n),r!==d&&(e.width=r,l-=r+c*r,u--)}}),d=(l-s)/(u+(u-1)*c),d=Math.max(d,0);var f=0,p;X(r,function(e,t){e.width||=d,p=e,f+=e.width*(1+c)}),p&&(f-=p.width*c);var m=-f/2;X(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+c)})}),n}function Jge(e,t,n){if(e&&t){var r=e[dq(t)];return r!=null&&n!=null?r[uq(n)]:r}}function hq(e,t){var n=fq(e,t),r=pq(n);X(n,function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=uq(e),a=r[dq(n)][i],o=a.offset,s=a.width;t.setLayout({bandWidth:a.bandWidth,offset:o,size:s})})}function gq(e){return{seriesType:e,plan:jH(),reset:function(e){if(_q(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=FK(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=Yge(r,i),p=vq(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&cq(r*3),c=p&&s&&cq(r*3),l=p&&cq(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);if(u){var M=n.dataToPoint([E,w]);T=M[0]}D=T,O=j[1]+_,k=j[0]-T,A=g,Math.abs(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);if(u){var M=n.dataToPoint([w,E]);T=M[1]}D=j[0]+_,O=T,k=g,A=j[1]-T,Math.abs(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function _q(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function vq(e){return e.pipelineContext&&e.pipelineContext.large}function Yge(e,t){var n=t.model.get(`startValue`);return n||=0,t.toGlobalCoord(t.dataToCoord(t.type===`log`?n>0?n:1:n))}var Xge=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},yq=function(e){J(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`time`,n}return t.prototype.getLabel=function(e){var t=this.getSetting(`useUTC`);return Cz(e.value,yz[Ume(Sz(this._minLevelUnit))]||yz.second,t,this.getSetting(`locale`))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting(`useUTC`);return Wme(e,t,n,this.getSetting(`locale`),r)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=dz(),i=[];if(!t)return i;var a=this.getSetting(`useUTC`);if(r&&e.breakTicks===`only_break`)return dz().addBreaksToTicks(i,this._brkCtx.breaks,this._extent),i;var o=wz(n[1],a);i.push({value:n[0],time:{level:0,upperTimeUnit:o,lowerTimeUnit:o}});var s=r_e(this._minLevelUnit,this._approxInterval,a,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(s);var c=wz(n[1],a);i.push({value:n[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}});var l=this.getSetting(`useUTC`),u=bz.length-1,d=0;return X(i,function(e){u=Math.min(u,tO(bz,e.time.upperTimeUnit)),d=Math.max(d,e.time.level)}),r&&dz().pruneTicksByBreak(e.pruneByBreak,i,this._brkCtx.breaks,function(e){return e.value},this._approxInterval,this._extent),r&&e.breakTicks!==`none`&&dz().addBreaksToTicks(i,this._brkCtx.breaks,this._extent,function(e){for(var t=Math.max(tO(bz,wz(e.vmin,l)),tO(bz,wz(e.vmax,l))),n=0,r=0;r<bz.length;r++)if(!xq(bz[r],e.vmin,e.vmax,l)){n=r;break}var i=Math.min(n,u);return{level:d,lowerTimeUnit:bz[Math.max(i,t)],upperTimeUnit:bz[i]}}),i},t.prototype.calcNiceExtent=function(e){var t=this.getExtent();if(t[0]===t[1]&&(t[0]-=hz,t[1]+=hz),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-hz}this._innerSetExtent(t[0],t[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e||=10;var r=this._getExtentSpanWithBreaks();this._approxInterval=r/e,t!=null&&this._approxInterval<t&&(this._approxInterval=t),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var i=bq.length,a=Math.min(Xge(bq,this._approxInterval,0,i),i-1);this._interval=bq[a][1],this._intervalPrecision=GK(this._interval),this._minLevelUnit=bq[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return pO(e)?e:+iN(e)},t.prototype.contain=function(e){return JK(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type=`time`,t}(aq),bq=[[`second`,fz],[`minute`,pz],[`hour`,mz],[`quarter-day`,mz*6],[`half-day`,mz*12],[`day`,hz*1.2],[`half-week`,hz*3.5],[`week`,hz*7],[`month`,hz*31],[`quarter`,hz*95],[`half-year`,gz/2],[`year`,gz]];function xq(e,t,n,r){return Tz(new Date(t),e,r).getTime()===Tz(new Date(n),e,r).getTime()}function Zge(e,t){return e/=hz,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Qge(e){var t=30*hz;return e/=t,e>6?6:e>3?3:e>2?2:1}function $ge(e){return e/=mz,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Sq(e,t){return e/=t?pz:fz,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function e_e(e){return oN(e,!0)}function t_e(e,t,n){var r=Math.max(0,tO(bz,t)-1);return Tz(new Date(e),bz[r],n).getTime()}function n_e(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function r_e(e,t,n,r,i,a){var o=1e4,s=zme,c=0;function l(e,t,n,i,s,l,u){for(var d=n_e(s,e),f=t,p=new Date(f);f<n&&f<=r[1]&&(u.push({value:f}),!(c++>o));)if(p[s](p[i]()+e),f=p.getTime(),a){var m=a.calcNiceTickMultiple(f,d);m>0&&(p[s](p[i]()+m*e),f=p.getTime())}u.push({value:f,notAdd:!0})}function u(e,i,a){var o=[],s=!i.length;if(!xq(Sz(e),r[0],r[1],n)){s&&(i=[{value:t_e(r[0],e,n)},{value:r[1]}]);for(var c=0;c<i.length-1;c++){var u=i[c].value,d=i[c+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/hz/365)),p=Ez(n),m=Gme(n);break;case`half-year`:case`quarter`:case`month`:f=Qge(t),p=Dz(n),m=Nz(n);break;case`week`:case`half-week`:case`day`:f=Zge(t,31),p=Oz(n),m=Pz(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=$ge(t),p=kz(n),m=Fz(n);break;case`minute`:f=Sq(t,!0),p=Az(n),m=Iz(n);break;case`second`:f=Sq(t,!1),p=jz(n),m=Lz(n);break;case`millisecond`:f=e_e(t),p=Mz(n),m=Rz(n);break}d>=r[0]&&u<=r[1]&&l(f,u,d,p,m,h,o),e===`year`&&a.length>1&&c===0&&a.unshift({value:a[0].value-f})}}for(var c=0;c<o.length;c++)a.push(o[c])}}for(var d=[],f=[],p=0,m=0,h=0;h<s.length;++h){var g=Sz(s[h]);if(Hme(s[h])&&(u(s[h],d[d.length-1]||[],f),g!==(s[h+1]?Sz(s[h+1]):null))){if(f.length){m=p,f.sort(function(e,t){return e.value-t.value});for(var _=[],v=0;v<f.length;++v){var y=f[v].value;(v===0||f[v-1].value!==y)&&(_.push(f[v]),y>=r[0]&&y<=r[1]&&p++)}var b=i/t;if(p>b*1.5&&m>b/1.5||(d.push(_),p>b||e===s[h]))break}f=[]}}for(var x=aO(Z(d,function(e){return aO(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),S=[],C=x.length-1,h=0;h<x.length;++h)for(var w=x[h],T=0;T<w.length;++T){var E=wz(w[T].value,n);S.push({value:w[T].value,time:{level:C-h,upperTimeUnit:E,lowerTimeUnit:E}})}S.sort(function(e,t){return e.value-t.value});for(var D=[],h=0;h<S.length;++h)(h===0||S[h].value!==S[h-1].value)&&D.push(S[h]);return D}$K.registerClass(yq);var Cq=QM,i_e=Math.floor,a_e=Math.ceil,wq=Math.pow,Tq=Math.log,Eq=function(e){J(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`log`,t.base=10,t._originalScale=new aq,t}return t.prototype.getTicks=function(t){t||={};var n=this._extent.slice(),r=this._originalScale.getExtent(),i=e.prototype.getTicks.call(this,t),a=this.base,o=this._originalScale._innerGetBreaks(),s=dz();return Z(i,function(e){var t=e.value,i=null,c=wq(a,t);t===n[0]&&this._fixMin?i=r[0]:t===n[1]&&this._fixMax&&(i=r[1]);var l;if(s){var u=s.getTicksLogTransformBreak(e,a,o,Dq);l=u.vBreak,i??=u.brkRoundingCriterion}return i!=null&&(c=Dq(c,i)),{value:c,break:l}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(t,n){this._originalScale.setExtent(t,n);var r=QK(this.base,[t,n]);e.prototype.setExtent.call(this,r[0],r[1])},t.prototype.getExtent=function(){var t=this.base,n=e.prototype.getExtent.call(this);n[0]=wq(t,n[0]),n[1]=wq(t,n[1]);var r=this._originalScale.getExtent();return this._fixMin&&(n[0]=Dq(n[0],r[0])),this._fixMax&&(n[1]=Dq(n[1],r[1])),n},t.prototype.unionExtentFromData=function(e,t){this._originalScale.unionExtentFromData(e,t);var n=QK(this.base,e.getApproximateExtent(t),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(e){e||=10;var t=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var r=Nfe(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[Cq(a_e(t[0]/r)*r),Cq(i_e(t[1]/r)*r)];this._interval=r,this._intervalPrecision=GK(r),this._niceExtent=i}},t.prototype.calcNiceExtent=function(t){e.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},t.prototype.contain=function(t){return t=Tq(t)/Tq(this.base),e.prototype.contain.call(this,t)},t.prototype.normalize=function(t){return t=Tq(t)/Tq(this.base),e.prototype.normalize.call(this,t)},t.prototype.scale=function(t){return t=e.prototype.scale.call(this,t),wq(this.base,t)},t.prototype.setBreaksFromOption=function(e){var t=dz();if(t){var n=t.logarithmicParseBreaksFromOption(e,this.base,cO(this.parse,this)),r=n.parsedOriginal,i=n.parsedLogged;this._originalScale._innerSetBreak(r),this._innerSetBreak(i)}},t.type=`log`,t}(aq);function Dq(e,t){return Cq(e,eN(t))}$K.registerClass(Eq);var o_e=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal=e.type===`ordinal`;this._needCrossZero=e.type===`interval`&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get(`min`,!0);i??=t.get(`startValue`,!0);var a=this._modelMinRaw=i;uO(a)?this._modelMinNum=kq(e,a({min:n[0],max:n[1]})):a!==`dataMin`&&(this._modelMinNum=kq(e,a));var o=this._modelMaxRaw=t.get(`max`,!0);if(uO(o)?this._modelMaxNum=kq(e,o({min:n[0],max:n[1]})):o!==`dataMax`&&(this._modelMaxNum=kq(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get(`boundaryGap`),c=Q(s)?s:[s||0,s||0];typeof c[0]==`boolean`||typeof c[1]==`boolean`?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[kM(c[0],1),kM(c[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,a=e?null:n-t||Math.abs(t),o=this._modelMinRaw===`dataMin`?t:this._modelMinNum,s=this._modelMaxRaw===`dataMax`?n:this._modelMaxNum,c=o!=null,l=s!=null;o??=e?r?0:NaN:t-i[0]*a,s??=e?r?r-1:NaN:n+i[1]*a,(o==null||!isFinite(o))&&(o=NaN),(s==null||!isFinite(s))&&(s=NaN);var u=yO(o)||yO(s)||e&&!r;this._needCrossZero&&(o>0&&s>0&&!c&&(o=0),o<0&&s<0&&!l&&(s=0));var d=this._determinedMin,f=this._determinedMax;return d!=null&&(o=d,c=!0),f!=null&&(s=f,l=!0),{min:o,max:s,minFixed:c,maxFixed:l,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[c_e[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=s_e[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),s_e={min:`_determinedMin`,max:`_determinedMax`},c_e={min:`_dataMin`,max:`_dataMax`};function Oq(e,t,n){var r=e.rawExtentInfo;return r||(r=new o_e(e,t,n),e.rawExtentInfo=r,r)}function kq(e,t){return t==null?null:yO(t)?NaN:e.parse(t)}function Aq(e,t){var n=e.type,r=Oq(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&n===`time`){var s=fq(`bar`,o),c=!1;if(X(s,function(e){c||=e.getBaseAxis()===t.axis}),c){var l=pq(s),u=l_e(i,a,t,l);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function l_e(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=Jge(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;X(o,function(e){s=Math.min(e.offset,s)});var c=-1/0;X(o,function(e){c=Math.max(e.offset+e.width,c)}),s=Math.abs(s),c=Math.abs(c);var l=s+c,u=t-e,d=u/(1-(s+c)/a)-u;return t+=c/l*d,e-=s/l*d,{min:e,max:t}}function jq(e,t){var n=t,r=Aq(e,n),i=r.extent,a=n.get(`splitNumber`);e instanceof Eq&&(e.base=n.get(`logBase`));var o=e.type,s=n.get(`interval`),c=o===`interval`||o===`time`;e.setBreaksFromOption(Bq(n)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get(`minInterval`):null,maxInterval:c?n.get(`maxInterval`):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Mq(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new rq({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case`time`:return new yq({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new(($K.getClass(t))||aq)}}function u_e(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function Nq(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=Bme(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(dO(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(uO(t)){if(e.type===`category`)return function(n,r){return t(Pq(e,n),n.value-e.scale.getExtent()[0],null)};var r=dz();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(Pq(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function Pq(e,t){return e.type===`category`?e.scale.getLabel(t):t.value}function Fq(e){return e.get(`interval`)??`auto`}function Iq(e){return e.type===`category`&&Fq(e.getLabelModel())===0}function Lq(e,t){var n={};return X(e.mapDimensionsAll(t),function(t){n[IK(e,t)]=!0}),sO(n)}function d_e(e,t,n){t&&X(Lq(t,n),function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])})}function Rq(e){return e===`middle`||e===`center`}function zq(e){return e.getShallow(`show`)}function Bq(e){var t=e.get(`breaks`,!0);if(t!=null)return!dz()||!f_e(e.axis)?void 0:t}function f_e(e){return(e.dim===`x`||e.dim===`y`||e.dim===`z`||e.dim===`single`)&&e.type!==`category`}var Vq=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),p_e=1e-8;function Hq(e,t){return Math.abs(e-t)<p_e}function Uq(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=aF(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!Hq(i[0],s[0])||!Hq(i[1],s[1]))&&(r+=aF(i[0],i[1],s[0],s[1],t,n)),r!==0}var m_e=[];function Wq(e,t){for(var n=0;n<e.length;n++)ek(e[n],e[n],t)}function Gq(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(tk(t,t,a),nk(n,n,a))}}function h_e(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Kq=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||=this._center=this.calcCenter(),e},e}(),qq=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),Jq=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),Yq=function(e){J(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.type=`geoJSON`,i.geometries=n,i._center=r&&[r[0],r[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,t,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return h_e(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return X(i,function(t){t.type===`polygon`?Gq(t.exterior,n,r,e):X(t.points,function(t){Gq(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new Jk(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r<i;r++){var a=n[r];if(a.type===`polygon`){var o=a.exterior,s=a.interiors;if(Uq(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(Uq(s[c],e[0],e[1]))continue loopGeo;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||=n/a:n=a*r;for(var o=new Jk(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(Wq(u.exterior,s),X(u.interiors,function(e){Wq(e,s)})):X(u.points,function(e){Wq(e,s)})}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){e??=this.name;var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(Kq),g_e=function(e){J(t,e);function t(t,n){var r=e.call(this,t)||this;return r.type=`geoSVG`,r._elOnlyForCalculate=n,r}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=Ok(m_e),i=e;i&&!i.isGeoSVGGraphicRoot;)Ak(r,i.getLocalTransform(),r),i=i.parent;return Pk(r,r),ek(n,n,r),n},t}(Kq);function __e(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return X(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=Zq(i,r,n);break;case`Polygon`:Xq(i,r,n);break;case`MultiLineString`:Xq(i,r,n);break;case`MultiPolygon`:X(i,function(e,t){return Xq(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function Xq(e,t,n){for(var r=0;r<e.length;r++)e[r]=Zq(e[r],t[r],n)}function Zq(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function v_e(e,t){return e=__e(e),Z(aO(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new qq(a[0],a.slice(1)));break;case`MultiPolygon`:X(r.coordinates,function(e){e[0]&&i.push(new qq(e[0],e.slice(1)))});break;case`LineString`:i.push(new Jq([r.coordinates]));break;case`MultiLineString`:i.push(new Jq(r.coordinates))}var o=new Yq(n[t||`name`],i,n.cp);return o.properties=n,o})}var y_e=jN(),Qq=jN(),$q={estimate:1,determine:2};function eJ(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function tJ(e,t){var n=Z(t,function(t){return e.scale.parse(t)});return e.type===`time`&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function b_e(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=Nq(e),i=e.scale.getExtent();return{labels:Z(aO(tJ(e,n),function(e){return e>=i[0]&&e<=i[1]}),function(t){var n={value:t};return{formattedLabel:r(n),rawLabel:e.scale.getLabel(n),tickValue:t,time:void 0,break:void 0}})}}return e.type===`category`?S_e(e,t):w_e(e)}function x_e(e,t,n){var r=e.getTickModel().get(`customValues`);if(r){var i=e.scale.getExtent();return{ticks:aO(tJ(e,r),function(e){return e>=i[0]&&e<=i[1]})}}return e.type===`category`?C_e(e,t):{ticks:Z(e.scale.getTicks(n),function(e){return e.value})}}function S_e(e,t){var n=e.getLabelModel(),r=nJ(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function nJ(e,t,n){var r=E_e(e),i=Fq(t),a=n.kind===$q.estimate;if(!a){var o=iJ(r,i);if(o)return o}var s,c;uO(i)?s=cJ(e,i):(c=i===`auto`?D_e(e,n):i,s=sJ(e,c));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return aJ(r,i,l),!0}):aJ(r,i,l),l}function C_e(e,t){var n=T_e(e),r=Fq(t),i=iJ(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),uO(r))a=cJ(e,r,!0);else if(r===`auto`){var s=nJ(e,e.getLabelModel(),eJ($q.determine));o=s.labelCategoryInterval,a=Z(s.labels,function(e){return e.tickValue})}else o=r,a=sJ(e,o,!0);return aJ(n,r,{ticks:a,tickCategoryInterval:o})}function w_e(e){var t=e.scale.getTicks(),n=Nq(e);return{labels:Z(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})}}var T_e=rJ(`axisTick`),E_e=rJ(`axisLabel`);function rJ(e){return function(t){return Qq(t)[e]||(Qq(t)[e]={list:[]})}}function iJ(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function aJ(e,t,n){return e.list.push({key:t,value:n}),n}function D_e(e,t){if(t.kind===$q.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Qq(e).autoInterval=n,!0}),n}return Qq(e).autoInterval??(Qq(e).autoInterval=e.calculateCategoryInterval(t))}function O_e(e,t){var n=t.kind,r=A_e(e),i=Nq(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=TM(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===$q.estimate?(t.out.noPxChangeTryDetermine.push(cO(k_e,null,e,S,c)),S):oJ(e,S,c)??S}function k_e(e,t,n){return oJ(e,t,n)==null}function oJ(e,t,n){var r=y_e(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function A_e(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function sJ(e,t,n){var r=Nq(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],c=Math.max((t||0)+1,1),l=a[0],u=i.count();l!==0&&c>1&&u/c>2&&(l=Math.round(Math.ceil(l/c)*c));var d=Iq(e),f=o.get(`showMinLabel`)||d,p=o.get(`showMaxLabel`)||d;f&&l!==a[0]&&h(a[0]);for(var m=l;m<=a[1];m+=c)h(m);p&&m-c!==a[1]&&h(a[1]);function h(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e,time:void 0,break:void 0})}return s}function cJ(e,t,n){var r=e.scale,i=Nq(e),a=[];return X(r.getTicks(),function(e){var o=r.getLabel(e),s=e.value;t(e.value,o)&&a.push(n?s:{formattedLabel:i(e),rawLabel:o,tickValue:s,time:void 0,break:void 0})}),a}var lJ=[0,1],uJ=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return tN(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(r.parse(e)),this.onBand&&r.type===`ordinal`&&(n=n.slice(),dJ(n,r.count())),YM(e,lJ,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&r.type===`ordinal`&&(n=n.slice(),dJ(n,r.count()));var i=YM(e,n,lJ,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=x_e(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,r=Z(n,function(e){return{coord:this.dataToCoord(this.scale.type===`ordinal`?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this),i=t.get(`alignWithLabel`);return j_e(this,r,i,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if(this.scale.type===`ordinal`)return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),Z(this.scale.getMinorTicks(e),function(e){return Z(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=eJ($q.determine),b_e(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+ +!!this.onBand;n===0&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(e){return e||=eJ($q.determine),O_e(this,e)},e}();function dJ(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}function j_e(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var c=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/c;X(t,function(e){e.coord-=l/2,e.onBand=!0});var u=e.scale.getExtent();s=1+u[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:u[1]+1,onBand:!0},t.push(o)}var d=a[0]>a[1];f(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&f(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),f(a[1],o.coord)&&(r?o.coord=a[1]:t.pop()),r&&f(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function f(e,t){return e=QM(e),t=QM(t),d?e>t:e<t}}var fJ=Math.PI*2,pJ=ZP.CMD,M_e=[`top`,`right`,`bottom`,`left`];function N_e(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0);break}}function P_e(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%fJ<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=nF(i),i=nF(f)}else r=nF(r),i=nF(i);r>i&&(i+=fJ);var p=Math.atan2(s,o);if(p<0&&(p+=fJ),p>=r&&p<=i||p+fJ>=r&&p+fJ<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v<y?(c[0]=m,c[1]=h,Math.sqrt(v)):(c[0]=g,c[1]=_,Math.sqrt(y))}function mJ(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}function hJ(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}var gJ=[];function F_e(e,t,n){var r=hJ(t.x,t.y,t.width,t.height,e.x,e.y,gJ);return n.set(gJ[0],gJ[1]),r}function I_e(e,t,n){for(var r=0,i=0,a=0,o=0,s,c,l=1/0,u=t.data,d=e.x,f=e.y,p=0;p<u.length;){var m=u[p++];p===1&&(r=u[p],i=u[p+1],a=r,o=i);var h=l;switch(m){case pJ.M:a=u[p++],o=u[p++],r=a,i=o;break;case pJ.L:h=mJ(r,i,u[p],u[p+1],d,f,gJ,!0),r=u[p++],i=u[p++];break;case pJ.C:h=jA(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,gJ),r=u[p++],i=u[p++];break;case pJ.Q:h=IA(r,i,u[p++],u[p++],u[p],u[p+1],d,f,gJ),r=u[p++],i=u[p++];break;case pJ.A:var g=u[p++],_=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++];p+=1;var S=!!(1-u[p++]);s=Math.cos(b)*v+g,c=Math.sin(b)*y+_,p<=1&&(a=s,o=c);var C=(d-g)*y/v+g;h=P_e(g,_,y,b,b+x,S,C,f,gJ),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case pJ.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=hJ(a,o,w,T,d,f,gJ);break;case pJ.Z:h=mJ(r,i,a,o,d,f,gJ,!0),r=a,i=o;break}h<l&&(l=h,n.set(gJ[0],gJ[1]))}return l}var _J=new Fk,vJ=new Fk,yJ=new Fk,bJ=new Fk,xJ=new Fk;function SJ(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||M_e,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&Pk([],u),f=t.get(`length2`)||0;l&&yJ.copy(l);for(var p=0;p<o.length;p++){var m=o[p];N_e(m,0,s,_J,bJ),Fk.scaleAndAdd(vJ,_J,bJ,f),vJ.transform(d);var h=e.getBoundingRect(),g=l?l.distance(vJ):e instanceof SF?I_e(vJ,e.path,yJ):F_e(vJ,h,yJ);g<c&&(c=g,vJ.transform(u),yJ.transform(u),yJ.toArray(a[0]),vJ.toArray(a[1]),_J.toArray(a[2]))}TJ(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var CJ=[],wJ=new Fk;function TJ(e,t){if(t<=180&&t>0){t=t/180*Math.PI,_J.fromArray(e[0]),vJ.fromArray(e[1]),yJ.fromArray(e[2]),Fk.sub(bJ,_J,vJ),Fk.sub(xJ,yJ,vJ);var n=bJ.len(),r=xJ.len();if(!(n<.001||r<.001)){bJ.scale(1/n),xJ.scale(1/r);var i=bJ.dot(xJ);if(Math.cos(t)<i){var a=mJ(vJ.x,vJ.y,yJ.x,yJ.y,_J.x,_J.y,CJ,!1);wJ.fromArray(CJ),wJ.scaleAndAdd(xJ,a/Math.tan(Math.PI-t));var o=yJ.x===vJ.x?(wJ.y-vJ.y)/(yJ.y-vJ.y):(wJ.x-vJ.x)/(yJ.x-vJ.x);if(isNaN(o))return;o<0?Fk.copy(wJ,vJ):o>1&&Fk.copy(wJ,yJ),wJ.toArray(e[1])}}}}function L_e(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,_J.fromArray(e[0]),vJ.fromArray(e[1]),yJ.fromArray(e[2]),Fk.sub(bJ,vJ,_J),Fk.sub(xJ,yJ,vJ);var r=bJ.len(),i=xJ.len();if(!(r<.001||i<.001)&&(bJ.scale(1/r),xJ.scale(1/i),bJ.dot(t)<Math.cos(n))){var a=mJ(vJ.x,vJ.y,yJ.x,yJ.y,_J.x,_J.y,CJ,!1);wJ.fromArray(CJ);var o=Math.PI/2,s=o+Math.acos(xJ.dot(t))-n;if(s>=o)Fk.copy(wJ,yJ);else{wJ.scaleAndAdd(xJ,a/Math.tan(Math.PI/2-s));var c=yJ.x===vJ.x?(wJ.y-vJ.y)/(yJ.y-vJ.y):(wJ.x-vJ.x)/(yJ.x-vJ.x);if(isNaN(c))return;c<0?Fk.copy(wJ,vJ):c>1&&Fk.copy(wJ,yJ)}wJ.toArray(e[1])}}}function EJ(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function R_e(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=ZO(r[0],r[1]),a=ZO(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=$O([],r[1],r[0],o/i),c=$O([],r[1],r[2],o/a),l=$O([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function DJ(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<nI.length;c++){var l=nI[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:xO(i.states[l]&&i.states[l].ignore,s))||!xO(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&EJ(r,!0,l,u);continue}r||(r=new SL,e.setTextGuideLine(r),!d&&(s||!o)&&EJ(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),EJ(r,!1,l,u)}}if(r){eO(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=R_e}}function OJ(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<tI.length;r++){var i=tI[r];n[i]=e.getModel([i,t])}return n}var kJ=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],z_e=1,AJ=2,jJ=z_e|AJ;function MJ(e,t,n){n||=jJ,t?e.dirty|=n:e.dirty&=~n}function NJ(e,t){return t||=jJ,e.dirty==null||!!(e.dirty&t)}function PJ(e){if(e)return NJ(e)&&FJ(e,e.label,e),e}function FJ(e,t,n){var r=t.getComputedTransform();e.transform=OR(e.transform,r);var i=e.localRect=DR(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=JR.textMargin);for(var d=0;d<4;d++)IJ[d]=u===JR.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===JR.textMargin&&yR(i,IJ,!1,!1);var f=e.rect=DR(e.rect,i);return r&&f.applyTransform(r),u===JR.minMargin&&yR(f,IJ,!1,!1),e.axisAligned=TR(r),(e.label=e.label||{}).ignore=t.ignore,MJ(e,!1),MJ(e,!0,AJ),e}var IJ=[0,0,0,0];function B_e(e,t,n){return e.transform=OR(e.transform,n),e.localRect=DR(e.localRect,t),e.rect=DR(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=TR(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function LJ(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function RJ(e,t){for(var n=0;n<kJ.length;n++){var r=kJ[n];e[r]??(e[r]=t[r])}return PJ(e)}function zJ(e){var t=e.obb;return(!t||NJ(e,AJ))&&(e.obb=t||=new zL,t.fromBoundingRect(e.localRect,e.transform),MJ(e,!1,AJ)),t}function BJ(e,t,n,r,i){var a=e.length,o=QL[t],s=$L[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function V_e(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.defaultAttr,i=n.labelLine;n.label.attr(`ignore`,r.ignore),i&&i.attr(`ignore`,r.labelGuideIgnore)}}function VJ(e){var t=[];e.sort(function(e,t){return!!t.suggestIgnore-+!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=PJ(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(HJ(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function HJ(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:zJ(e).intersect(zJ(t),n,r)}function H_e(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function U_e(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:H_e(r&&r.shape.points)}}var UJ=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],WJ=new hM,GJ=jN(),W_e=jN();function KJ(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var qJ=[`x`,`y`,`rotation`],G_e=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();Jk.applyTransform(c,c,s),s?WJ.setLocalTransform(s):(WJ.x=WJ.y=WJ.rotation=WJ.originX=WJ.originY=0,WJ.scaleX=WJ.scaleY=1),WJ.rotation=nF(WJ.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();Jk.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:WJ.x,y:WJ.y,scaleX:WJ.scaleX,scaleY:WJ.scaleY,rotation:WJ.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(uO(r)||sO(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=YF(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){SJ(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=uO(a.layoutOptionOrCb)?a.layoutOptionOrCb(U_e(a,s)):a.layoutOptionOrCb,l||={},a.layoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=XM(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=XM(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=GJ(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<UJ.length;m++){var h=UJ[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=[];X(this._labelList,function(e){e.defaultAttr.ignore||r.push(RJ({},e))});var i=aO(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=aO(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});BJ(i,0,0,t),BJ(a,1,0,n);var o=aO(r,function(e){return e.layoutOption.hideOverlap});V_e(o),VJ(o)},e.prototype.processLabelsOverall=function(){var e=this;X(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=GJ(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=YF(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);DJ(e,OJ(o),s),SJ(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!GL(e))){var i=GJ(n),a=i.oldLayout,o=YF(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(tO(u,`select`)>=0&&n.attr(i.oldLayoutSelect),tO(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),UL(n,c,t,s)}else if(n.attr(c),!GR(n).valueAnimation){var d=xO(n.style.opacity,1);n.style.opacity=0,WL(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};KJ(f,c,qJ),KJ(f,n.states.select,qJ)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};KJ(p,c,qJ),KJ(p,n.states.emphasis,qJ)}qR(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=W_e(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),UL(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,WL(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),JJ=jN();function K_e(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=JJ(t).labelManager;r||=JJ(t).labelManager=new G_e,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=JJ(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var YJ=Math.sin,XJ=Math.cos,ZJ=Math.PI,QJ=Math.PI*2,q_e=180/ZJ,$J=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=hj(u-QJ)||(l?c>=QJ:-c>=QJ),f=c>0?c%QJ:c%QJ+QJ,p=!1;p=d?!0:hj(u)?!1:f>=ZJ==!!l;var m=e+n*XJ(a),h=t+r*YJ(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*q_e);if(d){var _=1/this._p,v=(l?1:-1)*(QJ-_);this._add(`A`,n,r,g,1,+l,e+n*XJ(a+v),t+r*YJ(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*XJ(o),b=t+r*YJ(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),eY=`none`,J_e=Math.round;function Y_e(e){var t=e.fill;return t!=null&&t!==eY}function X_e(e){var t=e.stroke;return t!=null&&t!==eY}var tY=[`lineCap`,`miterLimit`,`lineJoin`],Z_e=Z(tY,function(e){return`stroke-`+e.toLowerCase()});function Q_e(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof OF){e(`opacity`,i);return}if(Y_e(t)){var a=pj(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,eY);if(X_e(t)){var s=pj(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=wU(n),p=f[0],m=f[1];p&&(m=J_e(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,eY);for(var h=0;h<tY.length;h++){var g=tY[h];if(r||t[g]!==yF[g]){var _=t[g]||yF[g];_&&e(Z_e[h],_)}}}else r&&e(`stroke`,eY)}var nY=`http://www.w3.org/2000/svg`,rY=`http://www.w3.org/1999/xlink`,$_e=`http://www.w3.org/2000/xmlns/`,eve=`http://www.w3.org/XML/1998/namespace`,tve=`ecmeta_`;function iY(e){return document.createElementNS(nY,e)}function aY(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function nve(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}function rve(e){return`</`+e+`>`}function oY(e,t){t||={};var n=t.newline?`
|
||
`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return nve(i,a)+(i===`style`?o||``:hk(o))+(t?``+n+Z(t,function(e){return r(e)}).join(n)+n:``)+rve(i)}return r(e)}function ive(e,t,n){n||={};var r=n.newline?`
|
||
`:``,i=` {`+r,a=r+`}`,o=Z(sO(e),function(t){return t+i+Z(sO(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=Z(sO(t),function(e){return`@keyframes `+e+i+Z(sO(t[e]),function(n){return n+i+Z(sO(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function sY(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function cY(e,t,n,r){return aY(`svg`,`root`,{width:e,height:t,xmlns:nY,"xmlns:xlink":rY,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var ave=0;function lY(){return ave++}var uY={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`},dY=`transform-origin`;function ove(e,t,n){var r=Y({},e.shape);Y(r,t),e.buildPath(n,r);var i=new $J;return i.reset(wj(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function sve(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[dY]=n+`px `+r+`px`)}var cve={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function fY(e,t){var n=t.zrId+`-ani-`+ t.cssAnimIdx++;return t.cssAnims[n]=e,n}function lve(e,t,n){var r=e.shape.paths,i={},a,o;if(X(r,function(e){var t=sY(n.zrId);t.animation=!0,mY(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=sO(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=fY(i,n);return a.replace(o,s)}}function pY(e){return dO(e)?uY[e]?`cubic-bezier(`+uY[e]+`)`:RA(e)?e:``:``}function mY(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof OL){var s=lve(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=pY(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=pY(d.easing),m=d.rawValue;(dO(m)||pO(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};_M(g,e),Y(g,s[h]);var _=Tj(g),v=s[h][u];l[h]=_?{transform:_}:{},sve(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new ZP);var S=y.len();y.reset(),l[h].d=ove(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return cve[e]})}for(var w=sO(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][dY]!==l[O][dY]){T=!1;break}E=l[D][dY]}if(T&&E){for(var h in l)l[h][dY]&&delete l[h][dY];t[dY]=E}if(aO(w,function(e){return sO(l[e]).length>0}).length)return fY(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+lY();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function uve(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};hY(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=dj(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),hY(r,t,n,!0)}}function hY(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+lY(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var gY=Math.round;function _Y(e){return e&&dO(e.src)}function vY(e){return e&&uO(e.toDataURL)}function yY(e,t,n,r){Q_e(function(i,a){var o=i===`fill`||i===`stroke`;o&&Sj(a)?DY(t,e,i,r):o&&yj(a)?OY(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),_ve(n,e,r)}function bY(e,t){var n=Tfe(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[tve+`silent`]=`true`))}function xY(e){return hj(e[0]-1)&&hj(e[1])&&hj(e[2])&&hj(e[3]-1)}function dve(e){return hj(e[4])&&hj(e[5])}function SY(e,t,n){if(t&&!(dve(t)&&xY(t))){var r=n?10:1e4;e.transform=xY(t)?`translate(`+gY(t[4]*r)/r+` `+gY(t[5]*r)/r+`)`:qde(t)}}function CY(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(gY(r[a][0]*n)/n),i.push(gY(r[a][1]*n)/n);t.points=i.join(` `)}function wY(e){return!e.smooth}function fve(e){var t=Z(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=gY(o*r)/r)}}}var pve={circle:[fve([`cx`,`cy`,`r`])],polyline:[CY,wY],polygon:[CY,wY]};function mve(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function TY(e,t){var n=e.style,r=e.shape,i=pve[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&wj(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&mve(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new $J,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return SY(a,e.transform),yY(a,n,e,t),bY(a,e),t.animation&&mY(e,a,t),t.emphasis&&uve(e,a,t),aY(s,e.id+``,a)}function hve(e,t){var n=e.style,r=n.image;if(r&&!dO(r)&&(_Y(r)?r=r.src:vY(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),SY(c,e.transform),yY(c,n,e,t),bY(c,e),t.animation&&mY(e,c,t),aY(`image`,e.id+``,c)}}function gve(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=Yde(n.y||0,OM(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":Jde[n.textAlign]||n.textAlign};if(HF(n)){var c=``,l=n.fontStyle,u=BF(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),SY(s,e.transform),yY(s,n,e,t),bY(s,e),t.animation&&mY(e,s,t),aY(`text`,e.id+``,s,void 0,r)}}function EY(e,t){if(e instanceof SF)return TY(e,t);if(e instanceof OF)return hve(e,t);if(e instanceof wF)return gve(e,t)}function _ve(e,t,n){var r=e.style;if(Xde(r)){var i=Zde(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=pj(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+ n.shadowIdx++,n.defs[o]=aY(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[aY(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=Cj(o)}}function DY(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(bj(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(xj(i))a=`radialGradient`,o.cx=xO(i.x,.5),o.cy=xO(i.y,.5),o.r=xO(i.r,.5);else return;for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=_j(s[l].offset)*100+`%`,f=s[l].color,p=pj(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(aY(`stop`,l+``,g))}var _=oY(aY(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+ r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=aY(a,y,o,c)),t[n]=Cj(y)}function OY(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if(vj(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(dO(h)?m=h:_Y(h)?m=h.src:vY(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;TO(f,g),TO(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=YN(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=aY(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=ZD(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=Tj(i);x&&(o.patternTransform=x);var S=aY(`pattern`,``,o,[d]),C=oY(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+ r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=aY(`pattern`,T,o,[d])),t[n]=Cj(T)}}function vve(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+ n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=aY(`clipPath`,a,o,[TY(e,n)])}t[`clip-path`]=Cj(a)}function kY(e){return document.createTextNode(e)}function AY(e,t,n){e.insertBefore(t,n)}function jY(e,t){e.removeChild(t)}function MY(e,t){e.appendChild(t)}function NY(e){return e.parentNode}function PY(e){return e.nextSibling}function FY(e,t){e.textContent=t}var IY=58,yve=120,bve=aY(``,``);function LY(e){return e===void 0}function RY(e){return e!==void 0}function xve(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function zY(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function BY(e){var t,n=e.children,r=e.tag;if(RY(r)){var i=e.elm=iY(r);if(UY(bve,e),Q(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&MY(i,BY(a))}else RY(e.text)&&!mO(e.text)&&MY(i,kY(e.text))}else e.elm=kY(e.text);return e.elm}function VY(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&AY(e,BY(a),t)}}function HY(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(RY(i.tag)?jY(NY(i.elm),i.elm):jY(e,i.elm))}}function UY(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===yve?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS($_e,n,o):n.charCodeAt(3)===IY?r.setAttributeNS(eve,n,o):n.charCodeAt(5)===IY?r.setAttributeNS(rY,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function Sve(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:zY(o,l)?(WY(o,l),o=t[++r],l=n[++i]):zY(s,u)?(WY(s,u),s=t[--a],u=n[--c]):zY(o,u)?(WY(o,u),AY(e,o.elm,PY(s.elm)),o=t[++r],u=n[--c]):zY(s,l)?(WY(s,l),AY(e,s.elm,o.elm),s=t[--a],l=n[++i]):(LY(d)&&(d=xve(t,r,a)),f=d[l.key],LY(f)?AY(e,BY(l),o.elm):(p=t[f],p.tag===l.tag?(WY(p,l),t[f]=void 0,AY(e,p.elm,o.elm)):AY(e,BY(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,VY(e,m,n,i,c)):HY(e,t,r,a))}function WY(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(UY(e,t),LY(t.text)?RY(r)&&RY(i)?r!==i&&Sve(n,r,i):RY(i)?(RY(e.text)&&FY(n,``),VY(n,null,i,0,i.length-1)):RY(r)?HY(n,r,0,r.length-1):RY(e.text)&&FY(n,``):e.text!==t.text&&(RY(r)&&HY(n,r,0,r.length-1),FY(n,t.text)))}function Cve(e,t){if(zY(e,t))WY(e,t);else{var n=e.elm,r=NY(n);BY(t),r!==null&&(AY(r,t.elm,PY(n)),HY(r,[e],0,0))}return t}var wve=0,Tve=function(){function e(e,t,n){if(this.type=`svg`,this.refreshHover=GY(`refreshHover`),this.configLayer=GY(`configLayer`),this.storage=t,this._opts=n=Y({},n),this.root=e,this._id=`zr`+ wve++,this._oldVNode=cY(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=iY(`svg`);UY(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,Cve(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return EY(e,sY(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=sY(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=Eve(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=aY(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=Z(sO(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(aY(`defs`,`defs`,{},c)),e.animation){var l=ive(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=aY(`style`,`stl`,{},[],l);a.push(u)}}return cY(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},oY(this.renderToVNode({animation:xO(e.cssAnimation,!0),emphasis:xO(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:xO(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};vve(d[g],_,t);var v=aY(`g`,`clip-g-`+ c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=EY(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=SU(r,0,n),t=SU(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(yj(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=$de(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function GY(e){return function(){}}function Eve(e,t,n,r){var i;if(n&&n!==`none`)if(i=aY(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),Sj(n))DY({fill:n},i.attrs,`fill`,r);else if(yj(n))OY({style:{fill:n},dirty:IO,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=pj(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}return i}function Dve(e){e.registerPainter(`svg`,Tve)}function KY(e,t,n){var r=BD.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}var qY=function(e){zO(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var a;r||=iM,typeof t==`string`?a=KY(t,n,r):mO(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(PO(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=KY(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new Jk(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new Jk(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new Jk(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}else if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new Jk(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}for(var l=this.__startIndex;l<this.__endIndex;++l){var u=e[l];if(u){var d=u.shouldBePainted(n,r,!0,!0),f=u.__isRendered&&(u.__dirty&1||!d)?u.getPrevPaintRect():null;f&&c(f);var p=d&&(u.__dirty&1||!u.__isRendered)?u.getPaintRect():null;p&&c(p)}}for(var l=this.__prevStartIndex;l<this.__prevEndIndex;++l){var u=t[l],d=u&&u.shouldBePainted(n,r,!0,!0);if(u&&(!d||!u.__zr)&&u.__isRendered){var f=u.getPrevPaintRect();f&&c(f)}}var m;do{m=!1;for(var l=0;l<i.length;){if(i[l].isZero()){i.splice(l,1);continue}for(var h=l+1;h<i.length;)i[l].intersect(i[h])?(m=!0,i[l].union(i[h]),i.splice(h,1)):h++;l++}}while(m);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;vO(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||yU(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):pde(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=jU(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&X(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(ik),JY=1e5,YY=314159,XY=.01,Ove=.001;function kve(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function Ave(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}var jve=function(){function e(e,t,n,r){this.type=`canvas`,this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`;var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;this._opts=n=Y({},n||{}),this.dpr=n.devicePixelRatio||iM,this._singleCanvas=i,this.root=e,e.style&&(PO(e),e.innerHTML=``),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var s=e,c=s.width,l=s.height;n.width!=null&&(c=n.width),n.height!=null&&(l=n.height),this.dpr=n.devicePixelRatio||1,s.width=c*this.dpr,s.height=l*this.dpr,this._width=c,this._height=l;var u=new qY(s,this,this.dpr);u.__builtin__=!0,u.initContext(),o[YY]=u,u.zlevel=YY,a.push(YY),this._domRoot=e}else{this._width=SU(e,0,n),this._height=SU(e,1,n);var d=this._domRoot=Ave(this._width,this._height);e.appendChild(d)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=i===0?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,a=0;a<t;a++){var o=e[a];o.__inHover&&(n||=this._hoverlayer=this.getLayer(JY),i||(i=n.ctx,i.save()),ZU(i,o,r,a===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(JY)},e.prototype.paintOne=function(e,t){XU(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n||=!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;pA(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(YY).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],a=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var s=this._zlevelList[o],c=this._layers[s];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&i.push(c)}for(var l=!0,u=!1,d=function(o){var s=i[o],c=s.ctx,d=a&&s.createRepaintRects(e,t,f._width,f._height),p=n?s.__startIndex:s.__drawIndex,m=!n&&s.incremental&&Date.now,h=m&&Date.now(),g=s.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,g,d);else if(p===s.__startIndex){var _=e[p];(!_.incremental||!_.notClear||n)&&s.clear(!1,g,d)}p===-1&&(console.error(`For some unknown reason. drawIndex is -1`),p=s.__startIndex);var v,y=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(v=p;v<s.__endIndex;v++){var i=e[v];if(i.__inHover&&(u=!0),r._doPaintEl(i,s,a,t,n,v===s.__endIndex-1),m&&Date.now()-h>15)break}n.prevElClipPaths&&c.restore()};if(d)if(d.length===0)v=s.__endIndex;else for(var b=f.dpr,x=0;x<d.length;++x){var S=d[x];c.save(),c.beginPath(),c.rect(S.x*b,S.y*b,S.width*b,S.height*b),c.clip(),y(S),c.restore()}else c.save(),y(),c.restore();s.__drawIndex=v,s.__drawIndex<s.__endIndex&&(l=!1)},f=this,p=0;p<i.length;p++)d(p);return zD.wxa&&X(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:l,needsRefreshHover:u}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(ZU(o,e,i,a),e.setPrevPaintRect(s))}else ZU(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=YY);var n=this._layers[e];return n||(n=new qY(`zr_`+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?QD(n,this._layerConfig[e],!0):this._layerConfig[e-XY]&&QD(n,this._layerConfig[e-XY],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=this._domRoot,o=null,s=-1;if(!n[e]&&kve(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var c=o.dom;c.nextSibling?a.insertBefore(t.dom,c.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1});function t(e){i&&(i.__endIndex!==e&&(i.__dirty=!0),i.__endIndex=e)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var r=e[n];if(r.zlevel!==e[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i=null,a=0,o,s;for(s=0;s<e.length;s++){var r=e[s],c=r.zlevel,l=void 0;o!==c&&(o=c,a=0),r.incremental?(l=this.getLayer(c+Ove,this._needsManuallyCompositing),l.incremental=!0,a=1):l=this.getLayer(c+(a>0?XY:0),this._needsManuallyCompositing),l.__builtin__||XD(`ZLevel `+c+` has been used by unkown layer `+l.id),l!==i&&(l.__used=!0,l.__startIndex!==s&&(l.__dirty=!0),l.__startIndex=s,l.incremental?l.__drawIndex=-1:l.__drawIndex=s,t(s),i=l),r.__dirty&1&&!r.__inHover&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=s))}t(s),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,X(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?QD(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+XY){var a=this._layers[i];QD(a,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(tO(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;if(e!=null&&(r.width=e),t!=null&&(r.height=t),e=SU(i,0,r),t=SU(i,1,r),n.style.display=``,this._width!==e||t!==this._height){for(var a in n.style.width=e+`px`,n.style.height=t+`px`,this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(YY).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._layers[YY].dom;var t=new qY(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];ZU(n,l,a,s===c-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function Mve(e){e.registerPainter(`canvas`,jve)}var Nve=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return zK(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new zM,n=pU(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=pU(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=$.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1},t}(EH);function ZY(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=BV(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(BV(e,t,n[o]));return a.join(` `)}}function QY(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!Q(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var $Y=function(e){J(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=pU(e,-1,-1,2,2,null,a);o.attr({z2:xO(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=Pve,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){SI(this.childAt(0))},t.prototype.downplay=function(){CI(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):UL(f,p,o,n),YL(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,WL(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=LR(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=hU(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof OF){var S=a.style;a.useStyle(Y({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(Y({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;IR(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):ZY(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),FI(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=YF(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&KL(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();KL(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return mU(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(zM);function Pve(e,t){this.parent.drift(e,t)}function eX(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function tX(e){return e!=null&&!mO(e)&&(e={isIgnore:e}),e||{}}function nX(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:LR(t),cursorStyle:t.get(`cursor`)}}var rX=function(){function e(e){this.group=new zM,this._SymbolCtor=e||$Y}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=tX(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=nX(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);if(eX(e,i,r,t)){var o=new a(e,r,s,c);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!eX(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):UL(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=nX(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=tX(n);function r(e){e.isGroup||(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(eX(t,a,i,n)){var o=new this._SymbolCtor(t,i,this._seriesScope);o.traverse(r),o.setPosition(a),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.eachRendered=function(e){wR(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function iX(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=Fve(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=Z(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return FK(t,d[0])&&(f=!0,d[0]=p),FK(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function Fve(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:pO(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function aX(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function Ive(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function Lve(e,t,n,r,i,a,o,s){for(var c=Ive(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=iX(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=aX(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var M=l.length,N=cq(M),P=cq(M),F=cq(M),I=cq(M),L=[],y=0;y<m.length;y++){var R=m[y],z=y*2,B=R*2;N[z]=l[B],N[z+1]=l[B+1],P[z]=u[B],P[z+1]=u[B+1],F[z]=d[B],F[z+1]=d[B+1],I[z]=f[B],I[z+1]=f[B+1],L[y]=p[R]}return{current:N,next:P,stackedOnCurrent:F,stackedOnNext:I,status:L}}var oX=Math.min,sX=Math.max;function cX(e,t){return isNaN(e)||isNaN(t)}function lX(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(cX(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;cX(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||cX(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,N=C-v,P=void 0,F=void 0;if(s===`x`){P=Math.abs(A),F=Math.abs(j);var I=E>0?1:-1;p=_-I*P*o,m=v,O=_+I*F*o,k=v}else if(s===`y`){P=Math.abs(M),F=Math.abs(N);var L=D>0?1:-1;p=_,m=v-L*P*o,O=_,k=v+L*F*o}else P=Math.sqrt(A*A+M*M),F=Math.sqrt(j*j+N*N),T=F/(F+P),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=oX(O,sX(S,_)),k=oX(k,sX(C,v)),O=sX(O,oX(S,_)),k=sX(k,oX(C,v)),E=O-_,D=k-v,p=_-E*P/F,m=v-D*P/F,p=oX(p,sX(l,_)),m=oX(m,sX(u,v)),p=sX(p,oX(l,_)),m=sX(m,oX(u,v)),E=_-p,D=v-m,O=_+E*F/P,k=v+D*F/P}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var uX=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Rve=function(e){J(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new uX},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&cX(n[i*2-2],n[i*2-1]);i--);for(;r<i&&cX(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=lX(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=ZP.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?OA(i,u,f,m,e,s):OA(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?EA(a,d,p,h,b):EA(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},t}(SF),zve=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(uX),dX=function(e){J(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new zve},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&cX(n[a*2-2],n[a*2-1]);a--);for(;i<a&&cX(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=lX(e,n,i,a,a,1,t.smooth,o,t.connectNulls);lX(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(SF);function fX(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new PF({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=uO(i)?function(e){i(e,d)}:null;WL(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function pX(e,t,n){var r=e.getArea(),i=QM(r.r0,1),a=QM(r.r,1),o=new vL({shape:{cx:QM(e.cx,1),cy:QM(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,WL(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function mX(e,t,n,r,i){return e?e.type===`polar`?pX(e,t,n):e.type===`cartesian2d`?fX(e,t,n,r,i):null:null}function hX(e,t){return e.type===t}function gX(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function _X(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function vX(e,t){var n=_X(e),r=n[0],i=n[1],a=_X(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function yX(e){return pO(e)?e:e?.5:0}function Bve(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=cq(r*2),a=0;a<r;a++){var o=aX(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function bX(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;!isNaN(p[c])&&!isNaN(p[c+1])&&f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function Vve(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:Kde((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function Hve(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=Z(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=Vve(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;X(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new AL(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function Uve(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&Wve(a,t))){var o=t.mapDimension(a.dim),s={};return X(a.getViewLabels(),function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function Wve(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if($Y.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function Gve(e,t){return isNaN(e)||isNaN(t)}function Kve(e){for(var t=e.length/2;t>0&&Gve(e[t*2-2],e[t*2-1]);t--);return t-1}function xX(e,t){return[e[t*2],e[t*2+1]]}function qve(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!(isNaN(o)||isNaN(e[l*2+1-i]))){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function SX(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<tI.length;t++)if(e.get([tI[t],`endLabel`,`show`]))return!0;return!1}function CX(e,t,n,r){if(hX(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=SX(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=fX(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}else return pX(t,n,r)}function Jve(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var Yve=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new zM,t=new rX;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=cO(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=iX(r,a,_),y=g&&Bve(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&Uve(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=l?!1:e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=Hve(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=bX(y,c,r,w,x),c=bX(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Kz(E)),m.setClipPath(CX(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Kz(E));var D=m.getClipPath();D?WL(D,{shape:CX(this,r,!1,e).shape},e):m.setClipPath(CX(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!gX(this._stackedOnPoints,y)||!gX(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=bX(y,c,r,w,x),c=bX(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(eO(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),RI(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var M=f.getState(`emphasis`).style;M.lineWidth=+f.style.lineWidth+1}YF(f).seriesIndex=e.seriesIndex,FI(f,k,A,j);var N=yX(e.get(`smooth`)),P=e.get(`smoothMonotone`);if(f.setShape({smooth:N,smoothMonotone:P,connectNulls:x}),p){var F=a.getCalculationInfo(`stackedOnSeries`),I=0;p.useStyle(eO(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),F&&(I=yX(F.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:I,smoothMonotone:P,connectNulls:x}),RI(p,e,`areaStyle`),YF(p).seriesIndex=e.seriesIndex,FI(p,k,A,j)}var L=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=L)}),this._polyline.onHoverStateChange=L,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_,e.get(`triggerLineEvent`)&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){YF(t).eventData={componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=AN(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(isNaN(c)||isNaN(l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new $Y(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else NH.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=AN(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else NH.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;_I(this._polyline,e),t&&_I(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Rve({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new dX({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);uO(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=uO(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=uO(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(SX(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new RF({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=Kve(o);c>=0&&(IR(a,LR(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?ZY(i,e):QY(i,n)},enableTextSetter:!0},Jve(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=qve(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=xX(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=RN(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=xX(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=GR(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=Lve(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=bX(u.stackedOnCurrent,u.current,n,i,o),d=bX(u.current,null,n,i,o),m=bX(u.stackedOnNext,u.next,n,i,o),p=bX(u.next,null,n,i,o)),vX(d,p)>3e3||c&&vX(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),UL(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),UL(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(NH);function wX(e,t){return{seriesType:e,plan:jH(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=Z(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);FK(n,o[0])&&(o[0]=c),FK(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&cq(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&t.setLayout(`points`,i)}}}}}}var Xve={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},Zve=function(e){return Math.round(e.length/2)};function TX(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;dO(i)?p=Xve[i]:uO(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,Zve))}}}}}function Qve(e){e.registerChartView(Yve),e.registerSeriesModel(Nve),e.registerLayout(wX(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,TX(`line`))}var EX=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return zK(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)X(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}else if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(EH);EH.registerClass(EX);var $ve=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return zK(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get(`progressiveThreshold`),t=this.get(`largeThreshold`);return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=tz(EX.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:$.color.primary,borderWidth:2}},realtimeSort:!1}),t}(EX),eye=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),DX=function(e){J(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new eye},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(SF);function tye(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return AM(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+OX(m,s+_,!1),x=u+p*y(m)+kX(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+OX(m,-s+_,!1),x=u+p*y(m)+kX(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+OX(h,s+_,!0),x=u+p*y(h)+kX(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+OX(h,-s+_,!0),x=u+p*y(h)+kX(h,-s+_,!0),S=`right`,C=`middle`;break;default:return AM(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function nye(e,t,n,r){if(pO(r)){e.setTextConfig({rotation:r});return}else if(Q(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function OX(e,t,n){return t*Math.sin(e)*(n?-1:1)}function kX(e,t,n){return t*Math.cos(e)*(n?1:-1)}function AX(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;Q(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Z(r,function(e){return kM(e,i)})}}var jX=Math.max,MX=Math.min;function rye(e,t){var n=e.getArea&&e.getArea();if(hX(e,`cartesian2d`)){var r=e.getBaseAxis();if(r.type!==`category`||!r.onBand){var i=t.getLayout(`bandWidth`);r.isHorizontal()?(n.x-=i,n.width+=i*2):(n.y-=i,n.height+=i*2)}}return n}var iye=function(e){J(t,e);function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){wR(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=aye(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=rye(s,a);i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=RX[s.type](a,e);if(!t)return null;var n=fye(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=RX[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!LX[s.type](r)))){var o=!1;f&&(o=NX[s.type](p,r));var g=PX[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),BX(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?FX(d,u,g,r,t,l,!1,!1):WL(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=RX[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=RX[s.type](a,t),E=WX(l,T,s);UL(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!LX[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=NX[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&JL(D,e,n),D=null),D?YL(D):D=PX[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=GR(k);A.prevValue!=null&&(A.prevValue=A.value)}}else BX(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?FX(d,u,D,C,t,l,!0,x):UL(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&JL(n,e,t)}).execute();var C=this._backgroundGroup||=new zM;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),HX(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),HX(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&mX(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:Z(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){JL(t,e,YF(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(NH),NX={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=jX(t.x,e.x),s=MX(t.x+t.width,i),c=jX(t.y,e.y),l=MX(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=MX(t.r,e.r),a=jX(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},PX={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new PF({shape:Y({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?DX:vL,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=tye(zX(i),{isRoundCap:l===DX}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?UL:WL)(u,{shape:p},a)}return u}};function aye(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function FX(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?UL:WL)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?UL:WL)(n,{shape:l},u,i)}function IX(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var oye=[`x`,`y`,`width`,`height`],sye=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],LX={cartesian2d:function(e){return!IX(e,oye)},polar:function(e){return!IX(e,sye)}},RX={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?lye(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function cye(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function zX(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function BX(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;Y(u,AX(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?i.height>=0?`bottom`:`top`:i.width>=0?`right`:`left`,p=LR(r);IR(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:ZY(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`?!0:null,nye(e,h===`outside`?f:h,zX(o),r.get([`label`,`rotate`]))}KR(m,p,a.getRawValue(n),function(e){return QY(t,e)});var g=r.getModel([`emphasis`]);FI(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),RI(e,r),cye(i)&&(e.style.fill=`none`,e.style.stroke=`none`,X(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function lye(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var uye=function(){function e(){}return e}(),VX=function(e){J(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new uye},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(SF);function HX(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`);if(l){var u=new VX({shape:{points:l},incremental:!!r,silent:!0,z2:0});u.baseDimIdx=a,u.largeDataIndices=o,u.barWidth=s,u.useStyle(c.getItemStyle()),t.add(u),n&&n.push(u)}var d=new VX({shape:{points:i.getLayout(`largePoints`)},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(i.getVisual(`style`)),d.style.stroke=null,YF(d).seriesIndex=e.seriesIndex,e.get(`silent`)||(d.on(`mousedown`,UX),d.on(`mousemove`,UX)),n&&n.push(d)}var UX=zH(function(e){var t=this,n=dye(t,e.offsetX,e.offsetY);YF(t).dataIndex=n>=0?n:null},30,!1);function dye(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function WX(e,t,n){if(hX(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function fye(e,t,n){return new(e.type===`polar`?vL:PF)({shape:WX(t,n,e),silent:!0,z2:0})}function pye(e){e.registerChartView(iye),e.registerSeriesModel($ve),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,lO(hq,`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gq(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,TX(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})}var GX=Math.PI*2,KX=Math.PI/180;function mye(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),r=t.mapDimension(`value`),i=lB(e,n),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*KX,d=e.get(`endAngle`),f=e.get(`padAngle`)*KX;d=d===`auto`?u-GX:-d*KX;var p=e.get(`minAngle`)*KX+f,m=0;t.each(r,function(e){!isNaN(e)&&m++});var h=t.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=t.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;XP(S,!_),u=S[0],d=S[1];var w=qX(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(t.setLayout({viewRect:l,r:s}),t.each(r,function(e,n){var r;if(isNaN(e)){t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});return}r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?(l=O+x*r/2,u=l):(l=O+C,u=i-C),t.setItemLayout(n,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?YM(e,b,[c,s]):s}),O=i}),E<GX&&m)if(E<=.001){var k=T/m;t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=k;var i=0,a=0;k<f?(i=u+x*(n+1/2)*k,a=i):(i=u+x*n*k+C,a=u+x*(n+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})})}var qX=jN();function JX(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}var hye=Math.PI/180;function YX(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;XX(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}BJ(e,1,c,c+o)&&d(e)}function gye(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;$X(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!$X(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,XX(m,g,!1)}}YX(l,t,n,r,1,i,a,o,s,d),YX(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!$X(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function XX(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}ZX(a,r)}}}function ZX(e,t){QX.rect=e,FJ(QX,t,_ye)}var _ye={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},QX={};function $X(e){return e.position===`center`}function vye(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*hye,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=XM(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=XM(T,l);var E=w.get(`length2`);if(E=XM(E,l),Math.abs(d.endAngle-d.startAngle)<o){X(h.states,p),h.ignore=!0,g&&(X(g.states,p),g.ignore=!0);return}if(m(h)){var D=(d.startAngle+d.endAngle)/2,O=Math.cos(D),k=Math.sin(D),A,j,M,N;r=d.cx,i=d.cy;var P=y===`inside`||y===`inner`;if(y===`center`)A=d.cx,j=d.cy,N=`center`;else{var F=(P?(d.r+d.r0)/2*O:d.r*O)+r,I=(P?(d.r+d.r0)/2*k:d.r*k)+i;if(A=F+O*3,j=I+k*3,!P){var L=F+O*(T+c-d.r),R=I+k*(T+c-d.r),z=L+(O<0?-1:1)*E,B=R;A=x===`edge`?O<0?u+S:u+l-S:z+(O<0?-b:b),j=B,M=[[F,I],[L,R],[z,B]]}N=P?`center`:x===`edge`?O>0?`right`:`left`:O>0?`left`:`right`}var V=Math.PI,H=0,U=v.get(`rotate`);if(pO(U))H=V/180*U;else if(y===`center`)H=0;else if(U===`radial`||U===!0)H=O<0?-D+V:-D;else if(U===`tangential`&&y!==`outside`&&y!==`outer`){var ee=Math.atan2(O,k);ee<0&&(ee=V*2+ee),k>0&&(ee=V+ee),H=ee-V}if(a=!!H,h.x=A,h.y=j,h.rotation=H,h.setStyle({verticalAlign:`middle`}),P){h.setStyle({align:N});var te=h.states.select;te&&(te.x+=h.x,te.y+=h.y)}else{var W=new Jk(0,0,0,0);ZX(W,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new Fk(O,k),linePoints:M,textAlign:N,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:W,unconstrainedWidth:W.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:P})}}),!a&&e.get(`avoidLabelOverlap`)&&gye(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(X(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(X(v.states,p),v.ignore=!0):(TJ(x,g.minTurnAngle),L_e(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new Fk(x[0][0],x[0][1])})}}}var yye=function(e){J(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new RF;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=Y(AX(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle)){i.setShape(l);return}if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(WL(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,WL(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,UL(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),WL(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else YL(i),UL(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),RI(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=Y({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},AX(s.getModel(`itemStyle`),c)),Y(i.ensureState(`select`),{x:p,y:m,shape:AX(o.getModel([`select`,`itemStyle`]),c)}),Y(i.ensureState(`blur`),{shape:AX(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&Y(g.ensureState(`select`),{x:p,y:m}),Y(_.ensureState(`select`),{x:p,y:m}),FI(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;IR(r,LR(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new SL,this.setTextGuideLine(d)),DJ(this,OJ(i),{stroke:s,opacity:SO(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(vL),bye=function(e){J(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=new vL({shape:ZD(qX(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new yye(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){JL(a.getItemGraphicEl(t),e,t)}).execute(),vye(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(NH);function eZ(e,t,n){t=Q(t)&&{coordDimensions:t}||Y({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=TK(r,t).dimensions,a=new wK(i,e);return a.initData(r,n),a}var tZ=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),xye=jN(),nZ=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new tZ(cO(this.getData,this),cO(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return eZ(this,{coordDimensions:[`value`],encodeDefaulter:lO(IB,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=xye(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=Afe(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){xN(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(EH);Yme({fullType:nZ.type,getCoord2:function(e){return e.getShallow(`center`)}});function Sye(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(pO(r)&&!isNaN(r)&&r<0)})}}}function Cye(e){e.registerChartView(bye),e.registerSeriesModel(nZ),lU(`pie`,e.registerAction),e.registerLayout(lO(mye,`pie`)),e.registerProcessor(JX(`pie`)),e.registerProcessor(Sye(`pie`))}var wye=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return zK(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:$.color.primary}},universalTransition:{divideShape:`clone`}},t}(EH),rZ=4,Tye=function(){function e(){}return e}(),Eye=function(e){J(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new Tye},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<rZ,c=this.softClipShape,l;if(s){this._ctx=o;return}for(this._ctx=null,l=this._off;l<n.length;){var u=n[l++],d=n[l++];isNaN(u)||isNaN(d)||c&&!c.contain(u,d)||(a.x=u-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],i.buildPath(e,a,!0))}this.incremental&&(this._off=l,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,r=this._ctx,i=this.softClipShape,a;if(r){for(a=this._off;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||isNaN(s)||i&&!i.contain(o,s)||r.fillRect(o-n[0]/2,s-n[1]/2,n[0],n[1])}this.incremental&&(this._off=a,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u<n.length;){var d=n[u++],f=n[u++];o=Math.min(d,o),c=Math.max(d,c),s=Math.min(f,s),l=Math.max(f,l)}e=this._rect=new Jk(o-i/2,s-a/2,c-o+i,l-s+a)}return e},t}(SF),Dye=function(){function e(){this.group=new zM}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout(`points`)}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout(`points`);this.group.eachChild(function(e){if(e.startIndex!=null){var n=(e.endIndex-e.startIndex)*2,r=e.startIndex*4*2;t=new Float32Array(t.buffer,r,n)}e.setShape(`points`,t),e.reset()})},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],i=t.getLayout(`points`),a=r&&r.shape.points;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),r.endIndex=e.end,r.setShape({points:s})}else{this._newAdded=[];var c=this._create();c.startIndex=e.start,c.endIndex=e.end,c.incremental=!0,c.setShape({points:i}),this._setCommon(c,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Eye({cursor:`default`});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n||={};var i=t.getVisual(`symbolSize`);e.setShape(`size`,i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=pU(t.getVisual(`symbol`),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<rZ;e.useStyle(r.getModel(`itemStyle`).getItemStyle(a?[`color`,`shadowBlur`,`shadowColor`]:[`color`]));var o=t.getVisual(`style`),s=o&&o.fill;s&&e.setColor(s);var c=YF(e);c.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){c.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Oye=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=wX(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get(`clip`,!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return(!n||r!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=r?new Dye:new rX,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(NH),iZ={left:0,right:0,top:0,bottom:0},aZ=[`25%`,`25%`],kye=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=_B(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&gB(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&gB(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:iZ,outerBoundsContain:`all`,outerBoundsClampWidth:aZ[0],outerBoundsClampHeight:aZ[1],backgroundColor:$.color.transparent,borderWidth:1,borderColor:$.color.neutral30},t}(yB),oZ=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,PN).models[0]},t.type=`cartesian2dAxis`,t}(yB);nO(oZ,Vq);var sZ={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:$.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:$.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:$.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[$.color.backgroundTint,$.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:$.color.neutral00,borderColor:$.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},Aye=QD({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},sZ),cZ=QD({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:$.color.axisMinorSplitLine,width:1}}},sZ),lZ={category:Aye,value:cZ,time:QD({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},cZ),log:eO({logBase:10},cZ)},jye={value:1,category:1,time:1,log:1},uZ=null;function Mye(e){uZ||=e}function dZ(){return uZ}function fZ(e,t,n,r){X(jye,function(i,a){var o=QD(QD({},lZ[a],!0),r,!0),s=function(e){J(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=hB(this),r=n?_B(e):{};QD(e,t.getTheme().get(a+`Axis`)),QD(e,this.getDefaultOption()),e.type=pZ(e),n&&gB(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=tq.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=dZ();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,pZ)}function pZ(e){return e.type||(e.data?`category`:`value`)}var Nye=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return Z(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),aO(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),mZ=[`x`,`y`];function hZ(e){return(e.type===`interval`||e.type===`time`)&&!e.hasBreaks()}var Pye=function(e){J(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`cartesian2d`,t.dimensions=mZ,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!hZ(e)||!hZ(t))){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Pk([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new Jk(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return ek(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return ek(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new Jk(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(Nye),gZ=function(e){J(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(uJ),_Z=`expandAxisBreak`,Fye=`collapseAxisBreak`,Iye=`toggleAxisBreak`,vZ=`axisbreakchanged`,Lye={type:_Z,event:vZ,update:`update`,refineEvent:yZ},Rye={type:Fye,event:vZ,update:`update`,refineEvent:yZ},zye={type:Iye,event:vZ,update:`update`,refineEvent:yZ};function yZ(e,t,n,r){var i=[];return X(e,function(e){i=i.concat(e.eventBreaks)}),{eventContent:{breaks:i}}}function Bye(e){e.registerAction(Lye,t),e.registerAction(Rye,t),e.registerAction(zye,t);function t(e,t){var n=[],r=MN(t,e);function i(t,i){X(r[t],function(t){X(t.updateAxisBreaks(e).breaks,function(e){var r;n.push(eO((r={},r[i]=t.componentIndex,r),e))})})}return i(`xAxisModels`,`xAxisIndex`),i(`yAxisModels`,`yAxisIndex`),i(`singleAxisModels`,`singleAxisIndex`),{eventBreaks:n}}}var bZ=Math.PI,Vye=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Hye=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],xZ=jN(),SZ=jN(),CZ=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function Uye(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=LZ(e.axisName)&&Rq(e.nameLocation);X(r,function(e){var t=PJ(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Pk(wZ,n.transform):Ok(wZ),t.transform&&Ak(wZ,wZ,t.transform),Jk.copy(TZ,t.localRect),TZ.applyTransform(wZ),s?s.union(TZ):Jk.copy(s=new Jk(0,0,0,0),TZ))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new Jk(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var wZ=Dk(),TZ=new Jk(0,0,0,0),EZ=function(e,t,n,r,i,a){if(Rq(e.nameLocation)){var o=a.stOccupiedRect;o&&DZ(B_e({},o,a.transGroup.transform),r,i)}else OZ(a.labelInfoList,a.dirVec,r,i)};function DZ(e,t,n){var r=new Fk;HJ(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&LJ(t,r)}function OZ(e,t,n,r){for(var i=Fk.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||DZ(s,n,r)}}var kZ=function(){function e(e,t,n,r){this.group=new zM,this._axisModel=e,this._api=t,this._local={},this._shared=r||new CZ(EZ),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=xO(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=xO(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:xO(e.nameDirection,1),tickDirection:xO(e.tickDirection,1),labelDirection:xO(e.labelDirection,1),labelOffset:xO(e.labelOffset,0),silent:xO(e.silent,!0),axisName:r,nameLocation:SO(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:LZ(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new zM({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new Fk(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},X(Wye,function(r){e[r]&&Gye[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=nN(t-e),i,a;return rN(r)?(a=n>0?`top`:`bottom`,i=`center`):rN(r-bZ)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<bZ?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),Wye=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],Gye={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(ek(u,u,l),ek(d,d,l));var p=Y({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&r.axis.scale.hasBreaks())dZ().buildAxisBreakLine(r,i,a,m);else{var h=new CL(Y({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));sR(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);dO(g)&&(g=[g,g]),(dO(_)||pO(_))&&(_=[_,_]);var v=hU(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];X([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=pU(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){NZ(t,i,s)&&AZ(e,t,n,r,i,a,o,$q.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){NZ(t,i,s)&&AZ(e,t,n,r,i,a,o,$q.determine);var c=Yye(e,i,a,r);Jye(e,t.labelLayoutList,c),Xye(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(LZ(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Fk(0,0),_=new Fk(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=Dk();_.transform(Mk(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*bZ/180);var b,x;Rq(u)?b=kZ.innerTextLayout(e.rotation,y??e.rotation,d):(b=Kye(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=bO(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new RF({x:g.x,y:g.y,rotation:b.rotation,silent:kZ.isLabelSilent(r),style:RR(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(SR({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=kZ.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,YF(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=PJ({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Rq(u)?Vye[E]:Hye[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function AZ(e,t,n,r,i,a,o,s){PZ(t)||Zye(e,t,i,s,r,o);var c=t.labelLayoutList;Qye(e,r,c,a),tbe(r,e.rotation,c);var l=e.optionHideOverlap;qye(r,c,l),l&&VJ(aO(c,function(e){return e&&!e.label.ignore})),Uye(e,n,r,c)}function Kye(e,t,n,r){var i=nN(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return rN(i-bZ/2)?(o=c?`bottom`:`top`,a=`center`):rN(i-bZ*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<bZ*1.5&&i>bZ/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function qye(e,t,n){if(Iq(e.axis))return;function r(e,r,i){var a=PJ(t[r]),o=PJ(t[i]);if(!(!a||!o)){if(e===!1||a.suggestIgnore){jZ(a.label);return}if(o.suggestIgnore){jZ(o.label);return}var s=.1;if(!n){var c=[0,0,0,0];a=RJ({marginForce:c},a),o=RJ({marginForce:c},o)}HJ(a,o,null,{touchThreshold:s})&&jZ(e?o.label:a.label)}}var i=e.get([`axisLabel`,`showMinLabel`]),a=e.get([`axisLabel`,`showMaxLabel`]),o=t.length;r(i,0,1),r(a,o-1,o-2)}function Jye(e,t,n){e.showMinorTicks||X(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=SZ(r),a=xZ(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.tickValue){jZ(r);return}}})}function jZ(e){e&&(e.ignore=!0)}function MZ(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(ek(o,o,t),ek(s,s,t));var u=new CL({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});sR(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=SZ(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function Yye(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=MZ(i.getTicksCoords(),n.transform,c,eO(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function Xye(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=eO(c.getLineStyle(),eO(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=MZ(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function NZ(e,t,n){if(PZ(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),FZ(e,null,null,null))}return!0}function Zye(e,t,n,r,i,a){var o=i.axis,s=bO(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new zM;n.add(c);var l=eJ(r);if(!s||o.scale.isBlank()){FZ(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(bO(e.raw.labelRotate,u.get(`rotate`))||0)*bZ/180,p=kZ.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;X(d,function(e,t){var n=o.scale.type===`ordinal`?o.scale.getRawOrdinalNumber(e.tickValue):e.tickValue,r=e.formattedLabel,s=e.rawLabel,l=u;if(m&&m[n]){var f=m[n];mO(f)&&f.textStyle&&(l=new $R(f.textStyle,u,i.ecModel))}var y=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),b=l.getShallow(`align`,!0)||p.textAlign,x=xO(l.getShallow(`alignMinLabel`,!0),b),S=xO(l.getShallow(`alignMaxLabel`,!0),b),C=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,w=xO(l.getShallow(`verticalAlignMinLabel`,!0),C),T=xO(l.getShallow(`verticalAlignMaxLabel`,!0),C),E=10+(e.time?.level||0);_=Math.min(_,E),v=Math.max(v,E);var D=new RF({x:0,y:0,rotation:0,silent:kZ.isLabelSilent(i),z2:E,style:RR(l,{text:r,align:t===0?x:t===d.length-1?S:b,verticalAlign:t===0?w:t===d.length-1?T:C,fill:uO(y)?y(o.type===`category`?s:o.type===`value`?n+``:n,t):y})});D.anid=`label_`+n;var O=xZ(D);if(O.break=e.break,O.tickValue=n,O.layoutRotation=p.rotation,SR({el:D,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:s,tickIndex:t}}),g){var k=kZ.makeAxisEventDataBase(i);k.targetType=`axisLabel`,k.value=s,k.tickIndex=t,e.break&&(k.break={start:e.break.parsedBreak.vmin,end:e.break.parsedBreak.vmax}),o.type===`category`&&(k.dataIndex=n),YF(D).eventData=k,e.break&&ebe(i,a,D,e.break)}h.push(D),c.add(D)}),FZ(t,Z(h,function(e){return{label:e,priority:xZ(e).break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function PZ(e){return!!e.labelLayoutList}function FZ(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function Qye(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);X(n,function(n,a){var o=PJ(n);if(o){var s=o.label,c=xZ(s);o.suggestIgnore=s.ignore,s.ignore=!1,_M(IZ,$ye),IZ.x=t.axis.dataToCoord(c.tickValue),IZ.y=e.labelOffset+e.labelDirection*i,IZ.rotation=c.layoutRotation,r.add(IZ),IZ.updateTransform(),r.remove(IZ),IZ.decomposeTransform(),_M(s,IZ),s.markRedraw(),MJ(o,!0),PJ(o)}})}var IZ=new PF,$ye=new PF;function LZ(e){return!!e}function ebe(e,t,n,r){n.on(`click`,function(n){var i={type:_Z,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function tbe(e,t,n){var r=dz();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&xZ(e.label).break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&X(i,function(r){dZ().adjustBreakLabelPair(e.axis.inverse,t,[PJ(n[r[0]]),PJ(n[r[1]])])})}}function RZ(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),bO(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function nbe(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function zZ(e){var t={xAxisModel:null,yAxisModel:null};return X(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,PN).models[0]}),t}function rbe(e,t,n,r,i,a){for(var o=RZ(e,n),s=!1,c=!1,l=0;l<t.length;l++)HK(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new kZ(n,r,o,i)}function ibe(e,t,n){var r=RZ(t,n);e.updateCfg(r)}function BZ(e,t,n){var r=aq.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,{expandToNicedExtent:!0}),o=i.length-1,s=r.getInterval.call(n),c=Aq(e,t),l=c.extent,u=c.fixMin,d=c.fixMax;e.type===`log`&&(l=QK(e.base,l,!0)),e.setBreaksFromOption(Bq(t)),e.setExtent(l[0],l[1]),e.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:d});var f=r.getExtent.call(e);u&&(l[0]=f[0]),d&&(l[1]=f[1]);var p=r.getInterval.call(e),m=l[0],h=l[1];if(u&&d)p=(h-m)/o;else if(u)for(h=l[0]+p*o;h<l[1]&&isFinite(h)&&isFinite(l[1]);)p=WK(p),h=l[0]+p*o;else if(d)for(m=l[1]-p*o;m>l[0]&&isFinite(m)&&isFinite(l[0]);)p=WK(p),m=l[1]-p*o;else{e.getTicks().length-1>o&&(p=WK(p));var g=p*o;h=Math.ceil(l[1]/p)*p,m=QM(h-g),m<0&&l[0]>=0?(m=0,h=QM(g)):h>0&&l[1]<=0&&(h=0,m=-QM(g))}var _=(i[0].value-a[0].value)/s,v=(i[o].value-a[o].value)/s;r.setExtent.call(e,m+p*_,h+p*v),r.setInterval.call(e,p),(_||v)&&r.setNiceExtent.call(e,m+p,h-p)}var VZ=[[3,1],[0,2]],abe=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=mZ,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function r(e){var t,n=sO(e),r=n.length;if(r){for(var i=[],a=r-1;a>=0;a--){var o=e[+n[a]],s=o.model,c=o.scale;HK(c)&&s.get(`alignTicks`)&&s.get(`interval`)==null?i.push(o):(jq(c,s),HK(c)&&(t=o))}i.length&&(t||(t=i.pop(),jq(t.scale,t.model)),X(i,function(e){BZ(e.scale,e.model,t.scale)}))}}r(n.x),r(n.y);var i={};X(n.x,function(e){UZ(n,`y`,e,i)}),X(n.y,function(e){UZ(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=pB(e,t),i=this._rect=uB(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(GZ(a,i),!n){var c=cbe(i,o,a,s,t),l=void 0;if(s)qZ?(qZ(this._axesList,i),GZ(a,i)):l=JZ(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=lbe(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=JZ(d,f,p,i,a,c,r))}YZ(i,a,$q.determine,null,l,r)}X(this._coordsList,function(e){e.calcAffineTransform()})},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}mO(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,PN).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,PN).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,tO(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,X(o.x,function(t,n){X(o.y,function(i,a){var o=`x`+n+`y`+a,s=new Pye(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})});function c(t){return function(n,r){if(HZ(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=new gZ(t,Mq(n),[0,0],n.get(`type`),c);l.onBand=l.type===`category`&&n.get(`boundaryGap`),l.inverse=n.get(`inverse`),n.axis=l,l.model=n,l.grid=i,l.index=r,i._axesList.push(l),o[t][r]=l,s[t]++}}}},e.prototype._updateScale=function(e,t){X(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),e.type===`category`){var t=e.model.get(`categorySortInfo`);e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if(nbe(e)){var r=zZ(e),i=r.xAxisModel,a=r.yAxisModel;if(!HZ(i,t)||!HZ(a,t))return;var o=this.getCartesian(i.componentIndex,a.componentIndex),s=e.getData(),c=o.getAxis(`x`),l=o.getAxis(`y`);n(s,c),n(s,l)}},this);function n(e,t){X(Lq(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return X(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);tO(t,i)<0&&t.push(i),tO(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)}),t.eachSeries(function(e){tB({targetModel:e,coordSysType:`cartesian2d`,coordSysProvider:t});function t(){var t=zZ(e),n=t.xAxisModel,r=t.yAxisModel;return n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,r.componentIndex)}}),r},e.dimensions=mZ,e}();function HZ(e,t){return e.getCoordSysModel()===t}function UZ(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)WZ(i[c])&&(a=i[c]);else for(var l in i)if(i.hasOwnProperty(l)&&WZ(i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function WZ(e){return e&&e.type!==`category`&&e.type!==`time`&&u_e(e)}function obe(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function GZ(e,t){X(e.x,function(e){return KZ(e,t.x,t.width)}),X(e.y,function(e){return KZ(e,t.y,t.height)})}function KZ(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),obe(e,t)}var qZ;function sbe(e){qZ=e}function JZ(e,t,n,r,i,a,o){YZ(r,i,$q.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=oO(s,function(e){return e>0})==null;return yR(r,s,!0,!0,n),GZ(i,r),c;function l(e){X(i[QL[e]],function(t){if(zq(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(xZ(o.label).tickValue);s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=Rq(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[QL[n]]-t[QL[n]],a=t[$L[n]]+t[QL[n]]-(e[$L[n]]+e[QL[n]]);i=d(i,1-r),a=d(a,r);var o=VZ[n][0],c=VZ[n][1];s[o]=qM(s[o],i),s[c]=qM(s[c],a)}function d(e,t){return e>0&&!yO(t)&&t>1e-4&&(e/=t),e}}function cbe(e,t,n,r,i){var a=new CZ(ube);return X(n,function(n){return X(n,function(n){if(zq(n.model)){var o=!r;n.axisBuilder=rbe(e,t,n.model,i,a,o)}})}),a}function YZ(e,t,n,r,i,a){var o=n===$q.determine;X(t,function(t){return X(t,function(t){zq(t.model)&&(ibe(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[QL[1-t]]=e[$L[t]]<=a.refContainer[$L[t]]*.5?0:1-t==1?2:1}X(t,function(e,t){return X(e,function(e){zq(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function lbe(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=uB(e.get(`outerBounds`,!0)||iZ,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||tO([`all`,`axisLabel`],a)<0?`all`:a,s=[ZM(xO(e.get(`outerBoundsClampWidth`,!0),aZ[0]),t.width),ZM(xO(e.get(`outerBoundsClampHeight`,!0),aZ[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var ube=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;EZ(e,t,n,r,i,a),Rq(e.nameLocation)||X(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&OZ(e.labelInfoList,e.dirVec,r,i)})};function dbe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return fbe(n,e,t),n.seriesInvolved&&mbe(n,e),n}function fbe(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];X(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=$Z(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(X(n.getAxes(),lO(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&X(f.baseAxes,lO(p,d?`cross`:!0,u)),d&&X(f.otherAxes,lO(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!QZ(d))){s??=d.get(`triggerTooltip`),d=r?pbe(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=$Z(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:QZ(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=hbe(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function pbe(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};X(s,function(e){c[e]=ZD(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&eO(l,u.textStyle)}return e.model.getModel(`axisPointer`,new $R(c,n,r))}function mbe(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||X(e.coordSysAxesInfo[$Z(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function hbe(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(XZ(a[r+`AxisId`],n.id)||XZ(a[r+`AxisIndex`],n.componentIndex)||XZ(a[r+`AxisName`],n.name))return i}}function XZ(e,t){return e===`all`||Q(e)&&tO(e,t)>=0||e===t}function gbe(e){var t=ZZ(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=QZ(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function ZZ(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[$Z(e)]}function _be(e){var t=ZZ(e);return t&&t.axisPointerModel}function QZ(e){return!!e.get([`handle`,`show`])}function $Z(e){return e.type+`||`+e.id}var eQ={},tQ=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&gbe(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=_be(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){eQ[e]=t},t.getAxisPointerClass=function(e){return e&&eQ[e]},t.type=`axis`,t}(AH),nQ=jN();function rQ(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=nQ(e).splitAreaColors,f=jO(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=Q(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new PF({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:eO({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}nQ(e).splitAreaColors=f}}}function iQ(e){nQ(e).splitAreaColors=null}var vbe=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],aQ=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new zM,this.group.add(this._axisGroup),zq(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),X(vbe,function(e){t.get([e,`show`])&&ybe[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||pR(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){iQ(this)},t.type=`cartesianAxis`,t}(tQ),ybe={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=Q(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new CL({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:eO({stroke:c[x]},_),silent:!0});sR(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new CL({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});sR(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){rQ(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=dZ(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},oQ=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(aQ),bbe=function(e){J(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=oQ.type,t}return t.type=`yAxis`,t}(aQ),xbe=function(e){J(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new PF({shape:e.coordinateSystem.getRect(),style:eO({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(AH),sQ={offset:0};function cQ(e){e.registerComponentView(xbe),e.registerComponentModel(kye),e.registerCoordinateSystem(`cartesian2d`,abe),fZ(e,`x`,oZ,sQ),fZ(e,`y`,oZ,sQ),e.registerComponentView(oQ),e.registerComponentView(bbe),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function Sbe(e,t){var n=e.coordinateSystem,r=n&&n.type,i=n&&n.getBaseAxis&&n.getBaseAxis(),a=i&&i.scale&&i.scale.type,o=r===`cartesian2d`&&a===`ordinal`||r===`single`,s=t.model.get(`jitter`)>0;return o&&s}var Cbe=jN();function lQ(e,t,n,r){if(e instanceof gZ){var i=e.scale.type;if(i!==`category`&&i!==`ordinal`)return n}var a=e.model,o=a.get(`jitter`),s=a.get(`jitterOverlap`),c=a.get(`jitterMargin`)||0,l=e.scale.type===`ordinal`?e.getBandWidth():null;return o>0?s?uQ(n,o,l,r):wbe(e,t,n,r,o,c):n}function uQ(e,t,n,r){if(n===null)return e+(Math.random()-.5)*t;var i=n-r*2,a=Math.min(Math.max(0,t),i);return e+(Math.random()-.5)*a}function wbe(e,t,n,r,i,a){var o=Cbe(e);o.items||=[];var s=o.items,c=dQ(s,t,n,r,i,a,1),l=dQ(s,t,n,r,i,a,-1),u=Math.abs(c-n)<Math.abs(l-n)?c:l,d=e.scale.type===`ordinal`?e.getBandWidth():null,f=Math.abs(u-n);return f>i/2||d&&f>d/2-r?uQ(n,i,d,r):(s.push({fixedCoord:t,floatCoord:u,r}),u)}function dQ(e,t,n,r,i,a,o){for(var s=n,c=0;c<e.length;c++){var l=e[c],u=t-l.fixedCoord,d=s-l.floatCoord,f=u*u+d*d,p=r+l.r+a;if(f<p*p){var m=l.floatCoord+Math.sqrt(p*p-u*u)*o;if(Math.abs(m-n)>i/2)return Number.MAX_VALUE;if(o===1&&m>s||o===-1&&m<s){s=m,c=-1;continue}}}return s}function Tbe(e){e.eachSeriesByType(`scatter`,function(e){var t=e.coordinateSystem;if(t&&(t.type===`cartesian2d`||t.type===`single`)){var n=t.getBaseAxis?t.getBaseAxis():null;if(n&&Sbe(e,n)){var r=e.getData();r.each(function(e){var t=n.dim,i=n.orient,a=i===`horizontal`&&n.type!==`category`||i===`vertical`&&n.type===`category`,o=r.getItemLayout(e),s=r.getItemVisual(e,`symbolSize`),c=s instanceof Array?(s[1]+s[0])/2:s;if(t===`y`||t===`single`&&a){var l=lQ(n,o[0],o[1],c/2);r.setItemLayout(e,[o[0],l])}else if(t===`x`||t===`single`&&!a){var l=lQ(n,o[1],o[0],c/2);r.setItemLayout(e,[l,o[1]])}})}}})}function Ebe(e){qG(cQ),e.registerSeriesModel(wye),e.registerChartView(Oye),e.registerLayout(wX(`scatter`))}function Dbe(e){e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,Tbe)}function Obe(e){e.eachSeriesByType(`radar`,function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();X(i,function(e,a){t.each(t.mapDimension(i[a].dim),function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,a);n[t][a]=fQ(i)?i:pQ(r)})}),t.each(function(e){var i=oO(n[e],function(e){return fQ(e)})||pQ(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])})}})}function fQ(e){return!isNaN(e[0])&&!isNaN(e[1])}function pQ(e){return[e.cx,e.cy]}function kbe(e){var t=e.polar;if(t){Q(t)||(t=[t]);var n=[];X(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],Q(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}X(e.series,function(e){e&&e.type===`radar`&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var Abe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=this._data;function s(e,t){var n=e.getItemVisual(t,`symbol`)||`circle`;if(n!==`none`){var r=mU(e.getItemVisual(t,`symbolSize`)),i=pU(n,-1,-1,2,2),a=e.getItemVisual(t,`symbolRotate`)||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function c(t,n,r,i,a,o){r.removeAll();for(var c=0;c<n.length-1;c++){var l=s(i,a);l&&(l.__dimIdx=c,t[c]?(l.setPosition(t[c]),XL[o?`initProps`:`updateProps`](l,{x:n[c][0],y:n[c][1]},e,a)):l.setPosition(n[c]),r.add(l))}}function l(e){return Z(e,function(e){return[r.cx,r.cy]})}a.diff(o).add(function(t){var n=a.getItemLayout(t);if(n){var r=new xL,i=new SL,o={shape:{points:n}};r.shape.points=l(n),i.shape.points=l(n),WL(r,o,e,t),WL(i,o,e,t);var s=new zM,u=new zM;s.add(i),s.add(r),s.add(u),c(i.shape.points,n,u,a,t,!0),a.setItemGraphicEl(t,s)}}).update(function(t,n){var r=o.getItemGraphicEl(n),i=r.childAt(0),s=r.childAt(1),l=r.childAt(2),u={shape:{points:a.getItemLayout(t)}};u.shape.points&&(c(i.shape.points,u.shape.points,l,a,t,!1),YL(s),YL(i),UL(i,u,e),UL(s,u,e),a.setItemGraphicEl(t,r))}).remove(function(e){i.remove(o.getItemGraphicEl(e))}).execute(),a.eachItemGraphicEl(function(e,t){var n=a.getItemModel(t),r=e.childAt(0),o=e.childAt(1),s=e.childAt(2),c=a.getItemVisual(t,`style`),l=c.fill;i.add(e),r.useStyle(eO(n.getModel(`lineStyle`).getLineStyle(),{fill:`none`,stroke:l})),RI(r,n,`lineStyle`),RI(o,n,`areaStyle`);var u=n.getModel(`areaStyle`),d=u.isEmpty()&&u.parentModel.isEmpty();o.ignore=d,X([`emphasis`,`select`,`blur`],function(e){var t=n.getModel([e,`areaStyle`]),i=t.isEmpty()&&t.parentModel.isEmpty();o.ensureState(e).ignore=i&&d;var a=n.getModel([e,`lineStyle`]).getLineStyle();r.ensureState(e).style=a;var c=t.getAreaStyle();o.ensureState(e).style=c;var l=n.getModel([e,`itemStyle`]).getItemStyle();s.eachChild(function(t){t.ensureState(e).style=ZD(l)})}),o.useStyle(eO(n.getModel(`areaStyle`).getAreaStyle(),{fill:l,opacity:.7,decal:c.decal}));var f=n.getModel(`emphasis`);s.eachChild(function(e){if(e instanceof OF){var r=e.style;e.useStyle(Y({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},c))}else e.useStyle(c),e.setColor(l),e.style.strokeNoScale=!0;var i=a.getStore().get(a.getDimensionIndex(e.__dimIdx),t);(i==null||isNaN(i))&&(i=``),IR(e,LR(n),{labelFetcher:a.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:l,defaultOpacity:c.opacity})}),FI(e,f.get(`focus`),f.get(`blurScope`),f.get(`disabled`))}),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=`radar`,t}(NH),jbe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new tZ(cO(this.getData,this),cO(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return eZ(this,{generateCoord:`indicator_`,generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),a=this.getData().getName(e),o=a===``?this.name:a,s=yH(this,e);return fH(`section`,{header:o,sortBlocks:!0,blocks:Z(i,function(t){var n=r.get(r.mapDimension(t.dim),e);return fH(`nameValue`,{markerType:`subItem`,markerColor:s,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(Z(n.dimensions,function(e){return t.mapDimension(e)}),e),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}}},t.type=`series.radar`,t.dependencies=[`radar`],t.defaultOption={z:2,colorBy:`data`,coordinateSystem:`radar`,legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:`solid`,join:`round`},label:{position:`top`},symbolSize:8},t}(EH),mQ=lZ.value;function hQ(e,t){return eO({show:t},e)}var Mbe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this.get(`boundaryGap`),t=this.get(`splitNumber`),n=this.get(`scale`),r=this.get(`axisLine`),i=this.get(`axisTick`),a=this.get(`axisLabel`),o=this.get(`axisName`),s=this.get([`axisName`,`show`]),c=this.get([`axisName`,`formatter`]),l=this.get(`axisNameGap`),u=this.get(`triggerEvent`),d=Z(this.get(`indicator`)||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var f=o;d.color!=null&&(f=eO({color:d.color},o));var p=QD(ZD(d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:a,name:d.text,showName:s,nameLocation:`end`,nameGap:l,nameTextStyle:f,triggerEvent:u},!1);if(dO(c)){var m=p.name;p.name=c.replace(`{value}`,m??``)}else uO(c)&&(p.name=c(p.name,p));var h=new $R(p,null,this.ecModel);return nO(h,Vq.prototype),h.mainType=`radar`,h.componentIndex=this.componentIndex,h},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=`radar`,t.defaultOption={z:0,center:[`50%`,`50%`],radius:`50%`,startAngle:90,axisName:{show:!0,color:$.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:`polygon`,axisLine:QD({lineStyle:{color:$.color.neutral20}},mQ.axisLine),axisLabel:hQ(mQ.axisLabel,!1),axisTick:hQ(mQ.axisTick,!1),splitLine:hQ(mQ.splitLine,!0),splitArea:hQ(mQ.splitArea,!0),indicator:[]},t}(yB),Nbe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,t){var n=e.coordinateSystem;X(Z(n.getIndicatorAxes(),function(e){var r=e.model.get(`showName`)?e.name:``;return new kZ(e.model,t,{axisName:r,position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){e.build(),this.group.add(e.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(!n.length)return;var r=e.get(`shape`),i=e.getModel(`splitLine`),a=e.getModel(`splitArea`),o=i.getModel(`lineStyle`),s=a.getModel(`areaStyle`),c=i.get(`show`),l=a.get(`show`),u=o.get(`color`),d=s.get(`color`),f=Q(u)?u:[u],p=Q(d)?d:[d],m=[],h=[];function g(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}if(r===`circle`)for(var _=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<_.length;b++){if(c){var x=g(m,f,b);m[x].push(new aL({shape:{cx:v,cy:y,r:_[b].coord}}))}if(l&&b<_.length-1){var x=g(h,p,b);h[x].push(new yL({shape:{cx:v,cy:y,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var S,C=Z(n,function(e,n){var r=e.getTicksCoords();return S=S==null?r.length-1:Math.min(r.length-1,S),Z(r,function(e){return t.coordToPoint(e.coord,n)})}),w=[],b=0;b<=S;b++){for(var T=[],E=0;E<n.length;E++)T.push(C[E][b]);if(T[0]&&T.push(T[0].slice()),c){var x=g(m,f,b);m[x].push(new SL({shape:{points:T}}))}if(l&&w){var x=g(h,p,b-1);h[x].push(new xL({shape:{points:T.concat(w)}}))}w=T.slice().reverse()}var D=o.getLineStyle(),O=s.getAreaStyle();X(h,function(e,t){this.group.add(aR(e,{style:eO({stroke:`none`,fill:p[t%p.length]},O),silent:!0}))},this),X(m,function(e,t){this.group.add(aR(e,{style:eO({fill:`none`,stroke:f[t%f.length]},D),silent:!0}))},this)},t.type=`radar`,t}(AH),Pbe=function(e){J(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type=`value`,i.angle=0,i.name=``,i}return t}(uJ),Fbe=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=Z(e.getIndicatorModels(),function(e,t){var n=`indicator_`+t,r=new Pbe(n,new aq);return r.name=e.get(`name`),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i=Math.atan2(-n,t),a=1/0,o,s=-1,c=0;c<this._indicatorAxes.length;c++){var l=this._indicatorAxes[c],u=Math.abs(i-l.angle);u<a&&(o=l,s=c,a=u)}return[s,+(o&&o.coordToData(r))]},e.prototype.resize=function(e,t){var n=pB(e,t).refContainer,r=e.get(`center`),i=Math.min(n.width,n.height)/2;this.cx=XM(r[0],n.width)+n.x,this.cy=XM(r[1],n.height)+n.y,this.startAngle=e.get(`startAngle`)*Math.PI/180;var a=e.get(`radius`);(dO(a)||pO(a))&&(a=[0,a]),this.r0=XM(a[0],i),this.r=XM(a[1],i),X(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;X(n,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType(`radar`,function(t,i){if(!(t.get(`coordinateSystem`)!==`radar`||e.getComponent(`radar`,t.get(`radarIndex`))!==r)){var a=t.getData();X(n,function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))})}},this);var i=r.get(`splitNumber`),a=new aq;a.setExtent(0,i),a.setInterval(1),X(n,function(e,t){BZ(e.scale,e.model,a)})},e.prototype.convertToPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn(`Not implemented.`),null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.create=function(t,n){var r=[];return t.eachComponent(`radar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachSeriesByType(`radar`,function(e){e.get(`coordinateSystem`)===`radar`&&(e.coordinateSystem=r[e.get(`radarIndex`)||0])}),r},e.dimensions=[],e}();function Ibe(e){e.registerCoordinateSystem(`radar`,Fbe),e.registerComponentModel(Mbe),e.registerComponentView(Nbe),e.registerVisual({seriesType:`radar`,reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,`legendIcon`,`roundRect`)}),t.setVisual(`legendIcon`,`roundRect`)}})}function Lbe(e){qG(Ibe),e.registerChartView(Abe),e.registerSeriesModel(jbe),e.registerLayout(Obe),e.registerProcessor(JX(`radar`)),e.registerPreprocessor(kbe)}var gQ=jN();function Rbe(e,t,n){gQ(e)[t]=n}function zbe(e,t,n){var r=gQ(e);r[t]===n&&(r[t]=null)}function _Q(e,t){return!!gQ(e)[t]}FG({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},IO);var Bbe={axisPointer:1,tooltip:1,brush:1};function vQ(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||Bbe.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=kR(r),o=kR(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var yQ=function(e){J(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=cO(n._mousedownHandler,n),i=cO(n._mousemoveHandler,n),a=cO(n._mouseupHandler,n),o=cO(n._mousewheelHandler,n),s=cO(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=kR(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:xO(c.z2,-1/0)},p=Y({},n.triggerInfo);this._opt=eO(Y({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:f,triggerInfo:p}),e??=!0,(!this._enabled||this._controlType!==e)&&(this._enabled=!0,this.disable(),(e===!0||e===`move`||e===`pan`)&&(SQ(t,`mousedown`,r,f),SQ(t,`mousemove`,i,f),SQ(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(SQ(t,`mousewheel`,o,f),SQ(t,`pinch`,s,f)))},n.disable=function(){this._enabled=!1,CQ(t,`mousedown`,r),CQ(t,`mousemove`,i),CQ(t,`mouseup`,a),CQ(t,`mousewheel`,o),CQ(t,`pinch`,s)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,t,n){var r=this._opt,i=r.zInfoParsed;if(vQ(e,r.api,i.component))return!1;var a=r.triggerInfo,o=a.roamTrigger,s=!1;return o===`global`&&(s=!0),s||=a.isInSelf(e,t,n),s&&a.isInClip&&!a.isInClip(e,t,n)&&(s=!1),s},t.prototype._decideCursorStyle=function(e,t,n,r){var i=e.target;if(!i&&this._checkPointer(e,t,n))return`grab`;if(r)return i&&i.cursor||`default`},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(wk(e)||bQ(e))){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this._checkPointer(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var t=this._zr;if(!(e.gestureEvent===`pinch`||_Q(t,`globalPan`)||bQ(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!TQ(`moveOnMouseMove`,e,this._opt)){var i=this._decideCursorStyle(e,n,r,!1);i&&t.setCursorStyle(i);return}t.setCursorStyle(`grabbing`);var a=this._x,o=this._y,s=n-a,c=r-o;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&Ck(e.event),e.__ecRoamConsumed=!0,wQ(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!bQ(e)){var t=this._zr;if(!wk(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!bQ(e)){var t=TQ(`zoomOnMouseWheel`,e,this._opt),n=TQ(`moveOnMouseWheel`,e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(!(r===0||!t&&!n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(_Q(this._zr,`globalPan`)||bQ(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(Ck(r.event),r.__ecRoamConsumed=!0,wQ(e,t,n,r,i))},t}(ik);function bQ(e){return e.__ecRoamConsumed}var Vbe=jN();function xQ(e){var t=Vbe(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function SQ(e,t,n,r){for(var i=xQ(e).roam,a=i[t]=i[t]||[],o=0;o<a.length;o++){var s=a[o].zInfoParsed;if((s.zlevel-r.zlevel||s.z-r.z||s.z2-r.z2)<=0)break}a.splice(o,0,{listener:n,zInfoParsed:r}),Hbe(e,t)}function CQ(e,t,n){for(var r=xQ(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||Ube(e,t);return}}function Hbe(e,t){var n=xQ(e);n.uniform[t]||e.on(t,n.uniform[t]=function(e){var r=n.roam[t];if(r)for(var i=0;i<r.length;i++)r[i].listener(e)})}function Ube(e,t){var n=xQ(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function wQ(e,t,n,r,i){i.isAvailableBehavior=cO(TQ,null,n,r),e.trigger(t,i)}function TQ(e,t,n){var r=n[e];return!e||r&&(!dO(r)||t.event[r+`Key`])}function EQ(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function DQ(e,t,n,r){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;o*=t,o=MQ(o,a);var s=o/e.zoom;e.zoom=o,jQ(i,n,r,s),i.dirty()}function OQ(e,t,n,r,i,a){var o=new Jk(0,0,0,0);r.enable(e.get(`roam`),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:function(e,t,r){return o.copy(n.getBoundingRect()),o.applyTransform(n.getComputedTransform()),o.contain(t,r)},isInClip:function(e,t,n){return!a||a.contain(t,n)}}}),i.zoomLimit=e.get(`scaleLimit`);var s=e.coordinateSystem;i.zoom=s?s.getZoom():1;var c=e.subType+`Roam`;r.off(`pan`).off(`zoom`).on(`pan`,function(n){EQ(i,n.dx,n.dy),t.dispatchAction({seriesId:e.id,type:c,dx:n.dx,dy:n.dy})}).on(`zoom`,function(n){DQ(i,n.scale,n.originX,n.originY),t.dispatchAction({seriesId:e.id,type:c,zoom:n.scale,originX:n.originX,originY:n.originY}),t.updateLabelLayout()})}function kQ(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function AQ(e,t,n){var r=e.getZoom(),i=e.getCenter(),a=t.zoom,o=e.projectedToPoint?e.projectedToPoint(i):e.dataToPoint(i);return t.dx!=null&&t.dy!=null&&(o[0]-=t.dx,o[1]-=t.dy,e.setCenter(kQ(e,o))),a!=null&&(a=MQ(r*a,n)/r,jQ(e,t.originX,t.originY,a),e.updateTransform(),e.setCenter(kQ(e,o)),e.setZoom(a*r)),{center:e.getCenter(),zoom:e.getZoom()}}function jQ(e,t,n,r){e.x-=(t-e.x)*(r-1),e.y-=(n-e.y)*(r-1),e.scaleX*=r,e.scaleY*=r}function MQ(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}function NQ(e){dO(e)&&(e=new DOMParser().parseFromString(e,`text/xml`));var t=e;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!==`svg`||t.nodeType!==1;)t=t.nextSibling;return t}var PQ,FQ={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`},IQ=sO(FQ),LQ={"alignment-baseline":`textBaseline`,"stop-color":`stopColor`},RQ=sO(LQ),Wbe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t||={};var n=NQ(e);this._defsUsePending=[];var r=new zM;this._root=r;var i=[],a=n.getAttribute(`viewBox`)||``,o=parseFloat(n.getAttribute(`width`)||t.width),s=parseFloat(n.getAttribute(`height`)||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),WQ(n,r,null,!0,!1);for(var c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;qbe(this._defs,this._defsUsePending),this._defsUsePending=[];var l,u;if(a){var d=KQ(a);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&o!=null&&s!=null&&(u=XQ(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new zM,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return!t.ignoreRootClip&&o!=null&&s!=null&&r.setClipPath(new PF({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o=e.nodeName.toLowerCase(),s,c=r;if(o===`defs`&&(i=!0),o===`text`&&(a=!0),o===`defs`||o===`switch`)s=t;else{if(!i){var l=PQ[o];if(l&&FO(PQ,o)){s=l.call(this,e,t);var u=e.getAttribute(`name`);if(u){var d={name:u,namedFrom:null,svgNodeTagLower:o,el:s};n.push(d),o===`g`&&(c=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:o,el:s});t.add(s)}}var f=zQ[o];if(f&&FO(zQ,o)){var p=f.call(this,e),m=e.getAttribute(`id`);m&&(this._defs[m]=p)}}if(s&&s.isGroup)for(var h=e.firstChild;h;)h.nodeType===1?this._parseNode(h,s,n,c,i,a):h.nodeType===3&&a&&this._parseText(h,s),h=h.nextSibling},e.prototype._parseText=function(e,t){var n=new wF({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});HQ(t,n),WQ(e,n,this._defsUsePending,!1,!1),Gbe(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9),r.font=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+`px`,r.fontFamily||`sans-serif`].join(` `);var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=(function(){PQ={g:function(e,t){var n=new zM;return HQ(t,n),WQ(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new PF;return HQ(t,n),WQ(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute(`x`)||`0`),y:parseFloat(e.getAttribute(`y`)||`0`),width:parseFloat(e.getAttribute(`width`)||`0`),height:parseFloat(e.getAttribute(`height`)||`0`)}),n.silent=!0,n},circle:function(e,t){var n=new aL;return HQ(t,n),WQ(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),r:parseFloat(e.getAttribute(`r`)||`0`)}),n.silent=!0,n},line:function(e,t){var n=new CL;return HQ(t,n),WQ(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute(`x1`)||`0`),y1:parseFloat(e.getAttribute(`y1`)||`0`),x2:parseFloat(e.getAttribute(`x2`)||`0`),y2:parseFloat(e.getAttribute(`y2`)||`0`)}),n.silent=!0,n},ellipse:function(e,t){var n=new oL;return HQ(t,n),WQ(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),rx:parseFloat(e.getAttribute(`rx`)||`0`),ry:parseFloat(e.getAttribute(`ry`)||`0`)}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=UQ(n));var i=new xL({shape:{points:r||[]},silent:!0});return HQ(t,i),WQ(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=UQ(n));var i=new SL({shape:{points:r||[]},silent:!0});return HQ(t,i),WQ(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new OF;return HQ(t,n),WQ(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute(`xlink:href`)||e.getAttribute(`href`),x:+e.getAttribute(`x`),y:+e.getAttribute(`y`),width:+e.getAttribute(`width`),height:+e.getAttribute(`height`)}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute(`x`)||`0`,r=e.getAttribute(`y`)||`0`,i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`;this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new zM;return HQ(t,o),WQ(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute(`x`),r=e.getAttribute(`y`);n!=null&&(this._textX=parseFloat(n)),r!=null&&(this._textY=parseFloat(r));var i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`,o=new zM;return HQ(t,o),WQ(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=rL(e.getAttribute(`d`)||``);return HQ(t,n),WQ(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),zQ={lineargradient:function(e){var t=new AL(parseInt(e.getAttribute(`x1`)||`0`,10),parseInt(e.getAttribute(`y1`)||`0`,10),parseInt(e.getAttribute(`x2`)||`10`,10),parseInt(e.getAttribute(`y2`)||`0`,10));return BQ(e,t),VQ(e,t),t},radialgradient:function(e){var t=new jL(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return BQ(e,t),VQ(e,t),t}};function BQ(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function VQ(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()===`stop`){var r=n.getAttribute(`offset`),i=void 0;i=r&&r.indexOf(`%`)>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};YQ(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`,s=a.stopOpacity||n.getAttribute(`stop-opacity`);if(s){var c=nj(o);c&&c[3]&&(c[3]*=JA(s),o=cj(c,`rgba`))}t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function HQ(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||={},eO(t.__inheritedStyle,e.__inheritedStyle))}function UQ(e){for(var t=KQ(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}function WQ(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(Xbe(e,t),YQ(e,o,s),r||Zbe(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=GQ(a,`fill`,o.fill,n)),o.stroke!=null&&(a.style.stroke=GQ(a,`stroke`,o.stroke,n)),X([`lineWidth`,`opacity`,`fillOpacity`,`strokeOpacity`,`miterLimit`,`fontSize`],function(e){o[e]!=null&&(a.style[e]=parseFloat(o[e]))}),X([`lineDashOffset`,`lineCap`,`lineJoin`,`fontWeight`,`fontFamily`,`fontStyle`,`textAlign`],function(e){o[e]!=null&&(a.style[e]=o[e])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=Z(KQ(o.lineDash),function(e){return parseFloat(e)})),(o.visibility===`hidden`||o.visibility===`collapse`)&&(a.invisible=!0),o.display===`none`&&(a.ignore=!0)}function Gbe(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;!r||r===`auto`||r===`baseline`?i=`alphabetic`:r===`before-edge`||r===`text-before-edge`?i=`top`:r===`after-edge`||r===`text-after-edge`?i=`bottom`:(r===`central`||r===`mathematical`)&&(i=`middle`),e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o===`middle`&&(s=`center`),e.style.textAlign=s)}}var Kbe=/^url\(\s*#(.*?)\)/;function GQ(e,t,n,r){var i=n&&n.match(Kbe);if(i){var a=EO(i[1]);r.push([e,t,a]);return}return n===`none`&&(n=null),n}function qbe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var Jbe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function KQ(e){return e.match(Jbe)||[]}var Ybe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,qQ=Math.PI/180;function Xbe(e,t){var n=e.getAttribute(`transform`);if(n){n=n.replace(/,/g,` `);var r=[],i=null;n.replace(Ybe,function(e,t,n){return r.push(t,n),``});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],c=KQ(o);switch(i||=Dk(),s){case`translate`:jk(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:Nk(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:Mk(i,i,-parseFloat(c[0])*qQ,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*qQ);Ak(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*qQ);Ak(i,[1,u,0,1,0,0],i);break;case`matrix`:i[0]=parseFloat(c[0]),i[1]=parseFloat(c[1]),i[2]=parseFloat(c[2]),i[3]=parseFloat(c[3]),i[4]=parseFloat(c[4]),i[5]=parseFloat(c[5]);break}}t.setLocalTransform(i)}}var JQ=/([^\s:;]+)\s*:\s*([^:;]+)/g;function YQ(e,t,n){var r=e.getAttribute(`style`);if(r){JQ.lastIndex=0;for(var i;(i=JQ.exec(r))!=null;){var a=i[1],o=FO(FQ,a)?FQ[a]:null;o&&(t[o]=i[2]);var s=FO(LQ,a)?LQ[a]:null;s&&(n[s]=i[2])}}}function Zbe(e,t,n){for(var r=0;r<IQ.length;r++){var i=IQ[r],a=e.getAttribute(i);a!=null&&(t[FQ[i]]=a)}for(var r=0;r<RQ.length;r++){var i=RQ[r],a=e.getAttribute(i);a!=null&&(n[LQ[i]]=a)}}function XQ(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function Qbe(e,t){return new Wbe().parse(e,t)}var $be=jO([`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`,`text`,`tspan`,`g`]),exe=function(){function e(e,t){this.type=`geoSVG`,this._usedGraphicMap=jO(),this._freedGraphics=[],this._mapName=e,this._parsedXML=NQ(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=nxe(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&Qbe(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,TO(n!=null)}catch(e){throw Error(`Invalid svg format
|
||
`+e.message)}var r=new zM;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=t.width,a=t.height,o=t.viewBoxRect,s=this._boundingRect;if(!s){var c=void 0,l=void 0,u=void 0,d=void 0;if(i==null?o&&(c=o.x,u=o.width):(c=0,u=i),a==null?o&&(l=o.y,d=o.height):(l=0,d=a),c==null||l==null){var f=n.getBoundingRect();c??(c=f.x,u=f.width),l??(l=f.y,d=f.height)}s=this._boundingRect=new Jk(c,l,u,d)}if(o){var p=XQ(o,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new PF({shape:s.plain()}));var m=[];return X(t.named,function(e){$be.get(e.svgNodeTagLower)!=null&&(m.push(e),txe(e.el))}),{root:r,boundingRect:s,named:m}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function txe(e){e.silent=!1,e.isGroup&&e.traverse(function(e){e.silent=!1})}function nxe(e){var t=[],n=jO();return X(e,function(e){if(e.namedFrom==null){var r=new g_e(e.name,e.el);t.push(r),n.set(e.name,r)}}),{regions:t,regionsMap:n}}for(var ZQ=[126,25],QQ=`南海诸岛`,$Q=[[[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]]],e$=0;e$<$Q.length;e$++)for(var t$=0;t$<$Q[e$].length;t$++)$Q[e$][t$][0]/=10.5,$Q[e$][t$][1]/=-10.5/.75,$Q[e$][t$][0]+=ZQ[0],$Q[e$][t$][1]+=ZQ[1];function rxe(e,t){if(e===`china`){for(var n=0;n<t.length;n++)if(t[n].name===QQ)return;t.push(new Yq(QQ,Z($Q,function(e){return{type:`polygon`,exterior:e}}),ZQ))}}var ixe={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function axe(e,t){if(e===`china`){var n=ixe[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var oxe=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function sxe(e,t){e===`china`&&t.name===`台湾`&&t.geometries.push({type:`polygon`,exterior:oxe[0]})}var cxe=`name`,lxe=function(){function e(e,t,n){this.type=`geoJSON`,this._parsedMap=jO(),this._mapName=e,this._specialAreas=n,this._geoJSON=dxe(t)}return e.prototype.load=function(e,t){t||=cxe;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:uxe(r)})}var i=jO(),a=[];return X(n.regions,function(t){var n=t.name;e&&FO(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)}),{regions:a,boundingRect:n.boundingRect||new Jk(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,r;try{r=n?v_e(n,e):[]}catch(e){throw Error(`Invalid geoJson format
|
||
`+e.message)}return rxe(t,r),X(r,function(e){var n=e.name;axe(t,e),sxe(t,e);var r=this._specialAreas&&this._specialAreas[n];r&&e.transformTo(r.left,r.top,r.width,r.height)},this),r},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function uxe(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t||=r.clone(),t.union(r)}return t}function dxe(e){return dO(e)?typeof JSON<`u`&&JSON.parse?JSON.parse(e):Function(`return (`+e+`);`)():e}var n$=jO(),r$={registerMap:function(e,t,n){if(t.svg){var r=new exe(e,t.svg);n$.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;var r=new lxe(e,i,n);n$.set(e,r)}},getGeoResource:function(e){return n$.get(e)},getMapForUser:function(e){var t=n$.get(e);return t&&t.type===`geoJSON`&&t.getMapForUser()},load:function(e,t,n){var r=n$.get(e);if(r)return r.load(t,n)}},i$=[`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`],fxe=jO(i$),pxe=jO(i$.concat([`g`])),mxe=jO(i$.concat([`g`])),a$=jN();function o$(e){var t=e.getItemStyle(),n=e.get(`areaColor`);return n!=null&&(t.fill=n),t}function s$(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var c$=function(){function e(e){var t=this.group=new zM,n=this._transformGroup=new zM;t.add(n),this.uid=ez(`ec_map_draw`),this._controller=new yQ(e.getZr()),this._controllerHost={target:n},n.add(this._regionsGroup=new zM),n.add(this._svgGroup=new zM)}return e.prototype.draw=function(e,t,n,r,i){var a=e.mainType===`geo`,o=e.getData&&e.getData();a&&t.eachComponent({mainType:`series`,subType:`map`},function(t){!o&&t.getHostGeoModel()===e&&(o=t.getData())});var s=e.coordinateSystem,c=this._regionsGroup,l=this._transformGroup,u=s.getTransformInfo(),d=u.raw,f=u.roam,p=!c.childAt(0)||i,m=e.getShallow(`clip`,!0),h;m?(h=s.getViewRect().clone(),this.group.setClipPath(new PF({shape:h.clone()}))):this.group.removeClipPath(),p?(l.x=f.x,l.y=f.y,l.scaleX=f.scaleX,l.scaleY=f.scaleY,l.dirty()):UL(l,f,e);var g=o&&o.getVisual(`visualMeta`)&&o.getVisual(`visualMeta`).length>0,_={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:d};s.resourceType===`geoJSON`?this._buildGeoJSON(_):s.resourceType===`geoSVG`&&this._buildSVG(_),this._updateController(e,h,t,n),this._updateMapSelectHandler(e,c,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=jO(),n=jO(),r=this._regionsGroup,i=e.transformInfoRaw,a=e.mapOrGeoModel,o=e.data,s=e.geo.projection,c=s&&s.stream;function l(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function u(e){for(var t=[],n=!c&&s&&s.project,r=0;r<e.length;++r){var i=l(e[r],n);i&&t.push(i)}return t}function d(e){return{shape:{points:u(e)}}}r.removeAll(),X(e.geo.regions,function(i){var u=i.name,f=t.get(u),p=n.get(u)||{},m=p.dataIdx,h=p.regionModel;if(!f){f=t.set(u,new zM),r.add(f),m=o?o.indexOfName(u):null,h=e.isGeo?a.getRegionModel(u):o?o.getItemModel(m):null;var g=h.get(`silent`,!0);g!=null&&(f.silent=g),n.set(u,{dataIdx:m,regionModel:h})}var _=[],v=[];X(i.geometries,function(e){if(e.type===`polygon`){var t=[e.exterior].concat(e.interiors||[]);c&&(t=m$(t,c)),X(t,function(e){_.push(new xL(d(e)))})}else{var n=e.points;c&&(n=m$(n,c,!0)),X(n,function(e){v.push(new SL(d(e)))})}});var y=l(i.getCenter(),s&&s.project);function b(t,n){if(t.length){var r=new OL({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});f.add(r),l$(e,r,m,h),u$(e,r,u,h,a,m,y),n&&(s$(r),X(r.states,s$))}}b(_),b(v,!0)}),t.each(function(t,r){var i=n.get(r),o=i.dataIdx,s=i.regionModel;d$(e,t,r,s,a,o),f$(e,t,r,s,a),p$(e,t,r,s,a)},this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=jO(),i=!1;X(this._svgGraphicRecord.named,function(t){var n=t.name,a=e.mapOrGeoModel,o=e.data,s=t.svgNodeTagLower,c=t.el,l=o?o.indexOfName(n):null,u=a.getRegionModel(n);fxe.get(s)!=null&&c instanceof mP&&l$(e,c,l,u),c instanceof mP&&(c.culling=!0);var d=u.get(`silent`,!0);d!=null&&(c.silent=d),c.z2EmphasisLift=0,t.namedFrom||(mxe.get(s)!=null&&u$(e,c,n,u,a,l,null),d$(e,c,n,u,a,l),f$(e,c,n,u,a),pxe.get(s)!=null&&(p$(e,c,n,u,a)===`self`&&(i=!0),(r.get(n)||r.set(n,[])).push(c)))},this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel([`blur`,`itemStyle`]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){yI(e);var t=e.ensureState(`blur`).style||{};t.opacity==null&&n!=null&&(t.opacity=n),e.ensureState(`emphasis`)}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType===`geoJSON`){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if(n.resourceType===`geoSVG`)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=r$.getGeoResource(e);if(t&&t.type===`geoSVG`){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=r$.getGeoResource(e);t&&t.type===`geoSVG`&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n,r){var i=e.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=e.get(`scaleLimit`),o.zoom=i.getZoom(),a.enable(e.get(`roam`)||!1,{api:r,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:function(e,t,n){return i.containPoint([t,n])},isInClip:function(e,n,r){return!t||t.contain(n,r)}}});var s=e.mainType;function c(){var t={type:`geoRoam`,componentType:s};return t[s+`Id`]=e.id,t}a.off(`pan`).on(`pan`,function(e){this._mouseDownFlag=!1,EQ(o,e.dx,e.dy),r.dispatchAction(Y(c(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))},this),a.off(`zoom`).on(`zoom`,function(e){this._mouseDownFlag=!1,DQ(o,e.scale,e.originX,e.originY),r.dispatchAction(Y(c(),{totalZoom:o.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))},this)},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=a$(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off(`mousedown`),t.off(`click`),e.get(`selectedMode`)&&(t.on(`mousedown`,function(){i._mouseDownFlag=!0}),t.on(`click`,function(e){i._mouseDownFlag&&=!1}))},e}();function l$(e,t,n,r){var i=r.getModel(`itemStyle`),a=r.getModel([`emphasis`,`itemStyle`]),o=r.getModel([`blur`,`itemStyle`]),s=r.getModel([`select`,`itemStyle`]),c=o$(i),l=o$(a),u=o$(s),d=o$(o),f=e.data;if(f){var p=f.getItemVisual(n,`style`),m=f.getItemVisual(n,`decal`);e.isVisualEncodedByVisualMap&&p.fill&&(c.fill=p.fill),m&&(c.decal=nW(m,e.api))}t.setStyle(c),t.style.strokeNoScale=!0,t.ensureState(`emphasis`).style=l,t.ensureState(`select`).style=u,t.ensureState(`blur`).style=d,yI(t)}function u$(e,t,n,r,i,a,o){var s=e.data,c=e.isGeo,l=s&&isNaN(s.get(s.mapDimension(`value`),a)),u=s&&s.getItemLayout(a);if(c||l||u&&u.showLabel){var d=c?n:a,f=void 0;(!s||a>=0)&&(f=i);var p=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;IR(t,LR(r),{labelFetcher:f,labelDataIndex:d,defaultText:n},p);var m=t.getTextContent();if(m&&(a$(m).ignore=m.ignore,t.textConfig&&o)){var h=t.getBoundingRect().clone();t.textConfig.layoutRect=h,t.textConfig.position=[(o[0]-h.x)/h.width*100+`%`,(o[1]-h.y)/h.height*100+`%`]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function d$(e,t,n,r,i,a){e.data?e.data.setItemGraphicEl(a,t):YF(t).eventData={componentType:`geo`,componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function f$(e,t,n,r,i){e.data||SR({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get(`tooltip`)})}function p$(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get(`selectedMode`);var a=r.getModel(`emphasis`),o=a.get(`focus`);return FI(t,o,a.get(`blurScope`),a.get(`disabled`)),e.isGeo&&zpe(t,i,n),o}function m$(e,t,n){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),X(e,function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}var hxe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){if(!(r&&r.type===`mapToggleSelect`&&r.from===this.uid)){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&r.type===`geoRoam`&&this._mapDraw.resetForLabelLayout(),r&&r.type===`geoRoam`&&r.componentType===`series`&&r.seriesId===e.id){var a=this._mapDraw;a&&i.add(a.group)}else if(e.needsDrawMap){var a=this._mapDraw||new c$(n);i.add(a.group),a.draw(e,t,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get(`showLegendSymbol`)&&t.getComponent(`legend`)&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension(`value`),function(t,n){if(!isNaN(t)){var a=r.getItemLayout(n);if(!(!a||!a.point)){var o=a.point,s=a.offset,c=new aL({style:{fill:e.getData().getVisual(`style`).fill},shape:{cx:o[0]+s*9,cy:o[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var l=e.mainSeries.getData(),u=r.getName(n),d=l.indexOfName(u),f=r.getItemModel(n),p=f.getModel(`label`),m=l.getItemGraphicEl(d);IR(c,LR(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:u}),c.disableLabelAnimation=!0,p.get(`position`)||c.setTextConfig({position:`bottom`}),m.onHoverStateChange=function(e){_I(c,e)}}i.add(c)}}})},t.type=`map`,t}(NH),gxe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(e!=null){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return t.prototype.getInitialData=function(e){for(var t=eZ(this,{coordDimensions:[`value`],encodeDefaulter:lO(IB,this)}),n=jO(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,i)}return X(r$.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(e){var i=e.name,a=n.get(i),o=e.properties&&e.properties.echartsStyle,s;a==null?(s={name:i},r.push(s)):s=t.getRawDataItem(a),o&&QD(s,o)}),t.appendData(r),t},t.prototype.getHostGeoModel=function(){if(eB(this).kind!==$z.boxCoordSys)return this.getReferringComponents(`geo`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension(`value`),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),a=r.getName(e),o=this.seriesGroup,s=[],c=0;c<o.length;c++){var l=o[c].originalData.indexOfName(a),u=r.mapDimension(`value`);isNaN(o[c].originalData.get(u,l))||s.push(o[c].name)}return fH(`section`,{header:s.join(`, `),noHeader:!s.length,blocks:[fH(`nameValue`,{name:a,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||`roundRect`,n=pU(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke=`none`,t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=$.color.neutral00,n.style.lineWidth=2),n},t.type=`series.map`,t.dependencies=[`geo`],t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystem:`geo`,map:``,left:`center`,top:`center`,aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:$.color.tertiary},itemStyle:{borderWidth:.5,borderColor:$.color.border,areaColor:$.color.background},emphasis:{label:{show:!0,color:$.color.primary},itemStyle:{areaColor:$.color.highlight}},select:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},nameProperty:`name`},t}(EH);function _xe(e,t){var n={};return X(e,function(e){e.each(e.mapDimension(`value`),function(t,r){var i=`ec-`+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)})}),e[0].map(e[0].mapDimension(`value`),function(r,i){for(var a=`ec-`+e[0].getName(i),o=0,s=1/0,c=-1/0,l=n[a].length,u=0;u<l;u++)s=Math.min(s,n[a][u]),c=Math.max(c,n[a][u]),o+=n[a][u];var d=t===`min`?s:t===`max`?c:t===`average`?o/l:o;return l===0?NaN:d})}function vxe(e){var t={};e.eachSeriesByType(`map`,function(e){var n=e.getHostGeoModel(),r=n?`o`+n.id:`i`+e.getMapType();(t[r]=t[r]||[]).push(e)}),X(t,function(e,t){for(var n=_xe(Z(e,function(e){return e.getData()}),e[0].get(`mapValueCalculation`)),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(var r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=r===0&&!e[r].getHostGeoModel(),e[r].setData(n.cloneShallow()),e[r].mainSeries=e[0]})}function yxe(e){var t={};e.eachSeriesByType(`map`,function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var i={};X(n.seriesGroup,function(t){var n=t.coordinateSystem,r=t.originalData;t.get(`showLegendSymbol`)&&e.getComponent(`legend`)&&r.each(r.mapDimension(`value`),function(e,t){var a=r.getName(t),o=n.getRegion(a);if(!(!o||isNaN(e))){var s=i[a]||0,c=n.dataToPoint(o.getCenter());i[a]=s+1,r.setItemLayout(t,{point:c,offset:s})}})});var a=n.getData();a.each(function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};n.showLabel=!i[t],a.setItemLayout(e,n)}),t[r]=!0}})}var h$=ek,g$=function(e){J(t,e);function t(t,n){var r=e.call(this)||this;return r.type=`view`,r.dimensions=[`x`,`y`],r._roamTransformable=new hM,r._rawTransformable=new hM,r.name=t,r._opt=n,r}return t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new Jk(e,t,n,r),this._updateCenterAndZoom(),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new Jk(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._rawTransformable;a.transform=i.calculateTransform(new Jk(e,t,n,r));var o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,this._updateTransform()},t.prototype.setCenter=function(e){var t=this._opt;t&&t.api&&t.ecModel&&t.ecModel.getShallow(`legacyViewCoordSysCenterBase`)&&e&&(e=[XM(e[0],t.api.getWidth()),XM(e[1],t.api.getWidth())]),this._centerOption=ZD(e),this._updateCenterAndZoom()},t.prototype.setZoom=function(e){this._zoom=MQ(e||1,this.zoomLimit),this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._centerOption,t=this._rect;e&&t&&(this._center=[XM(e[0],t.width,t.x),XM(e[1],t.height,t.y)]);var n=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=ek([],a,n),i=ek([],i,n),r.originX=a[0],r.originY=a[1],r.x=i[0]-a[0],r.y=i[1]-a[1],r.scaleX=r.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),kk(this.transform||=[],t.transform||Dk()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Pk(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new hM;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n||=[],r?h$(n,e,r):VO(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=this.invTransform;return r?h$(n,e,r):(n[0]=e[0],n[1]=e[1],n)},t.prototype.convertToPixel=function(e,t,n){var r=_$(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=_$(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=[`x`,`y`],t}(hM);function _$(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var bxe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},v$=[`lng`,`lat`],y$=function(e){J(t,e);function t(t,n,r){var i=e.call(this,t,{api:r.api,ecModel:r.ecModel})||this;i.dimensions=v$,i.type=`geo`,i._nameCoordMap=jO(),i.map=n;var a=r.projection,o=r$.load(n,r.nameMap,r.nameProperty),s=r$.getGeoResource(n);i.resourceType=s?s.type:null;var c=i.regions=o.regions,l=bxe[s.type];i._regionsMap=o.regionsMap,i.regions=o.regions,i.projection=a;var u;if(a)for(var d=0;d<c.length;d++){var f=c[d].getBoundingRect(a);u||=f.clone(),u.union(f)}else u=o.boundingRect;return i.setBoundingRect(u.x,u.y,u.width,u.height),i.aspectScale=a?1:xO(r.aspectScale,l.aspectScale),i._invertLongitute=a?!1:l.invertLongitute,i}return t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._invertLongitute;i=i.clone(),a&&(i.y=-i.y-i.height);var o=this._rawTransformable;o.transform=i.calculateTransform(new Jk(e,t,n,r));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,a&&(o.scaleY=-o.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if(r.type===`geoJSON`&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(dO(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e,t,n){var r=this.projection;return r&&(e=r.unproject(e)),e&&this.pointToProjected(e,n)},t.prototype.pointToProjected=function(t,n){return e.prototype.pointToData.call(this,t,0,n)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=b$(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=b$(t);return r===this?r.pointToData(n):null},t}(g$);nO(y$,g$);function b$(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents(`geo`,PN).models[0]||{}).coordinateSystem:null}function x$(e,t){var n=e.get(`boundingCoords`);if(n!=null){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=r[0],s=r[1],c=i[0],l=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var u=function(e,t,n,o){for(var s=n-e,c=o-t,l=0;l<=100;l++){var u=l/100,d=a.project([e+s*u,t+c*u]);tk(r,r,d),nk(i,i,d)}};u(o,s,c,s),u(c,s,c,l),u(c,l,o,l),u(o,l,c,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var d=this.getBoundingRect(),f=e.get(`layoutCenter`),p=e.get(`layoutSize`),m=pB(e,t).refContainer,h=d.width/d.height*this.aspectScale,g=!1,_,v;f&&p&&(_=[XM(f[0],m.width)+m.x,XM(f[1],m.height)+m.y],v=XM(p,Math.min(m.width,m.height)),!isNaN(_[0])&&!isNaN(_[1])&&!isNaN(v)&&(g=!0));var y;if(g)y={},h>1?(y.width=v,y.height=v/h):(y.height=v,y.width=v*h),y.y=_[1]-y.height/2,y.x=_[0]-y.width/2;else{var b=e.getBoxLayoutParams();b.aspect=h,y=uB(b,m),y=dB(e,y,h)}this.setViewRect(y.x,y.y,y.width,y.height),this.setCenter(e.get(`center`)),this.setZoom(e.get(`zoom`))}function xxe(e,t){X(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var S$=new(function(){function e(){this.dimensions=v$}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get(`nameProperty`),aspectScale:e.get(`aspectScale`),projection:e.get(`projection`)}}e.eachComponent(`geo`,function(i,a){var o=i.get(`map`),s=new y$(o+a,o,Y({nameMap:i.get(`nameMap`),api:t,ecModel:e},r(i)));s.zoomLimit=i.get(`scaleLimit`),n.push(s),i.coordinateSystem=s,s.model=i,s.resize=x$,s.resize(i,t)}),e.eachSeries(function(e){tB({targetModel:e,coordSysType:`geo`,coordSysProvider:function(){var t=e.subType===`map`?e.getHostGeoModel():e.getReferringComponents(`geo`,PN).models[0];return t&&t.coordinateSystem},allowNotFound:!0})});var i={};return e.eachSeriesByType(`map`,function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}}),X(i,function(i,a){var o=new y$(a,a,Y({nameMap:$D(Z(i,function(e){return e.get(`nameMap`)})),api:t,ecModel:e},r(i[0])));o.zoomLimit=bO.apply(null,Z(i,function(e){return e.get(`scaleLimit`)})),n.push(o),o.resize=x$,o.resize(i[0],t),X(i,function(e){e.coordinateSystem=o,xxe(o,e)})}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=jO(),o=0;o<i.length;o++)a.set(i[o].name,i[o]);return X(r$.load(t,n,r).regions,function(e){var t=e.name,n=a.get(t),r=e.properties&&e.properties.echartsStyle;n||(n={name:t},i.push(n)),r&&QD(n,r)}),i},e}()),Sxe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n);var r=r$.getGeoResource(e.map);if(r&&r.type===`geoJSON`){var i=e.itemStyle=e.itemStyle||{};`color`in i||(i.color=e.defaultItemStyleColor||$.color.backgroundTint)}xN(e,`label`,[`show`])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=S$.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=iO(t.regions||[],function(t,r){var i=r.name;return i&&(t.set(i,new $R(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t},jO()),t.selectedMap||=n},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new $R(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r=t===`normal`?n.get([`label`,`formatter`]):n.get([`emphasis`,`label`,`formatter`]),i={name:e};if(uO(r))return i.status=t,r(i);if(dO(r))return r.replace(`{a}`,e??``)},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){n!==`multiple`&&(t.selectedMap=null);var r=t.selectedMap||={};r[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?`unSelect`:`select`](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!!(t&&t[e])},t.type=`geo`,t.layoutMode=`box`,t.defaultOption={z:0,show:!0,left:`center`,top:`center`,aspectScale:null,silent:!1,map:``,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:$.color.tertiary},itemStyle:{borderWidth:.5,borderColor:$.color.border},emphasis:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},select:{label:{show:!0,color:$.color.primary},itemStyle:{color:$.color.highlight}},regions:[]},t}(yB),Cxe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get(`show`)){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||=new c$(n);var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on(`click`,this._handleRegionClick,this),i.group.silent=e.get(`silent`),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;dU(e.target,function(e){return(t=YF(e).eventData)!=null},!0),t&&this._api.dispatchAction({type:`geoToggleSelect`,geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse(function(e){var t=YF(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type=`geo`,t}(AH);function wxe(e,t,n){r$.registerMap(e,t,n)}function C$(e){e.registerCoordinateSystem(`geo`,S$),e.registerComponentModel(Sxe),e.registerComponentView(Cxe),e.registerImpl(`registerMap`,wxe),e.registerImpl(`getMap`,function(e){return r$.getMapForUser(e)});function t(t,n){n.update=`geo:updateSelectStatus`,e.registerAction(n,function(e,n){var r={},i=[];return n.eachComponent({mainType:`geo`,query:e},function(n){n[t](e.name);var a=n.coordinateSystem;X(a.regions,function(e){r[e.name]=n.isSelected(e.name)||!1});var o=[];X(r,function(e,t){r[t]&&o.push(t)}),i.push({geoIndex:n.componentIndex,name:o})}),{selected:r,allSelected:i,name:e.name}})}t(`toggleSelected`,{type:`geoToggleSelect`,event:`geoselectchanged`}),t(`select`,{type:`geoSelect`,event:`geoselected`}),t(`unSelect`,{type:`geoUnSelect`,event:`geounselected`}),e.registerAction({type:`geoRoam`,event:`geoRoam`,update:`updateTransform`},function(e,t,n){var r=e.componentType;r||(e.geoId==null?e.seriesId!=null&&(r=`series`):r=`geo`),r||=`series`,t.eachComponent({mainType:r,query:e},function(t){var n=t.coordinateSystem;if(n.type===`geo`){var i=AQ(n,e,t.get(`scaleLimit`));t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom),r===`series`&&X(t.seriesGroup,function(e){e.setCenter(i.center),e.setZoom(i.zoom)})}})})}function Txe(e){qG(C$),e.registerChartView(hxe),e.registerSeriesModel(gxe),e.registerLayout(yxe),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,vxe),lU(`map`,e.registerAction)}function Exe(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[t],r,i;r=n.pop();)if(i=r.children,r.isExpand&&i.length)for(var a=i.length-1;a>=0;a--){var o=i[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(o)}}function Dxe(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){kxe(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=Axe(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function Oxe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function w$(e){return arguments.length?e:Nxe}function T$(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function kxe(e){for(var t=e.children,n=t.length,r=0,i=0;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function Axe(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,c=i.hierNode.modifier,l=a.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;s=E$(s),a=D$(a),s&&a;){i=E$(i),o=D$(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-a.hierNode.prelim-l+r(s,a);f>0&&(Mxe(jxe(s,e,n),e,f),l+=f,c+=f),d+=s.hierNode.modifier,l+=a.hierNode.modifier,c+=i.hierNode.modifier,u+=o.hierNode.modifier}s&&!E$(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-c),a&&!D$(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=l-u,n=e)}return n}function E$(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function D$(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function jxe(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function Mxe(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function Nxe(e,t){return e.parentNode===t.parentNode?1:2}var Pxe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Fxe=function(e){J(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Pxe},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,a=n[0],o=n[r-1];if(r===1){e.moveTo(i[0],i[1]),e.lineTo(a[0],a[1]);return}var s=t.orient,c=s===`TB`||s===`BT`?0:1,l=1-c,u=XM(t.forkPosition,1),d=[];d[c]=i[c],d[l]=i[l]+(o[l]-i[l])*u,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(a[0],a[1]),d[c]=a[c],e.lineTo(d[0],d[1]),d[c]=o[c],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var f=1;f<r-1;f++){var p=n[f];e.moveTo(p[0],p[1]),d[c]=p[c],e.lineTo(d[0],d[1])}},t}(SF),Ixe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new zM,n}return t.prototype.init=function(e,t){this._controller=new yQ(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,a=this._mainGroup;e.get(`layout`)===`radial`?(a.x=i.x+i.width/2,a.y=i.y+i.height/2):(a.x=i.x,a.y=i.y),this._updateViewCoordSys(e,n),this._updateController(e,null,t,n);var o=this._data;r.diff(o).add(function(t){O$(r,t)&&k$(r,t,null,a,e)}).update(function(t,n){var i=o.getItemGraphicEl(n);if(!O$(r,t)){i&&M$(o,n,i,a,e);return}k$(r,t,i,a,e)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&M$(o,t,n,a,e)}).execute(),this._nodeScaleRatio=e.get(`nodeScaleRatio`),this._updateNodeAndLinkScale(e),e.get(`expandAndCollapse`)===!0&&r.eachItemGraphicEl(function(t,r){t.off(`click`).on(`click`,function(){n.dispatchAction({type:`treeExpandAndCollapse`,seriesId:e.id,dataIndex:r})})}),this._data=r},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each(function(e){var t=n.getItemLayout(e);t&&!isNaN(t.x)&&!isNaN(t.y)&&r.push([+t.x,+t.y])});var i=[],a=[];EP(r,i,a);var o=this._min,s=this._max;a[0]-i[0]===0&&(i[0]=o?o[0]:i[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-i[1]===0&&(i[1]=o?o[1]:i[1]-1,a[1]=s?s[1]:a[1]+1);var c=e.coordinateSystem=new g$(null,{api:t,ecModel:e.ecModel});c.zoomLimit=e.get(`scaleLimit`),c.setBoundingRect(i[0],i[1],a[0]-i[0],a[1]-i[1]),c.setCenter(e.get(`center`)),c.setZoom(e.get(`zoom`)),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=i,this._max=a},t.prototype._updateController=function(e,t,n,r){var i=this;OQ(e,r,this.group,this._controller,this._controllerHost,t),this._controller.on(`zoom`,function(t){i._updateNodeAndLinkScale(e)})},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if(t.type!==`view`)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1;return((t.getZoom()-1)*n+1)/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type=`tree`,t}(NH);function O$(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function k$(e,t,n,r,i){var a=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),c=o.getVisual(`style`).fill,l=o.isExpand===!1&&o.children.length!==0?c:$.color.neutral00,u=e.tree.root,d=o.parentNode===u?o:o.parentNode||o,f=e.getItemGraphicEl(d.dataIndex),p=d.getLayout(),m=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,h=o.getLayout();a?(n=new $Y(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.x=m.x,n.y=m.y):n.updateData(e,t,null,{symbolInnerColor:l,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=h.rawX,n.__radialRawY=h.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,UL(n,{x:h.x,y:h.y},i);var g=n.getSymbolPath();if(i.get(`layout`)===`radial`){var _=u.children[0],v=_.getLayout(),y=_.children.length,b=void 0,x=void 0;if(h.x===v.x&&o.isExpand===!0&&_.children.length){var S={x:(_.children[0].getLayout().x+_.children[y-1].getLayout().x)/2,y:(_.children[0].getLayout().y+_.children[y-1].getLayout().y)/2};b=Math.atan2(S.y-v.y,S.x-v.x),b<0&&(b=Math.PI*2+b),x=S.x<v.x,x&&(b-=Math.PI)}else b=Math.atan2(h.y-v.y,h.x-v.x),b<0&&(b=Math.PI*2+b),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=h.x<v.x,x&&(b-=Math.PI)):(x=h.x>v.x,x||(b-=Math.PI));var C=x?`left`:`right`,w=s.getModel(`label`),T=w.get(`rotate`),E=Math.PI/180*T,D=g.getTextContent();D&&(g.setTextConfig({position:w.get(`position`)||C,rotation:T==null?-b:E,origin:`center`}),D.setStyle(`verticalAlign`,`middle`))}var O=s.get([`emphasis`,`focus`]),k=O===`relative`?MO(o.getAncestorsIndices(),o.getDescendantIndices()):O===`ancestor`?o.getAncestorsIndices():O===`descendant`?o.getDescendantIndices():null;k&&(YF(n).focus=k),Lxe(i,o,u,n,m,p,h,r),n.__edge&&(n.onHoverStateChange=function(t){if(t!==`blur`){var r=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===1||_I(n.__edge,t)}})}function Lxe(e,t,n,r,i,a,o,s){var c=t.getModel(),l=e.get(`edgeShape`),u=e.get(`layout`),d=e.getOrient(),f=e.get([`lineStyle`,`curveness`]),p=e.get(`edgeForkPosition`),m=c.getModel(`lineStyle`).getLineStyle(),h=r.__edge;if(l===`curve`)t.parentNode&&t.parentNode!==n&&(h||=r.__edge=new EL({shape:N$(u,d,f,i,i)}),UL(h,{shape:N$(u,d,f,a,o)},e));else if(l===`polyline`&&u===`orthogonal`&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,_=[],v=0;v<g.length;v++){var y=g[v].getLayout();_.push([y.x,y.y])}h||=r.__edge=new Fxe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:d,forkPosition:p}}),UL(h,{shape:{parentPoint:[o.x,o.y],childPoints:_}},e)}h&&!(l===`polyline`&&!t.isExpand)&&(h.useStyle(eO({strokeNoScale:!0,fill:null},m)),RI(h,c,`lineStyle`),yI(h),s.add(h))}function A$(e,t,n,r,i){var a=t.tree.root,o=j$(a,e),s=o.source,c=o.sourceLayout,l=t.getItemGraphicEl(e.dataIndex);if(l){var u=t.getItemGraphicEl(s.dataIndex).__edge,d=l.__edge||(s.isExpand===!1||s.children.length===1?u:void 0),f=r.get(`edgeShape`),p=r.get(`layout`),m=r.get(`orient`),h=r.get([`lineStyle`,`curveness`]);d&&(f===`curve`?KL(d,{shape:N$(p,m,h,c,c),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):f===`polyline`&&r.get(`layout`)===`orthogonal`&&KL(d,{shape:{parentPoint:[c.x,c.y],childPoints:[[c.x,c.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function j$(e,t){for(var n=t.parentNode===e?t:t.parentNode||t,r;r=n.getLayout(),r==null;)n=n.parentNode===e?n:n.parentNode||n;return{source:n,sourceLayout:r}}function M$(e,t,n,r,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=j$(o,a).sourceLayout,c={duration:i.get(`animationDurationUpdate`),easing:i.get(`animationEasingUpdate`)};KL(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:c}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:c}),a.children.forEach(function(t){A$(t,e,r,i,c)}),A$(a,e,r,i,c)}function N$(e,t,n,r,i){var a,o,s,c,l,u,d,f;if(e===`radial`){l=r.rawX,d=r.rawY,u=i.rawX,f=i.rawY;var p=T$(l,d),m=T$(l,d+(f-d)*n),h=T$(u,f+(d-f)*n),g=T$(u,f);return{x1:p.x||0,y1:p.y||0,x2:g.x||0,y2:g.y||0,cpx1:m.x||0,cpy1:m.y||0,cpx2:h.x||0,cpy2:h.y||0}}else l=r.x,d=r.y,u=i.x,f=i.y,(t===`LR`||t===`RL`)&&(a=l+(u-l)*n,o=d,s=u+(l-u)*n,c=f),(t===`TB`||t===`BT`)&&(a=l,o=d+(f-d)*n,s=u,c=f+(d-f)*n);return{x1:l,y1:d,x2:u,y2:f,cpx1:a,cpy1:o,cpx2:s,cpy2:c}}var P$=jN();function F$(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,I$(t,n,e),X(n,function(n){X(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,lO(Rxe,e))})}),t.wrapMethod(`cloneShallow`,lO(Bxe,e)),X(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,lO(zxe,e))}),TO(n[t.dataType]===t)}function Rxe(e,t){if(Uxe(this)){var n=Y({},P$(this).datas);n[this.dataType]=t,I$(t,n,e)}else L$(t,this.dataType,P$(this).mainData,e);return t}function zxe(e,t){return e.struct&&e.struct.update(),t}function Bxe(e,t){return X(P$(t).datas,function(n,r){n!==t&&L$(n.cloneShallow(),r,t,e)}),t}function Vxe(e){var t=P$(this).mainData;return e==null||t==null?t:P$(t).datas[e]}function Hxe(){var e=P$(this).mainData;return e==null?[{data:e}]:Z(sO(P$(e).datas),function(t){return{type:t,data:P$(e).datas[t]}})}function Uxe(e){return P$(e).mainData===e}function I$(e,t,n){P$(e).datas={},X(t,function(t,r){L$(t,r,e,n)})}function L$(e,t,n,r){P$(n).datas[t]=e,P$(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=Vxe,e.getLinkedDataAll=Hxe}var Wxe=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||``,this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){uO(e)&&(n=t,t=e,e=null),e||={},dO(e)&&(e={order:e});var r=e.order||`preorder`,i=this[e.attr||`children`],a;r===`preorder`&&(a=t.call(n,this));for(var o=0;!a&&o<i.length;o++)i[o].eachNode(e,t,n);r===`postorder`&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||`value`),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),R$=function(){function e(e){this.type=`tree`,this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(var n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),a=[],o=1;s(t);function s(e,t){var n=e.value;o=Math.max(o,Q(n)?n.length:1),a.push(e);var r=new Wxe(DN(e.name,``),i);t?Gxe(r,t):i.root=r,i._nodes.push(r);var c=e.children;if(c)for(var l=0;l<c.length;l++)s(c[l],r)}i.root.updateDepthAndHeight(0);var c=TK(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new wK(c,n);return l.initData(a),r&&r(l),F$({mainData:l,struct:i,structAttr:`tree`}),i.update(),i},e}();function Gxe(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}function z$(e,t,n){if(e&&tO(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(dO(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function B$(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function V$(e,t){return tO(B$(e),t)>=0}function H$(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var Kxe=function(e){J(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=new $R(e.leaves||{},this,this.ecModel),r=R$.createTree(t,this,i);function i(e){e.wrapMethod(`getItemModel`,function(e,t){var i=r.getNodeByDataIndex(t);return i&&i.children.length&&i.isExpand||(e.parentModel=n),e})}var a=0;r.eachNode(`preorder`,function(e){e.depth>a&&(a=e.depth)});var o=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode(`preorder`,function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&t.collapsed!=null?!t.collapsed:e.depth<=o}),r.data},t.prototype.getOrient=function(){var e=this.get(`orient`);return e===`horizontal`?e=`LR`:e===`vertical`&&(e=`TB`),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(e),o=a.getValue(),s=a.name;a&&a!==i;)s=a.parentNode.name+`.`+s,a=a.parentNode;return fH(`nameValue`,{name:s,value:o,noValue:isNaN(o)||o==null})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=H$(r,this),n.collapsed=!r.isExpand,n},t.type=`series.tree`,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`12%`,top:`12%`,right:`12%`,bottom:`12%`,layout:`orthogonal`,edgeShape:`curve`,edgeForkPosition:`50%`,roam:!1,roamTrigger:`global`,nodeScaleRatio:.4,center:null,zoom:1,orient:`LR`,symbol:`emptyCircle`,symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:$.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:`lightsteelblue`,borderWidth:1.5},label:{show:!0},animationEasing:`linear`,animationDuration:700,animationDurationUpdate:500},t}(EH);function qxe(e,t,n){for(var r=[e],i=[],a;a=r.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;a=i.pop();)t(a,n)}function U$(e,t){for(var n=[e],r;r=n.pop();)if(t(r),r.isExpand){var i=r.children;if(i.length)for(var a=i.length-1;a>=0;a--)n.push(i[a])}}function Jxe(e,t){e.eachSeriesByType(`tree`,function(e){Yxe(e,t)})}function Yxe(e,t){var n=pB(e,t).refContainer,r=uB(e.getBoxLayoutParams(),n);e.layoutInfo=r;var i=e.get(`layout`),a=0,o=0,s=null;i===`radial`?(a=2*Math.PI,o=Math.min(r.height,r.width)/2,s=w$(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(a=r.width,o=r.height,s=w$());var c=e.getData().tree.root,l=c.children[0];if(l){Exe(c),qxe(l,Dxe,s),c.hierNode.modifier=-l.hierNode.prelim,U$(l,Oxe);var u=l,d=l,f=l;U$(l,function(e){var t=e.getLayout().x;t<u.getLayout().x&&(u=e),t>d.getLayout().x&&(d=e),e.depth>f.depth&&(f=e)});var p=u===d?1:s(u,d)/2,m=p-u.getLayout().x,h=0,g=0,_=0,v=0;if(i===`radial`)h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),U$(l,function(e){_=(e.getLayout().x+m)*h,v=(e.depth-1)*g;var t=T$(_,v);e.setLayout({x:t.x,y:t.y,rawX:_,rawY:v},!0)});else{var y=e.getOrient();y===`RL`||y===`LR`?(g=o/(d.getLayout().x+p+m),h=a/(f.depth-1||1),U$(l,function(e){v=(e.getLayout().x+m)*g,_=y===`LR`?(e.depth-1)*h:a-(e.depth-1)*h,e.setLayout({x:_,y:v},!0)})):(y===`TB`||y===`BT`)&&(h=a/(d.getLayout().x+p+m),g=o/(f.depth-1||1),U$(l,function(e){_=(e.getLayout().x+m)*h,v=y===`TB`?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:_,y:v},!0)}))}}}function Xxe(e){e.eachSeriesByType(`tree`,function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel(`itemStyle`).getItemStyle();Y(t.ensureUniqueItemVisual(e.dataIndex,`style`),n)})})}function Zxe(e){e.registerAction({type:`treeExpandAndCollapse`,event:`treeExpandAndCollapse`,update:`update`},function(e,t){t.eachComponent({mainType:`series`,subType:`tree`,query:e},function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),e.registerAction({type:`treeRoam`,event:`treeRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,subType:`tree`,query:e},function(t){var n=t.coordinateSystem,r=AQ(n,e,t.get(`scaleLimit`));t.setCenter(r.center),t.setZoom(r.zoom)})})}function Qxe(e){e.registerChartView(Ixe),e.registerSeriesModel(Kxe),e.registerLayout(Jxe),e.registerVisual(Xxe),Zxe(e)}var W$=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function $xe(e){for(var t=0;t<W$.length;t++)e.registerAction({type:W$[t],update:`updateView`},IO);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=z$(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=V$(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}function G$(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=UB(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}var eSe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};K$(n);var r=e.levels||[],i=new $R({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=tSe(r,t);var a=Z(r||[],function(e){return new $R(e,i,t)},this),o=R$.createTree(n,this,s);function s(e){e.wrapMethod(`getItemModel`,function(e,t){var n=o.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||i,e})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return fH(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=H$(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=jO(),this._idIndexMapCount=0);var n=t.get(e);return n??t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){G$(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,coordinateSystemUsage:`box`,left:$.size.l,top:$.size.xxxl,right:$.size.l,bottom:$.size.xxxl,sort:!0,clipWindow:`origin`,squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:`▶`,zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:`global`,nodeClick:`zoomToNode`,animation:!0,animationDurationUpdate:900,animationEasing:`quinticInOut`,breadcrumb:{show:!0,height:22,left:`center`,bottom:$.size.m,emptyItemWidth:25,itemStyle:{color:$.color.backgroundShade,textStyle:{color:$.color.secondary}},emphasis:{itemStyle:{color:$.color.background}}},label:{show:!0,distance:0,padding:5,position:`inside`,color:$.color.neutral00,overflow:`truncate`},upperLabel:{show:!1,position:[0,`50%`],height:20,overflow:`truncate`,verticalAlign:`middle`},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:$.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,`50%`],overflow:`truncate`,verticalAlign:`middle`}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:`index`,visibleMin:10,childrenVisibleMin:null,levels:[]},t}(EH);function K$(e){var t=0;X(e.children,function(e){K$(e);var n=e.value;Q(n)&&(n=n[0]),t+=n});var n=e.value;Q(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Q(e.value)?e.value[0]=n:e.value=n}function tSe(e,t){var n=bN(t.get(`color`)),r=bN(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;X(e,function(e){var t=new $R(e),n=t.get(`color`),r=t.get(`decal`);(t.get([`itemStyle`,`color`])||n&&n!==`none`)&&(i=!0),(t.get([`itemStyle`,`decal`])||r&&r!==`none`)&&(a=!0)});var o=e[0]||={};return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}var nSe=8,q$=8,J$=5,rSe=function(){function e(e){this.group=new zM,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel(`breadcrumb`),a=this.group;if(a.removeAll(),!(!i.get(`show`)||!n)){var o=i.getModel(`itemStyle`),s=i.getModel(`emphasis`),c=o.getModel(`textStyle`),l=s.getModel([`itemStyle`,`textStyle`]),u=pB(e,t).refContainer,d={left:i.get(`left`),right:i.get(`right`),top:i.get(`top`),bottom:i.get(`bottom`)},f={emptyItemWidth:i.get(`emptyItemWidth`),totalWidth:0,renderList:[]},p=uB(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),mB(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=DN(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+nSe*2,t.emptyItemWidth);t.totalWidth+=o+q$,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o,s){for(var c=0,l=t.emptyItemWidth,u=e.get([`breadcrumb`,`height`]),d=t.totalWidth,f=t.renderList,p=i.getModel(`itemStyle`).getItemStyle(),m=f.length-1;m>=0;m--){var h=f[m],g=h.node,_=h.width,v=h.text;d>n.width&&(d-=_-l,_=l,v=null);var y=new xL({shape:{points:iSe(c,0,_,u,m===f.length-1,m===0)},style:eO(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new RF({style:RR(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:lO(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=RR(o,{text:v}),y.ensureState(`emphasis`).style=p,FI(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),aSe(y,e,g),c+=_+q$}},e.prototype.remove=function(){this.group.removeAll()},e}();function iSe(e,t,n,r,i,a){var o=[[i?e:e-J$,t],[e+n,t],[e+n,t+r],[i?e:e-J$,t+r]];return!a&&o.splice(2,0,[e+n+J$,t+r/2]),!i&&o.push([e,t+r/2]),o}function aSe(e,t,n){YF(e).eventData={componentType:`series`,componentSubType:`treemap`,componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:`treemap`,selfType:`breadcrumb`,nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&H$(n,t)}}var oSe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function sSe(){return new oSe}var Y$=zM,X$=PF,Z$=3,Q$=`label`,$$=`upperLabel`,cSe=100,lSe=20,uSe=30,e1=qN([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),t1=function(e){var t=e1(e);return t.stroke=t.fill=t.lineWidth=null,t},n1=jN(),dSe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state=`ready`,n._storage=r1(),n}return t.prototype.render=function(e,t,n,r){if(!(tO(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=z$(r,[`treemapZoomToNode`,`treemapRootToNode`],e),a=r&&r.type,o=e.layoutInfo,s=!this._oldTree,c=this._storage,l=a===`treemapRootToNode`&&i&&c?{rootNodeGroup:c.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,u=this._giveContainerGroup(o),d=e.get(`animation`),f=this._doRender(u,e,l);d&&!s&&(!a||a===`treemapZoomToNode`||a===`treemapRootToNode`)?this._doAnimation(u,f,e,l):f.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,i)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new Y$,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,a=r1(),o=r1(),s=this._storage,c=[];function l(e,r,i,l){return fSe(t,o,s,n,a,c,e,r,i,l)}p(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var u=m(s);if(this._oldTree=r,this._storage=o,this._controllerHost){var d=this.seriesModel.layoutInfo,f=r.root.getLayout();f.width===d.width&&f.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:a,willDeleteEls:u,renderFinally:h};function p(e,t,n,r,i){r?(t=e,X(e,function(e,t){!e.isRemoved()&&o(t,t)})):new XG(t,e,a,a).add(o).update(o).remove(lO(o,null)).execute();function a(e){return e.getId()}function o(a,o){var s=a==null?null:e[a],c=o==null?null:t[o],u=l(s,c,n,i);u&&p(s&&s.viewChildren||[],c&&c.viewChildren||[],u,r,i+1)}}function m(e){var t=r1();return e&&X(e,function(e,n){var r=t[n];X(e,function(e){e&&(r.push(e),n1(e).willDelete=!0)})}),t}function h(){X(u,function(e){X(e,function(e){e.parent&&e.parent.remove(e)})}),X(c,function(e){e.invisible=!0,e.dirty()})}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get(`animationDurationUpdate`),a=n.get(`animationEasing`),o=(uO(i)?0:i)||0,s=(uO(a)?null:a)||`cubicOut`,c=sSe();X(t.willDeleteEls,function(e,t){X(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=n1(i);if(r&&r.direction===`drillDown`)a=i===r.rootNodeGroup?{shape:{x:0,y:0,width:l.nodeWidth,height:l.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;l.willDelete||(u=l.nodeWidth/2,d=l.nodeHeight/2),a=t===`nodeGroup`?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}a&&c.add(e,a,o,0,s)}})}),X(this._storage,function(e,n){X(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof zM?i.oldX!=null&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=Y({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle(`opacity`,0),a.style={opacity:1}):e.style.opacity!==1&&(a.style={opacity:1})),c.add(e,a,o,0,s))})},this),this._state=`animating`,c.finished(cO(function(){this._state=`ready`,t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this,n=this._controller,r=this._controllerHost;r||=(this._controllerHost={target:this.group},this._controllerHost);var i=this.seriesModel;n||(n=this._controller=new yQ(e.getZr()),n.on(`pan`,cO(this._onPan,this)),n.on(`zoom`,cO(this._onZoom,this))),n.enable(i.get(`roam`),{api:e,zInfo:{component:i},triggerInfo:{roamTrigger:i.get(`roamTrigger`),isInSelf:function(e,n,r){var i=t._containerGroup;return i?i.getBoundingRect().contain(n-i.x,r-i.y):!1}}}),r.zoomLimit=i.get(`scaleLimit`),r.zoom=i.get(`zoom`)},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&=(e.dispose(),null)},t.prototype._onPan=function(e){if(this._state!==`animating`&&(Math.abs(e.dx)>Z$||Math.abs(e.dy)>Z$)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:`treemapMove`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale;if(this._state!==`animating`){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var o=new Jk(a.x,a.y,a.width,a.height),s=null,c=this._controllerHost;s=c.zoomLimit;var l=c.zoom=c.zoom||1;if(l*=r,s){var u=s.min||0,d=s.max||1/0;l=Math.max(Math.min(d,l),u)}var f=l/c.zoom;c.zoom=l;var p=this.seriesModel.layoutInfo;t-=p.x,n-=p.y;var m=Dk();jk(m,m,[-t,-n]),Nk(m,m,[f,f]),jk(m,m,[t,n]),o.applyTransform(m),this.api.dispatchAction({type:`treemapRender`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on(`click`,function(e){if(t._state===`ready`){var n=t.seriesModel.get(`nodeClick`,!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if(n===`zoomToNode`)t._zoomToNode(r);else if(n===`link`){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get(`link`,!0),s=a.get(`target`,!0)||`blank`;o&&qz(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=e.get(`leafDepth`,!0)==null?this.findTarget(t.getWidth()/2,t.getHeight()/2):{node:e.getViewRoot()},n||={node:e.getData().tree.root}),(this._breadcrumb||=new rSe(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(V$(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=r1(),this._state=`ready`,this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:`treemapZoomToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:`treemapRootToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:`viewChildren`,order:`preorder`},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height)n={node:r,offsetX:a[0],offsetY:a[1]};else return!1}},this),n},t.type=`treemap`,t}(NH);function r1(){return{nodeGroup:[],background:[],content:[]}}function fSe(e,t,n,r,i,a,o,s,c,l){if(!o)return;var u=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var p=u.width,m=u.height,h=u.borderWidth,g=u.invisible,_=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,b=u.upperHeight,x=y&&y.length,S=f.getModel(`itemStyle`),C=f.getModel([`emphasis`,`itemStyle`]),w=f.getModel([`blur`,`itemStyle`]),T=f.getModel([`select`,`itemStyle`]),E=S.get(`borderRadius`)||0,D=V(`nodeGroup`,Y$);if(!D)return;if(c.add(D),D.x=u.x||0,D.y=u.y||0,D.markRedraw(),n1(D).nodeWidth=p,n1(D).nodeHeight=m,u.isAboveViewRoot)return D;var O=V(`background`,X$,l,lSe);O&&I(D,O,x&&u.upperLabelHeight);var k=f.getModel(`emphasis`),A=k.get(`focus`),j=k.get(`blurScope`),M=k.get(`disabled`),N=A===`ancestor`?o.getAncestorsIndices():A===`descendant`?o.getDescendantIndices():A;if(x)BI(D)&&zI(D,!1),O&&(zI(O,!M),d.setItemGraphicEl(o.dataIndex,O),II(O,N,j));else{var P=V(`content`,X$,l,uSe);P&&L(D,P),O.disableMorphing=!0,O&&BI(O)&&zI(O,!1),zI(D,!M),d.setItemGraphicEl(o.dataIndex,D);var F=f.getShallow(`cursor`);F&&P.attr(`cursor`,F),II(D,N,j)}return D;function I(t,n,r){var i=YF(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:E}),g)R(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=t1(S);c.fill=s;var l=e1(C);l.fill=C.get(`borderColor`);var u=e1(w);u.fill=w.get(`borderColor`);var d=e1(T);if(d.fill=T.get(`borderColor`),r){var f=p-2*h;z(n,s,a.opacity,{x:h,y:0,width:f,height:b})}else n.removeTextContent();n.setStyle(c),n.ensureState(`emphasis`).style=l,n.ensureState(`blur`).style=u,n.ensureState(`select`).style=d,yI(n)}t.add(n)}function L(t,n){var r=YF(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*h,0),a=Math.max(m-2*h,0);if(n.culling=!0,n.setShape({x:h,y:h,width:i,height:a,r:E}),g)R(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=t1(S);l.fill=c,l.decal=s.decal;var u=e1(C),d=e1(w),f=e1(T);z(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,yI(n)}t.add(n)}function R(e){!e.invisible&&a.push(e)}function z(t,n,r,i){var a=f.getModel(i?$$:Q$),s=DN(f.get(`name`),null),c=a.getShallow(`show`);IR(t,LR(f,i?$$:Q$),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=wO(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);(d.width!==e||d.height!==n)&&l.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow=`truncate`,B(d,i,u);var m=l.getState(`emphasis`);B(m?m.style:null,i,u)}}function B(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&i!=null){var a=e.get(`drillDownIcon`,!0);t.text=a?a+` `+i:i}}function V(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,H(c,s)):g||(s=new r,s instanceof mP&&(s.z2=pSe(a,o)),U(c,s)),t[e][_]=s}function H(e,t){var n=e[_]={};t instanceof Y$?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Y({},t.shape)}function U(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof zM;if(a&&(!r||r.direction===`drillDown`)){var c=0,l=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(c=u.oldShape.width,l=u.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:c,y:l,width:0,height:0}}n.fadein=!s}}function pSe(e,t){return e*cSe+t}var i1=X,mSe=mO,a1=-1,o1=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=ZD(t);this.type=r,this.mappingMethod=n,this._normalizeData=_Se[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(s1(i),hSe(i)):n===`category`?i.categories?gSe(i):s1(i,!0):(TO(n!==`linear`||i.dataExtent),s1(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return cO(this._normalizeData,this)},e.listVisualTypes=function(){return sO(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){mO(e)?X(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=Q(t)?[]:mO(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&i1(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(Q(e))e=e.slice();else if(mSe(e)){var t=[];i1(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(s!=null){if(s===e||dO(s)&&s===e+``)return a;n&&d(s,a)}}for(var a=0,o=t.length;a<o;a++){var c=t[a],l=c.interval,u=c.close;if(l){if(l[0]===-1/0){if(g1(u[1],e,l[1]))return a}else if(l[1]===1/0){if(g1(u[0],l[0],e))return a}else if(g1(u[0],l[0],e)&&g1(u[1],e,l[1]))return a;n&&d(l[0],a),n&&d(l[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:u1(`color`),getColorMapper:function(){var e=this.option;return cO(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),d1.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=aj(t,e.parsedVisual,r),i?r:cj(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return cj(aj(e,this.option.parsedVisual),`rgba`)},category:d1,piecewise:function(e,t){var n=m1.call(this,t);return n??=cj(aj(e,this.option.parsedVisual),`rgba`),n},fixed:f1}},colorHue:c1(function(e,t){return oj(e,t)}),colorSaturation:c1(function(e,t){return oj(e,null,t)}),colorLightness:c1(function(e,t){return oj(e,null,null,t)}),colorAlpha:c1(function(e,t){return sj(e,t)}),decal:{applyVisual:u1(`decal`),_normalizedToVisual:{linear:null,category:d1,piecewise:null,fixed:null}},opacity:{applyVisual:u1(`opacity`),_normalizedToVisual:p1([0,1])},liftZ:{applyVisual:u1(`liftZ`),_normalizedToVisual:{linear:f1,category:f1,piecewise:f1,fixed:f1}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:l1,category:d1,piecewise:function(e,t){var n=m1.call(this,t);return n??=l1.call(this,e),n},fixed:f1}},symbolSize:{applyVisual:u1(`symbolSize`),_normalizedToVisual:p1([0,1])}},e}();function hSe(e){var t=e.pieceList;e.hasSpecialVisual=!1,X(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function gSe(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(i1(t,function(e,t){n[e]=t}),!Q(r)){var i=[];mO(r)?i1(r,function(e,t){var r=n[t];i[r??a1]=e}):i[a1]=r,r=h1(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function s1(e,t){var n=e.visual,r=[];mO(n)?i1(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),h1(e,r)}function c1(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:p1([0,1])}}function l1(e){var t=this.option.visual;return t[Math.round(YM(e,[0,1],[0,t.length-1],!0))]||{}}function u1(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function d1(e){var t=this.option.visual;return t[this.option.loop&&e!==a1?e%t.length:e]}function f1(){return this.option.visual[0]}function p1(e){return{linear:function(t){return YM(t,e,this.option.visual,!0)},category:d1,piecewise:function(t,n){var r=m1.call(this,n);return r??=YM(t,e,this.option.visual,!0),r},fixed:f1}}function m1(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[o1.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function h1(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=Z(t,function(e){return nj(e)||[0,0,0,1]})),t}var _Se={linear:function(e){return YM(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=o1.findPieceIndex(e,t,!0);if(n!=null)return YM(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??a1},fixed:IO};function g1(e,t,n){return e?t<=n:t<n}var vSe=`itemStyle`,_1=jN(),ySe={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||v1(t,{},e.getViewRoot().getAncestors(),e)}};function v1(e,t,n,r){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(vSe),c=bSe(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=y1(c),u=xSe(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=y1(c),l.fill=f;else{var m=SSe(e,i,a,s,c,p);X(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&v1(e,CSe(i,c,e,t,m,r),n,r)})}}}function bSe(e,t,n){var r=Y({},t),i=n.designatedVisualItemStyle;return X([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function y1(e){var t=b1(e,`color`);if(t){var n=b1(e,`colorAlpha`),r=b1(e,`colorSaturation`);return r&&(t=oj(t,null,null,r)),n&&(t=sj(t,n)),t}}function xSe(e,t){return t==null?null:oj(t,null,null,e)}function b1(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function SSe(e,t,n,r,i,a){if(!(!a||!a.length)){var o=x1(t,`color`)||i.color!=null&&i.color!==`none`&&(x1(t,`colorAlpha`)||x1(t,`colorSaturation`));if(o){var s=t.get(`visualMin`),c=t.get(`visualMax`),l=n.dataExtent.slice();s!=null&&s<l[0]&&(l[0]=s),c!=null&&c>l[1]&&(l[1]=c);var u=t.get(`colorMappingBy`),d={type:o.name,dataExtent:l,visual:o.range};d.type===`color`&&(u===`index`||u===`id`)?(d.mappingMethod=`category`,d.loop=!0):d.mappingMethod=`linear`;var f=new o1(d);return _1(f).drColorMappingBy=u,f}}}function x1(e,t){var n=e.get(t);return Q(n)&&n.length?{name:t,range:n}:null}function CSe(e,t,n,r,i,a){var o=Y({},t);if(i){var s=i.type,c=s===`color`&&_1(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}var S1=Math.max,C1=Math.min,w1=bO,T1=X,E1=[`itemStyle`,`borderWidth`],wSe=[`itemStyle`,`gapWidth`],TSe=[`upperLabel`,`show`],ESe=[`upperLabel`,`height`],DSe={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=pB(e,n).refContainer,o=uB(e.getBoxLayoutParams(),a),s=i.size||[],c=XM(w1(o.width,s[0]),a.width),l=XM(w1(o.height,s[1]),a.height),u=r&&r.type,d=z$(r,[`treemapZoomToNode`,`treemapRootToNode`],e),f=u===`treemapRender`||u===`treemapMove`?r.rootRect:null,p=e.getViewRoot(),m=B$(p);if(u!==`treemapMove`){var h=u===`treemapZoomToNode`?NSe(e,d,p,c,l):f?[f.width,f.height]:[c,l],g=i.sort;g&&g!==`asc`&&g!==`desc`&&(g=`desc`);var _={squareRatio:i.squareRatio,sort:g,leafDepth:i.leafDepth};p.hostTree.clearLayouts();var v={x:0,y:0,width:h[0],height:h[1],area:h[0]*h[1]};p.setLayout(v),D1(p,_,!1,0),v=p.getLayout(),T1(m,function(e,t){var n=(m[t+1]||p).getValue();e.setLayout(Y({dataExtent:[n,n],borderWidth:0,upperHeight:0},v))})}var y=e.getData().tree.root;y.setLayout(PSe(o,f,d),!0),e.setLayoutInfo(o),k1(y,new Jk(-o.x,-o.y,n.getWidth(),n.getHeight()),m,p,0)}};function D1(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),c=s.get(E1),l=s.get(wSe)/2,u=A1(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=S1(i-2*f,0),a=S1(a-f-p,0);var m=i*a,h=OSe(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=C1(i,a),v=1/0,y=[];y.area=0;for(var b=0,x=h.length;b<x;){var S=h[b];y.push(S),y.area+=S.getLayout().area;var C=MSe(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,O1(y,_,g,l,!1),_=C1(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&O1(y,_,g,l,!0),!n){var w=s.get(`childrenVisibleMin`);w!=null&&m<w&&(n=!0)}for(var b=0,x=h.length;b<x;b++)D1(h[b],t,n,r+1)}}}function OSe(e,t,n,r,i,a){var o=e.children||[],s=r.sort;s!==`asc`&&s!==`desc`&&(s=null);var c=r.leafDepth!=null&&r.leafDepth<=a;if(i&&!c)return e.viewChildren=[];o=aO(o,function(e){return!e.isRemoved()}),ASe(o,s);var l=jSe(t,o,s);if(l.sum===0||(l.sum=kSe(t,n,l.sum,s,o),l.sum===0))return e.viewChildren=[];for(var u=0,d=o.length;u<d;u++){var f=o[u].getValue()/l.sum*n;o[u].setLayout({area:f})}return c&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:l.dataExtent},!0),o}function kSe(e,t,n,r,i){if(!r)return n;for(var a=e.get(`visibleMin`),o=i.length,s=o,c=o-1;c>=0;c--){var l=i[r===`asc`?o-c-1:c].getValue();l/n*t<a&&(s=c,n-=l)}return r===`asc`?i.splice(0,o-s):i.splice(s,o-s),n}function ASe(e,t){return t&&e.sort(function(e,n){var r=t===`asc`?e.getValue()-n.getValue():n.getValue()-e.getValue();return r===0?t===`asc`?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r}),e}function jSe(e,t,n){for(var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();var o=e.get(`visualDimension`),s;return!t||!t.length?s=[NaN,NaN]:o===`value`&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],n===`asc`&&s.reverse()):(s=[1/0,-1/0],T1(t,function(e){var t=e.getValue(o);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)})),{sum:r,dataExtent:s}}function MSe(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var c=e.area*e.area,l=t*t*n;return c?S1(l*r/c,c/(l*i)):1/0}function O1(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=[`x`,`y`],c=[`width`,`height`],l=n[s[a]],u=t?e.area/t:0;(i||u>n[c[o]])&&(u=n[c[o]]);for(var d=0,f=e.length;d<f;d++){var p=e[d],m={},h=u?p.getLayout().area/u:0,g=m[c[o]]=S1(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=S1(v-2*r,0);m[s[o]]=n[s[o]]+C1(r,g/2),m[s[a]]=l+C1(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function NSe(e,t,n,r,i){var a=(t||{}).node,o=[r,i];if(!a||a===n)return o;for(var s,c=r*i,l=c*e.option.zoomToNodeRatio;s=a.parentNode;){for(var u=0,d=s.children,f=0,p=d.length;f<p;f++)u+=d[f].getValue();var m=a.getValue();if(m===0)return o;l*=u/m;var h=s.getModel(),g=h.get(E1),_=Math.max(g,A1(h));l+=4*g*g+(3*g+_)*l**.5,l>9007199254740991&&(l=9007199254740991),a=s}l<c&&(l=c);var v=(l/c)**.5;return[r*v,i*v]}function PSe(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;for(var o=[a.width/2,a.height/2],s=i;s;){var c=s.getLayout();o[0]+=c.x,o[1]+=c.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function k1(e,t,n,r,i){var a=e.getLayout(),o=n[i],s=o&&o===e;if(!(o&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var c=new Jk(t.x-a.x,t.y-a.y,t.width,t.height);T1(e.viewChildren||[],function(e){k1(e,c,n,r,i+1)})}}function A1(e){return e.get(TSe)?e.get(ESe):0}function FSe(e){e.registerSeriesModel(eSe),e.registerChartView(dSe),e.registerVisual(ySe),e.registerLayout(DSe),$xe(e)}function ISe(e){var t=e.findComponents({mainType:`legend`});!t||!t.length||e.eachSeriesByType(`graph`,function(e){var n=e.getCategoriesData(),r=e.getGraph().data,i=n.mapArray(n.getName);r.filterSelf(function(e){var n=r.getItemModel(e).getShallow(`category`);if(n!=null){pO(n)&&(n=i[n]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(n))return!1}return!0})})}function LSe(e){var t={};e.eachSeriesByType(`graph`,function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each(function(r){var a=n.getName(r);i[`ec-`+a]=r;var o=n.getItemModel(r),s=o.getModel(`itemStyle`).getItemStyle();s.fill||=e.getColorFromPalette(a,t),n.setItemVisual(r,`style`,s);for(var c=[`symbol`,`symbolSize`,`symbolKeepAspect`],l=0;l<c.length;l++){var u=o.getShallow(c[l],!0);u!=null&&n.setItemVisual(r,c[l],u)}}),n.count()&&r.each(function(e){var t=r.getItemModel(e).getShallow(`category`);if(t!=null){dO(t)&&(t=i[`ec-`+t]);var a=n.getItemVisual(t,`style`);Y(r.ensureUniqueItemVisual(e,`style`),a);for(var o=[`symbol`,`symbolSize`,`symbolKeepAspect`],s=0;s<o.length;s++)r.setItemVisual(e,o[s],n.getItemVisual(t,o[s]))}})})}function j1(e){return e instanceof Array||(e=[e,e]),e}function RSe(e){e.eachSeriesByType(`graph`,function(e){var t=e.getGraph(),n=e.getEdgeData(),r=j1(e.get(`edgeSymbol`)),i=j1(e.get(`edgeSymbolSize`));n.setVisual(`fromSymbol`,r&&r[0]),n.setVisual(`toSymbol`,r&&r[1]),n.setVisual(`fromSymbolSize`,i&&i[0]),n.setVisual(`toSymbolSize`,i&&i[1]),n.setVisual(`style`,e.getModel(`lineStyle`).getLineStyle()),n.each(function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=j1(r.getShallow(`symbol`,!0)),o=j1(r.getShallow(`symbolSize`,!0)),s=r.getModel(`lineStyle`).getLineStyle(),c=n.ensureUniqueItemVisual(e,`style`);switch(Y(c,s),c.stroke){case`source`:var l=i.node1.getVisual(`style`);c.stroke=l&&l.fill;break;case`target`:var l=i.node2.getVisual(`style`);c.stroke=l&&l.fill;break}a[0]&&i.setVisual(`fromSymbol`,a[0]),a[1]&&i.setVisual(`toSymbol`,a[1]),o[0]&&i.setVisual(`fromSymbolSize`,o[0]),o[1]&&i.setVisual(`toSymbolSize`,o[1])})})}var M1=`-->`,N1=function(e){return e.get(`autoCurveness`)||null},P1=function(e,t){var n=N1(e),r=20,i=[];if(pO(n))r=n;else if(Q(n)){e.__curvenessList=n;return}t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},F1=function(e,t,n){var r=[e.id,e.dataIndex].join(`.`),i=[t.id,t.dataIndex].join(`.`);return[n.uid,r,i].join(M1)},I1=function(e){var t=e.split(M1);return[t[0],t[2],t[1]].join(M1)},zSe=function(e,t){var n=F1(e.node1,e.node2,t);return t.__edgeMap[n]},BSe=function(e,t){return L1(F1(e.node1,e.node2,t),t)+L1(F1(e.node2,e.node1,t),t)},L1=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function VSe(e){N1(e)&&(e.__curvenessList=[],e.__edgeMap={},P1(e))}function HSe(e,t,n,r){if(N1(n)){var i=F1(e,t,n),a=n.__edgeMap,o=a[I1(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}function R1(e,t,n,r){var i=N1(t),a=Q(i);if(!i)return null;var o=zSe(e,t);if(!o)return null;for(var s=-1,c=0;c<o.length;c++)if(o[c]===n){s=c;break}var l=BSe(e,t);P1(t,l),e.lineStyle=e.lineStyle||{};var u=F1(e.node1,e.node2,t),d=t.__curvenessList,f=a||l%2?0:1;if(o.isForward)return d[f+s];var p=L1(I1(u),t),m=d[s+p+f];return r?a?i&&i[0]===0?(p+f)%2?m:-m:((p%2?0:1)+f)%2?m:-m:(p+f)%2?m:-m:d[s+p+f]}function z1(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`)){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get(`x`),+t.get(`y`)])}),B1(n,e)}}function B1(e,t){e.eachEdge(function(e,n){var r=SO(e.getModel().get([`lineStyle`,`curveness`]),-R1(e,t,n,!0),0),i=HO(e.node1.getLayout()),a=HO(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)})}function USe(e,t){e.eachSeriesByType(`graph`,function(e){var t=e.get(`layout`),n=e.coordinateSystem;if(n&&n.type!==`view`){var r=e.getData(),i=[];X(n.dimensions,function(e){i=i.concat(r.mapDimensionsAll(e))});for(var a=0;a<r.count();a++){for(var o=[],s=!1,c=0;c<i.length;c++){var l=r.get(i[c],a);isNaN(l)||(s=!0),o.push(l)}s?r.setItemLayout(a,n.dataToPoint(o)):r.setItemLayout(a,[NaN,NaN])}B1(r.graph,e)}else (!t||t===`none`)&&z1(e)})}function V1(e){var t=e.coordinateSystem;if(t.type!==`view`)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX;return((t.getZoom()-1)*n+1)/r}function H1(e){var t=e.getVisual(`symbolSize`);return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var U1=Math.PI,W1=[];function G1(e,t,n,r){var i=e.coordinateSystem;if(!(i&&i.type!==`view`)){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,c=a.width/2+a.x,l=a.height/2+a.y,u=Math.min(a.width,a.height)/2,d=o.count();if(o.setLayout({cx:c,cy:l}),d){if(n){var f=i.pointToData(r),p=f[0],m=f[1],h=[p-c,m-l];YO(h,h),JO(h,h,u),n.setLayout([c+h[0],l+h[1]],!0),K1(n,e.get([`circular`,`rotateLabel`]),c,l)}WSe[t](e,s,o,u,c,l,d),s.eachEdge(function(t,n){var r=SO(t.getModel().get([`lineStyle`,`curveness`]),R1(t,e,n),0),i=HO(t.node1.getLayout()),a=HO(t.node2.getLayout()),o,s=(i[0]+a[0])/2,u=(i[1]+a[1])/2;+r&&(r*=3,o=[c*r+s*(1-r),l*r+u*(1-r)]),t.setLayout([i,a,o])})}}}var WSe={value:function(e,t,n,r,i,a,o){var s=0,c=n.getSum(`value`),l=Math.PI*2/(c||o);t.eachNode(function(e){var t=e.getValue(`value`),n=l*(c?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+a]),s+=n})},symbolSize:function(e,t,n,r,i,a,o){var s=0;W1.length=o;var c=V1(e);t.eachNode(function(e){var t=H1(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=c;var n=Math.asin(t/2/r);isNaN(n)&&(n=U1/2),W1[e.dataIndex]=n,s+=n*2});var l=(2*U1-s)/o/2,u=0;t.eachNode(function(e){var t=l+W1[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(u)+i,r*Math.sin(u)+a]),u+=t})}};function K1(e,t,n,r){var i=e.getGraphicEl();if(i){var a=e.getModel().get([`label`,`rotate`])||0,o=i.getSymbolPath();if(t){var s=e.getLayout(),c=Math.atan2(s[1]-r,s[0]-n);c<0&&(c=Math.PI*2+c);var l=s[0]<n;l&&(c-=Math.PI);var u=l?`left`:`right`;o.setTextConfig({rotation:-c,position:u,origin:`center`});var d=o.ensureState(`emphasis`);Y(d.textConfig||={},{position:u})}else o.setTextConfig({rotation:a*=Math.PI/180})}}function GSe(e){e.eachSeriesByType(`graph`,function(e){e.get(`layout`)===`circular`&&G1(e,`symbolSize`)})}var q1=GO;function KSe(e,t,n){for(var r=e,i=t,a=n.rect,o=a.width,s=a.height,c=[a.x+o/2,a.y+s/2],l=n.gravity==null?.1:n.gravity,u=0;u<r.length;u++){var d=r[u];d.p||=BO(o*(Math.random()-.5)+c[0],s*(Math.random()-.5)+c[1]),d.pp=HO(d.p),d.edges=null}var f=n.friction==null?.6:n.friction,p=f,m,h;return{warmUp:function(){p=f*.8},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){m=e},afterStep:function(e){h=e},step:function(e){m&&m(r,i);for(var t=[],n=r.length,a=0;a<i.length;a++){var o=i[a];if(!o.ignoreForceLayout){var s=o.n1,u=o.n2;KO(t,u.p,s.p);var d=qO(t)-o.d,f=u.w/(s.w+u.w);isNaN(f)&&(f=0),YO(t,t),!s.fixed&&q1(s.p,s.p,t,f*d*p),!u.fixed&&q1(u.p,u.p,t,-(1-f)*d*p)}}for(var a=0;a<n;a++){var g=r[a];g.fixed||(KO(t,c,g.p),q1(g.p,g.p,t,l*p))}for(var a=0;a<n;a++)for(var s=r[a],_=a+1;_<n;_++){var u=r[_];KO(t,u.p,s.p);var d=qO(t);d===0&&(UO(t,Math.random()-.5,Math.random()-.5),d=1);var v=(s.rep+u.rep)/d/d;!s.fixed&&q1(s.pp,s.pp,t,v),!u.fixed&&q1(u.pp,u.pp,t,-v)}for(var y=[],a=0;a<n;a++){var g=r[a];g.fixed||(KO(y,g.p,g.pp),q1(g.p,g.p,y,p),VO(g.pp,g.p))}p*=.992;var b=p<.01;h&&h(r,i,b),e&&e(b)}}}function qSe(e){e.eachSeriesByType(`graph`,function(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`))if(e.get(`layout`)===`force`){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,a=r.edgeData,o=e.getModel(`force`),s=o.get(`initLayout`);e.preservedPoints?i.each(function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])}):!s||s===`none`?z1(e):s===`circular`&&G1(e,`value`);var c=i.getDataExtent(`value`),l=a.getDataExtent(`value`),u=o.get(`repulsion`),d=o.get(`edgeLength`),f=Q(u)?u:[u,u],p=Q(d)?d:[d,d];p=[p[1],p[0]];var m=i.mapArray(`value`,function(e,t){var n=i.getItemLayout(t),r=YM(e,c,f);return isNaN(r)&&(r=(f[0]+f[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get(`fixed`),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),h=KSe(m,a.mapArray(`value`,function(t,n){var i=r.getEdgeByIndex(n),a=YM(t,l,p);isNaN(a)&&(a=(p[0]+p[1])/2);var o=i.getModel(),s=SO(i.getModel().get([`lineStyle`,`curveness`]),-R1(i,e,n,!0),0);return{n1:m[i.node1.dataIndex],n2:m[i.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get(`ignoreForceLayout`)}}),{rect:t.getBoundingRect(),gravity:o.get(`gravity`),friction:o.get(`friction`)});h.beforeStep(function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&VO(e[n].p,r.getNodeByIndex(n).getLayout())}),h.afterStep(function(e,t,a){for(var o=0,s=e.length;o<s;o++)e[o].fixed||r.getNodeByIndex(o).setLayout(e[o].p),n[i.getId(o)]=e[o].p;for(var o=0,s=t.length;o<s;o++){var c=t[o],l=r.getEdgeByIndex(o),u=c.n1.p,d=c.n2.p,f=l.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],VO(f[0],u),VO(f[1],d),+c.curveness&&(f[2]=[(u[0]+d[0])/2-(u[1]-d[1])*c.curveness,(u[1]+d[1])/2-(d[0]-u[0])*c.curveness]),l.setLayout(f)}}),e.forceLayout=h,e.preservedPoints=n,h.step()}else e.forceLayout=null})}function JSe(e,t,n){var r=pB(e,t);return dB(e,uB(Y(e.getBoxLayoutParams(),{aspect:n}),r.refContainer),n)}function YSe(e,t){var n=[];return e.eachSeriesByType(`graph`,function(r){tB({targetModel:r,coordSysType:`view`,coordSysProvider:i,isDefaultDataCoordSys:!0});function i(){var i=r.getData(),a=i.mapArray(function(e){var t=i.getItemModel(e);return[+t.get(`x`),+t.get(`y`)]}),o=[],s=[];EP(a,o,s),s[0]-o[0]===0&&(s[0]+=1,--o[0]),s[1]-o[1]===0&&(s[1]+=1,--o[1]);var c=(s[0]-o[0])/(s[1]-o[1]),l=JSe(r,t,c);isNaN(c)&&(o=[l.x,l.y],s=[l.x+l.width,l.y+l.height]);var u=s[0]-o[0],d=s[1]-o[1],f=new g$(null,{api:t,ecModel:e});return f.zoomLimit=r.get(`scaleLimit`),f.setBoundingRect(o[0],o[1],u,d),f.setViewRect(l.x,l.y,l.width,l.height),f.setCenter(r.get(`center`)),f.setZoom(r.get(`zoom`)),n.push(f),f}}),n}var J1=CL.prototype,Y1=EL.prototype,X1=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(X1);function Z1(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Q1=function(e){J(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-line`,n}return t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new X1},t.prototype.buildPath=function(e,t){Z1(t)?J1.buildPath.call(this,e,t):Y1.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return Z1(this.shape)?J1.pointAt.call(this,e):Y1.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=Z1(t)?[t.x2-t.x1,t.y2-t.y1]:Y1.tangentAt.call(this,e);return YO(n,n)},t}(SF),$1=[`fromSymbol`,`toSymbol`];function e0(e){return`_`+e+`Type`}function t0(e,t,n){var r=t.getItemVisual(n,e);if(!r||r===`none`)return r;var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=mU(i),l=hU(o||0,c);return r+c+l+(a||``)+(s||``)}function n0(e,t,n){var r=t.getItemVisual(n,e);if(!(!r||r===`none`)){var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=mU(i),l=hU(o||0,c),u=pU(r,-c[0]/2+l[0],-c[1]/2+l[1],c[0],c[1],null,s);return u.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,u.name=e,u}}function XSe(e){var t=new Q1({name:`line`,subPixelOptimize:!0});return r0(t.shape,e),t}function r0(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var i0=function(e){J(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=e.getItemLayout(t),a=e.getItemVisual(t,`z2`),o=XSe(i);o.shape.percent=0,WL(o,{z2:xO(a,0),shape:{percent:1}},r,t),this.add(o),X($1,function(n){var r=n0(n,e,t);this.add(r),this[e0(n)]=t0(n,e,t)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=e.getItemLayout(t),o={shape:{}};r0(o.shape,a),UL(i,o,r,t),X($1,function(n){var r=t0(n,e,t),i=e0(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=n0(n,e,t);this.add(a)}this[i]=r},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,c=n&&n.labelStatesModels,l=n&&n.emphasisDisabled,u=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),p=f.getModel(`emphasis`);a=p.getModel(`lineStyle`).getLineStyle(),o=f.getModel([`blur`,`lineStyle`]).getLineStyle(),s=f.getModel([`select`,`lineStyle`]).getLineStyle(),l=p.get(`disabled`),u=p.get(`focus`),d=p.get(`blurScope`),c=LR(f)}var m=e.getItemVisual(t,`style`),h=m.stroke;i.useStyle(m),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState(`emphasis`).style=a,i.ensureState(`blur`).style=o,i.ensureState(`select`).style=s,X($1,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=m.opacity;for(var n=0;n<tI.length;n++){var r=tI[n],a=i.getState(r);if(a){var o=a.style||{},s=t.ensureState(r),c=s.style||={};o.stroke!=null&&(c[t.__isEmptyBrush?`stroke`:`fill`]=o.stroke),o.opacity!=null&&(c.opacity=o.opacity)}}t.markRedraw()}},this);var g=r.getRawValue(t);IR(this,c,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:h||$.color.neutral99,defaultOpacity:m.opacity,defaultText:(g==null?e.getName(t):isFinite(g)?QM(g):g)+``});var _=this.getTextContent();if(_){var v=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=v.get(`position`)||`middle`;var y=v.get(`distance`);Q(y)||(y=[y,y]),_.__labelDistance=y}this.setTextConfig({position:null,local:!0,inside:!1}),FI(this,u,d,l)},t.prototype.highlight=function(){SI(this)},t.prototype.downplay=function(){CI(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName(`line`);r0(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName(`fromSymbol`),n=e.childOfName(`toSymbol`),r=e.getTextContent();if(!t&&!n&&(!r||r.ignore))return;for(var i=1,a=this.parent;a;)a.scaleX&&(i/=a.scaleX),a=a.parent;var o=e.childOfName(`line`);if(!this.__dirty&&!o.__dirty)return;var s=o.shape.percent,c=o.pointAt(0),l=o.pointAt(s),u=KO([],l,c);YO(u,u);function d(e,t){var n=e.__specifiedRotation;if(n==null){var r=o.tangentAt(t);e.attr(`rotation`,(t===1?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr(`rotation`,n)}if(t&&(t.setPosition(c),d(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(l),d(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var f=void 0,p=void 0,m=r.__labelDistance,h=m[0]*i,g=m[1]*i,_=s/2,v=o.tangentAt(_),y=[v[1],-v[0]],b=o.pointAt(_);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0]<c[0]&&(S=Math.PI+S),r.rotation=S}var C=void 0;switch(r.__position){case`insideStartTop`:case`insideMiddleTop`:case`insideEndTop`:case`middle`:C=-g,p=`bottom`;break;case`insideStartBottom`:case`insideMiddleBottom`:case`insideEndBottom`:C=g,p=`top`;break;default:C=0,p=`middle`}switch(r.__position){case`end`:r.x=u[0]*h+l[0],r.y=u[1]*g+l[1],f=u[0]>.8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(zM),a0=function(){function e(e){this.group=new zM,this._LineCtor=e||i0}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=o0(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=o0(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(e){!e.isGroup&&!ZSe(e)&&(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var r=e.start;r<e.end;r++)if(c0(t.getItemLayout(r))){var i=new this._LineCtor(t,r,this._seriesScope);i.traverse(n),this.group.add(i),t.setItemGraphicEl(r,i),this._progressiveEls.push(i)}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){wR(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(c0(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var a=e.getItemGraphicEl(n);if(!c0(t.getItemLayout(r))){this.group.remove(a);return}a?a.updateData(t,r,i):a=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,a),this.group.add(a)},e}();function ZSe(e){return e.animators&&e.animators.length>0}function o0(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:LR(t)}}function s0(e){return isNaN(e[0])||isNaN(e[1])}function c0(e){return e&&!s0(e[0])&&!s0(e[1])}var l0=[],u0=[],d0=[],f0=MA,p0=QO,m0=Math.abs;function h0(e,t,n){for(var r=e[0],i=e[1],a=e[2],o=1/0,s,c=n*n,l=.1,u=.1;u<=.9;u+=.1){l0[0]=f0(r[0],i[0],a[0],u),l0[1]=f0(r[1],i[1],a[1],u);var d=m0(p0(l0,t)-c);d<o&&(o=d,s=u)}for(var f=0;f<32;f++){var p=s+l;u0[0]=f0(r[0],i[0],a[0],s),u0[1]=f0(r[1],i[1],a[1],s),d0[0]=f0(r[0],i[0],a[0],p),d0[1]=f0(r[1],i[1],a[1],p);var d=p0(u0,t)-c;if(m0(d)<.01)break;var m=p0(d0,t)-c;l/=2,d<0?m>=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function g0(e,t){var n=[],r=FA,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var c=e.getLayout(),l=e.getVisual(`fromSymbol`),u=e.getVisual(`toSymbol`);c.__original||(c.__original=[HO(c[0]),HO(c[1])],c[2]&&c.__original.push(HO(c[2])));var d=c.__original;if(c[2]!=null){if(VO(i[0],d[0]),VO(i[1],d[2]),VO(i[2],d[1]),l&&l!==`none`){var f=H1(e.node1),p=h0(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&u!==`none`){var f=H1(e.node2),p=h0(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}VO(c[0],i[0]),VO(c[1],i[2]),VO(c[2],i[1])}else{if(VO(a[0],d[0]),VO(a[1],d[1]),KO(o,a[1],a[0]),YO(o,o),l&&l!==`none`){var f=H1(e.node1);GO(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=H1(e.node2);GO(a[1],a[1],o,-f*t)}VO(c[0],a[0]),VO(c[1],a[1])}})}var _0=jN();function QSe(e){if(e)return _0(e).bridge}function v0(e,t){e&&(_0(e).bridge=t)}function y0(e){return e.type===`view`}var $Se=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){var n=new rX,r=new a0,i=this.group,a=new zM;this._controller=new yQ(t.getZr()),this._controllerHost={target:a},a.add(n.group),a.add(r.group),i.add(a),this._symbolDraw=n,this._lineDraw=r,this._mainGroup=a,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,a=!1;this._model=e,this._api=n,this._active=!0;var o=this._getThumbnailInfo();o&&o.bridge.reset(n);var s=this._symbolDraw,c=this._lineDraw;if(y0(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?this._mainGroup.attr(l):UL(this._mainGroup,l,e)}g0(e.getGraph(),V1(e));var u=e.getData();s.updateData(u);var d=e.getEdgeData();c.updateData(d),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get([`force`,`layoutAnimation`]);f&&(a=!0,this._startForceLayoutIteration(f,n,p));var m=e.get(`layout`);u.graph.eachNode(function(t){var i=t.dataIndex,a=t.getGraphicEl(),o=t.getModel();if(a){a.off(`drag`).off(`dragend`);var s=o.get(`draggable`);s&&a.on(`drag`,function(o){switch(m){case`force`:f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,n,p),f.setFixed(i),u.setItemLayout(i,[a.x,a.y]);break;case`circular`:u.setItemLayout(i,[a.x,a.y]),t.setLayout({fixed:!0},!0),G1(e,`symbolSize`,t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;default:u.setItemLayout(i,[a.x,a.y]),B1(e.getGraph(),e),r.updateLayout(e);break}}).on(`dragend`,function(){f&&f.setUnfixed(i)}),a.setDraggable(s,!!o.get(`cursor`)),o.get([`emphasis`,`focus`])===`adjacency`&&(YF(a).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(YF(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var h=e.get(`layout`)===`circular`&&e.get([`circular`,`rotateLabel`]),g=u.getLayout(`cx`),_=u.getLayout(`cy`);u.graph.eachNode(function(e){K1(e,h,g,_)}),this._firstRender=!1,a||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t,n){var r=this,i=!1;(function a(){e.step(function(e){r.updateLayout(r._model),(e||!i)&&(i=!0,r._renderThumbnail(r._model,t,r._symbolDraw,r._lineDraw)),(r._layouting=!e)&&(n?r._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(e,t,n){var r=this._controller,i=this._controllerHost,a=t.coordinateSystem;if(!y0(a)){r.disable();return}r.enable(t.get(`roam`),{api:n,zInfo:{component:t},triggerInfo:{roamTrigger:t.get(`roamTrigger`),isInSelf:function(e,t,n){return a.containPoint([t,n])},isInClip:function(t,n,r){return!e||e.contain(n,r)}}}),i.zoomLimit=t.get(`scaleLimit`),i.zoom=a.getZoom(),r.off(`pan`).off(`zoom`).on(`pan`,function(e){n.dispatchAction({seriesId:t.id,type:`graphRoam`,dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){n.dispatchAction({seriesId:t.id,type:`graphRoam`,zoom:e.scale,originX:e.originX,originY:e.originY})})},t.prototype.updateViewOnPan=function(e,t,n){this._active&&(EQ(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,t,n){this._active&&(DQ(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),g0(e.getGraph(),V1(e)),this._lineDraw.updateLayout(),t.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=V1(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(g0(e.getGraph(),V1(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,t=e.coordinateSystem;if(t.type===`view`){var n=QSe(e);if(n)return{bridge:n,coordSys:t}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,t,n,r){var i=this._getThumbnailInfo();if(i){var a=new zM,o=n.group.children(),s=r.group.children(),c=new zM,l=new zM;a.add(l),a.add(c);for(var u=0;u<o.length;u++){var d=o[u],f=d.children()[0],p=d.x,m=d.y,h=Y(ZD(f.shape),{width:f.scaleX,height:f.scaleY,x:p-f.scaleX/2,y:m-f.scaleY/2}),g=ZD(f.style),_=new f.constructor({shape:h,style:g,z2:151});l.add(_)}for(var u=0;u<s.length;u++){var d=s[u],v=d.children()[0],g=ZD(v.style),h=ZD(v.shape),y=new Q1({style:g,shape:h,z2:151});c.add(y)}i.bridge.renderContent({api:t,roamType:e.get(`roam`),viewportRect:null,group:a,targetTrans:i.coordSys.transform})}},t.type=`graph`,t}(NH);function b0(e){return`_EC_`+e}var eCe=function(){function e(e){this.type=`graph`,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=e==null?``+t:``+e;var n=this._nodesMap;if(!n[b0(e)]){var r=new x0(e,t);return r.hostGraph=this,this.nodes.push(r),n[b0(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[b0(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(pO(e)&&(e=this.nodes[e]),pO(t)&&(t=this.nodes[t]),e instanceof x0||(e=r[b0(e)]),t instanceof x0||(t=r[b0(t)]),!(!e||!t)){var a=e.id+`-`+t.id,o=new S0(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof x0&&(e=e.id),t instanceof x0&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+`-`+t]:n[e+`-`+t]||n[t+`-`+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof x0||(t=this._nodesMap[b0(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(r,t,null))for(var o=[t];o.length;)for(var s=o.shift(),c=s[i],a=0;a<c.length;a++){var l=c[a],u=l.node1===s?l.node2:l.node1;if(!u.__visited){if(e.call(r,u,s))return;o.push(u),u.__visited=!0}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,a=n.length;i<a;i++)n[i].dataIndex=-1;for(var i=0,a=e.count();i<a;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i<a;i++)r[i].dataIndex=-1;for(var i=0,a=t.count();i<a;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(var i=0;i<r.length;i++){var a=r[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),x0=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??``,this.dataIndex=t??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=jO(),t=jO(),n=0,r=this.edges.length;n<r;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var c=a[s];s++,t.set(c.dataIndex,!0);for(var l=c.inEdges,u=0,d=l.length,f=void 0,p=void 0;u<d;u++)f=l[u],p=f.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(f.node1))}for(s=0;s<o.length;){var m=o[s];s++,t.set(m.dataIndex,!0);for(var h=m.outEdges,u=0,g=h.length,_=void 0,v=void 0;u<g;u++)_=h[u],v=_.dataIndex,v>=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},e}(),S0=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=jO(),t=jO();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var a=n[i];i++,t.set(a.dataIndex,!0);for(var o=a.inEdges,s=0,c=o.length,l=void 0,u=void 0;s<c;s++)l=a.inEdges[s],u=l.dataIndex,u>=0&&!e.hasKey(u)&&(e.set(u,!0),n.push(l.node1))}for(i=0;i<r.length;){var d=r[i];i++,t.set(d.dataIndex,!0);for(var f=d.outEdges,s=0,c=f.length,p=void 0,m=void 0;s<c;s++)p=d.outEdges[s],m=p.dataIndex,m>=0&&!e.hasKey(m)&&(e.set(m,!0),r.push(p.node2))}return{edge:e.keys(),node:t.keys()}},e}();function C0(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}nO(x0,C0(`hostGraph`,`data`)),nO(S0,C0(`hostGraph`,`edgeData`));function w0(e,t,n,r,i){for(var a=new eCe(r),o=0;o<e.length;o++)a.addNode(bO(e[o].id,e[o].name,o),o);for(var s=[],c=[],l=0,o=0;o<t.length;o++){var u=t[o],d=u.source,f=u.target;a.addEdge(d,f,l)&&(c.push(u),s.push(bO(DN(u.id,null),d+` > `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=zK(e,n);else{var h=Xz.get(p),g=h&&h.dimensions||[];tO(g,`value`)<0&&g.concat([`value`]);var _=TK(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new wK(_,n),m.initData(e)}var v=new wK([`value`],n);return v.initData(c,s),i&&i(m,v),F$({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var tCe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new tZ(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),xN(t,`edgeLabel`,[`show`])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){VSe(this);var a=w0(r,n,this,!0,o);return X(a.edges,function(e){HSe(e.node1,e.node2,this,e.dataIndex)},this),a.data}function o(e,t){e.wrapMethod(`getItemModel`,function(e){var t=i._categoriesModels[e.getShallow(`category`)];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var n=$R.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=a,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=a,e.getModel=r,e});function a(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if(n===`edge`){var r=this.getData(),i=this.getDataParams(e,n),a=r.graph.getEdgeByIndex(e),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),fH(`nameValue`,{name:c.join(` > `),value:i.value,noValue:i.value==null})}return SH({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=Z(this.option.categories||[],function(e){return e.value==null?Y({value:0},e):e}),t=new wK([`value`],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get(`layout`)===`force`&&this.get([`force`,`layoutAnimation`]))},t.type=`series.graph`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`],t.defaultOption={z:2,coordinateSystem:`view`,legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:`center`,top:`center`,symbol:`circle`,symbolSize:10,edgeSymbol:[`none`,`none`],edgeSymbolSize:10,edgeLabel:{position:`middle`,distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:`{b}`},itemStyle:{},lineStyle:{color:$.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},t}(EH);function nCe(e){e.registerChartView($Se),e.registerSeriesModel(tCe),e.registerProcessor(ISe),e.registerVisual(LSe),e.registerVisual(RSe),e.registerLayout(USe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,GSe),e.registerLayout(qSe),e.registerCoordinateSystem(`graphView`,{dimensions:g$.dimensions,create:YSe}),e.registerAction({type:`focusNodeAdjacency`,event:`focusNodeAdjacency`,update:`series:focusNodeAdjacency`},IO),e.registerAction({type:`unfocusNodeAdjacency`,event:`unfocusNodeAdjacency`,update:`series:unfocusNodeAdjacency`},IO),e.registerAction({type:`graphRoam`,event:`graphRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,query:e},function(t){var r=n.getViewOfSeriesModel(t);r&&(e.dx!=null&&e.dy!=null&&r.updateViewOnPan(t,n,e),e.zoom!=null&&e.originX!=null&&e.originY!=null&&r.updateViewOnZoom(t,n,e));var i=t.coordinateSystem,a=AQ(i,e,t.get(`scaleLimit`));t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom)})})}var T0=function(e){J(t,e);function t(t,n,r){var i=e.call(this)||this;YF(i).dataType=`node`,i.z2=2;var a=new RF;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.graph.getNodeByIndex(t),o=e.hostModel,s=a.getModel(),c=s.getModel(`emphasis`),l=e.getItemLayout(t),u=Y(AX(s.getModel(`itemStyle`),l,!0),l),d=this;if(isNaN(u.startAngle)){d.setShape(u);return}r?d.setShape(u):UL(d,{shape:u},o,t);var f=Y(AX(s.getModel(`itemStyle`),l,!0),l);i.setShape(f),i.useStyle(e.getItemVisual(t,`style`)),RI(i,s),this._updateLabel(o,s,a),e.setItemGraphicEl(t,d),RI(d,s,`itemStyle`);var p=c.get(`focus`);FI(this,p===`adjacency`?a.getAdjacentDataIndices():p,c.get(`blurScope`),c.get(`disabled`))},t.prototype._updateLabel=function(e,t,n){var r=this.getTextContent(),i=n.getLayout(),a=(i.startAngle+i.endAngle)/2,o=Math.cos(a),s=Math.sin(a),c=t.getModel(`label`);r.ignore=!c.get(`show`);var l=LR(t),u=n.getVisual(`style`);IR(r,l,{labelFetcher:{getFormattedLabel:function(n,r,i,a,o,s){return e.getFormattedLabel(n,r,`node`,a,SO(o,l.normal&&l.normal.get(`formatter`),t.get(`name`)),s)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+``,inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:`startArc`});var d=c.get(`position`)||`outside`,f=c.get(`distance`)||0,p=d===`outside`?i.r+f:(i.r+i.r0)/2;this.textConfig={inside:d!==`outside`};var m=d===`outside`?o>0?`left`:`right`:c.get(`align`)||`center`,h=d===`outside`?s>0?`top`:`bottom`:c.get(`verticalAlign`)||`middle`;r.attr({x:o*p+i.cx,y:s*p+i.cy,rotation:0,style:{align:m,verticalAlign:h}})},t}(vL);(function(){function e(){this.s1=[0,0],this.s2=[0,0],this.sStartAngle=0,this.sEndAngle=0,this.t1=[0,0],this.t2=[0,0],this.tStartAngle=0,this.tEndAngle=0,this.cx=0,this.cy=0,this.r=0,this.clockwise=!0}return e})();var rCe=function(e){J(t,e);function t(t,n,r,i){var a=e.call(this)||this;return YF(a).dataType=`edge`,a.updateData(t,n,r,i,!0),a}return t.prototype.buildPath=function(e,t){e.moveTo(t.s1[0],t.s1[1]);var n=.7,r=t.clockwise;e.arc(t.cx,t.cy,t.r,t.sStartAngle,t.sEndAngle,!r),e.bezierCurveTo((t.cx-t.s2[0])*n+t.s2[0],(t.cy-t.s2[1])*n+t.s2[1],(t.cx-t.t1[0])*n+t.t1[0],(t.cy-t.t1[1])*n+t.t1[1],t.t1[0],t.t1[1]),e.arc(t.cx,t.cy,t.r,t.tStartAngle,t.tEndAngle,!r),e.bezierCurveTo((t.cx-t.t2[0])*n+t.t2[0],(t.cy-t.t2[1])*n+t.t2[1],(t.cx-t.s1[0])*n+t.s1[0],(t.cy-t.s1[1])*n+t.s1[1],t.s1[0],t.s1[1]),e.closePath()},t.prototype.updateData=function(e,t,n,r,i){var a=e.hostModel,o=t.graph.getEdgeByIndex(n),s=o.getLayout(),c=o.node1.getModel(),l=t.getItemModel(o.dataIndex),u=l.getModel(`lineStyle`),d=l.getModel(`emphasis`),f=d.get(`focus`),p=Y(AX(c.getModel(`itemStyle`),s,!0),s),m=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){m.setShape(p);return}i?(m.setShape(p),E0(m,o,e,u)):(YL(m),E0(m,o,e,u),UL(m,{shape:p},a,n)),FI(this,f===`adjacency`?o.getAdjacentDataIndices():f,d.get(`blurScope`),d.get(`disabled`)),RI(m,l,`lineStyle`),t.setItemGraphicEl(o.dataIndex,m)},t}(SF);function E0(e,t,n,r){var i=t.node1,a=t.node2,o=e.style;switch(e.setStyle(r.getLineStyle()),r.get(`color`)){case`source`:o.fill=n.getItemVisual(i.dataIndex,`style`).fill,o.decal=i.getVisual(`style`).decal;break;case`target`:o.fill=n.getItemVisual(a.dataIndex,`style`).fill,o.decal=a.getVisual(`style`).decal;break;case`gradient`:var s=n.getItemVisual(i.dataIndex,`style`).fill,c=n.getItemVisual(a.dataIndex,`style`).fill;if(dO(s)&&dO(c)){var l=e.shape;o.fill=new AL((l.s1[0]+l.s2[0])/2,(l.s1[1]+l.s2[1])/2,(l.t1[0]+l.t2[0])/2,(l.t1[1]+l.t2[1])/2,[{offset:0,color:s},{offset:1,color:c}],!0)}break}}var iCe=Math.PI/180,aCe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group,o=-e.get(`startAngle`)*iCe;if(r.diff(i).add(function(e){if(r.getItemLayout(e)){var t=new T0(r,e,o);YF(t).dataIndex=e,a.add(t)}}).update(function(t,n){var s=i.getItemGraphicEl(n);if(!r.getItemLayout(t)){s&&JL(s,e,n);return}s?s.updateData(r,t,o):s=new T0(r,t,o),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&JL(n,e,t)}).execute(),!i){var s=e.get(`center`);this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=XM(s[0],n.getWidth()),this.group.originY=XM(s[1],n.getHeight()),WL(this.group,{scaleX:1,scaleY:1},e)}this._data=r,this.renderEdges(e,o)},t.prototype.renderEdges=function(e,t){var n=e.getData(),r=e.getEdgeData(),i=this._edgeData,a=this.group;r.diff(i).add(function(e){var i=new rCe(n,r,e,t);YF(i).dataIndex=e,a.add(i)}).update(function(e,o){var s=i.getItemGraphicEl(o);s.updateData(n,r,e,t),a.add(s)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&JL(n,e,t)}).execute(),this._edgeData=r},t.prototype.dispose=function(){},t.type=`chord`,t}(NH),oCe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new tZ(cO(this.getData,this),cO(this.getRawData,this))},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[];if(r&&n)return w0(r,n,this,!0,i).data;function i(e,t){var n=$R.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}t.wrapMethod(`getItemModel`,function(e){return e.resolveParentPath=i,e.getModel=r,e});function i(e){if(e&&(e[0]===`label`||e[1]===`label`)){var t=e.slice();return e[0]===`label`?t[0]=`edgeLabel`:e[1]===`label`&&(t[1]=`edgeLabel`),t}return e}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){var r=this.getDataParams(e,n);if(n===`edge`){var i=this.getData(),a=i.graph.getEdgeByIndex(e),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),c=[];return o!=null&&c.push(o),s!=null&&c.push(s),fH(`nameValue`,{name:c.join(` > `),value:r.value,noValue:r.value==null})}return fH(`nameValue`,{name:r.name,value:r.value,noValue:r.value==null})},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(n===`node`){var i=this.getData(),a=this.getGraph().getNodeByIndex(t);r.name??=i.getName(t),r.value??=a.getLayout().value}return r},t.type=`series.chord`,t.defaultOption={z:2,coordinateSystem:`none`,legendHoverLink:!0,colorBy:`data`,left:0,top:0,right:0,bottom:0,width:null,height:null,center:[`50%`,`50%`],radius:[`70%`,`80%`],clockwise:!0,startAngle:90,endAngle:`auto`,minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:`source`,opacity:.2},label:{show:!0,position:`outside`,distance:5},emphasis:{focus:`adjacency`,lineStyle:{opacity:.5}}},t}(EH),D0=Math.PI/180;function sCe(e,t){e.eachSeriesByType(`chord`,function(e){cCe(e,t)})}function cCe(e,t){var n=e.getData(),r=n.graph,i=e.getEdgeData();if(i.count()){var a=lB(e,t),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=Math.max((e.get(`padAngle`)||0)*D0,0),d=Math.max((e.get(`minAngle`)||0)*D0,0),f=-e.get(`startAngle`)*D0,p=f+Math.PI*2,m=e.get(`clockwise`),h=m?1:-1,g=[f,p];XP(g,!m);var _=g[0],v=g[1]-_,y=n.getSum(`value`)===0&&i.getSum(`value`)===0,b=[],x=0;r.eachEdge(function(e){var t=y?1:e.getValue(`value`);y&&(t>0||d)&&(x+=2);var n=e.node1.dataIndex,r=e.node2.dataIndex;b[n]=(b[n]||0)+t,b[r]=(b[r]||0)+t});var S=0;if(r.eachNode(function(e){var t=e.getValue(`value`);isNaN(t)||(b[e.dataIndex]=Math.max(t,b[e.dataIndex]||0)),!y&&(b[e.dataIndex]>0||d)&&x++,S+=b[e.dataIndex]||0}),!(x===0||S===0)){u*x>=Math.abs(v)&&(u=Math.max(0,(Math.abs(v)-d*x)/x)),(u+d)*x>=Math.abs(v)&&(d=(Math.abs(v)-u*x)/x);var C=(v-u*x*h)/S,w=0,T=0,E=0,D=1/0;r.eachNode(function(e){var t=b[e.dataIndex]||0,n=C*(S?t:1)*h;Math.abs(n)<d?w+=d-Math.abs(n):(D=Math.min(D,Math.abs(n)-d),T+=Math.abs(n)-d,E+=Math.abs(n)),e.setLayout({angle:n,value:t})});var O=!1;if(w>T){var k=w/T;r.eachNode(function(e){var t=e.getLayout().angle;Math.abs(t)>=d?e.setLayout({angle:t*k,ratio:k},!0):e.setLayout({angle:d,ratio:d===0?1:t/d},!0)})}else r.eachNode(function(e){if(!O){var t=e.getLayout().angle;t-Math.min(t/E,1)*w<d&&(O=!0)}});var A=w;r.eachNode(function(e){if(!(A<=0)){var t=e.getLayout().angle;if(t>d&&d>0){var n=O?1:Math.min(t/E,1),r=t-d,i=Math.min(r,Math.min(A,w*n));A-=i,e.setLayout({angle:t-i,ratio:(t-i)/t},!0)}else d>0&&e.setLayout({angle:d,ratio:t===0?1:d/t},!0)}});var j=_,M=[];r.eachNode(function(e){var t=Math.max(e.getLayout().angle,d);e.setLayout({cx:o,cy:s,r0:l,r:c,startAngle:j,endAngle:j+t*h,clockwise:m},!0),M[e.dataIndex]=j,j+=(t+u)*h}),r.eachEdge(function(e){var t=y?1:e.getValue(`value`),n=C*(S?t:1)*h,r=e.node1.dataIndex,i=M[r]||0,a=i+Math.abs((e.node1.getLayout().ratio||1)*n)*h,c=[o+l*Math.cos(i),s+l*Math.sin(i)],u=[o+l*Math.cos(a),s+l*Math.sin(a)],d=e.node2.dataIndex,f=M[d]||0,p=f+Math.abs((e.node2.getLayout().ratio||1)*n)*h,g=[o+l*Math.cos(f),s+l*Math.sin(f)],_=[o+l*Math.cos(p),s+l*Math.sin(p)];e.setLayout({s1:c,s2:u,sStartAngle:i,sEndAngle:a,t1:g,t2:_,tStartAngle:f,tEndAngle:p,cx:o,cy:s,r:l,value:t,clockwise:m}),M[r]=a,M[d]=p})}}}function lCe(e){e.registerChartView(aCe),e.registerSeriesModel(oCe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,sCe),e.registerProcessor(JX(`chord`))}var uCe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),dCe=function(e){J(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`pointer`,n}return t.prototype.getDefaultShape=function(){return new uCe},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,a=t.width,o=t.angle,s=t.x-n(o)*a*(a>=i/3?1:2),c=t.y-r(o)*a*(a>=i/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,c),e.lineTo(t.x+n(o)*a,t.y+r(o)*a),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(o)*a,t.y-r(o)*a),e.lineTo(s,c)},t}(SF);function fCe(e,t){var n=e.get(`center`),r=t.getWidth(),i=t.getHeight(),a=Math.min(r,i);return{cx:XM(n[0],t.getWidth()),cy:XM(n[1],t.getHeight()),r:XM(e.get(`radius`),a/2)}}function O0(e,t){var n=e==null?``:e+``;return t&&(dO(t)?n=t.replace(`{value}`,n):uO(t)&&(n=t(e))),n}var pCe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get([`axisLine`,`lineStyle`,`color`]),i=fCe(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var a=this.group,o=e.get(`clockwise`),s=-e.get(`startAngle`)/180*Math.PI,c=-e.get(`endAngle`)/180*Math.PI,l=e.getModel(`axisLine`),u=l.get(`roundCap`)?DX:vL,d=l.get(`show`),f=l.getModel(`lineStyle`),p=f.get(`width`),m=[s,c];XP(m,!o),s=m[0],c=m[1];for(var h=c-s,g=s,_=[],v=0;d&&v<r.length;v++){var y=Math.min(Math.max(r[v][0],0),1);c=s+h*y;var b=new u({shape:{startAngle:g,endAngle:c,cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-p,r:i.r},silent:!0});b.setStyle({fill:r[v][1]}),b.setStyle(f.getLineStyle([`color`,`width`])),_.push(b),g=c}_.reverse(),X(_,function(e){return a.add(e)});var x=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(t===0?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,x,i,s,c,o,p),this._renderTitleAndDetail(e,t,n,x,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,x,i,s,c,o,p)},t.prototype._renderTicks=function(e,t,n,r,i,a,o,s,c){for(var l=this.group,u=i.cx,d=i.cy,f=i.r,p=+e.get(`min`),m=+e.get(`max`),h=e.getModel(`splitLine`),g=e.getModel(`axisTick`),_=e.getModel(`axisLabel`),v=e.get(`splitNumber`),y=g.get(`splitNumber`),b=XM(h.get(`length`),f),x=XM(g.get(`length`),f),S=a,C=(o-a)/v,w=C/y,T=h.getModel(`lineStyle`).getLineStyle(),E=g.getModel(`lineStyle`).getLineStyle(),D=h.get(`distance`),O,k,A=0;A<=v;A++){if(O=Math.cos(S),k=Math.sin(S),h.get(`show`)){var j=D?D+c:c,M=new CL({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-b-j)+u,y2:k*(f-b-j)+d},style:T,silent:!0});T.stroke===`auto`&&M.setStyle({stroke:r(A/v)}),l.add(M)}if(_.get(`show`)){var j=_.get(`distance`)+D,N=O0(QM(A/v*(m-p)+p),_.get(`formatter`)),P=r(A/v),F=O*(f-b-j)+u,I=k*(f-b-j)+d,L=_.get(`rotate`),R=0;L===`radial`?(R=-S+2*Math.PI,R>Math.PI/2&&(R+=Math.PI)):L===`tangential`?R=-S-Math.PI/2:pO(L)&&(R=L*Math.PI/180),R===0?l.add(new RF({style:RR(_,{text:N,x:F,y:I,verticalAlign:k<-.8?`top`:k>.8?`bottom`:`middle`,align:O<-.4?`left`:O>.4?`right`:`center`},{inheritColor:P}),silent:!0})):l.add(new RF({style:RR(_,{text:N,x:F,y:I,verticalAlign:`middle`,align:`center`},{inheritColor:P}),silent:!0,originX:F,originY:I,rotation:R}))}if(g.get(`show`)&&A!==v){var j=g.get(`distance`);j=j?j+c:c;for(var z=0;z<=y;z++){O=Math.cos(S),k=Math.sin(S);var B=new CL({shape:{x1:O*(f-j)+u,y1:k*(f-j)+d,x2:O*(f-x-j)+u,y2:k*(f-x-j)+d},silent:!0,style:E});E.stroke===`auto`&&B.setStyle({stroke:r((A+z/y)/v)}),l.add(B),S+=w}S-=w}else S+=C}},t.prototype._renderPointer=function(e,t,n,r,i,a,o,s,c){var l=this.group,u=this._data,d=this._progressEls,f=[],p=e.get([`pointer`,`show`]),m=e.getModel(`progress`),h=m.get(`show`),g=e.getData(),_=g.mapDimension(`value`),v=+e.get(`min`),y=+e.get(`max`),b=[v,y],x=[a,o];function S(t,n){var r=g.getItemModel(t).getModel(`pointer`),a=XM(r.get(`width`),i.r),o=XM(r.get(`length`),i.r),s=e.get([`pointer`,`icon`]),c=r.get(`offsetCenter`),l=XM(c[0],i.r),u=XM(c[1],i.r),d=r.get(`keepAspect`),f=s?pU(s,l-a/2,u-o,a,o,null,d):new dCe({shape:{angle:-Math.PI/2,width:a,r:o,x:l,y:u}});return f.rotation=-(n+Math.PI/2),f.x=i.cx,f.y=i.cy,f}function C(e,t){var n=m.get(`roundCap`)?DX:vL,r=m.get(`overlap`),o=r?m.get(`width`):c/g.count(),l=r?i.r-o:i.r-(e+1)*o,u=r?i.r:i.r-e*o,d=new n({shape:{startAngle:a,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:l,r:u}});return r&&(d.z2=YM(g.get(_,e),[v,y],[100,0],!0)),d}(h||p)&&(g.diff(u).add(function(t){var n=g.get(_,t);if(p){var r=S(t,a);WL(r,{rotation:-((isNaN(+n)?x[0]:YM(n,b,x,!0))+Math.PI/2)},e),l.add(r),g.setItemGraphicEl(t,r)}if(h){var i=C(t,a);WL(i,{shape:{endAngle:YM(n,b,x,m.get(`clip`))}},e),l.add(i),XF(e.seriesIndex,g.dataType,t,i),f[t]=i}}).update(function(t,n){var r=g.get(_,t);if(p){var i=u.getItemGraphicEl(n),o=i?i.rotation:a,s=S(t,o);s.rotation=o,UL(s,{rotation:-((isNaN(+r)?x[0]:YM(r,b,x,!0))+Math.PI/2)},e),l.add(s),g.setItemGraphicEl(t,s)}if(h){var c=d[n],v=C(t,c?c.shape.endAngle:a);UL(v,{shape:{endAngle:YM(r,b,x,m.get(`clip`))}},e),l.add(v),XF(e.seriesIndex,g.dataType,t,v),f[t]=v}}).execute(),g.each(function(e){var t=g.getItemModel(e),n=t.getModel(`emphasis`),i=n.get(`focus`),a=n.get(`blurScope`),o=n.get(`disabled`);if(p){var s=g.getItemGraphicEl(e),c=g.getItemVisual(e,`style`),l=c.fill;if(s instanceof OF){var u=s.style;s.useStyle(Y({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},c))}else s.useStyle(c),s.type!==`pointer`&&s.setColor(l);s.setStyle(t.getModel([`pointer`,`itemStyle`]).getItemStyle()),s.style.fill===`auto`&&s.setStyle(`fill`,r(YM(g.get(_,e),b,[0,1],!0))),s.z2EmphasisLift=0,RI(s,t),FI(s,i,a,o)}if(h){var d=f[e];d.useStyle(g.getItemVisual(e,`style`)),d.setStyle(t.getModel([`progress`,`itemStyle`]).getItemStyle()),d.z2EmphasisLift=0,RI(d,t),FI(d,i,a,o)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel(`anchor`);if(n.get(`show`)){var r=n.get(`size`),i=n.get(`icon`),a=n.get(`offsetCenter`),o=n.get(`keepAspect`),s=pU(i,t.cx-r/2+XM(a[0],t.r),t.cy-r/2+XM(a[1],t.r),r,r,null,o);s.z2=+!!n.get(`showAbove`),s.setStyle(n.getModel(`itemStyle`).getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var a=this,o=e.getData(),s=o.mapDimension(`value`),c=+e.get(`min`),l=+e.get(`max`),u=new zM,d=[],f=[],p=e.isAnimationEnabled(),m=e.get([`pointer`,`showAbove`]);o.diff(this._data).add(function(e){d[e]=new RF({silent:!0}),f[e]=new RF({silent:!0})}).update(function(e,t){d[e]=a._titleEls[t],f[e]=a._detailEls[t]}).execute(),o.each(function(t){var n=o.getItemModel(t),a=o.get(s,t),h=new zM,g=r(YM(a,[c,l],[0,1],!0)),_=n.getModel(`title`);if(_.get(`show`)){var v=_.get(`offsetCenter`),y=i.cx+XM(v[0],i.r),b=i.cy+XM(v[1],i.r),x=d[t];x.attr({z2:m?0:2,style:RR(_,{x:y,y:b,text:o.getName(t),align:`center`,verticalAlign:`middle`},{inheritColor:g})}),h.add(x)}var S=n.getModel(`detail`);if(S.get(`show`)){var C=S.get(`offsetCenter`),w=i.cx+XM(C[0],i.r),T=i.cy+XM(C[1],i.r),E=XM(S.get(`width`),i.r),D=XM(S.get(`height`),i.r),O=e.get([`progress`,`show`])?o.getItemVisual(t,`style`).fill:g,x=f[t],k=S.get(`formatter`);x.attr({z2:m?0:2,style:RR(S,{x:w,y:T,text:O0(a,k),width:isNaN(E)?null:E,height:isNaN(D)?null:D,align:`center`,verticalAlign:`middle`},{inheritColor:O})}),KR(x,{normal:S},a,function(e){return O0(e,k)}),p&&qR(x,t,o,e,{getFormattedLabel:function(e,t,n,r,i,o){return O0(o?o.interpolatedValue:a,k)}}),h.add(x)}u.add(h)}),this.group.add(u),this._titleEls=d,this._detailEls=f},t.type=`gauge`,t}(NH),mCe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`itemStyle`,n}return t.prototype.getInitialData=function(e,t){return eZ(this,[`value`])},t.type=`series.gauge`,t.defaultOption={z:2,colorBy:`data`,center:[`50%`,`50%`],legendHoverLink:!0,radius:`75%`,startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,$.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:$.color.axisTick,width:3,type:`solid`}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:$.color.axisTickMinor,width:1,type:`solid`}},axisLabel:{show:!0,distance:15,color:$.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:`60%`,width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:`circle`,offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:$.color.neutral00,borderWidth:0,borderColor:$.color.theme[0]}},title:{show:!0,offsetCenter:[0,`20%`],color:$.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:$.color.transparent,borderWidth:0,borderColor:$.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,`40%`],color:$.color.primary,fontSize:30,fontWeight:`bold`,lineHeight:30,valueAnimation:!1}},t}(EH);function hCe(e){e.registerChartView(pCe),e.registerSeriesModel(mCe)}var gCe=[`itemStyle`,`opacity`],_Ce=function(e){J(t,e);function t(t,n){var r=e.call(this)||this,i=r,a=new SL,o=new RF;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(t,n,!0),r}return t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,a=e.getItemModel(t),o=e.getItemLayout(t),s=a.getModel(`emphasis`),c=a.get(gCe);c??=1,n||YL(r),r.useStyle(e.getItemVisual(t,`style`)),r.style.lineJoin=`round`,n?(r.setShape({points:o.points}),r.style.opacity=0,WL(r,{style:{opacity:c}},i,t)):UL(r,{style:{opacity:c},shape:{points:o.points}},i,t),RI(r,a),this._updateLabel(e,t),FI(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t).label,c=e.getItemVisual(t,`style`),l=c.fill;IR(i,LR(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}});var u=o.getModel(`label`).get(`color`)===`inherit`?l:null;n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var d=s.linePoints;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new Fk(d[0][0],d[0][1]):null},UL(i,{style:{x:s.x,y:s.y}},a,t),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),DJ(n,OJ(o),{stroke:l})},t}(xL),vCe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,a=this.group;r.diff(i).add(function(e){var t=new _Ce(r,e);r.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),a.add(n),r.setItemGraphicEl(e,n)}).remove(function(t){JL(i.getItemGraphicEl(t),e,t)}).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=`funnel`,t}(NH),yCe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new tZ(cO(this.getData,this),cO(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return eZ(this,{coordDimensions:[`value`],encodeDefaulter:lO(IB,this)})},t.prototype._defaultLabelLine=function(e){xN(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension(`value`),a=n.getSum(i);return r.percent=a?+(n.get(i,t)/a*100).toFixed(2):0,r.$vars.push(`percent`),r},t.type=`series.funnel`,t.defaultOption={coordinateSystemUsage:`box`,z:2,legendHoverLink:!0,colorBy:`data`,left:80,top:60,right:80,bottom:65,minSize:`0%`,maxSize:`100%`,sort:`descending`,orient:`vertical`,gap:0,funnelAlign:`center`,label:{show:!0,position:`outer`},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:$.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:$.color.primary}}},t}(EH);function bCe(e,t){for(var n=e.mapDimension(`value`),r=e.mapArray(n,function(e){return e}),i=[],a=t===`ascending`,o=0,s=e.count();o<s;o++)i[o]=o;return uO(t)?i.sort(t):t!==`none`&&i.sort(function(e,t){return a?r[e]-r[t]:r[t]-r[e]}),i}function xCe(e){var t=e.hostModel.get(`orient`);e.each(function(n){var r=e.getItemModel(n),i=r.getModel(`label`).get(`position`),a=r.getModel(`labelLine`),o=e.getItemLayout(n),s=o.points,c=i===`inner`||i===`inside`||i===`center`||i===`insideLeft`||i===`insideRight`,l,u,d,f;if(c)i===`insideLeft`?(u=(s[0][0]+s[3][0])/2+5,d=(s[0][1]+s[3][1])/2,l=`left`):i===`insideRight`?(u=(s[1][0]+s[2][0])/2-5,d=(s[1][1]+s[2][1])/2,l=`right`):(u=(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,l=`center`),f=[[u,d],[u,d]];else{var p=void 0,m=void 0,h=void 0,g=void 0,_=a.get(`length`);i===`left`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,h=p-_,u=h-5,l=`right`):i===`right`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,h=p+_,u=h+5,l=`left`):i===`top`?(p=(s[3][0]+s[0][0])/2,m=(s[3][1]+s[0][1])/2,g=m-_,d=g-5,l=`center`):i===`bottom`?(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,g=m+_,d=g+5,l=`center`):i===`rightTop`?(p=t===`horizontal`?s[3][0]:s[1][0],m=t===`horizontal`?s[3][1]:s[1][1],t===`horizontal`?(g=m-_,d=g-5,l=`center`):(h=p+_,u=h+5,l=`top`)):i===`rightBottom`?(p=s[2][0],m=s[2][1],t===`horizontal`?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`bottom`)):i===`leftTop`?(p=s[0][0],m=t===`horizontal`?s[0][1]:s[1][1],t===`horizontal`?(g=m-_,d=g-5,l=`center`):(h=p-_,u=h-5,l=`right`)):i===`leftBottom`?(p=t===`horizontal`?s[1][0]:s[3][0],m=t===`horizontal`?s[1][1]:s[2][1],t===`horizontal`?(g=m+_,d=g+5,l=`center`):(h=p-_,u=h-5,l=`right`)):(p=(s[1][0]+s[2][0])/2,m=(s[1][1]+s[2][1])/2,t===`horizontal`?(g=m+_,d=g+5,l=`center`):(h=p+_,u=h+5,l=`left`)),t===`horizontal`?(h=p,u=h):(g=m,d=g),f=[[p,m],[h,g]]}o.label={linePoints:f,x:u,y:d,verticalAlign:`middle`,textAlign:l,inside:c}})}function SCe(e,t){e.eachSeriesByType(`funnel`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=e.get(`sort`),a=pB(e,t),o=uB(e.getBoxLayoutParams(),a.refContainer),s=e.get(`orient`),c=o.width,l=o.height,u=bCe(n,i),d=o.x,f=o.y,p=s===`horizontal`?[XM(e.get(`minSize`),l),XM(e.get(`maxSize`),l)]:[XM(e.get(`minSize`),c),XM(e.get(`maxSize`),c)],m=n.getDataExtent(r),h=e.get(`min`),g=e.get(`max`);h??=Math.min(m[0],0),g??=m[1];var _=e.get(`funnelAlign`),v=e.get(`gap`),y=((s===`horizontal`?c:l)-v*(n.count()-1))/n.count(),b=function(e,t){if(s===`horizontal`){var i=YM(n.get(r,e)||0,[h,g],p,!0),a=void 0;switch(_){case`top`:a=f;break;case`center`:a=f+(l-i)/2;break;case`bottom`:a=f+(l-i);break}return[[t,a],[t,a+i]]}var o=YM(n.get(r,e)||0,[h,g],p,!0),u;switch(_){case`left`:u=d;break;case`center`:u=d+(c-o)/2;break;case`right`:u=d+c-o;break}return[[u,t],[u+o,t]]};i===`ascending`&&(y=-y,v=-v,s===`horizontal`?d+=c:f+=l,u=u.reverse());for(var x=0;x<u.length;x++){var S=u[x],C=u[x+1],w=n.getItemModel(S);if(s===`horizontal`){var T=w.get([`itemStyle`,`width`]);T==null?T=y:(T=XM(T,c),i===`ascending`&&(T=-T));var E=b(S,d),D=b(C,d+T);d+=T+v,n.setItemLayout(S,{points:E.concat(D.slice().reverse())})}else{var O=w.get([`itemStyle`,`height`]);O==null?O=y:(O=XM(O,l),i===`ascending`&&(O=-O));var E=b(S,f),D=b(C,f+O);f+=O+v,n.setItemLayout(S,{points:E.concat(D.slice().reverse())})}}xCe(n)})}function CCe(e){e.registerChartView(vCe),e.registerSeriesModel(yCe),e.registerLayout(SCe),e.registerProcessor(JX(`funnel`))}var wCe=.3,TCe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new zM,n._initialized=!1,n}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._dataGroup,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.dimensions,l=j0(e);a.diff(o).add(u).update(d).remove(f).execute();function u(e){M0(A0(a,i,e,c,s),a,e,l)}function d(t,n){var r=o.getItemGraphicEl(n),i=k0(a,t,c,s);a.setItemGraphicEl(t,r),UL(r,{shape:{points:i}},e,t),YL(r),M0(r,a,t,l)}function f(e){var t=o.getItemGraphicEl(e);i.remove(t)}if(!this._initialized){this._initialized=!0;var p=ECe(s,e,function(){setTimeout(function(){i.removeClipPath()})});i.setClipPath(p)}this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,a=i.dimensions,o=j0(t),s=this._progressiveEls=[],c=e.start;c<e.end;c++){var l=A0(r,this._dataGroup,c,a,i);l.incremental=!0,M0(l,r,c,o),s.push(l)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type=`parallel`,t}(NH);function ECe(e,t,n){var r=e.model,i=e.getRect(),a=new PF({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=r.get(`layout`)===`horizontal`?`width`:`height`;return a.setShape(o,0),WL(a,{shape:{width:i.width,height:i.height}},t,n),a}function k0(e,t,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a],s=e.get(e.mapDimension(o),t);DCe(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function A0(e,t,n,r,i){var a=new SL({shape:{points:k0(e,n,r,i)},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function j0(e){var t=e.get(`smooth`,!0);return t===!0&&(t=wCe),t=lN(t),yO(t)&&(t=0),{smooth:t}}function M0(e,t,n,r){e.useStyle(t.getItemVisual(n,`style`)),e.style.fill=null,e.setShape(`smooth`,r.smooth);var i=t.getItemModel(n),a=i.getModel(`emphasis`);RI(e,i,`lineStyle`),FI(e,a.get(`focus`),a.get(`blurScope`),a.get(`disabled`))}function DCe(e,t){return t===`category`?e==null:e==null||isNaN(e)}var OCe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.getInitialData=function(e,t){return zK(null,this,{useEncodeDefaulter:cO(kCe,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,function(t,i){e===t&&r.push(n.getRawIndex(i))}),r},t.type=`series.parallel`,t.dependencies=[`parallel`],t.defaultOption={z:2,coordinateSystem:`parallel`,parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:`solid`},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:`linear`},t}(EH);function kCe(e){var t=e.ecModel.getComponent(`parallel`,e.get(`parallelIndex`));if(t){var n={};return X(t.dimensions,function(e){n[e]=ACe(e)}),n}}function ACe(e){return+e.replace(`dim`,``)}var jCe=[`lineStyle`,`opacity`],MCe={seriesType:`parallel`,reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get([`lineStyle`,`opacity`]),active:e.get(`activeOpacity`),inactive:e.get(`inactiveOpacity`)};return{progress:function(e,t){n.eachActiveState(t,function(e,n){var i=r[e];if(e===`normal`&&t.hasItemOption){var a=t.getItemModel(n).get(jCe,!0);a!=null&&(i=a)}var o=t.ensureUniqueItemVisual(n,`style`);o.opacity=i},e.start,e.end)}}}};function NCe(e){PCe(e),FCe(e)}function PCe(e){if(!e.parallel){var t=!1;X(e.series,function(e){e&&e.type===`parallel`&&(t=!0)}),t&&(e.parallel=[{}])}}function FCe(e){X(bN(e.parallelAxis),function(t){if(mO(t)){var n=t.parallelIndex||0,r=bN(e.parallel)[n];r&&r.parallelAxisDefault&&QD(t,r.parallelAxisDefault,!1)}})}var ICe=5,LCe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},X(RCe,function(e,t){n.getZr().on(t,this._handlers[t]=cO(e,this))},this)),BH(this,`_throttledDispatchExpand`,e.get(`axisExpandRate`),`fixRate`)},t.prototype.dispose=function(e,t){VH(this,`_throttledDispatchExpand`),X(this._handlers,function(e,n){t.getZr().off(n,e)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Y({type:`parallelAxisExpand`},e))},t.type=`parallel`,t}(AH),RCe={mousedown:function(e){N0(this,`click`)&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(N0(this,`click`)&&t){var n=[e.offsetX,e.offsetY];if((t[0]-n[0])**2+(t[1]-n[1])**2>ICe)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);r.behavior!==`none`&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!N0(this,`mousemove`))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r===`jump`&&this._throttledDispatchExpand.debounceNextCall(t.get(`axisExpandDebounce`)),this._throttledDispatchExpand(r===`none`?null:{axisExpandWindow:n.axisExpandWindow,animation:r===`jump`?null:{duration:0}})}}};function N0(e,t){var n=e._model;return n.get(`axisExpandable`)&&n.get(`axisExpandTriggerOn`)===t}var zCe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&QD(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get(`parallelIndex`);return n!=null&&t.getComponent(`parallel`,n)===this},t.prototype.setAxisExpand=function(e){X([`axisExpandable`,`axisExpandCenter`,`axisExpandCount`,`axisExpandWidth`,`axisExpandWindow`],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[];X(aO(this.ecModel.queryComponents({mainType:`parallelAxis`}),function(e){return(e.get(`parallelIndex`)||0)===this.componentIndex},this),function(n){e.push(`dim`+n.get(`dim`)),t.push(n.componentIndex)})},t.type=`parallel`,t.dependencies=[`parallelAxis`],t.layoutMode=`box`,t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:`horizontal`,axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:`click`,parallelAxisDefault:null},t}(yB),BCe=function(e){J(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.axisIndex=a,o}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get(`layout`)!==`horizontal`},t}(uJ);function P0(e,t,n,r,i,a){e||=0;var o=n[1]-n[0];if(i!=null&&(i=I0(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(t[1]-t[0]);s=I0(s,[0,o]),i=a=I0(s,[i,a]),r=0}t[0]=I0(t[0],n),t[1]=I0(t[1],n);var c=F0(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]+=l:u[1]-=l,t[r]=I0(t[r],u);var d=F0(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=t[r]+c.sign*i),d=F0(t,r),a!=null&&d.span>a&&(t[1-r]=t[r]+d.sign*a),t}function F0(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function I0(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var L0=X,R0=Math.min,z0=Math.max,B0=Math.floor,VCe=Math.ceil,V0=QM,HCe=Math.PI,UCe=function(){function e(e,t,n){this.type=`parallel`,this._axesMap=jO(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;L0(r,function(e,n){var r=i[n],a=t.getComponent(`parallelAxis`,r),o=this._axesMap.set(e,new BCe(e,Mq(a),[0,0],a.get(`type`),r));o.onBand=o.type===`category`&&a.get(`boundaryGap`),o.inverse=a.get(`inverse`),a.axis=o,o.model=a,o.coordinateSystem=a.coordinateSystem=this},this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,a=e[1-i],o=e[i];return a>=n&&a<=n+t.axisLength&&o>=r&&o<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var r=n.getData();L0(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),jq(t.scale,t.model)},this)}},this)},e.prototype.resize=function(e,t){var n=pB(e,t).refContainer;this._rect=uB(e.getBoxLayoutParams(),n),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=[`x`,`y`],r=[`width`,`height`],i=e.get(`layout`),a=i===`horizontal`?0:1,o=t[r[a]],s=[0,o],c=this.dimensions.length,l=H0(e.get(`axisExpandWidth`),s),u=H0(e.get(`axisExpandCount`)||0,[0,c]),d=e.get(`axisExpandable`)&&c>3&&c>u&&u>1&&l>0&&o>0,f=e.get(`axisExpandWindow`),p;f?(p=H0(f[1]-f[0],s),f[1]=f[0]+p):(p=H0(l*(u-1),s),f=[l*(e.get(`axisExpandCenter`)||B0(c/2))-p/2],f[1]=f[0]+p);var m=(o-p)/(c-u);m<3&&(m=0);var h=[B0(V0(f[0]/l,1))+1,VCe(V0(f[1]/l,1))-1],g=m/l*f[0];return{layout:i,pixelDimIndex:a,layoutBase:t[n[a]],layoutLength:o,axisBase:t[n[1-a]],axisLength:t[r[1-a]],axisExpandable:d,axisExpandWidth:l,axisCollapseWidth:m,axisExpandWindow:f,axisCount:c,winInnerIndices:h,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each(function(e){var t=[0,r.axisLength],n=+!!e.inverse;e.setExtent(t[n],t[1-n])}),L0(n,function(t,n){var a=(r.axisExpandable?GCe:WCe)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:HCe/2,vertical:0},c=[o[i].x+e.x,o[i].y+e.y],l=s[i],u=Dk();Mk(u,u,l),jk(u,u,c),this._axesLayout[t]={position:c,rotation:l,transform:u,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){n??=0,r??=e.count();var i=this._axesMap,a=this.dimensions,o=[],s=[];X(a,function(t){o.push(e.mapDimension(t)),s.push(i.get(t).model)});for(var c=this.hasAxisBrushed(),l=n;l<r;l++){var u=void 0;if(!c)u=`normal`;else{u=`active`;for(var d=e.getValues(o,l),f=0,p=a.length;f<p;f++)if(s[f].getActiveState(d[f])===`inactive`){u=`inactive`;break}}t(u,l)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)t.get(e[r]).model.getActiveState()!==`normal`&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return uR([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return ZD(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:`none`,axisExpandWindow:r};var o=e[n]-t.layoutBase-t.axisExpandWindow0Pos,s,c=`slide`,l=t.axisCollapseWidth,u=this._model.get(`axisExpandSlideTriggerArea`),d=u[0]!=null;if(l)d&&l&&o<i*u[0]?(c=`jump`,s=o-i*u[2]):d&&l&&o>i*(1-u[0])?(c=`jump`,s=o-i*(1-u[2])):(s=o-i*u[1])>=0&&(s=o-i*(1-u[1]))<=0&&(s=0),s*=t.axisExpandWidth/l,s?P0(s,r,a,`all`):c=`none`;else{var f=r[1]-r[0];r=[z0(0,a[1]*o/f-f/2)],r[1]=R0(a[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:c}},e}();function H0(e,t){return R0(z0(e,t[0]),t[1])}function WCe(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function GCe(e,t){var n=t.layoutLength,r=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,c=a,l=!1,u;return e<o[0]?(s=e*a,u=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],c=r,l=!0):(s=n-(i-1-e)*a,u=a),{position:s,axisNameAvailableWidth:c,axisLabelShow:l,nameTruncateMaxWidth:u}}function KCe(e,t){var n=[];return e.eachComponent(`parallel`,function(r,i){var a=new UCe(r,e,t);a.name=`parallel_`+i,a.resize(r,t),r.coordinateSystem=a,a.model=r,n.push(a)}),e.eachSeries(function(e){e.get(`coordinateSystem`)===`parallel`&&(e.coordinateSystem=e.getReferringComponents(`parallel`,PN).models[0].coordinateSystem)}),n}var qCe={create:KCe},U0=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return t.prototype.getAreaSelectStyle=function(){return qN([[`fill`,`color`],[`lineWidth`,`borderWidth`],[`stroke`,`borderColor`],[`width`,`width`],[`opacity`,`opacity`]])(this.getModel(`areaSelectStyle`))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=ZD(e);if(t)for(var n=t.length-1;n>=0;n--)$M(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return`normal`;if(e==null||isNaN(+e))return`inactive`;if(t.length===1){var n=t[0];if(n[0]<=e&&e<=n[1])return`active`}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return`active`;return`inactive`},t}(yB);nO(U0,Vq);var W0=!0,G0=Math.min,K0=Math.max,JCe=Math.pow,YCe=1e4,XCe=6,ZCe=6,q0=`globalPan`,QCe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},$Ce={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},J0={brushStyle:{lineWidth:2,stroke:$.color.backgroundTint,fill:$.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},ewe=0,Y0=function(e){J(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new zM,n._uid=`brushController_`+ ewe++,X(swe,function(e,t){this._handlers[t]=cO(e,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||Rbe(t,q0,this._uid),X(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=QD(ZD(J0),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;zbe(e,q0,this._uid),X(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};X(e,function(e){t[e.panelId]=ZD(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e||={},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Z(e,function(e){return QD(ZD(J0),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new XG(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:e2(i,r[t]=o==null?Z0(i,X0(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),i2(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ik);function X0(e,t){var n=S2[t.brushType].createCover(e,t);return n.__brushOption=t,$0(n,t),e.group.add(n),n}function Z0(e,t){var n=t2(t);return n.endCreating&&(n.endCreating(e,t),$0(t,t.__brushOption)),t}function Q0(e,t){var n=t.__brushOption;t2(t).updateCoverShape(e,t,n.range,n)}function $0(e,t){var n=t.z;n??=YCe,e.traverse(function(e){e.z=n,e.z2=n})}function e2(e,t){t2(t).updateCommon(e,t),Q0(e,t)}function t2(e){return S2[e.__brushOption.brushType]}function n2(e,t,n){var r=e._panels;if(!r)return W0;var i,a=e._transform;return X(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function r2(e,t){var n=e._panels;if(!n)return W0;var r=t.__brushOption.panelId;return r==null?W0:n[r]}function i2(e){var t=e._covers,n=t.length;return X(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function a2(e,t){var n=Z(e._covers,function(e){var t=e.__brushOption,n=ZD(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function twe(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return JCe(i*i+a*a,.5)>XCe}function o2(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function s2(e,t,n,r){var i=new zM;return i.add(new PF({name:`main`,style:d2(n),silent:!0,draggable:!0,cursor:`move`,drift:lO(m2,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:lO(a2,t,{isEnd:!0})})),X(r,function(n){i.add(new PF({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:lO(m2,e,t,i,n),ondragend:lO(a2,t,{isEnd:!0})}))}),i}function c2(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=K0(i,ZCe),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;u2(e,t,`main`,o,s,m,h),r.transformable&&(u2(e,t,`w`,c,l,a,_),u2(e,t,`e`,f,l,a,_),u2(e,t,`n`,c,l,g,a),u2(e,t,`s`,c,p,g,a),u2(e,t,`nw`,c,l,a,a),u2(e,t,`ne`,f,l,a,a),u2(e,t,`sw`,c,p,a,a),u2(e,t,`se`,f,p,a,a))}function l2(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(d2(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),X([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?p2(e,n[0]):rwe(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?$Ce[a]+`-resize`:null})})}function u2(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(awe(g2(e,t,[[r,i],[r+a,i+o]])))}function d2(e){return eO({strokeNoScale:!0},e.brushStyle)}function f2(e,t,n,r){var i=[G0(e,n),G0(t,r)],a=[K0(e,n),K0(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function nwe(e){return lR(e.group)}function p2(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[dR({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],nwe(e))]}function rwe(e,t){var n=[p2(e,t[0]),p2(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function m2(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=h2(t,i,a);X(r,function(e){var t=QCe[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(f2(s[0][0],s[1][0],s[0][1],s[1][1])),e2(t,n),a2(t,{isEnd:!1})}function iwe(e,t,n,r){var i=t.__brushOption.range,a=h2(e,n,r);X(i,function(e){e[0]+=a[0],e[1]+=a[1]}),e2(e,t),a2(e,{isEnd:!1})}function h2(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function g2(e,t,n){var r=r2(e,t);return r&&r!==W0?r.clipPath(n,e._transform):ZD(n)}function awe(e){var t=G0(e[0][0],e[1][0]),n=G0(e[0][1],e[1][1]),r=K0(e[0][0],e[1][0]),i=K0(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function owe(e,t,n){if(!(!e._brushType||cwe(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=n2(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===W0||s.panelId===a.panelId)&&S2[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function _2(e){var t=e.event;t.preventDefault&&t.preventDefault()}function v2(e,t,n){return e.childOfName(`main`).contain(t,n)}function y2(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),twe(e)||i){if(a&&!i){o.brushMode===`single`&&i2(e);var c=ZD(o);c.brushType=b2(c.brushType,a),c.panelId=a===W0?null:a.panelId,i=e._creatingCover=X0(e,c),e._covers.push(i)}if(i){var l=S2[b2(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(g2(e,i,e._track)),r&&(Z0(e,i),l.updateCommon(e,i)),Q0(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&n2(e,t,n)&&i2(e)&&(s={isEnd:r,removeOnClick:!0});return s}function b2(e,t){return e===`auto`?t.defaultBrushType:e}var swe={mousedown:function(e){if(this._dragging)x2(this,e);else if(!e.target||!e.target.draggable){_2(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=n2(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(owe(this,e,r),this._dragging){_2(e);var i=y2(this,e,r,!1);i&&a2(this,i)}},mouseup:function(e){x2(this,e)}};function x2(e,t){if(e._dragging){_2(t);var n=t.offsetX,r=t.offsetY,i=y2(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&a2(e,i)}}function cwe(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var S2={lineX:C2(0),lineY:C2(1),rect:{createCover:function(e,t){function n(e){return e}return s2({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=o2(e);return f2(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){c2(e,t,n,r)},updateCommon:l2,contain:v2},polygon:{createCover:function(e,t){var n=new zM;return n.add(new SL({name:`main`,style:d2(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new xL({name:`main`,draggable:!0,drift:lO(iwe,e,t),ondragend:lO(a2,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:g2(e,t,n)})},updateCommon:l2,contain:v2}};function C2(e){return{createCover:function(t,n){return s2({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=o2(t);return[G0(n[0][e],n[1][e]),K0(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=r2(t,n);if(o!==W0&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),c2(t,n,c,i)},updateCommon:l2,contain:v2}}function w2(e){return e=D2(e),function(t){return mR(t,e)}}function T2(e,t){return e=D2(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function E2(e,t,n){var r=D2(e);return function(e,i){return r.contain(i[0],i[1])&&!vQ(e,t,n)}}function D2(e){return Jk.create(e)}var lwe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new Y0(n.getZr())).on(`brush`,cO(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!uwe(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new zM,this.group.add(this._axisGroup),e.get(`show`)){var a=fwe(e,t),o=a.coordinateSystem,s=e.getAreaSelectStyle(),c=s.width,l=e.axis.dim,u=o.getAxisLayout(l),d=Y({strokeContainThreshold:c},u),f=new kZ(e,n,d);f.build(),this._axisGroup.add(f.group),this._refreshBrushController(d,s,e,a,c,n),pR(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],c=Math.min(30,Math.abs(s)*.1),l=Jk.create({x:o[0],y:-i/2,width:s,height:i});l.x-=c,l.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:`pl`,clipPath:w2(l),isTargetByCursor:E2(l,a,r),getLinearBrushOtherExtent:T2(l,0)}]).enableBrush({brushType:`lineX`,brushStyle:t,removeOnClick:!0}).updateCovers(dwe(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=Z(t,function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`axisAreaSelect`,parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type=`parallelAxis`,t}(AH);function uwe(e,t,n){return n&&n.type===`axisAreaSelect`&&t.findComponents({mainType:`parallelAxis`,query:n})[0]===e}function dwe(e){var t=e.axis;return Z(e.activeIntervals,function(e){return{brushType:`lineX`,panelId:`pl`,range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function fwe(e,t){return t.getComponent(`parallel`,e.get(`parallelIndex`))}var pwe={type:`axisAreaSelect`,event:`axisAreaSelected`};function mwe(e){e.registerAction(pwe,function(e,t){t.eachComponent({mainType:`parallelAxis`,query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),e.registerAction(`parallelAxisExpand`,function(e,t){t.eachComponent({mainType:`parallel`,query:e},function(t){t.setAxisExpand(e)})})}var hwe={type:`value`,areaSelectStyle:{width:20,borderWidth:1,borderColor:`rgba(160,197,232)`,color:`rgba(160,197,232)`,opacity:.3},realtime:!0,z:10};function O2(e){e.registerComponentView(LCe),e.registerComponentModel(zCe),e.registerCoordinateSystem(`parallel`,qCe),e.registerPreprocessor(NCe),e.registerComponentModel(U0),e.registerComponentView(lwe),fZ(e,`parallel`,U0,hwe),mwe(e)}function gwe(e){qG(O2),e.registerChartView(TCe),e.registerSeriesModel(OCe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,MCe)}var _we=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),vwe=function(e){J(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new _we},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){SI(this)},t.prototype.downplay=function(){CI(this)},t}(SF),ywe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new zM,n._focusAdjacencyDisabled=!1,n}return t.prototype.init=function(e,t){this._controller=new yQ(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),a=this._mainGroup,o=e.layoutInfo,s=o.width,c=o.height,l=e.getData(),u=e.getData(`edge`),d=e.get(`orient`);this._model=e,a.removeAll(),a.x=o.x,a.y=o.y,this._updateViewCoordSys(e,n),OQ(e,n,a,this._controller,this._controllerHost,null),i.eachEdge(function(t){var n=new vwe,r=YF(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var i=t.getModel(),o=i.getModel(`lineStyle`),l=o.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=d,d===`vertical`?(x=(m==null?f.x:m*s)+b.sy,S=(h==null?f.y:h*c)+f.dy,C=(v==null?g.x:v*s)+b.ty,w=y==null?g.y:y*c,T=x,E=S*(1-l)+w*l,D=C,O=S*l+w*(1-l)):(x=(m==null?f.x:m*s)+f.dx,S=(h==null?f.y:h*c)+b.sy,C=v==null?g.x:v*s,w=(y==null?g.y:y*c)+b.ty,T=x*(1-l)+C*l,E=S,D=x*l+C*(1-l),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(o.getItemStyle()),k2(n.style,d,t);var k=``+i.get(`value`),A=LR(i,`edgeLabel`);IR(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,SO(a,A.normal&&A.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var j=i.getModel(`emphasis`);RI(n,i,`lineStyle`,function(e){var n=e.getItemStyle();return k2(n,d,t),n}),a.add(n),u.setItemGraphicEl(t.dataIndex,n);var M=j.get(`focus`);FI(n,M===`adjacency`?t.getAdjacentDataIndices():M===`trajectory`?t.getTrajectoryDataIndices():M,j.get(`blurScope`),j.get(`disabled`))}),i.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),i=r.get(`localX`),o=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new PF({shape:{x:i==null?n.x:i*s,y:o==null?n.y:o*c,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});IR(f,LR(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),RI(f,r),a.add(f),l.setItemGraphicEl(t.dataIndex,f),YF(f).dataType=`node`;var p=u.get(`focus`);FI(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),l.eachItemGraphicEl(function(t,i){l.getItemModel(i).get(`draggable`)&&(t.drift=function(t,a){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=a,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:l.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/c})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&a.setClipPath(bwe(a.getBoundingRect(),e,function(){a.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(e,t){var n=e.layoutInfo,r=n.width,i=n.height,a=e.coordinateSystem=new g$(null,{api:t,ecModel:e.ecModel});a.zoomLimit=e.get(`scaleLimit`),a.setBoundingRect(0,0,r,i),a.setCenter(e.get(`center`)),a.setZoom(e.get(`zoom`)),this._controllerHost.target.attr({x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY})},t.type=`sankey`,t}(NH);function k2(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);dO(r)&&dO(i)&&(e.fill=new AL(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function bwe(e,t,n){var r=new PF({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return WL(r,{shape:{width:e.width+20}},t,n),r}var xwe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o<i.length;o++)i[o].depth!=null&&i[o].depth>=0&&(a[i[o].depth]=new $R(i[o],this,t));return w0(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return fH(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}else{var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return fH(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.type=`series.sankey`,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`5%`,top:`5%`,right:`20%`,bottom:`5%`,orient:`horizontal`,nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:`global`,center:null,zoom:1,label:{show:!0,position:`right`,fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:`justify`,lineStyle:{color:$.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:$.color.primary}},animationEasing:`linear`,animationDuration:1e3},t}(EH);function Swe(e,t){e.eachSeriesByType(`sankey`,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=pB(e,t).refContainer,a=uB(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;wwe(l),Cwe(l,u,n,r,o,s,aO(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function Cwe(e,t,n,r,i,a,o,s,c){Twe(e,t,n,i,a,s,c),kwe(e,t,a,i,r,o,s),Rwe(e,s)}function wwe(e){X(e,function(e){var t=P2(e.outEdges,N2),n=P2(e.inEdges,N2),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function Twe(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f<t.length;f++)s[f]=1;for(var f=0;f<e.length;f++)c[f]=e[f].inEdges.length,c[f]===0&&l.push(e[f]);for(var p=-1;l.length;){for(var m=0;m<l.length;m++){var h=l[m],g=h.hostGraph.data.getRawDataItem(h.dataIndex),_=g.depth!=null&&g.depth>=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;v<h.outEdges.length;v++){var y=h.outEdges[v],b=t.indexOf(y);s[b]=0;var x=y.node2,S=e.indexOf(x);--c[S]===0&&u.indexOf(x)<0&&u.push(x)}}++d,l=u,u=[]}for(var f=0;f<s.length;f++)if(s[f]===1)throw Error(`Sankey is a DAG, the original data has cycle!`);var C=p>d-1?p:d-1;o&&o!==`left`&&Ewe(e,o,a,C),Owe(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function A2(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function Ewe(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var c=a[s];c.setLayout({skNodeHeight:o},!0);for(var l=0;l<c.inEdges.length;l++){var u=c.inEdges[l];i.indexOf(u.node1)<0&&i.push(u.node1)}}a=i,i=[],++o}X(e,function(e){A2(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)})}else t===`justify`&&Dwe(e,r)}function Dwe(e,t){X(e,function(e){!A2(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function Owe(e,t,n){X(e,function(e){var r=e.getLayout().depth*t;n===`vertical`?e.setLayout({y:r},!0):e.setLayout({x:r},!0)})}function kwe(e,t,n,r,i,a,o){var s=Awe(e,o);jwe(s,t,n,r,i,o),j2(s,i,n,r,o);for(var c=1;a>0;a--)c*=.99,Mwe(s,c,o),j2(s,i,n,r,o),Lwe(s,c,o),j2(s,i,n,r,o)}function Awe(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=LN(e,function(e){return e.getLayout()[r]});return i.keys.sort(function(e,t){return e-t}),X(i.keys,function(e){n.push(i.buckets.get(e))}),n}function jwe(e,t,n,r,i,a){var o=1/0;X(e,function(e){var t=e.length,s=0;X(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c<o&&(o=c)}),X(e,function(e){X(e,function(e,t){var n=e.getLayout().value*o;a===`vertical`?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))})}),X(t,function(e){var t=+e.getValue()*o;e.setLayout({dy:t},!0)})}function j2(e,t,n,r,i){var a=i===`vertical`?`x`:`y`;X(e,function(e){e.sort(function(e,t){return e.getLayout()[a]-t.getLayout()[a]});for(var o,s,c,l=0,u=e.length,d=i===`vertical`?`dx`:`dy`,f=0;f<u;f++)s=e[f],c=l-s.getLayout()[a],c>0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function Mwe(e,t,n){X(e.slice().reverse(),function(e){X(e,function(e){if(e.outEdges.length){var r=P2(e.outEdges,Nwe,n)/P2(e.outEdges,N2);if(isNaN(r)){var i=e.outEdges.length;r=i?P2(e.outEdges,Pwe,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-M2(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-M2(e,n))*t;e.setLayout({y:o},!0)}}})})}function Nwe(e,t){return M2(e.node2,t)*e.getValue()}function Pwe(e,t){return M2(e.node2,t)}function Fwe(e,t){return M2(e.node1,t)*e.getValue()}function Iwe(e,t){return M2(e.node1,t)}function M2(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function N2(e){return e.getValue()}function P2(e,t,n){for(var r=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],n);isNaN(o)||(r+=o)}return r}function Lwe(e,t,n){X(e,function(e){X(e,function(e){if(e.inEdges.length){var r=P2(e.inEdges,Fwe,n)/P2(e.inEdges,N2);if(isNaN(r)){var i=e.inEdges.length;r=i?P2(e.inEdges,Iwe,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-M2(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-M2(e,n))*t;e.setLayout({y:o},!0)}}})})}function Rwe(e,t){var n=t===`vertical`?`x`:`y`;X(e,function(e){e.outEdges.sort(function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]}),e.inEdges.sort(function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]})}),X(e,function(e){var t=0,n=0;X(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),X(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})}function zwe(e){e.eachSeriesByType(`sankey`,function(e){var t=e.getGraph(),n=t.nodes,r=t.edges;if(n.length){var i=1/0,a=-1/0;X(n,function(e){var t=e.getLayout().value;t<i&&(i=t),t>a&&(a=t)}),X(n,function(t){var n=new o1({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&X(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function Bwe(e){e.registerChartView(ywe),e.registerSeriesModel(xwe),e.registerLayout(Swe),e.registerVisual(zwe),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:`series`,subType:`sankey`,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),e.registerAction({type:`sankeyRoam`,event:`sankeyRoam`,update:`none`},function(e,t,n){t.eachComponent({mainType:`series`,subType:`sankey`,query:e},function(t){var n=t.coordinateSystem,r=AQ(n,e,t.get(`scaleLimit`));t.setCenter(r.center),t.setZoom(r.zoom)})})}var F2=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},e.prototype.getInitialData=function(e,t){var n,r=t.getComponent(`xAxis`,this.get(`xAxisIndex`)),i=t.getComponent(`yAxis`,this.get(`yAxisIndex`)),a=r.get(`type`),o=i.get(`type`),s;a===`category`?(e.layout=`horizontal`,n=r.getOrdinalMeta(),s=!this._hasEncodeRule(`x`)):o===`category`?(e.layout=`vertical`,n=i.getOrdinalMeta(),s=!this._hasEncodeRule(`y`)):e.layout=e.layout||`horizontal`;var c=[`x`,`y`],l=e.layout===`horizontal`?0:1,u=this._baseAxisDim=c[l],d=c[1-l],f=[r,i],p=f[l].get(`type`),m=f[1-l].get(`type`),h=e.data;if(h&&s){var g=[];X(h,function(e,t){var n;Q(e)?(n=e.slice(),e.unshift(t)):Q(e.value)?(n=Y({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,g.push(n)}),e.data=g}var _=this.defaultValueDimensions,v=[{name:u,type:eK(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:d,type:eK(m),dimsDef:_.slice()}];return eZ(this,{coordDimensions:v,dimensionsCount:_.length+1,encodeDefaulter:lO(FB,v,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+`Axis`,this.get(e+`AxisIndex`)).axis},e}(),I2=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`min`,defaultTooltip:!0},{name:`Q1`,defaultTooltip:!0},{name:`median`,defaultTooltip:!0},{name:`Q3`,defaultTooltip:!0},{name:`max`,defaultTooltip:!0}],n.visualDrawType=`stroke`,n}return t.type=`series.boxplot`,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:$.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:$.color.shadow}},animationDuration:800},t}(EH);nO(I2,F2,!0);var Vwe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o=+(e.get(`layout`)===`horizontal`);r.diff(a).add(function(e){if(r.hasValue(e)){var t=L2(r.getItemLayout(e),r,e,o,!0);r.setItemGraphicEl(e,t),i.add(t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!r.hasValue(e)){i.remove(n);return}var s=r.getItemLayout(e);n?(YL(n),R2(s,n,r,e)):n=L2(s,r,e,o),i.add(n),r.setItemGraphicEl(e,n)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&i.remove(t)}).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.type=`boxplot`,t}(NH),Hwe=function(){function e(){}return e}(),Uwe=function(e){J(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`boxplotBoxPath`,n}return t.prototype.getDefaultShape=function(){return new Hwe},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(SF);function L2(e,t,n,r,i){var a=e.ends,o=new Uwe({shape:{points:i?Wwe(a,r,e):a}});return R2(e,o,t,n,i),o}function R2(e,t,n,r,i){var a=n.hostModel,o=XL[i?`initProps`:`updateProps`];o(t,{shape:{points:e.ends}},a,r),t.useStyle(n.getItemVisual(r,`style`)),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),c=s.getModel(`emphasis`);RI(t,s),FI(t,c.get(`focus`),c.get(`blurScope`),c.get(`disabled`))}function Wwe(e,t,n){return Z(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}var z2=X;function Gwe(e){z2(Kwe(e),function(e){var t=e.seriesModels;t.length&&(qwe(e),z2(t,function(t,n){Jwe(t,e.boxOffsetList[n],e.boxWidthList[n])}))})}function Kwe(e){var t=[],n=[];return e.eachSeriesByType(`boxplot`,function(e){var r=e.getBaseAxis(),i=tO(n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)}),t}function qwe(e){var t=e.axis,n=e.seriesModels,r=n.length,i=e.boxWidthList=[],a=e.boxOffsetList=[],o=[],s;if(t.type===`category`)s=t.getBandWidth();else{var c=0;z2(n,function(e){c=Math.max(c,e.getData().count())});var l=t.getExtent();s=Math.abs(l[1]-l[0])/c}z2(n,function(e){var t=e.get(`boxWidth`);Q(t)||(t=[t,t]),o.push([XM(t[0],s)||0,XM(t[1],s)||0])});var u=s*.8-2,d=u/r*.3,f=(u-d*(r-1))/r,p=f/2-u/2;z2(n,function(e,t){a.push(p),p+=d+f,i.push(Math.min(Math.max(f,o[t][0]),o[t][1]))})}function Jwe(e,t,n){var r=e.coordinateSystem,i=e.getData(),a=n/2,o=e.get(`layout`)===`horizontal`?0:1,s=1-o,c=[`x`,`y`],l=i.mapDimension(c[o]),u=i.mapDimensionsAll(c[s]);if(l==null||u.length<5)return;for(var d=0;d<i.count();d++){var f=i.get(l,d),p=y(f,u[2],d),m=y(f,u[0],d),h=y(f,u[1],d),g=y(f,u[3],d),_=y(f,u[4],d),v=[];b(v,h,!1),b(v,g,!0),v.push(m,h,_,g),x(v,m),x(v,_),x(v,p),i.setItemLayout(d,{initBaseline:p[s],ends:v})}function y(e,n,a){var c=i.get(n,a),l=[];l[o]=e,l[s]=c;var u;return isNaN(e)||isNaN(c)?u=[NaN,NaN]:(u=r.dataToPoint(l),u[o]+=t),u}function b(e,t,n){var r=t.slice(),i=t.slice();r[o]+=a,i[o]-=a,n?e.push(r,i):e.push(i,r)}function x(e,t){var n=t.slice(),r=t.slice();n[o]-=a,r[o]+=a,e.push(n,r)}}function Ywe(e,t){t||={};for(var n=[],r=[],i=t.boundIQR,a=i===`none`||i===0,o=0;o<e.length;o++){var s=$M(e[o].slice()),c=sN(s,.25),l=sN(s,.5),u=sN(s,.75),d=s[0],f=s[s.length-1],p=(i??1.5)*(u-c),m=a?d:Math.max(d,c-p),h=a?f:Math.min(f,u+p),g=t.itemNameFormatter,_=uO(g)?g({value:o}):dO(g)?g.replace(`{value}`,o+``):o+``;n.push([_,m,c,l,u,h]);for(var v=0;v<s.length;v++){var y=s[v];if(y<m||y>h){var b=[_,y];r.push(b)}}}return{boxData:n,outliers:r}}var Xwe={type:`echarts:boxplot`,transform:function(e){var t=e.upstream;t.sourceFormat!==`arrayRows`&&gN(``);var n=Ywe(t.getRawData(),e.config);return[{dimensions:[`ItemName`,`Low`,`Q1`,`Q2`,`Q3`,`High`],data:n.boxData},{data:n.outliers}]}};function Zwe(e){e.registerSeriesModel(I2),e.registerChartView(Vwe),e.registerLayout(Gwe),e.registerTransform(Xwe)}var Qwe=[`itemStyle`,`borderColor`],$we=[`itemStyle`,`borderColor0`],eTe=[`itemStyle`,`borderColorDoji`],tTe=[`itemStyle`,`color`],nTe=[`itemStyle`,`color0`];function B2(e,t){return t.get(e>0?tTe:nTe)}function V2(e,t){return t.get(e===0?eTe:e>0?Qwe:$we)}var rTe={seriesType:`candlestick`,plan:jH(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;(n=e.next())!=null;){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=B2(i,r),a.stroke=V2(i,r)||a.fill,Y(t.ensureUniqueItemVisual(n,`style`),a)}}}}},iTe=[`color`,`borderColor`],aTe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){wR(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout(`isSimpleBox`),a=e.get(`clip`,!0),o=e.coordinateSystem,s=o.getArea&&o.getArea();this._data||r.removeAll(),t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n);if(a&&U2(s,o))return;var c=H2(o,n,!0);WL(c,{shape:{points:o.ends}},e,n),W2(c,t,n,i),r.add(c),t.setItemGraphicEl(n,c)}}).update(function(o,c){var l=n.getItemGraphicEl(c);if(!t.hasValue(o)){r.remove(l);return}var u=t.getItemLayout(o);if(a&&U2(s,u)){r.remove(l);return}l?(UL(l,{shape:{points:u.ends}},e,o),YL(l)):l=H2(u,o),W2(l,t,o,i),r.add(l),t.setItemGraphicEl(o,l)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),K2(e,this.group);var t=e.get(`clip`,!0)?mX(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i;(i=e.next())!=null;){var a=H2(n.getItemLayout(i),i);W2(a,n,i,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){K2(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type=`candlestick`,t}(NH),oTe=function(){function e(){}return e}(),sTe=function(e){J(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new oTe},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(SF);function H2(e,t,n){var r=e.ends;return new sTe({shape:{points:n?cTe(r,e):r},z2:100})}function U2(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function W2(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,`style`)),e.style.strokeNoScale=!0,e.__simpleBox=r,RI(e,i);var a=t.getItemLayout(n).sign;X(e.states,function(e,t){var n=i.getModel(t),r=B2(a,n),o=V2(a,n)||r,s=e.style||={};r&&(s.fill=r),o&&(s.stroke=o)});var o=i.getModel(`emphasis`);FI(e,o.get(`focus`),o.get(`blurScope`),o.get(`disabled`))}function cTe(e,t){return Z(e,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var lTe=function(){function e(){}return e}(),G2=function(e){J(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new lTe},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(SF);function K2(e,t,n,r){var i=e.getData(),a=i.getLayout(`largePoints`),o=new G2({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new G2({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var c=new G2({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(c),q2(1,o,e,i),q2(-1,s,e,i),q2(0,c,e,i),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function q2(e,t,n,r){var i=V2(e,n)||B2(e,n),a=n.getModel(`itemStyle`).getItemStyle(iTe);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var J2=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`open`,defaultTooltip:!0},{name:`close`,defaultTooltip:!0},{name:`lowest`,defaultTooltip:!0},{name:`highest`,defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return`open`},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type=`series.candlestick`,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:`#eb5454`,color0:`#47b262`,borderColor:`#eb5454`,borderColor0:`#47b262`,borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:`mod`,animationEasing:`linear`,animationDuration:300},t}(EH);nO(J2,F2,!0);function uTe(e){!e||!Q(e.series)||X(e.series,function(e){mO(e)&&e.type===`k`&&(e.type=`candlestick`)})}var dTe={seriesType:`candlestick`,plan:jH(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=fTe(e,n),i=0,a=1,o=[`x`,`y`],s=n.getDimensionIndex(n.mapDimension(o[i])),c=Z(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),l=c[0],u=c[1],d=c[2],f=c[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||c.length<4)return;return{progress:e.pipelineContext.large?m:p};function p(e,n){for(var o,c=n.getStore();(o=e.next())!=null;){var p=c.get(s,o),m=c.get(l,o),h=c.get(u,o),g=c.get(d,o),_=c.get(f,o),v=Math.min(m,h),y=Math.max(m,h),b=E(v,p),x=E(y,p),S=E(g,p),C=E(_,p),w=[];D(w,x,0),D(w,b,1),w.push(k(C),k(x),k(S),k(b));var T=!!n.getItemModel(o).get([`itemStyle`,`borderColorDoji`]);n.setItemLayout(o,{sign:Y2(c,o,m,h,u,T),initBaseline:m>h?x[a]:b[a],ends:w,brushRect:O(g,_,p)})}function E(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var a=t.slice(),o=t.slice();a[i]=cR(a[i]+r/2,1,!1),o[i]=cR(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function O(e,t,n){var o=E(e,n),s=E(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function k(e){return e[i]=cR(e[i],1),e}}function m(n,r){for(var o=cq(n.count*4),c=0,p,m=[],h=[],g,_=r.getStore(),v=!!e.get([`itemStyle`,`borderColorDoji`]);(g=n.next())!=null;){var y=_.get(s,g),b=_.get(l,g),x=_.get(u,g),S=_.get(d,g),C=_.get(f,g);if(isNaN(y)||isNaN(S)||isNaN(C)){o[c++]=NaN,c+=3;continue}o[c++]=Y2(_,g,b,x,u,v),m[i]=y,m[a]=S,p=t.dataToPoint(m,null,h),o[c++]=p?p[0]:NaN,o[c++]=p?p[1]:NaN,m[a]=C,p=t.dataToPoint(m,null,h),o[c++]=p?p[1]:NaN}r.setLayout(`largePoints`,o)}}};function Y2(e,t,n,r,i,a){return n>r?-1:n<r?1:a?0:t>0?e.get(i,t-1)<=r?1:-1:1}function fTe(e,t){var n=e.getBaseAxis(),r,i=n.type===`category`?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),a=XM(xO(e.get(`barMaxWidth`),i),i),o=XM(xO(e.get(`barMinWidth`),1),i),s=e.get(`barWidth`);return s==null?Math.max(Math.min(i/2,a),o):XM(s,i)}function pTe(e){e.registerChartView(aTe),e.registerSeriesModel(J2),e.registerPreprocessor(uTe),e.registerVisual(rTe),e.registerLayout(dTe)}function X2(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType===`stroke`?n:null,fill:t.brushType===`fill`?n:null}})})}var mTe=function(e){J(t,e);function t(t,n){var r=e.call(this)||this,i=new $Y(t,n),a=new zM;return r.add(i),r.add(a),r.updateData(t,n),r}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a<r;a++){var o=pU(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/r*e.period+e.effectOffset;o.animate(``,!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(o)}X2(i,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=[`symbolType`,`period`,`rippleScale`,`rippleNumber`],i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}X2(n,e)},t.prototype.highlight=function(){SI(this)},t.prototype.downplay=function(){CI(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),a=e.getItemModel(t),o=e.getItemVisual(t,`symbol`),s=mU(e.getItemVisual(t,`symbolSize`)),c=e.getItemVisual(t,`style`),l=c&&c.fill,u=a.getModel(`emphasis`);i.setScale(s),i.traverse(function(e){e.setStyle(`fill`,l)});var d=hU(e.getItemVisual(t,`symbolOffset`),s);d&&(i.x=d[0],i.y=d[1]),i.rotation=(e.getItemVisual(t,`symbolRotate`)||0)*Math.PI/180||0;var f={};f.showEffectOn=r.get(`showEffectOn`),f.rippleScale=a.get([`rippleEffect`,`scale`]),f.brushType=a.get([`rippleEffect`,`brushType`]),f.period=a.get([`rippleEffect`,`period`])*1e3,f.effectOffset=t/e.count(),f.z=r.getShallow(`z`)||0,f.zlevel=r.getShallow(`zlevel`)||0,f.symbolType=o,f.color=l,f.rippleEffectColor=a.get([`rippleEffect`,`color`]),f.rippleNumber=a.get([`rippleEffect`,`number`]),f.showEffectOn===`render`?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){e===`emphasis`?f.showEffectOn!==`render`&&n.startEffectAnimation(f):e===`normal`&&f.showEffectOn!==`render`&&n.stopEffectAnimation()}),this._effectCfg=f,FI(this,u.get(`focus`),u.get(`blurScope`),u.get(`disabled`))},t.prototype.fadeOut=function(e){e&&e()},t}(zM),hTe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._symbolDraw=new rX(mTe)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(i.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get(`clip`,!0)?n:null},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=wX(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=kde(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type=`effectScatter`,t}(NH),gTe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return zK(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type=`series.effectScatter`,t.dependencies=[`grid`,`polar`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,effectType:`ripple`,progressive:0,showEffectOn:`render`,clip:!0,rippleEffect:{period:4,scale:2.5,brushType:`fill`,number:3},universalTransition:{divideShape:`clone`},symbolSize:10},t}(EH);function _Te(e){e.registerChartView(hTe),e.registerSeriesModel(gTe),e.registerLayout(wX(`effectScatter`))}var Z2=function(e){J(t,e);function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return t.prototype.createLine=function(e,t,n){return new i0(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel(`effect`),r=n.get(`symbolSize`),i=n.get(`symbol`);Q(r)||(r=[r,r]);var a=e.getItemVisual(t,`style`),o=n.get(`color`)||a&&a.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),s=pU(i,-.5,-.5,1,1,o),s.z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle(`shadowColor`,o),s.setStyle(n.getItemStyle([`color`])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(o),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=e.getItemLayout(n),a=t.get(`period`)*1e3,o=t.get(`loop`),s=t.get(`roundTrip`),c=t.get(`constantSpeed`),l=bO(t.get(`delay`),function(t){return t/e.count()*a/3});if(r.ignore=!0,this._updateAnimationPoints(r,i),c>0&&(a=this._getLineLength(r)/c*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var u=void 0;u=uO(l)?l(n):l,r.__t>0&&(u=-a*r.__t),this._animateSymbol(r,a,u,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate(``,r).when(i?t*2:t,{__t:i?2:1}).delay(n).during(function(){a._updateSymbolPosition(e)});r||o.done(function(){a.remove(e)}),o.start()}},t.prototype._getLineLength=function(e){return ZO(e.__p1,e.__cp1)+ZO(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=MA,c=NA;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var l=e.__t<1?c(t[0],r[0],n[0],i):c(n[0],r[0],t[0],1-i),u=e.__t<1?c(t[1],r[1],n[1],i):c(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(u,l)-Math.PI/2,(this._symbolType===`line`||this._symbolType===`rect`||this._symbolType===`roundRect`)&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=ZO(o,a)*1.05,i===1&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):e.__lastT===1?e.scaleY=2*ZO(t,a):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=a[0],e.y=a[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel(`effect`);this._updateEffectAnimation(e,n,t)},t}(zM),Q2=function(e){J(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return t.prototype._createPolyline=function(e,t,n){var r=new SL({shape:{points:e.getItemLayout(t)}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;UL(this.childAt(0),{shape:{points:e.getItemLayout(t)}},r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var l=i.getModel(`emphasis`);a=l.getModel(`lineStyle`).getLineStyle(),c=l.get(`disabled`),o=l.get(`focus`),s=l.get(`blurScope`)}r.useStyle(e.getItemVisual(t,`style`)),r.style.fill=null,r.style.strokeNoScale=!0;var u=r.ensureState(`emphasis`);u.style=a,FI(this,o,s,c)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape(`points`,e.getItemLayout(t))},t}(zM),vTe=function(e){J(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return t.prototype.createLine=function(e,t,n){return new Q2(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var a=t[i-1],o=t[i];r+=ZO(a,o),n.push(r)}if(r===0){this._length=0;return}for(var i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var a=this._lastFrame,o;if(t<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=t);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>t);o++);o=Math.min(o-1,i-2)}var s=(t-r[o])/(r[o+1]-r[o]),c=n[o],l=n[o+1];e.x=c[0]*(1-s)+s*l[0],e.y=c[1]*(1-s)+s*l[1];var u=e.__t<1?l[0]-c[0]:c[0]-l[0],d=e.__t<1?l[1]-c[1]:c[1]-l[1];e.rotation=-Math.atan2(d,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(Z2),yTe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),bTe=function(e){J(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:$.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new yTe},t.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness,i;if(t.polyline)for(i=this._off;i<n.length;){var a=n[i++];if(a>0){e.moveTo(n[i++],n[i++]);for(var o=1;o<a;o++)e.lineTo(n[i++],n[i++])}}else for(i=this._off;i<n.length;){var s=n[i++],c=n[i++],l=n[i++],u=n[i++];if(e.moveTo(s,c),r>0){var d=(s+l)/2-(c-u)*r,f=(c+u)/2-(l-s)*r;e.quadraticCurveTo(d,f,l,u)}else e.lineTo(l,u)}this.incremental&&(this._off=i,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<r.length;){var c=r[s++];if(c>0)for(var l=r[s++],u=r[s++],d=1;d<c;d++){var f=r[s++],p=r[s++];if(QP(l,u,f,p,a,e,t))return o}o++}else for(var o=0,s=0;s<r.length;){var l=r[s++],u=r[s++],f=r[s++],p=r[s++];if(i>0){if(eF(l,u,(l+f)/2-(u-p)*i,(u+p)/2-(f-l)*i,f,p,a,e,t))return o}else if(QP(l,u,f,p,a,e,t))return o;o++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o<t.length;){var s=t[o++],c=t[o++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(c,r),a=Math.max(c,a)}e=this._rect=new Jk(n,r,i,a)}return e},t}(SF),xTe=function(){function e(){this.group=new zM}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout(`linesPoints`)}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],r=t.getLayout(`linesPoints`),i=n&&n.shape.segs;if(i&&i.length<2e4){var a=i.length,o=new Float32Array(a+r.length);o.set(i),o.set(r,a),n.setShape({segs:o})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new bTe({cursor:`default`,ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get(`polyline`),curveness:r.get([`lineStyle`,`curveness`])}),e.useStyle(r.getModel(`lineStyle`).getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual(`style`);i&&i.stroke&&e.setStyle(`stroke`,i.stroke),e.setStyle(`fill`,null);var a=YF(e);a.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){a.dataIndex=null;var n=e.hoverDataIdx;n>0&&(a.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),$2={seriesType:`lines`,plan:jH(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get(`polyline`),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,c=i.end-i.start;if(n){for(var l=0,u=i.start;u<i.end;u++)l+=e.getLineCoordsCount(u);s=new Float32Array(c+l*2)}else s=new Float32Array(c*4);for(var d=0,f=[],u=i.start;u<i.end;u++){var p=e.getLineCoords(u,o);n&&(s[d++]=p);for(var m=0;m<p;m++)f=t.dataToPoint(o[m],!1,f),s[d++]=f[0],s[d++]=f[1]}a.setLayout(`linesPoints`,s)}else for(var u=i.start;u<i.end;u++){var h=a.getItemModel(u),p=e.getLineCoords(u,o),g=[];if(n)for(var _=0;_<p;_++)g.push(t.dataToPoint(o[_]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var v=h.get([`lineStyle`,`curveness`]);+v&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*v,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*v])}a.setItemLayout(u,g)}}}}}},STe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),a=e.get(`zlevel`),o=e.get([`effect`,`trailLength`]),s=n.getZr(),c=s.painter.getType()===`svg`;c||s.painter.getLayer(a).clear(!0),this._lastZlevel!=null&&!c&&s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o>0&&(c||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),i.updateData(r);var l=e.get(`clip`,!0)&&mX(e.coordinateSystem,!1,e);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var a=$2.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get(`polyline`),a=t.pipelineContext.large;return(!n||r!==this._hasEffet||i!==this._isPolyline||a!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=a?new xTe:new a0(i?r?vTe:Q2:r?Z2:i0),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get([`effect`,`show`])},t.prototype._clearLayer=function(e){var t=e.getZr();t.painter.getType()!==`svg`&&this._lastZlevel!=null&&t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type=`lines`,t}(NH),CTe=typeof Uint32Array>`u`?Array:Uint32Array,wTe=typeof Float64Array>`u`?Array:Float64Array;function e4(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Z(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),$D([t,e[0],e[1]])}))}var TTe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath=`lineStyle`,n.visualDrawType=`stroke`,n}return t.prototype.init=function(t){t.data=t.data||[],e4(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(e4(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=MO(this._flatCoords,t.flatCoords),this._flatCoordsOffset=MO(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow(`coords`)},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],r=this._flatCoordsOffset[e*2+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+i*2],t[i][1]=this._flatCoords[n+i*2+1];return r}else{for(var a=this._getCoordsFromItemModel(e),i=0;i<a.length;i++)t[i]=t[i]||[],t[i][0]=a[i][0],t[i][1]=a[i][1];return a.length}},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),pO(e[0])){for(var n=e.length,r=new CTe(n),i=new wTe(n),a=0,o=0,s=0,c=0;c<n;){s++;var l=e[c++];r[o++]=a+t,r[o++]=l;for(var u=0;u<l;u++){var d=e[c++],f=e[c++];i[a++]=d,i[a++]=f}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new wK([`value`],this);return n.hasItemOption=!1,n.initData(e.data,[],function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;if(a!=null)return a instanceof Array?a[i]:a}),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().getItemModel(e),i=r.get(`name`);if(i)return i;var a=r.get(`fromName`),o=r.get(`toName`),s=[];return a!=null&&s.push(a),o!=null&&s.push(o),fH(`nameValue`,{name:s.join(` > `)})},t.prototype.preventIncremental=function(){return!!this.get([`effect`,`show`])},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get(`progressiveThreshold`))},t.prototype.getZLevelKey=function(){var e=this.getModel(`effect`),t=e.get(`trailLength`);return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get(`show`)&&t>0?t+``:``},t.type=`series.lines`,t.dependencies=[`grid`,`polar`,`geo`,`calendar`],t.defaultOption={coordinateSystem:`geo`,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:[`none`,`none`],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:`circle`,symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:`end`},lineStyle:{opacity:.5}},t}(EH);function t4(e){return e instanceof Array||(e=[e,e]),e}var ETe={seriesType:`lines`,reset:function(e){var t=t4(e.get(`symbol`)),n=t4(e.get(`symbolSize`)),r=e.getData();r.setVisual(`fromSymbol`,t&&t[0]),r.setVisual(`toSymbol`,t&&t[1]),r.setVisual(`fromSymbolSize`,n&&n[0]),r.setVisual(`toSymbolSize`,n&&n[1]);function i(e,t){var n=e.getItemModel(t),r=t4(n.getShallow(`symbol`,!0)),i=t4(n.getShallow(`symbolSize`,!0));r[0]&&e.setItemVisual(t,`fromSymbol`,r[0]),r[1]&&e.setItemVisual(t,`toSymbol`,r[1]),i[0]&&e.setItemVisual(t,`fromSymbolSize`,i[0]),i[1]&&e.setItemVisual(t,`toSymbolSize`,i[1])}return{dataEach:r.hasItemOption?i:null}}};function DTe(e){e.registerChartView(STe),e.registerSeriesModel(TTe),e.registerLayout($2),e.registerVisual(ETe)}var OTe=256,kTe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=BD.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p<f;++p){var m=e[p],h=m[0],g=m[1],_=m[2],v=r(_);d.globalAlpha=v,d.drawImage(o,h-l,g-l)}if(!u.width||!u.height)return u;for(var y=d.getImageData(0,0,u.width,u.height),b=y.data,x=0,S=b.length,C=this.minOpacity,w=this.maxOpacity-C;x<S;){var v=b[x+3]/256,T=Math.floor(v*(OTe-1))*4;if(v>0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=BD.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=$.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function ATe(e,t,n){var r=e[1]-e[0];t=Z(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){var r;for(r=a;r<i;r++){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}if(r===i)for(r=a-1;r>=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r<i&&n[r]}}function jTe(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function n4(e){var t=e.dimensions;return t[0]===`lng`&&t[1]===`lat`}var MTe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):n4(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(n4(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){wR(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=hX(a,`cartesian2d`),s=hX(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=f.getBandWidth()+.5,l=p.getBandWidth()+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=LR(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;E<r;E++){var D=void 0,O=h.getItemVisual(E,`style`);if(o){var k=h.get(T[0],E),A=h.get(T[1],E);if(isNaN(h.get(T[2],E))||isNaN(k)||isNaN(A)||k<u[0]||k>u[1]||A<d[0]||A>d[1])continue;var j=a.dataToPoint([k,A]);D=new PF({shape:{x:j[0]-c/2,y:j[1]-l/2,width:c,height:l},style:O})}else if(s){var M=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(yO(M.x))continue;D=new PF({z2:1,shape:M,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var N=a.dataToLayout([h.get(T[0],E)]),M=N.contentRect||N.rect;if(yO(M.x)||yO(M.y))continue;D=new PF({z2:1,shape:M,style:O})}if(h.hasItemOption){var P=h.getItemModel(E),F=P.getModel(`emphasis`);g=F.getModel(`itemStyle`).getItemStyle(),_=P.getModel([`blur`,`itemStyle`]).getItemStyle(),v=P.getModel([`select`,`itemStyle`]).getItemStyle(),y=P.get([`itemStyle`,`borderRadius`]),S=F.get(`focus`),C=F.get(`blurScope`),w=F.get(`disabled`),b=LR(P)}D.shape.r=y;var I=e.getRawValue(E),L=`-`;I&&I[2]!=null&&(L=I[2]+``),IR(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:L}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,FI(D,S,C,w),D.incremental=i,i&&(D.states.emphasis.hoverLayer=!0),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new kTe;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?jTe(v,n.option.range):ATe(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new OF({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(NH),NTe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return zK(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=Xz.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:$.color.primary}}},t}(EH);function PTe(e){e.registerChartView(MTe),e.registerSeriesModel(NTe)}var FTe=[`itemStyle`,`borderWidth`],r4=[{xy:`x`,wh:`width`,index:0,posDesc:[`left`,`right`]},{xy:`y`,wh:`height`,index:1,posDesc:[`top`,`bottom`]}],i4=new aL,ITe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),c=o.master.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:s,valueDim:r4[+s],categoryDim:r4[1-s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=a4(i,e,f4(i,e),l),n=p4(i,l,t);i.setItemGraphicEl(e,n),r.add(n),v4(n,l,t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e)){r.remove(n);return}var o=a4(i,e,f4(i,e),l),s=h4(i,o);n&&s!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?UTe(n,l,o):n=p4(i,l,o,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=o,r.add(n),v4(n,l,o)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&m4(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get(`clip`,!0)?mX(e.coordinateSystem,!1,e):null;return u?r.setClipPath(u):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get(`animation`)?r&&r.eachItemGraphicEl(function(t){m4(r,YF(t).dataIndex,e,t)}):n.removeAll()},t.type=`pictorialBar`,t}(NH);function a4(e,t,n,r){var i=e.getItemLayout(t),a=n.get(`symbolRepeat`),o=n.get(`symbolClip`),s=n.get(`symbolPosition`)||`start`,c=(n.get(`symbolRotate`)||0)*Math.PI/180||0,l=n.get(`symbolPatternSize`)||2,u=n.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,`symbol`)||`circle`,style:e.getItemVisual(t,`style`),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get(`symbolRepeatDirection`),symbolPatternSize:l,rotation:c,animationModel:u?n:null,hoverScale:u&&n.get([`emphasis`,`scale`]),z2:n.getShallow(`z`,!0)||0};LTe(n,a,i,r,d),RTe(e,t,i,a,o,d.boundingLength,d.pxSign,l,r,d),zTe(n,d.symbolScale,c,r,d);var f=d.symbolSize;return BTe(n,f,i,a,o,hU(n.get(`symbolOffset`),f),s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function LTe(e,t,n,r,i){var a=r.valueDim,o=e.get(`symbolBoundingData`),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=s.toGlobalCoord(s.dataToCoord(0)),l=1-(n[a.wh]<=0),u;if(Q(o)){var d=[o4(s,o[0])-c,o4(s,o[1])-c];d[1]<d[0]&&d.reverse(),u=d[l]}else u=o==null?t?r.coordSysExtent[a.index][l]-c:n[a.wh]:o4(s,o)-c;i.boundingLength=u,t&&(i.repeatCutLength=n[a.wh]);var f=a.xy===`x`,p=s.inverse;i.pxSign=f&&!p||!f&&p?u>=0?1:-1:u>0?1:-1}function o4(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function RTe(e,t,n,r,i,a,o,s,c,l){var u=c.valueDim,d=c.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,`symbolSize`),m=Q(p)?p.slice():p==null?[`100%`,`100%`]:[p,p];m[d.index]=XM(m[d.index],f),m[u.index]=XM(m[u.index],r?f:Math.abs(a)),l.symbolSize=m;var h=l.symbolScale=[m[0]/s,m[1]/s];h[u.index]*=(c.isHorizontal?-1:1)*o}function zTe(e,t,n,r,i){var a=e.get(FTe)||0;a&&(i4.attr({scaleX:t[0],scaleY:t[1],rotation:n}),i4.updateTransform(),a/=i4.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function BTe(e,t,n,r,i,a,o,s,c,l,u,d){var f=u.categoryDim,p=u.valueDim,m=d.pxSign,h=Math.max(t[p.index]+s,0),g=h;if(r){var _=Math.abs(c),v=bO(e.get(`symbolMargin`),`15%`)+``,y=!1;v.lastIndexOf(`!`)===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=XM(v,t[p.index]),x=Math.max(h+b*2,0),S=y?0:b*2,C=uN(r),w=C?r:y4((_+S)/x);b=(_-w*h)/2/(y?w:Math.max(w-1,1)),x=h+b*2,S=y?0:b*2,!C&&r!==`fixed`&&(w=l?y4((Math.abs(l)+S)/x):0),g=w*x-S,d.repeatTimes=w,d.symbolMargin=b}var T=g/2*m,E=d.pathPosition=[];E[f.index]=n[f.wh]/2,E[p.index]=o===`start`?T:o===`end`?c-T:c/2,a&&(E[0]+=a[0],E[1]+=a[1]);var D=d.bundlePosition=[];D[f.index]=n[f.xy],D[p.index]=n[p.xy];var O=d.barRectShape=Y({},n);O[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(E[p.index]+T)),O[f.wh]=n[f.wh];var k=d.clipShape={};k[f.xy]=-n[f.xy],k[f.wh]=u.ecSize[f.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function s4(e){var t=e.symbolPatternSize,n=pU(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!==`image`&&n.setStyle({strokeNoScale:!0}),n}function c4(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,c=t.valueDim,l=n.repeatTimes||0,u=0,d=a[t.valueDim.index]+o+n.symbolMargin*2;for(g4(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u<l?_4(e,null,m(u),n,r):_4(e,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(e)}),u++});u<l;u++){var f=s4(n);f.__pictorialAnimationIndex=u,f.__pictorialRepeatTimes=l,i.add(f);var p=m(u);_4(f,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function m(e){var t=s.slice(),r=n.pxSign,i=e;return(n.symbolRepeatDirection===`start`?r>0:r<0)&&(i=l-1-e),t[c.index]=d*(i-l/2+.5)+s[c.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function l4(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?_4(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=s4(n),i.add(a),_4(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function u4(e,t,n){var r=Y({},t.barRectShape),i=e.__pictorialBarRect;i?_4(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new PF({z2:2,shape:r,silent:!0,style:{stroke:`transparent`,fill:`transparent`,lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function d4(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=Y({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)UL(i,{shape:a},s,c);else{a[o.wh]=0,i=new PF({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],XL[r?`updateProps`:`initProps`](i,{shape:l},s,c)}}}function f4(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=VTe,n.isAnimationEnabled=HTe,n}function VTe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function HTe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(`animation`)}function p4(e,t,n,r){var i=new zM,a=new zM;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?c4(i,t,n):l4(i,t,n),u4(i,n,r),d4(i,t,n,r),i.__pictorialShapeStr=h4(e,n),i.__pictorialSymbolMeta=n,i}function UTe(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;UL(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?c4(e,t,n,!0):l4(e,t,n,!0),u4(e,n,!0),d4(e,t,n,!0)}function m4(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];g4(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),X(a,function(e){KL(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function h4(e,t){return[e.getItemVisual(t.dataIndex,`symbol`)||`none`,!!t.symbolRepeat,!!t.symbolClip].join(`:`)}function g4(e,t,n){X(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function _4(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&XL[i?`updateProps`:`initProps`](e,n,r.animationModel,r.dataIndex,a)}function v4(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel(`emphasis`),o=a.getModel(`itemStyle`).getItemStyle(),s=i.getModel([`blur`,`itemStyle`]).getItemStyle(),c=i.getModel([`select`,`itemStyle`]).getItemStyle(),l=i.getShallow(`cursor`),u=a.get(`focus`),d=a.get(`blurScope`),f=a.get(`scale`);g4(e,function(e){if(e instanceof OF){var t=e.style;e.useStyle(Y({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState(`emphasis`);r.style=o,f&&(r.scaleX=e.scaleX*1.1,r.scaleY=e.scaleY*1.1),e.ensureState(`blur`).style=s,e.ensureState(`select`).style=c,l&&(e.cursor=l),e.z2=n.z2});var p=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,IR(m,LR(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:ZY(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),FI(e,u,d,a.get(`disabled`))}function y4(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var WTe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol=`roundRect`,n}return t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type=`series.pictorialBar`,t.dependencies=[`grid`],t.defaultOption=tz(EX.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:$.color.primary}}}),t}(EX);function GTe(e){e.registerChartView(ITe),e.registerSeriesModel(WTe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,lO(hq,`pictorialBar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gq(`pictorialBar`))}var KTe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(e,t,n){var r=e.getData(),i=this,a=this.group,o=e.getLayerSeries(),s=r.getLayout(`layoutInfo`),c=s.rect,l=s.boundaryGap;a.x=0,a.y=c.y+l[0];function u(e){return e.name}var d=new XG(this._layersSeries||[],o,u,u),f=[];d.add(cO(p,this,`add`)).update(cO(p,this,`update`)).remove(cO(p,this,`remove`)).execute();function p(t,n,s){var c=i._layers;if(t===`remove`){a.remove(c[n]);return}for(var l=[],u=[],d,p=o[n].indices,m=0;m<p.length;m++){var h=r.getItemLayout(p[m]),g=h.x,_=h.y0,v=h.y;l.push(g,_),u.push(g,_+v),d=r.getItemVisual(p[m],`style`)}var y,b=r.getItemLayout(p[0]),x=e.getModel(`label`).get(`margin`),S=e.getModel(`emphasis`);if(t===`add`){var C=f[n]=new zM;y=new dX({shape:{points:l,stackedOnPoints:u,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(y),a.add(C),e.isAnimationEnabled()&&y.setClipPath(qTe(y.getBoundingRect(),e,function(){y.removeClipPath()}))}else{var C=c[s];y=C.childAt(0),a.add(C),f[n]=C,UL(y,{shape:{points:l,stackedOnPoints:u}},e),YL(y)}IR(y,LR(e),{labelDataIndex:p[m-1],defaultText:r.getName(p[m-1]),inheritColor:d.fill},{normal:{verticalAlign:`middle`}}),y.setTextConfig({position:null,local:!0});var w=y.getTextContent();w&&(w.x=b.x-x,w.y=b.y0+b.y/2),y.useStyle(d),r.setItemGraphicEl(n,y),RI(y,e),FI(y,S.get(`focus`),S.get(`blurScope`),S.get(`disabled`))}this._layersSeries=o,this._layers=f},t.type=`themeRiver`,t}(NH);function qTe(e,t,n){var r=new PF({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return WL(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}var b4=2,JTe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new tZ(cO(this.getData,this),cO(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=LN(e,function(e){return n.hasOwnProperty(e[0]+``)||(n[e[0]+``]=-1),e[2]}),i=[];r.buckets.each(function(e,t){i.push({name:t,dataList:e})});for(var a=i.length,o=0;o<a;++o){for(var s=i[o].name,c=0;c<i[o].dataList.length;++c){var l=i[o].dataList[c][0]+``;n[l]=o}for(var l in n)n.hasOwnProperty(l)&&n[l]!==o&&(n[l]=o,e[t]=[l,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents(`singleAxis`,PN).models[0].get(`type`),r=aO(e.data,function(e){return e[2]!==void 0}),i=this.fixData(r||[]),a=[],o=this.nameMap=jO(),s=0,c=0;c<i.length;++c)a.push(i[c][b4]),o.get(i[c][b4])||(o.set(i[c][b4],s),s++);var l=TK(i,{coordDimensions:[`single`],dimensionsDefine:[{name:`time`,type:eK(n)},{name:`value`,type:`float`},{name:`name`,type:`ordinal`}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new wK(l,this);return u.initData(i),u},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension(`single`),a=LN(n,function(t){return e.get(`name`,t)}),o=[];return a.buckets.each(function(t,n){t.sort(function(t,n){return e.get(i,t)-e.get(i,n)}),o.push({name:n,indices:t})}),o},t.prototype.getAxisTooltipData=function(e,t,n){Q(e)||(e=e?[e]:[]);for(var r=this.getData(),i=this.getLayerSeries(),a=[],o=i.length,s,c=0;c<o;++c){for(var l=Number.MAX_VALUE,u=-1,d=i[c].indices.length,f=0;f<d;++f){var p=r.get(e[0],i[c].indices[f]),m=Math.abs(p-t);m<=l&&(s=p,l=m,u=i[c].indices[f])}a.push(u)}return{dataIndices:a,nestestValue:s}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData();return fH(`nameValue`,{name:r.getName(e),value:r.get(r.mapDimension(`value`),e)})},t.type=`series.themeRiver`,t.dependencies=[`singleAxis`],t.defaultOption={z:2,colorBy:`data`,coordinateSystem:`singleAxis`,boundaryGap:[`10%`,`10%`],singleAxisIndex:0,animationEasing:`linear`,label:{margin:4,show:!0,position:`left`,fontSize:11},emphasis:{label:{show:!0}}},t}(EH);function YTe(e,t){e.eachSeriesByType(`themeRiver`,function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var a=e.get(`boundaryGap`),o=n.getAxis();r.boundaryGap=a,o.orient===`horizontal`?(a[0]=XM(a[0],i.height),a[1]=XM(a[1],i.height),x4(t,e,i.height-a[0]-a[1])):(a[0]=XM(a[0],i.width),a[1]=XM(a[1],i.width),x4(t,e,i.width-a[0]-a[1])),t.setLayout(`layoutInfo`,r)})}function x4(e,t,n){if(e.count())for(var r=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension(`single`),o=e.mapDimension(`value`),s=Z(i,function(t){return Z(t.indices,function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(o,t),n})}),c=XTe(s),l=c.y0,u=n/c.max,d=i.length,f=i[0].indices.length,p,m=0;m<f;++m){p=l[m]*u,e.setItemLayout(i[0].indices[m],{layerIndex:0,x:s[0][m][0],y0:p,y:s[0][m][1]*u});for(var h=1;h<d;++h)p+=s[h-1][m][1]*u,e.setItemLayout(i[h].indices[m],{layerIndex:h,x:s[h][m][0],y0:p,y:s[h][m][1]*u})}}function XTe(e){for(var t=e.length,n=e[0].length,r=[],i=[],a=0,o=0;o<n;++o){for(var s=0,c=0;c<t;++c)s+=e[c][o][1];s>a&&(a=s),r.push(s)}for(var l=0;l<n;++l)i[l]=(a-r[l])/2;a=0;for(var u=0;u<n;++u){var d=r[u]+i[u];d>a&&(a=d)}return{y0:i,max:a}}function ZTe(e){e.registerChartView(KTe),e.registerSeriesModel(JTe),e.registerLayout(YTe),e.registerProcessor(JX(`themeRiver`))}var QTe=2,$Te=4,S4=function(e){J(t,e);function t(t,n,r,i){var a=e.call(this)||this;a.z2=QTe,a.textConfig={inside:!0},YF(a).seriesIndex=n.seriesIndex;var o=new RF({z2:$Te,silent:t.getModel().get([`label`,`silent`])});return a.setTextContent(o),a.updateData(!0,t,n,r,i),a}return t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n||=this._seriesModel,r||=this._ecModel;var a=this;YF(a).dataIndex=t.dataIndex;var o=t.getModel(),s=o.getModel(`emphasis`),c=t.getLayout(),l=Y({},c);l.label=null;var u=t.getVisual(`style`);u.lineJoin=`bevel`;var d=t.getVisual(`decal`);d&&(u.decal=nW(d,i)),Y(l,AX(o.getModel(`itemStyle`),l,!0)),X(tI,function(e){var t=a.ensureState(e),n=o.getModel([e,`itemStyle`]);t.style=n.getItemStyle();var r=AX(n,l);r&&(t.shape=r)}),e?(a.setShape(l),a.shape.r=c.r0,WL(a,{shape:{r:c.r}},n,t.dataIndex)):(UL(a,{shape:l},n),YL(a)),a.useStyle(u),this._updateLabel(n);var f=o.getShallow(`cursor`);f&&a.attr(`cursor`,f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get(`focus`),m=p===`relative`?MO(t.getAncestorsIndices(),t.getDescendantIndices()):p===`ancestor`?t.getAncestorsIndices():p===`descendant`?t.getDescendantIndices():p;FI(this,m,s.get(`blurScope`),s.get(`disabled`))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel(`label`),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),c=Math.sin(o),l=this,u=l.getTextContent(),d=this.node.dataIndex,f=r.get(`minAngle`)/180*Math.PI;u.ignore=!(r.get(`show`)&&!(f!=null&&Math.abs(a)<f)),X(nI,function(r){var f=r===`normal`?n.getModel(`label`):n.getModel([r,`label`]),m=r===`normal`,h=m?u:u.ensureState(r),g=e.getFormattedLabel(d,r);m&&(g||=t.node.name),h.style=RR(f,{},null,r!==`normal`,!0),g&&(h.style.text=g);var _=f.get(`show`);_!=null&&!m&&(h.ignore=!_);var v=p(f,`position`),y=m?l:l.states[r],b=y.style.fill;y.textConfig={outsideFill:f.get(`color`)===`inherit`?b:null,inside:v!==`outside`};var x,S=p(f,`distance`)||0,C=p(f,`align`),w=p(f,`rotate`),T=Math.PI*.5,E=Math.PI*1.5,D=nF(w===`tangential`?Math.PI/2-o:o),O=D>T&&!rN(D-T)&&D<E;v===`outside`?(x=i.r+S,C=O?`right`:`left`):!C||C===`center`?(x=a===2*Math.PI&&i.r0===0?0:(i.r+i.r0)/2,C=`center`):C===`left`?(x=i.r0+S,C=O?`right`:`left`):C===`right`&&(x=i.r-S,C=O?`left`:`right`),h.style.align=C,h.style.verticalAlign=p(f,`verticalAlign`)||`middle`,h.x=x*s+i.cx,h.y=x*c+i.cy;var k=0;w===`radial`?k=nF(-o)+(O?Math.PI:0):w===`tangential`?k=nF(Math.PI/2-o)+(O?Math.PI:0):pO(w)&&(k=w*Math.PI/180),h.rotation=nF(k)});function p(e,t){return e.get(t)??r.get(t)}u.dirtyStyle()},t}(vL),C4=`sunburstRootToNode`,w4=`sunburstHighlight`,eEe=`sunburstUnhighlight`;function tEe(e){e.registerAction({type:C4,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},n);function n(t,n){var r=z$(e,[C4],t);if(r){var i=t.getViewRoot();i&&(e.direction=V$(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}}),e.registerAction({type:w4,update:`none`},function(e,t,n){e=Y({},e),t.eachComponent({mainType:`series`,subType:`sunburst`,query:e},r);function r(t){var n=z$(e,[w4],t);n&&(e.dataIndex=n.node.dataIndex)}n.dispatchAction(Y(e,{type:`highlight`}))}),e.registerAction({type:eEe,update:`updateView`},function(e,t,n){e=Y({},e),n.dispatchAction(Y(e,{type:`downplay`}))})}var nEe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var a=e.getData(),o=a.tree.root,s=e.getViewRoot(),c=this.group,l=e.get(`renderLabelForZeroData`),u=[];s.eachNode(function(e){u.push(e)}),d(u,this._oldChildren||[]),m(o,s),this._initEvents(),this._oldChildren=u;function d(e,t){if(e.length===0&&t.length===0)return;new XG(t,e,n,n).add(r).update(r).remove(lO(r,null)).execute();function n(e){return e.getId()}function r(n,r){f(n==null?null:e[n],r==null?null:t[r])}}function f(r,i){if(!l&&r&&!r.getValue()&&(r=null),r!==o&&i!==o){if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),a.setItemGraphicEl(r.dataIndex,i.piece)):p(i);else if(r){var s=new S4(r,e,t,n);c.add(s),a.setItemGraphicEl(r.dataIndex,s)}}}function p(e){e&&(e.piece&&=(c.remove(e.piece),null))}function m(r,a){a.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new S4(r,e,t,n),c.add(i.virtualPiece)),a.piece.off(`click`),i.virtualPiece.on(`click`,function(e){i._rootToNode(a.parentNode)})):i.virtualPiece&&=(c.remove(i.virtualPiece),null)}},t.prototype._initEvents=function(){var e=this;this.group.off(`click`),this.group.on(`click`,function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get(`nodeClick`);if(i===`rootToNode`)e._rootToNode(r);else if(i===`link`){var a=r.getModel(),o=a.get(`link`);o&&qz(o,a.get(`target`,!0)||`_blank`)}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:C4,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`sunburst`,t}(NH),rEe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};T4(n);var r=this._levelModels=Z(e.levels||[],function(e){return new $R(e,this,t)},this),i=R$.createTree(n,this,a);function a(e){e.wrapMethod(`getItemModel`,function(e,t){var n=r[i.getNodeByDataIndex(t).depth];return n&&(e.parentModel=n),e})}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treePathInfo=H$(this.getData().tree.getNodeByDataIndex(t),this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){G$(this)},t.type=`series.sunburst`,t.defaultOption={z:2,center:[`50%`,`50%`],radius:[0,`75%`],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:`rootToNode`,renderLabelForZeroData:!1,label:{rotate:`radial`,show:!0,opacity:1,align:`center`,position:`inside`,distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:`white`,borderType:`solid`,shadowBlur:0,shadowColor:`rgba(0, 0, 0, 0.2)`,shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:`descendant`},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:`expansion`,animationDuration:1e3,animationDurationUpdate:500,data:[],sort:`desc`},t}(EH);function T4(e){var t=0;X(e.children,function(e){T4(e);var n=e.value;Q(n)&&(n=n[0]),t+=n});var n=e.value;Q(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Q(e.value)?e.value[0]=n:e.value=n}var E4=Math.PI/180;function iEe(e,t,n){t.eachSeriesByType(e,function(e){var t=e.get(`center`),r=e.get(`radius`);Q(r)||(r=[0,r]),Q(t)||(t=[t,t]);var i=n.getWidth(),a=n.getHeight(),o=Math.min(i,a),s=XM(t[0],i),c=XM(t[1],a),l=XM(r[0],o/2),u=XM(r[1],o/2),d=-e.get(`startAngle`)*E4,f=e.get(`minAngle`)*E4,p=e.getData().tree.root,m=e.getViewRoot(),h=m.depth,g=e.get(`sort`);g!=null&&D4(m,g);var _=0;X(m.children,function(e){!isNaN(e.getValue())&&_++});var v=m.getValue(),y=Math.PI/(v||_)*2,b=m.depth>0,x=m.height-(b?-1:1),S=(u-l)/(x||1),C=e.get(`clockwise`),w=e.get(`stillShowZeroSum`),T=C?1:-1,E=function(t,n){if(t){var r=n;if(t!==p){var i=t.getValue(),a=v===0&&w?y:i*y;a<f&&(a=f),r=n+T*a;var u=t.depth-h-(b?-1:1),d=l+S*u,m=l+S*(u+1),g=e.getLevelModel(t);if(g){var _=g.get(`r0`,!0),x=g.get(`r`,!0),D=g.get(`radius`,!0);D!=null&&(_=D[0],x=D[1]),_!=null&&(d=XM(_,o/2)),x!=null&&(m=XM(x,o/2))}t.setLayout({angle:a,startAngle:n,endAngle:r,clockwise:C,cx:s,cy:c,r0:d,r:m})}if(t.children&&t.children.length){var O=0;X(t.children,function(e){O+=E(e,n+O)})}return r-n}};if(b){var D=l,O=l+S,k=Math.PI*2;p.setLayout({angle:k,startAngle:d,endAngle:d+k,clockwise:C,cx:s,cy:c,r0:D,r:O})}E(m,d)})}function D4(e,t){var n=e.children||[];e.children=aEe(n,t),n.length&&X(e.children,function(e){D4(e,t)})}function aEe(e,t){if(uO(t)){var n=Z(e,function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}});return n.sort(function(e,n){return t(e.params,n.params)}),Z(n,function(t){return e[t.index]})}else{var r=t===`asc`;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return n===0?(e.dataIndex-t.dataIndex)*(r?-1:1):n})}}function oEe(e){var t={};function n(e,n,r){if(e.depth===0)return $.color.neutral50;for(var i=e;i&&i.depth>1;)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+``,t);return e.depth>1&&dO(a)&&(a=ij(a,(e.depth-1)/(r-1)*.5)),a}e.eachSeriesByType(`sunburst`,function(e){var t=e.getData(),r=t.tree;r.eachNode(function(i){var a=i.getModel().getModel(`itemStyle`).getItemStyle();a.fill||=n(i,e,r.root.height),Y(t.ensureUniqueItemVisual(i.dataIndex,`style`),a)})})}function sEe(e){e.registerChartView(nEe),e.registerSeriesModel(rEe),e.registerLayout(lO(iEe,`sunburst`)),e.registerProcessor(lO(JX,`sunburst`)),e.registerVisual(oEe),tEe(e)}var O4={color:`fill`,borderColor:`stroke`},cEe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},k4=jN(),lEe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get(`zlevel`,!0),this.currentZ=this.get(`z`,!0)},t.prototype.getInitialData=function(e,t){return zK(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=k4(r).info),i},t.type=`series.custom`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,clip:!1},t}(EH);function uEe(e,t){return t||=[0,0],Z([`x`,`y`],function(n,r){var i=this.getAxis(n),a=t[r],o=e[r]/2;return i.type===`category`?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function dEe(e){var t=e.master.getRect();return{coordSys:{type:`cartesian2d`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:cO(uEe,e)}}}function fEe(e,t){return t||=[0,0],Z([0,1],function(n){var r=t[n],i=e[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function pEe(e){var t=e.getBoundingRect();return{coordSys:{type:`geo`,x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:cO(fEe,e)}}}function mEe(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return n.type===`category`?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function hEe(e){var t=e.getRect();return{coordSys:{type:`singleAxis`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:cO(mEe,e)}}}function gEe(e,t){return t||=[0,0],Z([`Radius`,`Angle`],function(n,r){var i=`get`+n+`Axis`,a=this[i](),o=t[r],s=e[r]/2,c=a.type===`category`?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n===`Angle`&&(c=c*Math.PI/180),c},this)}function _Ee(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:`polar`,cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=e.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:cO(gEe,e)}}}function vEe(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:`calendar`,x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function yEe(e){var t=e.getRect();return{coordSys:{type:`matrix`,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t,n){return e.dataToPoint(t,n)},layout:function(t,n){return e.dataToLayout(t,n)}}}}function A4(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||FO(e,`text`)))}function j4(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},FO(r,`text`)&&(o.text=r.text),FO(r,`rich`)&&(o.rich=r.rich),FO(r,`textFill`)&&(o.fill=r.textFill),FO(r,`textStroke`)&&(o.stroke=r.textStroke),FO(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),FO(r,`fontSize`)&&(o.fontSize=r.fontSize),FO(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),FO(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=FO(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),FO(r,`textPosition`)&&(i.position=r.textPosition),FO(r,`textOffset`)&&(i.offset=r.textOffset),FO(r,`textRotation`)&&(i.rotation=r.textRotation),FO(r,`textDistance`)&&(i.distance=r.textDistance)}return M4(o,e),X(o.rich,function(e){M4(e,e)}),{textConfig:i,textContent:a}}function M4(e,t){t&&(t.font=t.textFont||t.font,FO(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),FO(t,`textAlign`)&&(e.align=t.textAlign),FO(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),FO(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),FO(t,`textWidth`)&&(e.width=t.textWidth),FO(t,`textHeight`)&&(e.height=t.textHeight),FO(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),FO(t,`textPadding`)&&(e.padding=t.textPadding),FO(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),FO(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),FO(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),FO(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),FO(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),FO(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),FO(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function N4(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||`inside`,n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf(`inside`)>=0,a=e.fill||$.color.neutral99;P4(r,t);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||$.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth??=2):(o&&(r.textFill=e.fill||n.outsideFill||$.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,X(t.rich,function(e){P4(e,e)}),r}function P4(e,t){t&&(FO(t,`fill`)&&(e.textFill=t.fill),FO(t,`stroke`)&&(e.textStroke=t.fill),FO(t,`lineWidth`)&&(e.textStrokeWidth=t.lineWidth),FO(t,`font`)&&(e.font=t.font),FO(t,`fontStyle`)&&(e.fontStyle=t.fontStyle),FO(t,`fontWeight`)&&(e.fontWeight=t.fontWeight),FO(t,`fontSize`)&&(e.fontSize=t.fontSize),FO(t,`fontFamily`)&&(e.fontFamily=t.fontFamily),FO(t,`align`)&&(e.textAlign=t.align),FO(t,`verticalAlign`)&&(e.textVerticalAlign=t.verticalAlign),FO(t,`lineHeight`)&&(e.textLineHeight=t.lineHeight),FO(t,`width`)&&(e.textWidth=t.width),FO(t,`height`)&&(e.textHeight=t.height),FO(t,`backgroundColor`)&&(e.textBackgroundColor=t.backgroundColor),FO(t,`padding`)&&(e.textPadding=t.padding),FO(t,`borderColor`)&&(e.textBorderColor=t.borderColor),FO(t,`borderWidth`)&&(e.textBorderWidth=t.borderWidth),FO(t,`borderRadius`)&&(e.textBorderRadius=t.borderRadius),FO(t,`shadowColor`)&&(e.textBoxShadowColor=t.shadowColor),FO(t,`shadowBlur`)&&(e.textBoxShadowBlur=t.shadowBlur),FO(t,`shadowOffsetX`)&&(e.textBoxShadowOffsetX=t.shadowOffsetX),FO(t,`shadowOffsetY`)&&(e.textBoxShadowOffsetY=t.shadowOffsetY),FO(t,`textShadowColor`)&&(e.textShadowColor=t.textShadowColor),FO(t,`textShadowBlur`)&&(e.textShadowBlur=t.textShadowBlur),FO(t,`textShadowOffsetX`)&&(e.textShadowOffsetX=t.textShadowOffsetX),FO(t,`textShadowOffsetY`)&&(e.textShadowOffsetY=t.textShadowOffsetY))}var F4={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},I4=sO(F4);iO(gM,function(e,t){return e[t]=1,e},{}),gM.join(`, `);var L4=[``,`style`,`shape`,`extra`],R4=jN();function z4(e,t,n,r,i){var a=e+`Animation`,o=VL(e,r,i)||{},s=R4(t).userDuring;return o.duration>0&&(o.during=s?cO(wEe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Y(o,n[a]),o}function B4(e,t,n,r){r||={};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=R4(e),l=t.style;c.userDuring=t.during;var u={},d={};if(EEe(e,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m<p.length;m++){var h=p[m];K4(`shape`,h,f[m])}else K4(`shape`,t,d),K4(`extra`,t,d);if(!a&&s&&(TEe(e,t,u),G4(`shape`,e,t,u),G4(`extra`,e,t,u),DEe(e,t,l,u)),d.style=l,bEe(e,d,o),SEe(e,t),s)if(a){var g={};X(L4,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(g[e]=g[e]||{}),Y(e?g[e]:g,n.enterFrom))});var _=z4(`enter`,e,t,n,i);_.duration>0&&e.animateFrom(g,_)}else xEe(e,t,i||0,n,u);V4(e,t),l?e.dirty():e.markRedraw()}function V4(e,t){for(var n=R4(e).leaveToProps,r=0;r<L4.length;r++){var i=L4[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=R4(e).leaveToProps={},i&&(n[i]=n[i]||{}),Y(i?n[i]:n,a.leaveTo))}}function H4(e,t,n,r){if(e){var i=e.parent,a=R4(e).leaveToProps;if(a){var o=z4(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}function U4(e){return e===`all`}function bEe(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function xEe(e,t,n,r,i){if(i){var a=z4(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function SEe(e,t){FO(t,`silent`)&&(e.silent=t.silent),FO(t,`ignore`)&&(e.ignore=t.ignore),e instanceof mP&&FO(t,`invisible`)&&(e.invisible=t.invisible),e instanceof SF&&FO(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var W4={},CEe={setTransform:function(e,t){return W4.el[e]=t,this},getTransform:function(e){return W4.el[e]},setShape:function(e,t){var n=W4.el,r=n.shape||={};return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=W4.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=W4.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=W4.el.style;if(t)return t[e]},setExtra:function(e,t){var n=W4.el.extra||(W4.el.extra={});return n[e]=t,this},getExtra:function(e){var t=W4.el.extra;if(t)return t[e]}};function wEe(){var e=this,t=e.el;if(t){var n=R4(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}W4.el=t,r(CEe)}}function G4(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),U4(c))Y(o,a);else for(var l=bN(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}else if(U4(s)||tO(s,e)>=0){!o&&(o=r[e]={});for(var p=sO(a),u=0;u<p.length;u++){var d=p[u],f=a[d];OEe(i[d],f)&&(o[d]=f)}}}}}function K4(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=sO(r),o=0;o<a.length;o++){var s=a[o];i[s]=jj(r[s])}}function TEe(e,t,n){for(var r=t.transition,i=U4(r)?gM:bN(r||[]),a=0;a<i.length;a++){var o=i[a];o===`style`||o===`shape`||o===`extra`||(n[o]=e[o])}}function EEe(e,t,n){for(var r=0;r<I4.length;r++){var i=I4[r],a=F4[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<gM.length;r++){var s=gM[r];t[s]!=null&&(n[s]=t[s])}}function DEe(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!U4(o)){var c=bN(o);!a&&(a=r.style={});for(var l=0;l<c.length;l++){var u=c[l],d=i[u];a[u]=d}}else if(e.getAnimationStyleProps&&(U4(s)||U4(o)||tO(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=sO(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function OEe(e,t){return rO(e)?e!==t:e!=null&&isFinite(e)}var q4=jN(),kEe=[`percent`,`easing`,`shape`,`style`,`extra`];function J4(e){e.stopAnimation(`keyframe`),e.attr(q4(e))}function Y4(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(Q(t)){X(t,function(t){Y4(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=VL(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=q4(e);X(L4,function(n){if(!(n&&!e[n])){var a;r.sort(function(e,t){return e.percent-t.percent}),X(r,function(r){var s=e.animators,c=n?r[n]:r;if(c){var l=sO(c);if(n||(l=aO(l,function(e){return tO(kEe,e)<0})),l.length){a||(a=e.animate(n,t.loop,!0),a.scope=`keyframe`);for(var u=0;u<s.length;u++)s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(l);n&&(o[n]=o[n]||{});var d=n?o[n]:o;X(l,function(t){d[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,c,l,r.easing)}}}),a&&a.delay(t.delay||0).duration(i).start(t.easing)}})}}}var X4=`emphasis`,Z4=`normal`,Q4=`blur`,$4=`select`,e3=[Z4,X4,Q4,$4],t3={normal:[`itemStyle`],emphasis:[X4,`itemStyle`],blur:[Q4,`itemStyle`],select:[$4,`itemStyle`]},n3={normal:[`label`],emphasis:[X4,`label`],blur:[Q4,`label`],select:[$4,`label`]},AEe=[`x`,`y`],jEe=`e\0\0`,r3={normal:{},emphasis:{},blur:{},select:{}},MEe={cartesian2d:dEe,geo:pEe,single:hEe,polar:_Ee,calendar:vEe,matrix:yEe};function i3(e){return e instanceof SF}function a3(e){return e instanceof mP}function NEe(e,t){t.copyTransform(e),a3(t)&&a3(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,i3(t)&&i3(e)&&t.setShape(e.shape))}var PEe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._data,a=e.getData(),o=this.group,s=l3(e,a,t,n);i||o.removeAll(),a.diff(i).add(function(t){u3(n,null,t,s(t,r),e,o,a)}).remove(function(t){var n=i.getItemGraphicEl(t);n&&H4(n,k4(n).option,e)}).update(function(t,c){u3(n,i.getItemGraphicEl(c),t,s(t,r),e,o,a)}).execute();var c=e.get(`clip`,!0)?mX(e.coordinateSystem,!1,e):null;c?o.setClipPath(c):o.removeClipPath(),this._data=a},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var a=t.getData(),o=l3(t,a,n,r),s=this._progressiveEls=[];function c(e){e.isGroup||(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var l=e.start;l<e.end;l++){var u=u3(null,null,l,o(l,i),t,this.group,a);u&&(u.traverse(c),s.push(u))}},t.prototype.eachRendered=function(e){wR(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(i==null||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type=`custom`,t}(NH);function o3(e){var t=e.type,n;if(t===`path`){var r=e.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=v3(r);n=nR(a,null,i,r.layout||`center`),k4(n).customPathData=a}else if(t===`image`)n=new OF({}),k4(n).customImagePath=e.style.image;else if(t===`text`)n=new RF({});else if(t===`group`)n=new zM;else if(t===`compoundPath`){var r=e.shape;if(!r||!r.paths){var o=``;gN(o)}n=new OL({shape:{paths:Z(r.paths,function(e){if(e.type===`path`)return nR(e.shape.pathData,e,null);var t=tR(e.type);return t||gN(``),new t})}})}else{var s=tR(t);if(!s){var o=``;gN(o)}n=new s}return k4(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function s3(e,t,n,r,i,a,o){J4(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=AEe);var c=r&&r.style;if(c){if(t.type===`text`){var l=c;FO(l,`textFill`)&&(l.fill=l.textFill),FO(l,`textStroke`)&&(l.stroke=l.textStroke)}var u=void 0,d=i3(t)?c.decal:null;e&&d&&(d.dirty=!0,u=nW(d,e)),c.__decalPattern=u}if(a3(t)&&c){var u=c.__decalPattern;u&&(c.decal=u)}B4(t,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),Y4(t,r.keyframeAnimation,a)}function c3(e,t,n,r,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(r===!1){var c=a.getState(e);c&&(c.style=null)}else s.style=r||null;o&&(s.textConfig=o),yI(a)}}function FEe(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=t.z2;o!=null&&(r.z2=o||0);for(var s=0;s<e3.length;s++)IEe(r,t,e3[s])}}function IEe(e,t,n){var r=n===Z4,i=r?t:m3(t,n),a=i?i.z2:null,o;a!=null&&(o=r?e:e.ensureState(n),o.z2=a||0)}function l3(e,t,n,r){var i=e.get(`renderItem`);if(typeof i==`string`){var a=hW(i);a&&(i=a)}var o=e.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):MEe[o.type](o));for(var c=eO({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:C,ordinalRawValue:S,styleEmphasis:w,visual:D,barLayout:O,currentSeriesIndices:k,font:A},s.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:LEe(e.getData()),itemPayload:e.get(`itemPayload`)||{}},u,d,f={},p={},m={},h={},g=0;g<e3.length;g++){var _=e3[g];m[_]=e.getModel(t3[_]),h[_]=e.getModel(n3[_])}function v(e){return e===u?d||=t.getItemModel(e):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===u?f[n]||(f[n]=v(e).getModel(t3[n])):v(e).getModel(t3[n]):m[n]}function b(e,n){return t.hasItemOption?e===u?p[n]||(p[n]=v(e).getModel(n3[n])):v(e).getModel(n3[n]):h[n]}return function(e,n){return u=e,d=null,f={},p={},i&&i(eO({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},l),c)};function x(e,n){return n??=u,t.getStore().get(t.getDimensionIndex(e||0),n)}function S(e,n){n??=u,e||=0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var a=t.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function C(n,r){r??=u;var i=t.getItemVisual(r,`style`),a=i&&i.fill,o=i&&i.opacity,s=y(r,Z4).getItemStyle();a!=null&&(s.fill=a),o!=null&&(s.opacity=o);var c={inheritColor:dO(a)?a:$.color.neutral99},l=b(r,Z4),d=RR(l,null,c,!1,!0);d.text=l.getShallow(`show`)?xO(e.getFormattedLabel(r,Z4),ZY(t,r)):null;var f=zR(l,c,!1);return E(n,s),s=N4(s,d,f),n&&T(s,n),s.legacy=!0,s}function w(n,r){r??=u;var i=y(r,X4).getItemStyle(),a=b(r,X4),o=RR(a,null,null,!0,!0);o.text=a.getShallow(`show`)?SO(e.getFormattedLabel(r,X4),e.getFormattedLabel(r,Z4),ZY(t,r)):null;var s=zR(a,null,!0);return E(n,i),i=N4(i,o,s),n&&T(i,n),i.legacy=!0,i}function T(e,t){for(var n in t)FO(t,n)&&(e[n]=t[n])}function E(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function D(e,n){if(n??=u,FO(O4,e)){var r=t.getItemVisual(n,`style`);return r?r[O4[e]]:null}if(FO(cEe,e))return t.getItemVisual(n,e)}function O(e){if(o.type===`cartesian2d`)return Kge(eO({axis:o.getBaseAxis()},e))}function k(){return n.getCurrentSeriesIndices()}function A(e){return WR(e,n)}}function LEe(e){var t={};return X(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=t[i]=t[i]||[];a[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function u3(e,t,n,r,i,a,o){if(!r){a.remove(t);return}var s=d3(e,t,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&FI(s,r.focus,r.blurScope,r.emphasisDisabled),s}function d3(e,t,n,r,i,a){var o=-1,s=t;t&&f3(t,r,i)&&(o=tO(a.childrenRef(),t),t=null);var c=!t,l=t;l?l.clearStates():(l=o3(r),s&&NEe(s,l)),r.morph===!1?l.disableMorphing=!0:l.disableMorphing&&=!1,r.tooltipDisabled&&(l.tooltipDisabled=!0),r3.normal.cfg=r3.normal.conOpt=r3.emphasis.cfg=r3.emphasis.conOpt=r3.blur.cfg=r3.blur.conOpt=r3.select.cfg=r3.select.conOpt=null,r3.isLegacy=!1,zEe(l,n,r,i,c,r3),REe(l,n,r,i,c),s3(e,l,n,r,r3,i,c),FO(r,`info`)&&(k4(l).info=r.info);for(var u=0;u<e3.length;u++){var d=e3[u];if(d!==Z4){var f=m3(r,d),p=h3(r,f,d);c3(d,l,f,p,r3)}}return FEe(l,r,i),r.type===`group`&&BEe(e,l,n,r,i),o>=0?a.replaceAt(l,o):a.add(l),l}function f3(e,t,n){var r=k4(e),i=t.type,a=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i===`path`&&WEe(a)&&v3(a)!==r.customPathData||i===`image`&&FO(o,`image`)&&o.image!==r.customImagePath}function REe(e,t,n,r,i){var a=n.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&f3(o,a,r)&&(o=null),o||(o=o3(a),e.setClipPath(o)),s3(null,o,t,a,null,r,i)}}function zEe(e,t,n,r,i,a){if(!(e.isGroup||e.type===`compoundPath`)){p3(n,null,a),p3(n,X4,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,c=a.blur.conOpt,l=a.select.conOpt;if(o!=null||s!=null||l!=null||c!=null){var u=e.getTextContent();if(o===!1)u&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:`text`},u?u.clearStates():(u=o3(o),e.setTextContent(u)),s3(null,u,t,o,null,r,i);for(var d=o&&o.style,f=0;f<e3.length;f++){var p=e3[f];if(p!==Z4){var m=a[p].conOpt;c3(p,u,m,h3(o,m,p),null)}}d?u.dirty():u.markRedraw()}}}}function p3(e,t,n){var r=t?m3(e,t):e,i=t?h3(e,r,X4):e.style,a=e.type,o=r?r.textConfig:null,s=e.textContent,c=s?t?m3(s,t):s:null;if(i&&(n.isLegacy||A4(i,a,!!o,!!c))){n.isLegacy=!0;var l=j4(i,a,!t);!o&&l.textConfig&&(o=l.textConfig),!c&&l.textContent&&(c=l.textContent)}if(!t&&c){var u=c;!u.type&&(u.type=`text`)}var d=t?n[t]:n.normal;d.cfg=o,d.conOpt=c}function m3(e,t){return t?e?e[t]:null:e}function h3(e,t,n){var r=t&&t.style;return r==null&&n===X4&&e&&(r=e.styleEmphasis),r}function BEe(e,t,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,c=s===`byName`||r.diffChildrenByName,l=s===!1;if(!(!o&&!c&&!l)){if(c){HEe({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:t});return}l&&t.removeAll();for(var u=0;u<o;u++){var d=a[u],f=t.childAt(u);d?(d.ignore??=!1,d3(e,f,n,d,i,t)):f.ignore=!0}for(var p=t.childCount()-1;p>=u;p--)VEe(t,t.childAt(p),i)}}function VEe(e,t,n){t&&H4(t,k4(e).option,n)}function HEe(e){new XG(e.oldChildren,e.newChildren,g3,g3,e).add(_3).update(_3).remove(UEe).execute()}function g3(e,t){return(e&&e.name)??jEe+t}function _3(e,t){var n=this.context,r=e==null?null:n.newChildren[e],i=t==null?null:n.oldChildren[t];d3(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function UEe(e){var t=this.context,n=t.oldChildren[e];n&&H4(n,k4(n).option,t.seriesModel)}function v3(e){return e&&(e.pathData||e.d)}function WEe(e){return e&&(FO(e,`pathData`)||FO(e,`d`))}function GEe(e){e.registerChartView(PEe),e.registerSeriesModel(lEe)}var y3=jN(),b3=ZD,x3=cO,S3=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new zM,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=lO(C3,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}D3(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&r.getBandWidth()>o)return!0;if(a){var s=ZZ(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=y3(e).pointerEl=new XL[i.type](b3(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=y3(e).labelEl=new RF(b3(t.label));e.add(i),T3(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=y3(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=y3(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),T3(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=hR(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Ck(e.event)},onmousedown:x3(this._onHandleDragMove,this,0,0),drift:x3(this._onHandleDragMove,this),ondragend:x3(this._onHandleDragEnd,this)}),n.add(r)),D3(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);Q(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,BH(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){C3(this._axisPointerModel,!t&&this._moveAnimation,this._handle,E3(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(E3(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(E3(r)),y3(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),VH(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function C3(e,t,n,r){w3(y3(n).lastProp,r)||(y3(n).lastProp=r,t?UL(n,r,e):(n.stopAnimation(),n.attr(r)))}function w3(e,t){if(mO(e)&&mO(t)){var n=!0;return X(t,function(t,r){n&&=w3(e[r],t)}),!!n}else return e===t}function T3(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function E3(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function D3(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function O3(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function k3(e,t,n,r,i){var a=A3(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Vz(o.get(`padding`)||0),c=o.getFont(),l=TM(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),KEe(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:RR(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function KEe(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function A3(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Pq(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};X(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),dO(o)?a=o.replace(`{value}`,a):uO(o)&&(a=o(s))}return a}function j3(e,t,n){var r=Dk();return Mk(r,r,n.rotation),jk(r,r,n.position),uR([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function M3(e,t,n,r,i,a){var o=kZ.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),k3(t,r,i,a,{position:j3(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function N3(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function P3(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function F3(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}var qEe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=I3(o,a).getOtherAxis(a).getGlobalExtent(),l=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var u=O3(r),d=JEe[s](a,l,c);d.style=u,e.graphicKey=d.type,e.pointer=d}M3(t,e,RZ(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=RZ(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=j3(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=I3(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Math.min(o[1],l[c]),l[c]=Math.max(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(S3);function I3(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var JEe={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:N3([t,n[0]],[t,n[1]],L3(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:`Rect`,shape:P3([t-r/2,n[0]],[r,i],L3(e))}}};function L3(e){return e.dim===`x`?0:1}var YEe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:$.color.border,width:1,type:`dashed`},shadowStyle:{color:$.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:$.color.neutral00,padding:[5,7,5,7],backgroundColor:$.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:$.color.accent40,throttle:40}},t}(yB),R3=jN(),XEe=X;function z3(e,t,n){if(!zD.node){var r=t.getZr();R3(r).records||(R3(r).records={}),ZEe(r,t);var i=R3(r).records[e]||(R3(r).records[e]={});i.handler=n}}function ZEe(e,t){if(R3(e).initialized)return;R3(e).initialized=!0,n(`click`,lO(B3,`click`)),n(`mousemove`,lO(B3,`mousemove`)),n(`globalout`,$Ee);function n(n,r){e.on(n,function(n){var i=eDe(t);XEe(R3(e).records,function(e){e&&r(e,n,i.dispatchAction)}),QEe(i.pendings,t)})}}function QEe(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function $Ee(e,t,n){e.handler(`leave`,null,n)}function B3(e,t,n,r){t.handler(e,n,r)}function eDe(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function V3(e,t){if(!zD.node){var n=t.getZr();(R3(n).records||{})[e]&&(R3(n).records[e]=null)}}var tDe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click`;z3(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){V3(`axisPointer`,t)},t.prototype.dispose=function(e,t){V3(`axisPointer`,t)},t.type=`axisPointer`,t}(AH);function H3(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=AN(a,e);if(o==null||o<0||Q(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(Z(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var U3=jN();function nDe(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||cO(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){K3(i)&&(i=H3({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=K3(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||K3(i),f={},p={},m={list:[],map:{}},h={showPointer:lO(iDe,p),showTooltip:lO(aDe,m)};X(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);X(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=lDe(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&W3(e,o,h,!1,f)}})});var g={};return X(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&X(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,G3(t),G3(e)))),g[e.key]=a}})}),X(g,function(e,t){W3(u[t],e,h,!0,f)}),oDe(p,u,f),sDe(m,i,e,o),cDe(u,o,n),f}}function W3(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=rDe(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&Y(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function rDe(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return X(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(!(u==null||!isFinite(u))){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),X(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function iDe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function aDe(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=$Z(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function oDe(e,t,n){var r=n.axesInfo=[];X(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function sDe(e,t,n,r){if(K3(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function cDe(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=U3(r)[i]||{},o=U3(r)[i]={};X(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&X(n.seriesDataIndices,function(e){var t=e.seriesIndex+` | `+e.dataIndex;o[t]=e})});var s=[],c=[];X(a,function(e,t){!o[t]&&c.push(e)}),X(o,function(e,t){!a[t]&&s.push(e)}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function lDe(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function G3(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function K3(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function q3(e){tQ.registerAxisPointerClass(`CartesianAxisPointer`,qEe),e.registerComponentModel(YEe),e.registerComponentView(tDe),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Q(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=dbe(e,t)}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},nDe)}function uDe(e){qG(cQ),qG(q3)}var dDe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;a.dim===`angle`&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a).getExtent(),c=a.dataToCoord(t),l=r.get(`type`);if(l&&l!==`none`){var u=O3(r),d=pDe[l](a,o,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}k3(e,n,r,i,fDe(t,n,r,o,r.get([`label`,`margin`])))},t}(S3);function fDe(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var c=r.getRadiusAxis().getExtent(),l,u,d;if(a.dim===`radius`){var f=Dk();Mk(f,f,s),jk(f,f,[r.cx,r.cy]),l=uR([o,-i],f);var p=t.getModel(`axisLabel`).get(`rotate`)||0,m=kZ.innerTextLayout(s,p*Math.PI/180,-1);u=m.textAlign,d=m.textVerticalAlign}else{var h=c[1];l=r.coordToPoint([h+i,o]);var g=r.cx,_=r.cy;u=Math.abs(l[0]-g)/h<.3?`center`:l[0]>g?`left`:`right`,d=Math.abs(l[1]-_)/h<.3?`middle`:l[1]>_?`top`:`bottom`}return{position:l,align:u,verticalAlign:d}}var pDe={line:function(e,t,n,r){return e.dim===`angle`?{type:`Line`,shape:N3(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:`Circle`,shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim===`angle`?{type:`Sector`,shape:F3(t.cx,t.cy,r[0],r[1],(-n-i/2)*a,(-n+i/2)*a)}:{type:`Sector`,shape:F3(t.cx,t.cy,n-i/2,n+i/2,0,Math.PI*2)}}},mDe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},t.type=`polar`,t.dependencies=[`radiusAxis`,`angleAxis`],t.defaultOption={z:0,center:[`50%`,`50%`],radius:`80%`},t}(yB),J3=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`polar`,PN).models[0]},t.type=`polarAxis`,t}(yB);nO(J3,Vq);var hDe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`angleAxis`,t}(J3),gDe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`radiusAxis`,t}(J3),Y3=function(e){J(t,e);function t(t,n){return e.call(this,`radius`,t,n)||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t}(uJ);Y3.prototype.dataToRadius=uJ.prototype.dataToCoord,Y3.prototype.radiusToData=uJ.prototype.coordToData;var _De=jN(),X3=function(e){J(t,e);function t(t,n){return e.call(this,`angle`,t,n||[0,360])||this}return t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),c=TM(a==null?``:a+``,t.getFont(),`center`,`top`),l=Math.max(c.height,7)/s;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),d=_De(e.model),f=d.lastAutoInterval,p=d.lastTickCount;return f!=null&&p!=null&&Math.abs(f-u)<=1&&Math.abs(p-i)<=1&&f>u?u=f:(d.lastTickCount=i,d.lastAutoInterval=u),u},t}(uJ);X3.prototype.dataToAngle=uJ.prototype.dataToCoord,X3.prototype.angleToData=uJ.prototype.coordToData;var Z3=[`radius`,`angle`],vDe=function(){function e(e){this.dimensions=Z3,this.type=`polar`,this.cx=0,this.cy=0,this._radiusAxis=new Y3,this._angleAxis=new X3,this.axisPointerEnabled=!0,this.name=e||``,this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t=`_`+e+`Axis`;return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=e!=null&&e!==`auto`?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],n)},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.pointToCoord(e);return n[0]=this._radiusAxis.radiusToData(r[0],t),n[1]=this._angleAxis.angleToData(r[1],t),n},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var c=Math.atan2(-n,t)/Math.PI*180,l=c<a?1:-1;c<a||c>o;)c+=l*360;return[s,c]},e.prototype.coordToPoint=function(e,t){t||=[];var n=e[0],r=e[1]/180*Math.PI;return t[0]=Math.cos(r)*n+this.cx,t[1]=-Math.sin(r)*n+this.cy,t},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,a=n*n+r*r,o=this.r,s=this.r0;return o!==s&&a-i<=o*o&&a+i>=s*s},x:this.cx-t[1],y:this.cy-t[1],width:t[1]*2,height:t[1]*2}},e.prototype.convertToPixel=function(e,t,n){return Q3(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return Q3(t)===this?this.pointToData(n):null},e}();function Q3(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function yDe(e,t,n){var r=t.get(`center`),i=pB(t,n).refContainer;e.cx=XM(r[0],i.width)+i.x,e.cy=XM(r[1],i.height)+i.y;var a=e.getRadiusAxis(),o=Math.min(i.width,i.height)/2,s=t.get(`radius`);s==null?s=[0,`100%`]:Q(s)||(s=[0,s]);var c=[XM(s[0],o),XM(s[1],o)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function bDe(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();X(Lq(t,`radius`),function(e){i.scale.unionExtentFromData(t,e)}),X(Lq(t,`angle`),function(e){r.scale.unionExtentFromData(t,e)})}}),jq(r.scale,r.model),jq(i.scale,i.model),r.type===`category`&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function xDe(e){return e.mainType===`angleAxis`}function $3(e,t){if(e.type=t.get(`type`),e.scale=Mq(t),e.onBand=t.get(`boundaryGap`)&&e.type===`category`,e.inverse=t.get(`inverse`),xDe(t)){e.inverse=e.inverse!==t.get(`clockwise`);var n=t.get(`startAngle`),r=t.get(`endAngle`)??n+(e.inverse?-360:360);e.setExtent(n,r)}t.axis=e,e.model=t}var SDe={dimensions:Z3,create:function(e,t){var n=[];return e.eachComponent(`polar`,function(e,r){var i=new vDe(r+``);i.update=bDe;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel(`radiusAxis`),c=e.findAxisModel(`angleAxis`);$3(a,s),$3(o,c),yDe(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e}),e.eachSeries(function(e){e.get(`coordinateSystem`)===`polar`&&(e.coordinateSystem=e.getReferringComponents(`polar`,PN).models[0].coordinateSystem)}),n}},CDe=[`axisLine`,`axisLabel`,`axisTick`,`minorTick`,`splitLine`,`minorSplitLine`,`splitArea`];function e6(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function t6(e){return+!e.getRadiusAxis().inverse}function n6(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var wDe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t){if(this.group.removeAll(),e.get(`show`)){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords({breakTicks:`none`}),o=n.getMinorTicksCoords(),s=Z(n.getViewLabels(),function(e){e=ZD(e);var t=n.scale,r=t.type===`ordinal`?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e});n6(s),n6(a),X(CDe,function(t){e.get([t,`show`])&&(!n.scale.isBlank()||t===`axisLine`)&&TDe[t](this.group,e,r,a,o,i,s)},this)}},t.type=`angleAxis`,t}(tQ),TDe={axisLine:function(e,t,n,r,i,a){var o=t.getModel([`axisLine`,`lineStyle`]),s=n.getAngleAxis(),c=Math.PI/180,l=s.getExtent(),u=t6(n),d=+!u,f,p=Math.abs(l[1]-l[0])===360?`Circle`:`Arc`;f=a[d]===0?new XL[p]({shape:{cx:n.cx,cy:n.cy,r:a[u],startAngle:-l[0]*c,endAngle:-l[1]*c,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):new yL({shape:{cx:n.cx,cy:n.cy,r:a[u],r0:a[d]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,e.add(f)},axisTick:function(e,t,n,r,i,a){var o=t.getModel(`axisTick`),s=(o.get(`inside`)?-1:1)*o.get(`length`),c=a[t6(n)],l=Z(r,function(e){return new CL({shape:e6(n,[c,c+s],e.coord)})});e.add(aR(l,{style:eO(o.getModel(`lineStyle`).getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`axisTick`),s=t.getModel(`minorTick`),c=(o.get(`inside`)?-1:1)*s.get(`length`),l=a[t6(n)],u=[],d=0;d<i.length;d++)for(var f=0;f<i[d].length;f++)u.push(new CL({shape:e6(n,[l,l+c],i[d][f].coord)}));e.add(aR(u,{style:eO(s.getModel(`lineStyle`).getLineStyle(),eO(o.getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])}))}))}},axisLabel:function(e,t,n,r,i,a,o){var s=t.getCategories(!0),c=t.getModel(`axisLabel`),l=c.get(`margin`),u=t.get(`triggerEvent`);X(o,function(r,i){var o=c,d=r.tickValue,f=a[t6(n)],p=n.coordToPoint([f+l,r.coord]),m=n.cx,h=n.cy,g=Math.abs(p[0]-m)/f<.3?`center`:p[0]>m?`left`:`right`,_=Math.abs(p[1]-h)/f<.3?`middle`:p[1]>h?`top`:`bottom`;if(s&&s[d]){var v=s[d];mO(v)&&v.textStyle&&(o=new $R(v.textStyle,c,c.ecModel))}var y=new RF({silent:kZ.isLabelSilent(t),style:RR(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get([`axisLine`,`lineStyle`,`color`]),text:r.formattedLabel,align:g,verticalAlign:_})});if(e.add(y),SR({el:y,componentModel:t,itemName:r.formattedLabel,formatterParamsExtra:{isTruncated:function(){return y.isTruncated},value:r.rawLabel,tickIndex:i}}),u){var b=kZ.makeAxisEventDataBase(t);b.targetType=`axisLabel`,b.value=r.rawLabel,YF(y).eventData=b}},this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=0;u<r.length;u++){var d=c++%s.length;l[d]=l[d]||[],l[d].push(new CL({shape:e6(n,a,r[u].coord)}))}for(var u=0;u<l.length;u++)e.add(aR(l[u],{style:eO({stroke:s[u%s.length]},o.getLineStyle()),silent:!0,z:t.get(`z`)}))},minorSplitLine:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`minorSplitLine`).getModel(`lineStyle`),s=[],c=0;c<i.length;c++)for(var l=0;l<i[c].length;l++)s.push(new CL({shape:e6(n,a,i[c][l].coord)}));e.add(aR(s,{style:o.getLineStyle(),silent:!0,z:t.get(`z`)}))}},splitArea:function(e,t,n,r,i,a){if(r.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=Math.PI/180,d=-r[0].coord*u,f=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),m=t.get(`clockwise`),h=1,g=r.length;h<=g;h++){var _=h===g?r[0].coord:r[h].coord,v=c++%s.length;l[v]=l[v]||[],l[v].push(new vL({shape:{cx:n.cx,cy:n.cy,r0:f,r:p,startAngle:d,endAngle:-_*u,clockwise:m},silent:!0})),d=-_*u}for(var h=0;h<l.length;h++)e.add(aR(l[h],{style:eO({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}},EDe=[`splitLine`,`splitArea`,`minorSplitLine`],DDe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`PolarAxisPointer`,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this._axisGroup,i=this._axisGroup=new zM;this.group.add(i);var a=e.axis,o=a.polar,s=o.getAngleAxis(),c=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=s.getExtent()[0],d=a.getExtent(),f=new kZ(e,n,kDe(o,e,u));f.build(),i.add(f.group),pR(r,i,e),X(EDe,function(t){e.get([t,`show`])&&!a.scale.isBlank()&&ODe[t](this.group,e,o,u,d,c,l)},this)}},t.type=`radiusAxis`,t}(tQ),ODe={splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0,l=n.getAngleAxis(),u=Math.PI/180,d=l.getExtent(),f=Math.abs(d[1]-d[0])===360?`Circle`:`Arc`;s=s instanceof Array?s:[s];for(var p=[],m=0;m<a.length;m++){var h=c++%s.length;p[h]=p[h]||[],p[h].push(new XL[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[m].coord,0),startAngle:-d[0]*u,endAngle:-d[1]*u,clockwise:l.inverse}}))}for(var m=0;m<p.length;m++)e.add(aR(p[m],{style:eO({stroke:s[m%s.length],fill:null},o.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,a,o){if(o.length){for(var s=t.getModel(`minorSplitLine`).getModel(`lineStyle`),c=[],l=0;l<o.length;l++)for(var u=0;u<o[l].length;u++)c.push(new aL({shape:{cx:n.cx,cy:n.cy,r:o[l][u].coord}}));e.add(aR(c,{style:eO({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,a){if(a.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=a[0].coord,d=1;d<a.length;d++){var f=c++%s.length;l[f]=l[f]||[],l[f].push(new vL({shape:{cx:n.cx,cy:n.cy,r0:u,r:a[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),u=a[d].coord}for(var d=0;d<l.length;d++)e.add(aR(l[d],{style:eO({fill:s[d%s.length]},o.getAreaStyle()),silent:!0}))}}};function kDe(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel(`axisLabel`).get(`rotate`),z2:1}}function r6(e){return e.get(`stack`)||`__ec_stack_`+e.seriesIndex}function i6(e,t){return t.dim+e.model.componentIndex}function ADe(e,t,n){var r={},i=jDe(aO(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&e.coordinateSystem.type===`polar`}));t.eachSeriesByType(e,function(e){if(e.coordinateSystem.type===`polar`){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=i6(n,a),s=r6(e),c=i[o][s],l=c.offset,u=c.width,d=n.getOtherAxis(a),f=e.coordinateSystem.cx,p=e.coordinateSystem.cy,m=e.get(`barMinHeight`)||0,h=e.get(`barMinAngle`)||0;r[s]=r[s]||[];for(var g=t.mapDimension(d.dim),_=t.mapDimension(a.dim),v=FK(t,g),y=a.dim!==`radius`||!e.get(`roundCap`,!0),b=d.model.get(`startValue`),x=d.dataToCoord(b||0),S=0,C=t.count();S<C;S++){var w=t.get(g,S),T=t.get(_,S),E=w>=0?`p`:`n`,D=x;v&&(r[s][T]||(r[s][T]={p:x,n:x}),D=r[s][T][E]);var O=void 0,k=void 0,A=void 0,j=void 0;if(d.dim===`radius`){var M=d.dataToCoord(w)-x,N=a.dataToCoord(T);Math.abs(M)<m&&(M=(M<0?-1:1)*m),O=D,k=D+M,A=N-l,j=A-u,v&&(r[s][T][E]=k)}else{var P=d.dataToCoord(w,y)-x,F=a.dataToCoord(T);Math.abs(P)<h&&(P=(P<0?-1:1)*h),O=F+l,k=O+u,A=D,j=D+P,v&&(r[s][T][E]=j)}t.setItemLayout(S,{cx:f,cy:p,r0:O,r:k,startAngle:-A*Math.PI/180,endAngle:-j*Math.PI/180,clockwise:A>=j})}}})}function jDe(e){var t={};X(e,function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=i6(i,a),s=a.getExtent(),c=a.type===`category`?a.getBandWidth():Math.abs(s[1]-s[0])/r.count(),l=t[o]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:`20%`,gap:`30%`,stacks:{}},u=l.stacks;t[o]=l;var d=r6(e);u[d]||l.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var f=XM(e.get(`barWidth`),c),p=XM(e.get(`barMaxWidth`),c),m=e.get(`barGap`),h=e.get(`barCategoryGap`);f&&!u[d].width&&(f=Math.min(l.remainedWidth,f),u[d].width=f,l.remainedWidth-=f),p&&(u[d].maxWidth=p),m!=null&&(l.gap=m),h!=null&&(l.categoryGap=h)});var n={};return X(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=XM(e.categoryGap,i),o=XM(e.gap,1),s=e.remainedWidth,c=e.autoWidthCount,l=(s-a)/(c+(c-1)*o);l=Math.max(l,0),X(r,function(e,t){var n=e.maxWidth;n&&n<l&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,c--)}),l=(s-a)/(c+(c-1)*o),l=Math.max(l,0);var u=0,d;X(r,function(e,t){e.width||=l,d=e,u+=e.width*(1+o)}),d&&(u-=d.width*o);var f=-u/2;X(r,function(e,r){n[t][r]=n[t][r]||{offset:f,width:e.width},f+=e.width*(1+o)})}),n}var MDe={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},NDe={splitNumber:5},PDe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`polar`,t}(AH);function FDe(e){qG(q3),tQ.registerAxisPointerClass(`PolarAxisPointer`,dDe),e.registerCoordinateSystem(`polar`,SDe),e.registerComponentModel(mDe),e.registerComponentView(PDe),fZ(e,`angle`,hDe,MDe),fZ(e,`radius`,gDe,NDe),e.registerComponentView(wDe),e.registerComponentView(DDe),e.registerLayout(lO(ADe,`bar`))}function a6(e,t){t||={};var n=e.coordinateSystem,r=e.axis,i={},a=r.position,o=r.orient,s=n.getRect(),c=[s.x,s.x+s.width,s.y,s.y+s.height],l={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};i.position=[o===`vertical`?l.vertical[a]:c[0],o===`horizontal`?l.horizontal[a]:c[3]],i.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[a],e.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),bO(t.labelInside,e.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var u=e.get([`axisLabel`,`rotate`]);return i.labelRotate=a===`top`?-u:u,i.z2=1,i}var IDe=[`splitArea`,`splitLine`,`breakArea`],LDe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`SingleAxisPointer`,n}return t.prototype.render=function(t,n,r,i){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new zM;var s=new kZ(t,r,a6(t));s.build(),a.add(this._axisGroup),a.add(s.group),X(IDe,function(e){t.get([e,`show`])&&RDe[e](this,this.group,this._axisGroup,t,r)},this),pR(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){iQ(this)},t.type=`singleAxis`,t}(tQ),RDe={splitLine:function(e,t,n,r,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`);c=c instanceof Array?c:[c];for(var l=s.get(`width`),u=r.coordinateSystem.getRect(),d=a.isHorizontal(),f=[],p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=0;_<m.length;++_){var v=a.toGlobalCoord(m[_].coord);d?(h[0]=v,h[1]=u.y,g[0]=v,g[1]=u.y+u.height):(h[0]=u.x,h[1]=v,g[0]=u.x+u.width,g[1]=v);var y=new CL({shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},silent:!0});sR(y.shape,l);var b=p++%c.length;f[b]=f[b]||[],f[b].push(y)}for(var x=s.getLineStyle([`color`]),_=0;_<f.length;++_)t.add(aR(f[_],{style:eO({stroke:c[_%c.length]},x),silent:!0}))}},splitArea:function(e,t,n,r,i){rQ(e,n,r,r)},breakArea:function(e,t,n,r,i){var a=dZ(),o=r.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,r,r.coordinateSystem.getRect(),i)}},o6=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getCoordSysModel=function(){return this},t.type=`singleAxis`,t.layoutMode=`box`,t.defaultOption={left:`5%`,top:`5%`,right:`5%`,bottom:`5%`,type:`value`,position:`bottom`,orient:`horizontal`,axisLine:{show:!0,lineStyle:{width:1,type:`solid`}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:`auto`},splitLine:{show:!0,lineStyle:{type:`dashed`,opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},t}(yB);nO(o6,Vq.prototype);var zDe=function(e){J(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(uJ),s6=[`single`],BDe=function(){function e(e,t,n){this.type=`single`,this.dimension=`single`,this.dimensions=s6,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=new zDe(r,Mq(e),[0,0],e.get(`type`),e.get(`position`));i.onBand=i.type===`category`&&e.get(`boundaryGap`),i.inverse=e.get(`inverse`),i.orient=e.get(`orient`),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(e,t){e.eachSeries(function(e){if(e.coordinateSystem===this){var t=e.getData();X(t.mapDimensionsAll(this.dimension),function(e){this._axis.scale.unionExtentFromData(t,e)},this),jq(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(e,t){var n=pB(e,t).refContainer;this._rect=uB(e.getBoxLayoutParams(),n),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=+!!t.inverse;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return n.orient===`horizontal`?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e,t,n){n||=[];var r=this.getAxis();return n[0]=r.coordToData(r.toLocalCoord(e[r.orient===`horizontal`?0:1])),n},e.prototype.dataToPoint=function(e,t,n){var r=this.getAxis(),i=this.getRect();n||=[];var a=r.orient===`horizontal`?0:1;return e instanceof Array&&(e=e[0]),n[a]=r.toGlobalCoord(r.dataToCoord(+e)),n[1-a]=a===0?i.y+i.height/2:i.x+i.width/2,n},e.prototype.convertToPixel=function(e,t,n){return c6(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return c6(t)===this?this.pointToData(n):null},e}();function c6(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function VDe(e,t){var n=[];return e.eachComponent(`singleAxis`,function(r,i){var a=new BDe(r,e,t);a.name=`single_`+i,a.resize(r,t),r.coordinateSystem=a,n.push(a)}),e.eachSeries(function(e){if(e.get(`coordinateSystem`)===`singleAxis`){var t=e.getReferringComponents(`singleAxis`,PN).models[0];e.coordinateSystem=t&&t.coordinateSystem}}),n}var HDe={create:VDe,dimensions:s6},l6=[`x`,`y`],UDe=[`width`,`height`],WDe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.coordinateSystem,s=d6(o,1-u6(a)),c=o.dataToPoint(t)[0],l=r.get(`type`);if(l&&l!==`none`){var u=O3(r),d=GDe[l](a,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}M3(t,e,a6(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=a6(t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=j3(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.coordinateSystem,o=u6(i),s=d6(a,o),c=[e.x,e.y];c[o]+=t[o],c[o]=Math.min(s[1],c[o]),c[o]=Math.max(s[0],c[o]);var l=d6(a,1-o),u=(l[1]+l[0])/2,d=[u,u];return d[o]=c[o],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:`middle`}}},t}(S3),GDe={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:N3([t,n[0]],[t,n[1]],u6(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:`Rect`,shape:P3([t-r/2,n[0]],[r,i],u6(e))}}};function u6(e){return+!e.isHorizontal()}function d6(e,t){var n=e.getRect();return[n[l6[t]],n[l6[t]]+n[UDe[t]]]}var KDe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`single`,t}(AH);function qDe(e){qG(q3),tQ.registerAxisPointerClass(`SingleAxisPointer`,WDe),e.registerComponentView(KDe),e.registerComponentView(LDe),e.registerComponentModel(o6),fZ(e,`single`,o6,o6.defaultOption),e.registerCoordinateSystem(`single`,HDe)}var JDe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=_B(t);e.prototype.init.apply(this,arguments),f6(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),f6(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type=`calendar`,t.layoutMode=`box`,t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:`horizontal`,splitLine:{show:!0,lineStyle:{color:$.color.axisLine,width:1,type:`solid`}},itemStyle:{color:$.color.neutral00,borderWidth:1,borderColor:$.color.neutral10},dayLabel:{show:!0,firstDay:0,position:`start`,margin:$.size.s,color:$.color.secondary},monthLabel:{show:!0,position:`start`,margin:$.size.s,align:`center`,formatter:null,color:$.color.secondary},yearLabel:{show:!0,position:null,margin:$.size.xl,formatter:null,color:$.color.quaternary,fontFamily:`sans-serif`,fontWeight:`bolder`,fontSize:20}},t}(yB);function f6(e,t){var n=e.cellSize,r=Q(n)?n:e.cellSize=[n,n];r.length===1&&(r[1]=r[0]),gB(e,t,{type:`box`,ignoreSize:Z([0,1],function(e){return Qme(t,e)&&(r[e]=`auto`),r[e]!=null&&r[e]!==`auto`})})}var YDe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,a,r),this._renderLines(e,a,o,r),this._renderYearText(e,a,o,r),this._renderMonthText(e,s,o,r),this._renderWeekText(e,s,a,o,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel(`itemStyle`).getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var c=r.dataToCalendarLayout([s],!1).tl,l=new PF({shape:{x:c[0],y:c[1],width:a,height:o},cursor:`default`,style:i});n.add(l)}},t.prototype._renderLines=function(e,t,n,r){var i=this,a=e.coordinateSystem,o=e.getModel([`splitLine`,`lineStyle`]).getLineStyle(),s=e.get([`splitLine`,`show`]),c=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var l=t.start,u=0;l.time<=t.end.time;u++){f(l.formatedDate),u===0&&(l=a.getDateInfo(t.start.y+`-`+t.start.m));var d=l.date;d.setMonth(d.getMonth()+1),l=a.getDateInfo(d)}f(a.getNextNDay(t.end.time,1).formatedDate);function f(t){i._firstDayOfMonth.push(a.getDateInfo(t)),i._firstDayPoints.push(a.dataToCalendarLayout([t],!1).tl);var c=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(c[0]),i._blpoints.push(c[c.length-1]),s&&i._drawSplitline(c,o,r)}s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,n),o,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i=n===`horizontal`?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new SL({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),c=r.dataToCalendarLayout([s.time],!1);a[2*s.day]=c.tl,a[2*s.day+1]=c[n===`horizontal`?`bl`:`tr`]}return a},t.prototype._formatterLabel=function(e,t){return dO(e)&&e?Kme(e,t):uO(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var a=t[0],o=t[1],s=[`center`,`bottom`];r===`bottom`?(o+=i,s=[`center`,`top`]):r===`left`?a-=i:r===`right`?(a+=i,s=[`center`,`top`]):o-=i;var c=0;return(r===`left`||r===`right`)&&(c=Math.PI/2),{rotation:c,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel(`yearLabel`);if(i.get(`show`)){var a=i.get(`margin`),o=i.get(`position`);o||=n===`horizontal`?`left`:`top`;var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(s[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,u=n===`horizontal`?0:1,d={top:[c,s[u][1]],bottom:[c,s[1-u][1]],left:[s[1-u][0],l],right:[s[u][0],l]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+`-`+t.end.y);var p=i.get(`formatter`),m={start:t.start.y,end:t.end.y,nameMap:f},h=new RF({z2:30,style:RR(i,{text:this._formatterLabel(p,m)}),silent:i.get(`silent`)});h.attr(this._yearTextPositionControl(h,d[o],n,o,a)),r.add(h)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var a=`left`,o=`top`,s=e[0],c=e[1];return n===`horizontal`?(c+=i,t&&(a=`center`),r===`start`&&(o=`bottom`)):(s+=i,t&&(o=`middle`),r===`start`&&(a=`right`)),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel(`monthLabel`);if(i.get(`show`)){var a=i.get(`nameMap`),o=i.get(`margin`),s=i.get(`position`),c=i.get(`align`),l=[this._tlpoints,this._blpoints];(!a||dO(a))&&(a&&(t=lz(a)||t),a=t.get([`time`,`monthAbbr`])||[]);var u=s===`start`?0:1,d=n===`horizontal`?0:1;o=s===`start`?-o:o;for(var f=c===`center`,p=i.get(`silent`),m=0;m<l[u].length-1;m++){var h=l[u][m].slice(),g=this._firstDayOfMonth[m];f&&(h[d]=(this._firstDayPoints[m][d]+l[0][m+1][d])/2);var _=i.get(`formatter`),v=a[g.m-1],y={yyyy:g.y,yy:(g.y+``).slice(2),MM:g.m,M:+g.m,nameMap:v},b=new RF({z2:30,style:Y(RR(i,{text:this._formatterLabel(_,y)}),this._monthTextPositionControl(h,f,n,s,o)),silent:p});r.add(b)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var a=`center`,o=`middle`,s=e[0],c=e[1],l=n===`start`;return t===`horizontal`?(s=s+r+(l?1:-1)*i[0]/2,a=l?`right`:`left`):(c=c+r+(l?1:-1)*i[1]/2,o=l?`bottom`:`top`),{x:s,y:c,align:a,verticalAlign:o}},t.prototype._renderWeekText=function(e,t,n,r,i){var a=e.getModel(`dayLabel`);if(a.get(`show`)){var o=e.coordinateSystem,s=a.get(`position`),c=a.get(`nameMap`),l=a.get(`margin`),u=o.getFirstDayOfWeek();(!c||dO(c))&&(c&&(t=lz(c)||t),c=t.get([`time`,`dayOfWeekShort`])||Z(t.get([`time`,`dayOfWeekAbbr`]),function(e){return e[0]}));var d=o.getNextNDay(n.end.time,7-n.lweek).time,f=[o.getCellWidth(),o.getCellHeight()];l=XM(l,Math.min(f[1],f[0])),s===`start`&&(d=o.getNextNDay(n.start.time,-(7+n.fweek)).time,l=-l);for(var p=a.get(`silent`),m=0;m<7;m++){var h=o.getNextNDay(d,m),g=o.dataToCalendarLayout([h.time],!1).center,_=m;_=Math.abs((m+u)%7);var v=new RF({z2:30,style:Y(RR(a,{text:c[_]}),this._weekTextPositionControl(g,r,s,l,f)),silent:p});i.add(v)}}},t.type=`calendar`,t}(AH),p6=864e5,XDe=function(){function e(t,n,r){this.type=`calendar`,this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t,this._update(n,r)}return e.getDimensionsInfo=function(){return[{name:`time`,type:`time`},`value`]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=iN(e);var t=e.getFullYear(),n=e.getMonth()+1,r=n<10?`0`+n:``+n,i=e.getDate(),a=i<10?`0`+i:``+i,o=e.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:t+``,m:r,d:a,day:o,time:e.getTime(),formatedDate:t+`-`+r+`-`+a,date:e}},e.prototype.getNextNDay=function(e,t){return t||=0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},e.prototype._update=function(e,t){this._firstDayOfWeek=+this._model.getModel(`dayLabel`).get(`firstDay`),this._orient=this._model.get(`orient`),this._lineWidth=this._model.getModel(`itemStyle`).getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=[`width`,`height`],i=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o=this._orient===`horizontal`?[n,7]:[7,n];X([0,1],function(e){l(i,e)&&(a[r[e]]=i[e]*o[e])});var s={width:t.getWidth(),height:t.getHeight()},c=this._rect=uB(a,s);X([0,1],function(e){l(i,e)||(i[e]=c[r[e]]/o[e])});function l(e,t){return e[t]!=null&&e[t]!==`auto`}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t,n){n||=[],Q(e)&&(e=e[0]),t??=!0;var r=this.getDateInfo(e),i=this._rangeInfo,a=r.formatedDate;if(t&&!(r.time>=i.start.time&&r.time<i.end.time+p6))return n[0]=n[1]=NaN,n;var o=r.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient===`vertical`?(n[0]=this._rect.x+o*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2):(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+o*this._sh+this._sh/2),n},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToLayout=function(e,t,n){n||={};var r=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},a=this.dataToPoint(e,t);return r.x=a[0]-this._sw/2,r.y=a[1]-this._sh/2,r.width=this._sw,r.height=this._sh,Jk.copy(i,r),yR(i,this._lineWidth/2,!0,!0),n},e.prototype.dataToCalendarLayout=function(e,t){var n=this.dataToPoint(e,t);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return this._orient===`vertical`?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=m6(t);return r===this?r.dataToPoint(n):null},e.prototype.convertToLayout=function(e,t,n){var r=m6(t);return r===this?r.dataToLayout(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=m6(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn(`Not implemented.`),!1},e.prototype._initRangeOption=function(){var e=this._model.get(`range`),t;if(Q(e)&&e.length===1&&(e=e[0]),Q(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+`-01-01`,n+`-12-31`]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var a=this.getNextNDay(i,-1);t=[r.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},e.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var r=Math.floor(t[1].time/p6)-Math.floor(t[0].time/p6)+1,i=new Date(t[0].time),a=i.getDate(),o=t[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o)for(var c=i.getTime()-t[1].time>0?1:-1;(s=i.getDate())!==o&&(i.getTime()-t[1].time)*c>0;)r-=c,i.setDate(s-c);var l=Math.floor((r+t[0].day+6)/7),u=n?-l+1:l-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:r,weeks:l,nthWeek:u,fweek:t[0].day,lweek:t[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||e===0&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=(e-1)*7-r.fweek+t,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},e.create=function(t,n){var r=[];return t.eachComponent(`calendar`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){tB({targetModel:t,coordSysType:`calendar`,coordSysProvider:nB})}),r},e.dimensions=[`time`,`value`],e}();function m6(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}function ZDe(e){e.registerComponentModel(JDe),e.registerComponentView(YDe),e.registerCoordinateSystem(`calendar`,XDe)}var h6={level:1,leaf:2,nonLeaf:3},g6={none:0,all:1,body:2,corner:3};function _6(e,t,n){var r=t[QL[n]].getCell(e);return!r&&pO(e)&&e<0&&(r=t[QL[1-n]].getUnitLayoutInfo(n,Math.round(e))),r}function v6(e){var t=e||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function y6(e,t,n,r,i){b6(e[0],t,i,n,r,0),b6(e[1],t,i,n,r,1)}function b6(e,t,n,r,i,a){e[0]=1/0,e[1]=-1/0;var o=r[a],s=Q(o)?o:[o],c=s.length,l=!!n;if(c>=1?(x6(e,t,s,l,i,a,0),c>1&&x6(e,t,s,l,i,a,c-1)):e[0]=e[1]=NaN,l){var u=-i[QL[1-a]].getLocatorCount(a),d=i[QL[a]].getLocatorCount(a)-1;n===g6.body?u=qM(0,u):n===g6.corner&&(d=KM(-1,d)),d<u&&(u=d=NaN),yO(e[0])&&(e[0]=u),yO(e[1])&&(e[1]=d),e[0]=qM(KM(e[0],d),u),e[1]=qM(KM(e[1],d),u)}}function x6(e,t,n,r,i,a,o){var s=_6(n[o],i,a);if(!s){e[0]=e[1]=NaN;return}var c=s.id[QL[a]],l=c,u=tOe(s);u&&(l+=u.span[QL[a]]-1),e[0]=KM(e[0],c,l),e[1]=qM(e[1],c,l)}function S6(e,t){return yO(e[t][0])||yO(e[t][1])}function C6(e,t,n,r){t||=QDe;for(var i=0;i<r;i++)t[i]=!1;for(;;){for(var a=!1,i=0;i<r;i++){var o=n[i];!t[i]&&o.cellMergeOwner&&$De(e,o.locatorRange)&&(t[i]=!0,a=!0)}if(!a)break}}var QDe=[];function $De(e,t){return!w6(e[0],t[0])||!w6(e[1],t[1])?!1:(e[0][0]=KM(e[0][0],t[0][0]),e[0][1]=qM(e[0][1],t[0][1]),e[1][0]=KM(e[1][0],t[1][0]),e[1][1]=qM(e[1][1],t[1][1]),!0)}function w6(e,t){return e[1]>=t[0]&&e[0]<=t[1]}function T6(e,t){e.id.set(t[0][0],t[1][0]),e.span.set(t[0][1]-e.id.x+1,t[1][1]-e.id.y+1)}function eOe(e,t){e[0][0]=t[0][0],e[0][1]=t[0][1],e[1][0]=t[1][0],e[1][1]=t[1][1]}function E6(e,t,n,r){var i=_6(t[r][0],n,r),a=_6(t[r][1],n,r);e[QL[r]]=e[$L[r]]=NaN,i&&a&&(e[QL[r]]=i.xy,e[$L[r]]=a.xy+a.wh-i.xy)}function D6(e,t,n,r){return e[QL[t]]=n,e[QL[1-t]]=r,e}function tOe(e){return e&&(e.type===h6.leaf||e.type===h6.nonLeaf)?e:null}function O6(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var k6=function(){function e(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e===`x`?0:1,this._model=t,this._uniqueValueGen=nOe(e);var n=t.get(`data`,!0);n!=null&&!Q(n)&&(n=[]),n?this._initByDimModelData(n):this._initBySeriesData()}return e.prototype._initByDimModelData=function(e){var t=this,n=t._cells,r=t._levels,i=[],a=0;t._leavesCount=o(e,0,0),s();return;function o(e,n,s){var c=0;return e&&X(e,function(e,l){var u;dO(e)?u={value:e}:mO(e)?(u=e,e.value!=null&&!dO(e.value)&&(u={value:null})):u={value:null};var d={type:h6.nonLeaf,ordinal:NaN,level:s,firstLeafLocator:n,id:new Fk,span:D6(new Fk,t.dimIdx,1,1),option:u,xy:NaN,wh:NaN,dim:t,rect:O6()};a++,(i[n]||(i[n]=[])).push(d),r[s]||(r[s]={type:h6.level,xy:NaN,wh:NaN,option:null,id:new Fk,dim:t});var f=o(u.children,n,s+1),p=Math.max(1,f);d.span[QL[t.dimIdx]]=p,c+=p,n+=p}),c}function s(){for(var e=[];n.length<a;)for(var r=0;r<i.length;r++){var o=i[r].pop();if(o){o.ordinal=e.length;var s=o.option.value;e.push(s),n.push(o),t._uniqueValueGen.calcDupBase(s)}}t._uniqueValueGen.ensureValueUnique(e,n),t._scale=new rq({ordinalMeta:t._ordinalMeta=new tq({categories:e,needCollect:!1,deduplication:!1})});for(var c=0;c<t._leavesCount;c++){var l=t._cells[c];l.type=h6.leaf,l.span[QL[1-t.dimIdx]]=t._levels.length-l.level}t._initCellsId(),t._initLevelIdOptions()}},e.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:h6.level,xy:NaN,wh:NaN,option:null,id:new Fk,dim:e}],e._initLevelIdOptions(),e._scale=new rq({ordinalMeta:e._ordinalMeta=new tq({needCollect:!0,deduplication:!0,onCollect:function(t,n){var r=e._cells[n]={type:h6.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new Fk,span:D6(new Fk,e.dimIdx,1,1),option:{value:t+``},xy:NaN,wh:NaN,dim:e,rect:O6()};e._leavesCount++,e._setCellId(r)}})})},e.prototype._setCellId=function(e){var t=this._levels.length,n=this.dimIdx;D6(e.id,n,e.firstLeafLocator,e.level-t)},e.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;X(this._cells,function(n){D6(n.id,t,n.firstLeafLocator,n.level-e)})},e.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,n=this._model.get(`levels`,!0);n=Q(n)?n:[],X(this._levels,function(r,i){D6(r.id,t,0,i-e),r.option=n[i]})},e.prototype.shouldShow=function(){return!!this._model.getShallow(`show`,!0)},e.prototype.resetLayoutIterator=function(e,t,n,r){if(e||=new zN,t===this.dimIdx){var i=this._leavesCount,a=n==null?0:Math.max(0,n);r=r==null?i:Math.min(r,i),e.reset(this._cells,a,a+r)}else{var i=this._levels.length,a=n==null?0:Math.max(0,n+i);r=r==null?i:Math.min(r,i),e.reset(this._levels,a,a+r)}return e},e.prototype.resetCellIterator=function(e){return(e||new zN).reset(this._cells,0)},e.prototype.resetLevelIterator=function(e){return(e||new zN).reset(this._levels,0)},e.prototype.getLayout=function(e,t,n){var r=this.getUnitLayoutInfo(t,n);e[QL[t]]=r?r.xy:NaN,e[$L[t]]=r?r.wh:NaN},e.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},e.prototype.getCell=function(e){var t=this._scale.parse(e);return yO(t)?void 0:this._cells[t]},e.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e}();function nOe(e){var t=e.toUpperCase(),n=RegExp(`^`+t+`([0-9]+)$`),r=0;function i(e){var t;e!=null&&(t=e.match(n))&&(r=qM(r,+t[1]+1))}function a(){return``+t+ r++}function o(e,t){for(var n=jO(),r=0;r<e.length;r++){var i=e[r];(i==null||n.get(i)!=null)&&(e[r]=i=a(),t[r].option=eO({value:i},t[r].option)),n.set(i,!0)}}return{calcDupBase:i,ensureValueUnique:o}}var A6=function(){function e(e,t,n){this._model=t,this._dims=n,this._kind=e,this._cellMergeOwnerList=[]}return e.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=jO(),n()),t;function n(){var t=[],n=e._model.getShallow(`data`);n&&!Q(n)&&(n=null),X(n,function(n,r){if(!(!mO(n)||!Q(n.coord))){var i=v6([]);if(y6(i,null,n.coord,e._dims,n.coordClamp?g6[e._kind]:g6.none),!(S6(i,0)||S6(i,1))){var a=n&&n.mergeCells,o={id:new Fk,span:new Fk,locatorRange:i,option:n,cellMergeOwner:a};T6(o,i),t.push(o)}}});for(var i=[],a=0;a<t.length;a++){var o=t[a];if(o.cellMergeOwner){var s=o.locatorRange;C6(s,i,t,a);for(var c=0;c<a;c++)i[c]&&(t[c].cellMergeOwner=!1);if(s[0][0]!==o.id.x||s[1][0]!==o.id.y){o.cellMergeOwner=!1;var l=Y({},o.option);l.coord=null;var u={id:new Fk,span:new Fk,locatorRange:s,option:l,cellMergeOwner:!0};T6(u,s),t.push(u)}}}X(t,function(t){var n=r(t.id.x,t.id.y);if(t.cellMergeOwner&&(n.cellMergeOwner=!0,n.span=t.span,n.locatorRange=t.locatorRange,n.spanRect=O6(),e._cellMergeOwnerList.push(n)),!(!t.cellMergeOwner&&!t.option))for(var i=0;i<t.span.y;i++)for(var a=0;a<t.span.x;a++){var o=r(t.id.x+a,t.id.y+i);o.option=t.option,t.cellMergeOwner&&(o.inSpanOf=n)}})}function r(e,n){var r=M6(e,n),i=t.get(r);return i||=t.set(r,{id:new Fk(e,n),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1}),i}},e.prototype.getCell=function(e){return this._ensureCellMap().get(M6(e[0],e[1]))},e.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},e.prototype.expandRangeByCellMerge=function(e){if(!S6(e,0)&&!S6(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){j6[0]=e[0][0],j6[1]=e[1][0];var t=this.getCell(j6),n=t&&t.inSpanOf;if(n){eOe(e,n.locatorRange);return}}var r=this._cellMergeOwnerList;C6(e,null,r,r.length)},e}(),j6=[];function M6(e,t){return e+`|`+t}var N6={show:!0,color:$.color.secondary,overflow:`break`,lineOverflow:`truncate`,padding:[2,3,2,3],distance:0};function P6(e){return{color:`none`,borderWidth:1,borderColor:e?`none`:$.color.borderTint}}var F6={show:!0,label:N6,itemStyle:P6(!1),silent:void 0,dividerLineStyle:{width:1,color:$.color.border}},rOe={z:-50,left:`10%`,top:`10%`,right:`10%`,bottom:`10%`,x:F6,y:F6,body:{label:N6,itemStyle:P6(!1),silent:void 0},corner:{label:N6,itemStyle:P6(!0),silent:void 0},backgroundStyle:{color:`none`,borderColor:$.color.axisLine,borderWidth:1}},iOe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var e=this._dimModels={x:new I6(this.get(`x`,!0)||{}),y:new I6(this.get(`y`,!0)||{})};e.x.option.type=e.y.option.type=`category`;var t={x:e.x.dim=new k6(`x`,e.x),y:e.y.dim=new k6(`y`,e.y)};this._body=new A6(`body`,new $R(this.getShallow(`body`)),t),this._corner=new A6(`corner`,new $R(this.getShallow(`corner`)),t)},t.prototype.getDimensionModel=function(e){return this._dimModels[e]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type=`matrix`,t.layoutMode=`box`,t.defaultOption=rOe,t}(yB),I6=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}($R),L6=Math.round,aOe=0,oOe=99,sOe={normal:25,special:100},cOe={normal:50,special:125},lOe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t){this.group.removeAll();var n=this.group,r=e.coordinateSystem.getRect(),i=e.getDimensionModel(`x`),a=e.getDimensionModel(`y`),o=i.dim,s=a.dim;uOe(n,e,t),dOe(n,e,o,s,t);var c=xO(e.getShallow(`borderZ2`,!0),oOe),l=c-1,u=e.getModel(`backgroundStyle`).getItemStyle([`borderWidth`]);u.lineWidth=0;var d=e.getModel(`backgroundStyle`).getItemStyle([`color`,`decal`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]);d.fill=`none`;var f=U6(r.clone(),u,aOe),p=U6(r.clone(),d,c);f.silent=!0,p.silent=!0,n.add(f),n.add(p);var m=o.getUnitLayoutInfo(0,0),h=s.getUnitLayoutInfo(1,0);m&&h&&(o.shouldShow()&&n.add(W6({x1:r.x,y1:h.xy,x2:r.x+r.width,y2:h.xy},i.getModel(`dividerLineStyle`).getLineStyle(),l)),s.shouldShow()&&n.add(W6({x1:m.xy,y1:r.y,x2:m.xy,y2:r.y+r.height},a.getModel(`dividerLineStyle`).getLineStyle(),l)))},t.type=`matrix`,t}(AH);function uOe(e,t,n){r(0),r(1);function r(r){var i=t.getDimensionModel(QL[r]),a=i.dim;if(a.shouldShow())for(var o=i.getModel(`itemStyle`),s=i.getModel(`label`),c=t.getShallow(`tooltip`,!0),l=[],u=a.resetCellIterator();u.next();){var d=u.item,f={};Jk.copy(f,d.rect),UO(l,d.id.x,d.id.y),R6(l,t,e,n,d.option,o,s,i,f,d.option.value,cOe,c)}}}function dOe(e,t,n,r,i){a(`body`,t.getBody(),n,r),n.shouldShow()&&r.shouldShow()&&a(`corner`,t.getCorner(),r,n);function a(n,r,a,o){var s=new $R(t.getShallow(n,!0)),c=s.getModel(`itemStyle`),l=s.getModel(`label`),u=new zN,d=new zN,f=[],p=t.getShallow(`tooltip`,!0);for(o.resetLayoutIterator(d,1);d.next();)for(a.resetLayoutIterator(u,0);u.next();){var m=u.item,h=d.item;UO(f,m.id.x,h.id.y);var g=r.getCell(f);if(!(g&&g.inSpanOf&&g.inSpanOf!==g)){var _={};g&&g.span?Jk.copy(_,g.spanRect):(m.dim.getLayout(_,0,f[0]),h.dim.getLayout(_,1,f[1]));var v=g?g.option:null;R6(f,t,e,i,v,c,l,s,_,v?v.value:null,sOe,p)}}}}function R6(e,t,n,r,i,a,o,s,c,l,u,d){B6.option=i?i.itemStyle:null,B6.parentModel=a,z6.option=i,z6.parentModel=s;var f=xO(z6.getShallow(`z2`),i&&i.itemStyle?u.special:u.normal),p=d&&d.show,m=U6(c,B6.getItemStyle(),f);n.add(m);var h=z6.get(`cursor`);h!=null&&m.attr(`cursor`,h);var g;if(l!=null){var _=l+``;if(V6.option=i?i.label:null,V6.parentModel=o,V6.ecModel=r,IR(m,{normal:V6},{defaultText:_,autoOverflowArea:!0,layoutRect:ZD(m.shape)}),g=m.getTextContent(),g){g.z2=f+1;var v=g.style;if(v&&v.overflow&&v.overflow!==`none`&&v.lineOverflow){var y={};Jk.copy(y,c),yR(y,(m.style?.lineWidth||0)/2,!0,!0),m.updateInnerText(),g.getLocalTransform(H6),Pk(H6,H6),Jk.applyTransform(y,y,H6),g.setClipPath(new PF({shape:y}))}}SR({el:m,componentModel:t,itemName:_,itemTooltipOption:d,formatterParamsExtra:{xyLocator:e.slice()}})}if(g){var b=V6.get(`silent`);b??=!p,g.silent=b,g.ignoreHostSilent=!0}var x=z6.get(`silent`);x??=!m.style||m.style.fill===`none`||!m.style.fill,m.silent=x,BN(z6),BN(B6),BN(V6)}var z6=new $R,B6=new $R,V6=new $R,H6=[];function U6(e,t,n){var r=t.lineWidth;if(r){var i=e.x+e.width,a=e.y+e.height;e.x=NF(e.x,r,!0),e.y=NF(e.y,r,!0),e.width=NF(i,r,!0)-e.x,e.height=NF(a,r,!0)-e.y}return new PF({shape:e,style:t,z2:n})}function W6(e,t,n){var r=t.lineWidth;return r&&(L6(e.x1*2)===L6(e.x2*2)&&(e.x1=e.x2=NF(e.x1,r,!0)),L6(e.y1*2)===L6(e.y2*2)&&(e.y1=e.y2=NF(e.y1,r,!0))),new CL({shape:e,style:t,silent:!0,z2:n})}var fOe=function(){function e(t,n,r){this.dimensions=e.dimensions,this.type=`matrix`,this._model=t;var i=this._dimModels={x:t.getDimensionModel(`x`),y:t.getDimensionModel(`y`)};this._dims={x:i.x.dim,y:i.y.dim},this._resize(t,r)}return e.getDimensionsInfo=function(){return[{name:`x`,type:`ordinal`},{name:`y`,type:`ordinal`},{name:`value`}]},e.create=function(t,n){var r=[];return t.eachComponent(`matrix`,function(i){var a=new e(i,t,n);r.push(a),i.coordinateSystem=a}),t.eachComponent(function(e,t){tB({targetModel:t,coordSysType:`matrix`,coordSysProvider:nB})}),r},e.prototype.getRect=function(){return this._rect},e.prototype._resize=function(e,t){var n=this._dims,r=this._dimModels,i=this._rect=uB(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});J6(r,n,i,0),J6(r,n,i,1),Y6(0,n),Y6(1,n),X6(this._model.getBody(),n),X6(this._model.getCorner(),n)},e.prototype.dataToPoint=function(e,t,n){return n||=[],this.dataToLayout(e,t,G6),n[0]=G6.rect.x+G6.rect.width/2,n[1]=G6.rect.y+G6.rect.height/2,n},e.prototype.dataToLayout=function(e,t,n){var r=this._dims;n||={};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var a=n.matrixXYLocatorRange=v6(n.matrixXYLocatorRange);return Q(e)?(y6(a,null,e,r,xO(t&&t.clamp,g6.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==g6.corner)&&this._model.getBody().expandRangeByCellMerge(a),(!t||t.clamp!==g6.body)&&this._model.getCorner().expandRangeByCellMerge(a)),E6(i,a,r,0),E6(i,a,r,1),n):n},e.prototype.pointToData=function(e,t,n){var r=this._dims;return n8(t8,0,r,e,t&&t.clamp),n8(t8,1,r,e,t&&t.clamp),n||=[],n[0]=n[1]=NaN,t8.y===e8.inCorner&&t8.x===e8.inBody?r8(t8,n,0,r):t8.x===e8.inCorner&&t8.y===e8.inBody?r8(t8,n,1,r):(i8(t8,n,0,r),i8(t8,n,1,r)),n},e.prototype.convertToPixel=function(e,t,n,r){var i=$6(t);return i===this?i.dataToPoint(n,r):void 0},e.prototype.convertToLayout=function(e,t,n,r){var i=$6(t);return i===this?i.dataToLayout(n,r):void 0},e.prototype.convertFromPixel=function(e,t,n,r){var i=$6(t);return i===this?i.pointToData(n,r):void 0},e.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},e.dimensions=[`x`,`y`,`value`],e}(),G6={rect:O6()},K6=new zN,q6=new zN;function J6(e,t,n,r){for(var i=1-r,a=t[QL[r]],o=t[QL[i]],s=o.shouldShow(),c=a.resetCellIterator();c.next();)c.item.wh=c.item.xy=NaN;for(var l=o.resetLayoutIterator(null,r);l.next();)l.item.wh=l.item.xy=NaN;for(var u=n[$L[r]],d=a.getLocatorCount(r)+o.getLocatorCount(r),f=new $R,p=o.resetLevelIterator();p.next();)f.option=p.item.option,f.parentModel=e[QL[i]],g(p.item,s?f.get(`levelSize`):0);for(var m=new $R,h=a.resetCellIterator();h.next();)h.item.type===h6.leaf&&(m.option=h.item.option,m.parentModel=void 0,g(h.item,m.get(`size`)));function g(e,t){var i=pOe(t,r,n);yO(i)||(e.wh=Q6(i,u),u=Q6(u-e.wh),d--)}var _=d?u/d:0,v=!d&&u>=1,y=n[QL[r]],b=a.getLocatorCount(r)-1,x=new zN;for(o.resetLayoutIterator(x,r);x.next();)S(x.item);for(a.resetLayoutIterator(x,r);x.next();)S(x.item);function S(e){yO(e.wh)&&(e.wh=_),e.xy=y,e.id[QL[r]]===b&&!v&&(e.wh=n[QL[r]]+n[$L[r]]-e.xy),y+=e.wh}}function Y6(e,t){for(var n=t[QL[e]].resetCellIterator();n.next();){var r=n.item;Z6(r.rect,e,r.id,r.span,t),Z6(r.rect,1-e,r.id,r.span,t),r.type===h6.nonLeaf&&(r.xy=r.rect[QL[e]],r.wh=r.rect[$L[e]])}}function X6(e,t){e.travelExistingCells(function(e){var n=e.span;if(n){var r=e.spanRect,i=e.id;Z6(r,0,i,n,t),Z6(r,1,i,n,t)}})}function Z6(e,t,n,r,i){e[$L[t]]=0;var a=n[QL[t]]<0?i[QL[1-t]]:i[QL[t]],o=a.getUnitLayoutInfo(t,n[QL[t]]);if(e[QL[t]]=o.xy,e[$L[t]]=o.wh,r[QL[t]]>1){var s=a.getUnitLayoutInfo(t,n[QL[t]]+r[QL[t]]-1);e[$L[t]]=s.xy+s.wh-o.xy}}function pOe(e,t,n){return Q6(ZM(e,n[$L[t]]),n[$L[t]])}function Q6(e,t){return Math.max(Math.min(e,xO(t,1/0)),0)}function $6(e){var t=e.matrixModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var e8={inBody:1,inCorner:2,outside:3},t8={x:null,y:null,point:[]};function n8(e,t,n,r,i){var a=n[QL[t]],o=n[QL[1-t]],s=a.getUnitLayoutInfo(t,a.getLocatorCount(t)-1),c=a.getUnitLayoutInfo(t,0),l=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),u=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,d=e.point[t]=r[t];if(!c&&!u){e[QL[t]]=e8.outside;return}if(i===g6.body){c?(e[QL[t]]=e8.inBody,d=KM(s.xy+s.wh,qM(c.xy,d)),e.point[t]=d):e[QL[t]]=e8.outside;return}else if(i===g6.corner){u?(e[QL[t]]=e8.inCorner,d=KM(u.xy+u.wh,qM(l.xy,d)),e.point[t]=d):e[QL[t]]=e8.outside;return}var f=c?c.xy:u?u.xy+u.wh:NaN,p=l?l.xy:f,m=s?s.xy+s.wh:f;if(d<p){if(!i){e[QL[t]]=e8.outside;return}d=p}else if(d>m){if(!i){e[QL[t]]=e8.outside;return}d=m}e.point[t]=d,e[QL[t]]=f<=d&&d<=m?e8.inBody:p<=d&&d<=f?e8.inCorner:e8.outside}function r8(e,t,n,r){var i=1-n;if(e[QL[n]]!==e8.outside)for(r[QL[n]].resetCellIterator(q6);q6.next();){var a=q6.item;if(a8(e.point[n],a.rect,n)&&a8(e.point[i],a.rect,i)){t[n]=a.ordinal,t[i]=a.id[QL[i]];return}}}function i8(e,t,n,r){if(e[QL[n]]!==e8.outside){for((e[QL[n]]===e8.inCorner?r[QL[1-n]]:r[QL[n]]).resetLayoutIterator(K6,n);K6.next();)if(mOe(e.point[n],K6.item)){t[n]=K6.item.id[QL[n]];return}}}function mOe(e,t){return t.xy<=e&&e<=t.xy+t.wh}function a8(e,t,n){return t[QL[n]]<=e&&e<=t[QL[n]]+t[$L[n]]}function hOe(e){e.registerComponentModel(iOe),e.registerComponentView(lOe),e.registerCoordinateSystem(`matrix`,fOe)}function gOe(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function o8(e,t){var n;return X(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function _Oe(e,t,n){var r=Y({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(QD(i,r,!0),gB(i,r,{ignoreSize:!0}),vB(n,i),c8(n,i),c8(n,i,`shape`),c8(n,i,`style`),c8(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var s8=[`transition`,`enterFrom`,`leaveTo`],vOe=s8.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function c8(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?s8:vOe,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function yOe(e,t){if(e&&(e.hv=t.hv=[o8(t,[`left`,`right`]),o8(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}var bOe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=wN(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];X(o,function(e,t){var n=e.newOption;n&&(s.push(n),gOe(e,n),_Oe(i,t,n),yOe(i[t],n))},this),n.elements=aO(i,function(e){return e&&delete e.$action,e!=null})},t.prototype._flatten=function(e,t,n){X(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type=`graphic`,t.defaultOption={elements:[]},t}(yB),l8={path:null,compoundPath:null,group:zM,image:OF,text:RF},u8=jN(),xOe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=jO()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);X(t,function(t){var o=DN(t.id,null),s=o==null?null:n.get(o),c=DN(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&A4(d,u,!!p,!!f)){var m=j4(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=SOe(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=f8(o,l,t.type,n):(b&&(u8(b).isNew=!1),J4(b)),b&&(B4(b,h,e,{isInit:y}),m8(b,t,i,a))}else if(v){p8(s,t,n,e);var x=f8(o,l,t.type,n);x&&(B4(x,h,e,{isInit:!0}),m8(x,t,i,a))}else g===`remove`&&(V4(s,t),p8(s,t,n,e));var S=n.get(o);if(S&&f)if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new RF(f))}else v&&S.setTextContent(new RF(f));if(S){var w=t.clipPath;if(w){var T=w.type,E=void 0,y=!1;if(_){var D=S.getClipPath();y=!D||u8(D).type!==T,E=y?d8(T):D}else v&&(y=!0,E=d8(T));S.setClipPath(E),B4(E,w,e,{isInit:y}),Y4(E,w.keyframeAnimation,e)}var O=u8(S);S.setTextConfig(p),O.option=t,COe(S,e,t),SR({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),Y4(S,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++){var l=n[c],u=DN(l.id,null),d=u==null?null:i.get(u);if(!(!d||!d.isGroup)){var f=d.parent,p=f===r,m=u8(d),h=u8(f);m.width=XM(m.option.width,p?a:h.width)||0,m.height=XM(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=DN(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=u8(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=mB(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!u8(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(U4(y)||tO(y,S)>=0)?b[S]=C:d[S]=C}UL(d,b,e,0)}else d.attr(_)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){p8(n,u8(n).option,t,e._lastGraphicModel)}),this._elMap=jO()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(AH);function d8(e){var t=new(FO(l8,e)?l8[e]:tR(e))({});return u8(t).type=e,t}function f8(e,t,n,r){var i=d8(n);return t.add(i),r.set(e,i),u8(i).id=e,u8(i).isNew=!0,i}function p8(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){p8(e,t,n,r)}),H4(e,t,r),n.removeKey(u8(e).id))}function m8(e,t,n,r){e.isGroup||X([[`cursor`,mP.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];FO(t,r)?e[r]=xO(t[r],n[1]):e[r]??(e[r]=n[1])}),X(sO(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=uO(r)?r:null}}),FO(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function SOe(e){return e=Y({},e),X([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(iB),function(t){delete e[t]}),e}function COe(e,t,n){var r=YF(e).eventData;!e.silent&&!e.ignore&&!r&&(r=YF(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function wOe(e){e.registerComponentModel(bOe),e.registerComponentView(xOe),e.registerPreprocessor(function(e){var t=e.graphic;Q(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var h8=[`x`,`y`,`radius`,`angle`,`single`],TOe=[`cartesian2d`,`polar`,`singleAxis`];function EOe(e){return tO(TOe,e.get(`coordinateSystem`))>=0}function g8(e){return e+`Axis`}function DOe(e,t){var n=jO(),r=[],i=jO();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function _8(e){var t=e.ecModel,n={infoList:[],infoMap:jO()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(g8(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}var v8=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),y8=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=b8(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=b8(e);QD(this.option,e,!0),QD(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;X([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=jO();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return X(h8,function(n){var r=this.getReferringComponents(g8(n),Yfe);if(r.specified){t=!0;var i=new v8;X(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new v8;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,PN).models[0];o&&X(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,PN).models[0]&&a.add(e.componentIndex)})}}}r&&X(h8,function(t){if(r){var i=n.findComponents({mainType:g8(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new v8;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);X([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(g8(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){X(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(g8(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;X([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;X([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,t).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||=s}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type=`dataZoom`,t.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],t.defaultOption={z:4,filterMode:`filter`,start:0,end:100},t}(yB);function b8(e){var t={};return X([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var OOe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(y8),x8=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(AH),kOe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(x8),S8=X,C8=$M,AOe=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(EOe(t)){var n=g8(this._dimName),r=t.getReferringComponents(n,PN).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return ZD(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),i=[0,100],a=[],o=[],s;S8([`start`,`end`],function(c,l){var u=e[c],d=e[c+`Value`];r[l]===`percent`?(u??=i[l],d=n.parse(YM(u,i,t))):(s=!0,d=d==null?t[l]:n.parse(d),u=YM(d,t,i)),o[l]=d==null||isNaN(d)?t[l]:d,a[l]=u==null||isNaN(u)?i[l]:u}),C8(o),C8(a);var c=this._minMaxSpan;s?l(o,a,t,i,!1):l(a,o,i,t,!0);function l(e,t,r,i,a){var o=a?`Span`:`ValueSpan`;P0(0,e,r,`all`,c[`min`+o],c[`max`+o]);for(var s=0;s<2;s++)t[s]=YM(e[s],r,i,!0),a&&(t[s]=n.parse(t[s]))}return{valueWindow:o,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=jOe(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._valueWindow;if(i===`none`)return;S8(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=Z(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else S8(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});S8(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;S8([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=YM(i,[0,100],n,!0)-n[0]):i=YM(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=tN(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax(`min`,+n[0].toFixed(r)),t[1]!==100&&i.setDeterminedMinMax(`max`,+n[1].toFixed(r)),i.freeze()}},e}();function jOe(e,t,n){var r=[1/0,-1/0];S8(n,function(e){d_e(r,e.getData(),t)});var i=e.getAxisModel(),a=Oq(i.axis.scale,i,r).calculate();return[a.min,a.max]}var MOe={getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(g8(r),i),n)})})}t(function(e,t,n,r){n.__dzAxisProxy=null});var n=[];t(function(t,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new AOe(t,r,a,e),n.push(i.__dzAxisProxy))});var r=jO();return X(n,function(e){X(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};function NOe(e){e.registerAction(`dataZoom`,function(e,t){X(DOe(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var w8=!1;function T8(e){w8||(w8=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,MOe),NOe(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`}))}function POe(e){e.registerComponentModel(OOe),e.registerComponentView(kOe),T8(e)}var E8=function(){function e(){}return e}(),D8={};function O8(e,t){D8[e]=t}function k8(e){return D8[e]}var FOe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;X(this.option.feature,function(e,n){var r=k8(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),QD(e,r.defaultOption))})},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:$.size.m,itemSize:15,itemGap:$.size.s,showTitle:!0,iconStyle:{borderColor:$.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:$.color.accent50}},tooltip:{show:!1,position:`bottom`}},t}(yB);function A8(e,t){var n=Vz(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new PF({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var IOe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||={},l=[];X(s,function(e,t){l.push(t)}),new XG(this._featureNames||[],l).add(u).update(u).remove(lO(u,null)).execute(),this._featureNames=l;function u(i,a){var o=l[i],u=l[a],f=s[o],p=new $R(f,e,e.ecModel),m;if(r&&r.newTitle!=null&&r.featureName===o&&(f.title=r.newTitle),o&&!u){if(LOe(o))m={onclick:p.option.onclick,featureName:o};else{var h=k8(o);if(!h)return;m=new h}c[o]=m}else if(m=c[u],!m)return;m.uid=ez(`toolbox-feature`),m.model=p,m.ecModel=t,m.api=n;var g=m instanceof E8;if(!o&&u){g&&m.dispose&&m.dispose(t,n);return}if(!p.get(`show`)||g&&m.unusable){g&&m.remove&&m.remove(t,n);return}d(p,m,o),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?SI:CI)(r[e])},m instanceof E8&&m.render&&m.render(p,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof E8&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;dO(d)?(p={},p[c]=d):p=d,dO(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};X(p,function(c,d){var f=hR(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new RF({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:WR({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),SR({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||$.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?SI:CI)(f),i.add(f),f.on(`click`,cO(s.onclick,s,t,n,d)),h[d]=f})}var f=pB(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=uB(p,f,m);sB(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),mB(i,p,f,m),i.add(A8(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!uO(c)&&t){var l=c.style||={},u=TM(t,RF.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){X(this._features,function(e){e instanceof E8&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){X(this._features,function(n){n instanceof E8&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){X(this._features,function(n){n instanceof E8&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(AH);function LOe(e){return e.indexOf(`my`)===0}var ROe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||$.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=zD.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=`<body style="margin:0;"><img src="`+o+`" style="max-width:100%;" title="`+(b&&b[0]||``)+`" /></body>`,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:$.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(E8),j8=`__ec_magicType_stack__`,zOe=[[`line`,`bar`],[`stack`]],BOe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return X(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(M8[n]){var a={series:[]};X(zOe,function(e){tO(e,n)>=0&&X(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=M8[n](t,i,e,r);o&&(eO(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,PN).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=QD({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(E8),M8={line:function(e,t,n,r){if(e===`bar`)return QD({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return QD({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===j8;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),QD({id:t,stack:i?``:j8},r.get([`option`,`stack`])||{},!0)}};FG({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var N8=Array(60).join(`-`),P8=` `;function VOe(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=a.dim+`_`+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function HOe(e){var t=[];return X(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(Z(e.series,function(e){return e.name})),o=[r.model.getCategories()];X(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(P8)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(P8))}t.push(s.join(`
|
||
`))}),t.join(`
|
||
|
||
`+N8+`
|
||
|
||
`)}function UOe(e){return Z(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+P8:``)+r.join(P8))}),n.join(`
|
||
`)}).join(`
|
||
|
||
`+N8+`
|
||
|
||
`)}function WOe(e){var t=VOe(e);return{value:aO([HOe(t.seriesGroupByCategoryAxis),UOe(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
|
||
|
||
`+N8+`
|
||
|
||
`),meta:t.meta}}function F8(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function GOe(e){if(e.slice(0,e.indexOf(`
|
||
`)).indexOf(P8)>=0)return!0}var I8=RegExp(`[`+P8+`]+`,`g`);function KOe(e){for(var t=e.split(/\n+/g),n=F8(t.shift()).split(I8),r=[],i=Z(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=F8(t[a]).split(I8);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function qOe(e){for(var t=e.split(/\n+/g),n=F8(t.shift()),r=[],i=0;i<t.length;i++){var a=F8(t[i]);if(a){var o=a.split(I8),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function JOe(e,t){var n=e.split(RegExp(`
|
||
*`+N8+`
|
||
*`,`g`)),r={series:[]};return X(n,function(e,n){if(GOe(e)){var i=KOe(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=qOe(e);r.series.push(i)}}),r}var YOe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||$.color.neutral00;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=WOe(e);if(uO(l)){var f=l(t.getOption());dO(f)?s.innerHTML=f:_O(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.cssText=`display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}Sk(_,`click`,b),Sk(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){b();return}var e;try{e=uO(u)?u(s,t.getOption()):JOe(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:$.color.background,textColor:$.color.primary,textareaColor:$.color.background,textareaBorderColor:$.color.border,buttonColor:$.color.accent50,buttonTextColor:$.color.neutral00}},t}(E8);function XOe(e,t){return Z(e,function(e,n){var r=t&&t[n];if(mO(r)&&!Q(r)){mO(e)&&!Q(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=eO(e,r),i&&delete e.name,e}else return e})}FG({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];X(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(Y({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:XOe(e.data,i)})}}),t.mergeOption(eO({series:n},e.newOption))});var L8=X,R8=jN();function ZOe(e,t){var n=z8(e);L8(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function QOe(e){var t=z8(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return L8(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function $Oe(e){R8(e).snapshots=null}function eke(e){return z8(e).length}function z8(e){var t=R8(e);return t.snapshots||=[{}],t.snapshots}var tke=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){$Oe(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(E8);FG({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var nke=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],B8=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=H8(t,e);X(rke,function(e,t){(!n||!n.include||tO(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=G8[e.brushType](0,n,t);e.__rangeOffset={offset:q8[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){X(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&X(r.coordSyses,function(r){n(e,G8[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){X(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=G8[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?q8[e.brushType](r.values,i.offset,ike(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return Z(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:w2(r),isTargetByCursor:E2(r,e,n.coordSysModel),getLinearBrushOtherExtent:T2(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&tO(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=H8(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<U8.length;s++)if(U8[s](r,a))return a}return!0},e}();function V8(e){return e[0]>e[1]&&e.reverse(),e}function H8(e,t){return MN(e,t,{includeMainTypes:nke})}var rke={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=jO(),o={},s={};!n&&!r&&!i||(X(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),X(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),X(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];X(i.getCartesians(),function(e,t){(tO(n,e.getAxis(`x`).model)>=0||tO(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:W8.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){X(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:W8.geo})})}},U8=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],W8={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(lR(e)),t}},G8={lineX:lO(K8,0),lineY:lO(K8,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[V8([i[0],a[0]]),V8([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:Z(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function K8(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=V8(Z([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var q8={lineX:lO(J8,0),lineY:lO(J8,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Z(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function J8(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function ike(e,t){var n=Y8(e),r=Y8(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Y8(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var X8=X,ake=Wfe(`toolbox-dataZoom_`),oke=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new Y0(n.getZr()),this._brushController.on(`brush`,cO(this._onBrush,this)).mount()),lke(e,t,this,r,n),cke(e,t)},t.prototype.onclick=function(e,t,n){ske[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new B8(Z8(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=e.brushType;r===`rect`?(i(`x`,n,t[0]),i(`y`,n,t[1])):i({lineX:`x`,lineY:`y`}[r],n,t)}}),ZOe(r,n),this._dispatchZoomAction(n);function i(e,t,i){var o=t.getAxis(e),s=o.model,c=a(e,s,r),l=c.findRepresentativeAxisProxy(s).getMinMaxSpan();(l.minValueSpan!=null||l.maxValueSpan!=null)&&(i=P0(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),c&&(n[c.id]={dataZoomId:c.id,startValue:i[0],endValue:i[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];X8(e,function(e,n){t.push(ZD(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{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:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:$.color.backgroundTint}}},t}(E8),ske={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(QOe(this.ecModel))}};function Z8(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function cke(e,t){e.setIconStatus(`back`,eke(t)>1?`emphasis`:`normal`)}function lke(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`?r.dataZoomSelectActive:!1),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new B8(Z8(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}ohe(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=MN(e,Z8(r));X8(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),X8(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:ake+t+a};o[n]=a,i.push(o)}return i});function uke(e){e.registerComponentModel(FOe),e.registerComponentView(IOe),O8(`saveAsImage`,ROe),O8(`magicType`,BOe),O8(`dataView`,YOe),O8(`dataZoom`,oke),O8(`restore`,tke),qG(POe)}var dke=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:$.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:$.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:$.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:$.color.tertiary,fontSize:14}},t}(yB);function Q8(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function $8(e){if(zD.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var e5=$8([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),fke=$8([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function t5(e,t){if(!e)return t;t=Bz(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function pke(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var mke=t5(fke,`transition`),n5=t5(e5,`transform`),hke=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(zD.transform3dSupported?`will-change:transform;`:``);function gke(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function _ke(e,t,n){if(!dO(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Kz(t);var a=gke(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=n5+`:`,l;tO([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function vke(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(zD.transformSupported?``+n5+i:`,left`+i+`,top`+i)),mke+`:`+a}function r5(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!zD.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=zD.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+n5+`:`+o+`;`:[[`top`,0],[`left`,0],[e5,o]]}function yke(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=xO(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),X([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function bke(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=bH(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(vke(a,n,r)),o&&i.push(`background-color:`+o),X([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Bz(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(yke(d)),f!=null&&i.push(`padding:`+Vz(f).join(`px `)+`px`),i.join(`;`)+`;`}function i5(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Sde(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var xke=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,zD.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(dO(i)?document.querySelector(i):_O(i)?i:uO(i)&&i(e.getDom()));i5(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;xk(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=pke(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=hke+bke(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+r5(i[0],i[1],!0)+(`border-color:`+Kz(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(dO(i)&&n.get(`trigger`)===`item`&&!Q8(n)&&(o=_ke(n,r,i)),dO(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,Q(e)||(e=[e]);for(var s=0;s<e.length;s++)_O(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(i5(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;X(r5(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,zD.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(cO(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Cde(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),Ske=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),s5(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;mO(e)&&gN(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new RF({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:bH(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),X([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),X([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=o5(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;s5(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=a5(i.borderWidth||0),o=o5(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(cO(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function a5(e){return Math.max(0,e)}function o5(e){var t=a5(e.shadowBlur||0),n=a5(e.shadowOffsetX||0),r=a5(e.shadowOffsetY||0);return{left:a5(t-n),right:a5(t+n),top:a5(t-r),bottom:a5(t+r)}}function s5(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Cke=new PF({shape:{x:-1,y:-1,width:2,height:2}}),wke=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(zD.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=Zfe(n.get(`renderMode`));this._tooltipContent=r===`richText`?new Ske(t):new xke(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(zD.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?BH(this,`_updatePosition`,50,`fixRate`):VH(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);z3(`itemTooltip`,this._api,cO(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||zD.node||!n.getDom())){var i=l5(r,n);this._ticket=``;var a=r.dataByCoordSys,o=Oke(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=Cke;c.x=r.x,c.y=r.y,c.update(),YF(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=H3(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(l5(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&c5([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(YF(n).ssrType===`legend`)return;this._lastDataByCoordSys=null;var i,a;dU(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(YF(e).dataIndex==null?YF(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=cO(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=c5([t.tooltipOption],r),o=this._renderMode,s=[],c=fH(`section`,{blocks:[],noHeader:!0}),l=[],u=new xH;X(e,function(e){X(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value;if(!(!t||i==null)){var a=A3(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=fH(`section`,{header:a,noHeader:!EO(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),X(e.seriesDataIndices,function(c){var f=n.getSeriesByIndex(c.seriesIndex),p=c.dataIndexInside,m=f.getDataParams(p);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=Pq(t.axis,{value:i}),m.axisValueLabel=a,m.marker=u.makeTooltipMarker(`item`,Kz(m.color),o);var h=HV(f.formatTooltip(p,!0,null)),g=h.frag;if(g){var _=c5([f],r).get(`valueFormatter`);d.blocks.push(_?Y({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=gH(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
||
|
||
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=YF(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=c5([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new xH;h.marker=g.makeTooltipMarker(`item`,Kz(h.color),d);var _=HV(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?gH(y?Y({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=YF(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(dO(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=ZD(a),a.content=hk(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=c5(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new xH;this._showOrMove(d,function(){var n=ZD(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(dO(u)){var p=e.ecModel.get(`useUTC`),m=Q(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=Cz(m.axisValue,d,p)),d=Gz(d,n,!0)}else if(uO(u)){var g=cO(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||Q(t))return{color:r||i};if(!Q(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),uO(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),Q(t))n=XM(t[0],s),r=XM(t[1],c);else if(mO(t)){var p=t;p.width=l[0],p.height=l[1];var m=uB(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(dO(t)&&o){var h=Dke(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=Tke(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=u5(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=u5(d)?l[1]/2:d===`bottom`?l[1]:0),Q8(e)){var h=Eke(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&X(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&X(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&X(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&X(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){zD.node||!t.getDom()||(VH(this,`_updatePosition`),this._tooltipContent.dispose(),V3(`itemTooltip`,t))},t.type=`tooltip`,t}(AH);function c5(e,t,n){var r=t.ecModel,i;n?(i=new $R(n,r,r),i=new $R(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof $R&&(o=o.get(`tooltip`,!0)),dO(o)&&(o={formatter:o}),o&&(i=new $R(o,i,r)))}return i}function l5(e,t){return e.dispatchAction||cO(t.dispatchAction,t)}function Tke(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function Eke(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Dke(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function u5(e){return e===`center`||e===`middle`}function Oke(e,t,n){var r=NN(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=FN(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=YF(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function kke(e){qG(q3),e.registerComponentModel(dke),e.registerComponentView(wke),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},IO),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},IO)}var Ake=[`rect`,`polygon`,`keep`,`clear`];function jke(e,t){var n=bN(e?e.brush:[]);if(n.length){var r=[];X(n,function(e){var t=e.hasOwnProperty(`toolbox`)?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var i=e&&e.toolbox;Q(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||={},o=a.brush||={},s=o.type||=[];s.push.apply(s,r),Mke(s),t&&!s.length&&s.push.apply(s,Ake)}}function Mke(e){var t={};X(e,function(e){t[e]=1}),e.length=0,X(t,function(t,n){e.push(n)})}var d5=X;function f5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function p5(e,t,n){var r={};return d5(t,function(t){var a=r[t]=i();d5(e[t],function(e,r){if(o1.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new o1(i),r===`opacity`&&(i=ZD(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new o1(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function m5(e,t,n){var r;X(n,function(e){t.hasOwnProperty(e)&&f5(t[e])&&(r=!0)}),r&&X(n,function(n){t.hasOwnProperty(n)&&f5(t[n])?e[n]=ZD(t[n]):delete e[n]})}function Nke(e,t,n,r,i,a){var o={};X(e,function(e){o[e]=o1.prepareVisualTypes(t[e])});var s;function c(e){return oU(n,s,e)}function l(e,t){cU(n,s,e,t)}a==null?n.each(u):n.each([a],u);function u(e,u){s=a==null?e:u;var d=n.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=r.call(i,e),p=t[f],m=o[f],h=0,g=m.length;h<g;h++){var _=m[h];p[_]&&p[_].applyVisual(e,c,l)}}}function Pke(e,t,n,r){var i={};return X(e,function(e){i[e]=o1.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return oU(a,l,e)}function c(e,t){cU(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}function Fke(e){var t=e.brushType,n={point:function(r){return h5[t].point(r,n,e)},rect:function(r){return h5[t].rect(r,n,e)}};return n}var h5={lineX:g5(0),lineY:g5(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&Uq(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,c=r[0];if(Uq(r,i,a)||Uq(r,i+o,a)||Uq(r,i,a+s)||Uq(r,i+o,a+s)||Jk.create(e).contain(c[0],c[1])||gR(i,a,i+o,a,r)||gR(i,a,i,a+s,r)||gR(i+o,a,i+o,a+s,r)||gR(i,a+s,i+o,a+s,r))return!0}}};function g5(e){var t=[`x`,`y`],n=[`width`,`height`];return{point:function(t,n,r){if(t){var i=r.range,a=t[e];return _5(a,i)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),_5(s[0],o)||_5(s[1],o)||_5(o[0],s)||_5(o[1],s)}}}}function _5(e,t){return t[0]<=e&&e<=t[1]}var v5=[`inBrush`,`outOfBrush`],y5=`__ecBrushSelect`,b5=`__ecInBrushSelectEvent`;function x5(e){e.eachComponent({mainType:`brush`},function(t){(t.brushTargetManager=new B8(t.option,e)).setInputRanges(t.areas,e)})}function Ike(e,t,n){var r=[],i,a;e.eachComponent({mainType:`brush`},function(e){n&&n.type===`takeGlobalCursor`&&e.setBrushOption(n.key===`brush`?n.brushOption:{brushType:!1})}),x5(e),e.eachComponent({mainType:`brush`},function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:ZD(t.areas),selected:[]};r.push(o);var s=t.option,c=s.brushLink,l=[],u=[],d=[],f=!1;n||(i=s.throttleType,a=s.throttleDelay);var p=Z(t.areas,function(e){var t=Bke[e.brushType],n=eO({boundingRect:t?t(e):void 0},e);return n.selectors=Fke(n),n}),m=p5(t.option,v5,function(e){e.mappingMethod=`fixed`});Q(c)&&X(c,function(e){l[e]=1});function h(e){return c===`all`||!!l[e]}function g(e){return!!e.length}e.eachSeries(function(e,t){var n=d[t]=[];e.subType===`parallel`?_(e,t):v(e,t,n)});function _(e,t){var n=e.coordinateSystem;f||=n.hasAxisBrushed(),h(t)&&n.eachActiveState(e.getData(),function(e,t){e===`active`&&(u[t]=1)})}function v(n,r,i){if(!(!n.brushSelector||zke(t,r))&&(X(p,function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),f||=g(i)}),h(r)&&g(i))){var a=n.getData();a.each(function(e){S5(n,i,a,e)&&(u[e]=1)})}}e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var r=d[t],i=e.getData(),a=h(t)?function(e){return u[e]?(n.dataIndex.push(i.getRawIndex(e)),`inBrush`):`outOfBrush`}:function(t){return S5(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),`inBrush`):`outOfBrush`};(h(t)?f:g(r))&&Nke(v5,m,i,a)})}),Lke(t,i,a,r,n)}function Lke(e,t,n,r,i){if(i){var a=e.getZr();a[b5]||(a[y5]||(a[y5]=Rke),BH(a,y5,n,t)(e,r))}}function Rke(e,t){if(!e.isDisposed()){var n=e.getZr();n[b5]=!0,e.dispatchAction({type:`brushSelect`,batch:t}),n[b5]=!1}}function S5(e,t,n,r){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(r,n,o.selectors,o))return!0}}function zke(e,t){var n=e.option.seriesIndex;return n!=null&&n!==`all`&&(Q(n)?tO(n,t)<0:t!==n)}var Bke={rect:function(e){return C5(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t||=[[1/0,-1/0],[1/0,-1/0]];var a=n[r];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&C5(t)}};function C5(e){return new Jk(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Vke=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new Y0(t.getZr())).on(`brush`,cO(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){x5(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`brush`,brushId:t,areas:ZD(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:`brushEnd`,brushId:t,areas:ZD(n),$from:t})},t.type=`brush`,t}(AH),Hke=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&m5(n,e,[`inBrush`,`outOfBrush`]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},r.hasOwnProperty(`liftZ`)||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Z(e,function(e){return w5(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=w5(this.option,e),this.brushType=this.brushOption.brushType},t.type=`brush`,t.dependencies=[`geo`,`grid`,`xAxis`,`yAxis`,`parallel`,`series`],t.defaultOption={seriesIndex:`all`,brushType:`rect`,brushMode:`single`,transformable:!0,brushStyle:{borderWidth:1,color:$.color.backgroundTint,borderColor:$.color.borderTint},throttleType:`fixRate`,throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:$.color.disabled},t}(yB);function w5(e,t){return QD({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new $R(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var Uke=[`rect`,`polygon`,`lineX`,`lineY`,`keep`,`clear`],Wke=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:`brush`},function(e){r=e.brushType,i=e.brushOption.brushMode||`single`,a||=!!e.areas.length}),this._brushType=r,this._brushMode=i,X(e.get(`type`,!0),function(t){e.setIconStatus(t,(t===`keep`?i===`multiple`:t===`clear`?a:t===r)?`emphasis`:`normal`)})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`,!0),n={};return X(e.get(`type`,!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;n===`clear`?(t.dispatchAction({type:`axisAreaSelect`,intervals:[]}),t.dispatchAction({type:`brush`,command:`clear`,areas:[]})):t.dispatchAction({type:`takeGlobalCursor`,key:`brush`,brushOption:{brushType:n===`keep`?r:r===n?!1:n,brushMode:n===`keep`?i===`multiple`?`single`:`multiple`:i}})},t.getDefaultOption=function(e){return{show:!0,type:Uke.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:e.getLocaleModel().get([`toolbox`,`brush`,`title`])}},t}(E8);function Gke(e){e.registerComponentView(Vke),e.registerComponentModel(Hke),e.registerPreprocessor(jke),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Ike),e.registerAction({type:`brush`,event:`brush`,update:`updateVisual`},function(e,t){t.eachComponent({mainType:`brush`,query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:`brushSelect`,event:`brushSelected`,update:`none`},IO),e.registerAction({type:`brushEnd`,event:`brushEnd`,update:`none`},IO),O8(`brush`,Wke)}var Kke=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:$.size.m,backgroundColor:$.color.transparent,borderColor:$.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:$.color.primary},subtextStyle:{fontSize:12,color:$.color.quaternary}},t}(yB),qke=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=xO(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new RF({style:RR(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new RF({style:RR(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){qz(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){qz(p,`_`+e.get(`subtarget`))}),YF(c).eventData=YF(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=uB(g,pB(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new PF({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(AH);function Jke(e){e.registerComponentModel(Kke),e.registerComponentView(qke)}var T5=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode=`box`,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e??=this.option.currentIndex;var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,t=e.data||[],n=e.axisType,r=this._names=[],i;n===`category`?(i=[],X(t,function(e,t){var n=DN(CN(e),``),a;mO(e)?(a=ZD(e),a.value=t):a=t,i.push(a),r.push(n)})):i=t;var a={category:`ordinal`,time:`time`,value:`number`}[n]||`number`;(this._data=new wK([{name:`value`,type:a}],this)).initData(i,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get(`axisType`)===`category`)return this._names.slice()},t.type=`timeline`,t.defaultOption={z:4,show:!0,axisType:`time`,realtime:!0,left:`20%`,top:null,right:`20%`,bottom:0,width:null,height:40,padding:$.size.m,controlPosition:`left`,autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:$.color.secondary},data:[]},t}(yB),E5=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline.slider`,t.defaultOption=tz(T5.defaultOption,{backgroundColor:`rgba(0,0,0,0)`,borderColor:$.color.border,borderWidth:0,orient:`horizontal`,inverse:!1,tooltip:{trigger:`item`},symbol:`circle`,symbolSize:12,lineStyle:{show:!0,width:2,color:$.color.accent10},label:{position:`auto`,show:!0,interval:`auto`,rotate:0,color:$.color.tertiary},itemStyle:{color:$.color.accent20,borderWidth:0},checkpointStyle:{symbol:`circle`,symbolSize:15,color:$.color.accent50,borderColor:$.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`rgba(0, 0, 0, 0)`,animation:!0,animationDuration:300,animationEasing:`quinticInOut`},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:`left`,playIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z`,stopIcon:`path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z`,nextIcon:`path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z`,prevIcon:`path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z`,prevBtnSize:18,nextBtnSize:18,color:$.color.accent50,borderColor:$.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:$.color.accent60},itemStyle:{color:$.color.accent60,borderColor:$.color.accent60},controlStyle:{color:$.color.accent70,borderColor:$.color.accent70}},progress:{lineStyle:{color:$.color.accent30},itemStyle:{color:$.color.accent40}},data:[]}),t}(T5);nO(E5,VV.prototype);var Yke=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`timeline`,t}(AH),Xke=function(e){J(t,e);function t(t,n,r,i){var a=e.call(this,t,n,r)||this;return a.type=i||`value`,a}return t.prototype.getLabelModel=function(){return this.model.getModel(`label`)},t.prototype.isHorizontal=function(){return this.model.get(`orient`)===`horizontal`},t}(uJ),D5=Math.PI,O5=jN(),Zke=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get(`show`,!0)){var r=this._layout(e,n),i=this._createGroup(`_mainGroup`),a=this._createGroup(`_labelGroup`),o=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return fH(`nameValue`,{noName:!0,value:o.scale.getLabel({value:e})})},X([`AxisLine`,`AxisTick`,`Control`,`CurrentPointer`],function(t){this[`_render`+t](r,i,o,e)},this),this._renderAxisLabel(r,a,o,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n=e.get([`label`,`position`]),r=e.get(`orient`),i=$ke(e,t),a=n==null||n===`auto`?r===`horizontal`?i.y+i.height/2<t.getHeight()/2?`-`:`+`:i.x+i.width/2<t.getWidth()/2?`+`:`-`:dO(n)?{horizontal:{top:`-`,bottom:`+`},vertical:{left:`-`,right:`+`}}[r][n]:n,o={horizontal:`center`,vertical:a>=0||a===`+`?`left`:`right`},s={horizontal:a>=0||a===`+`?`top`:`bottom`,vertical:`middle`},c={horizontal:0,vertical:D5/2},l=r===`vertical`?i.height:i.width,u=e.getModel(`controlStyle`),d=u.get(`show`,!0),f=d?u.get(`itemSize`):0,p=d?u.get(`itemGap`):0,m=f+p,h=e.get([`label`,`rotate`])||0;h=h*D5/180;var g,_,v,y=u.get(`position`,!0),b=d&&u.get(`showPlayBtn`,!0),x=d&&u.get(`showPrevBtn`,!0),S=d&&u.get(`showNextBtn`,!0),C=0,w=l;y===`left`||y===`bottom`?(b&&(g=[0,0],C+=m),x&&(_=[C,0],C+=m),S&&(v=[w-f,0],w-=m)):(b&&(g=[w-f,0],w-=m),x&&(_=[0,0],C+=m),S&&(v=[w-f,0],w-=m));var T=[C,w];return e.get(`inverse`)&&T.reverse(),{viewRect:i,mainLength:l,orient:r,rotation:c[r],labelRotation:h,labelPosOpt:a,labelAlign:e.get([`label`,`align`])||o[r],labelBaseline:e.get([`label`,`verticalAlign`])||e.get([`label`,`baseline`])||s[r],playPosition:g,prevBtnPosition:_,nextBtnPosition:v,axisExtent:T,controlSize:f,controlGap:p}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if(e.orient===`vertical`){var a=Dk(),o=i.x,s=i.y+i.height;jk(a,a,[-o,-s]),Mk(a,a,-D5/2),jk(a,a,[o,s]),i=i.clone(),i.applyTransform(a)}var c=g(i),l=g(n.getBoundingRect()),u=g(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=c[0][0];var p=e.labelPosOpt;if(p==null||dO(p)){var m=p===`+`?0:1;_(d,l,c,1,m),_(f,u,c,1,1-m)}else{var m=p>=0?0:1;_(d,l,c,1,m),f[1]=d[1]+p}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,h(n),h(r);function h(e){e.originX=c[0][0]-e.x,e.originY=c[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get(`axisType`),i=Qke(t,r);i.getTicks=function(){return n.mapArray([`value`],function(e){return{value:e}})};var a=n.getDataExtent(`value`);i.setExtent(a[0],a[1]),i.calcNiceTicks();var o=new Xke(`value`,i,e.axisExtent,r);return o.model=t,o},t.prototype._createGroup=function(e){var t=this[e]=new zM;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get([`lineStyle`,`show`])){var a=new CL({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Y({lineCap:`round`},r.getModel(`lineStyle`).getLineStyle()),silent:!0,z2:1});t.add(a);var o=this._progressLine=new CL({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:eO({lineCap:`round`,lineWidth:a.style.lineWidth},r.getModel([`progress`,`lineStyle`]).getLineStyle()),silent:!0,z2:1});t.add(o)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],X(o,function(e){var o=n.dataToCoord(e.value),s=a.getItemModel(e.value),c=s.getModel(`itemStyle`),l=s.getModel([`emphasis`,`itemStyle`]),u=s.getModel([`progress`,`itemStyle`]),d=k5(s,c,t,{x:o,y:0,onclick:cO(i._changeTimeline,i,e.value)});d.ensureState(`emphasis`).style=l.getItemStyle(),d.ensureState(`progress`).style=u.getItemStyle(),PI(d);var f=YF(d);s.get(`tooltip`)?(f.dataIndex=e.value,f.dataModel=r):f.dataIndex=f.dataModel=null,i._tickSymbols.push(d)})},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get(`show`)){var a=r.getData(),o=n.getViewLabels();this._tickLabels=[],X(o,function(r){var o=r.tickValue,s=a.getItemModel(o),c=s.getModel(`label`),l=s.getModel([`emphasis`,`label`]),u=s.getModel([`progress`,`label`]),d=new RF({x:n.dataToCoord(r.tickValue),y:0,rotation:e.labelRotation-e.rotation,onclick:cO(i._changeTimeline,i,o),silent:!1,style:RR(c,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState(`emphasis`).style=RR(l),d.ensureState(`progress`).style=RR(u),t.add(d),PI(d),O5(d).dataIndex=o,i._tickLabels.push(d)})}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,a=e.rotation,o=r.getModel(`controlStyle`).getItemStyle(),s=r.getModel([`emphasis`,`controlStyle`]).getItemStyle(),c=r.getPlayState(),l=r.get(`inverse`,!0);u(e.nextBtnPosition,`next`,cO(this._changeTimeline,this,l?`-`:`+`)),u(e.prevBtnPosition,`prev`,cO(this._changeTimeline,this,l?`+`:`-`)),u(e.playPosition,c?`stop`:`play`,cO(this._handlePlayClick,this,!c),!0);function u(e,n,c,l){if(e){var u=kM(xO(r.get([`controlStyle`,n+`BtnSize`]),i),i),d=[0,-u/2,u,u],f=eAe(r,n+`Icon`,d,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:l?-a:0,rectHover:!0,style:o,onclick:c});f.ensureState(`emphasis`).style=s,t.add(f),PI(f)}}},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel(`checkpointStyle`),s=this,c={onCreate:function(e){e.draggable=!0,e.drift=cO(s._handlePointerDrag,s),e.ondragend=cO(s._handlePointerDragend,s),A5(e,s._progressLine,a,n,r,!0)},onUpdate:function(e){A5(e,s._progressLine,a,n,r)}};this._currentPointer=k5(o,o,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:`timelinePlayChange`,playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=$M(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=n,a.dirty());var o=this._findNearestTick(n),s=this.model;(t||o!==s.getCurrentIndex()&&s.get(`realtime`))&&this._changeTimeline(o)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get(`rewind`,!0)?-1:1))},this.model.get(`playInterval`)))},t.prototype._toAxisCoord=function(e){return uR(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t=this.model.getData(),n=1/0,r,i=this._axis;return t.each([`value`],function(t,a){var o=i.dataToCoord(t),s=Math.abs(o-e);s<n&&(n=s,r=a)}),r},t.prototype._clearTimer=function(){this._timer&&=(clearTimeout(this._timer),null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();e===`+`?e=t+1:e===`-`&&(e=t-1),this.api.dispatchAction({type:`timelineChange`,currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState(`progress`,r<e);if(n)for(var r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState(`progress`,O5(n[r]).dataIndex<=e)},t.type=`timeline.slider`,t}(Yke);function Qke(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new rq({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case`time`:return new yq({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new aq}}function $ke(e,t){return uB(e.getBoxLayoutParams(),pB(e,t).refContainer,e.get(`padding`))}function eAe(e,t,n,r){var i=r.style,a=hR(e.get([`controlStyle`,t]),r||{},new Jk(n[0],n[1],n[2],n[3]));return i&&a.setStyle(i),a}function k5(e,t,n,r,i,a){var o=t.get(`color`);i?(i.setColor(o),n.add(i),a&&a.onUpdate(i)):(i=pU(e.get(`symbol`),-1,-1,2,2,o),i.setStyle(`strokeNoScale`,!0),n.add(i),a&&a.onCreate(i));var s=t.getItemStyle([`color`]);i.setStyle(s),r=QD({rectHover:!0,z2:100},r,!0);var c=mU(e.get(`symbolSize`));r.scaleX=c[0]/2,r.scaleY=c[1]/2;var l=hU(e.get(`symbolOffset`),c);l&&(r.x=(r.x||0)+l[0],r.y=(r.y||0)+l[1]);var u=e.get(`symbolRotate`);return r.rotation=(u||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function A5(e,t,n,r,i,a){if(!e.dragging){var o=i.getModel(`checkpointStyle`),s=r.dataToCoord(i.getData().get(`value`,n));if(a||!o.get(`animation`,!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var c={duration:o.get(`animationDuration`,!0),easing:o.get(`animationEasing`,!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},c),t&&t.animateTo({shape:{x2:s}},c)}}}function tAe(e){e.registerAction({type:`timelineChange`,event:`timelineChanged`,update:`prepareAndUpdate`},function(e,t,n){var r=t.getComponent(`timeline`);return r&&e.currentIndex!=null&&(r.setCurrentIndex(e.currentIndex),!r.get(`loop`,!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:`timelinePlayChange`,playState:!1,from:e.from}))),t.resetOption(`timeline`,{replaceMerge:r.get(`replaceMerge`,!0)}),eO({currentIndex:r.option.currentIndex},e)}),e.registerAction({type:`timelinePlayChange`,event:`timelinePlayChanged`,update:`update`},function(e,t){var n=t.getComponent(`timeline`);n&&e.playState!=null&&n.setPlayState(e.playState)})}function nAe(e){var t=e&&e.timeline;Q(t)||(t=t?[t]:[]),X(t,function(e){e&&rAe(e)})}function rAe(e){var t=e.type,n={number:`value`,time:`time`};if(n[t]&&(e.axisType=n[t],delete e.type),j5(e),M5(e,`controlPosition`)){var r=e.controlStyle||={};M5(r,`position`)||(r.position=e.controlPosition),r.position===`none`&&!M5(r,`show`)&&(r.show=!1,delete r.position),delete e.controlPosition}X(e.data||[],function(e){mO(e)&&!Q(e)&&(!M5(e,`value`)&&M5(e,`name`)&&(e.value=e.name),j5(e))})}function j5(e){var t=e.itemStyle||={},n=t.emphasis||={},r=e.label||e.label||{},i=r.normal||={},a={normal:1,emphasis:1};X(r,function(e,t){!a[t]&&!M5(i,t)&&(i[t]=e)}),n.label&&!M5(r,`emphasis`)&&(r.emphasis=n.label,delete n.label)}function M5(e,t){return e.hasOwnProperty(t)}function iAe(e){e.registerComponentModel(E5),e.registerComponentView(Zke),e.registerSubTypeDefaulter(`timeline`,function(){return`slider`}),tAe(e),e.registerPreprocessor(nAe)}function N5(e,t){if(!e)return!1;for(var n=Q(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function P5(e){xN(e,`label`,[`show`])}var F5=jN(),I5=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(zD.node)return!1;var e=this.__hostSeries;return this.getShallow(`animation`)&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries(function(e){var n=e.get(this.mainType,!0),a=F5(e)[i];if(!n||!n.data){F5(e)[i]=null;return}a?a._mergeOption(n,t,!0):(r&&P5(n),X(n.data,function(e){e instanceof Array?(P5(e[0]),P5(e[1])):P5(e)}),a=this.createMarkerModelFromSeries(n,this,t),Y(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),F5(e)[i]=a},this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return fH(`section`,{header:this.name,blocks:[fH(`nameValue`,{name:a,value:i,noName:!a,noValue:i==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=VV.prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},t.getMarkerModelFromSeries=function(e,t){return F5(e)[t]},t.type=`marker`,t.dependencies=[`series`,`grid`,`polar`,`geo`],t}(yB);nO(I5,VV.prototype);var aAe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markPoint`,t.defaultOption={z:5,symbol:`pin`,symbolSize:50,tooltip:{trigger:`item`},label:{show:!0,position:`inside`},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(I5);function L5(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function oAe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function R5(e,t,n,r,i,a,o){var s=[],c=FK(t,i)?t.getCalculationInfo(`stackResultDimension`):i,l=W5(t,c,e),u=t.hostModel.indicesOfNearest(n,c,l)[0];s[a]=t.get(r,u),s[o]=t.get(c,u);var d=t.get(i,u),f=eN(t.get(i,u));return f=Math.min(f,20),f>=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var z5={min:lO(R5,`min`),max:lO(R5,`max`),average:lO(R5,`average`),median:lO(R5,`median`)};function B5(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!oAe(t)&&!Q(t.coord)&&Q(i)){var a=V5(t,n,r,e);if(t=ZD(t),t.type&&z5[t.type]&&a.baseAxis&&a.valueAxis){var o=tO(i,a.baseAxis.dim),s=tO(i,a.valueAxis.dim),c=z5[t.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!Q(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&z5[t.type]){var u=r.getOtherAxis(l);u&&(t.value=W5(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)z5[d[f]]&&(d[f]=W5(n,n.mapDimension(i[f]),d[f]));return t}}function V5(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(sAe(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function sAe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function H5(e,t){return e&&e.containData&&t.coord&&!L5(t)?e.containData(t.coord):!0}function cAe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!L5(t)&&!L5(n)?e.containZone(t.coord,n.coord):!0}function U5(e,t){return e?function(e,n,r,i){return GV(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return GV(e.value,t[i])}}function W5(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}else if(n===`median`)return e.getMedian(t);else return e.getDataExtent(t)[+(n===`max`)]}var G5=jN(),K5=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=jO()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){G5(e).keep=!1}),t.eachSeries(function(e){var i=I5.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!G5(e).keep&&r.group.remove(e.group)}),lAe(t,i,this.type)},t.prototype.markKeep=function(e){G5(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;X(e,function(e){var r=I5.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?wI(e):TI(e))})})},t.type=`marker`,t}(AH);function lAe(e,t,n){e.eachSeries(function(e){var r=I5.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=kR(r),o=a.z,s=a.zlevel;jR(i.group,o,s)}})}function q5(e,t,n){var r=t.coordinateSystem,i=n.getWidth(),a=n.getHeight(),o=r&&r.getArea&&r.getArea();e.each(function(n){var s=e.getItemModel(n),c=s.get(`relativeTo`)===`coordinate`,l=c?o?o.width:0:i,u=c?o?o.height:0:a,d=c&&o?o.x:0,f=c&&o?o.y:0,p,m=XM(s.get(`x`),l)+d,h=XM(s.get(`y`),u)+f;if(!isNaN(m)&&!isNaN(h))p=[m,h];else if(t.getMarkerPosition)p=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(r){var g=e.get(r.dimensions[0],n),_=e.get(r.dimensions[1],n);p=r.dataToPoint([g,_])}isNaN(m)||(p[0]=m),isNaN(h)||(p[1]=h),e.setItemLayout(n,p)})}var uAe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=I5.getMarkerModelFromSeries(e,`markPoint`);t&&(q5(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new rX),l=dAe(i,e,t);t.setData(l),q5(t.getData(),e,r),l.each(function(e){var n=l.getItemModel(e),r=n.getShallow(`symbol`),i=n.getShallow(`symbolSize`),a=n.getShallow(`symbolRotate`),s=n.getShallow(`symbolOffset`),c=n.getShallow(`symbolKeepAspect`);if(uO(r)||uO(i)||uO(a)||uO(s)){var u=t.getRawValue(e),d=t.getDataParams(e);uO(r)&&(r=r(u,d)),uO(i)&&(i=i(u,d)),uO(a)&&(a=a(u,d)),uO(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=n.get(`z2`),m=sU(o,`color`);f.fill||=m,l.setItemVisual(e,{z2:xO(p,0),symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})}),c.updateData(l),this.group.add(c.group),l.eachItemGraphicEl(function(e){e.traverse(function(e){YF(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markPoint`,t}(K5);function dAe(e,t,n){var r=e?Z(e&&e.dimensions,function(e){return Y(Y({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new wK(r,n),a=Z(n.get(`data`),lO(B5,t));e&&(a=aO(a,lO(H5,e)));var o=U5(!!e,r);return i.initData(a,null,o),i}function fAe(e){e.registerComponentModel(aAe),e.registerComponentView(uAe),e.registerPreprocessor(function(e){N5(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var pAe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markLine`,t.defaultOption={z:5,symbol:[`circle`,`arrow`],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:`item`},label:{show:!0,position:`end`,distance:5},lineStyle:{type:`dashed`},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:`linear`},t}(I5),J5=jN(),mAe=function(e,t,n,r){var i=e.getData(),a;if(Q(r))a=r;else{var o=r.type;if(o===`min`||o===`max`||o===`average`||o===`median`||r.xAxis!=null||r.yAxis!=null){var s=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis==null?`x`:`y`),c=bO(r.yAxis,r.xAxis);else{var l=V5(r,i,t,e);s=l.valueAxis,c=W5(i,IK(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=ZD(r),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var m=n.get(`precision`);m>=0&&pO(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[u]=p.coord[u]=c,a=[f,p,{type:o,valueIndex:r.valueIndex,value:c}]}else a=[]}var h=[B5(e,a[0]),B5(e,a[1]),Y({},a[2])];return h[2].type=h[2].type||null,QD(h[2],h[0]),QD(h[2],h[1]),h};function Y5(e){return!isNaN(e)&&!isFinite(e)}function X5(e,t,n,r){var i=1-e,a=r.dimensions[e];return Y5(t[i])&&Y5(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function hAe(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(X5(1,n,r,e)||X5(0,n,r,e)))return!0}return H5(e,t[0])&&H5(e,t[1])}function Z5(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=XM(o.get(`x`),i.getWidth()),l=XM(o.get(`y`),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),f=e.get(u[1],t);s=a.dataToPoint([d,f])}if(hX(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;Y5(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[+!n]):Y5(e.get(u[1],t))&&(s[1]=m.toGlobalCoord(m.getExtent()[+!n]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var gAe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=I5.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=J5(t).from,a=J5(t).to;i.each(function(t){Z5(i,t,!0,e,n),Z5(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new a0);this.group.add(c.group);var l=_Ae(i,e,t),u=l.from,d=l.to,f=l.line;J5(t).from=u,J5(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);Q(p)||(p=[p,p]),Q(m)||(m=[m,m]),Q(h)||(h=[h,h]),Q(g)||(g=[g,g]),l.from.each(function(e){_(u,e,!0),_(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e),n=t.getModel(`lineStyle`).getLineStyle();f.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]);var r=t.get(`z2`);n.stroke??=u.getItemVisual(e,`style`).fill,f.setItemVisual(e,{z2:xO(r,0),fromSymbolKeepAspect:u.getItemVisual(e,`symbolKeepAspect`),fromSymbolOffset:u.getItemVisual(e,`symbolOffset`),fromSymbolRotate:u.getItemVisual(e,`symbolRotate`),fromSymbolSize:u.getItemVisual(e,`symbolSize`),fromSymbol:u.getItemVisual(e,`symbol`),toSymbolKeepAspect:d.getItemVisual(e,`symbolKeepAspect`),toSymbolOffset:d.getItemVisual(e,`symbolOffset`),toSymbolRotate:d.getItemVisual(e,`symbolRotate`),toSymbolSize:d.getItemVisual(e,`symbolSize`),toSymbol:d.getItemVisual(e,`symbol`),style:n})}),c.updateData(f),l.line.eachItemGraphicEl(function(e){YF(e).dataModel=t,e.traverse(function(e){YF(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);Z5(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=sU(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:xO(a.get(`symbolOffset`,!0),g[+!i]),symbolRotate:xO(a.get(`symbolRotate`,!0),h[+!i]),symbolSize:xO(a.get(`symbolSize`),m[+!i]),symbol:xO(a.get(`symbol`,!0),p[+!i]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(K5);function _Ae(e,t,n){var r=e?Z(e&&e.dimensions,function(e){return Y(Y({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new wK(r,n),a=new wK(r,n),o=new wK([],n),s=Z(n.get(`data`),lO(mAe,t,e,n));e&&(s=aO(s,lO(hAe,e)));var c=U5(!!e,r);return i.initData(Z(s,function(e){return e[0]}),null,c),a.initData(Z(s,function(e){return e[1]}),null,c),o.initData(Z(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function vAe(e){e.registerComponentModel(pAe),e.registerComponentView(gAe),e.registerPreprocessor(function(e){N5(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var yAe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markArea`,t.defaultOption={z:1,tooltip:{trigger:`item`},animation:!1,label:{show:!0,position:`top`},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:`top`}}},t}(I5),Q5=jN(),bAe=function(e,t,n,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=B5(e,i),s=B5(e,a),c=o.coord,l=s.coord;c[0]=bO(c[0],-1/0),c[1]=bO(c[1],-1/0),l[0]=bO(l[0],1/0),l[1]=bO(l[1],1/0);var u=$D([{},o,s]);return u.coord=[o.coord,s.coord],u.x0=o.x,u.y0=o.y,u.x1=s.x,u.y1=s.y,u}};function $5(e){return!isNaN(e)&&!isFinite(e)}function e7(e,t,n,r){var i=1-e;return $5(t[i])&&$5(n[i])}function xAe(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},a={coord:r,x:t.x1,y:t.y1};return hX(e,`cartesian2d`)?n&&r&&(e7(1,n,r,e)||e7(0,n,r,e))?!0:cAe(e,i,a):H5(e,i)||H5(e,a)}function t7(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=XM(o.get(n[0]),i.getWidth()),l=XM(o.get(n[1]),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition){var u=e.getValues([`x0`,`y0`],t),d=e.getValues([`x1`,`y1`],t),f=a.clampData(u),p=a.clampData(d),m=[];n[0]===`x0`?m[0]=f[0]>p[0]?d[0]:u[0]:m[0]=f[0]>p[0]?u[0]:d[0],n[1]===`y0`?m[1]=f[1]>p[1]?d[1]:u[1]:m[1]=f[1]>p[1]?u[1]:d[1],s=r.getMarkerPosition(m,n,!0)}else{var h=e.get(n[0],t),g=e.get(n[1],t),_=[h,g];a.clampData&&a.clampData(_,_),s=a.dataToPoint(_,!0)}if(hX(a,`cartesian2d`)){var v=a.getAxis(`x`),y=a.getAxis(`y`),h=e.get(n[0],t),g=e.get(n[1],t);$5(h)?s[0]=v.toGlobalCoord(v.getExtent()[n[0]===`x0`?0:1]):$5(g)&&(s[1]=y.toGlobalCoord(y.getExtent()[n[1]===`y0`?0:1]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}return s}var n7=[[`x0`,`y0`],[`x1`,`y0`],[`x1`,`y1`],[`x0`,`y1`]],SAe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=I5.getMarkerModelFromSeries(e,`markArea`);if(t){var r=t.getData();r.each(function(t){var i=Z(n7,function(i){return t7(r,t,i,e,n)});r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape(`points`,i)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,{group:new zM});this.group.add(c.group),this.markKeep(c);var l=CAe(i,e,t);t.setData(l),l.each(function(t){var n=Z(n7,function(n){return t7(l,t,n,e,r)}),a=i.getAxis(`x`).scale,s=i.getAxis(`y`).scale,c=a.getExtent(),u=s.getExtent(),d=[a.parse(l.get(`x0`,t)),a.parse(l.get(`x1`,t))],f=[s.parse(l.get(`y0`,t)),s.parse(l.get(`y1`,t))];$M(d),$M(f);var p=c[0]>d[1]||c[1]<d[0]||u[0]>f[1]||u[1]<f[0];l.setItemLayout(t,{points:n,allClipped:p});var m=l.getItemModel(t),h=m.getModel(`itemStyle`).getItemStyle(),g=m.get(`z2`),_=sU(o,`color`);h.fill||(h.fill=_,dO(h.fill)&&(h.fill=sj(h.fill,.4))),h.stroke||=_,l.setItemVisual(t,`style`,h),l.setItemVisual(t,`z2`,xO(g,0))}),l.diff(Q5(c).data).add(function(e){var t=l.getItemLayout(e),n=l.getItemVisual(e,`z2`);if(!t.allClipped){var r=new xL({z2:xO(n,0),shape:{points:t.points}});l.setItemGraphicEl(e,r),c.group.add(r)}}).update(function(e,n){var r=Q5(c).data.getItemGraphicEl(n),i=l.getItemLayout(e),a=l.getItemVisual(e,`z2`);i.allClipped?r&&c.group.remove(r):(r?UL(r,{z2:xO(a,0),shape:{points:i.points}},t,e):r=new xL({shape:{points:i.points}}),l.setItemGraphicEl(e,r),c.group.add(r))}).remove(function(e){var t=Q5(c).data.getItemGraphicEl(e);c.group.remove(t)}).execute(),l.eachItemGraphicEl(function(e,n){var r=l.getItemModel(n),i=l.getItemVisual(n,`style`);e.useStyle(l.getItemVisual(n,`style`)),IR(e,LR(r),{labelFetcher:t,labelDataIndex:n,defaultText:l.getName(n)||``,inheritColor:dO(i.fill)?sj(i.fill,1):$.color.neutral99}),RI(e,r),FI(e,null,null,r.get([`emphasis`,`disabled`])),YF(e).dataModel=t}),Q5(c).data=l,c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markArea`,t}(K5);function CAe(e,t,n){var r,i,a=[`x0`,`y0`,`x1`,`y1`];if(e){var o=Z(e&&e.dimensions,function(e){var n=t.getData();return Y(Y({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})});i=Z(a,function(e,t){return{name:e,type:o[t%2].type}}),r=new wK(i,n)}else i=[{name:`value`,type:`float`}],r=new wK(i,n);var s=Z(n.get(`data`),lO(bAe,t,e,n));e&&(s=aO(s,lO(xAe,e)));var c=e?function(e,t,n,r){var a=e.coord[Math.floor(r/2)][r%2];return GV(a,i[r])}:function(e,t,n,r){return GV(e.value,i[r])};return r.initData(s,null,c),r.hasItemOption=!0,r}function wAe(e){e.registerComponentModel(yAe),e.registerComponentView(SAe),e.registerPreprocessor(function(e){N5(e.series,`markArea`)&&(e.markArea=e.markArea||{})})}var TAe=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},r7=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),Q(t)&&X(t,function(e,r){dO(e)&&(e={type:e}),t[r]=QD(e,TAe(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&ON(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=jO(),a=Z(r,function(e){return(dO(e)||pO(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new $R(e,this,this.ecModel))},this);this._data=aO(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;X(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;X(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;X(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&tO(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:$.size.m,align:`auto`,backgroundColor:$.color.transparent,borderColor:$.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:$.color.disabled,inactiveBorderColor:$.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:$.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:$.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:$.color.tertiary,borderWidth:1,borderColor:$.color.border},emphasis:{selectorLabel:{show:!0,color:$.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(yB),i7=lO,a7=X,o7=zM,s7=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new o7),this.group.add(this._selectorGroup=new o7),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=pB(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=uB(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=uB(eO({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=A8(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=jO(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),a7(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
|
||
`)){var p=new o7;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,i7(c7,f,null,r,d)).on(`mouseover`,i7(u7,m.name,null,r,d)).on(`mouseout`,i7(d7,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=YF(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=nj(h.fill);_&&_[3]===0&&(_[3]=.2,h=Y(Y({},h),{fill:cj(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,i7(c7,null,f,r,d)).on(`mouseover`,i7(u7,null,f,r,d)).on(`mouseout`,i7(d7,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=YF(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};YF(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();a7(e,function(e){var r=e.type,i=new RF({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),IR(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),PI(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=EAe(c,r,o,s,d,m,u),y=new o7,b=r.getModel(`textStyle`);if(uO(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(DAe({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;dO(w)&&w?T=w.replace(`{name}`,t??``):uO(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new RF({style:RR(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new PF({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&SR({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),PI(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();sB(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){sB(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(AH);function EAe(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),a7(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:nW(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function DAe(e){var t=e.icon||`roundRect`,n=pU(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=$.color.neutral00,n.style.lineWidth=2),n}function c7(e,t,n,r){d7(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),u7(e,t,n,r)}function l7(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function u7(e,t,n,r){l7(n)||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function d7(e,t,n,r){l7(n)||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function OAe(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function f7(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),p7(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){X(i,function(t,n){e[t?`select`:`unSelect`](n)}),p7(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function p7(e,t){var n=t||{};return X(e.getData(),function(t){var r=t.get(`name`);if(!(r===`
|
||
`||r===``)){var i=e.isSelected(r);FO(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function kAe(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,lO(f7,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,lO(f7,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,lO(f7,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,lO(f7,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,lO(f7,`unSelect`))}function m7(e){e.registerComponentModel(r7),e.registerComponentView(s7),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,OAe),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),kAe(e)}var AAe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=_B(t);e.prototype.init.call(this,t,n,r),h7(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),h7(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=tz(r7.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:$.color.accent50,pageIconInactiveColor:$.color.accent10,pageIconSize:15,pageTextStyle:{color:$.color.tertiary},animationDurationUpdate:800}),t}(r7);function h7(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,gB(t,n,{type:`box`,ignoreSize:!!i})}var g7=zM,_7=[`width`,`height`],v7=[`x`,`y`],jAe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new g7),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new g7)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=Q(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new RF({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=hR(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:cO(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=_7[s],l=v7[s],u=_7[1-s],d=v7[1-s];i&&sB(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=ZD(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;sB(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),sB(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=xO(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new PF({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&UL(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;X([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,dO(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=_7[i],o=v7[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(s7);function MAe(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function NAe(e){qG(m7),e.registerComponentModel(AAe),e.registerComponentView(jAe),MAe(e)}function PAe(e){qG(m7),qG(NAe)}var FAe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.inside`,t.defaultOption=tz(y8.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(y8),y7=jN();function IAe(e,t,n){y7(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function LAe(e,t){for(var n=y7(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||b7(n,o))}}}function b7(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function RAe(e,t){var n={model:t,containsPoint:lO(BAe,t),dispatchAction:lO(zAe,e),dataZoomInfoMap:null,controller:null},r=n.controller=new yQ(e.getZr());return X([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function zAe(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function BAe(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function VAe(e,t,n){var r,i=`type_`,a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each(function(e){var t=e.model,n=t.get(`disabled`,!0)?!1:t.get(`zoomLock`,!0)?`move`:!0;a[i+n]>a[i+r]&&(r=n),o&&=t.get(`preventDefaultMouseMove`,!0)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:n,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function HAe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=y7(t),r=n.coordSysRecordMap||=jO();r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){X(_8(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,RAe(t,n.model));(a.dataZoomInfoMap||=jO()).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var n=e.controller,i,a=e.dataZoomInfoMap;if(a){var o=a.keys()[0];o!=null&&(i=a.get(o))}if(!i){b7(r,e);return}var s=VAe(a,e,t);n.enable(s.controlType,s.opt),BH(e,`dispatchAction`,i.model.get(`throttle`,!0),`fixRate`)})})}var UAe=function(e){J(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return t.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),IAe(r,t,{pan:cO(x7.pan,this),zoom:cO(x7.zoom,this),scrollMove:cO(x7.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){LAe(this.api,this.dataZoomModel),this.range=null},t.type=`dataZoom.inside`,t}(x8),x7={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=C7[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(P0(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:S7(function(e,t,n,r,i,a){var o=C7[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:S7(function(e,t,n,r,i,a){return C7[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function S7(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(P0(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var C7={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e||=[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e||=[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function w7(e){T8(e),e.registerComponentModel(FAe),e.registerComponentView(UAe),HAe(e)}var WAe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.slider`,t.layoutMode=`box`,t.defaultOption=tz(y8.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:$.color.accent10,borderRadius:0,backgroundColor:$.color.transparent,dataBackground:{lineStyle:{color:$.color.accent30,width:.5},areaStyle:{color:$.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:$.color.accent40,width:.5},areaStyle:{color:$.color.accent20,opacity:.3}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:$.color.neutral00,borderColor:$.color.accent20},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:$.color.accent40,opacity:.5},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:$.color.tertiary},brushSelect:!0,brushStyle:{color:$.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:$.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(y8),T7=PF,GAe=1,E7=30,KAe=7,D7=`horizontal`,O7=`vertical`,qAe=5,JAe=[`line`,`bar`,`candlestick`,`scatter`],YAe={easing:`cubicOut`,duration:100,delay:0},XAe=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(e,t){this.api=t,this._onBrush=cO(this._onBrush,this),this._onBrushEnd=cO(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),BH(this,`_dispatchZoomAction`,t.get(`throttle`),`fixRate`),this._orient=t.getOrient(),t.get(`show`)===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){VH(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new zM;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?KAe:0,r=pB(e,t).refContainer,i=this._findCoordRect(),a=e.get(`defaultLocationEdgeGap`,!0)||0,o=this._orient===D7?{right:r.width-i.x-i.width,top:r.height-E7-a-n,width:i.width,height:E7}:{right:a,top:i.y,width:E7,height:i.height},s=_B(e.option);X([`right`,`top`,`width`,`height`],function(e){s[e]===`ph`&&(s[e]=o[e])});var c=uB(s,r);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===O7&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===D7&&!i?{scaleY:o?1:-1,scaleX:1}:n===D7&&i?{scaleY:o?1:-1,scaleX:-1}:n===O7&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new T7({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new T7({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:cO(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(e.thisDim),u=i.getDataExtent(o),d=(u[1]-u[0])*.3;u=[u[0]-d,u[1]+d];var f=[0,t[1]],p=[0,t[0]],m=[[t[0],0],[0,0]],h=[],g=p[1]/Math.max(1,i.count()-1),_=t[0]/(l[1]-l[0]),v=e.thisAxis.type===`time`,y=-g,b=Math.round(i.count()/t[0]),x;i.each([e.thisDim,o],function(e,t,n){if(b>0&&n%b){v||(y+=g);return}y=v?(+e-l[0])*_:y+g;var r=t==null||isNaN(t)||t===``,i=r?0:YM(t,u,f,!0);r&&!x&&n?(m.push([m[m.length-1][0],0]),h.push([h[h.length-1][0],0])):!r&&x&&(m.push([y,0]),h.push([y,0])),r||(m.push([y,i]),h.push([y,i])),x=r}),s=this._shadowPolygonPts=m,c=this._shadowPolylinePts=h}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var S=this.dataZoomModel;function C(e){var t=S.getModel(e?`selectedDataBackground`:`dataBackground`),n=new zM,r=new xL({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new SL({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var w=0;w<3;w++){var T=C(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){X(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&tO(JAe,e.get(`type`))<0)){var o=r.getComponent(g8(i),a).axis,s=ZAe(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:e.getData().mapDimension(i),otherDim:s,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new T7({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new T7({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:GAe,fill:$.color.transparent}})),X([0,1],function(t){var a=o.get(`handleIcon`);!fU[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=pU(a,-1,0,2,2,null,!0);s.attr({cursor:QAe(this._orient),draggable:!0,drift:cO(this._onDragMove,this,t),ondragend:cO(this._onDragEnd,this),onmouseover:cO(this._showDataInfo,this,!0),onmouseout:cO(this._showDataInfo,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=XM(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),PI(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new RF({silent:!0,invisible:!f,style:RR(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=XM(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new PF({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=pU(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,$.color.neutral00,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new PF({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:`default`,drift:cO(this._onDragMove,this,`all`),ondragstart:cO(this._showDataInfo,this,!0),ondragend:cO(this._onDragEnd,this),onmouseover:cO(this._showDataInfo,this,!0),onmouseout:cO(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[YM(e[0],[0,100],t,!0),YM(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];P0(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:YM(a.minSpan,o,i,!0),a.maxSpan==null?null:YM(a.maxSpan,o,i,!0));var s=this._range,c=this._range=$M([YM(r[0],i,o,!0),YM(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=$M(n.slice()),i=this._size;X([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new PF,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=[``,``];if(t.get(`showDetail`)){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,c=this._range,l=e?o.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(l[0],s),this._formatLabel(l[1],s)]}}var u=$M(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(e){var t=lR(n.handles[e].parent,this.group),o=dR(e===0?`right`:`left`,t),s=this._handleWidth/2+qAe,c=uR([u[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===D7?`middle`:o,align:i===D7?o:`center`,text:a[e]})}},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get(`labelFormatter`),i=n.get(`labelPrecision`);(i==null||i===`auto`)&&(i=t.getPixelPrecision());var a=e==null||isNaN(e)?``:t.type===`category`||t.type===`time`?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return uO(r)?r(e,a):dO(r)?r.replace(`{value}`,a):a},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get(`handleLabel`)||{}).show||!1,n=this.dataZoomModel.getModel([`emphasis`,`handleLabel`]).get(`show`)||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr(`invisible`,!r),a[1].attr(`invisible`,!r),i.moveHandle&&this.api[r?`enterEmphasis`:`leaveEmphasis`](i.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,Ck(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=uR([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get(`realtime`);this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get(`realtime`)&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Fk(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100],a=this._handleEnds=[n.x,n.x+n.width],o=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();P0(0,a,r,0,o.minSpan==null?null:YM(o.minSpan,i,r,!0),o.maxSpan==null?null:YM(o.maxSpan,i,r,!0)),this._range=$M([YM(a[0],r,i,!0),YM(a[1],r,i,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ck(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new T7({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?YAe:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=_8(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},t.type=`dataZoom.slider`,t}(x8);function ZAe(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function QAe(e){return e===`vertical`?`ns-resize`:`ew-resize`}function k7(e){e.registerComponentModel(WAe),e.registerComponentView(XAe),T8(e)}function $Ae(e){qG(w7),qG(k7)}var A7={get:function(e,t,n){var r=ZD((eje[e]||{})[t]);return n&&Q(r)?r[r.length-1]:r}},eje={color:{active:[`#006edd`,`#e0ffff`],inactive:[$.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},j7=o1.mapVisual,tje=o1.eachVisual,nje=Q,M7=X,rje=$M,ije=YM,N7=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&m5(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=cO(e,this),this.controllerVisuals=p5(this.option.controller,t,e),this.targetVisuals=p5(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,t=this.option.seriesIndex;t==null&&e==null&&(t=`all`);var n=FN(this.ecModel,`series`,{index:t,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return Z(n,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){X(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],Q(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(dO(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(uO(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=rje([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(t!=null)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};QD(r,n),QD(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){nje(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},M7(r,function(e,t){if(o1.isValidType(t)){var n=A7.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;M7(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&ZD(t)||(a?i:[i]),c.symbolSize??=n&&ZD(n)||(a?s[0]:[s[0],s[0]]),c.symbol=j7(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;tje(l,function(e){e>u&&(u=e)}),c.symbolSize=j7(l,function(e){return ije(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:$.color.transparent,borderColor:$.color.borderTint,contentColor:$.color.theme[0],inactiveColor:$.color.disabled,borderWidth:0,padding:$.size.m,textGap:10,precision:0,textStyle:{color:$.color.secondary}},t}(yB),P7=[20,140],aje=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=P7[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=P7[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):Q(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),X(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=$M((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent(),r=xO(this.option.unboundedRange,!0);return(r&&t[0]<=n[0]||t[0]<=e)&&(r&&t[1]>=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=F7(this,`outOfRange`,this.getExtent()),n=F7(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],`outOfRange`);for(var l=1;a<s;a++,l=0)l&&r.length&&i(n[a],`outOfRange`),i(n[a],`inRange`);for(var l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(l&&=(r.length&&i(r[r.length-1].value,`outOfRange`),0),i(t[o],`outOfRange`));var u=r.length;return{stops:r,outerColors:[u?r[0].color:`transparent`,u?r[u-1].color:`transparent`]}},t.type=`visualMap.continuous`,t.defaultOption=tz(N7.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:$.color.neutral00,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:$.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:$.color.shadow}}),t}(N7);function F7(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var I7=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){if(this.visualMapModel=e,e.get(`show`)===!1){this.group.removeAll();return}this.doRender(e,t,n,r)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Vz(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new PF({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get(`backgroundColor`),stroke:t.get(`borderColor`),lineWidth:t.get(`borderWidth`)}}))},t.prototype.getControllerVisual=function(e,t,n){n||={};var r=n.forceState,i=this.visualMapModel,a={};t===`color`&&(a.color=i.get(`contentColor`));function o(e){return a[e]}function s(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return X(o1.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),o1.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=pB(t,n).refContainer;mB(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(AH),L7=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function R7(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!==`auto`)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=+(r.orient===`horizontal`),s=L7[o],c=[0,null,10],l={},u=0;u<3;u++)l[L7[1-o][u]]=c[u],l[s[u]]=u===2?n[0]:r[s[u]];var d=[[`x`,`width`,3],[`y`,`height`,0]][o],f=uB(l,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function z7(e,t){return X(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}var B7=YM,oje=X,V7=Math.min,H7=Math.max,U7=12,sje=6,cje=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=cO(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=cO(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){(!r||r.type!==`selectDataRange`||r.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get(`orient`),this._useHandle=e.get(`calculable`),this._resetInterval(),this._renderBar(t);var n=e.get(`text`);this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=r==null?``:r+``;var i=this.visualMapModel,a=i.get(`textGap`),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,n===0?-a:o[1]+a],s),l=this._applyTransform(n===0?`bottom`:`top`,s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new RF({style:RR(d,{x:c[0],y:c[1],verticalAlign:d.get(`verticalAlign`)||(u===`horizontal`?`middle`:l),align:d.get(`align`)||(u===`horizontal`?l:`center`),text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=R7(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new zM;s.add(c),c.add(n.outOfRange=W7()),c.add(n.inRange=W7(null,a?K7(this._orient):null,cO(this._dragHandle,this,`all`,!1),cO(this._dragHandle,this,`all`,!0))),c.setClipPath(new PF({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=H7(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=cO(this._dragHandle,this,n,!1),s=cO(this._dragHandle,this,n,!0),c=kM(e.get(`handleSize`),r[0]),l=pU(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=K7(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){Ck(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel(`handleStyle`).getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState(`emphasis`).style=e.getModel([`emphasis`,`handleStyle`]).getItemStyle(),zI(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new RF({cursor:u,draggable:!0,drift:o,onmousemove:function(e){Ck(e.event)},ondragend:s,style:RR(d,{x:0,y:0,text:``})});f.ensureState(`blur`).style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[c,0],m=this._shapes;m.handleThumbs[n]=l,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=kM(e.get(`indicatorSize`),n[0]),o=pU(e.get(`indicatorIcon`),-a/2,-a/2,a,a,null,!0);o.attr({cursor:`move`,invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel(`indicatorStyle`).getItemStyle();if(o instanceof OF){var c=o.style;o.useStyle(Y({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);t.add(o);var l=this.visualMapModel.textStyleModel,u=new RF({silent:!0,invisible:!0,style:RR(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:sje)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=u,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get(`realtime`)&&this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():G7(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[B7(t[0],n,r,!0),B7(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t||=0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];P0(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[B7(r[0],i,a,!0),B7(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,`inRange`),s=this._createBarVisual(n,n,i,`outOfRange`);r.inRange.setStyle({fill:o.barColor}).setShape(`points`,o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape(`points`,s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],`symbolSize`,i),this.getControllerVisual(e[1],`symbolSize`,i)],s=this._createBarPoints(n,o);return{barColor:new AL(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],`color`,t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new zM(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);oje([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=B7(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=uR(n.handleLabelPoints[l],lR(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=B7(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=uR(c.indicatorLabelPoint,lR(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on(`mousemove`,function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=V7(H7(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on(`mouseout`,function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on(`mouseover`,this._hoverLinkFromSeriesMouseOver,this),e.on(`mouseout`,this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=V7(H7(i[0],e),i[1]);var o=lje(n,a,i),s=[e-o,e+o],c=B7(e,i,a,!0),l=[B7(s[0],i,a,!0),B7(s[1],i,a,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||G7(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=qfe(u,d);this._dispatchHighDown(`downplay`,z7(f[0],n)),this._dispatchHighDown(`highlight`,z7(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(dU(e.target,function(e){var n=YF(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown(`downplay`,z7(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off(`mouseover`,this._hoverLinkFromSeriesMouseOver),e.off(`mouseout`,this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=lR(t,r?null:this.group);return Q(e)?uR(e,i,n):dR(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type=`visualMap.continuous`,t}(I7);function W7(e,t,n,r){return new xL({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){Ck(e.event)},ondragend:r})}function lje(e,t,n){var r=U7/2,i=e.get(`hoverLinkDataSize`);return i&&(r=B7(i,t,n,!0)/2),r}function G7(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function K7(e){return e===`vertical`?`ns-resize`:`ew-resize`}var uje={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},dje=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})},fje=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent(`visualMap`,function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(Pke(t.stateList,t.targetVisuals,cO(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent(`visualMap`,function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(cO(pje,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function pje(e,t,n,r){for(var i=t.targetVisuals[r],a=o1.prepareVisualTypes(i),o={color:sU(e.getData(),`color`)},s=0,c=a.length;s<c;s++){var l=a[s],u=i[l===`opacity`?`__alphaForOpacity`:l];u&&u.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}var q7=X;function mje(e){var t=e&&e.visualMap;Q(t)||(t=t?[t]:[]),q7(t,function(e){if(e){J7(e,`splitList`)&&!J7(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&Q(t)&&q7(t,function(e){mO(e)&&(J7(e,`start`)&&!J7(e,`min`)&&(e.min=e.start),J7(e,`end`)&&!J7(e,`max`)&&(e.max=e.end))})}})}function J7(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Y7=!1;function X7(e){Y7||(Y7=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(uje,dje),X(fje,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(mje))}function Z7(e){e.registerComponentModel(aje),e.registerComponentView(cje),X7(e)}var hje=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],gje[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=ZD(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=Z(this._pieceList,function(e){return e=ZD(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=o1.listVisualTypes(),i=this.isCategory();X(t.pieces,function(e){X(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),X(n,function(e,n){var r=!1;X(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&X(this.stateList,function(e){(t[e]||(t[e]={}))[n]=A7.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,X(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;X(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=ZD(e)},t.prototype.getValueState=function(e){var t=o1.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){o1.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return X(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=tz(N7.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(N7),gje={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),cN(e),X(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;X(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),Q7(t,e)},pieces:function(e){var t=this.option;X(t.pieces,function(t,n){mO(t)||(t={value:t});var r={text:``,index:n};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty(`value`)){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var d=[[`gte`,`gt`,`min`],[`lte`,`lt`,`max`]][u],f=0;f<3&&a[u]==null;f++)a[u]=t[d[f]],o[u]=s[f],l[u]=f===2;a[u]??(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=o1.retrieveVisuals(t),e.push(r)},this),Q7(t,e),cN(e),X(e,function(e){var t=e.close,n=[[`<`,`≤`][t[1]],[`>`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function Q7(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var _je=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=bO(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),X(o.viewPieceList,function(o){var s=o.piece,u=new zM;u.onclick=cO(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new RF({style:RR(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:xO(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),sB(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:z7(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return R7(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new zM,o=this.visualMapModel.textStyleModel;a.add(new RF({style:RR(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=Z(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=pU(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=ZD(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,X(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(I7);function $7(e){e.registerComponentModel(hje),e.registerComponentView(_je),X7(e)}function vje(e){qG(Z7),qG($7)}var yje=function(){function e(e){this._thumbnailModel=e}return e.prototype.reset=function(e){this._renderVersion=e.getMainProcessVersion()},e.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:AR(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},e.prototype.updateWindow=function(e,t){var n=t.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},e}(),bje=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.optionUpdated=function(e,t){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new yje(this);this._target=null,this.ecModel.eachSeries(function(e){v0(e,null)}),this.shouldShow()&&v0(this.getTarget().baseMapProvider,e)},t.prototype.shouldShow=function(){return this.getShallow(`show`,!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents(`series`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!==`graph`&&(e=null):e=this.ecModel.queryComponents({mainType:`series`,subType:`graph`})[0],this._target={baseMapProvider:e},this._target},t.type=`thumbnail`,t.layoutMode=`box`,t.dependencies=[`series`,`geo`],t.defaultOption={show:!0,right:1,bottom:1,height:`25%`,width:`25%`,itemStyle:{borderColor:$.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:$.color.neutral30,borderColor:$.color.neutral40,opacity:.3},z:10},t}(yB),xje=function(e){J(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this._api=n,this._model=e,this._coordSys||=new g$,!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var r=this.group;r.removeAll();var i=e.getModel(`itemStyle`),a=i.getItemStyle();a.fill??=t.get(`backgroundColor`)||$.color.neutral00;var o=pB(e,n).refContainer,s=uB(cB(e,!0),o),c=a.lineWidth||0,l=this._contentRect=yR(s.clone(),c/2,!0,!0),u=new zM;r.add(u),u.setClipPath(new PF({shape:l.plain()}));var d=this._targetGroup=new zM;u.add(d);var f=s.plain();f.r=i.getShallow(`borderRadius`,!0),r.add(this._bgRect=new PF({style:a,shape:f,silent:!1,cursor:`grab`}));var p=e.getModel(`windowStyle`),m=p.getShallow(`borderRadius`,!0);u.add(this._windowRect=new PF({shape:{x:0,y:0,width:0,height:0,r:m},style:p.getItemStyle(),silent:!1,cursor:`grab`})),this._dealRenderContent(),this._dealUpdateWindow(),t9(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),t9(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=this._targetGroup,n=this._coordSys,r=this._contentRect;if(t.removeAll(),e){var i=e.group,a=i.getBoundingRect();t.add(i),this._bgRect.z2=e.z2Range.min-10,n.setBoundingRect(a.x,a.y,a.width,a.height);var o=uB({left:`center`,top:`center`,aspect:a.width/a.height},r);n.setViewRect(o.x,o.y,o.width,o.height),i.attr(n.getTransformInfo().raw),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var t=this._bridgeRendered;t&&t.renderVersion===e.renderVersion&&(t.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var t=Pk([],e.targetTrans),n=Ak([],this._coordSys.transform,t);this._transThisToTarget=Pk([],n);var r=e.viewportRect;r=r?r.clone():new Jk(0,0,this._api.getWidth(),this._api.getHeight()),r.applyTransform(n);var i=this._windowRect,a=i.shape.r;i.setShape(eO({r:a},r))}},t.prototype._resetRoamController=function(e){var t=this,n=this._api,r=this._roamController;if(r||=this._roamController=new yQ(n.getZr()),!e||!this._isEnabled()){r.disable();return}r.enable(e,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(e,n,r){return t._contentRect.contain(n,r)}}}),r.off(`pan`).off(`zoom`).on(`pan`,cO(this._onPan,this)).on(`zoom`,cO(this._onZoom,this))},t.prototype._onPan=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=ek([],[e.oldX,e.oldY],t),r=ek([],[e.oldX-e.dx,e.oldY-e.dy],t);this._api.dispatchAction(e9(this._model.getTarget().baseMapProvider,{dx:r[0]-n[0],dy:r[1]-n[1]}))}},t.prototype._onZoom=function(e){var t=this._transThisToTarget;if(!(!this._isEnabled()||!t)){var n=ek([],[e.originX,e.originY],t);this._api.dispatchAction(e9(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;return!(!e||!e.shouldShow()||!e.getTarget().baseMapProvider)},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type=`thumbnail`,t}(AH);function e9(e,t){var n={type:e.mainType===`series`?e.subType+`Roam`:e.mainType+`Roam`};return n[e.mainType+`Id`]=e.id,Y(n,t),n}function t9(e,t){var n=kR(e);jR(t.group,n.z,n.zlevel)}function Sje(e){e.registerComponentModel(bje),e.registerComponentView(xje)}var Cje={label:{enabled:!0},decal:{show:!1}},n9=jN(),wje={};function Tje(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=ZD(Cje);QD(r.label,e.getLocaleModel().get(`aria`),!1),QD(n.option,r,!1),i(),a();function i(){if(n.getModel(`decal`).get(`show`)){var t=jO();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),n9(e).scope=n}}),e.eachRawSeries(function(t){if(e.isSeriesFiltered(t))return;if(uO(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var r=UB(t.ecModel,t.name,wje,e.getSeriesCount()),i=n.getVisual(`decal`);n.setVisual(`decal`,l(i,r))}else{var a=t.getRawData(),o={},s=n9(t).scope;n.each(function(e){var t=n.getRawIndex(e);o[t]=e});var c=a.count();a.each(function(e){var r=o[e],i=a.getName(e)||e+``,u=UB(t.ecModel,i,s,c),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,l(d,u))})}function l(e,t){var n=e?Y(Y({},t),e):t;return n.dirty=!0,n}})}}function a(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=eO(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var l=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(l,d),p;if(!(l<1)){var m=s();p=m?o(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=l>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=o(g,{seriesCount:l}),e.eachSeries(function(e,t){if(t<f){var n=void 0,r=e.get(`name`)?`withName`:`withoutName`;n=l>1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=o(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:c(e.subType)});var i=e.getData();if(i.count()>u){var s=a.get([`data`,`partialData`]);n+=o(s,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_<i.count();_++)if(_<u){var v=i.getName(_),y=m?aO(i.getValues(_),function(e,t){return tO(m,t)===-1}):i.getValues(_),b=a.get([`data`,v?`withName`:`withoutName`]);g.push(o(b,{name:v,value:y.join(d)}))}n+=g.join(d)+p,h.push(n)}});var _=a.getModel([`series`,`multiple`,`separator`]),v=_.get(`middle`),y=_.get(`end`);p+=h.join(v)+y,r.setAttribute(`aria-label`,p)}}}}function o(e,t){if(!dO(e))return e;var n=e;return X(t,function(e,t){n=n.replace(RegExp(`\\{\\s*`+t+`\\s*\\}`,`g`),e)}),n}function s(){var t=e.get(`title`);return t&&t.length&&(t=t[0]),t&&t.text}function c(t){var n=e.getLocaleModel().get([`series`,`typeNames`]);return n[t]||n.chart}}function Eje(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},X([`description`,`general`,`series`,`data`],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function Dje(e){e.registerPreprocessor(Eje),e.registerVisual(e.PRIORITY.VISUAL.ARIA,Tje)}var r9={value:`eq`,"<":`lt`,"<=":`lte`,">":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},Oje=function(){function e(e){(this._condVal=dO(e)?new RegExp(e):mde(e)?e:null)??gN(``)}return e.prototype.evaluate=function(e){var t=typeof e;return dO(t)?this._condVal.test(e):pO(t)?this._condVal.test(e+``):!1},e}(),kje=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Aje=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),jje=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),Mje=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),Nje=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function i9(e,t){if(e===!0||e===!1){var n=new kje;return n.value=e,n}return o9(e)||gN(``),e.and?a9(`and`,e,t):e.or?a9(`or`,e,t):e.not?Pje(e,t):Fje(e,t)}function a9(e,t,n){var r=t[e],i=``;Q(r)||gN(i),r.length||gN(i);var a=e===`and`?new Aje:new jje;return a.children=Z(r,function(e){return i9(e,n)}),a.children.length||gN(i),a}function Pje(e,t){var n=e.not,r=``;o9(n)||gN(r);var i=new Mje;return i.child=i9(n,t),i.child||gN(r),i}function Fje(e,t){for(var n=``,r=t.prepareGetValue(e),i=[],a=sO(e),o=e.parser,s=o?KV(o):null,c=0;c<a.length;c++){var l=a[c];if(!(l===`parser`||t.valueGetterAttrMap.get(l))){var u=FO(r9,l)?r9[l]:l,d=e[l],f=s?s(d):d,p=Vhe(u,f)||u===`reg`&&new Oje(f);p||gN(n),i.push(p)}}i.length||gN(n);var m=new Nje;return m.valueGetterParam=r,m.valueParser=s,m.getValue=t.getValue,m.subCondList=i,m}function o9(e){return mO(e)&&!rO(e)}var Ije=function(){function e(e,t){this._cond=i9(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function Lje(e,t){return new Ije(e,t)}var Rje={type:`echarts:filter`,transform:function(e){for(var t=e.upstream,n,r=Lje(e.config,{valueGetterAttrMap:jO({dimension:!0}),prepareGetValue:function(e){var n=``,r=e.dimension;FO(e,`dimension`)||gN(n);var i=t.getDimensionInfo(r);return i||gN(n),{dimIdx:i.index}},getValue:function(e){return t.retrieveValueFromItem(n,e.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)n=t.getRawDataItem(a),r.evaluate()&&i.push(n);return{data:i}}},zje={type:`echarts:sort`,transform:function(e){var t=e.upstream,n=e.config,r=``,i=bN(n);i.length||gN(r);var a=[];X(i,function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;n??gN(r),i!==`asc`&&i!==`desc`&&gN(r),s&&s!==`min`&&s!==`max`&&gN(``),i!==`asc`&&i!==`desc`&&gN(``);var c=t.getDimensionInfo(n);c||gN(r);var l=o?KV(o):null;o&&!l&&gN(r),a.push({dimIdx:c.index,parser:l,comparator:new JV(i,s)})});var o=t.sourceFormat;o!==`arrayRows`&&o!==`objectRows`&&gN(r);for(var s=[],c=0,l=t.count();c<l;c++)s.push(t.getRawDataItem(c));return s.sort(function(e,n){for(var r=0;r<a.length;r++){var i=a[r],o=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var c=i.comparator.evaluate(o,s);if(c!==0)return c}return 0}),{data:s}}};function Bje(e){e.registerTransform(Rje),e.registerTransform(zje)}var Vje=function(e){J(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new oH(this),sH(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),sH(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:MB},t}(yB),Hje=function(e){J(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(AH);function Uje(e){e.registerComponentModel(Vje),e.registerComponentView(Hje)}var s9=ZP.CMD;function c9(e,t){return Math.abs(e-t)<1e-5}function l9(e){var t=e.data,n=e.len(),r=[],i,a=0,o=0,s=0,c=0;function l(e,t){i&&i.length>2&&r.push(i),i=[e,t]}function u(e,t,n,r){c9(e,n)&&c9(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=t<e?-1:1,u=Math.cos(e),d=Math.sin(e),f=Math.cos(t),p=Math.sin(t),m=u*a+n,h=d*o+r,g=f*a+n,_=p*o+r,v=a*c*l,y=o*c*l;i.push(m-v*d,h+y*u,g+v*p,_-y*f,g,_)}for(var f,p,m,h,g=0;g<n;){var _=t[g++],v=g===1;switch(v&&(a=t[g],o=t[g+1],s=a,c=o,(_===s9.L||_===s9.C||_===s9.Q)&&(i=[s,c])),_){case s9.M:a=s=t[g++],o=c=t[g++],l(s,c);break;case s9.L:f=t[g++],p=t[g++],u(a,o,f,p),a=f,o=p;break;case s9.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case s9.Q:f=t[g++],p=t[g++],m=t[g++],h=t[g++],i.push(a+2/3*(f-a),o+2/3*(p-o),m+2/3*(f-m),h+2/3*(p-h),m,h),a=m,o=h;break;case s9.A:var y=t[g++],b=t[g++],x=t[g++],S=t[g++],C=t[g++],w=t[g++]+C;g+=1;var T=!t[g++];f=Math.cos(C)*x+y,p=Math.sin(C)*S+b,v?(s=f,c=p,l(s,c)):u(a,o,f,p),a=Math.cos(w)*x+y,o=Math.sin(w)*S+b;for(var E=(T?-1:1)*Math.PI/2,D=C;T?D>w:D<w;D+=E){var O=T?Math.max(D+E,w):Math.min(D+E,w);d(D,O,y,b,x,S)}break;case s9.R:s=a=t[g++],c=o=t[g++],f=s+t[g++],p=c+t[g++],l(f,c),u(f,c,f,p),u(f,p,s,p),u(s,p,s,c),u(s,c,f,c);break;case s9.Z:i&&u(a,o,s,c),a=s,o=c;break}}return i&&i.length>2&&r.push(i),r}function u9(e,t,n,r,i,a,o,s,c,l){if(c9(e,n)&&c9(t,r)&&c9(i,o)&&c9(a,s)){c.push(o,s);return}var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y<d&&b<d){c.push(o,s);return}var x=f*h+p*g,S=-f*_-p*v,C=y-x*x,w=b-S*S;if(C<d&&x>=0&&w<d&&S>=0){c.push(o,s);return}var T=[],E=[];AA(e,n,i,o,.5,T),AA(t,r,a,s,.5,E),u9(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),u9(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function Wje(e,t){var n=l9(e),r=[];t||=1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],c=a[1];o.push(s,c);for(var l=2;l<a.length;){var u=a[l++],d=a[l++],f=a[l++],p=a[l++],m=a[l++],h=a[l++];u9(s,c,u,d,f,p,m,h,o,t),s=m,c=h}r.push(o)}return r}function d9(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var c=[],l=0;l<o;l++)c.push(s);var u=n-o*s;if(u>0)for(var l=0;l<u;l++)c[l%o]+=1;return c}function f9(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),c=s*i,l=i-r,u=c>Math.abs(l),d=d9([c,l],+!u,t),f=(u?s:l)/d.length,p=0;p<d.length;p++)for(var m=(u?l:s)/d[p],h=0;h<d[p];h++){var g={};u?(g.startAngle=a+f*p,g.endAngle=a+f*(p+1),g.r0=r+m*h,g.r=r+m*(h+1)):(g.startAngle=a+m*h,g.endAngle=a+m*(h+1),g.r0=r+f*p,g.r=r+f*(p+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function Gje(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=d9([r,i],+!a,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f<o.length;f++)for(var p=e[c]/o[f],m=0;m<o[f];m++){var h={};h[l]=f*d,h[u]=m*p,h[s]=d,h[c]=p,h.x+=e.x,h.y+=e.y,n.push(h)}}function p9(e,t,n,r){return e*r-n*t}function Kje(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=p9(u,d,c,l);if(Math.abs(f)<1e-6)return null;var p=p9(e-i,t-a,u,d)/f;return p<0||p>1?null:new Fk(p*c+e,p*l+t)}function qje(e,t,n){var r=new Fk;Fk.sub(r,n,t),r.normalize();var i=new Fk;return Fk.sub(i,e,t),i.dot(r)}function m9(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function Jje(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],c=Kje(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);c&&i.push({projPt:qje(c,t,n),pt:c,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(e,t){return e.projPt-t.projPt});var l=i[0],u=i[i.length-1];if(u.idx<l.idx){var d=l;l=u,u=d}for(var f=[l.pt.x,l.pt.y],p=[u.pt.x,u.pt.y],m=[f],h=[p],a=l.idx+1;a<=u.idx;a++)m9(m,e[a].slice());m9(m,p),m9(m,f);for(var a=u.idx+1;a<=l.idx+r;a++)m9(h,e[a%r].slice());return m9(h,f),m9(h,p),[{points:m},{points:h}]}function h9(e){var t=e.points,n=[],r=[];EP(t,n,r);var i=new Jk(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,c=i.y,l=new Fk,u=new Fk;return a>o?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),Jje(t,l,u)}function g9(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);g9(e,a[0],i,r),g9(e,a[1],n-i,r)}return r}function Yje(e,t){for(var n=[],r=0;r<t;r++)n.push(iL(e));return n}function Xje(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function Zje(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function Qje(e,t){var n=[],r=e.shape,i;switch(e.type){case`rect`:Gje(r,t,n),i=PF;break;case`sector`:f9(r,t,n),i=vL;break;case`circle`:f9({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=vL;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Z(Wje(e.getUpdatedPathProxy(),o),function(e){return Zje(e)}),c=s.length;if(c===0)g9(h9,{points:s[0]},t,n);else if(c===t)for(var l=0;l<c;l++)n.push({points:s[l]});else{var u=0,d=Z(s,function(e){var t=[],n=[];EP(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return u+=r,{poly:e,area:r}});d.sort(function(e,t){return t.area-e.area});for(var f=t,l=0;l<c;l++){var p=d[l];if(f<=0)break;var m=l===c-1?f:Math.ceil(p.area/u*t);m<0||(g9(h9,{points:p.poly},m,n),f-=m)}}i=xL;break}if(!i)return Yje(e,t);for(var h=[],l=0;l<n.length;l++){var g=new i;g.setShape(n[l]),Xje(e,g),h.push(g)}return h}function $je(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),c=Math.abs(r-n)/6,l=(s-2)/6,u=Math.ceil(c/l)+1,d=[o[0],o[1]],f=c,p=2;p<s;){var m=o[p-2],h=o[p-1],g=o[p++],_=o[p++],v=o[p++],y=o[p++],b=o[p++],x=o[p++];if(f<=0){d.push(g,_,v,y,b,x);continue}for(var S=Math.min(f,u-1)+1,C=1;C<=S;C++){var w=C/S;AA(m,g,v,b,w,i),AA(h,_,y,x,w,a),m=i[3],h=a[3],d.push(i[1],a[1],i[2],a[2],m,h),g=i[5],_=a[5],v=i[6],y=a[6]}f-=S-1}return o===e?[d,t]:[e,d]}function _9(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function eMe(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var c=e[s],l=t[s],u=void 0,d=void 0;c?l?(n=$je(c,l),u=n[0],d=n[1],r=u,i=d):(d=_9(i||c,c),u=c):(u=_9(r||l,l),d=l),a.push(u),o.push(d)}return[a,o]}function v9(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],c=e[o+1],l=e[a],u=e[a+1],d=s*u-l*c;t+=d,n+=(s+l)*d,r+=(c+u)*d}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function tMe(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,c=s-2,l=0;l<i;l++){for(var u=l*6,d=0,f=0;f<s;f+=2){var p=f===0?u:(u+f-2)%c+2,m=e[p]-n[0],h=e[p+1]-n[1],g=t[f]-r[0],_=t[f+1]-r[1],v=g-m,y=_-h;d+=v*v+y*y}d<a&&(a=d,o=l)}return o}function nMe(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function rMe(e,t,n,r){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],c=t[o],l=v9(s),u=v9(c);a??=l[2]<0!=u[2]<0;var d=[],f=[],p=0,m=1/0,h=[],g=s.length;a&&(s=nMe(s));for(var _=tMe(s,c,l,u)*6,v=g-2,y=0;y<v;y+=2){var b=(_+y)%v+2;d[y+2]=s[b]-l[0],d[y+3]=s[b+1]-l[1]}if(d[0]=s[_]-l[0],d[1]=s[_+1]-l[1],n>0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y<s.length;y+=2){var E=d[y],D=d[y+1],O=c[y]-u[0],k=c[y+1]-u[1],A=O*w-k*C,j=O*C+k*w;h[y]=A,h[y+1]=j;var M=A-E,N=j-D;T+=M*M+N*N}if(T<m){m=T,p=S;for(var P=0;P<h.length;P++)f[P]=h[P]}}else for(var F=0;F<g;F+=2)f[F]=c[F]-u[0],f[F+1]=c[F+1]-u[1];i.push({from:d,to:f,fromCp:l,toCp:u,rotation:-p})}return i}function y9(e){return e.__isCombineMorphing}var b9=`__mOriginal_`;function x9(e,t,n){var r=b9+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e=arguments,t;return s&&s.apply(this,e),t=a?a.apply(this,e):i.apply(this,e),o&&o.apply(this,e),t}}function S9(e,t){var n=b9+t;e[n]&&(e[t]=e[n],e[n]=null)}function C9(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function w9(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=eMe(l9(n),l9(r)),a=i[0],o=i[1],s=e.getComputedTransform(),c=t.getComputedTransform();function l(){this.transform=null}s&&C9(a,s),c&&C9(o,c),x9(t,`updateTransform`,{replace:l}),t.transform=null;var u=rMe(a,o,10,Math.PI),d=[];x9(t,`buildPath`,{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<u.length;a++){var o=u[a],s=o.from,c=o.to,l=o.rotation*n,f=o.fromCp,p=o.toCp,m=Math.sin(l),h=Math.cos(l);$O(i,f,p,n);for(var g=0;g<s.length;g+=2){var _=s[g],v=s[g+1],y=c[g],b=c[g+1],x=_*r+y*n,S=v*r+b*n;d[g]=x*h-S*m+i[0],d[g+1]=x*m+S*h+i[1]}var C=d[0],w=d[1];e.moveTo(C,w);for(var g=2;g<s.length;){var y=d[g++],b=d[g++],T=d[g++],E=d[g++],D=d[g++],O=d[g++];C===y&&w===b&&T===D&&E===O?e.lineTo(D,O):e.bezierCurveTo(y,b,T,E,D,O),C=D,w=O}}}})}function T9(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;w9(e,t),t.__morphT=0;function a(){S9(t,`buildPath`),S9(t,`updateTransform`),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},eO({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){a(),r&&r()}},n)),t}function iMe(e,t,n,r,i,a){var o=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var s=0,c,l=(1<<o)/2;l>0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function E9(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return Z(Z(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:iMe(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function D9(e){return Qje(e.path,e.count)}function O9(){return{fromIndividuals:[],toIndividuals:[],count:0}}function aMe(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];y9(n)?i(n.childrenRef()):n instanceof SF&&r.push(n)}}i(e);var a=r.length;if(!a)return O9();var o=(n.dividePath||D9)({path:t,count:a});if(o.length!==a)return console.error(`Invalid morphing: unmatched splitted path`),O9();r=E9(r),o=E9(o);for(var s=n.done,c=n.during,l=n.individualDelay,u=new hM,d=0;d<a;d++){var f=r[d],p=o[d];p.parent=t,p.copyTransform(u),l||w9(f,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return o};function m(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}x9(t,`addSelfToZr`,{after:function(e){m(e)}}),x9(t,`removeSelfFromZr`,{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});function h(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,S9(t,`addSelfToZr`),S9(t,`removeSelfFromZr`)}var g=o.length;if(l)for(var _=g,v=function(){_--,_===0&&(h(),s&&s())},d=0;d<g;d++){var y=l?eO({delay:(n.delay||0)+l(d,g,r[d],o[d]),done:v},n):n;T9(r[d],o[d],y)}else t.__morphT=0,t.animateTo({__morphT:1},eO({during:function(e){for(var n=0;n<g;n++){var r=o[n];r.__morphT=t.__morphT,r.dirtyShape()}c&&c(e)},done:function(){h();for(var t=0;t<e.length;t++)S9(e[t],`updateTransform`);s&&s()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}function oMe(e,t,n){var r=t.length,i=[],a=n.dividePath||D9;function o(e){for(var t=0;t<e.length;t++){var n=e[t];y9(n)?o(n.childrenRef()):n instanceof SF&&i.push(n)}}if(y9(e)){o(e.childrenRef());var s=i.length;if(s<r)for(var c=0,l=s;l<r;l++)i.push(iL(i[c++%s]));i.length=r}else{i=a({path:e,count:r});for(var u=e.getComputedTransform(),l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return console.error(`Invalid morphing: unmatched splitted path`),O9()}i=E9(i),t=E9(t);for(var d=n.individualDelay,l=0;l<r;l++){var f=d?eO({delay:(n.delay||0)+d(l,r,i[l],t[l])},n):n;T9(i[l],t[l],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function k9(e){return Q(e[0])}function A9(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1)if(s)s=0;else return n;var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var sMe={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r<e.count;r++){var i=iL(e.path);i.setStyle(`opacity`,n),t.push(i)}return t},split:null};function j9(e,t,n,r,i,a){if(!e.length||!t.length)return;var o=VL(`update`,r,i);if(!(o&&o.duration>0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=Object.assign({setToFinal:!0},o),l,u;k9(e)&&(l=e,u=t),k9(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(y9(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?eO({delay:s(r,i)},c):c;T9(f,p,m),a(f,p,f,p,m)}}else for(var h=eO({dividePath:sMe[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?aMe(l,u,h):oMe(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;b<y;b++){var m=s?eO({delay:s(b,y)},c):c;a(_[b],v[b],t?l[b]:e.one,t?e.one:l[b],m)}}for(var f=l?l===e:e.length>t.length,p=l?A9(u,l):A9(f?t:e,[f?e:t]),m=0,h=0;h<p.length;h++)m+=p[h].many.length;for(var g=0,h=0;h<p.length;h++)d(p[h],f,g,m),g+=p[h].many.length}function M9(e){if(!e)return[];if(Q(e)){for(var t=[],n=0;n<e.length;n++)t.push(M9(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof SF&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var N9=1e4,cMe=0,P9=1,F9=2,lMe=jN();function uMe(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&i.otherDims[t]===0)return n[r]}}function dMe(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+``}}function I9(e,t,n,r){var i=uMe(e,r?`itemChildGroupId`:`itemGroupId`);if(i)return dMe(e,t,i);var a=e.getRawDataItem(t),o=r?`childGroupId`:`groupId`;if(a&&a[o])return a[o]+``;if(!r)return n||e.getId(t)}function L9(e){var t=[];return X(e,function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>N9))for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:I9(n,a,r,!1),childGroupId:I9(n,a,r,!0),divide:e.divide,dataIndex:a})}),t}function R9(e,t,n){e.traverse(function(e){e instanceof SF&&WL(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function z9(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function B9(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function fMe(e,t,n){var r=VL(`update`,n,t);r&&e.traverse(function(e){if(e instanceof mP){var t=pme(e);t&&e.animateFrom({style:t},r)}})}function pMe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function V9(e,t,n){var r=L9(e),i=L9(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?Y(Y({},n.style),e.style):e.style},i)}var o=!1,s=cMe,c=jO(),l=jO();r.forEach(function(e){e.groupId&&c.set(e.groupId,!0),e.childGroupId&&l.set(e.childGroupId,!0)});for(var u=0;u<i.length;u++){var d=i[u].groupId;if(l.get(d)){s=P9;break}var f=i[u].childGroupId;if(f&&c.get(f)){s=F9;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?s===P9?n.childGroupId:n.groupId:s===F9?n.childGroupId:n.groupId}}var m=pMe(r,i),h={};if(!m)for(var u=0;u<i.length;u++){var g=i[u],_=g.data.getItemGraphicEl(g.dataIndex);_&&(h[_.id]=!0)}function v(e,t){var n=r[t],s=i[e],c=s.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);if(l===u){u&&fMe(u,s.dataIndex,c);return}l&&h[l.id]||u&&(B9(u),l?(B9(l),z9(l),o=!0,j9(M9(l),M9(u),s.divide,c,e,a)):R9(u,c,e))}new XG(r,i,p(!0,m),p(!1,m),null,`multiple`).update(v).updateManyToOne(function(e,t){var n=i[e],s=n.data,c=s.hostModel,l=s.getItemGraphicEl(n.dataIndex),u=aO(Z(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==l&&!h[e.id]});l&&(B9(l),u.length?(X(u,function(e){B9(e),z9(e)}),o=!0,j9(M9(u),M9(l),n.divide,c,e,a)):R9(l,c,n.dataIndex))}).updateOneToMany(function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!(s&&h[s.id])){var c=aO(Z(e,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==s}),l=i[e[0]].data.hostModel;c.length&&(X(c,function(e){return B9(e)}),s?(B9(s),z9(s),o=!0,j9(M9(s),M9(c),n.divide,l,e[0],a)):X(c,function(t){return R9(t,l,e[0])}))}}).updateManyToMany(function(e,t){new XG(t,e,function(e){return r[e].data.getId(r[e].dataIndex)},function(e){return i[e].data.getId(i[e].dataIndex)}).update(function(n,r){v(e[n],t[r])}).execute()}).execute(),o&&X(t,function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=VL(`update`,t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof SF&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function H9(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function U9(e){return Q(e)?e.sort().join(`,`):e}function W9(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function mMe(e,t){var n=jO(),r=jO(),i=jO();return X(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=H9(t),c=U9(s);r.set(c,{dataGroupId:a,data:o}),Q(s)&&X(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})}),X(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),a=e.getData(),o=H9(e),s=U9(o),c=r.get(s);if(c)n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:W9(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:W9(a),data:a}]});else if(Q(o)){var l=[];X(o,function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:W9(t.data),data:t.data})}),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:W9(a)}]})}else{var u=i.get(o);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:W9(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:W9(a)})}}}}),n}function G9(e,t){for(var n=0;n<e.length;n++)if(t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id)return n}function hMe(e,t,n,r){var i=[],a=[];X(bN(e.from),function(e){var n=G9(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:W9(t.oldData[n]),groupIdDim:e.dimension})}),X(bN(e.to),function(e){var r=G9(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:W9(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&V9(i,a,r)}function gMe(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){X(bN(n.seriesTransition),function(e){X(bN(e.to),function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id)&&(t[r][TH]=!0)})})}),e.registerUpdateLifecycle(`series:transition`,function(e,t,n){var r=lMe(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)X(bN(i),function(e){hMe(e,r,n,t)});else{var a=mMe(r,n);X(a.keys(),function(e){var n=a.get(e);V9(n.oldSeries,n.newSeries,t)})}X(n.updatedSeries,function(e){e.__universalTransitionEnabled&&(e[TH]=!1)})}for(var o=e.getSeries(),s=r.oldSeries=[],c=r.oldDataGroupIds=[],l=r.oldData=[],u=0;u<o.length;u++){var d=o[u].getData();d.count()<N9&&(s.push(o[u]),c.push(o[u].get(`dataGroupId`)),l.push(d))}})}var _Me=function(){function e(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return e.prototype.setBreaks=function(e){this.breaks=e.breaks},e.prototype.update=function(e){yMe(this,e);var t=this._elapsedExtent;t[0]=this.elapse(e[0]),t[1]=this.elapse(e[1])},e.prototype.hasBreaks=function(){return!!this.breaks.length},e.prototype.calcNiceTickMultiple=function(e,t){for(var n=0;n<this.breaks.length;n++){var r=this.breaks[n];if(r.vmin<e&&e<r.vmax)return t(e,r.vmax)}return 0},e.prototype.getExtentSpan=function(){return this._elapsedExtent[1]-this._elapsedExtent[0]},e.prototype.normalize=function(e){var t=this._elapsedExtent[1]-this._elapsedExtent[0];return t===0?.5:(this.elapse(e)-this._elapsedExtent[0])/t},e.prototype.scale=function(e){return this.unelapse(e*(this._elapsedExtent[1]-this._elapsedExtent[0])+this._elapsedExtent[0])},e.prototype.elapse=function(e){for(var t=K9,n=q9,r=!0,i=0;i<this.breaks.length;i++){var a=this.breaks[i];if(e<=a.vmax){e>a.vmin?t+=a.vmin-n+(e-a.vmin)/(a.vmax-a.vmin)*a.gapReal:t+=e-n,n=a.vmax,r=!1;break}t+=a.vmin-n+a.gapReal,n=a.vmax}return r&&(t+=e-n),t},e.prototype.unelapse=function(e){for(var t=K9,n=q9,r=!0,i=0,a=0;a<this.breaks.length;a++){var o=this.breaks[a],s=t+o.vmin-n,c=s+o.gapReal;if(e<=c){i=e>s?o.vmin+(e-s)/(c-s)*(o.vmax-o.vmin):n+e-t,n=o.vmax,r=!1;break}t=c,n=o.vmax}return r&&(i=n+e-t),i},e}();function vMe(){return new _Me}var K9=0,q9=0;function yMe(e,t){var n=0,r={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:i(),tpPrct:i()},E:{tpAbs:i(),tpPrct:i()}};X(e.breaks,function(e){var i=e.gapParsed;i.type===`tpPrct`&&(n+=i.val);var o=J9(e,t);if(o){var s=o.vmin!==e.vmin,c=o.vmax!==e.vmax,l=o.vmax-o.vmin;if(!(s&&c))if(s||c){var u=s?`S`:`E`;a[u][i.type].has=!0,a[u][i.type].span=l,a[u][i.type].inExtFrac=l/(e.vmax-e.vmin),a[u][i.type].val=i.val}else r[i.type].span+=l,r[i.type].val+=i.val}});var o=n*(0+(t[1]-t[0])+(r.tpAbs.val-r.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-r.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-r.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));X(e.breaks,function(e){var t=e.gapParsed;t.type===`tpPrct`&&(e.gapReal=n===0?0:Math.max(o,0)*t.val/n),t.type===`tpAbs`&&(e.gapReal=t.val),e.gapReal??=0})}function bMe(e,t,n,r,i,a){e!==`no`&&X(n,function(n){var o=J9(n,a);if(o)for(var s=t.length-1;s>=0;s--){var c=t[s],l=r(c),u=i*3/4;l>o.vmin-u&&l<o.vmax+u&&(e!==`preserve_extent_bound`||l!==a[0]&&l!==a[1])&&t.splice(s,1)}})}function xMe(e,t,n,r){X(t,function(t){var i=J9(t,n);i&&(e.push({value:i.vmin,break:{type:`vmin`,parsedBreak:i},time:r?r(i):void 0}),e.push({value:i.vmax,break:{type:`vmax`,parsedBreak:i},time:r?r(i):void 0}))}),t.length&&e.sort(function(e,t){return e.value-t.value})}function J9(e,t){var n=Math.max(e.vmin,t[0]),r=Math.min(e.vmax,t[1]);return n<r||n===r&&n>t[0]&&n<t[1]?{vmin:n,vmax:r,breakOption:e.breakOption,gapParsed:e.gapParsed,gapReal:e.gapReal}:null}function Y9(e,t,n){var r=[];if(!e)return{breaks:r};function i(e,t){return e>=0&&e<.99999}X(e,function(e){if(!(!e||e.start==null||e.end==null)&&!e.isExpanded){var a={breakOption:ZD(e),vmin:t(e.start),vmax:t(e.end),gapParsed:{type:`tpAbs`,val:0},gapReal:null};if(e.gap!=null){var o=!1;if(dO(e.gap)){var s=EO(e.gap);if(s.match(/%$/)){var c=parseFloat(s)/100;i(c,`Percent gap`)||(c=0),a.gapParsed.type=`tpPrct`,a.gapParsed.val=c,o=!0}}if(!o){var l=t(e.gap);(!isFinite(l)||l<0)&&(l=0),a.gapParsed.type=`tpAbs`,a.gapParsed.val=l}}if(a.vmin===a.vmax&&(a.gapParsed.type=`tpAbs`,a.gapParsed.val=0),n&&n.noNegative&&X([`vmin`,`vmax`],function(e){a[e]<0&&(a[e]=0)}),a.vmin>a.vmax){var u=a.vmax;a.vmax=a.vmin,a.vmin=u}r.push(a)}}),r.sort(function(e,t){return e.vmin-t.vmin});var a=-1/0;return X(r,function(e,t){a>e.vmin&&(r[t]=null),a=e.vmax}),{breaks:r.filter(function(e){return!!e})}}function X9(e,t){return Z9(t)===Z9(e)}function Z9(e){return e.start+`_\0_`+e.end}function SMe(e,t,n){var r=[];X(e,function(e,n){var i=t(e);i&&i.type===`vmin`&&r.push([n])}),X(e,function(n,i){var a=t(n);if(a&&a.type===`vmax`){var o=oO(r,function(n){return X9(t(e[n[0]]).parsedBreak.breakOption,a.parsedBreak.breakOption)});o&&o.push(i)}});var i=[];return X(r,function(t){t.length===2&&i.push(n?t:[e[t[0]],e[t[1]]])}),i}function CMe(e,t,n,r){var i,a;if(e.break){var o=e.break.parsedBreak,s=oO(n,function(t){return X9(t.breakOption,e.break.parsedBreak.breakOption)}),c=r(t**+o.vmin,s.vmin),l=r(t**+o.vmax,s.vmax),u={type:o.gapParsed.type,val:o.gapParsed.type===`tpAbs`?QM(t**+(o.vmin+o.gapParsed.val))-c:o.gapParsed.val};i={type:e.break.type,parsedBreak:{breakOption:o.breakOption,vmin:c,vmax:l,gapParsed:u,gapReal:o.gapReal}},a=s[e.break.type]}return{brkRoundingCriterion:a,vBreak:i}}function wMe(e,t,n){var r={noNegative:!0},i=Y9(e,n,r),a=Y9(e,n,r),o=Math.log(t);return a.breaks=Z(a.breaks,function(e){var t=Math.log(e.vmin)/o;return{vmin:t,vmax:Math.log(e.vmax)/o,gapParsed:{type:e.gapParsed.type,val:e.gapParsed.type===`tpAbs`?Math.log(e.vmin+e.gapParsed.val)/o-t:e.gapParsed.val},gapReal:e.gapReal,breakOption:e.breakOption}}),{parsedOriginal:i,parsedLogged:a}}var TMe={vmin:`start`,vmax:`end`};function EMe(e,t){return t&&(e||={},e.break={type:TMe[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),e}function DMe(){Ime({createScaleBreakContext:vMe,pruneTicksByBreak:bMe,addBreaksToTicks:xMe,parseAxisBreakOption:Y9,identifyAxisBreak:X9,serializeAxisBreakIdentifier:Z9,retrieveAxisBreakPairs:SMe,getTicksLogTransformBreak:CMe,logarithmicParseBreaksFromOption:wMe,makeAxisLabelFormatterParamBreak:EMe})}var Q9=jN();function OMe(e,t){var n=oO(e,function(e){return dz().identifyAxisBreak(e.parsedBreak.breakOption,t.breakOption)});return n||e.push(n={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),n}function kMe(e){X(e,function(e){return e.shouldRemove=!0})}function AMe(e){for(var t=e.length-1;t>=0;t--)e[t].shouldRemove&&e.splice(t,1)}function jMe(e,t,n,r,i){var a=n.axis;if(a.scale.isBlank()||!dz())return;var o=dz().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1);if(!o.length)return;var s=n.getModel(`breakArea`),c=s.get(`zigzagAmplitude`),l=s.get(`zigzagMinSpan`),u=s.get(`zigzagMaxSpan`);l=Math.max(2,l||0),u=Math.max(l,u||0);var d=s.get(`expandOnClick`),f=s.get(`zigzagZ`),p=s.getModel(`itemStyle`).getItemStyle(),m=p.stroke,h=p.lineWidth,g=p.lineDash,_=p.fill,v=new zM({ignoreModelZ:!0}),y=a.isHorizontal(),b=Q9(t).visualList||(Q9(t).visualList=[]);kMe(b);for(var x=function(e){var t=o[e][0].break.parsedBreak,r=[];r[0]=a.toGlobalCoord(a.dataToCoord(t.vmin,!0)),r[1]=a.toGlobalCoord(a.dataToCoord(t.vmax,!0)),r[1]<r[0]&&r.reverse();var s=OMe(b,t);s.shouldRemove=!1;var c=new zM;C(s.zigzagRandomList,c,r[0],r[1],y,t),d&&c.on(`click`,function(){var e={type:_Z,breaks:[{start:t.breakOption.start,end:t.breakOption.end}]};e[a.dim+`AxisIndex`]=n.componentIndex,i.dispatchAction(e)}),c.silent=!d,v.add(c)},S=0;S<o.length;S++)x(S);e.add(v),AMe(b);function C(e,t,n,i,a,o){var s={stroke:m,lineWidth:h,lineDash:g,fill:`none`},d=+!a,v=1-d,y=r[QL[v]]+r[$L[v]];function b(e){var t=[],n=[];t[d]=n[d]=e,t[v]=r[QL[v]],n[v]=y;var i={x1:t[0],y1:t[1],x2:n[0],y2:n[1]};return jF(i,i,{lineWidth:1}),t[0]=i.x1,t[1]=i.y1,t[d]}n=b(n),i=b(i);for(var x=[],S=[],C=!0,w=r[QL[v]],T=0;;T++){var E=w===r[QL[v]],D=w>=y;D&&(w=y);var O=[],k=[];O[d]=n,k[d]=i,!E&&!D&&(O[d]+=C?-c:c,k[d]-=C?c:-c),O[v]=w,k[v]=w,x.push(O),S.push(k);var A=void 0;if(T<e.length?A=e[T]:(A=Math.random(),e.push(A)),w+=A*(u-l)+l,C=!C,D)break}var j=dz().serializeAxisBreakIdentifier(o.breakOption);if(t.add(new SL({anid:`break_a_`+j,shape:{points:x},style:s,z:f})),o.gapReal!==0){t.add(new SL({anid:`break_b_`+j,shape:{points:S},style:s,z:f}));var M=S.slice();M.reverse();var N=x.concat(M);t.add(new xL({anid:`break_c_`+j,shape:{points:N},style:{fill:_,opacity:p.opacity},z:f}))}}}function MMe(e,t,n,r){var i=e.axis,a=n.transform;TO(r.style);var o=i.getExtent();i.inverse&&(o=o.slice(),o.reverse());var s=Z(dz().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:`only_break`}),function(e){return e.break},!1),function(e){var t=e[0].break.parsedBreak,n=[i.dataToCoord(t.vmin,!0),i.dataToCoord(t.vmax,!0)];return n[0]>n[1]&&n.reverse(),{coordPair:n,brkId:dz().serializeAxisBreakIdentifier(t.breakOption)}});s.sort(function(e,t){return e.coordPair[0]-t.coordPair[0]});for(var c=o[0],l=null,u=0;u<s.length;u++){var d=s[u],f=Math.max(d.coordPair[0],o[0]),p=Math.min(d.coordPair[1],o[1]);c<=f&&m(c,f,l,d),c=p,l=d}c<=o[1]&&m(c,o[1],l,null);function m(e,n,i,o){function s(e,t){a&&(ek(e,e,a),ek(t,t,a))}function c(e,t){var n={x1:e[0],y1:e[1],x2:t[0],y2:t[1]};jF(n,n,r.style),e[0]=n.x1,e[1]=n.y1,t[0]=n.x2,t[1]=n.y2}var l=[e,0],u=[n,0],d=[e,5],f=[n,5];s(l,d),c(l,d),s(u,f),c(u,f),c(l,u);var p=new CL(Y({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]}},r));t.add(p),p.anid=`breakLine_`+(i?i.brkId:`\0`)+`_\0_`+(o?o.brkId:`\0`)}}function NMe(e,t,n){if(oO(n,function(e){return!e}))return;var r=new Fk;if(!HJ(n[0],n[1],r,{direction:-(e?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var i=Dk();Mk(i,i,-t);var a=Z(n,function(e){return e.transform?Ak(Dk(),i,e.transform):i});function o(e){var t=n[0].localRect,r=new Fk(t[$L[e]]*a[0][0],t[$L[e]]*a[0][1]);return Math.abs(r.y)<1e-5}var s=.5;if(o(0)||o(1)){var c=Z(n,function(e,t){var n=e.localRect.clone();return n.applyTransform(a[t]),n}),l=new Fk;l.copy(n[0].label).add(n[1].label).scale(.5),l.transform(i);var u=r.clone().transform(i),d=(c[0].x+c[1].x+(u.x>=0?c[0].width:c[1].width)+u.x)/2-l.x,f=Math.min(d,d-u.x),p=Math.max(d,d-u.x);s=(d-(p<0?p:f>0?f:0))/u.x}var m=new Fk,h=new Fk;Fk.scale(m,r,-s),Fk.scale(h,r,1-s),LJ(n[0],m),LJ(n[1],h)}function PMe(e,t){var n={breaks:[]};return X(t.breaks,function(r){if(r){var i=oO(e.get(`breaks`,!0),function(e){return dz().identifyAxisBreak(e,r)});if(i){var a=t.type,o={isExpanded:!!i.isExpanded};i.isExpanded=a===`expandAxisBreak`?!0:a===`collapseAxisBreak`?!1:a===`toggleAxisBreak`?!i.isExpanded:i.isExpanded,n.breaks.push({start:i.start,end:i.end,isExpanded:!!i.isExpanded,old:o})}}}),n}function FMe(){Mye({adjustBreakLabelPair:NMe,buildAxisBreakLine:MMe,rectCoordBuildBreakAxis:jMe,updateModelAxisBreak:PMe})}function IMe(e){Bye(e),DMe(),FMe()}function LMe(){sbe(RMe)}function RMe(e,t){X(e,function(e){if(!e.model.get([`axisLabel`,`inside`])){var n=zMe(e);if(n){var r=e.isHorizontal()?`height`:`width`,i=e.model.get([`axisLabel`,`margin`]);t[r]-=n[r]+i,e.position===`top`?t.y+=n.height+i:e.position===`left`&&(t.x+=n.width+i)}}})}function zMe(e){var t=e.model,n=e.scale;if(!t.get([`axisLabel`,`show`])||n.isBlank())return;var r,i,a=n.getExtent();n instanceof rq?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=Nq(e),c,l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u<i;u+=l){var d=s(r?r[u]:{value:a[0]+u},u),f=p(o.getTextRect(d),o.get(`rotate`)||0);c?c.union(f):c=f}return c;function p(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new Jk(e.x,e.y,a,o)}}qG([Mve]),qG([Dve]),qG([Qve,pye,Cye,Ebe,Lbe,Txe,Qxe,FSe,nCe,lCe,hCe,CCe,gwe,Bwe,Zwe,pTe,_Te,DTe,PTe,GTe,ZTe,sEe,GEe]),qG(uDe),qG(FDe),qG(C$),qG(qDe),qG(O2),qG(ZDe),qG(hOe),qG(wOe),qG(uke),qG(kke),qG(q3),qG(Gke),qG(Jke),qG(iAe),qG(fAe),qG(vAe),qG(wAe),qG(PAe),qG($Ae),qG(w7),qG(k7),qG(vje),qG(Z7),qG($7),qG(Sje),qG(Dje),qG(Bje),qG(Uje),qG(gMe),qG(K_e),qG(IMe),qG(LMe),qG(Dbe);function BMe(e){return+(e/1e8).toFixed(0)}function VMe({data:e}){let t=(0,v.useRef)(null),n=(0,v.useRef)(null);return(0,v.useEffect)(()=>{if(!t.current)return;n.current||=DG(t.current);let r=n.current,i=e.map(e=>e.date.slice(0,10));r.setOption({tooltip:{trigger:`axis`,axisPointer:{type:`cross`}},legend:{top:0,data:[`上涨数`,`下跌数`,`成交额(亿)`,`涨停10%`,`跌停10%`,`涨停20%`,`跌停20%`,`连板家数`]},grid:[{left:60,right:70,top:60,height:`25%`},{left:60,right:70,top:`45%`,height:`49%`}],xAxis:[{type:`category`,data:i,gridIndex:0,boundaryGap:!1},{type:`category`,data:i,gridIndex:1,boundaryGap:!1}],yAxis:[{type:`value`,name:`股票数`,gridIndex:0},{type:`value`,name:`亿`,gridIndex:0,position:`right`,splitLine:{show:!1}},{type:`value`,name:`10%家`,gridIndex:1,position:`left`},{type:`value`,name:`20%家`,gridIndex:1,position:`right`,splitLine:{show:!1}},{type:`value`,name:`连板`,gridIndex:1,position:`right`,offset:60,splitLine:{show:!1}}],dataZoom:[{type:`inside`,xAxisIndex:[0,1],start:0,end:100}],series:[{name:`上涨数`,type:`line`,xAxisIndex:0,yAxisIndex:0,data:e.map(e=>e.up_count),itemStyle:{color:`#cf1322`},lineStyle:{width:2},symbol:`none`},{name:`下跌数`,type:`line`,xAxisIndex:0,yAxisIndex:0,data:e.map(e=>e.down_count),itemStyle:{color:`#3f8600`},lineStyle:{width:2},symbol:`none`},{name:`成交额(亿)`,type:`line`,xAxisIndex:0,yAxisIndex:1,data:e.map(e=>BMe(e.total_turnover)),itemStyle:{color:`rgba(114,46,209,0.6)`},lineStyle:{width:2},areaStyle:{color:`rgba(114,46,209,0.15)`},symbol:`none`},{name:`涨停10%`,type:`line`,xAxisIndex:1,yAxisIndex:2,data:e.map(e=>e.limit_up_10),itemStyle:{color:`#ff4d4f`},lineStyle:{width:2},symbol:`circle`,symbolSize:4},{name:`跌停10%`,type:`line`,xAxisIndex:1,yAxisIndex:2,data:e.map(e=>-e.limit_down_10),itemStyle:{color:`#52c41a`},lineStyle:{width:2},symbol:`circle`,symbolSize:4},{name:`涨停20%`,type:`line`,xAxisIndex:1,yAxisIndex:3,data:e.map(e=>e.limit_up_20),itemStyle:{color:`#ff7875`},lineStyle:{width:2,type:`dashed`},symbol:`circle`,symbolSize:5},{name:`跌停20%`,type:`line`,xAxisIndex:1,yAxisIndex:3,data:e.map(e=>-e.limit_down_20),itemStyle:{color:`#95de64`},lineStyle:{width:2,type:`dashed`},symbol:`circle`,symbolSize:5},{name:`连板家数`,type:`line`,xAxisIndex:1,yAxisIndex:4,data:e.map(e=>e.consecutive_limit_count),itemStyle:{color:`#fa8c16`},lineStyle:{width:3},symbol:`circle`,symbolSize:6}]},!0);let a=()=>r.resize();return window.addEventListener(`resize`,a),()=>window.removeEventListener(`resize`,a)},[e]),(0,ID.jsx)(`div`,{ref:t,style:{height:600}})}var{Title:HMe}=Iw;function UMe(){let[e,t]=(0,v.useState)([]),[n,r]=(0,v.useState)(!0),[i,a]=(0,v.useState)(30);return(0,v.useEffect)(()=>{r(!0),que(i).then(t).finally(()=>r(!1))},[i]),(0,ID.jsxs)(`div`,{style:{maxWidth:1200,margin:`0 auto`},children:[(0,ID.jsx)(HMe,{level:2,style:{textAlign:`center`,marginBottom:32},children:`每日趋势`}),(0,ID.jsx)(Jv,{extra:(0,ID.jsx)(uie,{value:i,onChange:e=>a(e),options:[{label:`7天`,value:7},{label:`30天`,value:30},{label:`90天`,value:90},{label:`180天`,value:180}]}),children:n?(0,ID.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,padding:60},children:(0,ID.jsx)(Ib,{size:`large`})}):(0,ID.jsx)(VMe,{data:e})})]})}var{Title:$9}=Iw,WMe=[{title:`连板`,dataIndex:`streak`,key:`streak`,width:70,render:e=>(0,ID.jsxs)(tw,{color:e>=5?`#722ed1`:e>=3?`#cf1322`:`#fa541c`,style:{fontWeight:`bold`,fontSize:14},children:[e,`连板`]})},{title:`代码`,dataIndex:`code`,key:`code`,width:80},{title:`名称`,dataIndex:`name`,key:`name`,width:100},{title:`最新价`,dataIndex:`close`,key:`close`,width:80,render:e=>e?.toFixed(2)},{title:`涨跌幅`,dataIndex:`pct_change`,key:`pct_change`,width:90,render:e=>(0,ID.jsxs)(tw,{color:`red`,children:[e>=0?`+`:``,e?.toFixed(2),`%`]})}];function GMe(){let[e,t]=(0,v.useState)([]),[n,r]=(0,v.useState)(!0);if((0,v.useEffect)(()=>{Jue().then(t).finally(()=>r(!1))},[]),n)return(0,ID.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`,padding:100},children:(0,ID.jsx)(Ib,{size:`large`})});let i=e.reduce((e,t)=>(e[t.streak]||(e[t.streak]=[]),e[t.streak].push(t),e),{}),a=e.length>0?e[0].streak:0;return(0,ID.jsxs)(`div`,{style:{maxWidth:1200,margin:`0 auto`},children:[(0,ID.jsx)($9,{level:2,style:{textAlign:`center`,marginBottom:32},children:`连板高度`}),(0,ID.jsx)(Jv,{style:{marginBottom:16,textAlign:`center`},children:(0,ID.jsxs)($9,{level:4,style:{margin:0},children:[`今日涨停 `,(0,ID.jsx)(`span`,{style:{color:`#cf1322`},children:e.length}),` 只, 最高 `,(0,ID.jsx)(`span`,{style:{color:`#722ed1`,fontSize:28},children:a}),` 连板`]})}),Object.keys(i).sort((e,t)=>Number(t)-Number(e)).map(e=>(0,ID.jsx)(Jv,{title:`${e}连板 (${i[Number(e)].length}只)`,size:`small`,style:{marginBottom:12},children:(0,ID.jsx)(HC,{columns:WMe,dataSource:i[Number(e)],rowKey:`code`,pagination:!1,size:`small`})},e))]})}var{Header:KMe,Content:qMe}=Xy,JMe=[{key:`/`,icon:(0,ID.jsx)($ce,{}),label:`市场概览`},{key:`/consecutive`,icon:(0,ID.jsx)(ule,{}),label:`连板高度`},{key:`/trend`,icon:(0,ID.jsx)(cE,{}),label:`每日趋势`}];function YMe(){let e=xT(),t=vT();return(0,ID.jsxs)(Xy,{style:{height:`100vh`},children:[(0,ID.jsxs)(KMe,{style:{display:`flex`,alignItems:`center`,padding:`0 24px`,flexShrink:0},children:[(0,ID.jsx)(`div`,{style:{color:`#fff`,fontSize:18,fontWeight:`bold`,marginRight:40},children:`AShareView`}),(0,ID.jsx)(W_,{theme:`dark`,mode:`horizontal`,selectedKeys:[t.pathname],items:JMe,onClick:({key:t})=>e(t),style:{flex:1}})]}),(0,ID.jsx)(qMe,{style:{padding:16,background:`#f5f5f5`,overflow:`auto`},children:(0,ID.jsxs)(ace,{children:[(0,ID.jsx)(MT,{path:`/`,element:(0,ID.jsx)(Que,{})}),(0,ID.jsx)(MT,{path:`/consecutive`,element:(0,ID.jsx)(GMe,{})}),(0,ID.jsx)(MT,{path:`/trend`,element:(0,ID.jsx)(UMe,{})})]})})]})}function XMe(){return(0,ID.jsx)(lu,{locale:Gue.default,children:(0,ID.jsx)(Mce,{children:(0,ID.jsx)(YMe,{})})})}(0,y.createRoot)(document.getElementById(`root`)).render((0,ID.jsx)(v.StrictMode,{children:(0,ID.jsx)(XMe,{})})); |